Skip to content

Commit

Permalink
Upgrade of xbyk api to v28.4.1 (#13)
Browse files Browse the repository at this point in the history
* xbk 28.3.3 nugets upgrade

* update sample import for contentItemLanguageMetadata

* add class short name with fallback

* docs fix / update

* xbyk 28.4.1 upgrade + doc udpate

---------

Co-authored-by: winklerjan <[email protected]>
Co-authored-by: Tomáš Krch <[email protected]>
  • Loading branch information
3 people authored Mar 24, 2024
1 parent cf2c8c1 commit 360015a
Show file tree
Hide file tree
Showing 14 changed files with 1,170 additions and 791 deletions.
6 changes: 3 additions & 3 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Kentico.Xperience.Core" Version="28.0.3" />
<PackageVersion Include="Kentico.Xperience.ImageProcessing" Version="28.0.3" />
<PackageVersion Include="Kentico.Xperience.Core" Version="28.4.1" />
<PackageVersion Include="Kentico.Xperience.ImageProcessing" Version="28.4.1" />
<PackageVersion Include="Microsoft.Bcl.AsyncInterfaces" Version="7.0.0" />
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="1.1.1" />
Expand All @@ -26,7 +26,7 @@
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.7.0" />
<PackageVersion Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageVersion Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
<PackageVersion Include="Kentico.Xperience.Admin" Version="28.0.3" />
<PackageVersion Include="Kentico.Xperience.Admin" Version="28.4.1" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.4.5" />
<PackageVersion Include="coverlet.collector" Version="3.2.0" />
<PackageVersion Include="System.Linq.Async" Version="6.0.1" />
Expand Down
13 changes: 12 additions & 1 deletion docs/Enums/FormComponents.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@
|`CMS.ContentEngine.ContentItemAssetMetadata`|`Kentico.Administration.ContentItemAssetUploader`|`ContentItemAssetUploaderComponent`|`ContentItemAssetUploaderProperties`||
|`AssetRelatedItem[]`|`Kentico.Administration.AssetSelector`|`AssetSelectorComponent`|`AssetSelectorProperties`||
|`ContentItemReference[]`|`Kentico.Administration.ContentItemSelector`|`ContentItemSelectorComponent`|`ContentItemSelectorProperties`||
|`ContentItemReference[]`||`ContentItemSelectorComponentBase`|`TProperties`|**abstract**|
|`String[]`||`GeneralSelectorComponent`|`GeneralSelectorProperties`||
|`TSingleItemValue[]`||`MultipleObjectSelectorBase`|`TProperties`|**abstract**|
|`String[]`|`Kentico.Administration.ObjectCodeNameSelector`|`ObjectCodeNameSelectorComponent`|`ObjectSelectorProperties`||
|`String[]`|`Kentico.Administration.ObjectCodeNameSelector`|`ObjectCodeNameSelectorComponent`|`ObjectCodenameSelectorProperties`||
|`Guid[]`|`Kentico.Administration.ObjectGuidSelector`|`ObjectGuidSelectorComponent`|`ObjectSelectorProperties`||
|`Int32[]`|`Kentico.Administration.ObjectIdSelector`|`ObjectIdSelectorComponent`|`ObjectSelectorProperties`||
|`ObjectRelatedItem[]`||`ObjectSelectorComponent`|`ObjectSelectorProperties`||
|`TagReference[]`|`Kentico.Administration.TagSelector`|`TagSelectorComponent`|`TagSelectorProperties`||
|`int`|`Kentico.Administration.NumberWithLabel`|`NumberWithLabelComponent`|`FormComponentProperties`||
|`System.DateTime?`|`Kentico.Administration.DateInput`|`DateInputComponent`|`FormComponentProperties`||
|`System.DateTime?`|`Kentico.Administration.DateTimeInput`|`DateTimeInputComponent`|`FormComponentProperties`||
Expand Down Expand Up @@ -96,6 +98,15 @@
|`EmailRelatedItem[]`|`Kentico.Administration.EmailSelector`|`EmailSelectorComponent`|`EmailSelectorProperties`||
|`ObjectRelatedItem[]`||`FormSelectorComponent`|`ObjectSelectorProperties`||

</div>
<div name="generatedpart_Kentico.Xperience.Admin.Headless.dll">

## Module `Kentico.Xperience.Admin.Headless.dll`

|Value type|Identifier|Class|Properties type|notes|
|----------|-----|----------|---------------|-----|
|`ContentItemReference[]`|`Kentico.Administration.HeadlessItemSelector`|`HeadlessItemSelectorComponent`|`HeadlessItemSelectorProperties`||

</div>
<div name="generatedpart_Kentico.Xperience.Admin.Websites.dll">

Expand Down
4 changes: 4 additions & 0 deletions docs/Model/DataClassModel.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Model represents XbyK DataClassInfo
|---|---|---|---|
|ClassDisplayName\*|Friendly name for class|string?||
|ClassName\*|Class unique codename|string?||
|ClassShortName||string?||
|ClassTableName|SQL Table name|string?||
|ClassShowTemplateSelection||bool?||
|ClassLastModified\*|last modification performed through API / UI|System.DateTime?||
Expand All @@ -33,6 +34,7 @@ This sample describes how to create class inside XbyK to hold Article data
"$type": "DataClass",
"ClassDisplayName": "This is Article example",
"ClassName": "UMT.Article",
"ClassShortName": "UMT.Article",
"ClassTableName": "UMT_Article",
"ClassLastModified": "2024-01-08T22:55:31.7853783\u002B01:00",
"ClassGUID": "06540294-3b56-4cf7-8773-088bb766ac23",
Expand Down Expand Up @@ -121,6 +123,7 @@ This sample describes how to create class inside XbyK to hold Article data
"$type": "DataClass",
"ClassDisplayName": "Event",
"ClassName": "UMT.Event",
"ClassShortName": "UMT.Event",
"ClassTableName": "UMT_Event",
"ClassLastModified": "2024-01-08T22:56:12.2515785Z",
"ClassGUID": "4712c000-4d63-4333-8708-990603f73a1e",
Expand Down Expand Up @@ -200,6 +203,7 @@ This sample describes how to create class inside XbyK to hold Article data
"$type": "DataClass",
"ClassDisplayName": "Faq",
"ClassName": "UMT.Faq",
"ClassShortName": "UMT.Faq",
"ClassTableName": "UMT_Faq",
"ClassLastModified": "2024-01-08T22:56:07.1472943Z",
"ClassGUID": "7ed6604e-613b-4ce0-8c21-acfb372c416a",
Expand Down
12 changes: 10 additions & 2 deletions docs/Model/UMT.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,13 @@
"description": "Channel types enum.",
"x-enumNames": [
"Website",
"Email"
"Email",
"Headless"
],
"enum": [
0,
1
1,
2
]
},
"ContentItemCommonDataModel": {
Expand Down Expand Up @@ -422,6 +424,12 @@
"description": "Class unique codename",
"minLength": 1
},
"ClassShortName": {
"type": [
"null",
"string"
]
},
"ClassTableName": {
"type": [
"null",
Expand Down
112 changes: 98 additions & 14 deletions docs/Samples/basic.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"$type": "DataClass",
"ClassDisplayName": "This is Article example",
"ClassName": "UMT.Article",
"ClassShortName": "UMT.Article",
"ClassTableName": "UMT_Article",
"ClassShowTemplateSelection": null,
"ClassLastModified": "2024-01-08T22:55:31.7853783\u002B01:00",
Expand Down Expand Up @@ -166,6 +167,7 @@
"$type": "DataClass",
"ClassDisplayName": "Faq",
"ClassName": "UMT.Faq",
"ClassShortName": "UMT.Faq",
"ClassTableName": "UMT_Faq",
"ClassShowTemplateSelection": null,
"ClassLastModified": "2024-01-08T22:56:07.1472943Z",
Expand Down Expand Up @@ -213,6 +215,88 @@
}
]
},
{
"$type": "DataClass",
"ClassDisplayName": "Event",
"ClassName": "UMT.Event",
"ClassShortName": "UMT.Event",
"ClassTableName": "UMT_Event",
"ClassShowTemplateSelection": null,
"ClassLastModified": "2024-01-08T22:56:12.2515785Z",
"ClassGUID": "4712c000-4d63-4333-8708-990603f73a1e",
"ClassContactMapping": null,
"ClassContactOverwriteEnabled": null,
"ClassConnectionString": null,
"ClassDefaultObjectType": null,
"ClassResourceGuid": "ff8285c1-9d1a-49b3-8c9d-7502e1e533f7",
"ClassCodeGenerationSettings": null,
"ClassHasUnmanagedDbSchema": false,
"ClassType": "Content",
"ClassContentTypeType": "Reusable",
"ClassWebPageHasUrl": null,
"Fields": [
{
"AllowEmpty": true,
"Column": "EventTitle",
"ColumnSize": 200,
"ColumnType": "text",
"Enabled": true,
"Guid": "0e1e63eb-918a-4135-a627-04393672d6f4",
"Visible": true,
"Properties": {
"FieldCaption": "Title"
},
"Settings": {
"ControlName": "Kentico.Administration.TextInput"
}
},
{
"AllowEmpty": true,
"Column": "EventText",
"ColumnSize": 0,
"ColumnType": "longtext",
"Enabled": true,
"Guid": "a54aef74-42b3-438e-92b2-2f5b4386fb57",
"Visible": true,
"Properties": {
"FieldCaption": "Text"
},
"Settings": {
"ControlName": "Kentico.Administration.TextArea"
}
},
{
"AllowEmpty": true,
"Column": "EventDate",
"ColumnSize": 0,
"ColumnType": "datetime",
"Enabled": true,
"Guid": "f3356f35-0a78-4a98-8696-a1becb725b0a",
"Visible": true,
"Properties": {
"FieldCaption": "Date"
},
"Settings": {
"ControlName": "Kentico.Administration.DateTimeInput"
}
},
{
"AllowEmpty": true,
"Column": "EventRecurrentYearly",
"ColumnSize": 0,
"ColumnType": "boolean",
"Enabled": true,
"Guid": "98d2cf95-5027-488a-b833-89510f4662c1",
"Visible": true,
"Properties": {
"FieldCaption": "Event occurs every year"
},
"Settings": {
"ControlName": "Kentico.Administration.Checkbox"
}
}
]
},
{
"$type": "ContentItem",
"ContentItemGUID": "c354427d-3d02-4876-8ed4-4de817fae929",
Expand All @@ -222,32 +306,32 @@
"ContentItemDataClassGuid": "978b2cd4-c248-4317-86a1-3bdd17444267",
"ContentItemChannelGuid": "b186b5a3-f408-4e21-a2f9-e51d68ecac38"
},
{
"$type": "ContentItemLanguageMetadata",
"ContentItemLanguageMetadataGUID": "12191a4b-26d8-40bb-a214-73d9874920fd",
"ContentItemLanguageMetadataContentItemGuid": "c354427d-3d02-4876-8ed4-4de817fae929",
"ContentItemLanguageMetadataDisplayName": "Language Metadata Example",
"ContentItemLanguageMetadataLatestVersionStatus": 0,
"ContentItemLanguageMetadataCreatedWhen": "2024-01-06T22:55:58.3208748Z",
"ContentItemLanguageMetadataCreatedByUserGuid": "95f42fd4-6a14-4e88-b214-4e136479f788",
"ContentItemLanguageMetadataModifiedWhen": "2024-01-08T22:56:01.1939486Z",
"ContentItemLanguageMetadataModifiedByUserGuid": "95f42fd4-6a14-4e88-b214-4e136479f788",
"ContentItemLanguageMetadataHasImageAsset": false,
"ContentItemLanguageMetadataContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4"
},
{
"$type": "ContentItemLanguageMetadata",
"ContentItemLanguageMetadataGUID": "65421553-5f92-44b7-a02f-2b9ca083e14a",
"ContentItemLanguageMetadataContentItemGuid": "c354427d-3d02-4876-8ed4-4de817fae929",
"ContentItemLanguageMetadataDisplayName": "Basic Language Metadata Example",
"ContentItemLanguageMetadataLatestVersionStatus": 0,
"ContentItemLanguageMetadataLatestVersionStatus": 1,
"ContentItemLanguageMetadataCreatedWhen": "2024-01-06T22:55:48.9503105Z",
"ContentItemLanguageMetadataCreatedByUserGuid": null,
"ContentItemLanguageMetadataModifiedWhen": "2024-01-08T22:55:52.0392925Z",
"ContentItemLanguageMetadataModifiedByUserGuid": null,
"ContentItemLanguageMetadataHasImageAsset": false,
"ContentItemLanguageMetadataContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4"
},
{
"$type": "ContentItemLanguageMetadata",
"ContentItemLanguageMetadataGUID": "12191a4b-26d8-40bb-a214-73d9874920fd",
"ContentItemLanguageMetadataContentItemGuid": "c354427d-3d02-4876-8ed4-4de817fae929",
"ContentItemLanguageMetadataDisplayName": "Language Metadata Example",
"ContentItemLanguageMetadataLatestVersionStatus": 2,
"ContentItemLanguageMetadataCreatedWhen": "2024-01-06T22:55:58.3208748Z",
"ContentItemLanguageMetadataCreatedByUserGuid": "95f42fd4-6a14-4e88-b214-4e136479f788",
"ContentItemLanguageMetadataModifiedWhen": "2024-01-08T22:56:01.1939486Z",
"ContentItemLanguageMetadataModifiedByUserGuid": "95f42fd4-6a14-4e88-b214-4e136479f788",
"ContentItemLanguageMetadataHasImageAsset": false,
"ContentItemLanguageMetadataContentLanguageGuid": "f454e93b-5fe9-42a9-b1af-b572234ed9c4"
},
{
"$type": "WebPageItem",
"WebPageItemGUID": "6e995319-77e7-475e-9ebb-607bdbf5af9a",
Expand Down
Loading

0 comments on commit 360015a

Please sign in to comment.