Skip to content

Commit

Permalink
Deploying from phrase/openapi@2c6f4325
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Apr 19, 2024
1 parent 323c12f commit e72f12d
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 0 deletions.
1 change: 1 addition & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ src/models/TranslationIncludeParameters.ts
src/models/TranslationKey.ts
src/models/TranslationKeyDetails.ts
src/models/TranslationOrder.ts
src/models/TranslationParent.ts
src/models/TranslationReviewParameters.ts
src/models/TranslationUnverifyParameters.ts
src/models/TranslationUpdateParameters.ts
Expand Down
12 changes: 12 additions & 0 deletions src/models/TranslationDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ import {
LocalePreviewFromJSON,
LocalePreviewFromJSONTyped,
LocalePreviewToJSON,
TranslationParent,
TranslationParentFromJSON,
TranslationParentFromJSONTyped,
TranslationParentToJSON,
UserPreview,
UserPreviewFromJSON,
UserPreviewFromJSONTyped,
Expand Down Expand Up @@ -111,6 +115,12 @@ export interface TranslationDetails {
* @memberof TranslationDetails
*/
wordCount?: number;
/**
*
* @type {TranslationParent}
* @memberof TranslationDetails
*/
linkedTranslation?: TranslationParent;
}

export function TranslationDetailsFromJSON(json: any): TranslationDetails {
Expand All @@ -136,6 +146,7 @@ export function TranslationDetailsFromJSONTyped(json: any, ignoreDiscriminator:
'updatedAt': !exists(json, 'updated_at') ? undefined : (new Date(json['updated_at'])),
'user': !exists(json, 'user') ? undefined : UserPreviewFromJSON(json['user']),
'wordCount': !exists(json, 'word_count') ? undefined : json['word_count'],
'linkedTranslation': !exists(json, 'linked_translation') ? undefined : TranslationParentFromJSON(json['linked_translation']),
};
}

Expand All @@ -161,6 +172,7 @@ export function TranslationDetailsToJSON(value?: TranslationDetails | null): any
'updated_at': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
'user': UserPreviewToJSON(value.user),
'word_count': value.wordCount,
'linked_translation': TranslationParentToJSON(value.linkedTranslation),
};
}

Expand Down
64 changes: 64 additions & 0 deletions src/models/TranslationParent.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/* tslint:disable */
/* eslint-disable */
/**
* Phrase Strings API Reference
*
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { exists, mapValues } from '../runtime';
/**
*
* @export
* @interface TranslationParent
*/
export interface TranslationParent {
/**
*
* @type {string}
* @memberof TranslationParent
*/
id?: string;
/**
*
* @type {string}
* @memberof TranslationParent
*/
content?: string;
}

export function TranslationParentFromJSON(json: any): TranslationParent {
return TranslationParentFromJSONTyped(json, false);
}

export function TranslationParentFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranslationParent {
if ((json === undefined) || (json === null)) {
return json;
}
return {

'id': !exists(json, 'id') ? undefined : json['id'],
'content': !exists(json, 'content') ? undefined : json['content'],
};
}

export function TranslationParentToJSON(value?: TranslationParent | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {

'id': value.id,
'content': value.content,
};
}


1 change: 1 addition & 0 deletions src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ export * from './TranslationIncludeParameters';
export * from './TranslationKey';
export * from './TranslationKeyDetails';
export * from './TranslationOrder';
export * from './TranslationParent';
export * from './TranslationReviewParameters';
export * from './TranslationUnverifyParameters';
export * from './TranslationUpdateParameters';
Expand Down

0 comments on commit e72f12d

Please sign in to comment.