kontent-ai / kontent-ai-migration-toolkit

MIT License
2 stars 1 forks source link

Add External ID to MigrationReference #11

Open nkooman-bzs opened 1 week ago

nkooman-bzs commented 1 week ago

Motivation

Why is this feature required? What problems does it solve?

When importing from a 3rd-party system I want to be able to reference linked items and assets by external ID explicitly.

Proposed solution

Expand the MigrationReference type to accept a discriminated union of { readonly codename: T; } | { readonly external_id: T; }. Update content item and asset importers to handle external IDs.

Additional context

N/A