UNPKG

@cmk/fe_utils

Version:
103 lines (102 loc) 2.96 kB
export type EntityListFieldType = { required_list_field_type: string; entity_list_field_id: number; entity_list_id: number; src_entity_field_id: number; fe_mapping_fn_name?: string; list_field_type?: 'text'; is_filtered?: boolean; is_sortable?: boolean; is_editable?: boolean; label?: string; list_sequence?: number; } | { required_list_field_type: string; entity_list_field_id: number; entity_list_id: number; src_be_mapping_fn_name: string; fe_mapping_fn_name?: string; list_field_type?: 'text'; is_filtered?: boolean; is_sortable?: boolean; is_editable?: boolean; label?: string; list_sequence?: number; }; export type EntityListFieldPayloadType = EntityListFieldType & { owner_user_id?: number; html_project_id: string; }; export declare const EntityListFieldDbFieldsDefs: ({ readonly name: "entity_list_field_id"; readonly data_type: "serial PRIMARY KEY"; readonly is_id_field: true; ui_type?: undefined; required?: undefined; } | { readonly name: "entity_list_id"; readonly data_type: "integer references _entity_lists(entity_list_id) "; readonly ui_type: "dropdown"; readonly is_id_field?: undefined; required?: undefined; } | { readonly name: "label"; readonly data_type: "varchar"; readonly required: true; readonly is_id_field?: undefined; ui_type?: undefined; } | { readonly name: "src_entity_field_id"; readonly data_type: "integer references _entity_fields(entity_field_id) "; readonly ui_type: "dropdown"; readonly is_id_field?: undefined; required?: undefined; } | { readonly name: "src_be_mapping_fn_name"; readonly data_type: "varchar"; readonly is_id_field?: undefined; ui_type?: undefined; required?: undefined; } | { readonly name: "is_filtered"; readonly data_type: "bool"; readonly is_id_field?: undefined; ui_type?: undefined; required?: undefined; } | { readonly name: "is_sortable"; readonly data_type: "bool"; readonly is_id_field?: undefined; ui_type?: undefined; required?: undefined; } | { readonly name: "is_editable"; readonly data_type: "bool"; readonly is_id_field?: undefined; ui_type?: undefined; required?: undefined; } | { readonly name: "required_list_field_type"; readonly data_type: "varchar"; readonly required: true; readonly ui_type: "dropdown"; readonly is_id_field?: undefined; } | { readonly name: "list_sequence"; readonly data_type: "integer"; readonly is_id_field?: undefined; ui_type?: undefined; required?: undefined; } | { name: "owner_user_id"; data_type: string; readonly is_id_field?: undefined; ui_type?: undefined; required?: undefined; } | { name: "html_project_id"; data_type: string; readonly is_id_field?: undefined; ui_type?: undefined; required?: undefined; })[];