import * as mongoose from "mongoose"; import { Entity } from "../../entities/entity.schema"; export declare const SALTRANDOMKEY = "#GISMGISDDFF#"; declare const prepareHeader: (headers: any) => any; declare const _loadEntity: (name: string, first?: boolean, iteration?: number) => Promise; declare const _existsEntity: (name: string) => boolean; declare const _loadSchema: (name: string, first?: boolean) => Promise; declare const _refreshEntity: (name: string, data: any) => Promise; declare const _removeEntity: (name: string) => Promise; declare const getEntityDefaultValues: (entity: Entity) => any; declare const callListInternalService: (modelName: string, keywoards?: string, filters?: any, sort?: string, fields?: string, page?: number, page_size?: number, headers?: any) => Promise; declare const callListIdsInternalService: (modelName: string, keywoards?: string, filters?: any, page?: number, page_size?: number, sort?: string, headers?: any) => Promise; declare const callFindInternalService: (modelName: string, keywoards?: string, filters?: any, sort?: string, fields?: string, headers?: any) => Promise; declare const callGetInternalService: (modelName: string, id: string, query?: any, headers?: any) => Promise; declare const callCreateInternalService: (modelName: string, data: any, reqHeaders?: any, ignoreActivityLog?: boolean) => Promise; declare const callUpdateInternalService: (modelName: string, data: any, reqHeaders?: any, ignoreActivityLog?: boolean) => Promise; declare const callSaveInternalService: (modelName: string, data: any, reqHeaders?: any, ignoreActivityLog?: boolean) => Promise; declare const callDeleteInternalService: (modelName: string, id: string, reqHeaders?: any, ignoreActivityLog?: boolean) => Promise; declare const callApproveInternalService: (modelName: string, data: any, reqHeaders?: any, ignoreActivityLog?: boolean) => Promise; declare const callBulkDeleteInternalService: (modelName: string, ids: string[], reqHeaders?: any) => Promise; declare const callBulkUpdateInternalService: (modelName: string, data: any[], reqHeaders?: any) => Promise; declare const callBulkCreateInternalService: (modelName: string, data: any[], reqHeaders?: any) => Promise; declare const callCountInternalService: (modelName: string, keywords?: string, filters?: any, headers?: any) => Promise; declare const _callUploadImageInternal: (data: any, reqHeaders?: any) => Promise; declare const callMarkDeletedInternal: (entity: string, ids: any, reqHeaders?: any) => Promise; declare const callInternalService: (modelName: string, method: string, action: string, body?: any, reqHeaders?: any, system?: boolean, errData?: boolean) => Promise; declare const callInternalModuleSetting: (moduleCode: string, method: string, action: string, body?: any, reqHeaders?: any) => Promise; declare const callUpdateSchemaInternal: (entityId: string, body: any, reqHeaders?: any) => Promise; declare const callAddQueueInternal: (moduleName: string, queueName: string, body: any, reqHeaders?: any) => Promise; declare const uploadAttachmentInternal: (data: string, filename: string, path: string, reqHeaders?: any, isPublic?: boolean) => Promise; declare const callUploadInternal: (data: any, reqHeaders?: any) => Promise; declare const listFieldByType: (data: any, entity: Entity, type: string, extra?: string) => any[]; declare const listEncryptFields: (entity: Entity, newData: any) => { name: string; data: any; options: any; }[]; declare const saveRelatedFields: (entity: Entity, reqHeaders: any, newData: any, oldData?: any) => Promise; declare const saveRelatedFieldsV2: (entity: Entity, reqHeaders: any, newData: any, oldData?: any) => Promise; declare const saveMapFields: (entity: Entity, reqHeaders: any, newData: any, oldData?: any) => Promise; declare const saveImageFields: (fields: any, reqHeaders: any, data: any, entity: string, system: boolean) => Promise; declare const saveFileFields: (fields: any, reqHeaders: any, data: any, entity: string) => Promise; declare const saveImageAndFileComponent: (entity: Entity, newData: any) => Promise; declare const saveShareWidget: (entity: Entity, newData: any, useEntityField?: boolean) => Promise; declare const transformShareWidget: (entityName: string, data: any, useEntityField?: boolean) => Promise; declare const saveJsonFields: (entity: Entity, newData: any, oldData?: any) => Promise; declare const transformJsonFields: (entityName: string, data: any, headers?: any) => Promise; declare const hashPasswordFields: (entity: Entity, newData: any) => Promise; declare const saveEncryptFields: (entity: Entity, newData: any, oldData?: any) => Promise; declare const hashEncryptFields: (entity: Entity, newData: any) => any; declare const addActivityLog: (entity: Entity, request: any, data: any, type: string, action: string, status: string, start_process_time?: Date, end_process_time?: Date, message?: string, description?: string, newData?: any, oldData?: any) => Promise; declare const addVersionData: (entity: Entity, id: string, version: number) => Promise; declare const createReasonData: (data: any) => Promise; declare const mapEntity: (entity: any) => "attachment" | "map_location"; declare const getSetting: (name: string, module?: string) => Promise; declare const setSetting: (name: string, data: any, module?: string) => Promise; declare const getModuleSetting: (module: string, layout: string) => Promise; declare const setModuleSetting: (module: string, layout: string, data: any) => Promise; declare const buildSelect: (doc: any, fields: Array) => boolean; declare const buildPopulate: (doc: any, entityName: string, fields: Array) => Promise; declare const buildAggregate: (aggregate: any, entityName: string, fields: Array | Array | string, page?: number, pageSize?: number, sort?: string) => Promise; declare const buildAggregateCount: (pipeline: any) => any; declare const buildPopulateWithLayout: (doc: any, fields: Array, isDetail?: boolean) => Promise; declare const hasRelationFilter: (filters: any, fields: any) => any; declare const listRelateSchema: (entity: any) => Promise; declare const saveReasons: (entity: any, id: string, reasons: Array) => Promise; declare const autoWorkflow: (data: any, entity: Entity, reasons?: Array, request?: any) => Promise; declare const cleanUpSaveData: (entity: Entity, data: any) => Promise; declare const getWorkflowLogMessage: (entity: Entity, request: any, currentState: string, targetState: string) => any; export { callInternalService, callGetInternalService, callListInternalService, callFindInternalService, callCountInternalService, callCreateInternalService, callUpdateInternalService, callSaveInternalService, callDeleteInternalService, callApproveInternalService, callBulkDeleteInternalService, callBulkUpdateInternalService, callBulkCreateInternalService, callUpdateSchemaInternal, callAddQueueInternal, callInternalModuleSetting, callUploadInternal, listFieldByType, listEncryptFields, saveRelatedFields, saveRelatedFieldsV2, addActivityLog, saveMapFields, mapEntity, saveImageFields, saveFileFields, saveShareWidget, transformShareWidget, saveJsonFields, transformJsonFields, hashPasswordFields, hashEncryptFields, saveEncryptFields, addVersionData, createReasonData, getSetting, setSetting, uploadAttachmentInternal, callMarkDeletedInternal, _loadEntity as loadEntity, _existsEntity as existsEntity, _loadSchema as loadSchema, _refreshEntity as refreshEntity, _removeEntity as removeEntity, getEntityDefaultValues, buildSelect, buildPopulate, buildPopulateWithLayout, listRelateSchema, saveReasons, autoWorkflow, callListIdsInternalService, cleanUpSaveData, getWorkflowLogMessage, getModuleSetting, setModuleSetting, saveImageAndFileComponent, _callUploadImageInternal as callUploadImageInternal, prepareHeader, hasRelationFilter, buildAggregate, buildAggregateCount };