import { type Firestore } from "firebase-admin/firestore"; import type { CatalogId } from "@x12i/catalox-contracts/ids.js"; export type BackfillCatalogModelInput = { catalogIds?: CatalogId[]; dryRun?: boolean; }; export type BackfillCatalogModelResult = { ok: boolean; dryRun: boolean; catalogsScanned: number; catalogsPatched: number; nativeItemsPatched: number; definitionRecordsPatched: number; issues?: Array<{ code: string; message: string; catalogId?: string; }>; }; /** * One-time backfill to the newer catalog model. * * - Ensures `catalogs/*` has `catalogType`, `catalogItems`, and `metadata` envelope. * - Migrates legacy top-level `status`, `createdAt`, `updatedAt` into `metadata.*`. * - Ensures native item records under `catalogData-{catalogId}-items/*` have `metadata.createdAt` and `metadata.lastUpdate`. * - Converts legacy `catalogDefinitions/*` native `storage` into `catalogItems.providerType: internal` (best-effort). */ export declare function backfillCatalogModel(fs: Firestore, input: BackfillCatalogModelInput): Promise; //# sourceMappingURL=backfill-catalog-model.d.ts.map