Skip to content

Commit

Permalink
Deploying from phrase/openapi@adae3527
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed May 10, 2021
1 parent 6a5ebcf commit 9422bf0
Show file tree
Hide file tree
Showing 5 changed files with 151 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## [email protected].10
## [email protected].11

Phrase is a translation management platform for software projects. You can collaborate on language file translation with your team or order translations through our platform. The API allows you to import locale files, download locale files, tag keys or interact in other ways with the localization data stored in Phrase for your account.

## This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 2.0.0
- Package version: 1.0.10
- Package version: 1.0.11
- Build package: phrase-js
For more information, please visit [https://developers.phrase.com/api/](https://developers.phrase.com/api/)

Expand Down Expand Up @@ -47,14 +47,14 @@ _published:_


```
npm install [email protected].10 --save
npm install [email protected].11 --save
```

if you are using yarn


```
yarn install [email protected].10
yarn install [email protected].11
```

_unPublished (not recommended):_
Expand Down Expand Up @@ -104,7 +104,7 @@ here is the example package.json
"@types/node": "^14.0.1",
"form-data": "^3.0.0",
"node-fetch": "^2.6.0",
"phrase-js": "^1.0.10"
"phrase-js": "^1.0.11"
},
"devDependencies": {
"tslint": "^5.20.1",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "phrase-js",
"version": "1.0.10",
"version": "1.0.11",
"description": "OpenAPI client for Phrase",
"author": "OpenAPI-Generator",
"license" : "MIT",
Expand Down
16 changes: 16 additions & 0 deletions src/models/Branch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ import {
* @interface Branch
*/
export interface Branch {
/**
*
* @type {string}
* @memberof Branch
*/
baseProjectId?: string;
/**
*
* @type {string}
* @memberof Branch
*/
branchProjectId?: string;
/**
*
* @type {string}
Expand Down Expand Up @@ -79,6 +91,8 @@ export function BranchFromJSONTyped(json: any, ignoreDiscriminator: boolean): Br
}
return {

'baseProjectId': !exists(json, 'base_project_id') ? undefined : json['base_project_id'],
'branchProjectId': !exists(json, 'branch_project_id') ? undefined : json['branch_project_id'],
'name': !exists(json, 'name') ? undefined : json['name'],
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
'updatedAt': !exists(json, 'updated_at') ? undefined : (new Date(json['updated_at'])),
Expand All @@ -98,6 +112,8 @@ export function BranchToJSON(value?: Branch | null): any {
}
return {

'base_project_id': value.baseProjectId,
'branch_project_id': value.branchProjectId,
'name': value.name,
'created_at': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
'updated_at': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
Expand Down
128 changes: 128 additions & 0 deletions src/models/ProjectCreateParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,102 @@ export interface ProjectCreateParameters {
* @memberof ProjectCreateParameters
*/
sourceProjectId?: string;
/**
* (Optional) Enable machine translation support in the project. Required for Autopilot and Smart Suggest
* @type {boolean}
* @memberof ProjectCreateParameters
*/
machineTranslationEnabled?: boolean;
/**
* (Optional) Enable branching in the project
* @type {boolean}
* @memberof ProjectCreateParameters
*/
enableBranching?: boolean;
/**
* (Optional) Protect the master branch in project where branching is enabled
* @type {boolean}
* @memberof ProjectCreateParameters
*/
protectMasterBranch?: boolean;
/**
* (Optional) Otherwise, translators are not allowed to edit translations other than strings
* @type {boolean}
* @memberof ProjectCreateParameters
*/
enableAllDataTypeTranslationKeysForTranslators?: boolean;
/**
* (Optional) We can validate and highlight your ICU messages. <a href=\"https://help.phrase.com/help/icu-message-format\">Read more</a>
* @type {boolean}
* @memberof ProjectCreateParameters
*/
enableIcuMessageFormat?: boolean;
/**
* (Optional) Displays the input fields for the \'ZERO\' plural form for every key as well although only some languages require the \'ZERO\' explicitly.
* @type {boolean}
* @memberof ProjectCreateParameters
*/
zeroPluralFormEnabled?: boolean;
/**
* (Optional) Autopilot, requires machine_translation_enabled. <a href=\"https://help.phrase.com/help/autopilot\">Read more</a>
* @type {boolean}
* @memberof ProjectCreateParameters
*/
autotranslateEnabled?: boolean;
/**
* (Optional) Requires autotranslate_enabled to be true
* @type {boolean}
* @memberof ProjectCreateParameters
*/
autotranslateCheckNewTranslationKeys?: boolean;
/**
* (Optional) Requires autotranslate_enabled to be true
* @type {boolean}
* @memberof ProjectCreateParameters
*/
autotranslateCheckNewUploads?: boolean;
/**
* (Optional) Requires autotranslate_enabled to be true
* @type {boolean}
* @memberof ProjectCreateParameters
*/
autotranslateCheckNewLocales?: boolean;
/**
* (Optional) Requires autotranslate_enabled to be true
* @type {boolean}
* @memberof ProjectCreateParameters
*/
autotranslateMarkAsUnverified?: boolean;
/**
* (Optional) Requires autotranslate_enabled to be true
* @type {boolean}
* @memberof ProjectCreateParameters
*/
autotranslateUseMachineTranslation?: boolean;
/**
* (Optional) Requires autotranslate_enabled to be true
* @type {boolean}
* @memberof ProjectCreateParameters
*/
autotranslateUseTranslationMemory?: boolean;
/**
* (Optional) Smart Suggest, requires machine_translation_enabled
* @type {boolean}
* @memberof ProjectCreateParameters
*/
smartSuggestEnabled?: boolean;
/**
* (Optional) Requires smart_suggest_enabled to be true
* @type {boolean}
* @memberof ProjectCreateParameters
*/
smartSuggestUseGlossary?: boolean;
/**
* (Optional) Requires smart_suggest_enabled to be true
* @type {boolean}
* @memberof ProjectCreateParameters
*/
smartSuggestUseMachineTranslation?: boolean;
}

export function ProjectCreateParametersFromJSON(json: any): ProjectCreateParameters {
Expand All @@ -79,6 +175,22 @@ export function ProjectCreateParametersFromJSONTyped(json: any, ignoreDiscrimina
'removeProjectImage': !exists(json, 'remove_project_image') ? undefined : json['remove_project_image'],
'accountId': !exists(json, 'account_id') ? undefined : json['account_id'],
'sourceProjectId': !exists(json, 'source_project_id') ? undefined : json['source_project_id'],
'machineTranslationEnabled': !exists(json, 'machine_translation_enabled') ? undefined : json['machine_translation_enabled'],
'enableBranching': !exists(json, 'enable_branching') ? undefined : json['enable_branching'],
'protectMasterBranch': !exists(json, 'protect_master_branch') ? undefined : json['protect_master_branch'],
'enableAllDataTypeTranslationKeysForTranslators': !exists(json, 'enable_all_data_type_translation_keys_for_translators') ? undefined : json['enable_all_data_type_translation_keys_for_translators'],
'enableIcuMessageFormat': !exists(json, 'enable_icu_message_format') ? undefined : json['enable_icu_message_format'],
'zeroPluralFormEnabled': !exists(json, 'zero_plural_form_enabled') ? undefined : json['zero_plural_form_enabled'],
'autotranslateEnabled': !exists(json, 'autotranslate_enabled') ? undefined : json['autotranslate_enabled'],
'autotranslateCheckNewTranslationKeys': !exists(json, 'autotranslate_check_new_translation_keys') ? undefined : json['autotranslate_check_new_translation_keys'],
'autotranslateCheckNewUploads': !exists(json, 'autotranslate_check_new_uploads') ? undefined : json['autotranslate_check_new_uploads'],
'autotranslateCheckNewLocales': !exists(json, 'autotranslate_check_new_locales') ? undefined : json['autotranslate_check_new_locales'],
'autotranslateMarkAsUnverified': !exists(json, 'autotranslate_mark_as_unverified') ? undefined : json['autotranslate_mark_as_unverified'],
'autotranslateUseMachineTranslation': !exists(json, 'autotranslate_use_machine_translation') ? undefined : json['autotranslate_use_machine_translation'],
'autotranslateUseTranslationMemory': !exists(json, 'autotranslate_use_translation_memory') ? undefined : json['autotranslate_use_translation_memory'],
'smartSuggestEnabled': !exists(json, 'smart_suggest_enabled') ? undefined : json['smart_suggest_enabled'],
'smartSuggestUseGlossary': !exists(json, 'smart_suggest_use_glossary') ? undefined : json['smart_suggest_use_glossary'],
'smartSuggestUseMachineTranslation': !exists(json, 'smart_suggest_use_machine_translation') ? undefined : json['smart_suggest_use_machine_translation'],
};
}

Expand All @@ -98,6 +210,22 @@ export function ProjectCreateParametersToJSON(value?: ProjectCreateParameters |
'remove_project_image': value.removeProjectImage,
'account_id': value.accountId,
'source_project_id': value.sourceProjectId,
'machine_translation_enabled': value.machineTranslationEnabled,
'enable_branching': value.enableBranching,
'protect_master_branch': value.protectMasterBranch,
'enable_all_data_type_translation_keys_for_translators': value.enableAllDataTypeTranslationKeysForTranslators,
'enable_icu_message_format': value.enableIcuMessageFormat,
'zero_plural_form_enabled': value.zeroPluralFormEnabled,
'autotranslate_enabled': value.autotranslateEnabled,
'autotranslate_check_new_translation_keys': value.autotranslateCheckNewTranslationKeys,
'autotranslate_check_new_uploads': value.autotranslateCheckNewUploads,
'autotranslate_check_new_locales': value.autotranslateCheckNewLocales,
'autotranslate_mark_as_unverified': value.autotranslateMarkAsUnverified,
'autotranslate_use_machine_translation': value.autotranslateUseMachineTranslation,
'autotranslate_use_translation_memory': value.autotranslateUseTranslationMemory,
'smart_suggest_enabled': value.smartSuggestEnabled,
'smart_suggest_use_glossary': value.smartSuggestUseGlossary,
'smart_suggest_use_machine_translation': value.smartSuggestUseMachineTranslation,
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class Configuration {
configuration.headers = {}
}

configuration.headers["User-Agent"] = "OpenAPI-Generator/1.0.10/js"
configuration.headers["User-Agent"] = "OpenAPI-Generator/1.0.11/js"
}

get basePath(): string {
Expand Down

0 comments on commit 9422bf0

Please sign in to comment.