import * as mongoose from "mongoose"; import { BaseSchema } from "../common/base/base.schema"; export declare class FieldEntity { name: string; system: boolean; type: string; required: boolean; unique: boolean; default?: any; max_value?: Number; min_value?: Number; related_type?: string; related_ref?: string; allow_create_update?: boolean; allow_translate?: boolean; multiple?: string; type_date?: string; multi_line?: boolean; values?: String[]; entities_title?: string; maximum_file_size?: Number; list_type?: string; full_list_field?: string; full_list_editable_field?: string[]; max_size_checked?: boolean; max_size?: Number; external_url: boolean; sortable?: boolean; show_comma?: boolean; description_line: string; width?: Number; height?: Number; prefix?: string; suffix?: string; fields_options_type?: string; json_type?: string; external_storage?: boolean; allow_type?: string[]; min?: number; max?: number; reg_exp_pattern?: string; decimal_length?: Number; is_public?: boolean; log?: boolean; mask_checked?: boolean; mask_type?: string; mask_custom?: string; allow_search?: boolean; use_encrypt?: boolean; encrypt_type?: string; use_mask?: boolean; use_mask_prefix?: number; use_mask_suffix?: number; } export declare class HookActionEntity { field?: string; type: string; value?: string; body?: any; method?: string; url?: string; internal_queue?: string; headers?: any; params?: any; } export declare class FlowEntity { name?: string; from: string; to: string; conditions?: any[]; user: any; filters?: any; required_reason?: Boolean; reason_ref?: string; default_reason?: any[]; default_reason_comment?: string; allow_execute_hook?: Boolean; reason_form?: string; custom_form?: string; custom_form_entity_layout?: string; is_auto?: Boolean; email_template?: string; email_receiver?: any[]; sms_template?: string; sms_receiver?: any[]; date_tracking_field?: string; executions?: WorkflowExecution[]; hide_action?: boolean; lock?: boolean; id?: string; } export declare class WorkflowExecution { name: string; enabled: boolean; conditions: any[]; actions: WorkflowExecutionAction[]; } export declare class WorkflowExecutionAction { type?: String; url?: String; method?: String; internal_queue?: string; params?: any; body?: any; } export declare class WorkflowEntity { field: String; first_status?: String; layout: any; flows: any[]; blocks: any[]; _translate?: any; } export declare class CustomActionEntity { name: string; code?: string; enabled?: Boolean; system?: Boolean; type: string; need_confirm?: Boolean; path?: string; method?: string; body?: any; params?: any; query?: any; internal_actions?: any; filters?: any; conditions?: any[]; permissions?: any; allow_layouts?: any; entity?: string; entity_layout?: string; show_on?: string; export_template?: string; icon_type?: string; icon?: string; show_in_list?: boolean; allow_bulk?: boolean; execute_mode?: string; export_filter?: boolean; confirm?: boolean; } export declare class HookEntity { allow_methods: string[]; event: string; name: string; code?: string; enabled: boolean; ignore_activity_log: boolean; system: boolean; conditions: any[]; actions: HookActionEntity[]; } export declare class ColumnListLayoutEntity { field: string; label: string; allow_sort?: boolean; allow_search: boolean; allow_filter: boolean; align?: string; date_format?: string; display_template?: string; _translates?: any; suffix?: string; decimal_place?: number; format_type?: string; use_currency?: boolean; type?: string; custom_field?: boolean; show_field?: boolean; } export declare class ListLayoutEntity { allow_search: boolean; allow_filter: boolean; allow_sort: boolean; allow_bulk: boolean; entries_per_page: number; default_sort: string; columns: ColumnListLayoutEntity[]; mobile_template?: string; row_conditions?: any; quick_view?: any; } export declare class FieldLayoutBlockDetailLayoutEntity { field: string; label?: string; link_type?: string; name?: string; list?: any; type?: string; required?: boolean; hidden?: boolean; hide_label?: boolean; default_value?: any; description?: string; completer_fields?: string; placeholder?: string; read_only?: boolean; restrict?: boolean; permission_layout_read_only?: any; permission_layout_restrict?: any; roles_show?: any; roles_read_only?: any; trigger?: any; item?: any; entity?: string; filters?: any; entity_layout?: string; format?: string; yes_label?: string; no_label?: string; date_format?: string; list_template?: string; display_template?: string; allow_main_image?: boolean; limit_images?: number; checkbox_column?: number; min_check?: number; data_limit?: number; unique_key?: string; key?: string; input_type?: string; value?: string; format_label?: string; format_value?: string; _translates?: any; sortable?: boolean; relate_ref?: string; allow_function?: any; allow_actions?: any; allow_view?: boolean; enable_search?: boolean; entity_system?: boolean; compute_data?: any; key_value?: string; options?: any; mode?: string; data_type?: string; output_type?: string; custom_only?: boolean; source_mapping_option?: any; destination_mapping_option?: any; show_example?: boolean; allow_duplicate?: boolean; reason?: string; reason_required?: boolean; suffix?: string; decimal_place?: number; show_empty?: boolean; allow_select?: boolean; use_currency?: boolean; date_type?: string; conditions?: any; permission_layout_read_only_allow_actions?: string; permission_layout_restrict_allow_actions?: string; allow_multiple_selec?: boolean; wildcard?: boolean; max_deep_levels?: number; mask_checked?: boolean; mask_type?: string; mask_custom?: string; } export declare class LayoutBlockDetailLayoutEntity { num_of_col: number; fields: FieldLayoutBlockDetailLayoutEntity[][]; } export declare class TitleDetailLayoutEntity { format: string; } export declare class BlockDetailLayoutEntity { key: string; type: string; layout?: LayoutBlockDetailLayoutEntity; text?: string; tabs?: any; select_list?: any; hide?: any; } export declare class DetailLayoutEntity { title?: TitleDetailLayoutEntity; blocks: any[]; is_popup?: Boolean; popup_mode?: string; redirect_mode?: string; } export declare class LayoutEntity { name?: String; code?: String; type?: String[]; list?: ListLayoutEntity; detail?: DetailLayoutEntity; restriction?: any; allow_actions?: any; filters?: any; allow_add_comment?: boolean; template_restrictions?: any; import_export_restrictions?: any; allow_import_export_raw_json?: boolean; allow_workflow_actions?: boolean; allow_clone?: boolean; hide_activity_log?: boolean; show_refresh?: boolean; hide_save?: boolean; config_key?: any; hide_refresh?: boolean; hide_search?: boolean; _translates?: any; } export declare class DataPermission { mode?: string; ignore_roles: string[]; basic_permissions: PermissionEntity[]; advance_permissions: AdvancePermissionEntity[]; } export declare class AdvancePermissionEntity { conditions: any; permissions: PermissionEntity[]; } export declare class PermissionEntity { entity_field: String; user_field: String; } export declare class ActionEntity { name: String; method: string; } export declare class ExternalSourceEntity { type: string; } export declare class Entity extends BaseSchema { name: string; display_name: string; system: boolean; versioning: boolean; max_versioning: number; type: string; link_entity?: any; form_type?: string; allow_print: boolean; allow_manual_import_export?: boolean; fields: FieldEntity[]; layouts?: LayoutEntity[]; hooks: HookEntity[]; custom_actions: CustomActionEntity[]; external_source?: ExternalSourceEntity; workflows: WorkflowEntity; permissions: PermissionEntity[]; data_permissions: DataPermission; permissions_ignore_roles: string[]; entity_permissions: any; actions: ActionEntity[]; related_schema: any; keep_activity_log?: boolean; deep_search_text: boolean; allow_atlas_search_index: boolean; is_atlas_search_index_active: boolean; custom_fields: string[]; } export declare const EntitySchema: mongoose.Schema, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, { [x: number]: unknown; [x: symbol]: unknown; [x: string]: unknown; }, mongoose.Document, {}, mongoose.DefaultSchemaOptions> & mongoose.FlatRecord<{ [x: number]: unknown; [x: symbol]: unknown; [x: string]: unknown; }> & Required<{ _id: unknown; }> & { __v: number; }>;