Skip to content

Commit

Permalink
Deploying from phrase/openapi@9e584b6c
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Feb 21, 2023
1 parent 048d1fe commit 50324ab
Show file tree
Hide file tree
Showing 12 changed files with 195 additions and 38 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].6
## [email protected].7

Phrase Strings 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 Strings 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.5.6
- Package version: 1.5.7
- 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].6 --save
npm install [email protected].7 --save
```

if you are using yarn


```
yarn install [email protected].6
yarn install [email protected].7
```

_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.5.6"
"phrase-js": "^1.5.7"
},
"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.5.6",
"version": "1.5.7",
"description": "OpenAPI client for Phrase Strings",
"author": "OpenAPI-Generator",
"license" : "MIT",
Expand Down
28 changes: 20 additions & 8 deletions src/models/JobLocale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ import {
LocalePreviewFromJSON,
LocalePreviewFromJSONTyped,
LocalePreviewToJSON,
UserPreview,
UserPreviewFromJSON,
UserPreviewFromJSONTyped,
UserPreviewToJSON,
LocaleTeamPreview,
LocaleTeamPreviewFromJSON,
LocaleTeamPreviewFromJSONTyped,
LocaleTeamPreviewToJSON,
LocaleUserPreview,
LocaleUserPreviewFromJSON,
LocaleUserPreviewFromJSONTyped,
LocaleUserPreviewToJSON,
} from './';

/**
Expand Down Expand Up @@ -53,10 +57,16 @@ export interface JobLocale {
locale?: LocalePreview;
/**
*
* @type {Array<UserPreview>}
* @type {Array<LocaleUserPreview>}
* @memberof JobLocale
*/
users?: Array<UserPreview>;
users?: Array<LocaleUserPreview>;
/**
*
* @type {Array<LocaleTeamPreview>}
* @memberof JobLocale
*/
teams?: Array<LocaleTeamPreview>;
/**
*
* @type {boolean}
Expand Down Expand Up @@ -90,7 +100,8 @@ export function JobLocaleFromJSONTyped(json: any, ignoreDiscriminator: boolean):
'id': !exists(json, 'id') ? undefined : json['id'],
'job': !exists(json, 'job') ? undefined : JobPreviewFromJSON(json['job']),
'locale': !exists(json, 'locale') ? undefined : LocalePreviewFromJSON(json['locale']),
'users': !exists(json, 'users') ? undefined : ((json['users'] as Array<any>).map(UserPreviewFromJSON)),
'users': !exists(json, 'users') ? undefined : ((json['users'] as Array<any>).map(LocaleUserPreviewFromJSON)),
'teams': !exists(json, 'teams') ? undefined : ((json['teams'] as Array<any>).map(LocaleTeamPreviewFromJSON)),
'completed': !exists(json, 'completed') ? undefined : json['completed'],
'translationCompletedAt': !exists(json, 'translation_completed_at') ? undefined : (new Date(json['translation_completed_at'])),
'reviewCompletedAt': !exists(json, 'review_completed_at') ? undefined : (new Date(json['review_completed_at'])),
Expand All @@ -109,7 +120,8 @@ export function JobLocaleToJSON(value?: JobLocale | null): any {
'id': value.id,
'job': JobPreviewToJSON(value.job),
'locale': LocalePreviewToJSON(value.locale),
'users': value.users === undefined ? undefined : ((value.users as Array<any>).map(UserPreviewToJSON)),
'users': value.users === undefined ? undefined : ((value.users as Array<any>).map(LocaleUserPreviewToJSON)),
'teams': value.teams === undefined ? undefined : ((value.teams as Array<any>).map(LocaleTeamPreviewToJSON)),
'completed': value.completed,
'translation_completed_at': value.translationCompletedAt === undefined ? undefined : (value.translationCompletedAt.toISOString()),
'review_completed_at': value.reviewCompletedAt === undefined ? undefined : (value.reviewCompletedAt.toISOString()),
Expand Down
16 changes: 16 additions & 0 deletions src/models/JobLocaleUpdateParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ export interface JobLocaleUpdateParameters {
* @memberof JobLocaleUpdateParameters
*/
reviewerIds?: Array<string>;
/**
* Array of team ids to be assigned to the job locale as translators
* @type {Array<string>}
* @memberof JobLocaleUpdateParameters
*/
translatorTeamIds?: Array<string>;
/**
* Array of team ids to be assigned to the job locale as reviewers
* @type {Array<string>}
* @memberof JobLocaleUpdateParameters
*/
reviewerTeamIds?: Array<string>;
}

export function JobLocaleUpdateParametersFromJSON(json: any): JobLocaleUpdateParameters {
Expand All @@ -58,6 +70,8 @@ export function JobLocaleUpdateParametersFromJSONTyped(json: any, ignoreDiscrimi
'localeId': !exists(json, 'locale_id') ? undefined : json['locale_id'],
'userIds': !exists(json, 'user_ids') ? undefined : json['user_ids'],
'reviewerIds': !exists(json, 'reviewer_ids') ? undefined : json['reviewer_ids'],
'translatorTeamIds': !exists(json, 'translator_team_ids') ? undefined : json['translator_team_ids'],
'reviewerTeamIds': !exists(json, 'reviewer_team_ids') ? undefined : json['reviewer_team_ids'],
};
}

Expand All @@ -74,6 +88,8 @@ export function JobLocaleUpdateParametersToJSON(value?: JobLocaleUpdateParameter
'locale_id': value.localeId,
'user_ids': value.userIds,
'reviewer_ids': value.reviewerIds,
'translator_team_ids': value.translatorTeamIds,
'reviewer_team_ids': value.reviewerTeamIds,
};
}

Expand Down
20 changes: 18 additions & 2 deletions src/models/JobLocalesCreateParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface JobLocalesCreateParameters {
* @type {string}
* @memberof JobLocalesCreateParameters
*/
localeId?: string;
localeId: string;
/**
* Array of user ids to be assigned to the job locale as translators
* @type {Array<string>}
Expand All @@ -42,6 +42,18 @@ export interface JobLocalesCreateParameters {
* @memberof JobLocalesCreateParameters
*/
reviewerIds?: Array<string>;
/**
* Array of team ids to be assigned to the job locale as translators
* @type {Array<string>}
* @memberof JobLocalesCreateParameters
*/
translatorTeamIds?: Array<string>;
/**
* Array of team ids to be assigned to the job locale as reviewers
* @type {Array<string>}
* @memberof JobLocalesCreateParameters
*/
reviewerTeamIds?: Array<string>;
}

export function JobLocalesCreateParametersFromJSON(json: any): JobLocalesCreateParameters {
Expand All @@ -55,9 +67,11 @@ export function JobLocalesCreateParametersFromJSONTyped(json: any, ignoreDiscrim
return {

'branch': !exists(json, 'branch') ? undefined : json['branch'],
'localeId': !exists(json, 'locale_id') ? undefined : json['locale_id'],
'localeId': json['locale_id'],
'userIds': !exists(json, 'user_ids') ? undefined : json['user_ids'],
'reviewerIds': !exists(json, 'reviewer_ids') ? undefined : json['reviewer_ids'],
'translatorTeamIds': !exists(json, 'translator_team_ids') ? undefined : json['translator_team_ids'],
'reviewerTeamIds': !exists(json, 'reviewer_team_ids') ? undefined : json['reviewer_team_ids'],
};
}

Expand All @@ -74,6 +88,8 @@ export function JobLocalesCreateParametersToJSON(value?: JobLocalesCreateParamet
'locale_id': value.localeId,
'user_ids': value.userIds,
'reviewer_ids': value.reviewerIds,
'translator_team_ids': value.translatorTeamIds,
'reviewer_team_ids': value.reviewerTeamIds,
};
}

Expand Down
20 changes: 18 additions & 2 deletions src/models/JobTemplateLocaleUpdateParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface JobTemplateLocaleUpdateParameters {
* @type {string}
* @memberof JobTemplateLocaleUpdateParameters
*/
localeId: string;
localeId?: string;
/**
* Array of user ids to be assigned to the job template locale
* @type {Array<string>}
Expand All @@ -42,6 +42,18 @@ export interface JobTemplateLocaleUpdateParameters {
* @memberof JobTemplateLocaleUpdateParameters
*/
reviewerIds?: Array<string>;
/**
* Array of team ids to be assigned to the job locale as translators
* @type {Array<string>}
* @memberof JobTemplateLocaleUpdateParameters
*/
translatorTeamIds?: Array<string>;
/**
* Array of team ids to be assigned to the job locale as reviewers
* @type {Array<string>}
* @memberof JobTemplateLocaleUpdateParameters
*/
reviewerTeamIds?: Array<string>;
}

export function JobTemplateLocaleUpdateParametersFromJSON(json: any): JobTemplateLocaleUpdateParameters {
Expand All @@ -55,9 +67,11 @@ export function JobTemplateLocaleUpdateParametersFromJSONTyped(json: any, ignore
return {

'branch': !exists(json, 'branch') ? undefined : json['branch'],
'localeId': json['locale_id'],
'localeId': !exists(json, 'locale_id') ? undefined : json['locale_id'],
'userIds': !exists(json, 'user_ids') ? undefined : json['user_ids'],
'reviewerIds': !exists(json, 'reviewer_ids') ? undefined : json['reviewer_ids'],
'translatorTeamIds': !exists(json, 'translator_team_ids') ? undefined : json['translator_team_ids'],
'reviewerTeamIds': !exists(json, 'reviewer_team_ids') ? undefined : json['reviewer_team_ids'],
};
}

Expand All @@ -74,6 +88,8 @@ export function JobTemplateLocaleUpdateParametersToJSON(value?: JobTemplateLocal
'locale_id': value.localeId,
'user_ids': value.userIds,
'reviewer_ids': value.reviewerIds,
'translator_team_ids': value.translatorTeamIds,
'reviewer_team_ids': value.reviewerTeamIds,
};
}

Expand Down
24 changes: 16 additions & 8 deletions src/models/JobTemplateLocales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@

import { exists, mapValues } from '../runtime';
import {
Items,
ItemsFromJSON,
ItemsFromJSONTyped,
ItemsToJSON,
JobTemplatePreview,
JobTemplatePreviewFromJSON,
JobTemplatePreviewFromJSONTyped,
JobTemplatePreviewToJSON,
JobTemplateUserPreview,
JobTemplateUserPreviewFromJSON,
JobTemplateUserPreviewFromJSONTyped,
JobTemplateUserPreviewToJSON,
LocalePreview,
LocalePreviewFromJSON,
LocalePreviewFromJSONTyped,
Expand Down Expand Up @@ -53,10 +53,16 @@ export interface JobTemplateLocales {
locale?: LocalePreview;
/**
*
* @type {Array<JobTemplateUserPreview>}
* @type {Array<Items>}
* @memberof JobTemplateLocales
*/
users?: Array<JobTemplateUserPreview>;
users?: Array<Items>;
/**
*
* @type {Array<Items>}
* @memberof JobTemplateLocales
*/
teams?: Array<Items>;
}

export function JobTemplateLocalesFromJSON(json: any): JobTemplateLocales {
Expand All @@ -72,7 +78,8 @@ export function JobTemplateLocalesFromJSONTyped(json: any, ignoreDiscriminator:
'id': !exists(json, 'id') ? undefined : json['id'],
'jobTemplate': !exists(json, 'job_template') ? undefined : JobTemplatePreviewFromJSON(json['job_template']),
'locale': !exists(json, 'locale') ? undefined : LocalePreviewFromJSON(json['locale']),
'users': !exists(json, 'users') ? undefined : ((json['users'] as Array<any>).map(JobTemplateUserPreviewFromJSON)),
'users': !exists(json, 'users') ? undefined : ((json['users'] as Array<any>).map(ItemsFromJSON)),
'teams': !exists(json, 'teams') ? undefined : ((json['teams'] as Array<any>).map(ItemsFromJSON)),
};
}

Expand All @@ -88,7 +95,8 @@ export function JobTemplateLocalesToJSON(value?: JobTemplateLocales | null): any
'id': value.id,
'job_template': JobTemplatePreviewToJSON(value.jobTemplate),
'locale': LocalePreviewToJSON(value.locale),
'users': value.users === undefined ? undefined : ((value.users as Array<any>).map(JobTemplateUserPreviewToJSON)),
'users': value.users === undefined ? undefined : ((value.users as Array<any>).map(ItemsToJSON)),
'teams': value.teams === undefined ? undefined : ((value.teams as Array<any>).map(ItemsToJSON)),
};
}

Expand Down
16 changes: 16 additions & 0 deletions src/models/JobTemplateLocalesCreateParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ export interface JobTemplateLocalesCreateParameters {
* @memberof JobTemplateLocalesCreateParameters
*/
reviewerIds?: Array<string>;
/**
* Array of team ids to be assigned to the job locale as translators
* @type {Array<string>}
* @memberof JobTemplateLocalesCreateParameters
*/
translatorTeamIds?: Array<string>;
/**
* Array of team ids to be assigned to the job locale as reviewers
* @type {Array<string>}
* @memberof JobTemplateLocalesCreateParameters
*/
reviewerTeamIds?: Array<string>;
}

export function JobTemplateLocalesCreateParametersFromJSON(json: any): JobTemplateLocalesCreateParameters {
Expand All @@ -58,6 +70,8 @@ export function JobTemplateLocalesCreateParametersFromJSONTyped(json: any, ignor
'localeId': json['locale_id'],
'userIds': !exists(json, 'user_ids') ? undefined : json['user_ids'],
'reviewerIds': !exists(json, 'reviewer_ids') ? undefined : json['reviewer_ids'],
'translatorTeamIds': !exists(json, 'translator_team_ids') ? undefined : json['translator_team_ids'],
'reviewerTeamIds': !exists(json, 'reviewer_team_ids') ? undefined : json['reviewer_team_ids'],
};
}

Expand All @@ -74,6 +88,8 @@ export function JobTemplateLocalesCreateParametersToJSON(value?: JobTemplateLoca
'locale_id': value.localeId,
'user_ids': value.userIds,
'reviewer_ids': value.reviewerIds,
'translator_team_ids': value.translatorTeamIds,
'reviewer_team_ids': value.reviewerTeamIds,
};
}

Expand Down
Loading

0 comments on commit 50324ab

Please sign in to comment.