Circle V2 API Docs
    Preparing search index...

    Function buildCatalogueEntries

    • The candidate documents as catalogue entries, with each date already resolved to a facility-local calendar day.

      The timezone work happens HERE and not in the catalogue: week bucketing is calendar arithmetic, and doing it on a raw instant is how a document lands in the wrong week for a facility west of UTC.

      Parameters

      • documents: DocumentInfo[]
      • dateField: DocumentDateField = 'created'
      • OptionaltimeZone: string | null

      Returns CatalogueEntry[]