1
1
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' ;
3
3
import { UmbId } from '@umbraco-cms/backoffice/id' ;
4
4
import type { UmbDataSourceResponse , UmbDetailDataSource } from '@umbraco-cms/backoffice/repository' ;
5
5
import type {
@@ -9,7 +9,6 @@ import type {
9
9
} from '@umbraco-cms/backoffice/external/backend-api' ;
10
10
import { DocumentBlueprintService } from '@umbraco-cms/backoffice/external/backend-api' ;
11
11
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api' ;
12
- import { UMB_DOCUMENT_PROPERTY_VALUE_ENTITY_TYPE } from '@umbraco-cms/backoffice/document' ;
13
12
import { tryExecute } from '@umbraco-cms/backoffice/resources' ;
14
13
15
14
/**
@@ -194,7 +193,7 @@ export class UmbDocumentBlueprintServerDataSource implements UmbDetailDataSource
194
193
values : data . values . map ( ( value ) => {
195
194
return {
196
195
editorAlias : value . editorAlias ,
197
- entityType : UMB_DOCUMENT_PROPERTY_VALUE_ENTITY_TYPE ,
196
+ entityType : UMB_DOCUMENT_BLUEPRINT_PROPERTY_VALUE_ENTITY_TYPE ,
198
197
culture : value . culture || null ,
199
198
segment : value . segment || null ,
200
199
alias : value . alias ,
@@ -203,13 +202,15 @@ export class UmbDocumentBlueprintServerDataSource implements UmbDetailDataSource
203
202
} ) ,
204
203
variants : data . variants . map ( ( variant ) => {
205
204
return {
206
- state : variant . state ,
207
205
culture : variant . culture || null ,
208
206
segment : variant . segment || null ,
207
+ state : variant . state ,
209
208
name : variant . name ,
210
209
publishDate : variant . publishDate || null ,
211
210
createDate : variant . createDate ,
212
211
updateDate : variant . updateDate ,
212
+ scheduledPublishDate : variant . scheduledPublishDate || null ,
213
+ scheduledUnpublishDate : variant . scheduledUnpublishDate || null
213
214
} ;
214
215
} ) ,
215
216
documentType : {
0 commit comments