-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying from phrase/openapi@0bd17562
- Loading branch information
Phrase
committed
Apr 17, 2024
1 parent
f9b9de5
commit 44710b5
Showing
10 changed files
with
816 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
/* 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'; | ||
import { | ||
ProjectShort, | ||
ProjectShortFromJSON, | ||
ProjectShortFromJSONTyped, | ||
ProjectShortToJSON, | ||
} from './'; | ||
|
||
/** | ||
* | ||
* @export | ||
* @interface RepoSync | ||
*/ | ||
export interface RepoSync { | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof RepoSync | ||
*/ | ||
id?: string; | ||
/** | ||
* | ||
* @type {ProjectShort} | ||
* @memberof RepoSync | ||
*/ | ||
project?: ProjectShort; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof RepoSync | ||
*/ | ||
provider?: string; | ||
/** | ||
* | ||
* @type {boolean} | ||
* @memberof RepoSync | ||
*/ | ||
enabled?: boolean; | ||
/** | ||
* | ||
* @type {boolean} | ||
* @memberof RepoSync | ||
*/ | ||
autoImport?: boolean; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof RepoSync | ||
*/ | ||
repoName?: string; | ||
/** | ||
* | ||
* @type {Date} | ||
* @memberof RepoSync | ||
*/ | ||
createdAt?: Date; | ||
/** | ||
* | ||
* @type {Date} | ||
* @memberof RepoSync | ||
*/ | ||
lastImportAt?: Date; | ||
/** | ||
* | ||
* @type {Date} | ||
* @memberof RepoSync | ||
*/ | ||
lastExportAt?: Date; | ||
} | ||
|
||
export function RepoSyncFromJSON(json: any): RepoSync { | ||
return RepoSyncFromJSONTyped(json, false); | ||
} | ||
|
||
export function RepoSyncFromJSONTyped(json: any, ignoreDiscriminator: boolean): RepoSync { | ||
if ((json === undefined) || (json === null)) { | ||
return json; | ||
} | ||
return { | ||
|
||
'id': !exists(json, 'id') ? undefined : json['id'], | ||
'project': !exists(json, 'project') ? undefined : ProjectShortFromJSON(json['project']), | ||
'provider': !exists(json, 'provider') ? undefined : json['provider'], | ||
'enabled': !exists(json, 'enabled') ? undefined : json['enabled'], | ||
'autoImport': !exists(json, 'auto_import') ? undefined : json['auto_import'], | ||
'repoName': !exists(json, 'repo_name') ? undefined : json['repo_name'], | ||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])), | ||
'lastImportAt': !exists(json, 'last_import_at') ? undefined : (new Date(json['last_import_at'])), | ||
'lastExportAt': !exists(json, 'last_export_at') ? undefined : (new Date(json['last_export_at'])), | ||
}; | ||
} | ||
|
||
export function RepoSyncToJSON(value?: RepoSync | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
|
||
'id': value.id, | ||
'project': ProjectShortToJSON(value.project), | ||
'provider': value.provider, | ||
'enabled': value.enabled, | ||
'auto_import': value.autoImport, | ||
'repo_name': value.repoName, | ||
'created_at': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()), | ||
'last_import_at': value.lastImportAt === undefined ? undefined : (value.lastImportAt.toISOString()), | ||
'last_export_at': value.lastExportAt === undefined ? undefined : (value.lastExportAt.toISOString()), | ||
}; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
/* 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'; | ||
import { | ||
RepoSyncEventErrorsInner, | ||
RepoSyncEventErrorsInnerFromJSON, | ||
RepoSyncEventErrorsInnerFromJSONTyped, | ||
RepoSyncEventErrorsInnerToJSON, | ||
} from './'; | ||
|
||
/** | ||
* | ||
* @export | ||
* @interface RepoSyncEvent | ||
*/ | ||
export interface RepoSyncEvent { | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof RepoSyncEvent | ||
*/ | ||
eventType?: RepoSyncEventEventTypeEnum; | ||
/** | ||
* | ||
* @type {Date} | ||
* @memberof RepoSyncEvent | ||
*/ | ||
createdAt?: Date; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof RepoSyncEvent | ||
*/ | ||
status?: RepoSyncEventStatusEnum; | ||
/** | ||
* URL of the pull request created on export | ||
* @type {string} | ||
* @memberof RepoSyncEvent | ||
*/ | ||
pullRequestUrl?: string; | ||
/** | ||
* Whether the import was triggered by the repo push event | ||
* @type {boolean} | ||
* @memberof RepoSyncEvent | ||
*/ | ||
autoImport?: boolean; | ||
/** | ||
* List of error messages, in case of failure | ||
* @type {Array<RepoSyncEventErrorsInner>} | ||
* @memberof RepoSyncEvent | ||
*/ | ||
errors?: Array<RepoSyncEventErrorsInner>; | ||
} | ||
|
||
export function RepoSyncEventFromJSON(json: any): RepoSyncEvent { | ||
return RepoSyncEventFromJSONTyped(json, false); | ||
} | ||
|
||
export function RepoSyncEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): RepoSyncEvent { | ||
if ((json === undefined) || (json === null)) { | ||
return json; | ||
} | ||
return { | ||
|
||
'eventType': !exists(json, 'event_type') ? undefined : json['event_type'], | ||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])), | ||
'status': !exists(json, 'status') ? undefined : json['status'], | ||
'pullRequestUrl': !exists(json, 'pull_request_url') ? undefined : json['pull_request_url'], | ||
'autoImport': !exists(json, 'auto_import') ? undefined : json['auto_import'], | ||
'errors': !exists(json, 'errors') ? undefined : ((json['errors'] as Array<any>).map(RepoSyncEventErrorsInnerFromJSON)), | ||
}; | ||
} | ||
|
||
export function RepoSyncEventToJSON(value?: RepoSyncEvent | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
|
||
'event_type': value.eventType, | ||
'created_at': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()), | ||
'status': value.status, | ||
'pull_request_url': value.pullRequestUrl, | ||
'auto_import': value.autoImport, | ||
'errors': value.errors === undefined ? undefined : ((value.errors as Array<any>).map(RepoSyncEventErrorsInnerToJSON)), | ||
}; | ||
} | ||
|
||
/** | ||
* @export | ||
* @enum {string} | ||
*/ | ||
export enum RepoSyncEventEventTypeEnum { | ||
Import = 'import', | ||
Export = 'export' | ||
} | ||
/** | ||
* @export | ||
* @enum {string} | ||
*/ | ||
export enum RepoSyncEventStatusEnum { | ||
Running = 'running', | ||
Success = 'success', | ||
Failure = 'failure' | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* 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 RepoSyncEventErrorsInner | ||
*/ | ||
export interface RepoSyncEventErrorsInner { | ||
} | ||
|
||
export function RepoSyncEventErrorsInnerFromJSON(json: any): RepoSyncEventErrorsInner { | ||
return RepoSyncEventErrorsInnerFromJSONTyped(json, false); | ||
} | ||
|
||
export function RepoSyncEventErrorsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): RepoSyncEventErrorsInner { | ||
return json; | ||
} | ||
|
||
export function RepoSyncEventErrorsInnerToJSON(value?: RepoSyncEventErrorsInner | null): any { | ||
return value; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* 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 RepoSyncExport | ||
*/ | ||
export interface RepoSyncExport { | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof RepoSyncExport | ||
*/ | ||
message?: string; | ||
} | ||
|
||
export function RepoSyncExportFromJSON(json: any): RepoSyncExport { | ||
return RepoSyncExportFromJSONTyped(json, false); | ||
} | ||
|
||
export function RepoSyncExportFromJSONTyped(json: any, ignoreDiscriminator: boolean): RepoSyncExport { | ||
if ((json === undefined) || (json === null)) { | ||
return json; | ||
} | ||
return { | ||
|
||
'message': !exists(json, 'message') ? undefined : json['message'], | ||
}; | ||
} | ||
|
||
export function RepoSyncExportToJSON(value?: RepoSyncExport | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
|
||
'message': value.message, | ||
}; | ||
} | ||
|
||
|
Oops, something went wrong.