import * as mongoose from "mongoose"; import { Entity } from "./entity.schema"; import { SearchResultDto } from "../common/dto/search_result.dto"; import { ClsService } from "nestjs-cls"; export declare class EntitiesService { private readonly cls; protected model: mongoose.Model; private _http; constructor(cls: ClsService, model: mongoose.Model); private _getCurrentProfile; private _getCurrentApiKey; private _getCurrentPermissions; private _getCurrentRole; private _getCurrentHeaders; private _getCurrentBody; private _isInternal; private _getFieldSchema; private _getFieldEntity; private _setGenerateDataRedis; refreshCustomSchema(entity: Entity, deleted?: boolean): Promise; refreshSystemSchema(service: any, model: mongoose.Model, doc: any, schema: mongoose.Schema, options?: any): Promise; private _createSearchTextIndex; reloadSchema(entity: Entity, deleted?: boolean, ignore?: boolean): Promise; init(): Promise; initData(): Promise; initRefresh(): Promise; initCustomEntity(entityName: string): Promise; actionTypes(): string[]; fieldTypes(): string[]; schemaCreate(dto: Entity): Promise; schemaUpdate(id: string, dto: any): Promise; schemaDelete(id: string): Promise; schemaSearch(keywords?: string, filters?: any, page?: number, page_size?: number, sort?: string): Promise; schemaRelatedSearch(entityName: string, maxDeep: number, fields?: string): Promise>; schemaFind(keywords?: string, filters?: any, sort?: string): Promise; schemaFindWithLayout(layoutCode: string, keywords?: string, filters?: any, sort?: string): Promise; schemaFindOne(id: string): Promise; schemaFindOneWithLayout(layoutCode: string, id: string): Promise; search(name: string, keywords?: string, filters?: any, page?: number, page_size?: number, sort?: string, grouping?: Array, noTranslate?: boolean, fields?: Array): Promise; searchIds(name: string, keywords?: string, filters?: any, page?: number, page_size?: number, sort?: string): Promise>; searchWithLayout(name: string, layoutCode: string, keywords?: string, filters?: any, page?: number, page_size?: number, sort?: string, grouping?: Array, isDetail?: boolean): Promise; find(name: string, keywords?: string, filters?: any, sort?: string, noTranslate?: boolean, fields?: Array): Promise; findWithLayout(name: string, layoutCode: string, keywords?: string, filters?: any, sort?: string): Promise; findOne(name: string, id: string, fields?: Array, ignoreEncrypt?: boolean): Promise; findOneWithLayout(name: string, layoutCode: string, id: string, noTranslate?: boolean): Promise; aggregate(name: string, query: any): Promise; decryptField(name: string, id: string, field: string): Promise; count(name: string, filters?: any, keywords?: string): Promise; create(name: string, dto: any): Promise; update(name: string, id: string, dto: any): Promise; delete(name: string, id: string): Promise; deleteMany(name: string, filter: any): Promise; bulkCreate(name: string, data: any[]): Promise; bulkUpdate(name: string, data: any[]): Promise; bulkDelete(name: string, ids: string[]): Promise; prepareGenerateData(name: string, data?: any): Promise; generateData(name: string, data?: any): Promise; progressGenerateData(ref_id: string): Promise; approve(name: string, id: string, data: any): Promise; workflowActions(name: string, id: string): Promise; executeWorkflowAction(name: string, id: string, body: any): Promise; dataWithLocale(name: string, layout: string, id: string, locale: string): Promise; findWithLocale(name: string, locale: string, keywords?: string, filters?: any, sort?: string): Promise; setDataLocale(name: string, id: string, locale: string, data: any): Promise; exampleOutputMapping(name: string, data: any): Promise; searchText(name: string, data: any): Promise; listViewCodes(name: string): Promise; importValidate(entityName: string, id: string, code: string, data: any, dataText: string, originalData: any, filename: any): Promise; syncEntityTerm(name: string): Promise; private _bulkUpdateSearchText; }