add client models for PropertyTypeModelBaseModel
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import type { CompositionTypeModel, PropertyTypeModelBaseModel } from '@umbraco-cms/backoffice/external/backend-api';
|
||||
import type { CompositionTypeModel } from '@umbraco-cms/backoffice/external/backend-api';
|
||||
import type { UmbReferenceByUnique } from '@umbraco-cms/backoffice/models';
|
||||
|
||||
export type UmbPropertyContainerTypes = 'Group' | 'Tab';
|
||||
|
||||
export interface UmbPropertyTypeContainerModel {
|
||||
id: string;
|
||||
parent: { id: string } | null;
|
||||
parent: { id: string } | null; // TODO: change to unique
|
||||
name: string | null;
|
||||
type: UmbPropertyContainerTypes;
|
||||
sortOrder: number;
|
||||
@@ -32,8 +32,29 @@ export interface UmbPropertyTypeScaffoldModel extends Omit<UmbPropertyTypeModel,
|
||||
dataType?: UmbPropertyTypeModel['dataType'];
|
||||
}
|
||||
|
||||
export interface UmbPropertyTypeModel extends Omit<PropertyTypeModelBaseModel, 'dataType'> {
|
||||
export interface UmbPropertyTypeModel {
|
||||
dataType: { unique: string };
|
||||
id: string; // TODO: change to unique
|
||||
container?: { id: string } | null; // TODO: change to unique
|
||||
sortOrder: number;
|
||||
alias: string;
|
||||
name: string;
|
||||
description?: string | null;
|
||||
variesByCulture: boolean;
|
||||
variesBySegment: boolean;
|
||||
validation: UmbPropertyTypeValidationModel;
|
||||
appearance: UmbPropertyTypeAppearanceModel;
|
||||
}
|
||||
|
||||
export interface UmbPropertyTypeValidationModel {
|
||||
mandatory: boolean;
|
||||
mandatoryMessage?: string | null;
|
||||
regEx?: string | null;
|
||||
regExMessage?: string | null;
|
||||
}
|
||||
|
||||
export interface UmbPropertyTypeAppearanceModel {
|
||||
labelOnTop: boolean;
|
||||
}
|
||||
|
||||
export interface UmbContentTypeSortModel {
|
||||
|
||||
Reference in New Issue
Block a user