-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix/363-dynamic-values
- Loading branch information
Showing
15 changed files
with
401 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
Kontent.Ai.Delivery.Abstractions/Sync/IDeliverySyncInitResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Kontent.Ai.Delivery.Abstractions; | ||
|
||
/// <summary> | ||
/// Represents a response from Kontent.ai Delivery API that contains a continuation token and . | ||
/// </summary> | ||
public interface IDeliverySyncInitResponse : IResponse | ||
{ | ||
/// <summary> | ||
/// Gets list of delta update items. | ||
/// </summary> | ||
IList<ISyncItem> SyncItems { get; } | ||
} |
14 changes: 14 additions & 0 deletions
14
Kontent.Ai.Delivery.Abstractions/Sync/IDeliverySyncResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Kontent.Ai.Delivery.Abstractions; | ||
|
||
/// <summary> | ||
/// Represents a response from Kontent.ai Delivery API that contains a taxonomy group. | ||
/// </summary> | ||
public interface IDeliverySyncResponse : IResponse | ||
{ | ||
/// <summary> | ||
/// Gets list of delta update items. | ||
/// </summary> | ||
IList<ISyncItem> SyncItems { get; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System; | ||
|
||
namespace Kontent.Ai.Delivery.Abstractions; | ||
|
||
/// <summary> | ||
/// Represents a delta update. | ||
/// </summary> | ||
public interface ISyncItem | ||
{ | ||
/// <summary> | ||
/// Gets the content item's codename. | ||
/// </summary> | ||
string Codename { get; } | ||
|
||
/// <summary> | ||
/// Gets the content item's internal ID. | ||
/// </summary> | ||
Guid Id { get; } | ||
|
||
/// <summary> | ||
/// Gets the content item's type codename. | ||
/// </summary> | ||
string Type { get; } | ||
|
||
/// <summary> | ||
/// Gets the codename of the language that the content is in. | ||
/// </summary> | ||
string Language { get; } | ||
|
||
/// <summary> | ||
/// Gets the content item's collection codename. For projects without collections enabled, the value is default. | ||
/// </summary> | ||
string Collection { get; } | ||
|
||
/// <summary> | ||
/// Gets the information whether the content item was modified or deleted since the last synchronization. | ||
/// </summary> | ||
string ChangeType { get; } | ||
|
||
/// <summary> | ||
/// Gets the ISO-8601 formatted date and time in UTC of the last change to the content item. The timestamp identifies when the change occurred in Delivery API. | ||
/// </summary> | ||
DateTime Timestamp { get; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/sync.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"items": [ | ||
{ | ||
"codename": "hello_world", | ||
"id": "7adfb82a-1386-4228-bcc2-45073a0355f6", | ||
"type": "article", | ||
"language": "default", | ||
"collection": "default", | ||
"change_type": "changed", | ||
"timestamp": "2022-10-06T08:38:40.0088127Z" | ||
}, | ||
{ | ||
"codename": "bye__world", | ||
"id": "42a3cfbd-4967-43e7-987b-e1e69c483e26", | ||
"type": "article", | ||
"language": "default", | ||
"collection": "default", | ||
"change_type": "deleted", | ||
"timestamp": "2022-10-06T08:38:47.3613558Z" | ||
} | ||
] | ||
} |
3 changes: 3 additions & 0 deletions
3
Kontent.Ai.Delivery.Tests/Fixtures/DeliveryClient/sync_init.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"items": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.