-
Notifications
You must be signed in to change notification settings - Fork 31
EN-542 Add early access support for new MAPI endpoint `/early-access/… #284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
pokornyd
merged 5 commits into
kontent-ai:master
from
arguit:EN-542-add-early-access-support-mapi-variant-filter
Sep 2, 2025
+838
−0
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
5a7ef81
EN-542 Add early access support for new MAPI endpoint `/early-access/…
eaf8cff
EN-542 Fix comments
167afd0
EN-542 Refactor CompletionStatus and Direction to use enums instead o…
f246a7d
EN-542 Add more tests
3ea0bf1
EN-542 Fix include_content usage description
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
67 changes: 67 additions & 0 deletions
67
Kontent.Ai.Management.Tests/Data/VariantFilter/VariantFilter.json
This file contains hidden or 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,67 @@ | ||
| { | ||
| "data": [ | ||
| { | ||
| "item": { | ||
| "id": "4b628214-e4fe-4fe0-b1ff-955df33e1515", | ||
| "name": "Sample Article", | ||
| "codename": "sample_article", | ||
| "type": { | ||
| "id": "ba5cd79d-6d4b-5bed-a681-6aa3a366c8f7", | ||
| "codename": "article" | ||
| }, | ||
| "collection": { | ||
| "id": "00000000-0000-0000-0000-000000000000", | ||
| "codename": "default" | ||
| }, | ||
| "spaces": [ | ||
| { | ||
| "id": "00000000-0000-0000-0000-000000000000", | ||
| "codename": "default" | ||
| } | ||
| ], | ||
| "sitemap_locations": [], | ||
| "last_modified": "2024-01-15T10:30:00.000Z" | ||
| } | ||
| }, | ||
| { | ||
| "item": { | ||
| "id": "6a8b4d04-7d3e-4d3c-8b9a-4c7e8f9a1b2c", | ||
| "name": "Another Article", | ||
| "codename": "another_article", | ||
| "type": { | ||
| "id": "ba5cd79d-6d4b-5bed-a681-6aa3a366c8f7", | ||
| "codename": "article" | ||
| }, | ||
| "collection": { | ||
| "id": "00000000-0000-0000-0000-000000000000", | ||
| "codename": "default" | ||
| }, | ||
| "spaces": [ | ||
| { | ||
| "id": "00000000-0000-0000-0000-000000000000", | ||
| "codename": "default" | ||
| } | ||
| ], | ||
| "sitemap_locations": [], | ||
| "external_id": "ext_another_article", | ||
| "last_modified": "2024-01-16T14:45:00.000Z" | ||
| }, | ||
| "variant": { | ||
| "item": { | ||
| "id": "6a8b4d04-7d3e-4d3c-8b9a-4c7e8f9a1b2c", | ||
| "codename": "another_article" | ||
| }, | ||
| "language": { | ||
| "id": "00000000-0000-0000-0000-000000000000", | ||
| "codename": "en-US" | ||
| }, | ||
| "elements": [], | ||
| "last_modified": "2024-01-16T14:45:00.000Z" | ||
| } | ||
| } | ||
| ], | ||
| "pagination": { | ||
| "continuation_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9", | ||
| "next_page": "https://manage.kontent.ai/v2/projects/environmentId/early-access/variants/filter?continuation_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9" | ||
| } | ||
| } | ||
69 changes: 69 additions & 0 deletions
69
Kontent.Ai.Management.Tests/Data/VariantFilter/VariantFilterWithElements.json
This file contains hidden or 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,69 @@ | ||
| { | ||
| "data": [ | ||
| { | ||
| "item": { | ||
| "id": "6a8b4d04-7d3e-4d3c-8b9a-4c7e8f9a1b2c", | ||
| "name": "Article with Content", | ||
| "codename": "article_with_content", | ||
| "type": { | ||
| "id": "ba5cd79d-6d4b-5bed-a681-6aa3a366c8f7", | ||
| "codename": "article" | ||
| }, | ||
| "collection": { | ||
| "id": "00000000-0000-0000-0000-000000000000", | ||
| "codename": "default" | ||
| }, | ||
| "spaces": [ | ||
| { | ||
| "id": "00000000-0000-0000-0000-000000000000", | ||
| "codename": "default" | ||
| } | ||
| ], | ||
| "sitemap_locations": [], | ||
| "external_id": "ext_article_with_content", | ||
| "last_modified": "2024-01-16T14:45:00.000Z" | ||
| }, | ||
| "variant": { | ||
| "item": { | ||
| "id": "6a8b4d04-7d3e-4d3c-8b9a-4c7e8f9a1b2c", | ||
| "codename": "article_with_content" | ||
| }, | ||
| "language": { | ||
| "id": "00000000-0000-0000-0000-000000000000", | ||
| "codename": "en-US" | ||
| }, | ||
| "elements": [ | ||
| { | ||
| "element": { | ||
| "id": "bf7c2d26-4043-4c84-8e3e-5c318b3c19f4", | ||
| "codename": "title" | ||
| }, | ||
| "value": "Sample Article Title" | ||
| }, | ||
| { | ||
| "element": { | ||
| "id": "47bf7194-1c84-4c84-8e3e-5c318b3c29g5", | ||
| "codename": "summary" | ||
| }, | ||
| "value": "This is a sample article summary" | ||
| } | ||
| ], | ||
| "last_modified": "2024-01-16T14:45:00.000Z", | ||
| "workflow": { | ||
| "workflow_identifier": { | ||
| "id": "88ac5e6e-1c84-4c84-8e3e-5c318b3c44f6", | ||
| "codename": "default_workflow" | ||
| }, | ||
| "step_identifier": { | ||
| "id": "99bc6f7f-2d95-5d95-9f4f-6d429c4d5517", | ||
| "codename": "published" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ], | ||
| "pagination": { | ||
| "continuation_token": null, | ||
| "next_page": null | ||
| } | ||
| } |
42 changes: 42 additions & 0 deletions
42
Kontent.Ai.Management.Tests/Data/VariantFilter/VariantFilterWithoutElements.json
This file contains hidden or 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,42 @@ | ||
| { | ||
| "data": [ | ||
| { | ||
| "item": { | ||
| "id": "4b628214-e4fe-4fe0-b1ff-955df33e1515", | ||
| "name": "Sample Article", | ||
| "codename": "sample_article", | ||
| "type": { | ||
| "id": "ba5cd79d-6d4b-5bed-a681-6aa3a366c8f7", | ||
| "codename": "article" | ||
| }, | ||
| "collection": { | ||
| "id": "00000000-0000-0000-0000-000000000000", | ||
| "codename": "default" | ||
| }, | ||
| "spaces": [ | ||
| { | ||
| "id": "00000000-0000-0000-0000-000000000000", | ||
| "codename": "default" | ||
| } | ||
| ], | ||
| "sitemap_locations": [], | ||
| "last_modified": "2024-01-15T10:30:00.000Z" | ||
| }, | ||
| "variant": { | ||
| "item": { | ||
| "id": "4b628214-e4fe-4fe0-b1ff-955df33e1515", | ||
| "codename": "sample_article" | ||
| }, | ||
| "language": { | ||
| "id": "00000000-0000-0000-0000-000000000000", | ||
| "codename": "en-US" | ||
| }, | ||
| "last_modified": "2024-01-15T10:30:00.000Z" | ||
| } | ||
| } | ||
| ], | ||
| "pagination": { | ||
| "continuation_token": null, | ||
| "next_page": null | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.