Updates the mock data with the Collections API amends

This commit is contained in:
leekelleher
2024-02-22 11:51:32 +00:00
parent 85eba27450
commit 32e2b0ade5
5 changed files with 5 additions and 2 deletions

View File

@@ -754,8 +754,8 @@ export const data: Array<UmbMockDocumentTypeModel> = [
keepAllVersionsNewerThanDays: null,
keepLatestVersionPerDayForDays: null,
},
collection: { id: 'dt-collectionView' },
},
{
allowedTemplates: [],
defaultTemplate: null,

View File

@@ -118,6 +118,7 @@ const documentTypeDetailMapper = (item: UmbMockDocumentTypeModel): DocumentTypeR
compositions: item.compositions,
allowedTemplates: item.allowedTemplates,
cleanup: item.cleanup,
collection: item.collection,
};
};

View File

@@ -704,6 +704,7 @@ export const data: Array<UmbMockDocumentModel> = [
documentType: {
id: 'simple-document-type-id',
icon: 'icon-document',
collection: { id: 'dt-collectionView'},
},
hasChildren: false,
noAccess: false,

View File

@@ -57,7 +57,7 @@ const createMockMediaMapper = (request: CreateMediaRequestModel): UmbMockMediaMo
mediaType: {
id: mediaType.id,
icon: mediaType.icon,
collection: undefined, // TODO: get list from doc type when ready
collection: mediaType.collection,
},
hasChildren: false,
id: request.id ? request.id : UmbId.new(),

View File

@@ -24,6 +24,7 @@ export interface UmbContentTypeModel {
containers: Array<UmbPropertyTypeContainerModel>;
allowedContentTypes: Array<UmbContentTypeSortModel>;
compositions: Array<UmbContentTypeCompositionModel>;
collection: { unique: string } | null;
}
export interface UmbPropertyTypeScaffoldModel extends Omit<UmbPropertyTypeModel, 'dataType'> {