import { IdentifierT } from './identifiers'; export type ImportHeaderT = { bbid: string; dataId: number; }; export type AdditionalImportDataT = { identifiers?: IdentifierT[]; links: Array<{ title: string; url: string; }>; originId?: object[]; relationships: Array<{ type: string; value: string; }>; [custom: string]: any; }; export type ImportMetadataT = { pendingEntityBbid: string | null; externalSourceId: number; externalIdentifier: string; /** TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT timezone('UTC'::TEXT, now()) */ importedAt?: string; /** TIMESTAMP WITHOUT TIME ZONE */ lastEdited: string; /** UUID */ acceptedEntityBbid?: string | null; /** JSONB */ additionalData: AdditionalImportDataT; }; export type ImportMetadataWithSourceT = ImportMetadataT & { /** Name of the external source. */ source: string; };