import { IBase } from '../../../../models/commons/interfaces/base.interface'; import { ResourceType } from '../../../../models/emis/enums/resource-type.enum'; import { II18n } from '../../../core/models/dtos/i18n.interface'; import { Types } from 'mongoose'; export interface IDictionaryEvent { event: 'create' | 'update' | 'delete'; data: IDictionary; } export interface IDictionarySetting { allowedTypes: ResourceType[]; } export interface IDictionary extends IBase { keyword: string; originIds: Types.ObjectId[] | string[]; parentIds: Types.ObjectId[] | string[] | IDictionary[]; title: II18n; settings: IDictionarySetting; metas: Map; } export interface IDictionaryEmbedded { id: Types.ObjectId | string; keyword: string; originIds: Types.ObjectId[] | string[]; parentIds: Types.ObjectId[] | string[] | IDictionaryEmbedded[]; title: II18n; metas: Map; }