Skip to content

Commit

Permalink
Deploying from phrase/openapi@28cd56ba
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Apr 11, 2022
1 parent 8ea90e6 commit c6e4139
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 46 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## phrase-js@1.3.0
## phrase-js@1.4.0

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.3.0
- Package version: 1.4.0
- 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 phrase-js@1.3.0 --save
npm install phrase-js@1.4.0 --save
```

if you are using yarn


```
yarn install phrase-js@1.3.0
yarn install phrase-js@1.4.0
```

_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.3.0"
"phrase-js": "^1.4.0"
},
"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.3.0",
"version": "1.4.0",
"description": "OpenAPI client for Phrase",
"author": "OpenAPI-Generator",
"license" : "MIT",
Expand Down
40 changes: 20 additions & 20 deletions src/models/Invitation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@

import { exists, mapValues } from '../runtime';
import {
Items,
ItemsFromJSON,
ItemsFromJSONTyped,
ItemsToJSON,
LocalePreview,
LocalePreviewFromJSON,
LocalePreviewFromJSONTyped,
Expand All @@ -25,14 +21,18 @@ import {
MemberProjectDetailProjectRolesFromJSON,
MemberProjectDetailProjectRolesFromJSONTyped,
MemberProjectDetailProjectRolesToJSON,
MemberSpaces,
MemberSpacesFromJSON,
MemberSpacesFromJSONTyped,
MemberSpacesToJSON,
ProjectShort,
ProjectShortFromJSON,
ProjectShortFromJSONTyped,
ProjectShortToJSON,
Space,
SpaceFromJSON,
SpaceFromJSONTyped,
SpaceToJSON,
TeamShort,
TeamShortFromJSON,
TeamShortFromJSONTyped,
TeamShortToJSON,
} from './';

/**
Expand Down Expand Up @@ -77,6 +77,12 @@ export interface Invitation {
* @memberof Invitation
*/
locales?: Array<LocalePreview>;
/**
*
* @type {Array<TeamShort>}
* @memberof Invitation
*/
teams?: Array<TeamShort>;
/**
*
* @type {Array<string>}
Expand Down Expand Up @@ -115,16 +121,10 @@ export interface Invitation {
acceptedAt?: Date;
/**
*
* @type {Array<MemberSpaces>}
* @memberof Invitation
*/
spaces?: Array<MemberSpaces>;
/**
*
* @type {Array<Items>}
* @type {Array<Space>}
* @memberof Invitation
*/
teams?: Array<Items>;
spaces?: Array<Space>;
/**
*
* @type {Array<MemberProjectDetailProjectRoles>}
Expand All @@ -149,14 +149,14 @@ export function InvitationFromJSONTyped(json: any, ignoreDiscriminator: boolean)
'state': !exists(json, 'state') ? undefined : json['state'],
'projects': !exists(json, 'projects') ? undefined : ((json['projects'] as Array<any>).map(ProjectShortFromJSON)),
'locales': !exists(json, 'locales') ? undefined : ((json['locales'] as Array<any>).map(LocalePreviewFromJSON)),
'teams': !exists(json, 'teams') ? undefined : ((json['teams'] as Array<any>).map(TeamShortFromJSON)),
'defaultLocaleCodes': !exists(json, 'default_locale_codes') ? undefined : json['default_locale_codes'],
'permissions': !exists(json, 'permissions') ? undefined : json['permissions'],
'localeIds': !exists(json, 'locale_ids') ? undefined : json['locale_ids'],
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
'updatedAt': !exists(json, 'updated_at') ? undefined : (new Date(json['updated_at'])),
'acceptedAt': !exists(json, 'accepted_at') ? undefined : (new Date(json['accepted_at'])),
'spaces': !exists(json, 'spaces') ? undefined : ((json['spaces'] as Array<any>).map(MemberSpacesFromJSON)),
'teams': !exists(json, 'teams') ? undefined : ((json['teams'] as Array<any>).map(ItemsFromJSON)),
'spaces': !exists(json, 'spaces') ? undefined : ((json['spaces'] as Array<any>).map(SpaceFromJSON)),
'projectRole': !exists(json, 'project_role') ? undefined : ((json['project_role'] as Array<any>).map(MemberProjectDetailProjectRolesFromJSON)),
};
}
Expand All @@ -176,14 +176,14 @@ export function InvitationToJSON(value?: Invitation | null): any {
'state': value.state,
'projects': value.projects === undefined ? undefined : ((value.projects as Array<any>).map(ProjectShortToJSON)),
'locales': value.locales === undefined ? undefined : ((value.locales as Array<any>).map(LocalePreviewToJSON)),
'teams': value.teams === undefined ? undefined : ((value.teams as Array<any>).map(TeamShortToJSON)),
'default_locale_codes': value.defaultLocaleCodes,
'permissions': value.permissions,
'locale_ids': value.localeIds,
'created_at': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
'updated_at': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
'accepted_at': value.acceptedAt === undefined ? undefined : (value.acceptedAt.toISOString()),
'spaces': value.spaces === undefined ? undefined : ((value.spaces as Array<any>).map(MemberSpacesToJSON)),
'teams': value.teams === undefined ? undefined : ((value.teams as Array<any>).map(ItemsToJSON)),
'spaces': value.spaces === undefined ? undefined : ((value.spaces as Array<any>).map(SpaceToJSON)),
'project_role': value.projectRole === undefined ? undefined : ((value.projectRole as Array<any>).map(MemberProjectDetailProjectRolesToJSON)),
};
}
Expand Down
16 changes: 8 additions & 8 deletions src/models/Member.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import {
ProjectLocalesFromJSON,
ProjectLocalesFromJSONTyped,
ProjectLocalesToJSON,
Team1,
Team1FromJSON,
Team1FromJSONTyped,
Team1ToJSON,
TeamShort,
TeamShortFromJSON,
TeamShortFromJSONTyped,
TeamShortToJSON,
} from './';

/**
Expand Down Expand Up @@ -89,10 +89,10 @@ export interface Member {
defaultLocaleCodes?: Array<string>;
/**
*
* @type {Array<Team1>}
* @type {Array<TeamShort>}
* @memberof Member
*/
teams?: Array<Team1>;
teams?: Array<TeamShort>;
/**
*
* @type {Array<MemberSpaces>}
Expand Down Expand Up @@ -120,7 +120,7 @@ export function MemberFromJSONTyped(json: any, ignoreDiscriminator: boolean): Me
'projects': !exists(json, 'projects') ? undefined : ((json['projects'] as Array<any>).map(ProjectLocalesFromJSON)),
'permissions': !exists(json, 'permissions') ? undefined : json['permissions'],
'defaultLocaleCodes': !exists(json, 'default_locale_codes') ? undefined : json['default_locale_codes'],
'teams': !exists(json, 'teams') ? undefined : ((json['teams'] as Array<any>).map(Team1FromJSON)),
'teams': !exists(json, 'teams') ? undefined : ((json['teams'] as Array<any>).map(TeamShortFromJSON)),
'spaces': !exists(json, 'spaces') ? undefined : ((json['spaces'] as Array<any>).map(MemberSpacesFromJSON)),
};
}
Expand All @@ -143,7 +143,7 @@ export function MemberToJSON(value?: Member | null): any {
'projects': value.projects === undefined ? undefined : ((value.projects as Array<any>).map(ProjectLocalesToJSON)),
'permissions': value.permissions,
'default_locale_codes': value.defaultLocaleCodes,
'teams': value.teams === undefined ? undefined : ((value.teams as Array<any>).map(Team1ToJSON)),
'teams': value.teams === undefined ? undefined : ((value.teams as Array<any>).map(TeamShortToJSON)),
'spaces': value.spaces === undefined ? undefined : ((value.spaces as Array<any>).map(MemberSpacesToJSON)),
};
}
Expand Down
20 changes: 10 additions & 10 deletions src/models/Team1.ts → src/models/TeamShort.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,40 +15,40 @@ import { exists, mapValues } from '../runtime';
/**
*
* @export
* @interface Team1
* @interface TeamShort
*/
export interface Team1 {
export interface TeamShort {
/**
*
* @type {string}
* @memberof Team1
* @memberof TeamShort
*/
id?: string;
/**
*
* @type {string}
* @memberof Team1
* @memberof TeamShort
*/
name?: string;
/**
*
* @type {Date}
* @memberof Team1
* @memberof TeamShort
*/
createdAt?: Date;
/**
*
* @type {Date}
* @memberof Team1
* @memberof TeamShort
*/
updatedAt?: Date;
}

export function Team1FromJSON(json: any): Team1 {
return Team1FromJSONTyped(json, false);
export function TeamShortFromJSON(json: any): TeamShort {
return TeamShortFromJSONTyped(json, false);
}

export function Team1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Team1 {
export function TeamShortFromJSONTyped(json: any, ignoreDiscriminator: boolean): TeamShort {
if ((json === undefined) || (json === null)) {
return json;
}
Expand All @@ -61,7 +61,7 @@ export function Team1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Tea
};
}

export function Team1ToJSON(value?: Team1 | null): any {
export function TeamShortToJSON(value?: TeamShort | null): any {
if (value === undefined) {
return undefined;
}
Expand Down
2 changes: 1 addition & 1 deletion src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ export * from './TagWithStats1';
export * from './TagWithStats1Statistics';
export * from './TagWithStats1Statistics1';
export * from './Team';
export * from './Team1';
export * from './TeamCreateParameters';
export * from './TeamDetail';
export * from './TeamShort';
export * from './TeamUpdateParameters';
export * from './TeamsProjectsCreateParameters';
export * from './TeamsSpacesCreateParameters';
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.3.0/js"
configuration.headers["User-Agent"] = "OpenAPI-Generator/1.4.0/js"
}

get basePath(): string {
Expand Down

0 comments on commit c6e4139

Please sign in to comment.