temp mock type

This commit is contained in:
Mads Rasmussen
2024-04-05 13:14:48 +02:00
parent 422af8256a
commit aaf30682eb

View File

@@ -1,11 +1,18 @@
import type { UmbPagedModel } from '../../../repository/types.js';
import type { UmbContentTypeStructureDataSource } from './content-type-structure-data-source.interface.js';
import type { AllowedContentTypeModel, ItemResponseModelBaseModel } from '@umbraco-cms/backoffice/external/backend-api';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
import { tryExecuteAndNotify } from '@umbraco-cms/backoffice/resources';
// Temp type
type AllowedContentTypeModel = {
id: string;
name: string;
description?: string | null;
icon?: string | null;
};
export interface UmbContentTypeStructureServerDataSourceBaseArgs<
ServerItemType extends ItemResponseModelBaseModel,
ServerItemType extends AllowedContentTypeModel,
ClientItemType extends { unique: string },
> {
getAllowedChildrenOf: (unique: string | null) => Promise<UmbPagedModel<ServerItemType>>;