Skip to content

Commit 66b2e3b

Browse files
committed
2 parents bc3e3d7 + 75c7d00 commit 66b2e3b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/Umbraco.Web.UI.Client/src/packages/documents/document-blueprints/entity.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ export type UmbDocumentBlueprintRootEntityType = typeof UMB_DOCUMENT_BLUEPRINT_R
66
export type UmbDocumentBlueprintEntityType = typeof UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE;
77
export type UmbDocumentBlueprintFolderEntityType = typeof UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE;
88

9+
export const UMB_DOCUMENT_BLUEPRINT_PROPERTY_VALUE_ENTITY_TYPE = `${UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE}-property-value`;
10+
export type UmbDocumentBlueprintPropertyValueEntityType = typeof UMB_DOCUMENT_BLUEPRINT_PROPERTY_VALUE_ENTITY_TYPE;
11+
912
export type UmbDocumentBlueprintEntityTypeUnion =
1013
| UmbDocumentBlueprintRootEntityType
1114
| UmbDocumentBlueprintEntityType

src/Umbraco.Web.UI.Client/src/packages/documents/document-blueprints/repository/detail/document-blueprint-detail.server.data-source.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { UmbDocumentBlueprintDetailModel } from '../../types.js';
2-
import { UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE } from '../../entity.js';
2+
import { UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE, UMB_DOCUMENT_BLUEPRINT_PROPERTY_VALUE_ENTITY_TYPE } from '../../entity.js';
33
import { UmbId } from '@umbraco-cms/backoffice/id';
44
import type { UmbDataSourceResponse, UmbDetailDataSource } from '@umbraco-cms/backoffice/repository';
55
import type {
@@ -9,7 +9,6 @@ import type {
99
} from '@umbraco-cms/backoffice/external/backend-api';
1010
import { DocumentBlueprintService } from '@umbraco-cms/backoffice/external/backend-api';
1111
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
12-
import { UMB_DOCUMENT_PROPERTY_VALUE_ENTITY_TYPE } from '@umbraco-cms/backoffice/document';
1312
import { tryExecute } from '@umbraco-cms/backoffice/resources';
1413

1514
/**
@@ -194,7 +193,7 @@ export class UmbDocumentBlueprintServerDataSource implements UmbDetailDataSource
194193
values: data.values.map((value) => {
195194
return {
196195
editorAlias: value.editorAlias,
197-
entityType: UMB_DOCUMENT_PROPERTY_VALUE_ENTITY_TYPE,
196+
entityType: UMB_DOCUMENT_BLUEPRINT_PROPERTY_VALUE_ENTITY_TYPE,
198197
culture: value.culture || null,
199198
segment: value.segment || null,
200199
alias: value.alias,
@@ -203,13 +202,15 @@ export class UmbDocumentBlueprintServerDataSource implements UmbDetailDataSource
203202
}),
204203
variants: data.variants.map((variant) => {
205204
return {
206-
state: variant.state,
207205
culture: variant.culture || null,
208206
segment: variant.segment || null,
207+
state: variant.state,
209208
name: variant.name,
210209
publishDate: variant.publishDate || null,
211210
createDate: variant.createDate,
212211
updateDate: variant.updateDate,
212+
scheduledPublishDate: variant.scheduledPublishDate || null,
213+
scheduledUnpublishDate: variant.scheduledUnpublishDate || null
213214
};
214215
}),
215216
documentType: {

0 commit comments

Comments
 (0)