From 861cf34bda3ca87847fb4f46c92c5b526c014c8f Mon Sep 17 00:00:00 2001 From: Max Inno Date: Tue, 1 Oct 2024 06:42:28 +0300 Subject: [PATCH] feat(projects): add "defaultTmId" and "defaultGlossaryId" support --- src/Crowdin.Api/ProjectsGroups/EnterpriseProjectForm.cs | 6 ++++++ src/Crowdin.Api/ProjectsGroups/FileBasedProjectForm.cs | 6 ++++++ src/Crowdin.Api/ProjectsGroups/ProjectSettingPatch.cs | 6 ++++++ src/Crowdin.Api/ProjectsGroups/StringsBasedProjectForm.cs | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/src/Crowdin.Api/ProjectsGroups/EnterpriseProjectForm.cs b/src/Crowdin.Api/ProjectsGroups/EnterpriseProjectForm.cs index 3fbc01e6..cf1fce89 100644 --- a/src/Crowdin.Api/ProjectsGroups/EnterpriseProjectForm.cs +++ b/src/Crowdin.Api/ProjectsGroups/EnterpriseProjectForm.cs @@ -118,5 +118,11 @@ public class EnterpriseProjectForm : AddProjectRequest [JsonProperty("notificationSettings")] public NotificationSettings? NotificationSettings { get; set; } + + [JsonProperty("defaultTmId")] + public int? DefaultTmId { get; set; } + + [JsonProperty("defaultGlossaryId")] + public int? DefaultGlossaryId { get; set; } } } \ No newline at end of file diff --git a/src/Crowdin.Api/ProjectsGroups/FileBasedProjectForm.cs b/src/Crowdin.Api/ProjectsGroups/FileBasedProjectForm.cs index ee669b14..92f0a80a 100644 --- a/src/Crowdin.Api/ProjectsGroups/FileBasedProjectForm.cs +++ b/src/Crowdin.Api/ProjectsGroups/FileBasedProjectForm.cs @@ -109,5 +109,11 @@ public class FileBasedProjectForm : ProjectForm [JsonProperty("tmContextType")] public TmContextType? TmContextType { get; set; } + + [JsonProperty("defaultTmId")] + public int? DefaultTmId { get; set; } + + [JsonProperty("defaultGlossaryId")] + public int? DefaultGlossaryId { get; set; } } } \ No newline at end of file diff --git a/src/Crowdin.Api/ProjectsGroups/ProjectSettingPatch.cs b/src/Crowdin.Api/ProjectsGroups/ProjectSettingPatch.cs index e4d1ce2d..fe6849f3 100644 --- a/src/Crowdin.Api/ProjectsGroups/ProjectSettingPatch.cs +++ b/src/Crowdin.Api/ProjectsGroups/ProjectSettingPatch.cs @@ -136,5 +136,11 @@ public enum ProjectSettingPathCode [Description("/mtPreTranslate")] MtPreTranslate, + + [Description("/defaultTmId")] + DefaultTmId, + + [Description("/defaultGlossaryId")] + DefaultGlossaryId } } \ No newline at end of file diff --git a/src/Crowdin.Api/ProjectsGroups/StringsBasedProjectForm.cs b/src/Crowdin.Api/ProjectsGroups/StringsBasedProjectForm.cs index 0c224544..1d5d5bef 100644 --- a/src/Crowdin.Api/ProjectsGroups/StringsBasedProjectForm.cs +++ b/src/Crowdin.Api/ProjectsGroups/StringsBasedProjectForm.cs @@ -109,5 +109,11 @@ public class StringsBasedProjectForm : ProjectForm [JsonProperty("tmContextType")] public TmContextType? TmContextType { get; set; } + + [JsonProperty("defaultTmId")] + public int? DefaultTmId { get; set; } + + [JsonProperty("defaultGlossaryId")] + public int? DefaultGlossaryId { get; set; } } } \ No newline at end of file