Member Junction
    Preparing search index...

    Helper class for writing JSON files with consistent property ordering for RecordData objects. Ensures that all metadata files have the same property order: fields, relatedEntities, primaryKey, sync

    Index

    Constructors

    Methods

    • Create a RecordData object with explicit property ordering for consistent JSON output

      Parameters

      • fields: Record<string, any>

        Entity field data

      • relatedEntities: Record<string, RecordData[]>

        Related entity data

      • primaryKey: Record<string, any>

        Primary key data

      • sync: { checksum: string; lastModified: string }

        Sync metadata

      Returns RecordData

      RecordData object with guaranteed property order

    • Write regular JSON data (non-RecordData) with standard formatting

      Parameters

      • filePath: string

        Path to the JSON file to write

      • data: any

        Any JSON-serializable data

      • Optionaloptions: JFWriteOptions

        Optional JSON write options

      Returns Promise<void>