Build a CantonOcfDataMap from an OCF manifest.
Converts the array-based manifest structure into a nested Map structure that can be used for efficient lookup during replication diff computation.
OCF manifest from extractCantonOcfManifest
Map of entityType → Map of ocfId → OCF data object
Error if any object is missing a valid 'id' field or has an unsupported object_type
import { extractCantonOcfManifest } from './cantonOcfExtractor';const manifest = await extractCantonOcfManifest(client, cantonState);const cantonOcfData = buildCantonOcfDataMap(manifest);const diff = computeReplicationDiff(sourceItems, cantonState, { cantonOcfData }); Copy
import { extractCantonOcfManifest } from './cantonOcfExtractor';const manifest = await extractCantonOcfManifest(client, cantonState);const cantonOcfData = buildCantonOcfDataMap(manifest);const diff = computeReplicationDiff(sourceItems, cantonState, { cantonOcfData });
Build a CantonOcfDataMap from an OCF manifest.
Converts the array-based manifest structure into a nested Map structure that can be used for efficient lookup during replication diff computation.