From bca7f21670ca9cd0308a660d5cc5a7aace75034e Mon Sep 17 00:00:00 2001 From: Yevheniy Oliynyk Date: Sun, 7 Jul 2024 13:28:29 +0200 Subject: [PATCH] wip --- src/languages/index.ts | 6 +++--- src/machineTranslation/index.ts | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/languages/index.ts b/src/languages/index.ts index 08bfac2fb..3e0a22a0e 100644 --- a/src/languages/index.ts +++ b/src/languages/index.ts @@ -87,13 +87,13 @@ export namespace LanguagesModel { export interface AddLanguageRequest { name: string; - dialectOf?: string; code: string; localeCode: string; - twoLettersCode?: string; - threeLettersCode: string; textDirection: TextDirection; pluralCategoryNames: string[]; + threeLettersCode: string; + twoLettersCode?: string; + dialectOf?: string; } export type TextDirection = 'ltr' | 'rtl'; diff --git a/src/machineTranslation/index.ts b/src/machineTranslation/index.ts index 9315bb565..ff023e75e 100644 --- a/src/machineTranslation/index.ts +++ b/src/machineTranslation/index.ts @@ -114,15 +114,16 @@ export namespace MachineTranslationModel { | { apiKey: string } | { credentials: string } | { model: string; apiKey: string } + | { isSystemCredentials: boolean; apiKey: string } | { endpoint: string; apiKey: string } | { url: string } | { accessKey: string; secretKey: string }; export interface CreateMachineTranslationRequest { name: string; - groupId?: number; type: string; credentials: Credentials; + groupId?: number; enabledLanguageIds?: string[]; enabledProjectIds?: number[]; isEnabled?: boolean;