diff --git a/Kontent.Ai.Delivery.Abstractions/ContentItems/IContentItemSystemAttributes.cs b/Kontent.Ai.Delivery.Abstractions/ContentItems/IContentItemSystemAttributes.cs index b4b60395..5b9fa3fa 100644 --- a/Kontent.Ai.Delivery.Abstractions/ContentItems/IContentItemSystemAttributes.cs +++ b/Kontent.Ai.Delivery.Abstractions/ContentItems/IContentItemSystemAttributes.cs @@ -28,7 +28,12 @@ public interface IContentItemSystemAttributes : ISystemAttributes public string Collection { get; } /// - /// Gets the codename of the workflow step which the content item is assigned to . + /// Gets the codename of the workflow which the content item is assigned to. + /// + public string Workflow { get; } + + /// + /// Gets the codename of the workflow step which the content item is assigned to. /// public string WorkflowStep { get; } } diff --git a/Kontent.Ai.Delivery.Benchmarks/Fixtures/full_articles.json b/Kontent.Ai.Delivery.Benchmarks/Fixtures/full_articles.json index 063ca8f5..7bc85ba6 100644 --- a/Kontent.Ai.Delivery.Benchmarks/Fixtures/full_articles.json +++ b/Kontent.Ai.Delivery.Benchmarks/Fixtures/full_articles.json @@ -9,6 +9,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-09-18T10:58:38.9172599Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -182,6 +183,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-03-27T13:13:35.312Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -364,6 +366,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-03-27T13:14:07.384Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -528,6 +531,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-03-27T13:21:11.38Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -699,6 +703,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-03-27T13:21:49.151Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -867,6 +872,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-03-27T13:24:54.042Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -1046,6 +1052,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-03-27T13:13:35.312Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -1322,6 +1329,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-03-27T13:21:11.38Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -1493,6 +1501,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-03-27T13:21:49.151Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -1661,6 +1670,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-03-27T13:24:54.042Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Benchmarks/Fixtures/on_roasts.json b/Kontent.Ai.Delivery.Benchmarks/Fixtures/on_roasts.json index 2094cd62..dcec988c 100644 --- a/Kontent.Ai.Delivery.Benchmarks/Fixtures/on_roasts.json +++ b/Kontent.Ai.Delivery.Benchmarks/Fixtures/on_roasts.json @@ -8,6 +8,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-03-27T13:21:11.38Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -180,6 +181,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-03-27T13:13:35.312Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -362,6 +364,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-03-27T13:21:49.151Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Caching.Tests/Fixtures/brazil_natural_barra_grande.json b/Kontent.Ai.Delivery.Caching.Tests/Fixtures/brazil_natural_barra_grande.json index 02c98f3b..ac284e4e 100644 --- a/Kontent.Ai.Delivery.Caching.Tests/Fixtures/brazil_natural_barra_grande.json +++ b/Kontent.Ai.Delivery.Caching.Tests/Fixtures/brazil_natural_barra_grande.json @@ -10,6 +10,7 @@ "coffee" ], "last_modified": "2017-09-07T08:21:06.8837862Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Caching.Tests/Fixtures/full_articles.json b/Kontent.Ai.Delivery.Caching.Tests/Fixtures/full_articles.json index b9582e66..0f0197ea 100644 --- a/Kontent.Ai.Delivery.Caching.Tests/Fixtures/full_articles.json +++ b/Kontent.Ai.Delivery.Caching.Tests/Fixtures/full_articles.json @@ -9,6 +9,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-09-18T10:58:38.9172599Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -183,6 +184,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-03-27T13:13:35.312Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -366,6 +368,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-03-27T13:14:07.384Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -531,6 +534,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-03-27T13:21:11.38Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -703,6 +707,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-03-27T13:21:49.151Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -872,6 +877,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-03-27T13:24:54.042Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -1052,6 +1058,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-03-27T13:13:35.312Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -1329,6 +1336,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-03-27T13:21:11.38Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -1501,6 +1509,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-03-27T13:21:49.151Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -1670,6 +1679,7 @@ "type": "article", "sitemap_locations": [], "last_modified": "2019-03-27T13:24:54.042Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Rx.Tests/Fixtures/articles.json b/Kontent.Ai.Delivery.Rx.Tests/Fixtures/articles.json index 2b81615d..def765bc 100644 --- a/Kontent.Ai.Delivery.Rx.Tests/Fixtures/articles.json +++ b/Kontent.Ai.Delivery.Rx.Tests/Fixtures/articles.json @@ -11,6 +11,7 @@ "articles" ], "last_modified": "2017-12-08T08:35:27.1009654Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -163,6 +164,7 @@ "articles" ], "last_modified": "2017-12-08T08:37:13.6773134Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -330,6 +332,7 @@ "articles" ], "last_modified": "2017-12-08T08:40:45.7289755Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -479,6 +482,7 @@ "articles" ], "last_modified": "2017-12-08T08:49:53.6039943Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -635,6 +639,7 @@ "articles" ], "last_modified": "2017-12-08T08:50:50.6091672Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -788,6 +793,7 @@ "articles" ], "last_modified": "2017-12-08T09:01:44.4223969Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -950,6 +956,7 @@ "type": "hosted_video", "sitemap_locations": [], "last_modified": "2017-06-27T12:56:41.1882715Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -979,6 +986,7 @@ "type": "tweet", "sitemap_locations": [], "last_modified": "2017-06-27T13:00:08.2735049Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -1020,6 +1028,7 @@ "articles" ], "last_modified": "2017-12-08T08:37:13.6773134Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -1185,6 +1194,7 @@ "type": "hosted_video", "sitemap_locations": [], "last_modified": "2017-06-27T12:57:16.7333276Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -1216,6 +1226,7 @@ "articles" ], "last_modified": "2017-12-08T08:49:53.6039943Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -1372,6 +1383,7 @@ "articles" ], "last_modified": "2017-12-08T08:50:50.6091672Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -1525,6 +1537,7 @@ "articles" ], "last_modified": "2017-12-08T09:01:44.4223969Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Rx.Tests/Fixtures/coffee_beverages_explained.json b/Kontent.Ai.Delivery.Rx.Tests/Fixtures/coffee_beverages_explained.json index c50ec02c..c36b0b68 100644 --- a/Kontent.Ai.Delivery.Rx.Tests/Fixtures/coffee_beverages_explained.json +++ b/Kontent.Ai.Delivery.Rx.Tests/Fixtures/coffee_beverages_explained.json @@ -10,6 +10,7 @@ "articles" ], "last_modified": "2017-06-27T13:01:54.5735581Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -95,6 +96,7 @@ "type": "tweet", "sitemap_locations": [], "last_modified": "2017-06-27T13:00:08.2735049Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -134,6 +136,7 @@ "type": "hosted_video", "sitemap_locations": [], "last_modified": "2017-06-27T12:57:16.7333276Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Rx.Tests/Fixtures/items.json b/Kontent.Ai.Delivery.Rx.Tests/Fixtures/items.json index 8c228287..598ac799 100644 --- a/Kontent.Ai.Delivery.Rx.Tests/Fixtures/items.json +++ b/Kontent.Ai.Delivery.Rx.Tests/Fixtures/items.json @@ -11,6 +11,7 @@ "about_us" ], "last_modified": "2017-04-04T13:33:25.0990741Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -41,6 +42,7 @@ "brewers" ], "last_modified": "2017-09-07T08:18:16.269361Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -125,6 +127,7 @@ "about_us" ], "last_modified": "2016-10-20T12:47:13.65023Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -167,6 +170,7 @@ "about_us" ], "last_modified": "2017-04-04T11:48:26.1878079Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -215,6 +219,7 @@ "about_us" ], "last_modified": "2016-10-20T12:06:18.3403458Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Tests/DeliveryClientTests.cs b/Kontent.Ai.Delivery.Tests/DeliveryClientTests.cs index 95515fff..3e972c34 100644 --- a/Kontent.Ai.Delivery.Tests/DeliveryClientTests.cs +++ b/Kontent.Ai.Delivery.Tests/DeliveryClientTests.cs @@ -74,6 +74,7 @@ public async Task GetItemAsync() Assert.Equal("article", beveragesItem.System.Type); Assert.Equal("en-US", beveragesItem.System.Language); Assert.Equal("default", beveragesItem.System.Collection); + Assert.Equal("default", beveragesItem.System.Workflow); Assert.Equal("published", beveragesItem.System.WorkflowStep); Assert.NotEmpty(beveragesItem.System.SitemapLocation); Assert.NotEmpty(roastsItem.RelatedArticles); @@ -196,7 +197,7 @@ public async Task GetItemAsync_NotFound_RespondsWithApiError() AssertErrorResponse(actualResponse, expectedError); Assert.Null(actualResponse.Item); } - + [Fact] public async Task GetItemAsync_InvalidProjectId_RespondsWithApiError() { @@ -210,7 +211,7 @@ public async Task GetItemAsync_InvalidProjectId_RespondsWithApiError() var client = InitializeDeliveryClientWithACustomTypeProvider(_mockHttp); var actualResponse = await client.GetItemAsync("coffee_beverages_explained"); - + AssertErrorResponse(actualResponse, expectedError); Assert.Null(actualResponse.Item); } @@ -290,7 +291,7 @@ public async Task GetItemsAsync() Assert.True(response?.ApiResponse?.IsSuccess); Assert.NotEmpty(response.Items); } - + [Fact] public async Task GetItemsAsync_InvalidProjectId_RespondsWithApiError() { @@ -304,12 +305,12 @@ public async Task GetItemsAsync_InvalidProjectId_RespondsWithApiError() var client = InitializeDeliveryClientWithACustomTypeProvider(_mockHttp); var actualResponse = await client.GetItemsAsync(); - + AssertErrorResponse(actualResponse, expectedError); Assert.Null(actualResponse.Items); Assert.Null(actualResponse.Pagination); } - + [Fact] public void GetItemsFeed_DepthParameter_ThrowsArgumentException() { @@ -415,7 +416,7 @@ public async Task GetItemsFeed_MultipleBatches_FetchNextBatchAsync() Assert.Equal(6, items.Count); Assert.Equal(2, timesCalled); } - + [Fact] public async Task GetItemsFeed_InvalidProjectId_RespondsWithApiError() { @@ -429,7 +430,7 @@ public async Task GetItemsFeed_InvalidProjectId_RespondsWithApiError() var client = InitializeDeliveryClientWithACustomTypeProvider(_mockHttp); var actualResponse = await client.GetItemsFeed().FetchNextBatchAsync(); - + AssertErrorResponse(actualResponse, expectedError); Assert.Null(actualResponse.Items); } @@ -479,7 +480,7 @@ public async Task GetTypeAsync() Assert.IsAssignableFrom(processingTaxonomyElement); Assert.Equal("processing", ((ITaxonomyElement)processingTaxonomyElement).TaxonomyGroup); } - + [Fact] public async Task GetTypeAsync_NotFound_RespondsWithApiError() { @@ -503,7 +504,7 @@ public async Task GetTypeAsync_NotFound_RespondsWithApiError() AssertErrorResponse(actualResponse, expectedError); Assert.Null(actualResponse.Type); } - + [Fact] public async Task GetTypeAsync_InvalidProjectId_RespondsWithApiError() { @@ -517,7 +518,7 @@ public async Task GetTypeAsync_InvalidProjectId_RespondsWithApiError() var client = InitializeDeliveryClientWithACustomTypeProvider(_mockHttp); var actualResponse = await client.GetTypeAsync("unequestrian_nonadjournment_sur_achoerodus"); - + AssertErrorResponse(actualResponse, expectedError); Assert.Null(actualResponse.Type); } @@ -692,7 +693,7 @@ public async Task GetTaxonomiesAsync() Assert.NotNull(response.ApiResponse.RequestUrl); Assert.NotEmpty(response.Taxonomies); } - + [Fact] public async Task GetTaxonomiesAsync_InvalidProjectId_RespondsWithApiError() { @@ -706,7 +707,7 @@ public async Task GetTaxonomiesAsync_InvalidProjectId_RespondsWithApiError() var client = InitializeDeliveryClientWithACustomTypeProvider(_mockHttp); var actualResponse = await client.GetTaxonomiesAsync(); - + AssertErrorResponse(actualResponse, expectedError); Assert.Null(actualResponse.Taxonomies); Assert.Null(actualResponse.Pagination); @@ -1477,7 +1478,7 @@ public async Task GetTypesAsync_ApiDoesNotReturnStaleContent_ResponseDoesNotIndi Assert.False(response.ApiResponse.HasStaleContent); Assert.True(response.Types.Any()); } - + [Fact] public async Task GetTypesAsync_InvalidProjectId_RespondsWithApiError() { @@ -1491,7 +1492,7 @@ public async Task GetTypesAsync_InvalidProjectId_RespondsWithApiError() var client = InitializeDeliveryClientWithACustomTypeProvider(_mockHttp); var actualResponse = await client.GetTypesAsync(); - + AssertErrorResponse(actualResponse, expectedError); Assert.Null(actualResponse.Types); Assert.Null(actualResponse.Pagination); @@ -1622,7 +1623,7 @@ public async Task GetLanguagesAsync_ApiDoesNotReturnStaleContent_ResponseDoesNot Assert.False(response.ApiResponse.HasStaleContent); Assert.True(response.Languages.Any()); } - + [Fact] public async Task GetLanguagesAsync_InvalidProjectId_RespondsWithApiError() { @@ -1636,7 +1637,7 @@ public async Task GetLanguagesAsync_InvalidProjectId_RespondsWithApiError() var client = InitializeDeliveryClientWithACustomTypeProvider(_mockHttp); var actualResponse = await client.GetLanguagesAsync(); - + AssertErrorResponse(actualResponse, expectedError); Assert.Null(actualResponse.Languages); Assert.Null(actualResponse.Pagination); @@ -1681,7 +1682,7 @@ public async Task GetElementAsync_ApiDoesNotReturnStaleContent_ResponseDoesNotIn Assert.False(response.ApiResponse.HasStaleContent); Assert.NotNull(response.Element.Codename); } - + [Fact] public async Task GetElementAsync_InvalidProjectId_RespondsWithApiError() { @@ -1695,7 +1696,7 @@ public async Task GetElementAsync_InvalidProjectId_RespondsWithApiError() var client = InitializeDeliveryClientWithACustomTypeProvider(_mockHttp); var actualResponse = await client.GetContentElementAsync("test", "test"); - + AssertErrorResponse(actualResponse, expectedError); Assert.Null(actualResponse.Element); } @@ -1794,7 +1795,7 @@ public async Task RetrieveContentItem_GetLinkedItems_TypeItemsManually() ); var items = (await Task.WhenAll(itemTasks)).ToList(); Assert.Equal(2, items.Count()); - + var tweetItem = items[0]; var hostedVideoItem = items[1]; Assert.Equal(tweetItem.GetType(), typeof(Tweet)); @@ -1839,7 +1840,7 @@ public async Task SyncApi_PostSyncInitAsync_WithParameters_GetContinuationToken( var requestUri = new Uri(syncInit.ApiResponse.RequestUrl); var requestQuery = HttpUtility.ParseQueryString(requestUri.Query); - + Assert.Equal(3, requestQuery.Count); Assert.Equal("language", requestQuery.Keys[0]); Assert.Equal("system.type[eq]", requestQuery.Keys[1]); @@ -1876,12 +1877,12 @@ public async Task SyncApi_GetSyncAsync_GetSyncItems_WithTypeProvider_ReturnsStro AssertSystemPropertiesEquality(expectedItem["data"]["system"].ToObject(), article.System); Assert.NotNull(article); - Assert.Equal(expectedElementValues["title"]["value"].ToString(), article.Title); + Assert.Equal(expectedElementValues["title"]["value"].ToString(), article.Title); Assert.Equal(expectedItem["change_type"].ToString(), sync.SyncItems[i].ChangeType); Assert.Equal(DateTime.Parse(expectedItem["timestamp"].ToString()), DateTime.Parse(sync.SyncItems[i].Timestamp.ToString())); } } - + [Fact] public async Task SyncApi_GetSyncAsync_GetSyncItems_WithoutTypeProvider_ReturnsGenericData() { @@ -1919,13 +1920,14 @@ public async Task SyncApi_GetSyncAsync_GetSyncItems_WithoutTypeProvider_ReturnsG private void AssertSystemPropertiesEquality(JObject expectedSystemValues, IContentItemSystemAttributes system) { - Assert.Equal(expectedSystemValues["codename"].ToString(), system.Codename.ToString()); - Assert.Equal(expectedSystemValues["name"].ToString(), system.Name.ToString()); - Assert.Equal(expectedSystemValues["id"].ToString(), system.Id.ToString()); - Assert.Equal(expectedSystemValues["type"].ToString(), system.Type.ToString()); - Assert.Equal(expectedSystemValues["language"].ToString(), system.Language.ToString()); - Assert.Equal(expectedSystemValues["collection"].ToString(), system.Collection.ToString()); - Assert.Equal(expectedSystemValues["workflow_step"].ToString(), system.WorkflowStep.ToString()); + Assert.Equal(expectedSystemValues["codename"].ToString(), system.Codename.ToString()); + Assert.Equal(expectedSystemValues["name"].ToString(), system.Name.ToString()); + Assert.Equal(expectedSystemValues["id"].ToString(), system.Id.ToString()); + Assert.Equal(expectedSystemValues["type"].ToString(), system.Type.ToString()); + Assert.Equal(expectedSystemValues["language"].ToString(), system.Language.ToString()); + Assert.Equal(expectedSystemValues["collection"].ToString(), system.Collection.ToString()); + Assert.Equal(expectedSystemValues["workflow"].ToString(), system.Workflow.ToString()); + Assert.Equal(expectedSystemValues["workflow_step"].ToString(), system.WorkflowStep.ToString()); } @@ -1971,8 +1973,8 @@ private DeliveryClient InitializeDeliveryClientWithCustomModelProvider(MockHttpM return client; } - - private Error CreateInvalidProjectIdApiError() => new Error() + + private Error CreateInvalidProjectIdApiError() => new Error() { ErrorCode = 105, RequestId = "", @@ -1986,7 +1988,7 @@ private static string CreateApiErrorResponse(Error error) private static void AssertErrorResponse(IResponse actualResponse, IError expectedError) { var actualError = actualResponse.ApiResponse.Error; - + Assert.NotNull(actualResponse.ApiResponse.Error); Assert.False(actualResponse.ApiResponse.IsSuccess); Assert.Equal(expectedError.Message, actualError.Message); diff --git a/Kontent.Ai.Delivery.Tests/Fixtures/ContentLinkResolver/coffee_beverages_explained.json b/Kontent.Ai.Delivery.Tests/Fixtures/ContentLinkResolver/coffee_beverages_explained.json index a37c47de..3fa007d5 100644 --- a/Kontent.Ai.Delivery.Tests/Fixtures/ContentLinkResolver/coffee_beverages_explained.json +++ b/Kontent.Ai.Delivery.Tests/Fixtures/ContentLinkResolver/coffee_beverages_explained.json @@ -11,6 +11,7 @@ "articles" ], "last_modified": "2017-06-27T13:01:54.5735581Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -98,6 +99,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2017-06-27T13:00:08.2735049Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -138,6 +140,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2017-06-27T12:57:16.7333276Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Tests/Fixtures/ContentLinkResolver/coffee_processing_techniques.json b/Kontent.Ai.Delivery.Tests/Fixtures/ContentLinkResolver/coffee_processing_techniques.json index b64764cc..41642c19 100644 --- a/Kontent.Ai.Delivery.Tests/Fixtures/ContentLinkResolver/coffee_processing_techniques.json +++ b/Kontent.Ai.Delivery.Tests/Fixtures/ContentLinkResolver/coffee_processing_techniques.json @@ -11,6 +11,7 @@ "articles" ], "last_modified": "2017-04-04T13:40:14.6418507Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -115,6 +116,7 @@ "articles" ], "last_modified": "2017-06-27T13:11:28.3348114Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -212,6 +214,7 @@ "articles" ], "last_modified": "2017-04-04T13:45:30.7692802Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Tests/Fixtures/ContentLinkResolver/on_roasts.json b/Kontent.Ai.Delivery.Tests/Fixtures/ContentLinkResolver/on_roasts.json index 72776a36..8a391463 100644 --- a/Kontent.Ai.Delivery.Tests/Fixtures/ContentLinkResolver/on_roasts.json +++ b/Kontent.Ai.Delivery.Tests/Fixtures/ContentLinkResolver/on_roasts.json @@ -11,6 +11,7 @@ "articles" ], "last_modified": "2017-04-04T13:45:30.7692802Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -104,6 +105,7 @@ "articles" ], "last_modified": "2017-04-04T13:45:44.1533096Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -193,6 +195,7 @@ "articles" ], "last_modified": "2017-04-04T13:40:14.6418507Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/allendale.json b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/allendale.json index 6d0fecce..99a89131 100644 --- a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/allendale.json +++ b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/allendale.json @@ -13,6 +13,7 @@ "north_america" ], "last_modified": "2016-09-05T14:13:52.934532Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -79,6 +80,7 @@ "north_america" ], "last_modified": "2016-09-05T14:12:49.0914134Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -145,6 +147,7 @@ "europe" ], "last_modified": "2017-07-24T08:03:34.1050224Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -211,6 +214,7 @@ "north_america" ], "last_modified": "2016-09-05T14:14:00.6640656Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -277,6 +281,7 @@ "europe" ], "last_modified": "2016-09-01T08:36:18.0623079Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -343,6 +348,7 @@ "north_america" ], "last_modified": "2016-09-05T14:14:08.4285085Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/articles.json b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/articles.json index fa2e991f..53559f74 100644 --- a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/articles.json +++ b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/articles.json @@ -12,6 +12,7 @@ "about_us" ], "last_modified": "2017-04-04T13:33:25.0990741Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -43,6 +44,7 @@ "brewers" ], "last_modified": "2017-09-07T08:18:16.269361Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -128,6 +130,7 @@ "about_us" ], "last_modified": "2016-10-20T12:47:13.65023Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -171,6 +174,7 @@ "about_us" ], "last_modified": "2017-04-04T11:48:26.1878079Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -220,6 +224,7 @@ "about_us" ], "last_modified": "2016-10-20T12:06:18.3403458Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/articles_feed.json b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/articles_feed.json index 8300ac80..d17f847a 100644 --- a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/articles_feed.json +++ b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/articles_feed.json @@ -10,6 +10,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2019-03-27T13:12:58.578Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -46,6 +47,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2019-03-27T13:13:35.312Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -86,6 +88,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2019-03-27T13:14:07.384Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -122,6 +125,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2019-03-27T13:21:11.38Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -162,6 +166,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2019-03-27T13:21:49.151Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -202,6 +207,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2019-03-27T13:24:54.042Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/articles_feed_1.json b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/articles_feed_1.json index 9465a0a8..840aad94 100644 --- a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/articles_feed_1.json +++ b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/articles_feed_1.json @@ -10,6 +10,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2019-03-27T13:12:58.578Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -46,6 +47,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2019-03-27T13:13:35.312Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -86,6 +88,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2019-03-27T13:14:07.384Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -122,6 +125,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2019-03-27T13:21:11.38Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -162,6 +166,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2019-03-27T13:21:49.151Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/articles_feed_2.json b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/articles_feed_2.json index 0eefa7d7..be37ac13 100644 --- a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/articles_feed_2.json +++ b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/articles_feed_2.json @@ -10,6 +10,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2019-03-27T13:24:54.042Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/brazil_natural_barra_grande.json b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/brazil_natural_barra_grande.json index 10683b14..43d6f6bc 100644 --- a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/brazil_natural_barra_grande.json +++ b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/brazil_natural_barra_grande.json @@ -11,6 +11,7 @@ "coffee" ], "last_modified": "2017-09-07T08:21:06.8837862Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/coffee_beverages_explained.json b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/coffee_beverages_explained.json index 2f2600f4..74659361 100644 --- a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/coffee_beverages_explained.json +++ b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/coffee_beverages_explained.json @@ -11,6 +11,7 @@ "articles" ], "last_modified": "2017-06-27T13:01:54.5735581Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -109,6 +110,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2017-06-27T13:00:08.2735049Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -149,6 +151,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2017-06-27T12:57:16.7333276Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/complete_content_item.json b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/complete_content_item.json index 68533e89..d07c02c4 100644 --- a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/complete_content_item.json +++ b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/complete_content_item.json @@ -9,6 +9,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2017-02-22T00:52:03.9370993Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -118,6 +119,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2017-02-21T04:29:42.9564205Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/complete_content_item_system_type.json b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/complete_content_item_system_type.json index ae4d9aba..2f2832fc 100644 --- a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/complete_content_item_system_type.json +++ b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/complete_content_item_system_type.json @@ -10,6 +10,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2017-02-22T00:52:03.9370993Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -120,6 +121,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2017-02-21T04:29:42.9564205Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/items.json b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/items.json index f4718581..49c501cd 100644 --- a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/items.json +++ b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/items.json @@ -10,6 +10,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2017-03-02T00:42:14.9675295Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -45,6 +46,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2017-02-23T00:09:50.4493636Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -80,6 +82,7 @@ "about_us" ], "last_modified": "2017-03-16T22:42:56.0015692Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -148,6 +151,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2017-02-22T00:52:03.9370993Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -251,6 +255,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2017-02-21T04:29:42.9564205Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -309,6 +314,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2017-03-16T22:43:20.7173008Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -363,6 +369,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2017-02-21T05:19:44.0820982Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -400,6 +407,7 @@ "homepage" ], "last_modified": "2016-10-24T09:11:11.2681037Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -427,6 +435,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2016-08-11T06:57:08.8322664Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -454,6 +463,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2017-03-01T03:55:52.8880146Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -486,6 +496,7 @@ "contact_e3b918c" ], "last_modified": "2017-03-16T23:26:34.5749394Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -511,6 +522,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2017-02-21T04:29:42.9564205Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -572,6 +584,7 @@ "homepage" ], "last_modified": "2016-10-24T09:11:11.2681037Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -599,6 +612,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2016-08-11T06:57:08.8322664Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -626,6 +640,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2017-02-23T00:09:50.4493636Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -659,6 +674,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2017-03-01T03:55:52.8880146Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/no_elements.json b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/no_elements.json index e1e6ac5e..aed6e7e0 100644 --- a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/no_elements.json +++ b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/no_elements.json @@ -13,6 +13,7 @@ "north_america" ], "last_modified": "2016-09-05T14:14:08.4285085Z", + "workflow": "default", "workflow_step": "published" } } diff --git a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/on_roasts.json b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/on_roasts.json index 72776a36..8a391463 100644 --- a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/on_roasts.json +++ b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/on_roasts.json @@ -11,6 +11,7 @@ "articles" ], "last_modified": "2017-04-04T13:45:30.7692802Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -104,6 +105,7 @@ "articles" ], "last_modified": "2017-04-04T13:45:44.1533096Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -193,6 +195,7 @@ "articles" ], "last_modified": "2017-04-04T13:40:14.6418507Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/onroast_recursive_inline_linked_items.json b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/onroast_recursive_inline_linked_items.json index 7d71f4dd..cd95ad5d 100644 --- a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/onroast_recursive_inline_linked_items.json +++ b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/onroast_recursive_inline_linked_items.json @@ -11,6 +11,7 @@ "articles" ], "last_modified": "2017-04-04T13:45:30.7692802Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -101,6 +102,7 @@ "articles" ], "last_modified": "2017-04-04T13:45:30.7692802Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/onroast_recursive_linked_items.json b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/onroast_recursive_linked_items.json index 92ca7d3d..ff771e79 100644 --- a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/onroast_recursive_linked_items.json +++ b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/onroast_recursive_linked_items.json @@ -11,6 +11,7 @@ "articles" ], "last_modified": "2017-04-04T13:45:30.7692802Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -104,6 +105,7 @@ "articles" ], "last_modified": "2017-04-04T13:45:44.1533096Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -193,6 +195,7 @@ "articles" ], "last_modified": "2017-04-04T13:40:14.6418507Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -296,6 +299,7 @@ "articles" ], "last_modified": "2017-06-27T13:11:28.3348114Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -394,6 +398,7 @@ "articles" ], "last_modified": "2017-04-04T13:45:30.7692802Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -484,6 +489,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2017-06-27T12:56:41.1882715Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/rich_text_complex_tables.json b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/rich_text_complex_tables.json index 8dee7d75..4068dfad 100644 --- a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/rich_text_complex_tables.json +++ b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/rich_text_complex_tables.json @@ -9,6 +9,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2020-03-16T17:49:42.7165723Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/sync.json b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/sync.json index 15332266..7f72bcf8 100644 --- a/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/sync.json +++ b/Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/sync.json @@ -9,6 +9,7 @@ "type": "article", "language": "default", "collection": "default", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -31,6 +32,7 @@ "type": "article", "language": "default", "collection": "default", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery.Tests/Fixtures/home.json b/Kontent.Ai.Delivery.Tests/Fixtures/home.json index b4db15f6..da70e041 100644 --- a/Kontent.Ai.Delivery.Tests/Fixtures/home.json +++ b/Kontent.Ai.Delivery.Tests/Fixtures/home.json @@ -11,6 +11,7 @@ "home" ], "last_modified": "2017-04-04T13:53:08.6639435Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -79,6 +80,7 @@ "north_america" ], "last_modified": "2016-09-05T14:14:08.4285085Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -145,6 +147,7 @@ "north_america" ], "last_modified": "2016-09-05T14:12:49.0914134Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -208,6 +211,7 @@ "collection": "default", "sitemap_locations": [], "last_modified": "2017-03-22T12:40:16.8440029Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -251,6 +255,7 @@ "about_us" ], "last_modified": "2017-04-04T11:49:14.9737715Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -300,6 +305,7 @@ "articles" ], "last_modified": "2017-04-04T13:45:44.1533096Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -388,6 +394,7 @@ "articles" ], "last_modified": "2017-04-04T13:45:30.7692802Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -480,6 +487,7 @@ "north_america" ], "last_modified": "2016-09-05T14:13:52.934532Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -546,6 +554,7 @@ "north_america" ], "last_modified": "2016-09-05T14:14:00.6640656Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -611,6 +620,7 @@ "articles" ], "last_modified": "2017-06-27T13:01:54.5735581Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -698,6 +708,7 @@ "articles" ], "last_modified": "2017-04-04T13:40:29.970377Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -782,6 +793,7 @@ "articles" ], "last_modified": "2017-04-04T13:40:14.6418507Z", + "workflow": "default", "workflow_step": "published" }, "elements": { @@ -884,6 +896,7 @@ "home" ], "last_modified": "2016-10-20T12:15:15.7357761Z", + "workflow": "default", "workflow_step": "published" }, "elements": { diff --git a/Kontent.Ai.Delivery/ContentItems/ContentItemSystemAttributes.cs b/Kontent.Ai.Delivery/ContentItems/ContentItemSystemAttributes.cs index 97b2af82..e54b1f63 100644 --- a/Kontent.Ai.Delivery/ContentItems/ContentItemSystemAttributes.cs +++ b/Kontent.Ai.Delivery/ContentItems/ContentItemSystemAttributes.cs @@ -42,6 +42,10 @@ internal sealed class ContentItemSystemAttributes : IContentItemSystemAttributes [JsonProperty("collection")] public string Collection { get; internal set; } + /// + [JsonProperty("workflow")] + public string Workflow { get; internal set; } + /// [JsonProperty("workflow_step")] public string WorkflowStep { get; internal set; }