diff --git a/docs/Model/WorkspaceModel.md b/docs/Model/WorkspaceModel.md new file mode 100644 index 0000000..e4c2c6d --- /dev/null +++ b/docs/Model/WorkspaceModel.md @@ -0,0 +1,63 @@ + +## WorkspaceModel +Model represents XbyK WorkspaceInfo + +Model [discriminator](../UmtModel.md#discriminator): `Workspace` + +|PropertyName|Summary|.NET Type|Notes| +|---|---|---|---| +|WorkspaceGUID\*||System.Guid?|[UniqueId](../UmtModel.md#UniqueId)| +|WorkspaceDisplayName\*||string?|| +|WorkspaceName\*||string?|| +|[customPropertyName]|custom property defined by created [DataClass](./DataClassModel.md)|.NET type defined by data class field|| + +

*) value is required

+ + +### Workspace sample + +```json +{ + "$type": "Workspace", + "WorkspaceGUID": "018fe300-d522-4cc8-9888-b7248e922077", + "WorkspaceDisplayName": "Sample Workspace", + "WorkspaceName": "SampleWorkspace" +} +``` + +### Reusable content item sample in non-default workspace +This sample describes how to import reusable content item into non-default workspace +```json +{ + "$type": "ContentItemSimplified", + "ContentItemGUID": "2867f7b2-2db4-429a-b1b7-7596a502b089", + "ContentItemWorkspaceGUID": "018fe300-d522-4cc8-9888-b7248e922077", + "IsSecured": false, + "ContentTypeName": "UMT.Event", + "Name": "EventInSampleWorkspace", + "IsReusable": true, + "LanguageData": [ + { + "LanguageName": "en-US", + "DisplayName": "Sample workspace Event - en-US", + "VersionStatus": 2, + "IsLatest": true, + "UserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", + "ContentItemData": { + "EventTitle": "en-US Sample workspace Event", + "EventText": "en-US Sample workspace Event (reusable)", + "EventDate": "2024-01-01T00:00:00Z", + "EventRecurrentYearly": true, + "EventTeaser": { + "$assetType": "AssetData", + "Data": "iVBORw0KGgoAAAANSUhEUgAAARsAAABlCAYAAAB9ckckAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABAESURBVHhe7d0JkBxVHQbw/xw7u5sN4b4hXEFABQRBQBOSgAYLVOQMk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U1OaRtHsWqZlAZl14QUR3Cpu/\u002BOWounM4pl0tyjwNVaUAxgH48L9LAMYNGQ\u002BBUIvvWUul/\u002BC5VIhq6nIYNjtJUMmiKxm8GjRZl4PgFDaD\u002BSn9H//x5ao5o6HJ6Ul/3tWdJ\u002Bsm/qFJwaOS2no0Xzm9Ze\u002BmkdU7W8wsPPGf11LGqNKBU0GgfTdpFzYU3fPptkvjEvqoUjblz58qiRYtUacDYsWPltNNOU6V1LV\u002B\u002BXGbOnKlK65o\u002BfbrsuOOOqtT8Tj/9dFm4cGFxm7Bt48aNU49QvTgLm/yaD\u002BXjKZ9VpfAqCZzkHgdI1wU3Fue9zLAJEjRrLzlJMv96UpXCS004RTpPjfa8IjQoBI4XGtaMGTNUaV3jx48vNkDTggULWqox2t6XZcuWtVSYNiNnu1H4FoRqICB6Zp1baPBPqCXrQyBhl0pDOOjg8Uo/fKeaGwikckHTM\u002BucqoIGMjW8OXsQCCBb0DTLpz7W3Zxs0HszgwYQQFRfzsIG4zXVCho46Klo6Ong\u002BXjtwOvPkd47rlGPDowHlYLn41qqauU\u002BeLduF2miYdp2nxAyfr2gRoL1R6/MO91www3qUWoW7sLmxcfUXHWCBo6G56\u002B9ZFJxtwmTGRze55qiChot89Ljas4dfNKjcZqwS4Hdp1aD7bLtLmEsi\u002BrLSdhkl70g\u002Be7VqlS9coGTeck/iEx\u002BdUQdNJBZ\u002Bqyac8dv92HOnMpOQWgG5hhUqXEscsdN2NTge578Age3kAgzvoI6UJdXLYIGssueV3Nu\u002BI3TtNqAsEn32nDsAxODpjE4ORrV\u002B/uLpe/\u002B9QftooDdIAzy4icCwgyOIKKoI6gNfvmYxDfeUpWqU\u002BpolB7nMAX9lPcOtOLwOsp6F6XU4XXA68xD8qeeeuo6Y0S6TsByrJe5\u002B4Pnvv7668XnmaGJ55q9F/162\u002B\u002B31a/pbdW/y7teUOq1JqwnJtSFn6gL9eD1O\u002BywQ/F9C1pXq3ESNmuvPEMyS\u002BozPoAAwYBxb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mlRFSNpg0bLwRP5qXHi9/ggN2s3PvvqEcCiCeK39iJyxnwvU74upVY14bqQSKKSkuEjSm/\u002BoPiFd8Infzq9yXfs0Ykky5sbVwk1VEIkxES32jz4s2x4jX8HnIiGtSSYUNEjad5L0YioqbCsCEiJxg2ROQEw4aInGDYEJETDBsicoJhQ0ROMGyIyAmGDRE5wbAhIicYNkTkBMOGiJxg2BCREwwbInKCYUNETsTefmsF72dDRDUXu0v6GTZN5P3E2/JO2zLpj/WoJUTNgbtRTYRBQ81L5P9tTCaxUJPzFgAAAABJRU5ErkJggg==", + "ContentItemGuid": "2867f7b2-2db4-429a-b1b7-7596a502b089", + "Identifier": "57c26660-ef2f-4288-8f30-886135c2c8fb", + "Name": "byteArraySample.jpg", + "Extension": ".jpg" + } + } + } + ] +} +``` diff --git a/docs/Samples/basic.json b/docs/Samples/basic.json index a848974..6b43fec 100644 --- a/docs/Samples/basic.json +++ b/docs/Samples/basic.json @@ -1607,5 +1607,52 @@ } ], "PageData": null + }, + { + "$type": "Workspace", + "WorkspaceGUID": "018fe300-d522-4cc8-9888-b7248e922077", + "WorkspaceDisplayName": "Sample Workspace", + "WorkspaceName": "SampleWorkspace" + }, + { + "$type": "ContentItemSimplified", + "ContentItemGUID": "2867f7b2-2db4-429a-b1b7-7596a502b089", + "ContentItemContentFolderGUID": null, + "ContentItemWorkspaceGUID": "018fe300-d522-4cc8-9888-b7248e922077", + "IsSecured": false, + "ContentTypeName": "UMT.Event", + "Name": "EventInSampleWorkspace", + "IsReusable": true, + "ChannelName": null, + "LanguageData": [ + { + "LanguageName": "en-US", + "DisplayName": "Sample workspace Event - en-US", + "VersionStatus": 2, + "IsLatest": true, + "UserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", + "ScheduledPublishWhen": null, + "ScheduledUnpublishWhen": null, + "ContentItemData": { + "EventTitle": "en-US Sample workspace Event", + "EventText": "en-US Sample workspace Event (reusable)", + "EventDate": "2024-01-01T00:00:00Z", + "EventRecurrentYearly": true, + "EventTeaser": { + "$assetType": "AssetData", + "Data": "iVBORw0KGgoAAAANSUhEUgAAARsAAABlCAYAAAB9ckckAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABAESURBVHhe7d0JkBxVHQbw/xw7u5sN4b4hXEFABQRBQBOSgAYLVOQMkOIyaFQKTdDiUCCJHBZggaCoIVYlqOG\u002BFBFEQxLuMwY5lAgkHJEjkSvJXnM53\u002Bx7tZ2X1zPdMz1vjv1\u002BVZ3t1zPztnuy75vXr4\u002BJ5QuEiKjG4uonEVFNMWyIyAmGDRE5wbAhIicYNkTkBMOGiJxg2BCREwwbInKCYUNETjBsiMgJhg0ROcGwISInGDZE5ERLXfWdfWWJZJe/INk3/yO5d5dL7n9vS371\u002B5LvWSOSSRe2Ni6xVIfEhm8osY02l/hm20l8m10kMXJ3SYzaW\u002BKbbK1qIqKoNXXY5D9aJelnHpDMkoWSefExyff1qEcqk9h2lCT3HCPJfQ\u002BV5KcOUkuJKApNGTbpxQ9K\u002BqHbJf30X9WS6MW32F7aRh8lqXHHS3xT9niIqtVUYZN\u002B5C7pu29OYVfpRbXEjdQhJ0j74ZMlvvXOagkRhdUUYZN5bpH03vkLyb7yD7WkPtoPP0Paj50qsfZOtYSIgmrosMHAbu\u002B8y6R/wS1qSf3FN9lKOk48V9o\u002B/zW1hIiCaNiwwaBvz5yLJLdqhVrSWLBr1fmNiwvvIM8eIAqiIcOm755Z0nvzFarUuBI77ymdU66UxHa7qiVE5KfhwqZn7nTp/9sfVKnxxbo2lGFnXSvJPUerJURk01Bh0/2rsyX96B9VqbkMm/ZradtvgioRkalhBhyaOWig\u002B\u002BrvSGbxfFUiIlNDhE3P3Bk1DZr45tsVp1pbe82Zkl26WJWIyKvuu1F9f75eem\u002B6XJWilTr4GOmcsu5Ac9\u002Bd10r/Q3dIbuVbakm0EGrDZ9xevPaKiAbVtWdTPFmvRkHjp/3o7xVDqFYQYt2zz1MlItLqFjb53rXSM2e6KrmV2ONzaq42cI5Q393XqRIRQd3CBmcG51a\u002BqUpu4dYStdZ721WSfe2fqkREdQmbzPMPS/\u002BDN6tS48LuVscx31el8Hpv\u002BZmaI6K6hE3vndequfDQ\u002BDHVctwF9OAyxngqDZzMC49K\u002BpG7VYloaHMeNulH/1TR4WEc5em6YF6x8WNCEGzw80U1OaRtHsWqZlAZl14QUR3Cpu/\u002BOWounM4pl0tyjwNVaUAxgH48L9LAMYNGQ\u002BBUIvvWUul/\u002BC5VIhq6nIYNjtJUMmiKxm8GjRZl4PgFDaD\u002BSn9H//x5ao5o6HJ6Ul/3tWdJ\u002Bsm/qFJwaOS2no0Xzm9Ze\u002BmkdU7W8wsPPGf11LGqNKBU0GgfTdpFzYU3fPptkvjEvqoUjblz58qiRYtUacDYsWPltNNOU6V1LV\u002B\u002BXGbOnKlK65o\u002BfbrsuOOOqtT8Tj/9dFm4cGFxm7Bt48aNU49QvTgLm/yaD\u002BXjKZ9VpfAqCZzkHgdI1wU3Fue9zLAJEjRrLzlJMv96UpXCS004RTpPjfa8IjQoBI4XGtaMGTNUaV3jx48vNkDTggULWqox2t6XZcuWtVSYNiNnu1H4FoRqICB6Zp1baPBPqCXrQyBhl0pDOOjg8Uo/fKeaGwikckHTM\u002BucqoIGMjW8OXsQCCBb0DTLpz7W3Zxs0HszgwYQQFRfzsIG4zXVCho46Klo6Ong\u002BXjtwOvPkd47rlGPDowHlYLn41qqauU\u002BeLduF2miYdp2nxAyfr2gRoL1R6/MO91www3qUWoW7sLmxcfUXHWCBo6G56\u002B9ZFJxtwmTGRze55qiChot89Ljas4dfNKjcZqwS4Hdp1aD7bLtLmEsi\u002BrLSdhkl70g\u002Be7VqlS9coGTeck/iEx\u002BdUQdNJBZ\u002Bqyac8dv92HOnMpOQWgG5hhUqXEscsdN2NTge578Age3kAgzvoI6UJdXLYIGssueV3Nu\u002BI3TtNqAsEn32nDsAxODpjE4ORrV\u002B/uLpe/\u002B9QftooDdIAzy4icCw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XeQ4jyYxsjY3cidqRQ0dNpB9c6n03XqlpBc/qJbUUVu7dBw3rXh4m4jCafiw0dJP3Sd998yS7GvPqyVupb50srQf\u002BV2Jb7yFWkJEYTRN2GjpJ\u002B6V/vk3rnNT81qJdXRJavzEYtDEtxyplhJRJZoubDRcipB\u002B/B5JP/1A8SzkKOGM47YDDpcUbuWZTKmlRFSNpg0bLwRP5qXHi9/ggN2s3PvvqEcCiCeK39iJyxnwvU74upVY14bqQSKKSkuEjSm/\u002BoPiFd8Infzq9yXfs0Ykky5sbVwk1VEIkxES32jz4s2x4jX8HnIiGtSSYUNEjad5L0YioqbCsCEiJxg2ROQEw4aInGDYEJETDBsicoJhQ0ROMGyIyAmGDRE5wbAhIicYNkTkBMOGiJxg2BCREwwbInKCYUNETsTefmsF72dDRDUXu0v6GTZN5P3E2/JO2zLpj/WoJUTNgbtRTYRBQ81L5P9tTCaxUJPzFgAAAABJRU5ErkJggg==", + "ContentItemGuid": "2867f7b2-2db4-429a-b1b7-7596a502b089", + "Identifier": "57c26660-ef2f-4288-8f30-886135c2c8fb", + "Name": "byteArraySample.jpg", + "Extension": ".jpg", + "Size": null, + "LastModified": null, + "ImageWidth": null, + "ImageHeight": null + } + } + } + ], + "PageData": null } ] diff --git a/examples/Kentico.Xperience.UMT.Example.AdminApp/Data/Samples.json b/examples/Kentico.Xperience.UMT.Example.AdminApp/Data/Samples.json index a848974..6b43fec 100644 --- a/examples/Kentico.Xperience.UMT.Example.AdminApp/Data/Samples.json +++ b/examples/Kentico.Xperience.UMT.Example.AdminApp/Data/Samples.json @@ -1607,5 +1607,52 @@ } ], "PageData": null + }, + { + "$type": "Workspace", + "WorkspaceGUID": "018fe300-d522-4cc8-9888-b7248e922077", + "WorkspaceDisplayName": "Sample Workspace", + "WorkspaceName": "SampleWorkspace" + }, + { + "$type": "ContentItemSimplified", + "ContentItemGUID": "2867f7b2-2db4-429a-b1b7-7596a502b089", + "ContentItemContentFolderGUID": null, + "ContentItemWorkspaceGUID": "018fe300-d522-4cc8-9888-b7248e922077", + "IsSecured": false, + "ContentTypeName": "UMT.Event", + "Name": "EventInSampleWorkspace", + "IsReusable": true, + "ChannelName": null, + "LanguageData": [ + { + "LanguageName": "en-US", + "DisplayName": "Sample workspace Event - en-US", + "VersionStatus": 2, + "IsLatest": true, + "UserGuid": "dbfcc244-2cb9-4934-857f-9d75404c1553", + "ScheduledPublishWhen": null, + "ScheduledUnpublishWhen": null, + "ContentItemData": { + "EventTitle": "en-US Sample workspace Event", + "EventText": "en-US Sample workspace Event (reusable)", + "EventDate": "2024-01-01T00:00:00Z", + "EventRecurrentYearly": true, + "EventTeaser": { + "$assetType": "AssetData", + "Data": "iVBORw0KGgoAAAANSUhEUgAAARsAAABlCAYAAAB9ckckAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABAESURBVHhe7d0JkBxVHQbw/xw7u5sN4b4hXEFABQRBQBOSgAYLVOQMkOIyaFQKTdDiUCCJHBZggaCoIVYlqOG\u002BFBFEQxLuMwY5lAgkHJEjkSvJXnM53\u002Bx7tZ2X1zPdMz1vjv1\u002BVZ3t1zPztnuy75vXr4\u002BJ5QuEiKjG4uonEVFNMWyIyAmGDRE5wbAhIicYNkTkBMOGiJxg2BCREwwbInKCYUNETjBsiMgJhg0ROcGwISInGDZE5ERLXfWdfWWJZJe/INk3/yO5d5dL7n9vS371\u002B5LvWSOSSRe2Ni6xVIfEhm8osY02l/hm20l8m10kMXJ3SYzaW\u002BKbbK1qIqKoNXXY5D9aJelnHpDMkoWSefExyff1qEcqk9h2lCT3HCPJfQ\u002BV5KcOUkuJKApNGTbpxQ9K\u002BqHbJf30X9WS6MW32F7aRh8lqXHHS3xT9niIqtVUYZN\u002B5C7pu29OYVfpRbXEjdQhJ0j74ZMlvvXOagkRhdUUYZN5bpH03vkLyb7yD7WkPtoPP0Paj50qsfZOtYSIgmrosMHAbu\u002B8y6R/wS1qSf3FN9lKOk48V9o\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XVCho46Klo6Ong\u002BXjtwOvPkd47rlGPDowHlYLn41qqauU\u002BeLduF2miYdp2nxAyfr2gRoL1R6/MO91www3qUWoW7sLmxcfUXHWCBo6G56\u002B9ZFJxtwmTGRze55qiChot89Ljas4dfNKjcZqwS4Hdp1aD7bLtLmEsi\u002BrLSdhkl70g\u002Be7VqlS9coGTeck/iEx\u002BdUQdNJBZ\u002Bqyac8dv92HOnMpOQWgG5hhUqXEscsdN2NTge578Age3kAgzvoI6UJdXLYIGssueV3Nu\u002BI3TtNqAsEn32nDsAxODpjE4ORrV\u002B/uLpe/\u002B9QftooDdIAzy4icCwgyOIKKoI6gNfvmYxDfeUpWqU\u002BpolB7nMAX9lPcOtOLwOsp6F6XU4XXA68xD8qeeeuo6Y0S6TsByrJe5\u002B4Pnvv7668XnmaGJ55q9F/162\u002B\u002B31a/pbdW/y7teUOq1JqwnJtSFn6gL9eD1O\u002BywQ/F9C1pXq3ESNmuvPEMyS\u002BozPoAAwYBxbLNtJb9qRXEXq9ojS9XouvAmSe4ezS0u/MIGf9A77bSTWjIIf/RBxmnQyP3Ox9HQYBAgtuCyrRd22xAA5nLNVh/C0gwZP97emu33\u002B/Xmqt1WL9vvtcF7USqsW5WTsFlz/hGSfePfqhRMrHO4JD/9BZFS3z7ZvVrSzxU\u002BwbIZtWBdfufZoPeC3S2/Hozu6QThd3jdz7Azr47sC\u002B78wgaN2tYTwLkm5YRp4IBGY47/2NYLv1/3GPzgOahLh0KtwybstuL1trDGdqGuctvnhfctTI\u002BpFTgJm4/PPEjyH76nSuUld99fhk37jcSGb6SW\u002BMt/uFK6r5u63qAwAgMXavpB2HgPgWu4wjvMdVB\u002B9fjpOPlCaf9yNJ9qYRq13ye7l\u002B1THvXhUx0/dYiZ9Zt1B/2Et/GGVy3DBo/jeWHZwjVsaGkIm3K9pVbi5tB37xo1E0z7sdMCBQ3gXr8dJ5yjSoO859rYIFAQSF7ozYS94BK7Z6H0rlUztWELGvxRlwsaNBYzaPAa9IbQIH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fdu\u002BNtXRqXjlIvUHBFB3cIGOgsNMrnbfqoUPXzHeP/8m1RpUHyL7dVcbXSecVmk14IRtYK6DBB75d57o3gnv9wHwb9XKqzkXgcXr7jGF99JYXPzH62Uvnt/qx6NVvsR35SOkyrfRSRqVXUPG8i8/LSsveyUwky/WtKcUmOOls5vX6lKRORV190oLbnb/tJ19qziwHGzwmF2Bg2Rv4Zp3cm9D5auc\u002BcO7Oo0GfRobOfzENGghtiN8souf1G6r5tW/JqWZoDD2x0nnqtKROSn4cIG8N1RPbPPl/RT96slDSgWk87Jl0lqfHX36CEaKhoybDQcMeq98aeq1DjwXeQ4jyYxsjY3cidqRQ0dNpB9c6n03XqlpBc/qJbUUVu7dBw3rXh4m4jCafiw0dJP3Sd998yS7GvPqyVupb50srQf\u002BV2Jb7yFWkJEYTRN2GjpJ\u002B6V/vk3rnNT81qJdXRJavzEYtDEtxyplhJRJZoubDRcipB\u002B/B5JP/1A8SzkKOGM47YDDpcUbuWZTKmlRFSNpg0bLwRP5qXHi9/ggN2s3PvvqEcCiCeK39iJyxnwvU74upVY14bqQSKKSkuEjSm/\u002BoPiFd8Infzq9yXfs0Ykky5sbVwk1VEIkxES32jz4s2x4jX8HnIiGtSSYUNEjad5L0YioqbCsCEiJxg2ROQEw4aInGDYEJETDBsicoJhQ0ROMGyIyAmGDRE5wbAhIicYNkTkBMOGiJxg2BCREwwbInKCYUNETsTefmsF72dDRDUXu0v6GTZN5P3E2/JO2zLpj/WoJUTNgbtRTYRBQ81L5P9tTCaxUJPzFgAAAABJRU5ErkJggg==", + "ContentItemGuid": "2867f7b2-2db4-429a-b1b7-7596a502b089", + "Identifier": "57c26660-ef2f-4288-8f30-886135c2c8fb", + "Name": "byteArraySample.jpg", + "Extension": ".jpg", + "Size": null, + "LastModified": null, + "ImageWidth": null, + "ImageHeight": null + } + } + } + ], + "PageData": null } ] diff --git a/examples/Kentico.Xperience.UMT.Examples/SampleProvider.cs b/examples/Kentico.Xperience.UMT.Examples/SampleProvider.cs index 0be021c..c26d10d 100644 --- a/examples/Kentico.Xperience.UMT.Examples/SampleProvider.cs +++ b/examples/Kentico.Xperience.UMT.Examples/SampleProvider.cs @@ -149,6 +149,9 @@ public static List GetFullSample() sourceData.Add(ContentItemSimplifiedSamples.SampleFaqContentItemSimplifiedModel); // references sample content subfolder sourceData.Add(ContentItemSimplifiedSamples.SampleEventContentItemWithAsset); + sourceData.Add(WorkspaceSamples.SampleWorkspace); + sourceData.Add(ContentItemSimplifiedSamples.EventInSampleWorkspace); + return sourceData; } } diff --git a/examples/Kentico.Xperience.UMT.Examples/Samples/ContentItemSimplifiedSamples.cs b/examples/Kentico.Xperience.UMT.Examples/Samples/ContentItemSimplifiedSamples.cs index f317fd3..eb61bff 100644 --- a/examples/Kentico.Xperience.UMT.Examples/Samples/ContentItemSimplifiedSamples.cs +++ b/examples/Kentico.Xperience.UMT.Examples/Samples/ContentItemSimplifiedSamples.cs @@ -11,6 +11,7 @@ public static class ContentItemSimplifiedSamples public static readonly Guid SampleArticleContentItemGuid = new("37C3F5DD-6F2A-4EFF-B46E-A36EDDEBF572"); public static readonly Guid SampleFaqContentItemGuid = new("F9CB9484-CE90-460F-A5C8-AD953E2B9286"); public static readonly Guid SampleEvent2024ContentItemGuid = new("C82CDC96-65EC-4F4C-AEC2-3D657E6D5CE1"); + public static readonly Guid EventInSampleWorkspaceGuid = new("2867F7B2-2DB4-429A-B1B7-7596A502B089"); public static readonly Guid SampleArticleWebPageGuid = new("4EA03DE4-977E-48AA-9340-BABF3D23BAFA"); @@ -361,4 +362,42 @@ .. ContentLanguageSamples.Languages.Select(x => x.ContentLanguageName).Except(la } ], }; + + [Sample("ContentItemSimplifiedModel.Sample.EventInSampleWorkspace", "This sample describes how to import reusable content item into non-default workspace", "Reusable content item sample in non-default workspace")] + public static ContentItemSimplifiedModel EventInSampleWorkspace => new() + { + ContentItemGUID = EventInSampleWorkspaceGuid, + Name = "EventInSampleWorkspace", + IsSecured = false, + ContentTypeName = DataClassSamples.EventDataClass.ClassName, + IsReusable = true, + ContentItemWorkspaceGUID = WorkspaceSamples.SampleWorkspaceGuid, + LanguageData = + [ + new() + { + LanguageName = ContentLanguageSamples.SampleContentLanguageEnUs.ContentLanguageName!, + DisplayName = "Sample workspace Event - en-US", + VersionStatus = VersionStatus.Published, + UserGuid = UserSamples.SampleAdminGuid, + ContentItemData = new Dictionary + { + ["EventTitle"] = "en-US Sample workspace Event", + ["EventText"] = "en-US Sample workspace Event (reusable)", + ["EventDate"] = new DateTime(2024, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc), + ["EventRecurrentYearly"] = true, + ["EventTeaser"] = new AssetDataSource + { + ContentItemGuid = EventInSampleWorkspaceGuid, + Identifier = new Guid("57C26660-EF2F-4288-8F30-886135C2C8FB"), + Name = "byteArraySample.jpg", + Extension = ".jpg", + Size = null, + LastModified = null, + Data = [137, 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, 73, 72, 68, 82, 0, 0, 1, 27, 0, 0, 0, 101, 8, 6, 0, 0, 0, 125, 114, 71, 36, 0, 0, 0, 1, 115, 82, 71, 66, 0, 174, 206, 28, 233, 0, 0, 0, 4, 103, 65, 77, 65, 0, 0, 177, 143, 11, 252, 97, 5, 0, 0, 0, 9, 112, 72, 89, 115, 0, 0, 14, 195, 0, 0, 14, 195, 1, 199, 111, 168, 100, 0, 0, 16, 4, 73, 68, 65, 84, 120, 94, 237, 221, 9, 144, 28, 85, 29, 6, 240, 255, 28, 59, 187, 155, 13, 225, 190, 33, 92, 65, 64, 5, 4, 65, 64, 19, 146, 128, 6, 11, 84, 228, 12, 144, 226, 50, 104, 84, 10, 77, 208, 226, 80, 32, 137, 28, 22, 96, 129, 160, 168, 33, 86, 37, 168, 225, 190, 20, 17, 68, 67, 18, 238, 51, 6, 57, 148, 8, 36, 28, 145, 35, 145, 43, 201, 94, 115, 57, 223, 236, 123, 181, 157, 151, 215, 51, 221, 51, 61, 111, 142, 253, 126, 85, 157, 237, 215, 51, 243, 182, 123, 178, 239, 155, 215, 175, 143, 137, 229, 11, 132, 136, 168, 198, 226, 234, 39, 17, 81, 77, 49, 108, 136, 200, 9, 134, 13, 17, 57, 193, 176, 33, 34, 39, 24, 54, 68, 228, 4, 195, 134, 136, 156, 96, 216, 16, 145, 19, 12, 27, 34, 114, 130, 97, 67, 68, 78, 48, 108, 136, 200, 9, 134, 13, 17, 57, 193, 176, 33, 34, 39, 24, 54, 68, 228, 68, 75, 93, 245, 157, 125, 101, 137, 100, 151, 191, 32, 217, 55, 255, 35, 185, 119, 151, 75, 238, 127, 111, 75, 126, 245, 251, 146, 239, 89, 35, 146, 73, 23, 182, 54, 46, 177, 84, 135, 196, 134, 111, 40, 177, 141, 54, 151, 248, 102, 219, 73, 124, 155, 93, 36, 49, 114, 119, 73, 140, 218, 91, 226, 155, 108, 173, 106, 34, 162, 168, 53, 117, 216, 228, 63, 90, 37, 233, 103, 30, 144, 204, 146, 133, 146, 121, 241, 49, 201, 247, 245, 168, 71, 42, 147, 216, 118, 148, 36, 247, 28, 35, 201, 125, 15, 149, 228, 167, 14, 82, 75, 137, 40, 10, 77, 25, 54, 233, 197, 15, 74, 250, 161, 219, 37, 253, 244, 95, 213, 146, 232, 197, 183, 216, 94, 218, 70, 31, 37, 169, 113, 199, 75, 124, 83, 246, 120, 136, 170, 213, 84, 97, 147, 126, 228, 46, 233, 187, 111, 78, 97, 87, 233, 69, 181, 196, 141, 212, 33, 39, 72, 251, 225, 147, 37, 190, 245, 206, 106, 9, 17, 133, 213, 20, 97, 147, 121, 110, 145, 244, 222, 249, 11, 201, 190, 242, 15, 181, 164, 62, 218, 15, 63, 67, 218, 143, 157, 42, 177, 246, 78, 181, 132, 136, 130, 106, 232, 176, 193, 192, 110, 239, 188, 203, 164, 127, 193, 45, 106, 73, 253, 197, 55, 217, 74, 58, 78, 60, 87, 218, 62, 255, 53, 181, 132, 136, 130, 104, 216, 176, 193, 160, 111, 207, 156, 139, 36, 183, 106, 133, 90, 210, 88, 176, 107, 213, 249, 141, 139, 11, 239, 32, 207, 30, 32, 10, 162, 33, 195, 166, 239, 158, 89, 210, 123, 243, 21, 170, 212, 184, 18, 59, 239, 41, 157, 83, 174, 148, 196, 118, 187, 170, 37, 68, 228, 167, 225, 194, 166, 103, 238, 116, 233, 255, 219, 31, 84, 169, 241, 197, 186, 54, 148, 97, 103, 93, 43, 201, 61, 71, 171, 37, 68, 100, 211, 80, 97, 211, 253, 171, 179, 37, 253, 232, 31, 85, 169, 185, 12, 155, 246, 107, 105, 219, 111, 130, 42, 17, 145, 169, 97, 6, 28, 154, 57, 104, 160, 251, 234, 239, 72, 102, 241, 124, 85, 34, 34, 83, 67, 132, 77, 207, 220, 25, 53, 13, 154, 248, 230, 219, 21, 167, 90, 91, 123, 205, 153, 146, 93, 186, 88, 149, 136, 200, 171, 238, 187, 81, 125, 127, 190, 94, 122, 111, 186, 92, 149, 162, 149, 58, 248, 24, 233, 156, 178, 238, 64, 115, 223, 157, 215, 74, 255, 67, 119, 72, 110, 229, 91, 106, 73, 180, 16, 106, 195, 103, 220, 94, 188, 246, 138, 136, 6, 213, 181, 103, 83, 60, 89, 175, 70, 65, 227, 167, 253, 232, 239, 21, 67, 168, 86, 16, 98, 221, 179, 207, 83, 37, 34, 210, 234, 22, 54, 249, 222, 181, 210, 51, 103, 186, 42, 185, 149, 216, 227, 115, 106, 174, 54, 112, 142, 80, 223, 221, 215, 169, 18, 17, 65, 221, 194, 6, 103, 6, 231, 86, 190, 169, 74, 110, 225, 214, 18, 181, 214, 123, 219, 85, 146, 125, 237, 159, 170, 68, 68, 117, 9, 155, 204, 243, 15, 75, 255, 131, 55, 171, 82, 227, 194, 238, 86, 199, 49, 223, 87, 165, 240, 122, 111, 249, 153, 154, 35, 162, 186, 132, 77, 239, 157, 215, 170, 185, 240, 208, 248, 49, 213, 114, 220, 5, 244, 224, 50, 198, 120, 42, 13, 156, 204, 11, 143, 74, 250, 145, 187, 85, 137, 104, 104, 115, 30, 54, 233, 71, 255, 84, 209, 225, 97, 28, 229, 233, 186, 96, 94, 177, 241, 99, 66, 16, 108, 240, 243, 69, 53, 57, 164, 109, 30, 197, 170, 102, 80, 25, 151, 94, 16, 81, 29, 194, 166, 239, 254, 57, 106, 46, 156, 206, 41, 151, 75, 114, 143, 3, 85, 105, 64, 49, 128, 126, 60, 47, 210, 192, 49, 131, 70, 67, 224, 84, 34, 251, 214, 82, 233, 127, 248, 46, 85, 34, 26, 186, 156, 134, 13, 142, 210, 84, 50, 104, 138, 198, 111, 6, 141, 22, 101, 224, 248, 5, 13, 160, 254, 74, 127, 71, 255, 252, 121, 106, 142, 104, 232, 114, 122, 82, 95, 247, 181, 103, 73, 250, 201, 191, 168, 82, 112, 104, 228, 182, 158, 141, 23, 206, 111, 89, 123, 233, 164, 117, 78, 214, 243, 11, 15, 60, 103, 245, 212, 177, 170, 52, 160, 84, 208, 104, 31, 77, 218, 69, 205, 133, 55, 124, 250, 109, 146, 248, 196, 190, 170, 20, 141, 185, 115, 231, 202, 162, 69, 139, 84, 105, 192, 216, 177, 99, 229, 180, 211, 78, 83, 165, 117, 45, 95, 190, 92, 102, 206, 156, 169, 74, 235, 154, 62, 125, 186, 236, 184, 227, 142, 170, 212, 252, 78, 63, 253, 116, 89, 184, 112, 97, 113, 155, 176, 109, 227, 198, 141, 83, 143, 80, 189, 56, 11, 155, 252, 154, 15, 229, 227, 41, 159, 85, 165, 240, 42, 9, 156, 228, 30, 7, 72, 215, 5, 55, 22, 231, 189, 204, 176, 9, 18, 52, 107, 47, 57, 73, 50, 255, 122, 82, 149, 194, 75, 77, 56, 69, 58, 79, 141, 246, 188, 34, 52, 40, 4, 142, 23, 26, 214, 140, 25, 51, 84, 105, 93, 227, 199, 143, 47, 54, 64, 211, 130, 5, 11, 90, 170, 49, 218, 222, 151, 101, 203, 150, 181, 84, 152, 54, 35, 103, 187, 81, 248, 22, 132, 106, 32, 32, 122, 102, 157, 91, 104, 240, 79, 168, 37, 235, 67, 32, 97, 151, 74, 67, 56, 232, 224, 241, 74, 63, 124, 167, 154, 27, 8, 164, 114, 65, 211, 51, 235, 156, 170, 130, 6, 50, 53, 188, 57, 123, 16, 8, 32, 91, 208, 52, 203, 167, 62, 214, 221, 156, 108, 208, 123, 51, 131, 6, 16, 64, 84, 95, 206, 194, 6, 227, 53, 213, 10, 26, 56, 232, 169, 104, 232, 233, 224, 249, 120, 237, 192, 235, 207, 145, 222, 59, 174, 81, 143, 14, 140, 7, 149, 130, 231, 227, 90, 170, 106, 229, 62, 120, 183, 110, 23, 105, 162, 97, 218, 118, 159, 16, 50, 126, 189, 160, 70, 130, 245, 71, 175, 204, 59, 221, 112, 195, 13, 234, 81, 106, 22, 238, 194, 230, 197, 199, 212, 92, 117, 130, 6, 142, 134, 231, 175, 189, 100, 82, 113, 183, 9, 147, 25, 28, 222, 231, 154, 162, 10, 26, 45, 243, 210, 227, 106, 206, 29, 124, 210, 163, 113, 154, 176, 75, 129, 221, 167, 86, 131, 237, 178, 237, 46, 97, 44, 139, 234, 203, 73, 216, 100, 151, 189, 32, 249, 238, 213, 170, 84, 189, 114, 129, 147, 121, 201, 63, 136, 76, 126, 117, 68, 29, 52, 144, 89, 250, 172, 154, 115, 199, 111, 247, 97, 206, 156, 202, 78, 65, 104, 6, 230, 24, 84, 169, 113, 44, 114, 199, 77, 216, 212, 224, 123, 158, 252, 2, 7, 183, 144, 8, 51, 190, 130, 58, 80, 151, 87, 45, 130, 6, 178, 203, 158, 87, 115, 110, 248, 141, 211, 180, 218, 128, 176, 73, 247, 218, 112, 236, 3, 19, 131, 166, 49, 56, 57, 26, 213, 251, 251, 139, 165, 239, 254, 245, 7, 237, 162, 128, 221, 32, 12, 242, 226, 39, 2, 194, 12, 142, 32, 162, 168, 35, 168, 13, 126, 249, 152, 196, 55, 222, 82, 149, 170, 83, 234, 104, 148, 30, 231, 48, 5, 253, 148, 247, 14, 180, 226, 240, 58, 202, 122, 23, 165, 212, 225, 117, 192, 235, 204, 67, 242, 167, 158, 122, 234, 58, 99, 68, 186, 78, 192, 114, 172, 151, 185, 251, 131, 231, 190, 254, 250, 235, 197, 231, 153, 161, 137, 231, 154, 189, 23, 253, 122, 219, 239, 183, 213, 175, 233, 109, 213, 191, 203, 187, 94, 80, 234, 181, 38, 172, 39, 38, 212, 133, 159, 168, 11, 245, 224, 245, 59, 236, 176, 67, 241, 125, 11, 90, 87, 171, 113, 18, 54, 107, 175, 60, 67, 50, 75, 234, 51, 62, 128, 0, 193, 128, 113, 108, 179, 109, 37, 191, 106, 69, 113, 23, 171, 218, 35, 75, 213, 232, 186, 240, 38, 73, 238, 30, 205, 45, 46, 252, 194, 6, 127, 208, 59, 237, 180, 147, 90, 50, 8, 127, 244, 65, 198, 105, 208, 200, 253, 206, 199, 209, 208, 96, 16, 32, 182, 224, 178, 173, 23, 118, 219, 16, 0, 230, 114, 205, 86, 31, 194, 210, 12, 25, 63, 222, 222, 154, 237, 247, 251, 245, 230, 170, 221, 86, 47, 219, 239, 181, 193, 123, 81, 42, 172, 91, 149, 147, 176, 89, 115, 254, 17, 146, 125, 227, 223, 170, 20, 76, 172, 115, 184, 36, 63, 253, 5, 145, 82, 223, 62, 217, 189, 90, 210, 207, 21, 62, 193, 178, 25, 181, 96, 93, 126, 231, 217, 160, 247, 130, 221, 45, 191, 30, 140, 238, 233, 4, 225, 119, 120, 221, 207, 176, 51, 175, 142, 236, 11, 238, 252, 194, 6, 141, 218, 214, 19, 192, 185, 38, 229, 132, 105, 224, 128, 70, 99, 142, 255, 216, 214, 11, 191, 95, 247, 24, 252, 224, 57, 168, 75, 135, 66, 173, 195, 38, 236, 182, 226, 245, 182, 176, 198, 118, 161, 174, 114, 219, 231, 133, 247, 45, 76, 143, 169, 21, 56, 9, 155, 143, 207, 60, 72, 242, 31, 190, 167, 74, 229, 37, 119, 223, 95, 134, 77, 251, 141, 196, 134, 111, 164, 150, 248, 203, 127, 184, 82, 186, 175, 155, 186, 222, 160, 48, 2, 3, 23, 106, 250, 65, 216, 120, 15, 129, 107, 184, 194, 59, 204, 117, 80, 126, 245, 248, 233, 56, 249, 66, 105, 255, 114, 52, 159, 106, 97, 26, 181, 223, 39, 187, 151, 237, 83, 30, 245, 225, 83, 29, 63, 117, 136, 153, 245, 155, 117, 7, 253, 132, 183, 241, 134, 87, 45, 195, 6, 143, 227, 121, 97, 217, 194, 53, 108, 104, 105, 8, 155, 114, 189, 165, 86, 226, 230, 208, 119, 239, 26, 53, 19, 76, 251, 177, 211, 2, 5, 13, 224, 94, 191, 29, 39, 156, 163, 74, 131, 188, 231, 218, 216, 32, 80, 16, 72, 94, 232, 205, 132, 189, 224, 18, 187, 103, 161, 244, 174, 85, 51, 181, 97, 11, 26, 252, 81, 151, 11, 26, 52, 22, 51, 104, 240, 26, 244, 134, 208, 32, 116, 35, 67, 163, 53, 63, 141, 131, 54, 90, 188, 78, 215, 129, 117, 178, 241, 174, 63, 158, 131, 231, 219, 158, 139, 117, 195, 99, 122, 50, 215, 169, 28, 219, 58, 163, 14, 252, 46, 172, 31, 234, 180, 189, 103, 102, 168, 224, 189, 177, 5, 141, 94, 63, 93, 151, 109, 253, 240, 126, 135, 233, 13, 53, 59, 39, 97, 147, 207, 164, 213, 92, 0, 137, 182, 66, 163, 15, 55, 166, 145, 216, 101, 239, 194, 150, 36, 84, 105, 64, 144, 91, 127, 198, 141, 160, 48, 195, 167, 22, 66, 189, 23, 17, 193, 9, 112, 229, 254, 168, 109, 13, 6, 141, 196, 132, 70, 131, 158, 142, 23, 234, 46, 247, 201, 142, 215, 33, 184, 16, 90, 104, 136, 104, 164, 182, 250, 189, 235, 137, 231, 233, 231, 155, 80, 31, 30, 211, 147, 173, 49, 251, 177, 245, 186, 244, 250, 97, 189, 244, 239, 181, 133, 132, 185, 173, 230, 64, 52, 232, 192, 210, 235, 142, 159, 126, 151, 75, 148, 123, 223, 90, 137, 155, 158, 77, 136, 239, 195, 142, 117, 118, 225, 223, 129, 66, 80, 104, 192, 185, 172, 42, 12, 200, 173, 12, 255, 29, 225, 149, 28, 133, 202, 134, 29, 108, 142, 215, 246, 45, 199, 31, 182, 9, 13, 4, 93, 253, 82, 112, 244, 196, 132, 70, 137, 198, 103, 78, 182, 231, 150, 99, 6, 20, 216, 66, 164, 92, 40, 70, 193, 47, 32, 76, 8, 7, 221, 51, 241, 78, 222, 208, 48, 195, 2, 143, 225, 61, 178, 193, 107, 77, 182, 117, 105, 85, 78, 194, 38, 86, 106, 144, 215, 148, 203, 169, 153, 224, 210, 139, 255, 174, 230, 6, 149, 11, 1, 4, 139, 121, 84, 42, 183, 106, 69, 168, 192, 193, 115, 195, 158, 143, 19, 75, 117, 168, 185, 218, 192, 225, 85, 219, 31, 53, 26, 113, 169, 221, 29, 219, 39, 44, 186, 249, 182, 201, 214, 51, 8, 210, 179, 49, 217, 150, 213, 139, 45, 248, 0, 235, 136, 0, 247, 78, 122, 189, 109, 193, 88, 106, 155, 234, 21, 174, 141, 194, 77, 216, 116, 141, 80, 115, 229, 229, 187, 63, 46, 94, 71, 148, 123, 251, 181, 242, 211, 127, 95, 149, 254, 133, 183, 74, 207, 236, 31, 169, 87, 15, 42, 119, 190, 12, 6, 118, 77, 120, 62, 174, 165, 194, 107, 189, 215, 83, 217, 38, 188, 30, 207, 13, 11, 223, 13, 94, 107, 104, 16, 182, 79, 106, 221, 83, 177, 169, 245, 31, 125, 35, 5, 75, 84, 219, 26, 69, 61, 67, 41, 108, 220, 156, 103, 243, 147, 137, 146, 121, 249, 25, 85, 114, 11, 23, 90, 234, 19, 246, 180, 106, 111, 23, 81, 141, 174, 31, 206, 150, 228, 62, 135, 168, 82, 117, 108, 71, 93, 16, 50, 8, 20, 252, 17, 227, 113, 91, 55, 31, 61, 31, 243, 83, 214, 118, 68, 197, 22, 88, 126, 80, 159, 174, 211, 182, 94, 216, 29, 177, 125, 178, 199, 98, 235, 239, 50, 155, 127, 146, 88, 47, 115, 55, 16, 129, 106, 235, 193, 65, 185, 223, 31, 102, 253, 202, 49, 215, 31, 117, 160, 46, 27, 252, 159, 152, 231, 63, 149, 122, 126, 171, 113, 211, 179, 113, 48, 240, 234, 7, 151, 30, 160, 7, 130, 128, 193, 133, 152, 184, 1, 86, 61, 79, 234, 139, 57, 248, 26, 25, 208, 161, 98, 210, 33, 100, 126, 162, 218, 122, 30, 104, 8, 122, 156, 166, 220, 84, 73, 67, 173, 70, 53, 61, 2, 236, 106, 154, 252, 174, 34, 199, 182, 33, 232, 188, 147, 55, 148, 205, 247, 13, 143, 249, 173, 155, 25, 112, 48, 148, 46, 16, 117, 18, 54, 137, 173, 119, 86, 115, 209, 67, 175, 5, 231, 211, 108, 56, 239, 213, 226, 13, 209, 109, 71, 148, 176, 219, 83, 234, 228, 59, 156, 91, 131, 215, 99, 66, 79, 168, 150, 71, 165, 18, 219, 212, 238, 189, 48, 149, 11, 28, 47, 219, 31, 125, 169, 6, 136, 215, 123, 167, 106, 26, 127, 37, 74, 53, 234, 114, 108, 193, 136, 250, 176, 93, 94, 88, 134, 49, 42, 252, 244, 78, 222, 128, 177, 213, 101, 6, 18, 160, 110, 212, 53, 148, 185, 9, 155, 29, 246, 80, 115, 209, 194, 185, 52, 56, 67, 88, 135, 3, 238, 226, 23, 246, 126, 196, 230, 73, 124, 197, 58, 35, 190, 137, 186, 150, 24, 185, 123, 225, 159, 164, 42, 185, 225, 55, 126, 131, 198, 224, 109, 92, 104, 52, 102, 195, 193, 39, 49, 186, 253, 248, 169, 159, 143, 134, 164, 7, 137, 245, 132, 70, 111, 235, 25, 69, 5, 235, 101, 171, 31, 235, 166, 39, 51, 40, 74, 65, 125, 120, 95, 188, 176, 13, 216, 46, 212, 133, 109, 196, 238, 17, 126, 154, 176, 30, 222, 117, 193, 123, 107, 174, 27, 234, 194, 107, 245, 186, 161, 46, 91, 208, 96, 61, 194, 172, 119, 179, 115, 19, 54, 56, 15, 38, 98, 8, 5, 219, 141, 175, 16, 18, 65, 47, 53, 128, 182, 49, 71, 171, 185, 65, 168, 163, 22, 129, 147, 24, 245, 25, 53, 231, 22, 26, 150, 25, 36, 160, 63, 181, 1, 13, 166, 84, 47, 72, 135, 140, 249, 137, 13, 97, 198, 118, 162, 134, 245, 195, 20, 150, 223, 58, 163, 46, 219, 54, 106, 230, 123, 132, 247, 205, 118, 88, 31, 74, 173, 27, 94, 55, 84, 198, 106, 52, 55, 99, 54, 35, 54, 45, 244, 110, 62, 169, 74, 213, 243, 11, 26, 205, 12, 137, 182, 125, 15, 149, 246, 163, 206, 146, 246, 175, 78, 145, 196, 174, 251, 168, 165, 3, 252, 2, 165, 22, 129, 19, 213, 5, 152, 97, 249, 5, 9, 120, 119, 129, 240, 60, 219, 39, 117, 41, 149, 14, 172, 134, 133, 223, 19, 102, 189, 202, 65, 93, 126, 39, 218, 249, 241, 219, 86, 244, 78, 240, 254, 6, 173, 11, 117, 248, 253, 127, 180, 50, 39, 97, 3, 201, 189, 198, 168, 185, 234, 148, 11, 26, 240, 94, 39, 213, 121, 250, 79, 100, 216, 15, 174, 151, 142, 99, 167, 22, 47, 107, 24, 62, 227, 118, 73, 141, 59, 94, 61, 58, 112, 136, 220, 79, 212, 129, 147, 220, 115, 180, 154, 115, 15, 13, 193, 175, 231, 226, 221, 93, 64, 195, 65, 163, 42, 215, 91, 193, 227, 104, 172, 46, 130, 6, 244, 250, 135, 9, 135, 114, 80, 151, 222, 214, 82, 245, 226, 113, 28, 33, 43, 181, 173, 232, 61, 234, 51, 164, 253, 234, 210, 219, 224, 42, 160, 27, 141, 147, 67, 223, 144, 93, 250, 172, 172, 153, 57, 216, 200, 43, 17, 36, 104, 188, 55, 190, 138, 111, 59, 74, 54, 184, 98, 253, 27, 141, 103, 95, 89, 34, 107, 166, 15, 92, 59, 133, 32, 169, 228, 107, 98, 194, 194, 21, 236, 93, 231, 255, 78, 149, 154, 135, 222, 21, 192, 164, 27, 81, 189, 27, 138, 94, 31, 208, 235, 84, 42, 44, 130, 50, 183, 85, 79, 149, 194, 238, 24, 234, 194, 251, 21, 197, 250, 53, 59, 103, 97, 3, 171, 207, 57, 76, 114, 43, 94, 81, 165, 112, 16, 10, 165, 174, 226, 6, 243, 14, 123, 109, 7, 30, 33, 195, 206, 178, 156, 188, 247, 222, 155, 178, 122, 218, 96, 131, 113, 17, 56, 157, 147, 47, 149, 212, 33, 39, 168, 18, 209, 208, 227, 108, 55, 10, 82, 163, 191, 174, 230, 194, 67, 175, 166, 148, 106, 110, 229, 137, 0, 9, 114, 19, 117, 236, 82, 85, 2, 151, 40, 180, 141, 62, 82, 149, 136, 134, 38, 183, 97, 51, 110, 98, 161, 229, 133, 188, 200, 82, 41, 117, 43, 135, 40, 238, 25, 28, 36, 112, 114, 171, 42, 235, 213, 180, 141, 159, 88, 8, 156, 16, 215, 135, 17, 181, 32, 167, 97, 19, 27, 177, 137, 180, 79, 56, 69, 149, 194, 241, 187, 179, 94, 20, 65, 163, 149, 10, 28, 60, 134, 175, 132, 169, 68, 251, 132, 147, 213, 28, 209, 208, 229, 52, 108, 32, 117, 248, 100, 53, 23, 14, 26, 187, 247, 155, 44, 33, 202, 160, 209, 116, 224, 120, 47, 212, 196, 188, 249, 221, 224, 65, 165, 190, 56, 73, 226, 91, 173, 127, 63, 96, 162, 161, 198, 233, 0, 177, 214, 123, 219, 85, 210, 119, 247, 117, 170, 20, 14, 206, 248, 197, 137, 120, 8, 128, 114, 65, 19, 116, 128, 216, 15, 198, 105, 108, 189, 169, 192, 146, 109, 178, 193, 213, 11, 37, 190, 201, 86, 106, 1, 209, 208, 229, 188, 103, 3, 29, 199, 76, 149, 248, 150, 235, 95, 12, 23, 4, 238, 247, 171, 111, 3, 81, 107, 85, 5, 77, 65, 199, 113, 103, 51, 104, 136, 148, 186, 132, 13, 238, 86, 215, 113, 226, 121, 170, 16, 94, 181, 33, 224, 2, 110, 218, 222, 254, 149, 111, 169, 18, 17, 213, 39, 108, 10, 218, 246, 159, 32, 169, 195, 236, 215, 148, 68, 37, 247, 110, 248, 219, 87, 70, 165, 227, 148, 139, 212, 28, 17, 65, 221, 194, 6, 58, 11, 13, 50, 185, 219, 126, 170, 20, 61, 124, 199, 120, 255, 252, 155, 84, 105, 80, 124, 139, 237, 213, 92, 109, 116, 158, 113, 89, 164, 215, 130, 17, 181, 130, 186, 12, 16, 123, 229, 222, 123, 163, 120, 39, 191, 220, 7, 193, 191, 87, 42, 172, 228, 94, 7, 23, 175, 184, 198, 23, 223, 73, 97, 115, 243, 31, 173, 148, 190, 123, 127, 171, 30, 141, 86, 251, 17, 223, 148, 142, 147, 42, 223, 69, 36, 106, 85, 117, 15, 27, 200, 188, 252, 180, 172, 189, 236, 148, 194, 76, 191, 90, 210, 156, 82, 99, 142, 150, 206, 111, 95, 169, 74, 68, 228, 85, 215, 221, 40, 45, 185, 219, 254, 210, 117, 246, 172, 226, 192, 113, 179, 194, 97, 118, 6, 13, 145, 191, 134, 105, 221, 201, 189, 15, 150, 174, 115, 231, 14, 236, 234, 52, 25, 244, 104, 108, 231, 243, 16, 209, 160, 134, 216, 141, 242, 202, 46, 127, 81, 186, 175, 155, 86, 252, 154, 150, 102, 128, 195, 219, 29, 39, 158, 171, 74, 68, 228, 167, 225, 194, 6, 240, 221, 81, 61, 179, 207, 151, 244, 83, 247, 171, 37, 13, 40, 22, 147, 206, 201, 151, 73, 106, 124, 117, 247, 232, 33, 26, 42, 26, 50, 108, 52, 28, 49, 234, 189, 241, 167, 170, 212, 56, 240, 93, 228, 56, 143, 38, 49, 178, 54, 55, 114, 39, 106, 69, 13, 29, 54, 144, 125, 115, 169, 244, 221, 122, 165, 164, 23, 63, 168, 150, 212, 81, 91, 187, 116, 28, 55, 173, 120, 120, 155, 136, 194, 105, 248, 176, 209, 210, 79, 221, 39, 125, 247, 204, 146, 236, 107, 207, 171, 37, 110, 165, 190, 116, 178, 180, 31, 249, 93, 137, 111, 188, 133, 90, 66, 68, 97, 52, 77, 216, 104, 233, 39, 238, 149, 254, 249, 55, 174, 115, 83, 243, 90, 137, 117, 116, 73, 106, 252, 196, 98, 208, 196, 183, 28, 169, 150, 18, 81, 37, 154, 46, 108, 52, 92, 138, 144, 126, 252, 30, 73, 63, 253, 64, 241, 44, 228, 40, 225, 140, 227, 182, 3, 14, 151, 20, 110, 229, 153, 76, 169, 165, 68, 84, 141, 166, 13, 27, 47, 4, 79, 230, 165, 199, 139, 223, 224, 128, 221, 172, 220, 251, 239, 168, 71, 2, 136, 39, 138, 223, 216, 137, 203, 25, 240, 189, 78, 248, 186, 149, 88, 215, 134, 234, 65, 34, 138, 74, 75, 132, 141, 41, 191, 250, 131, 226, 21, 223, 8, 157, 252, 234, 247, 37, 223, 179, 70, 36, 147, 46, 108, 109, 92, 36, 213, 81, 8, 147, 17, 18, 223, 104, 243, 226, 205, 177, 226, 53, 252, 30, 114, 34, 26, 212, 146, 97, 67, 68, 141, 167, 121, 47, 70, 34, 162, 166, 194, 176, 33, 34, 39, 24, 54, 68, 228, 4, 195, 134, 136, 156, 96, 216, 16, 145, 19, 12, 27, 34, 114, 130, 97, 67, 68, 78, 48, 108, 136, 200, 9, 134, 13, 17, 57, 193, 176, 33, 34, 39, 24, 54, 68, 228, 4, 195, 134, 136, 156, 96, 216, 16, 145, 19, 12, 27, 34, 114, 130, 97, 67, 68, 78, 196, 222, 126, 107, 5, 239, 103, 67, 68, 53, 23, 187, 75, 250, 25, 54, 77, 228, 253, 196, 219, 242, 78, 219, 50, 233, 143, 245, 168, 37, 68, 205, 129, 187, 81, 77, 132, 65, 67, 205, 75, 228, 255, 109, 76, 38, 177, 80, 147, 243, 22, 0, 0, 0, 0, 73, 69, 78, 68, 174, 66, 96, 130] + } + }, + }, + ], + }; } diff --git a/examples/Kentico.Xperience.UMT.Examples/Samples/WorkspaceSamples.cs b/examples/Kentico.Xperience.UMT.Examples/Samples/WorkspaceSamples.cs new file mode 100644 index 0000000..fdaa6b0 --- /dev/null +++ b/examples/Kentico.Xperience.UMT.Examples/Samples/WorkspaceSamples.cs @@ -0,0 +1,16 @@ +using Kentico.Xperience.UMT.Model; + +namespace Kentico.Xperience.UMT.Examples; + +public static class WorkspaceSamples +{ + public static readonly Guid SampleWorkspaceGuid = new Guid("018FE300-D522-4CC8-9888-B7248E922077"); + + [Sample("WorkspaceModel.Sample", "", "Workspace sample")] + public static WorkspaceModel SampleWorkspace => new() + { + WorkspaceGUID = SampleWorkspaceGuid, + WorkspaceName = "SampleWorkspace", + WorkspaceDisplayName = "Sample Workspace", + }; +} diff --git a/src/Kentico.Xperience.UMT/InfoAdapter/AdapterFactory.cs b/src/Kentico.Xperience.UMT/InfoAdapter/AdapterFactory.cs index 6a0509f..3cce3b0 100644 --- a/src/Kentico.Xperience.UMT/InfoAdapter/AdapterFactory.cs +++ b/src/Kentico.Xperience.UMT/InfoAdapter/AdapterFactory.cs @@ -46,6 +46,7 @@ internal class AdapterFactory(ILoggerFactory loggerFactory, UmtModelService mode ContentFolderModel => new ContentFolderAdapter(loggerFactory.CreateLogger(), Service.Resolve>(), Service.Resolve>(), adapterContext), TaxonomyModel => new TaxonomyAdapter(loggerFactory.CreateLogger(), adapterContext), TagModel => new TagAdapter(loggerFactory.CreateLogger(), adapterContext), + WorkspaceModel => new GenericInfoAdapter(loggerFactory.CreateLogger>(), adapterContext), // macro models ContentItemSimplifiedModel => new ContentItemSimplifiedAdapter(providerProxyFactory.CreateProviderProxy(providerProxyContext), providerProxyFactory, Service.Resolve(), this, diff --git a/src/Kentico.Xperience.UMT/Model/WorkspaceModel.cs b/src/Kentico.Xperience.UMT/Model/WorkspaceModel.cs new file mode 100644 index 0000000..1463286 --- /dev/null +++ b/src/Kentico.Xperience.UMT/Model/WorkspaceModel.cs @@ -0,0 +1,32 @@ +using System.ComponentModel.DataAnnotations; +using CMS.ContentEngine; +using Kentico.Xperience.UMT.Attributes; +// ReSharper disable InconsistentNaming + +namespace Kentico.Xperience.UMT.Model; + +/// +/// Model represents XbyK WorkspaceInfo +/// +/// WorkspaceModel.Sample +/// ContentItemSimplifiedModel.Sample.EventInSampleWorkspace +[UmtModel(DISCRIMINATOR)] +public class WorkspaceModel : UmtModel +{ + public const string DISCRIMINATOR = "Workspace"; + + [Map] + [Required] + [UniqueIdProperty] + public Guid? WorkspaceGUID { get; set; } + + [Map] + [Required] + public string? WorkspaceDisplayName { get; set; } + + [Map] + [Required] + public string? WorkspaceName { get; set; } + + protected override (Guid? uniqueId, string? name, string? displayName) GetPrintArgs() => (WorkspaceGUID, NOT_AVAILABLE, NOT_AVAILABLE); +} diff --git a/tests/Kentico.Xperience.UMT.Tests/Tests/Tests_03_ContentHubTests.cs b/tests/Kentico.Xperience.UMT.Tests/Tests/Tests_03_ContentHubTests.cs index 43dcb92..7acfda7 100644 --- a/tests/Kentico.Xperience.UMT.Tests/Tests/Tests_03_ContentHubTests.cs +++ b/tests/Kentico.Xperience.UMT.Tests/Tests/Tests_03_ContentHubTests.cs @@ -1,15 +1,39 @@ using Microsoft.Playwright; + using System.Text.RegularExpressions; namespace TestAfterMigration.Tests { public class Tests_03_ContentHubTests : AdminTestBase { - [Test] - public async Task Test00100_Folder_With_Subfolder_Exists() + private async Task OpenContentHub(string workspace = "Default") { await OpenAdminApplication("Content hub"); await SelectTopDropdownLanguage("English (United States)"); + await SelectTopDropdownWorkspace(workspace); + } + + private async Task SelectTopDropdownWorkspace(string workspaceTitle) + { + if (!(await Page.GetByTestId("WorkspaceSelector").TextContentAsync())?.Contains(workspaceTitle, StringComparison.OrdinalIgnoreCase) ?? false) + { + await Page.GetByTestId("WorkspaceSelector").Locator("div[class^=\"select_\"]").Nth(0).ClickAsync(); + await Page.GetByTestId("WorkspaceSelector").GetByTestId("action-menu").GetByTestId("menu-item").Filter(new LocatorFilterOptions { HasText = workspaceTitle }).ClickAsync(); + await Debounce(); + } + } + + public new async Task SelectTopDropdownLanguage(string languageTitle) + { + await Page.GetByTestId("WorkspaceSelector").Locator("div[class^=\"select_\"]").Nth(1).ClickAsync(); + await Page.GetByTestId("WorkspaceSelector").GetByTestId("action-menu").GetByTestId("menu-item").Filter(new LocatorFilterOptions { HasText = languageTitle }).ClickAsync(); + await Debounce(); + } + + [Test] + public async Task Test00100_Folder_With_Subfolder_Exists() + { + await OpenContentHub(); var folderDiv = Page.Locator("div[class*=\"folder-view\"]"); var parentFolder = folderDiv.GetByRole(AriaRole.Treeitem); @@ -22,8 +46,7 @@ public async Task Test00100_Folder_With_Subfolder_Exists() [Test] public async Task Test00200_Child_Folder_Contains_Item() { - await OpenAdminApplication("Content hub"); - await SelectTopDropdownLanguage("English (United States)"); + await OpenContentHub(); var folderDiv = Page.Locator("div[class*=\"folder-view\"]"); var parentFolder = folderDiv.GetByRole(AriaRole.Treeitem); @@ -38,8 +61,7 @@ public async Task Test00200_Child_Folder_Contains_Item() [Test] public async Task Test00300_Draft_And_Scheduled_Items_Present() { - await OpenAdminApplication("Content hub"); - await SelectTopDropdownLanguage("English (United States)"); + await OpenContentHub(); await Page.GetByLabel("All content items").ClickAsync(); await Debounce(); @@ -51,8 +73,7 @@ public async Task Test00300_Draft_And_Scheduled_Items_Present() [Test] public async Task Test00400_No_Errors_When_Viewing_Tabs() { - await OpenAdminApplication("Content hub"); - await SelectTopDropdownLanguage("English (United States)"); + await OpenContentHub(); await Page.GetByLabel("All content items").ClickAsync(); await Debounce(); @@ -79,5 +100,16 @@ public async Task Test00400_No_Errors_When_Viewing_Tabs() await AssertNoEventlogErrors(); } + [Test] + public async Task Test00500_Published_Item_Exists_In_Sample_Workspace() + { + await OpenContentHub("Sample Workspace"); + + await Page.GetByLabel("All content items").ClickAsync(); + await Debounce(); + + await Assertions.Expect(Page.GetByTestId("table-row").Filter(new LocatorFilterOptions { HasText = "Published" })).Not.ToHaveCountAsync(0); + } + } }