If we add taxonomy field to some content type, CLI would generate taxonomy type in this manner:
export interface CmsTaxonomy {
taxonomy_uid: string
max_terms?: number
mandatory: boolean
non_localizable: boolean
}
export interface CmsTest extends CmsSystemFields {
taxonomies?: CmsTaxonomy[]
}
Unfortunately, taxonomies type is missing term_uid: string which we have to type manually because we use it in a codebase. This is what a call to the CMS returns:
{
taxonomies: [{
taxonomy_uid: "test_taxonomy",
term_uid: "test_term"
}]
}
It is not being generated by --include-system-fields flag which adds other metadata including uid which is generated inside CmsSystemFields type.
Is there a reason we're not getting term_uid?
If we add taxonomy field to some content type, CLI would generate taxonomy type in this manner:
Unfortunately, taxonomies type is missing
term_uid: stringwhich we have to type manually because we use it in a codebase. This is what a call to the CMS returns:It is not being generated by
--include-system-fieldsflag which adds other metadata includinguidwhich is generated insideCmsSystemFieldstype.Is there a reason we're not getting
term_uid?