From 34cc81bd3bd484cd8fff2cb6f502b6c8a478731d Mon Sep 17 00:00:00 2001 From: Richard Sustek Date: Thu, 11 Jul 2024 10:39:48 +0200 Subject: [PATCH] feat: Adds support for setting `due_date` when upserting language variant --- lib/contracts/language-variant-contracts.ts | 1 + test/browser/language-variants/upsert-language-variant.spec.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/lib/contracts/language-variant-contracts.ts b/lib/contracts/language-variant-contracts.ts index b79ab7b..0ba43ab 100644 --- a/lib/contracts/language-variant-contracts.ts +++ b/lib/contracts/language-variant-contracts.ts @@ -28,6 +28,7 @@ export namespace LanguageVariantContracts { export interface IUpsertLanguageVariantPostContract { elements: LanguageVariantElements.ILanguageVariantElementBase[]; workflow?: ILanguageVariantWorkflowContract; + due_date?: ILanguageVariantDueDate; } export interface IListLanguageVariantsOfContentTypeWithComponentsResponseContract { variants: ILanguageVariantModelsContract[]; diff --git a/test/browser/language-variants/upsert-language-variant.spec.ts b/test/browser/language-variants/upsert-language-variant.spec.ts index eacd2df..31f2b0c 100644 --- a/test/browser/language-variants/upsert-language-variant.spec.ts +++ b/test/browser/language-variants/upsert-language-variant.spec.ts @@ -75,6 +75,9 @@ describe('Upsert language variant', () => { workflow_identifier: { codename: 'x' } + }, + due_date: { + value: null } }; })