From 7b3d738c4ca05e56c62c69b31e9bf0afeb960517 Mon Sep 17 00:00:00 2001 From: Phrase Date: Fri, 31 May 2024 12:08:06 +0000 Subject: [PATCH] Deploying from phrase/openapi@7a1a0d91 --- README.md | 12 +++++----- src/apis/RepoSyncsApi.ts | 48 ++++++++++++++++++++-------------------- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index f103be4..455712f 100644 --- a/README.md +++ b/README.md @@ -384,13 +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* | **repoSyncActivate** | **POST** /accounts/{account_id}/repo_syncs/{id}/activate | Activate a Repo Sync +*RepoSyncsApi* | **repoSyncDeactivate** | **POST** /accounts/{account_id}/repo_syncs/{id}/deactivate | Deactivate a Repo Sync +*RepoSyncsApi* | **repoSyncEvents** | **GET** /accounts/{account_id}/repo_syncs/{id}/events | Repository Syncs History +*RepoSyncsApi* | **repoSyncExport** | **POST** /accounts/{account_id}/repo_syncs/{id}/export | Export to code repository +*RepoSyncsApi* | **repoSyncImport** | **POST** /accounts/{account_id}/repo_syncs/{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 +*RepoSyncsApi* | **repoSyncShow** | **GET** /accounts/{account_id}/repo_syncs/{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 diff --git a/src/apis/RepoSyncsApi.ts b/src/apis/RepoSyncsApi.ts index 58045f5..94c659d 100644 --- a/src/apis/RepoSyncsApi.ts +++ b/src/apis/RepoSyncsApi.ts @@ -30,31 +30,31 @@ import { export interface RepoSyncActivateRequest { accountId: string; - repoSyncId: string; + id: string; xPhraseAppOTP?: string; } export interface RepoSyncDeactivateRequest { accountId: string; - repoSyncId: string; + id: string; xPhraseAppOTP?: string; } export interface RepoSyncEventsRequest { accountId: string; - repoSyncId: string; + id: string; xPhraseAppOTP?: string; } export interface RepoSyncExportRequest { accountId: string; - repoSyncId: string; + id: string; xPhraseAppOTP?: string; } export interface RepoSyncImportRequest { accountId: string; - repoSyncId: string; + id: string; xPhraseAppOTP?: string; } @@ -65,7 +65,7 @@ export interface RepoSyncListRequest { export interface RepoSyncShowRequest { accountId: string; - repoSyncId: string; + id: string; xPhraseAppOTP?: string; } @@ -83,8 +83,8 @@ export class RepoSyncsApi extends runtime.BaseAPI { throw new runtime.RequiredError('accountId','Required parameter requestParameters.accountId was null or undefined when calling repoSyncActivate.'); } - if (requestParameters.repoSyncId === null || requestParameters.repoSyncId === undefined) { - throw new runtime.RequiredError('repoSyncId','Required parameter requestParameters.repoSyncId was null or undefined when calling repoSyncActivate.'); + if (requestParameters.id === null || requestParameters.id === undefined) { + throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling repoSyncActivate.'); } const queryParameters: any = {}; @@ -103,7 +103,7 @@ export class RepoSyncsApi extends runtime.BaseAPI { } const response = await this.request({ - path: `/accounts/{account_id}/repo_syncs/{repo_sync_id}/activate`.replace(`{${"account_id"}}`, encodeURIComponent(String(requestParameters.accountId))).replace(`{${"repo_sync_id"}}`, encodeURIComponent(String(requestParameters.repoSyncId))), + path: `/accounts/{account_id}/repo_syncs/{id}/activate`.replace(`{${"account_id"}}`, encodeURIComponent(String(requestParameters.accountId))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), method: 'POST', headers: headerParameters, query: queryParameters, @@ -130,8 +130,8 @@ export class RepoSyncsApi extends runtime.BaseAPI { throw new runtime.RequiredError('accountId','Required parameter requestParameters.accountId was null or undefined when calling repoSyncDeactivate.'); } - if (requestParameters.repoSyncId === null || requestParameters.repoSyncId === undefined) { - throw new runtime.RequiredError('repoSyncId','Required parameter requestParameters.repoSyncId was null or undefined when calling repoSyncDeactivate.'); + if (requestParameters.id === null || requestParameters.id === undefined) { + throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling repoSyncDeactivate.'); } const queryParameters: any = {}; @@ -150,7 +150,7 @@ export class RepoSyncsApi extends runtime.BaseAPI { } const response = await this.request({ - path: `/accounts/{account_id}/repo_syncs/{repo_sync_id}/deactivate`.replace(`{${"account_id"}}`, encodeURIComponent(String(requestParameters.accountId))).replace(`{${"repo_sync_id"}}`, encodeURIComponent(String(requestParameters.repoSyncId))), + path: `/accounts/{account_id}/repo_syncs/{id}/deactivate`.replace(`{${"account_id"}}`, encodeURIComponent(String(requestParameters.accountId))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), method: 'POST', headers: headerParameters, query: queryParameters, @@ -177,8 +177,8 @@ export class RepoSyncsApi extends runtime.BaseAPI { throw new runtime.RequiredError('accountId','Required parameter requestParameters.accountId was null or undefined when calling repoSyncEvents.'); } - if (requestParameters.repoSyncId === null || requestParameters.repoSyncId === undefined) { - throw new runtime.RequiredError('repoSyncId','Required parameter requestParameters.repoSyncId was null or undefined when calling repoSyncEvents.'); + if (requestParameters.id === null || requestParameters.id === undefined) { + throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling repoSyncEvents.'); } const queryParameters: any = {}; @@ -197,7 +197,7 @@ export class RepoSyncsApi extends runtime.BaseAPI { } const response = await this.request({ - path: `/accounts/{account_id}/repo_syncs/{repo_sync_id}/events`.replace(`{${"account_id"}}`, encodeURIComponent(String(requestParameters.accountId))).replace(`{${"repo_sync_id"}}`, encodeURIComponent(String(requestParameters.repoSyncId))), + path: `/accounts/{account_id}/repo_syncs/{id}/events`.replace(`{${"account_id"}}`, encodeURIComponent(String(requestParameters.accountId))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), method: 'GET', headers: headerParameters, query: queryParameters, @@ -224,8 +224,8 @@ export class RepoSyncsApi extends runtime.BaseAPI { throw new runtime.RequiredError('accountId','Required parameter requestParameters.accountId was null or undefined when calling repoSyncExport.'); } - if (requestParameters.repoSyncId === null || requestParameters.repoSyncId === undefined) { - throw new runtime.RequiredError('repoSyncId','Required parameter requestParameters.repoSyncId was null or undefined when calling repoSyncExport.'); + if (requestParameters.id === null || requestParameters.id === undefined) { + throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling repoSyncExport.'); } const queryParameters: any = {}; @@ -244,7 +244,7 @@ export class RepoSyncsApi extends runtime.BaseAPI { } const response = await this.request({ - path: `/accounts/{account_id}/repo_syncs/{repo_sync_id}/export`.replace(`{${"account_id"}}`, encodeURIComponent(String(requestParameters.accountId))).replace(`{${"repo_sync_id"}}`, encodeURIComponent(String(requestParameters.repoSyncId))), + path: `/accounts/{account_id}/repo_syncs/{id}/export`.replace(`{${"account_id"}}`, encodeURIComponent(String(requestParameters.accountId))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), method: 'POST', headers: headerParameters, query: queryParameters, @@ -271,8 +271,8 @@ export class RepoSyncsApi extends runtime.BaseAPI { throw new runtime.RequiredError('accountId','Required parameter requestParameters.accountId was null or undefined when calling repoSyncImport.'); } - if (requestParameters.repoSyncId === null || requestParameters.repoSyncId === undefined) { - throw new runtime.RequiredError('repoSyncId','Required parameter requestParameters.repoSyncId was null or undefined when calling repoSyncImport.'); + if (requestParameters.id === null || requestParameters.id === undefined) { + throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling repoSyncImport.'); } const queryParameters: any = {}; @@ -291,7 +291,7 @@ export class RepoSyncsApi extends runtime.BaseAPI { } const response = await this.request({ - path: `/accounts/{account_id}/repo_syncs/{repo_sync_id}/import`.replace(`{${"account_id"}}`, encodeURIComponent(String(requestParameters.accountId))).replace(`{${"repo_sync_id"}}`, encodeURIComponent(String(requestParameters.repoSyncId))), + path: `/accounts/{account_id}/repo_syncs/{id}/import`.replace(`{${"account_id"}}`, encodeURIComponent(String(requestParameters.accountId))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), method: 'POST', headers: headerParameters, query: queryParameters, @@ -361,8 +361,8 @@ export class RepoSyncsApi extends runtime.BaseAPI { throw new runtime.RequiredError('accountId','Required parameter requestParameters.accountId was null or undefined when calling repoSyncShow.'); } - if (requestParameters.repoSyncId === null || requestParameters.repoSyncId === undefined) { - throw new runtime.RequiredError('repoSyncId','Required parameter requestParameters.repoSyncId was null or undefined when calling repoSyncShow.'); + if (requestParameters.id === null || requestParameters.id === undefined) { + throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling repoSyncShow.'); } const queryParameters: any = {}; @@ -381,7 +381,7 @@ export class RepoSyncsApi extends runtime.BaseAPI { } const response = await this.request({ - path: `/accounts/{account_id}/repo_syncs/{repo_sync_id}`.replace(`{${"account_id"}}`, encodeURIComponent(String(requestParameters.accountId))).replace(`{${"repo_sync_id"}}`, encodeURIComponent(String(requestParameters.repoSyncId))), + path: `/accounts/{account_id}/repo_syncs/{id}`.replace(`{${"account_id"}}`, encodeURIComponent(String(requestParameters.accountId))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), method: 'GET', headers: headerParameters, query: queryParameters,