Preparing search index...
    interface LookupEntityType {
        attributeGroups: ModelCollection<AttributeGroup>;
        classifiers: AnyField;
        codeAttribute: CodeAttribute;
        customProperties: ModelCollection<
            Universe.Platform.CustomProperty.CustomProperty,
        >;
        dashboardVisible: BooleanField;
        description: StringField;
        dirty: boolean;
        displayName: StringField;
        groupName: StringField;
        hasData: BooleanField;
        isPublished: BooleanField;
        modelId: number;
        name: StringField;
        observabilitySet: Set<ReactiveProp>;
        onChangeDirty: ModelDirtyChangeHandler;
        onValidation: (_validationResult: IValidationResult) => void;
        phantom: boolean;
        validationResult: IValidationResult;
        validityField: AnyField;
        validityPeriod: AnyField<null | IValidityPeriod>;
        version: StringField;
        addAttribute(_attribute: IMetaAbstractAttribute): void;
        afterInit(): void;
        beforeInit(): void;
        calculateDeepDirty(): boolean;
        calculateDirty(): boolean;
        calculateFieldsDirty(): boolean;
        calculateModelDirty(): boolean;
        checkFieldDirty(field: AbstractField<any>): boolean;
        clearValidationResult(): void;
        clone<T extends AbstractModel<any>>(includeSystemProps?: boolean): T;
        commit(): void;
        commitFields(): void;
        commitHasMany(): void;
        commitHasOne(): void;
        createFields(data: any): void;
        createHasMany(data: any, initConfig: Partial<ModelOptions>): void;
        createHasOne(data: any, initConfig: Partial<ModelOptions>): void;
        getAttribute(name: string): undefined | IMetaAbstractAttribute;
        getAttributeGroupById(id: string): null | AttributeGroup;
        getAttributes(): IMetaAbstractAttribute[];
        getAttributesWithEqualName(
            entity: IMetaModel,
        ): Map<string, IMetaAbstractAttribute[]>;
        getCollection(name: string): any;
        getComplexAttributes(): undefined | IMetaComplexAttribute[];
        getDeepDirty(): boolean;
        getDirty(): boolean;
        getErrorMessage(validatorName: string): string;
        getErrorMessages(): { errors: string[]; path: string[] }[];
        getField(name: string): undefined | AbstractField<any, BaseOptions>;
        getFieldJsonDescriptor(
            propertyName: string,
        ):
            | undefined
            | ClassPropertyDescriptor<any, AbstractField<any, BaseOptions>>;
        getFieldMainDescriptor(
            propertyName: string,
        ): ClassPropertyDescriptor<any, AbstractField<any, BaseOptions>>;
        getFieldMainDescriptors(): ClassPropertyDescriptor<
            any,
            AbstractField<any, BaseOptions>,
        >[];
        getFields(): any[];
        getFieldsMap(): { [key: string]: any };
        getHasManyCollection(): any[];
        getHasManyJsonDescriptor(
            propertyName: string,
        ): undefined | ClassPropertyDescriptor<any, ModelCollection<any>>;
        getHasManyMainDescriptor(
            propertyName: string,
        ): ClassPropertyDescriptor<any, ModelCollection<any>>;
        getHasManyMainDescriptors(): ClassPropertyDescriptor<
            any,
            ModelCollection<any>,
        >[];
        getHasManyMap(): { [key: string]: any };
        getHasOneCollection(): any[];
        getHasOneJsonDescriptor(
            propertyName: string,
        ): undefined | ClassPropertyDescriptor<any, AbstractModel<any>>;
        getHasOneMainDescriptor(
            propertyName: string,
        ): ClassPropertyDescriptor<any, AbstractModel<any>>;
        getHasOneMainDescriptors(): ClassPropertyDescriptor<
            any,
            AbstractModel<any>,
        >[];
        getHasOneMap(): { [key: string]: any };
        getHasOneOriginalCollection(): { [key: string]: any };
        getLogicErrors(): string[];
        getMainVisibleAttributes(): AbstractAttribute<any>[];
        getMetaAttributesByPropertyValue(
            property: string,
            value: any,
        ): IMetaAbstractAttribute[];
        getModelDirty(): boolean;
        getNamespace(): keyof INamespace;
        getPhantom(): boolean;
        getPrimaryKeyValue(): string;
        getPropertiesAsMapByDescriptors<
            T extends
                | AbstractModel<any>
                | AbstractField<any, BaseOptions>
                | ModelCollection<any>,
        >(
            descriptors: ClassPropertyDescriptor<any, T>[],
        ): { [key in string]?: ModelProperty<any, T, any> };
        getPropertiesByDescriptors<
            T extends
                | AbstractModel<any>
                | AbstractField<any, BaseOptions>
                | ModelCollection<any>,
        >(
            descriptors: ClassPropertyDescriptor<any, T>[],
        ): ModelProperty<any, T, any>[];
        getPropertyByDescriptor<
            T extends
                | AbstractModel<any>
                | AbstractField<any, BaseOptions>
                | ModelCollection<any>,
        >(
            descriptor: ClassPropertyDescriptor<any, T>,
        ): undefined | ModelProperty<any, T, any>;
        getReferencesChanged(): boolean;
        getTypeName(): string;
        getValidationResult(level?: number): Map<string, string[]>;
        isEqual(model: AbstractModel<any>, config?: EqualConfig): boolean;
        removeAttribute(attribute: IMetaAbstractAttribute): void;
        removeAttributeFromLayoutGroup(attributeName: string): void;
        removeUnusedAttributesFromGroups(): void;
        revert(): void;
        serialize(
            config?: SerializationConfig,
        ): Partial<Pick<GetTypes<any>, string>>;
        setDeepDirty(flag: boolean): void;
        setDirty(flag: boolean): void;
        setPhantomCascade(phantom: boolean): void;
        setReactive(props: ReactiveProp[]): void;
        setReactiveCascade(props: ReactiveProp[]): void;
        setReferencesChanged(flag: boolean): void;
        updateDeepDirty(): void;
        updateDirty(): void;
        updateModelDirty(): void;
        validate(disablePropagation?: boolean): IValidationResult;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Methods

    Properties

    Коллекция групп атрибутов модели

    classifiers: AnyField

    Рудимент, больше не используется в системе

    @universe-platform/meta 2.0.0

    codeAttribute: CodeAttribute

    Коллекция дополнительных параметров модели

    dashboardVisible: BooleanField

    Рудимент, больше не используется в системе

    @universe-platform/meta 2.0.0

    description: StringField

    Описание

    dirty: boolean
    displayName: StringField

    Отображаемое имя

    groupName: StringField

    Имя группы, к которой принадлежит модель

    hasData: BooleanField

    Есть ли у модели созданные экземпляры

    isPublished: BooleanField

    Была ли модель опубликована

    modelId: number

    Внутреннее имя

    observabilitySet: Set<ReactiveProp>
    onValidation: (_validationResult: IValidationResult) => void
    phantom: boolean
    validationResult: IValidationResult
    validityField: AnyField

    Рудимент, больше не используется в системе

    @universe-platform/meta 2.0.0

    validityPeriod: AnyField<null | IValidityPeriod>

    Период актуальности

    version: StringField

    Версия ревизии модели

    Methods

    • This method is called at the final stage of model initialization

      Returns void

    • The method calls before the model initialization begins

      Returns void

    • Cloning model data

      Type Parameters

      Parameters

      • OptionalincludeSystemProps: boolean

        phantom, dirty, original values

      Returns T

      T

    • Creates model fields

      Parameters

      • data: any

      Returns void

    • Метод, возвращающий группу атрибутов с указанным идентификатором

      Parameters

      • id: string

        Идентификатор

      Returns null | AttributeGroup

    • Parameters

      • name: string

      Returns any

    • Parameters

      • validatorName: string

      Returns string

    • Метод, возвращающий список ошибок сущности

      Returns { errors: string[]; path: string[] }[]

    • Returns an array of model fields

      Returns any[]

    • Returns { [key: string]: any }

    • Returns { [key: string]: any }

    • Returns { [key: string]: any }

    • Returns an array of original hasOne

      Returns { [key: string]: any }

    • This method is called at the validation. If there is logical errors in model, here will be list of them

      Returns string[]

    • Метод, возвращающий список атрибутов с указанным значением поля (attribute[property] === value)

      Parameters

      • property: string

        Имя поля

      • value: any

        Значение поля

      Returns IMetaAbstractAttribute[]

    • Метод, возвращающий пространство имён, к которому принадлежит модель

      Returns keyof INamespace

    • Returns whether a new record is selected

      Returns boolean

    • Имя модели

      Returns string

    • Parameters

      • Optionallevel: number

      Returns Map<string, string[]>

    • Метод, удаляющий атрибут с указанным именем из группы отображения

      Parameters

      • attributeName: string

        Имя атрибута

      Returns void

    • Метод, удаляющий все несуществующие атрибуты из групп

      Returns void

    • Parameters

      • flag: boolean

      Returns void

    • Parameters

      • flag: boolean

      Returns void

    • Sets the phantom attribute cascadingly for the model

      Parameters

      • phantom: boolean

      Returns void

    • Make some of the system properties reactive in the current model

      Parameters

      Returns void