frontend/js/views/add-child-page/types.ts
raw| 1 | import { Translatable } from "../../i18n"; |
| 2 | import { Field } from "../../widgets/types"; |
| 3 | |
| 4 | export type Model = { |
| 5 | id: string; |
| 6 | name: string; |
| 7 | name_i18n: Translatable; |
| 8 | primary_field: Field; |
| 9 | }; |
| 10 | |
| 11 | export type NewRecordInfo = { |
| 12 | label: string; |
| 13 | can_have_children: boolean; |
| 14 | implied_model: string | null; |
| 15 | available_models: Record<string, Model>; |
| 16 | }; |