Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/idempotent draft imports #79

Merged
merged 2 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions docs/Model/ContentItemSimplifiedModel.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ Simplified model for importing webpage content item with parent
"LanguageData": [
{
"LanguageName": "en-US",
"DisplayName": "Simplified model sample sub page - en-us",
"DisplayName": "Simplified model sample sub page - en-US",
"VersionStatus": 0,
"IsLatest": true,
"UserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553",
"ContentItemData": {
"ArticleTitle": "en-US UMT simplified model creation as sub page",
Expand All @@ -44,8 +45,9 @@ Simplified model for importing webpage content item with parent
},
{
"LanguageName": "en-GB",
"DisplayName": "Simplified model sample sub page - en-gb",
"DisplayName": "Simplified model sample sub page - en-GB",
"VersionStatus": 2,
"IsLatest": true,
"UserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553",
"ContentItemData": {
"ArticleTitle": "en-GB UMT simplified model creation as sub page",
Expand All @@ -59,14 +61,20 @@ Simplified model for importing webpage content item with parent
"PageUrls": [
{
"UrlPath": "en-us/simplified-sample/sub-page",
"PathIsDraft": false,
"PathIsLatest": true,
"LanguageName": "en-US"
},
{
"UrlPath": "en-gb/simplified-sample/sub-page",
"PathIsDraft": false,
"PathIsLatest": true,
"LanguageName": "en-GB"
},
{
"UrlPath": "es/simplified-sample/sub-page",
"UrlPath": "es-cu/simplified-sample/sub-page",
"PathIsDraft": false,
"PathIsLatest": true,
"LanguageName": "es-CU"
}
],
Expand All @@ -92,6 +100,7 @@ Simplified model for importing webpage content item
"LanguageName": "en-US",
"DisplayName": "Simplified model sample - en-us",
"VersionStatus": 0,
"IsLatest": true,
"ScheduledPublishWhen": "2045-01-01T00:00:00Z",
"ContentItemData": {
"ArticleTitle": "en-US UMT simplified model creation",
Expand All @@ -105,6 +114,7 @@ Simplified model for importing webpage content item
"LanguageName": "en-GB",
"DisplayName": "Simplified model sample - en-gb",
"VersionStatus": 2,
"IsLatest": true,
"ScheduledUnpublishWhen": "2045-01-01T00:00:00Z",
"ContentItemData": {
"ArticleTitle": "en-GB UMT simplified model creation",
Expand All @@ -119,14 +129,20 @@ Simplified model for importing webpage content item
"PageUrls": [
{
"UrlPath": "en-us/simplified-sample",
"PathIsDraft": false,
"PathIsLatest": true,
"LanguageName": "en-US"
},
{
"UrlPath": "en-gb/simplified-sample",
"PathIsDraft": false,
"PathIsLatest": true,
"LanguageName": "en-GB"
},
{
"UrlPath": "es/simplified-sample",
"PathIsDraft": false,
"PathIsLatest": true,
"LanguageName": "es-CU"
}
],
Expand All @@ -151,6 +167,7 @@ This sample describes how to import reusable content item with asset into XbyK
"LanguageName": "en-US",
"DisplayName": "Event sample 2024 - en-US",
"VersionStatus": 0,
"IsLatest": true,
"UserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553",
"ContentItemData": {
"EventTitle": "en-US Event sample 2024",
Expand All @@ -171,6 +188,7 @@ This sample describes how to import reusable content item with asset into XbyK
"LanguageName": "en-GB",
"DisplayName": "Event sample 2024 - en-GB",
"VersionStatus": 2,
"IsLatest": true,
"UserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553",
"ScheduledUnpublishWhen": "2045-01-01T00:00:00Z",
"ContentItemData": {
Expand Down Expand Up @@ -198,6 +216,7 @@ This sample describes how to import reusable content item with asset into XbyK
|LanguageName\*||string||
|DisplayName\*||string||
|VersionStatus||CMS.ContentEngine.VersionStatus||
|IsLatest||bool||
|UserGuid\*||System.Guid?||
|ScheduledPublishWhen|Date and time on which draft content item will be published, must be set in future|System.DateTime?||
|ScheduledUnpublishWhen|Date and time on which published content item will be unpublished, must be set in future|System.DateTime?||
Expand Down Expand Up @@ -225,6 +244,7 @@ Defines url for web page item
|---|---|---|---|
|UrlPath||string?||
|PathIsDraft|currently unused, until simplified model supports Draft content items (and not only Published or InitialDraft)|bool?||
|PathIsLatest||bool?||
|LanguageName||string?||

<p>*) value is required</p>
Expand Down
Loading