-
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.
- Loading branch information
1 parent
479011a
commit 7635ea7
Showing
21 changed files
with
942 additions
and
15 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
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; | ||
|
||
namespace Kontent.Ai.Delivery.Abstractions; | ||
|
||
/// <summary> | ||
/// Represents a parent content item. | ||
/// </summary> | ||
public interface IUsedInItem | ||
{ | ||
/// <summary> | ||
/// Represents system attributes of a parent content item. | ||
/// </summary> | ||
public IUsedInItemSystemAttributes System { get; } | ||
} |
33 changes: 33 additions & 0 deletions
33
Kontent.Ai.Delivery.Abstractions/UsedIn/IUsedInItemSystemAttributes.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,33 @@ | ||
namespace Kontent.Ai.Delivery.Abstractions | ||
{ | ||
/// <summary> | ||
/// Represents system attributes of a parent content item. | ||
/// </summary> | ||
public interface IUsedInItemSystemAttributes : ISystemAttributes | ||
{ | ||
/// <summary> | ||
/// Gets the language of the content item. | ||
/// </summary> | ||
string Language { get; } | ||
|
||
/// <summary> | ||
/// Gets the codename of the content type, for example "article". | ||
/// </summary> | ||
string Type { get; } | ||
|
||
/// <summary> | ||
/// Gets the codename of the content collection to which the content item belongs. | ||
/// </summary> | ||
public string Collection { get; } | ||
|
||
/// <summary> | ||
/// Gets the codename of the workflow which the content item is assigned to. | ||
/// </summary> | ||
public string Workflow { get; } | ||
|
||
/// <summary> | ||
/// Gets the codename of the workflow step which the content item is assigned to. | ||
/// </summary> | ||
public string WorkflowStep { 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
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,30 @@ | ||
{ | ||
"items": [ | ||
{ | ||
"system": { | ||
"id": "35778b62-e97f-42cb-833f-8a34c14e27ce", | ||
"name": "rich text child", | ||
"codename": "rich_text_child", | ||
"language": "language1", | ||
"type": "ct", | ||
"collection": "default", | ||
"workflow": "default", | ||
"workflow_step": "published", | ||
"last_modified": "2024-08-01T14:17:50.4141347Z" | ||
} | ||
}, | ||
{ | ||
"system": { | ||
"id": "3ad63df6-a439-4a64-8193-14e999bfaaf2", | ||
"name": "rich text child 2", | ||
"codename": "rich_text_child_2", | ||
"language": "language1", | ||
"type": "ct", | ||
"collection": "default", | ||
"workflow": "default", | ||
"workflow_step": "published", | ||
"last_modified": "2024-08-01T14:17:50.4141347Z" | ||
} | ||
} | ||
] | ||
} |
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
Oops, something went wrong.