From e0c7350fa226203facfe4c1752c56e29a62feef6 Mon Sep 17 00:00:00 2001 From: Phrase Date: Mon, 10 May 2021 16:51:29 +0000 Subject: [PATCH] Deploying from phrase/openapi@adae3527 --- api/openapi.yaml | 147 +++++++++++++++++++++++++++++ docs/Branch.md | 2 + docs/ProjectCreateParameters.md | 16 ++++ model_branch.go | 16 ++-- model_project_create_parameters.go | 32 +++++++ 5 files changed, 206 insertions(+), 7 deletions(-) diff --git a/api/openapi.yaml b/api/openapi.yaml index a5600b4..3947ac3 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -11096,6 +11096,78 @@ paths: through the params. example: abcd1234 type: string + machine_translation_enabled: + description: (Optional) Enable machine translation support in the + project. Required for Autopilot and Smart Suggest + example: true + type: boolean + enable_branching: + description: (Optional) Enable branching in the project + example: true + type: boolean + protect_master_branch: + description: (Optional) Protect the master branch in project where + branching is enabled + example: true + type: boolean + enable_all_data_type_translation_keys_for_translators: + description: (Optional) Otherwise, translators are not allowed to + edit translations other than strings + example: true + type: boolean + enable_icu_message_format: + description: (Optional) We can validate and highlight your ICU messages. + Read + more + example: true + type: boolean + zero_plural_form_enabled: + description: (Optional) Displays the input fields for the 'ZERO' + plural form for every key as well although only some languages + require the 'ZERO' explicitly. + example: true + type: boolean + autotranslate_enabled: + description: (Optional) Autopilot, requires machine_translation_enabled. + Read more + example: true + type: boolean + autotranslate_check_new_translation_keys: + description: (Optional) Requires autotranslate_enabled to be true + example: true + type: boolean + autotranslate_check_new_uploads: + description: (Optional) Requires autotranslate_enabled to be true + example: true + type: boolean + autotranslate_check_new_locales: + description: (Optional) Requires autotranslate_enabled to be true + example: true + type: boolean + autotranslate_mark_as_unverified: + description: (Optional) Requires autotranslate_enabled to be true + example: true + type: boolean + autotranslate_use_machine_translation: + description: (Optional) Requires autotranslate_enabled to be true + example: true + type: boolean + autotranslate_use_translation_memory: + description: (Optional) Requires autotranslate_enabled to be true + example: true + type: boolean + smart_suggest_enabled: + description: (Optional) Smart Suggest, requires machine_translation_enabled + example: true + type: boolean + smart_suggest_use_glossary: + description: (Optional) Requires smart_suggest_enabled to be true + example: true + type: boolean + smart_suggest_use_machine_translation: + description: (Optional) Requires smart_suggest_enabled to be true + example: true + type: boolean title: project/create/parameters type: object required: true @@ -24181,6 +24253,10 @@ components: name: Joe Doe state: success properties: + base_project_id: + type: string + branch_project_id: + type: string name: type: string created_at: @@ -25463,6 +25539,77 @@ components: the params. example: abcd1234 type: string + machine_translation_enabled: + description: (Optional) Enable machine translation support in the project. + Required for Autopilot and Smart Suggest + example: true + type: boolean + enable_branching: + description: (Optional) Enable branching in the project + example: true + type: boolean + protect_master_branch: + description: (Optional) Protect the master branch in project where branching + is enabled + example: true + type: boolean + enable_all_data_type_translation_keys_for_translators: + description: (Optional) Otherwise, translators are not allowed to edit translations + other than strings + example: true + type: boolean + enable_icu_message_format: + description: (Optional) We can validate and highlight your ICU messages. + Read more + example: true + type: boolean + zero_plural_form_enabled: + description: (Optional) Displays the input fields for the 'ZERO' plural + form for every key as well although only some languages require the 'ZERO' + explicitly. + example: true + type: boolean + autotranslate_enabled: + description: (Optional) Autopilot, requires machine_translation_enabled. + Read more + example: true + type: boolean + autotranslate_check_new_translation_keys: + description: (Optional) Requires autotranslate_enabled to be true + example: true + type: boolean + autotranslate_check_new_uploads: + description: (Optional) Requires autotranslate_enabled to be true + example: true + type: boolean + autotranslate_check_new_locales: + description: (Optional) Requires autotranslate_enabled to be true + example: true + type: boolean + autotranslate_mark_as_unverified: + description: (Optional) Requires autotranslate_enabled to be true + example: true + type: boolean + autotranslate_use_machine_translation: + description: (Optional) Requires autotranslate_enabled to be true + example: true + type: boolean + autotranslate_use_translation_memory: + description: (Optional) Requires autotranslate_enabled to be true + example: true + type: boolean + smart_suggest_enabled: + description: (Optional) Smart Suggest, requires machine_translation_enabled + example: true + type: boolean + smart_suggest_use_glossary: + description: (Optional) Requires smart_suggest_enabled to be true + example: true + type: boolean + smart_suggest_use_machine_translation: + description: (Optional) Requires smart_suggest_enabled to be true + example: true + type: boolean title: project/create/parameters type: object project_update_parameters: diff --git a/docs/Branch.md b/docs/Branch.md index 2ae36f0..8f818c5 100644 --- a/docs/Branch.md +++ b/docs/Branch.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**BaseProjectId** | **string** | | [optional] +**BranchProjectId** | **string** | | [optional] **Name** | **string** | | [optional] **CreatedAt** | [**time.Time**](time.Time.md) | | [optional] **UpdatedAt** | [**time.Time**](time.Time.md) | | [optional] diff --git a/docs/ProjectCreateParameters.md b/docs/ProjectCreateParameters.md index 2c059c8..4ed2859 100644 --- a/docs/ProjectCreateParameters.md +++ b/docs/ProjectCreateParameters.md @@ -11,6 +11,22 @@ Name | Type | Description | Notes **RemoveProjectImage** | **bool** | Indicates whether the project image should be deleted. | [optional] **AccountId** | **string** | Account ID to specify the actual account the project should be created in. Required if the requesting user is a member of multiple accounts. | [optional] **SourceProjectId** | **string** | When a source project ID is given, a clone of that project will be created, including all locales, keys and translations as well as the main project settings if they are not defined otherwise through the params. | [optional] +**MachineTranslationEnabled** | **bool** | (Optional) Enable machine translation support in the project. Required for Autopilot and Smart Suggest | [optional] +**EnableBranching** | **bool** | (Optional) Enable branching in the project | [optional] +**ProtectMasterBranch** | **bool** | (Optional) Protect the master branch in project where branching is enabled | [optional] +**EnableAllDataTypeTranslationKeysForTranslators** | **bool** | (Optional) Otherwise, translators are not allowed to edit translations other than strings | [optional] +**EnableIcuMessageFormat** | **bool** | (Optional) We can validate and highlight your ICU messages. <a href=\"https://help.phrase.com/help/icu-message-format\">Read more</a> | [optional] +**ZeroPluralFormEnabled** | **bool** | (Optional) Displays the input fields for the 'ZERO' plural form for every key as well although only some languages require the 'ZERO' explicitly. | [optional] +**AutotranslateEnabled** | **bool** | (Optional) Autopilot, requires machine_translation_enabled. <a href=\"https://help.phrase.com/help/autopilot\">Read more</a> | [optional] +**AutotranslateCheckNewTranslationKeys** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional] +**AutotranslateCheckNewUploads** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional] +**AutotranslateCheckNewLocales** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional] +**AutotranslateMarkAsUnverified** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional] +**AutotranslateUseMachineTranslation** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional] +**AutotranslateUseTranslationMemory** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional] +**SmartSuggestEnabled** | **bool** | (Optional) Smart Suggest, requires machine_translation_enabled | [optional] +**SmartSuggestUseGlossary** | **bool** | (Optional) Requires smart_suggest_enabled to be true | [optional] +**SmartSuggestUseMachineTranslation** | **bool** | (Optional) Requires smart_suggest_enabled to be true | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/model_branch.go b/model_branch.go index 071186d..dc6001b 100644 --- a/model_branch.go +++ b/model_branch.go @@ -6,11 +6,13 @@ import ( // Branch struct for Branch type Branch struct { - Name string `json:"name,omitempty"` - CreatedAt time.Time `json:"created_at,omitempty"` - UpdatedAt time.Time `json:"updated_at,omitempty"` - MergedAt time.Time `json:"merged_at,omitempty"` - MergedBy UserPreview `json:"merged_by,omitempty"` - CreatedBy UserPreview `json:"created_by,omitempty"` - State string `json:"state,omitempty"` + BaseProjectId string `json:"base_project_id,omitempty"` + BranchProjectId string `json:"branch_project_id,omitempty"` + Name string `json:"name,omitempty"` + CreatedAt time.Time `json:"created_at,omitempty"` + UpdatedAt time.Time `json:"updated_at,omitempty"` + MergedAt time.Time `json:"merged_at,omitempty"` + MergedBy UserPreview `json:"merged_by,omitempty"` + CreatedBy UserPreview `json:"created_by,omitempty"` + State string `json:"state,omitempty"` } diff --git a/model_project_create_parameters.go b/model_project_create_parameters.go index 87a5747..3154347 100644 --- a/model_project_create_parameters.go +++ b/model_project_create_parameters.go @@ -20,4 +20,36 @@ type ProjectCreateParameters struct { AccountId string `json:"account_id,omitempty"` // When a source project ID is given, a clone of that project will be created, including all locales, keys and translations as well as the main project settings if they are not defined otherwise through the params. SourceProjectId string `json:"source_project_id,omitempty"` + // (Optional) Enable machine translation support in the project. Required for Autopilot and Smart Suggest + MachineTranslationEnabled *bool `json:"machine_translation_enabled,omitempty"` + // (Optional) Enable branching in the project + EnableBranching *bool `json:"enable_branching,omitempty"` + // (Optional) Protect the master branch in project where branching is enabled + ProtectMasterBranch *bool `json:"protect_master_branch,omitempty"` + // (Optional) Otherwise, translators are not allowed to edit translations other than strings + EnableAllDataTypeTranslationKeysForTranslators *bool `json:"enable_all_data_type_translation_keys_for_translators,omitempty"` + // (Optional) We can validate and highlight your ICU messages. Read more + EnableIcuMessageFormat *bool `json:"enable_icu_message_format,omitempty"` + // (Optional) Displays the input fields for the 'ZERO' plural form for every key as well although only some languages require the 'ZERO' explicitly. + ZeroPluralFormEnabled *bool `json:"zero_plural_form_enabled,omitempty"` + // (Optional) Autopilot, requires machine_translation_enabled. Read more + AutotranslateEnabled *bool `json:"autotranslate_enabled,omitempty"` + // (Optional) Requires autotranslate_enabled to be true + AutotranslateCheckNewTranslationKeys *bool `json:"autotranslate_check_new_translation_keys,omitempty"` + // (Optional) Requires autotranslate_enabled to be true + AutotranslateCheckNewUploads *bool `json:"autotranslate_check_new_uploads,omitempty"` + // (Optional) Requires autotranslate_enabled to be true + AutotranslateCheckNewLocales *bool `json:"autotranslate_check_new_locales,omitempty"` + // (Optional) Requires autotranslate_enabled to be true + AutotranslateMarkAsUnverified *bool `json:"autotranslate_mark_as_unverified,omitempty"` + // (Optional) Requires autotranslate_enabled to be true + AutotranslateUseMachineTranslation *bool `json:"autotranslate_use_machine_translation,omitempty"` + // (Optional) Requires autotranslate_enabled to be true + AutotranslateUseTranslationMemory *bool `json:"autotranslate_use_translation_memory,omitempty"` + // (Optional) Smart Suggest, requires machine_translation_enabled + SmartSuggestEnabled *bool `json:"smart_suggest_enabled,omitempty"` + // (Optional) Requires smart_suggest_enabled to be true + SmartSuggestUseGlossary *bool `json:"smart_suggest_use_glossary,omitempty"` + // (Optional) Requires smart_suggest_enabled to be true + SmartSuggestUseMachineTranslation *bool `json:"smart_suggest_use_machine_translation,omitempty"` }