qovery-typescript-axios 1.1.813 → 1.1.814

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts CHANGED
@@ -62692,6 +62692,47 @@ export const ServiceMainCallsApiAxiosParamCreator = function (configuration?: Co
62692
62692
 
62693
62693
 
62694
62694
 
62695
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
62696
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
62697
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
62698
+
62699
+ return {
62700
+ url: toPathString(localVarUrlObj),
62701
+ options: localVarRequestOptions,
62702
+ };
62703
+ },
62704
+ /**
62705
+ * Synchronizes the Qovery webhook configuration for a git-based service. - If no webhook exists, creates one with the correct configuration - If webhook exists but is misconfigured, updates it with the correct events - If webhook is already correctly configured, returns current status Works with GitHub, GitLab, and Bitbucket repositories.
62706
+ * @summary Synchronize git webhook for a service
62707
+ * @param {string} serviceId Service ID of an application/job/container/database
62708
+ * @param {*} [options] Override http request option.
62709
+ * @throws {RequiredError}
62710
+ */
62711
+ syncServiceGitWebhook: async (serviceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
62712
+ // verify required parameter 'serviceId' is not null or undefined
62713
+ assertParamExists('syncServiceGitWebhook', 'serviceId', serviceId)
62714
+ const localVarPath = `/service/{serviceId}/gitWebhook/sync`
62715
+ .replace(`{${"serviceId"}}`, encodeURIComponent(String(serviceId)));
62716
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
62717
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
62718
+ let baseOptions;
62719
+ if (configuration) {
62720
+ baseOptions = configuration.baseOptions;
62721
+ }
62722
+
62723
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
62724
+ const localVarHeaderParameter = {} as any;
62725
+ const localVarQueryParameter = {} as any;
62726
+
62727
+ // authentication ApiKeyAuth required
62728
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
62729
+
62730
+ // authentication bearerAuth required
62731
+ // http bearer authentication required
62732
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
62733
+
62734
+
62735
+
62695
62736
  setSearchParams(localVarUrlObj, localVarQueryParameter);
62696
62737
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
62697
62738
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -62724,6 +62765,19 @@ export const ServiceMainCallsApiFp = function(configuration?: Configuration) {
62724
62765
  const localVarOperationServerBasePath = operationServerMap['ServiceMainCallsApi.getServiceGitWebhookStatus']?.[localVarOperationServerIndex]?.url;
62725
62766
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
62726
62767
  },
62768
+ /**
62769
+ * Synchronizes the Qovery webhook configuration for a git-based service. - If no webhook exists, creates one with the correct configuration - If webhook exists but is misconfigured, updates it with the correct events - If webhook is already correctly configured, returns current status Works with GitHub, GitLab, and Bitbucket repositories.
62770
+ * @summary Synchronize git webhook for a service
62771
+ * @param {string} serviceId Service ID of an application/job/container/database
62772
+ * @param {*} [options] Override http request option.
62773
+ * @throws {RequiredError}
62774
+ */
62775
+ async syncServiceGitWebhook(serviceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitWebhookStatusResponse>> {
62776
+ const localVarAxiosArgs = await localVarAxiosParamCreator.syncServiceGitWebhook(serviceId, options);
62777
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
62778
+ const localVarOperationServerBasePath = operationServerMap['ServiceMainCallsApi.syncServiceGitWebhook']?.[localVarOperationServerIndex]?.url;
62779
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
62780
+ },
62727
62781
  }
62728
62782
  };
62729
62783
 
@@ -62744,6 +62798,16 @@ export const ServiceMainCallsApiFactory = function (configuration?: Configuratio
62744
62798
  getServiceGitWebhookStatus(serviceId: string, options?: RawAxiosRequestConfig): AxiosPromise<GitWebhookStatusResponse> {
62745
62799
  return localVarFp.getServiceGitWebhookStatus(serviceId, options).then((request) => request(axios, basePath));
62746
62800
  },
62801
+ /**
62802
+ * Synchronizes the Qovery webhook configuration for a git-based service. - If no webhook exists, creates one with the correct configuration - If webhook exists but is misconfigured, updates it with the correct events - If webhook is already correctly configured, returns current status Works with GitHub, GitLab, and Bitbucket repositories.
62803
+ * @summary Synchronize git webhook for a service
62804
+ * @param {string} serviceId Service ID of an application/job/container/database
62805
+ * @param {*} [options] Override http request option.
62806
+ * @throws {RequiredError}
62807
+ */
62808
+ syncServiceGitWebhook(serviceId: string, options?: RawAxiosRequestConfig): AxiosPromise<GitWebhookStatusResponse> {
62809
+ return localVarFp.syncServiceGitWebhook(serviceId, options).then((request) => request(axios, basePath));
62810
+ },
62747
62811
  };
62748
62812
  };
62749
62813
 
@@ -62765,6 +62829,18 @@ export class ServiceMainCallsApi extends BaseAPI {
62765
62829
  public getServiceGitWebhookStatus(serviceId: string, options?: RawAxiosRequestConfig) {
62766
62830
  return ServiceMainCallsApiFp(this.configuration).getServiceGitWebhookStatus(serviceId, options).then((request) => request(this.axios, this.basePath));
62767
62831
  }
62832
+
62833
+ /**
62834
+ * Synchronizes the Qovery webhook configuration for a git-based service. - If no webhook exists, creates one with the correct configuration - If webhook exists but is misconfigured, updates it with the correct events - If webhook is already correctly configured, returns current status Works with GitHub, GitLab, and Bitbucket repositories.
62835
+ * @summary Synchronize git webhook for a service
62836
+ * @param {string} serviceId Service ID of an application/job/container/database
62837
+ * @param {*} [options] Override http request option.
62838
+ * @throws {RequiredError}
62839
+ * @memberof ServiceMainCallsApi
62840
+ */
62841
+ public syncServiceGitWebhook(serviceId: string, options?: RawAxiosRequestConfig) {
62842
+ return ServiceMainCallsApiFp(this.configuration).syncServiceGitWebhook(serviceId, options).then((request) => request(this.axios, this.basePath));
62843
+ }
62768
62844
  }
62769
62845
 
62770
62846
 
package/dist/api.d.ts CHANGED
@@ -39682,6 +39682,14 @@ export declare const ServiceMainCallsApiAxiosParamCreator: (configuration?: Conf
39682
39682
  * @throws {RequiredError}
39683
39683
  */
39684
39684
  getServiceGitWebhookStatus: (serviceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39685
+ /**
39686
+ * Synchronizes the Qovery webhook configuration for a git-based service. - If no webhook exists, creates one with the correct configuration - If webhook exists but is misconfigured, updates it with the correct events - If webhook is already correctly configured, returns current status Works with GitHub, GitLab, and Bitbucket repositories.
39687
+ * @summary Synchronize git webhook for a service
39688
+ * @param {string} serviceId Service ID of an application/job/container/database
39689
+ * @param {*} [options] Override http request option.
39690
+ * @throws {RequiredError}
39691
+ */
39692
+ syncServiceGitWebhook: (serviceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39685
39693
  };
39686
39694
  /**
39687
39695
  * ServiceMainCallsApi - functional programming interface
@@ -39696,6 +39704,14 @@ export declare const ServiceMainCallsApiFp: (configuration?: Configuration) => {
39696
39704
  * @throws {RequiredError}
39697
39705
  */
39698
39706
  getServiceGitWebhookStatus(serviceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitWebhookStatusResponse>>;
39707
+ /**
39708
+ * Synchronizes the Qovery webhook configuration for a git-based service. - If no webhook exists, creates one with the correct configuration - If webhook exists but is misconfigured, updates it with the correct events - If webhook is already correctly configured, returns current status Works with GitHub, GitLab, and Bitbucket repositories.
39709
+ * @summary Synchronize git webhook for a service
39710
+ * @param {string} serviceId Service ID of an application/job/container/database
39711
+ * @param {*} [options] Override http request option.
39712
+ * @throws {RequiredError}
39713
+ */
39714
+ syncServiceGitWebhook(serviceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitWebhookStatusResponse>>;
39699
39715
  };
39700
39716
  /**
39701
39717
  * ServiceMainCallsApi - factory interface
@@ -39710,6 +39726,14 @@ export declare const ServiceMainCallsApiFactory: (configuration?: Configuration,
39710
39726
  * @throws {RequiredError}
39711
39727
  */
39712
39728
  getServiceGitWebhookStatus(serviceId: string, options?: RawAxiosRequestConfig): AxiosPromise<GitWebhookStatusResponse>;
39729
+ /**
39730
+ * Synchronizes the Qovery webhook configuration for a git-based service. - If no webhook exists, creates one with the correct configuration - If webhook exists but is misconfigured, updates it with the correct events - If webhook is already correctly configured, returns current status Works with GitHub, GitLab, and Bitbucket repositories.
39731
+ * @summary Synchronize git webhook for a service
39732
+ * @param {string} serviceId Service ID of an application/job/container/database
39733
+ * @param {*} [options] Override http request option.
39734
+ * @throws {RequiredError}
39735
+ */
39736
+ syncServiceGitWebhook(serviceId: string, options?: RawAxiosRequestConfig): AxiosPromise<GitWebhookStatusResponse>;
39713
39737
  };
39714
39738
  /**
39715
39739
  * ServiceMainCallsApi - object-oriented interface
@@ -39727,6 +39751,15 @@ export declare class ServiceMainCallsApi extends BaseAPI {
39727
39751
  * @memberof ServiceMainCallsApi
39728
39752
  */
39729
39753
  getServiceGitWebhookStatus(serviceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GitWebhookStatusResponse, any, {}>>;
39754
+ /**
39755
+ * Synchronizes the Qovery webhook configuration for a git-based service. - If no webhook exists, creates one with the correct configuration - If webhook exists but is misconfigured, updates it with the correct events - If webhook is already correctly configured, returns current status Works with GitHub, GitLab, and Bitbucket repositories.
39756
+ * @summary Synchronize git webhook for a service
39757
+ * @param {string} serviceId Service ID of an application/job/container/database
39758
+ * @param {*} [options] Override http request option.
39759
+ * @throws {RequiredError}
39760
+ * @memberof ServiceMainCallsApi
39761
+ */
39762
+ syncServiceGitWebhook(serviceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GitWebhookStatusResponse, any, {}>>;
39730
39763
  }
39731
39764
  /**
39732
39765
  * ServiceStatusApi - axios parameter creator
package/dist/api.js CHANGED
@@ -39941,6 +39941,40 @@ const ServiceMainCallsApiAxiosParamCreator = function (configuration) {
39941
39941
  options: localVarRequestOptions,
39942
39942
  };
39943
39943
  }),
39944
+ /**
39945
+ * Synchronizes the Qovery webhook configuration for a git-based service. - If no webhook exists, creates one with the correct configuration - If webhook exists but is misconfigured, updates it with the correct events - If webhook is already correctly configured, returns current status Works with GitHub, GitLab, and Bitbucket repositories.
39946
+ * @summary Synchronize git webhook for a service
39947
+ * @param {string} serviceId Service ID of an application/job/container/database
39948
+ * @param {*} [options] Override http request option.
39949
+ * @throws {RequiredError}
39950
+ */
39951
+ syncServiceGitWebhook: (serviceId_1, ...args_1) => __awaiter(this, [serviceId_1, ...args_1], void 0, function* (serviceId, options = {}) {
39952
+ // verify required parameter 'serviceId' is not null or undefined
39953
+ (0, common_1.assertParamExists)('syncServiceGitWebhook', 'serviceId', serviceId);
39954
+ const localVarPath = `/service/{serviceId}/gitWebhook/sync`
39955
+ .replace(`{${"serviceId"}}`, encodeURIComponent(String(serviceId)));
39956
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39957
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
39958
+ let baseOptions;
39959
+ if (configuration) {
39960
+ baseOptions = configuration.baseOptions;
39961
+ }
39962
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
39963
+ const localVarHeaderParameter = {};
39964
+ const localVarQueryParameter = {};
39965
+ // authentication ApiKeyAuth required
39966
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
39967
+ // authentication bearerAuth required
39968
+ // http bearer authentication required
39969
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
39970
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
39971
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39972
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
39973
+ return {
39974
+ url: (0, common_1.toPathString)(localVarUrlObj),
39975
+ options: localVarRequestOptions,
39976
+ };
39977
+ }),
39944
39978
  };
39945
39979
  };
39946
39980
  exports.ServiceMainCallsApiAxiosParamCreator = ServiceMainCallsApiAxiosParamCreator;
@@ -39967,6 +40001,22 @@ const ServiceMainCallsApiFp = function (configuration) {
39967
40001
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39968
40002
  });
39969
40003
  },
40004
+ /**
40005
+ * Synchronizes the Qovery webhook configuration for a git-based service. - If no webhook exists, creates one with the correct configuration - If webhook exists but is misconfigured, updates it with the correct events - If webhook is already correctly configured, returns current status Works with GitHub, GitLab, and Bitbucket repositories.
40006
+ * @summary Synchronize git webhook for a service
40007
+ * @param {string} serviceId Service ID of an application/job/container/database
40008
+ * @param {*} [options] Override http request option.
40009
+ * @throws {RequiredError}
40010
+ */
40011
+ syncServiceGitWebhook(serviceId, options) {
40012
+ return __awaiter(this, void 0, void 0, function* () {
40013
+ var _a, _b, _c;
40014
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.syncServiceGitWebhook(serviceId, options);
40015
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
40016
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ServiceMainCallsApi.syncServiceGitWebhook']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
40017
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
40018
+ });
40019
+ },
39970
40020
  };
39971
40021
  };
39972
40022
  exports.ServiceMainCallsApiFp = ServiceMainCallsApiFp;
@@ -39987,6 +40037,16 @@ const ServiceMainCallsApiFactory = function (configuration, basePath, axios) {
39987
40037
  getServiceGitWebhookStatus(serviceId, options) {
39988
40038
  return localVarFp.getServiceGitWebhookStatus(serviceId, options).then((request) => request(axios, basePath));
39989
40039
  },
40040
+ /**
40041
+ * Synchronizes the Qovery webhook configuration for a git-based service. - If no webhook exists, creates one with the correct configuration - If webhook exists but is misconfigured, updates it with the correct events - If webhook is already correctly configured, returns current status Works with GitHub, GitLab, and Bitbucket repositories.
40042
+ * @summary Synchronize git webhook for a service
40043
+ * @param {string} serviceId Service ID of an application/job/container/database
40044
+ * @param {*} [options] Override http request option.
40045
+ * @throws {RequiredError}
40046
+ */
40047
+ syncServiceGitWebhook(serviceId, options) {
40048
+ return localVarFp.syncServiceGitWebhook(serviceId, options).then((request) => request(axios, basePath));
40049
+ },
39990
40050
  };
39991
40051
  };
39992
40052
  exports.ServiceMainCallsApiFactory = ServiceMainCallsApiFactory;
@@ -40008,6 +40068,17 @@ class ServiceMainCallsApi extends base_1.BaseAPI {
40008
40068
  getServiceGitWebhookStatus(serviceId, options) {
40009
40069
  return (0, exports.ServiceMainCallsApiFp)(this.configuration).getServiceGitWebhookStatus(serviceId, options).then((request) => request(this.axios, this.basePath));
40010
40070
  }
40071
+ /**
40072
+ * Synchronizes the Qovery webhook configuration for a git-based service. - If no webhook exists, creates one with the correct configuration - If webhook exists but is misconfigured, updates it with the correct events - If webhook is already correctly configured, returns current status Works with GitHub, GitLab, and Bitbucket repositories.
40073
+ * @summary Synchronize git webhook for a service
40074
+ * @param {string} serviceId Service ID of an application/job/container/database
40075
+ * @param {*} [options] Override http request option.
40076
+ * @throws {RequiredError}
40077
+ * @memberof ServiceMainCallsApi
40078
+ */
40079
+ syncServiceGitWebhook(serviceId, options) {
40080
+ return (0, exports.ServiceMainCallsApiFp)(this.configuration).syncServiceGitWebhook(serviceId, options).then((request) => request(this.axios, this.basePath));
40081
+ }
40011
40082
  }
40012
40083
  exports.ServiceMainCallsApi = ServiceMainCallsApi;
40013
40084
  /**
package/dist/esm/api.d.ts CHANGED
@@ -39682,6 +39682,14 @@ export declare const ServiceMainCallsApiAxiosParamCreator: (configuration?: Conf
39682
39682
  * @throws {RequiredError}
39683
39683
  */
39684
39684
  getServiceGitWebhookStatus: (serviceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39685
+ /**
39686
+ * Synchronizes the Qovery webhook configuration for a git-based service. - If no webhook exists, creates one with the correct configuration - If webhook exists but is misconfigured, updates it with the correct events - If webhook is already correctly configured, returns current status Works with GitHub, GitLab, and Bitbucket repositories.
39687
+ * @summary Synchronize git webhook for a service
39688
+ * @param {string} serviceId Service ID of an application/job/container/database
39689
+ * @param {*} [options] Override http request option.
39690
+ * @throws {RequiredError}
39691
+ */
39692
+ syncServiceGitWebhook: (serviceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39685
39693
  };
39686
39694
  /**
39687
39695
  * ServiceMainCallsApi - functional programming interface
@@ -39696,6 +39704,14 @@ export declare const ServiceMainCallsApiFp: (configuration?: Configuration) => {
39696
39704
  * @throws {RequiredError}
39697
39705
  */
39698
39706
  getServiceGitWebhookStatus(serviceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitWebhookStatusResponse>>;
39707
+ /**
39708
+ * Synchronizes the Qovery webhook configuration for a git-based service. - If no webhook exists, creates one with the correct configuration - If webhook exists but is misconfigured, updates it with the correct events - If webhook is already correctly configured, returns current status Works with GitHub, GitLab, and Bitbucket repositories.
39709
+ * @summary Synchronize git webhook for a service
39710
+ * @param {string} serviceId Service ID of an application/job/container/database
39711
+ * @param {*} [options] Override http request option.
39712
+ * @throws {RequiredError}
39713
+ */
39714
+ syncServiceGitWebhook(serviceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitWebhookStatusResponse>>;
39699
39715
  };
39700
39716
  /**
39701
39717
  * ServiceMainCallsApi - factory interface
@@ -39710,6 +39726,14 @@ export declare const ServiceMainCallsApiFactory: (configuration?: Configuration,
39710
39726
  * @throws {RequiredError}
39711
39727
  */
39712
39728
  getServiceGitWebhookStatus(serviceId: string, options?: RawAxiosRequestConfig): AxiosPromise<GitWebhookStatusResponse>;
39729
+ /**
39730
+ * Synchronizes the Qovery webhook configuration for a git-based service. - If no webhook exists, creates one with the correct configuration - If webhook exists but is misconfigured, updates it with the correct events - If webhook is already correctly configured, returns current status Works with GitHub, GitLab, and Bitbucket repositories.
39731
+ * @summary Synchronize git webhook for a service
39732
+ * @param {string} serviceId Service ID of an application/job/container/database
39733
+ * @param {*} [options] Override http request option.
39734
+ * @throws {RequiredError}
39735
+ */
39736
+ syncServiceGitWebhook(serviceId: string, options?: RawAxiosRequestConfig): AxiosPromise<GitWebhookStatusResponse>;
39713
39737
  };
39714
39738
  /**
39715
39739
  * ServiceMainCallsApi - object-oriented interface
@@ -39727,6 +39751,15 @@ export declare class ServiceMainCallsApi extends BaseAPI {
39727
39751
  * @memberof ServiceMainCallsApi
39728
39752
  */
39729
39753
  getServiceGitWebhookStatus(serviceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GitWebhookStatusResponse, any, {}>>;
39754
+ /**
39755
+ * Synchronizes the Qovery webhook configuration for a git-based service. - If no webhook exists, creates one with the correct configuration - If webhook exists but is misconfigured, updates it with the correct events - If webhook is already correctly configured, returns current status Works with GitHub, GitLab, and Bitbucket repositories.
39756
+ * @summary Synchronize git webhook for a service
39757
+ * @param {string} serviceId Service ID of an application/job/container/database
39758
+ * @param {*} [options] Override http request option.
39759
+ * @throws {RequiredError}
39760
+ * @memberof ServiceMainCallsApi
39761
+ */
39762
+ syncServiceGitWebhook(serviceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GitWebhookStatusResponse, any, {}>>;
39730
39763
  }
39731
39764
  /**
39732
39765
  * ServiceStatusApi - axios parameter creator
package/dist/esm/api.js CHANGED
@@ -39601,6 +39601,40 @@ export const ServiceMainCallsApiAxiosParamCreator = function (configuration) {
39601
39601
  options: localVarRequestOptions,
39602
39602
  };
39603
39603
  }),
39604
+ /**
39605
+ * Synchronizes the Qovery webhook configuration for a git-based service. - If no webhook exists, creates one with the correct configuration - If webhook exists but is misconfigured, updates it with the correct events - If webhook is already correctly configured, returns current status Works with GitHub, GitLab, and Bitbucket repositories.
39606
+ * @summary Synchronize git webhook for a service
39607
+ * @param {string} serviceId Service ID of an application/job/container/database
39608
+ * @param {*} [options] Override http request option.
39609
+ * @throws {RequiredError}
39610
+ */
39611
+ syncServiceGitWebhook: (serviceId_1, ...args_1) => __awaiter(this, [serviceId_1, ...args_1], void 0, function* (serviceId, options = {}) {
39612
+ // verify required parameter 'serviceId' is not null or undefined
39613
+ assertParamExists('syncServiceGitWebhook', 'serviceId', serviceId);
39614
+ const localVarPath = `/service/{serviceId}/gitWebhook/sync`
39615
+ .replace(`{${"serviceId"}}`, encodeURIComponent(String(serviceId)));
39616
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39617
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39618
+ let baseOptions;
39619
+ if (configuration) {
39620
+ baseOptions = configuration.baseOptions;
39621
+ }
39622
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
39623
+ const localVarHeaderParameter = {};
39624
+ const localVarQueryParameter = {};
39625
+ // authentication ApiKeyAuth required
39626
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
39627
+ // authentication bearerAuth required
39628
+ // http bearer authentication required
39629
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
39630
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
39631
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39632
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
39633
+ return {
39634
+ url: toPathString(localVarUrlObj),
39635
+ options: localVarRequestOptions,
39636
+ };
39637
+ }),
39604
39638
  };
39605
39639
  };
39606
39640
  /**
@@ -39626,6 +39660,22 @@ export const ServiceMainCallsApiFp = function (configuration) {
39626
39660
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39627
39661
  });
39628
39662
  },
39663
+ /**
39664
+ * Synchronizes the Qovery webhook configuration for a git-based service. - If no webhook exists, creates one with the correct configuration - If webhook exists but is misconfigured, updates it with the correct events - If webhook is already correctly configured, returns current status Works with GitHub, GitLab, and Bitbucket repositories.
39665
+ * @summary Synchronize git webhook for a service
39666
+ * @param {string} serviceId Service ID of an application/job/container/database
39667
+ * @param {*} [options] Override http request option.
39668
+ * @throws {RequiredError}
39669
+ */
39670
+ syncServiceGitWebhook(serviceId, options) {
39671
+ return __awaiter(this, void 0, void 0, function* () {
39672
+ var _a, _b, _c;
39673
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.syncServiceGitWebhook(serviceId, options);
39674
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
39675
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ServiceMainCallsApi.syncServiceGitWebhook']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
39676
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39677
+ });
39678
+ },
39629
39679
  };
39630
39680
  };
39631
39681
  /**
@@ -39645,6 +39695,16 @@ export const ServiceMainCallsApiFactory = function (configuration, basePath, axi
39645
39695
  getServiceGitWebhookStatus(serviceId, options) {
39646
39696
  return localVarFp.getServiceGitWebhookStatus(serviceId, options).then((request) => request(axios, basePath));
39647
39697
  },
39698
+ /**
39699
+ * Synchronizes the Qovery webhook configuration for a git-based service. - If no webhook exists, creates one with the correct configuration - If webhook exists but is misconfigured, updates it with the correct events - If webhook is already correctly configured, returns current status Works with GitHub, GitLab, and Bitbucket repositories.
39700
+ * @summary Synchronize git webhook for a service
39701
+ * @param {string} serviceId Service ID of an application/job/container/database
39702
+ * @param {*} [options] Override http request option.
39703
+ * @throws {RequiredError}
39704
+ */
39705
+ syncServiceGitWebhook(serviceId, options) {
39706
+ return localVarFp.syncServiceGitWebhook(serviceId, options).then((request) => request(axios, basePath));
39707
+ },
39648
39708
  };
39649
39709
  };
39650
39710
  /**
@@ -39665,6 +39725,17 @@ export class ServiceMainCallsApi extends BaseAPI {
39665
39725
  getServiceGitWebhookStatus(serviceId, options) {
39666
39726
  return ServiceMainCallsApiFp(this.configuration).getServiceGitWebhookStatus(serviceId, options).then((request) => request(this.axios, this.basePath));
39667
39727
  }
39728
+ /**
39729
+ * Synchronizes the Qovery webhook configuration for a git-based service. - If no webhook exists, creates one with the correct configuration - If webhook exists but is misconfigured, updates it with the correct events - If webhook is already correctly configured, returns current status Works with GitHub, GitLab, and Bitbucket repositories.
39730
+ * @summary Synchronize git webhook for a service
39731
+ * @param {string} serviceId Service ID of an application/job/container/database
39732
+ * @param {*} [options] Override http request option.
39733
+ * @throws {RequiredError}
39734
+ * @memberof ServiceMainCallsApi
39735
+ */
39736
+ syncServiceGitWebhook(serviceId, options) {
39737
+ return ServiceMainCallsApiFp(this.configuration).syncServiceGitWebhook(serviceId, options).then((request) => request(this.axios, this.basePath));
39738
+ }
39668
39739
  }
39669
39740
  /**
39670
39741
  * ServiceStatusApi - axios parameter creator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-typescript-axios",
3
- "version": "v1.1.813",
3
+ "version": "v1.1.814",
4
4
  "description": "OpenAPI client for qovery-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {