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;