add template detail types + entity types

This commit is contained in:
Mads Rasmussen
2024-01-31 19:45:10 +01:00
parent 3919db7f15
commit d8848d6480
3 changed files with 16 additions and 4 deletions

View File

@@ -1,3 +1,7 @@
export const UMB_TEMPLATE_ROOT_ENTITY_TYPE = 'template-root';
export const UMB_TEMPLATE_ENTITY_TYPE = 'template';
export const UMB_TEMPLATE_FOLDER_ENTITY_TYPE = 'template-folder';
export type UmbTemplateEntityType = typeof UMB_TEMPLATE_ENTITY_TYPE;
export type UmbTemplateRootEntityType = typeof UMB_TEMPLATE_ROOT_ENTITY_TYPE;
export type UmbTemplateFolderEntityType = typeof UMB_TEMPLATE_FOLDER_ENTITY_TYPE;

View File

@@ -1,9 +1,6 @@
import type { UmbTemplateTreeItemModel } from './types.js';
import { UmbTreeServerDataSourceBase } from '@umbraco-cms/backoffice/tree';
import type {
EntityTreeItemResponseModel,
NamedEntityTreeItemResponseModel,
} from '@umbraco-cms/backoffice/backend-api';
import type { NamedEntityTreeItemResponseModel } from '@umbraco-cms/backoffice/backend-api';
import { TemplateResource } from '@umbraco-cms/backoffice/backend-api';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';

View File

@@ -0,0 +1,11 @@
import type { UmbTemplateEntityType } from './entity.js';
export interface UmbTemplateDetailModel {
entityType: UmbTemplateEntityType;
unique: string;
parentUnique: string | null;
name: string;
alias: string;
content: string | null;
masterTemplateId: string | null;
}