Skip to content

Commit

Permalink
Deploying from phrase/openapi@0bd17562
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Apr 17, 2024
1 parent f9b9de5 commit 44710b5
Show file tree
Hide file tree
Showing 10 changed files with 816 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ src/apis/OrganizationJobTemplatesApi.ts
src/apis/ProjectsApi.ts
src/apis/QualityPerformanceScoreApi.ts
src/apis/ReleasesApi.ts
src/apis/RepoSyncsApi.ts
src/apis/ReportsApi.ts
src/apis/ScreenshotMarkersApi.ts
src/apis/ScreenshotsApi.ts
Expand Down Expand Up @@ -209,6 +210,11 @@ src/models/ReleaseCreateParameters.ts
src/models/ReleasePreview.ts
src/models/ReleaseUpdateParameters.ts
src/models/RepliesListParameters.ts
src/models/RepoSync.ts
src/models/RepoSyncEvent.ts
src/models/RepoSyncEventErrorsInner.ts
src/models/RepoSyncExport.ts
src/models/RepoSyncImport.ts
src/models/Screenshot.ts
src/models/ScreenshotMarker.ts
src/models/ScreenshotMarkerCreateParameters.ts
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,13 @@ Class | Method | HTTP request | Description
*ReleasesApi* | **releaseShow** | **GET** /accounts/{account_id}/distributions/{distribution_id}/releases/{id} | Get a single release
*ReleasesApi* | **releaseUpdate** | **PATCH** /accounts/{account_id}/distributions/{distribution_id}/releases/{id} | Update a release
*ReleasesApi* | **releasesList** | **GET** /accounts/{account_id}/distributions/{distribution_id}/releases | List releases
*RepoSyncsApi* | **repoSyncActivate** | **POST** /accounts/{account_id}/repo_syncs/{repo_sync_id}/activate | Activate a Repo Sync
*RepoSyncsApi* | **repoSyncDeactivate** | **POST** /accounts/{account_id}/repo_syncs/{repo_sync_id}/deactivate | Deactivate a Repo Sync
*RepoSyncsApi* | **repoSyncEvents** | **GET** /accounts/{account_id}/repo_syncs/{repo_sync_id}/events | Repository Syncs History
*RepoSyncsApi* | **repoSyncExport** | **POST** /accounts/{account_id}/repo_syncs/{repo_sync_id}/export | Export to code repository
*RepoSyncsApi* | **repoSyncImport** | **POST** /accounts/{account_id}/repo_syncs/{repo_sync_id}/import | Import from code repository
*RepoSyncsApi* | **repoSyncList** | **GET** /accounts/{account_id}/repo_syncs | Get Repo Syncs
*RepoSyncsApi* | **repoSyncShow** | **GET** /accounts/{account_id}/repo_syncs/{repo_sync_id} | Get a single Repo Sync
*ReportsApi* | **reportLocalesList** | **GET** /projects/{project_id}/report/locales | List Locale Reports
*ReportsApi* | **reportShow** | **GET** /projects/{project_id}/report | Get Project Report
*ScreenshotMarkersApi* | **screenshotMarkerCreate** | **POST** /projects/{project_id}/screenshots/{screenshot_id}/markers | Create a screenshot marker
Expand Down
402 changes: 402 additions & 0 deletions src/apis/RepoSyncsApi.ts

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/apis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export * from './OrganizationJobTemplatesApi';
export * from './ProjectsApi';
export * from './QualityPerformanceScoreApi';
export * from './ReleasesApi';
export * from './RepoSyncsApi';
export * from './ReportsApi';
export * from './ScreenshotMarkersApi';
export * from './ScreenshotsApi';
Expand Down
127 changes: 127 additions & 0 deletions src/models/RepoSync.ts
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()),
};
}


121 changes: 121 additions & 0 deletions src/models/RepoSyncEvent.ts
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'
}


35 changes: 35 additions & 0 deletions src/models/RepoSyncEventErrorsInner.ts
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;
}


56 changes: 56 additions & 0 deletions src/models/RepoSyncExport.ts
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,
};
}


Loading

0 comments on commit 44710b5

Please sign in to comment.