Type Alias: MigrateAssetsCompleteData
type MigrateAssetsCompleteData =
| {
mappings: MigrateAssetsMapping[];
error?: undefined;
}
| {
mappings?: undefined;
error: ErrorData<ErrorCode>;
};
Payload carried by the migration-completion message. mappings and error are mutually exclusive and enforced by this union:
- Per-document outcome (the normal path, including partial or total per-document failure):
mappingsis populated — each entry carries its ownstatus— anderroris absent. - Systemic failure that prevented migration from running at all (auth exchange, target-repository resolution, timeout):
erroris populated andmappingsis absent.
See
- MigrateAssetsMapping for the per-document mapping shape.
- ErrorData for the transported error shape.