qovery-typescript-axios 1.1.812 → 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 +233 -0
- package/dist/api.d.ts +130 -0
- package/dist/api.js +200 -9
- package/dist/esm/api.d.ts +130 -0
- package/dist/esm/api.js +187 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -10819,6 +10819,48 @@ export interface GitTokenResponseList {
|
|
|
10819
10819
|
*/
|
|
10820
10820
|
'results'?: Array<GitTokenResponse>;
|
|
10821
10821
|
}
|
|
10822
|
+
/**
|
|
10823
|
+
*
|
|
10824
|
+
* @export
|
|
10825
|
+
* @interface GitWebhookStatusResponse
|
|
10826
|
+
*/
|
|
10827
|
+
export interface GitWebhookStatusResponse {
|
|
10828
|
+
/**
|
|
10829
|
+
* The webhook configuration status: - ACTIVE: Webhook is properly configured with all required events - NOT_CONFIGURED: No Qovery webhook found on the git rep - MISCONFIGURED: Webhook exists but is missing required events - UNABLE_TO_VERIFY: Could not check webhook status (auth error, rate limit, etc.)
|
|
10830
|
+
* @type {string}
|
|
10831
|
+
* @memberof GitWebhookStatusResponse
|
|
10832
|
+
*/
|
|
10833
|
+
'status': GitWebhookStatusResponseStatusEnum;
|
|
10834
|
+
/**
|
|
10835
|
+
* The git provider where the webhook is configured
|
|
10836
|
+
* @type {string}
|
|
10837
|
+
* @memberof GitWebhookStatusResponse
|
|
10838
|
+
*/
|
|
10839
|
+
'provider': GitWebhookStatusResponseProviderEnum;
|
|
10840
|
+
/**
|
|
10841
|
+
* List of required events that are missing from the webhook configuration (only present when status is MISCONFIGURED)
|
|
10842
|
+
* @type {Array<string>}
|
|
10843
|
+
* @memberof GitWebhookStatusResponse
|
|
10844
|
+
*/
|
|
10845
|
+
'missing_events'?: Array<string>;
|
|
10846
|
+
}
|
|
10847
|
+
|
|
10848
|
+
export const GitWebhookStatusResponseStatusEnum = {
|
|
10849
|
+
ACTIVE: 'ACTIVE',
|
|
10850
|
+
NOT_CONFIGURED: 'NOT_CONFIGURED',
|
|
10851
|
+
MISCONFIGURED: 'MISCONFIGURED',
|
|
10852
|
+
UNABLE_TO_VERIFY: 'UNABLE_TO_VERIFY'
|
|
10853
|
+
} as const;
|
|
10854
|
+
|
|
10855
|
+
export type GitWebhookStatusResponseStatusEnum = typeof GitWebhookStatusResponseStatusEnum[keyof typeof GitWebhookStatusResponseStatusEnum];
|
|
10856
|
+
export const GitWebhookStatusResponseProviderEnum = {
|
|
10857
|
+
GITHUB: 'GITHUB',
|
|
10858
|
+
GITLAB: 'GITLAB',
|
|
10859
|
+
BITBUCKET: 'BITBUCKET'
|
|
10860
|
+
} as const;
|
|
10861
|
+
|
|
10862
|
+
export type GitWebhookStatusResponseProviderEnum = typeof GitWebhookStatusResponseProviderEnum[keyof typeof GitWebhookStatusResponseProviderEnum];
|
|
10863
|
+
|
|
10822
10864
|
/**
|
|
10823
10865
|
*
|
|
10824
10866
|
* @export
|
|
@@ -62612,6 +62654,197 @@ export class ReferralRewardsApi extends BaseAPI {
|
|
|
62612
62654
|
|
|
62613
62655
|
|
|
62614
62656
|
|
|
62657
|
+
/**
|
|
62658
|
+
* ServiceMainCallsApi - axios parameter creator
|
|
62659
|
+
* @export
|
|
62660
|
+
*/
|
|
62661
|
+
export const ServiceMainCallsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
62662
|
+
return {
|
|
62663
|
+
/**
|
|
62664
|
+
* Returns the webhook status for a git-based service. Checks if the Qovery webhook is correctly configured on the git provider (GitHub, GitLab, or Bitbucket).
|
|
62665
|
+
* @summary Get git webhook status for a service
|
|
62666
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
62667
|
+
* @param {*} [options] Override http request option.
|
|
62668
|
+
* @throws {RequiredError}
|
|
62669
|
+
*/
|
|
62670
|
+
getServiceGitWebhookStatus: async (serviceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
62671
|
+
// verify required parameter 'serviceId' is not null or undefined
|
|
62672
|
+
assertParamExists('getServiceGitWebhookStatus', 'serviceId', serviceId)
|
|
62673
|
+
const localVarPath = `/service/{serviceId}/gitWebhookStatus`
|
|
62674
|
+
.replace(`{${"serviceId"}}`, encodeURIComponent(String(serviceId)));
|
|
62675
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
62676
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
62677
|
+
let baseOptions;
|
|
62678
|
+
if (configuration) {
|
|
62679
|
+
baseOptions = configuration.baseOptions;
|
|
62680
|
+
}
|
|
62681
|
+
|
|
62682
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
62683
|
+
const localVarHeaderParameter = {} as any;
|
|
62684
|
+
const localVarQueryParameter = {} as any;
|
|
62685
|
+
|
|
62686
|
+
// authentication ApiKeyAuth required
|
|
62687
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
62688
|
+
|
|
62689
|
+
// authentication bearerAuth required
|
|
62690
|
+
// http bearer authentication required
|
|
62691
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
62692
|
+
|
|
62693
|
+
|
|
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
|
+
|
|
62736
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
62737
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
62738
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
62739
|
+
|
|
62740
|
+
return {
|
|
62741
|
+
url: toPathString(localVarUrlObj),
|
|
62742
|
+
options: localVarRequestOptions,
|
|
62743
|
+
};
|
|
62744
|
+
},
|
|
62745
|
+
}
|
|
62746
|
+
};
|
|
62747
|
+
|
|
62748
|
+
/**
|
|
62749
|
+
* ServiceMainCallsApi - functional programming interface
|
|
62750
|
+
* @export
|
|
62751
|
+
*/
|
|
62752
|
+
export const ServiceMainCallsApiFp = function(configuration?: Configuration) {
|
|
62753
|
+
const localVarAxiosParamCreator = ServiceMainCallsApiAxiosParamCreator(configuration)
|
|
62754
|
+
return {
|
|
62755
|
+
/**
|
|
62756
|
+
* Returns the webhook status for a git-based service. Checks if the Qovery webhook is correctly configured on the git provider (GitHub, GitLab, or Bitbucket).
|
|
62757
|
+
* @summary Get git webhook status for a service
|
|
62758
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
62759
|
+
* @param {*} [options] Override http request option.
|
|
62760
|
+
* @throws {RequiredError}
|
|
62761
|
+
*/
|
|
62762
|
+
async getServiceGitWebhookStatus(serviceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitWebhookStatusResponse>> {
|
|
62763
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getServiceGitWebhookStatus(serviceId, options);
|
|
62764
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
62765
|
+
const localVarOperationServerBasePath = operationServerMap['ServiceMainCallsApi.getServiceGitWebhookStatus']?.[localVarOperationServerIndex]?.url;
|
|
62766
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
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
|
+
},
|
|
62781
|
+
}
|
|
62782
|
+
};
|
|
62783
|
+
|
|
62784
|
+
/**
|
|
62785
|
+
* ServiceMainCallsApi - factory interface
|
|
62786
|
+
* @export
|
|
62787
|
+
*/
|
|
62788
|
+
export const ServiceMainCallsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
62789
|
+
const localVarFp = ServiceMainCallsApiFp(configuration)
|
|
62790
|
+
return {
|
|
62791
|
+
/**
|
|
62792
|
+
* Returns the webhook status for a git-based service. Checks if the Qovery webhook is correctly configured on the git provider (GitHub, GitLab, or Bitbucket).
|
|
62793
|
+
* @summary Get git webhook status for a service
|
|
62794
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
62795
|
+
* @param {*} [options] Override http request option.
|
|
62796
|
+
* @throws {RequiredError}
|
|
62797
|
+
*/
|
|
62798
|
+
getServiceGitWebhookStatus(serviceId: string, options?: RawAxiosRequestConfig): AxiosPromise<GitWebhookStatusResponse> {
|
|
62799
|
+
return localVarFp.getServiceGitWebhookStatus(serviceId, options).then((request) => request(axios, basePath));
|
|
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
|
+
},
|
|
62811
|
+
};
|
|
62812
|
+
};
|
|
62813
|
+
|
|
62814
|
+
/**
|
|
62815
|
+
* ServiceMainCallsApi - object-oriented interface
|
|
62816
|
+
* @export
|
|
62817
|
+
* @class ServiceMainCallsApi
|
|
62818
|
+
* @extends {BaseAPI}
|
|
62819
|
+
*/
|
|
62820
|
+
export class ServiceMainCallsApi extends BaseAPI {
|
|
62821
|
+
/**
|
|
62822
|
+
* Returns the webhook status for a git-based service. Checks if the Qovery webhook is correctly configured on the git provider (GitHub, GitLab, or Bitbucket).
|
|
62823
|
+
* @summary Get git webhook status for a service
|
|
62824
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
62825
|
+
* @param {*} [options] Override http request option.
|
|
62826
|
+
* @throws {RequiredError}
|
|
62827
|
+
* @memberof ServiceMainCallsApi
|
|
62828
|
+
*/
|
|
62829
|
+
public getServiceGitWebhookStatus(serviceId: string, options?: RawAxiosRequestConfig) {
|
|
62830
|
+
return ServiceMainCallsApiFp(this.configuration).getServiceGitWebhookStatus(serviceId, options).then((request) => request(this.axios, this.basePath));
|
|
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
|
+
}
|
|
62844
|
+
}
|
|
62845
|
+
|
|
62846
|
+
|
|
62847
|
+
|
|
62615
62848
|
/**
|
|
62616
62849
|
* ServiceStatusApi - axios parameter creator
|
|
62617
62850
|
* @export
|
package/dist/api.d.ts
CHANGED
|
@@ -10479,6 +10479,44 @@ export interface GitTokenResponseList {
|
|
|
10479
10479
|
*/
|
|
10480
10480
|
'results'?: Array<GitTokenResponse>;
|
|
10481
10481
|
}
|
|
10482
|
+
/**
|
|
10483
|
+
*
|
|
10484
|
+
* @export
|
|
10485
|
+
* @interface GitWebhookStatusResponse
|
|
10486
|
+
*/
|
|
10487
|
+
export interface GitWebhookStatusResponse {
|
|
10488
|
+
/**
|
|
10489
|
+
* The webhook configuration status: - ACTIVE: Webhook is properly configured with all required events - NOT_CONFIGURED: No Qovery webhook found on the git rep - MISCONFIGURED: Webhook exists but is missing required events - UNABLE_TO_VERIFY: Could not check webhook status (auth error, rate limit, etc.)
|
|
10490
|
+
* @type {string}
|
|
10491
|
+
* @memberof GitWebhookStatusResponse
|
|
10492
|
+
*/
|
|
10493
|
+
'status': GitWebhookStatusResponseStatusEnum;
|
|
10494
|
+
/**
|
|
10495
|
+
* The git provider where the webhook is configured
|
|
10496
|
+
* @type {string}
|
|
10497
|
+
* @memberof GitWebhookStatusResponse
|
|
10498
|
+
*/
|
|
10499
|
+
'provider': GitWebhookStatusResponseProviderEnum;
|
|
10500
|
+
/**
|
|
10501
|
+
* List of required events that are missing from the webhook configuration (only present when status is MISCONFIGURED)
|
|
10502
|
+
* @type {Array<string>}
|
|
10503
|
+
* @memberof GitWebhookStatusResponse
|
|
10504
|
+
*/
|
|
10505
|
+
'missing_events'?: Array<string>;
|
|
10506
|
+
}
|
|
10507
|
+
export declare const GitWebhookStatusResponseStatusEnum: {
|
|
10508
|
+
readonly ACTIVE: "ACTIVE";
|
|
10509
|
+
readonly NOT_CONFIGURED: "NOT_CONFIGURED";
|
|
10510
|
+
readonly MISCONFIGURED: "MISCONFIGURED";
|
|
10511
|
+
readonly UNABLE_TO_VERIFY: "UNABLE_TO_VERIFY";
|
|
10512
|
+
};
|
|
10513
|
+
export type GitWebhookStatusResponseStatusEnum = typeof GitWebhookStatusResponseStatusEnum[keyof typeof GitWebhookStatusResponseStatusEnum];
|
|
10514
|
+
export declare const GitWebhookStatusResponseProviderEnum: {
|
|
10515
|
+
readonly GITHUB: "GITHUB";
|
|
10516
|
+
readonly GITLAB: "GITLAB";
|
|
10517
|
+
readonly BITBUCKET: "BITBUCKET";
|
|
10518
|
+
};
|
|
10519
|
+
export type GitWebhookStatusResponseProviderEnum = typeof GitWebhookStatusResponseProviderEnum[keyof typeof GitWebhookStatusResponseProviderEnum];
|
|
10482
10520
|
/**
|
|
10483
10521
|
*
|
|
10484
10522
|
* @export
|
|
@@ -39631,6 +39669,98 @@ export declare class ReferralRewardsApi extends BaseAPI {
|
|
|
39631
39669
|
*/
|
|
39632
39670
|
postAccountRewardClaim(rewardClaim?: RewardClaim, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
39633
39671
|
}
|
|
39672
|
+
/**
|
|
39673
|
+
* ServiceMainCallsApi - axios parameter creator
|
|
39674
|
+
* @export
|
|
39675
|
+
*/
|
|
39676
|
+
export declare const ServiceMainCallsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
39677
|
+
/**
|
|
39678
|
+
* Returns the webhook status for a git-based service. Checks if the Qovery webhook is correctly configured on the git provider (GitHub, GitLab, or Bitbucket).
|
|
39679
|
+
* @summary Get git webhook status for a service
|
|
39680
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
39681
|
+
* @param {*} [options] Override http request option.
|
|
39682
|
+
* @throws {RequiredError}
|
|
39683
|
+
*/
|
|
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>;
|
|
39693
|
+
};
|
|
39694
|
+
/**
|
|
39695
|
+
* ServiceMainCallsApi - functional programming interface
|
|
39696
|
+
* @export
|
|
39697
|
+
*/
|
|
39698
|
+
export declare const ServiceMainCallsApiFp: (configuration?: Configuration) => {
|
|
39699
|
+
/**
|
|
39700
|
+
* Returns the webhook status for a git-based service. Checks if the Qovery webhook is correctly configured on the git provider (GitHub, GitLab, or Bitbucket).
|
|
39701
|
+
* @summary Get git webhook status for a service
|
|
39702
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
39703
|
+
* @param {*} [options] Override http request option.
|
|
39704
|
+
* @throws {RequiredError}
|
|
39705
|
+
*/
|
|
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>>;
|
|
39715
|
+
};
|
|
39716
|
+
/**
|
|
39717
|
+
* ServiceMainCallsApi - factory interface
|
|
39718
|
+
* @export
|
|
39719
|
+
*/
|
|
39720
|
+
export declare const ServiceMainCallsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
39721
|
+
/**
|
|
39722
|
+
* Returns the webhook status for a git-based service. Checks if the Qovery webhook is correctly configured on the git provider (GitHub, GitLab, or Bitbucket).
|
|
39723
|
+
* @summary Get git webhook status for a service
|
|
39724
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
39725
|
+
* @param {*} [options] Override http request option.
|
|
39726
|
+
* @throws {RequiredError}
|
|
39727
|
+
*/
|
|
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>;
|
|
39737
|
+
};
|
|
39738
|
+
/**
|
|
39739
|
+
* ServiceMainCallsApi - object-oriented interface
|
|
39740
|
+
* @export
|
|
39741
|
+
* @class ServiceMainCallsApi
|
|
39742
|
+
* @extends {BaseAPI}
|
|
39743
|
+
*/
|
|
39744
|
+
export declare class ServiceMainCallsApi extends BaseAPI {
|
|
39745
|
+
/**
|
|
39746
|
+
* Returns the webhook status for a git-based service. Checks if the Qovery webhook is correctly configured on the git provider (GitHub, GitLab, or Bitbucket).
|
|
39747
|
+
* @summary Get git webhook status for a service
|
|
39748
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
39749
|
+
* @param {*} [options] Override http request option.
|
|
39750
|
+
* @throws {RequiredError}
|
|
39751
|
+
* @memberof ServiceMainCallsApi
|
|
39752
|
+
*/
|
|
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, {}>>;
|
|
39763
|
+
}
|
|
39634
39764
|
/**
|
|
39635
39765
|
* ServiceStatusApi - axios parameter creator
|
|
39636
39766
|
* @export
|
package/dist/api.js
CHANGED
|
@@ -23,15 +23,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.EksInfrastructureOutputsKindEnum = exports.DockerfileFragmentInlineTypeEnum = exports.DockerfileFragmentFileTypeEnum = exports.DeploymentRestrictionTypeEnum = exports.DeploymentRestrictionModeEnum = exports.DeploymentHistoryTriggerAction = exports.DeploymentHistoryStatusEnum = exports.DeploymentHistoryServiceDetailsOneOf2JobTypeEnum = exports.DeploymentHistoryActionStatus = exports.DeleteTerraformAction = exports.DatabaseTypeEnum = exports.DatabaseModeEnum = exports.DatabaseAccessibilityEnum = exports.CustomDomainStatusEnum = exports.CreateEnvironmentModeEnum = exports.CpuArchitectureEnum = exports.ContainerRegistryKindEnum = exports.ContainerRegistryAssociatedServiceType = exports.ContainerAdvancedSettingsDeploymentUpdateStrategyTypeEnum = exports.ContainerAdvancedSettingsDeploymentAntiaffinityPodEnum = exports.CompanySizeEnum = exports.ClusterStateEnum = exports.ClusterLogsStepEnum = exports.ClusterFeatureResponseTypeEnum = exports.ClusterFeatureResponseValueTypeEnum = exports.ClusterDeploymentStatusEnum = exports.ClusterDeleteMode = exports.ClusterAdvancedSettingsAwsEksEc2MetadataImdsEnum = exports.CloudVendorEnum = exports.CloudProviderEnum = exports.CheckedCustomDomainStatus = exports.BuildModeEnum = exports.AzureStaticClusterCredentialsObjectTypeEnum = exports.AwsStaticClusterCredentialsObjectTypeEnum = exports.AwsRoleClusterCredentialsObjectTypeEnum = exports.AutoscalingMode = exports.ApplicationAdvancedSettingsDeploymentUpdateStrategyTypeEnum = exports.ApplicationAdvancedSettingsDeploymentAntiaffinityPodEnum = exports.AnnotationsGroupAssociatedItemType = exports.AlertTargetType = exports.AlertSeverity = exports.AlertRuleState = exports.AlertRuleSource = exports.AlertRuleConditionOperator = exports.AlertRuleConditionKind = exports.AlertRuleConditionFunction = exports.AlertReceiverType = exports.AksInfrastructureOutputsKindEnum = exports.APIVariableTypeEnum = exports.APIVariableScopeEnum = void 0;
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.VariableMainCallsApi = exports.VariableMainCallsApiFactory = exports.VariableMainCallsApiFp = exports.VariableMainCallsApiAxiosParamCreator = exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.TerraformsApi = exports.TerraformsApiFactory = exports.TerraformsApiFp = exports.TerraformsApiAxiosParamCreator = exports.TerraformResourcesApi = exports.TerraformResourcesApiFactory = exports.TerraformResourcesApiFp = exports.TerraformResourcesApiAxiosParamCreator = exports.TerraformMainCallsApi = exports.TerraformMainCallsApiFactory = exports.TerraformMainCallsApiFp = exports.TerraformMainCallsApiAxiosParamCreator = exports.TerraformDeploymentRestrictionApi = exports.TerraformDeploymentRestrictionApiFactory = exports.TerraformDeploymentRestrictionApiFp = exports.TerraformDeploymentRestrictionApiAxiosParamCreator = exports.TerraformDeploymentHistoryApi = exports.TerraformDeploymentHistoryApiFactory = exports.TerraformDeploymentHistoryApiFp = exports.TerraformDeploymentHistoryApiAxiosParamCreator = exports.TerraformConfigurationApi = exports.TerraformConfigurationApiFactory = exports.TerraformConfigurationApiFp = exports.TerraformConfigurationApiAxiosParamCreator = exports.TerraformActionsApi = exports.TerraformActionsApiFactory = exports.TerraformActionsApiFp = exports.TerraformActionsApiAxiosParamCreator = exports.GetIngressDeploymentStatusServiceTypeEnum = exports.ServiceStatusApi = void 0;
|
|
26
|
+
exports.ServiceActionStatusEnum = exports.ServiceActionEnum = exports.ScalewayClusterCredentialsObjectTypeEnum = exports.RewardClaimTypeEnum = exports.RegistryMirroringModeEnum = exports.QueuedDeploymentRequestWithStagesStagesInnerServicesInnerDetailsOneOfJobTypeEnum = exports.PortProtocolEnum = exports.PlanEnum = exports.OrganizationWebhookKindEnum = exports.OrganizationWebhookEventEnum = exports.OrganizationEventType = exports.OrganizationEventTargetType = exports.OrganizationEventTargetLevel = exports.OrganizationEventSubTargetType = exports.OrganizationEventOrigin = exports.OrganizationCustomRoleProjectPermission = exports.OrganizationCustomRoleClusterPermission = exports.OrganizationApiTokenScope = exports.OrganizationAnnotationsGroupScopeEnum = exports.ObservabilityResourceProfile = exports.MetricsConfigurationManagedByQoveryKindEnum = exports.LinkedServiceTypeEnum = exports.LabelsGroupAssociatedItemType = exports.KubernetesEnum = exports.KedaScalerRole = exports.KarpenterNodePoolRequirementOperator = exports.KarpenterNodePoolRequirementKey = exports.KapsuleInfrastructureOutputsKindEnum = exports.JobTypeEnum = exports.JobScheduleEvent = exports.JobLifecycleTypeEnum = exports.JobForceEvent = exports.InvoiceStatusEnum = exports.InviteStatusEnum = exports.InviteMemberRoleEnum = exports.HelmRepositoryKindEnum = exports.HelmRepositoryAssociatedServiceType = exports.HelmPortProtocolEnum = exports.HelmForceEvent = exports.GkeInfrastructureOutputsKindEnum = exports.GitWebhookStatusResponseProviderEnum = exports.GitWebhookStatusResponseStatusEnum = exports.GitTokenAssociatedServiceType = exports.GitProviderEnum = exports.GenericClusterCredentialsObjectTypeEnum = exports.GcpStaticClusterCredentialsObjectTypeEnum = exports.EnvironmentStatusEventOriginEnum = exports.EnvironmentModeEnum = exports.EnvironmentLogTypeEnum = exports.EnvironmentDeploymentStatusEnum = void 0;
|
|
27
|
+
exports.ApplicationDeploymentRestrictionApiFactory = exports.ApplicationDeploymentRestrictionApiFp = exports.ApplicationDeploymentRestrictionApiAxiosParamCreator = exports.ApplicationDeploymentHistoryApi = exports.ApplicationDeploymentHistoryApiFactory = exports.ApplicationDeploymentHistoryApiFp = exports.ApplicationDeploymentHistoryApiAxiosParamCreator = exports.ApplicationCustomDomainApi = exports.ApplicationCustomDomainApiFactory = exports.ApplicationCustomDomainApiFp = exports.ApplicationCustomDomainApiAxiosParamCreator = exports.ApplicationConfigurationApi = exports.ApplicationConfigurationApiFactory = exports.ApplicationConfigurationApiFp = exports.ApplicationConfigurationApiAxiosParamCreator = exports.ApplicationActionsApi = exports.ApplicationActionsApiFactory = exports.ApplicationActionsApiFp = exports.ApplicationActionsApiAxiosParamCreator = exports.AlertRulesApi = exports.AlertRulesApiFactory = exports.AlertRulesApiFp = exports.AlertRulesApiAxiosParamCreator = exports.AlertReceiversApi = exports.AlertReceiversApiFactory = exports.AlertReceiversApiFp = exports.AlertReceiversApiAxiosParamCreator = exports.AccountInfoApi = exports.AccountInfoApiFactory = exports.AccountInfoApiFp = exports.AccountInfoApiAxiosParamCreator = exports.WeekdayEnum = exports.TypeOfUseEnum = exports.TfVarsDiscoveryModeSpecificPathsTypeEnum = exports.TfVarsDiscoveryModeAutoDiscoverTypeEnum = exports.TerraformResourceResponseModeEnum = exports.TerraformEngineEnum = exports.TerraformDeployRequestActionEnum = exports.StorageTypeEnum = exports.StepMetricStatusEnum = exports.StatusKindEnum = exports.StateEnum = exports.StageStepMetricNameEnum = exports.StageStatusEnum = exports.ServiceTypeForVariableEnum = exports.ServiceTypeEnum = exports.ServiceSubActionEnum = exports.ServiceStepMetricNameEnum = exports.ServiceLightResponseJobTypeEnum = exports.ServiceDeploymentStatusEnum = void 0;
|
|
28
|
+
exports.ContainerConfigurationApiFactory = exports.ContainerConfigurationApiFp = exports.ContainerConfigurationApiAxiosParamCreator = exports.ContainerActionsApi = exports.ContainerActionsApiFactory = exports.ContainerActionsApiFp = exports.ContainerActionsApiAxiosParamCreator = exports.ClustersApi = exports.ClustersApiFactory = exports.ClustersApiFp = exports.ClustersApiAxiosParamCreator = exports.CloudProviderCredentialsApi = exports.CloudProviderCredentialsApiFactory = exports.CloudProviderCredentialsApiFp = exports.CloudProviderCredentialsApiAxiosParamCreator = exports.ListAzureAKSInstanceTypeGpuEnum = exports.ListAWSEKSInstanceTypeGpuEnum = exports.CloudProviderApi = exports.CloudProviderApiFactory = exports.CloudProviderApiFp = exports.CloudProviderApiAxiosParamCreator = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.BackupsApi = exports.BackupsApiFactory = exports.BackupsApiFp = exports.BackupsApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.ApplicationSecretApi = exports.ApplicationSecretApiFactory = exports.ApplicationSecretApiFp = exports.ApplicationSecretApiAxiosParamCreator = exports.ApplicationMainCallsApi = exports.ApplicationMainCallsApiFactory = exports.ApplicationMainCallsApiFp = exports.ApplicationMainCallsApiAxiosParamCreator = exports.ApplicationLogsApi = exports.ApplicationLogsApiFactory = exports.ApplicationLogsApiFp = exports.ApplicationLogsApiAxiosParamCreator = exports.ApplicationEnvironmentVariableApi = exports.ApplicationEnvironmentVariableApiFactory = exports.ApplicationEnvironmentVariableApiFp = exports.ApplicationEnvironmentVariableApiAxiosParamCreator = exports.ApplicationDeploymentRestrictionApi = void 0;
|
|
29
|
+
exports.DatabasesApiAxiosParamCreator = exports.DatabaseMainCallsApi = exports.DatabaseMainCallsApiFactory = exports.DatabaseMainCallsApiFp = exports.DatabaseMainCallsApiAxiosParamCreator = exports.DatabaseDeploymentHistoryApi = exports.DatabaseDeploymentHistoryApiFactory = exports.DatabaseDeploymentHistoryApiFp = exports.DatabaseDeploymentHistoryApiAxiosParamCreator = exports.DatabaseApplicationApi = exports.DatabaseApplicationApiFactory = exports.DatabaseApplicationApiFp = exports.DatabaseApplicationApiAxiosParamCreator = exports.DatabaseActionsApi = exports.DatabaseActionsApiFactory = exports.DatabaseActionsApiFp = exports.DatabaseActionsApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.ContainerSecretApi = exports.ContainerSecretApiFactory = exports.ContainerSecretApiFp = exports.ContainerSecretApiAxiosParamCreator = exports.ContainerRegistriesApi = exports.ContainerRegistriesApiFactory = exports.ContainerRegistriesApiFp = exports.ContainerRegistriesApiAxiosParamCreator = exports.ContainerMainCallsApi = exports.ContainerMainCallsApiFactory = exports.ContainerMainCallsApiFp = exports.ContainerMainCallsApiAxiosParamCreator = exports.ContainerLogsApi = exports.ContainerLogsApiFactory = exports.ContainerLogsApiFp = exports.ContainerLogsApiAxiosParamCreator = exports.ContainerEnvironmentVariableApi = exports.ContainerEnvironmentVariableApiFactory = exports.ContainerEnvironmentVariableApiFp = exports.ContainerEnvironmentVariableApiAxiosParamCreator = exports.ContainerDeploymentHistoryApi = exports.ContainerDeploymentHistoryApiFactory = exports.ContainerDeploymentHistoryApiFp = exports.ContainerDeploymentHistoryApiAxiosParamCreator = exports.ContainerCustomDomainApi = exports.ContainerCustomDomainApiFactory = exports.ContainerCustomDomainApiFp = exports.ContainerCustomDomainApiAxiosParamCreator = exports.ContainerConfigurationApi = void 0;
|
|
30
|
+
exports.EnvironmentVariableApiFactory = exports.EnvironmentVariableApiFp = exports.EnvironmentVariableApiAxiosParamCreator = exports.EnvironmentSecretApi = exports.EnvironmentSecretApiFactory = exports.EnvironmentSecretApiFp = exports.EnvironmentSecretApiAxiosParamCreator = exports.EnvironmentMainCallsApi = exports.EnvironmentMainCallsApiFactory = exports.EnvironmentMainCallsApiFp = exports.EnvironmentMainCallsApiAxiosParamCreator = exports.EnvironmentLogsApi = exports.EnvironmentLogsApiFactory = exports.EnvironmentLogsApiFp = exports.EnvironmentLogsApiAxiosParamCreator = exports.EnvironmentExportApi = exports.EnvironmentExportApiFactory = exports.EnvironmentExportApiFp = exports.EnvironmentExportApiAxiosParamCreator = exports.EnvironmentDeploymentRuleApi = exports.EnvironmentDeploymentRuleApiFactory = exports.EnvironmentDeploymentRuleApiFp = exports.EnvironmentDeploymentRuleApiAxiosParamCreator = exports.EnvironmentDeploymentHistoryApi = exports.EnvironmentDeploymentHistoryApiFactory = exports.EnvironmentDeploymentHistoryApiFp = exports.EnvironmentDeploymentHistoryApiAxiosParamCreator = exports.EnvironmentActionsApi = exports.EnvironmentActionsApiFactory = exports.EnvironmentActionsApiFp = exports.EnvironmentActionsApiAxiosParamCreator = exports.EnvironmentApi = exports.EnvironmentApiFactory = exports.EnvironmentApiFp = exports.EnvironmentApiAxiosParamCreator = exports.DeploymentStageMainCallsApi = exports.DeploymentStageMainCallsApiFactory = exports.DeploymentStageMainCallsApiFp = exports.DeploymentStageMainCallsApiAxiosParamCreator = exports.DeploymentQueueActionsApi = exports.DeploymentQueueActionsApiFactory = exports.DeploymentQueueActionsApiFp = exports.DeploymentQueueActionsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.DatabasesApi = exports.DatabasesApiFactory = exports.DatabasesApiFp = void 0;
|
|
31
|
+
exports.JobConfigurationApiAxiosParamCreator = exports.JobActionsApi = exports.JobActionsApiFactory = exports.JobActionsApiFp = exports.JobActionsApiAxiosParamCreator = exports.HelmsApi = exports.HelmsApiFactory = exports.HelmsApiFp = exports.HelmsApiAxiosParamCreator = exports.HelmRepositoriesApi = exports.HelmRepositoriesApiFactory = exports.HelmRepositoriesApiFp = exports.HelmRepositoriesApiAxiosParamCreator = exports.HelmMainCallsApi = exports.HelmMainCallsApiFactory = exports.HelmMainCallsApiFp = exports.HelmMainCallsApiAxiosParamCreator = exports.HelmDeploymentRestrictionApi = exports.HelmDeploymentRestrictionApiFactory = exports.HelmDeploymentRestrictionApiFp = exports.HelmDeploymentRestrictionApiAxiosParamCreator = exports.HelmDeploymentHistoryApi = exports.HelmDeploymentHistoryApiFactory = exports.HelmDeploymentHistoryApiFp = exports.HelmDeploymentHistoryApiAxiosParamCreator = exports.HelmCustomDomainApi = exports.HelmCustomDomainApiFactory = exports.HelmCustomDomainApiFp = exports.HelmCustomDomainApiAxiosParamCreator = exports.HelmConfigurationApi = exports.HelmConfigurationApiFactory = exports.HelmConfigurationApiFp = exports.HelmConfigurationApiAxiosParamCreator = exports.HelmActionsApi = exports.HelmActionsApiFactory = exports.HelmActionsApiFp = exports.HelmActionsApiAxiosParamCreator = exports.GithubAppApi = exports.GithubAppApiFactory = exports.GithubAppApiFp = exports.GithubAppApiAxiosParamCreator = exports.GitRepositoriesApi = exports.GitRepositoriesApiFactory = exports.GitRepositoriesApiFp = exports.GitRepositoriesApiAxiosParamCreator = exports.EnvironmentsApi = exports.EnvironmentsApiFactory = exports.EnvironmentsApiFp = exports.EnvironmentsApiAxiosParamCreator = exports.EnvironmentVariableApi = void 0;
|
|
32
|
+
exports.OrganizationClusterLockApiFactory = exports.OrganizationClusterLockApiFp = exports.OrganizationClusterLockApiAxiosParamCreator = exports.OrganizationApiTokenApi = exports.OrganizationApiTokenApiFactory = exports.OrganizationApiTokenApiFp = exports.OrganizationApiTokenApiAxiosParamCreator = exports.OrganizationAnnotationsGroupApi = exports.OrganizationAnnotationsGroupApiFactory = exports.OrganizationAnnotationsGroupApiFp = exports.OrganizationAnnotationsGroupApiAxiosParamCreator = exports.OrganizationAccountGitRepositoriesApi = exports.OrganizationAccountGitRepositoriesApiFactory = exports.OrganizationAccountGitRepositoriesApiFp = exports.OrganizationAccountGitRepositoriesApiAxiosParamCreator = exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.LifecycleTemplateMainCallsApi = exports.LifecycleTemplateMainCallsApiFactory = exports.LifecycleTemplateMainCallsApiFp = exports.LifecycleTemplateMainCallsApiAxiosParamCreator = exports.JobsApi = exports.JobsApiFactory = exports.JobsApiFp = exports.JobsApiAxiosParamCreator = exports.JobSecretApi = exports.JobSecretApiFactory = exports.JobSecretApiFp = exports.JobSecretApiAxiosParamCreator = exports.JobMainCallsApi = exports.JobMainCallsApiFactory = exports.JobMainCallsApiFp = exports.JobMainCallsApiAxiosParamCreator = exports.JobEnvironmentVariableApi = exports.JobEnvironmentVariableApiFactory = exports.JobEnvironmentVariableApiFp = exports.JobEnvironmentVariableApiAxiosParamCreator = exports.JobDeploymentRestrictionApi = exports.JobDeploymentRestrictionApiFactory = exports.JobDeploymentRestrictionApiFp = exports.JobDeploymentRestrictionApiAxiosParamCreator = exports.JobDeploymentHistoryApi = exports.JobDeploymentHistoryApiFactory = exports.JobDeploymentHistoryApiFp = exports.JobDeploymentHistoryApiAxiosParamCreator = exports.JobConfigurationApi = exports.JobConfigurationApiFactory = exports.JobConfigurationApiFp = void 0;
|
|
33
|
+
exports.ServiceMainCallsApiAxiosParamCreator = exports.ReferralRewardsApi = exports.ReferralRewardsApiFactory = exports.ReferralRewardsApiFp = exports.ReferralRewardsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectSecretApi = exports.ProjectSecretApiFactory = exports.ProjectSecretApiFp = exports.ProjectSecretApiAxiosParamCreator = exports.ProjectMainCallsApi = exports.ProjectMainCallsApiFactory = exports.ProjectMainCallsApiFp = exports.ProjectMainCallsApiAxiosParamCreator = exports.ProjectEnvironmentVariableApi = exports.ProjectEnvironmentVariableApiFactory = exports.ProjectEnvironmentVariableApiFp = exports.ProjectEnvironmentVariableApiAxiosParamCreator = exports.ProjectDeploymentRuleApi = exports.ProjectDeploymentRuleApiFactory = exports.ProjectDeploymentRuleApiFp = exports.ProjectDeploymentRuleApiAxiosParamCreator = exports.OrganizationWebhookApi = exports.OrganizationWebhookApiFactory = exports.OrganizationWebhookApiFp = exports.OrganizationWebhookApiAxiosParamCreator = exports.OrganizationMainCallsApi = exports.OrganizationMainCallsApiFactory = exports.OrganizationMainCallsApiFp = exports.OrganizationMainCallsApiAxiosParamCreator = exports.OrganizationLabelsGroupApi = exports.OrganizationLabelsGroupApiFactory = exports.OrganizationLabelsGroupApiFp = exports.OrganizationLabelsGroupApiAxiosParamCreator = exports.OrganizationEventApi = exports.OrganizationEventApiFactory = exports.OrganizationEventApiFp = exports.OrganizationEventApiAxiosParamCreator = exports.OrganizationEnterpriseConnectionApi = exports.OrganizationEnterpriseConnectionApiFactory = exports.OrganizationEnterpriseConnectionApiFp = exports.OrganizationEnterpriseConnectionApiAxiosParamCreator = exports.OrganizationCustomRoleApi = exports.OrganizationCustomRoleApiFactory = exports.OrganizationCustomRoleApiFp = exports.OrganizationCustomRoleApiAxiosParamCreator = exports.OrganizationClusterLockApi = void 0;
|
|
34
|
+
exports.VariableMainCallsApi = exports.VariableMainCallsApiFactory = exports.VariableMainCallsApiFp = exports.VariableMainCallsApiAxiosParamCreator = exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.TerraformsApi = exports.TerraformsApiFactory = exports.TerraformsApiFp = exports.TerraformsApiAxiosParamCreator = exports.TerraformResourcesApi = exports.TerraformResourcesApiFactory = exports.TerraformResourcesApiFp = exports.TerraformResourcesApiAxiosParamCreator = exports.TerraformMainCallsApi = exports.TerraformMainCallsApiFactory = exports.TerraformMainCallsApiFp = exports.TerraformMainCallsApiAxiosParamCreator = exports.TerraformDeploymentRestrictionApi = exports.TerraformDeploymentRestrictionApiFactory = exports.TerraformDeploymentRestrictionApiFp = exports.TerraformDeploymentRestrictionApiAxiosParamCreator = exports.TerraformDeploymentHistoryApi = exports.TerraformDeploymentHistoryApiFactory = exports.TerraformDeploymentHistoryApiFp = exports.TerraformDeploymentHistoryApiAxiosParamCreator = exports.TerraformConfigurationApi = exports.TerraformConfigurationApiFactory = exports.TerraformConfigurationApiFp = exports.TerraformConfigurationApiAxiosParamCreator = exports.TerraformActionsApi = exports.TerraformActionsApiFactory = exports.TerraformActionsApiFp = exports.TerraformActionsApiAxiosParamCreator = exports.GetIngressDeploymentStatusServiceTypeEnum = exports.ServiceStatusApi = exports.ServiceStatusApiFactory = exports.ServiceStatusApiFp = exports.ServiceStatusApiAxiosParamCreator = exports.ServiceMainCallsApi = exports.ServiceMainCallsApiFactory = exports.ServiceMainCallsApiFp = void 0;
|
|
35
35
|
const axios_1 = require("axios");
|
|
36
36
|
// Some imports not used depending on template conditions
|
|
37
37
|
// @ts-ignore
|
|
@@ -591,6 +591,17 @@ exports.GitTokenAssociatedServiceType = {
|
|
|
591
591
|
HELM: 'HELM',
|
|
592
592
|
TERRAFORM: 'TERRAFORM'
|
|
593
593
|
};
|
|
594
|
+
exports.GitWebhookStatusResponseStatusEnum = {
|
|
595
|
+
ACTIVE: 'ACTIVE',
|
|
596
|
+
NOT_CONFIGURED: 'NOT_CONFIGURED',
|
|
597
|
+
MISCONFIGURED: 'MISCONFIGURED',
|
|
598
|
+
UNABLE_TO_VERIFY: 'UNABLE_TO_VERIFY'
|
|
599
|
+
};
|
|
600
|
+
exports.GitWebhookStatusResponseProviderEnum = {
|
|
601
|
+
GITHUB: 'GITHUB',
|
|
602
|
+
GITLAB: 'GITLAB',
|
|
603
|
+
BITBUCKET: 'BITBUCKET'
|
|
604
|
+
};
|
|
594
605
|
exports.GkeInfrastructureOutputsKindEnum = {
|
|
595
606
|
GKE: 'GKE'
|
|
596
607
|
};
|
|
@@ -39890,6 +39901,186 @@ class ReferralRewardsApi extends base_1.BaseAPI {
|
|
|
39890
39901
|
}
|
|
39891
39902
|
}
|
|
39892
39903
|
exports.ReferralRewardsApi = ReferralRewardsApi;
|
|
39904
|
+
/**
|
|
39905
|
+
* ServiceMainCallsApi - axios parameter creator
|
|
39906
|
+
* @export
|
|
39907
|
+
*/
|
|
39908
|
+
const ServiceMainCallsApiAxiosParamCreator = function (configuration) {
|
|
39909
|
+
return {
|
|
39910
|
+
/**
|
|
39911
|
+
* Returns the webhook status for a git-based service. Checks if the Qovery webhook is correctly configured on the git provider (GitHub, GitLab, or Bitbucket).
|
|
39912
|
+
* @summary Get git webhook status for a service
|
|
39913
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
39914
|
+
* @param {*} [options] Override http request option.
|
|
39915
|
+
* @throws {RequiredError}
|
|
39916
|
+
*/
|
|
39917
|
+
getServiceGitWebhookStatus: (serviceId_1, ...args_1) => __awaiter(this, [serviceId_1, ...args_1], void 0, function* (serviceId, options = {}) {
|
|
39918
|
+
// verify required parameter 'serviceId' is not null or undefined
|
|
39919
|
+
(0, common_1.assertParamExists)('getServiceGitWebhookStatus', 'serviceId', serviceId);
|
|
39920
|
+
const localVarPath = `/service/{serviceId}/gitWebhookStatus`
|
|
39921
|
+
.replace(`{${"serviceId"}}`, encodeURIComponent(String(serviceId)));
|
|
39922
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
39923
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
39924
|
+
let baseOptions;
|
|
39925
|
+
if (configuration) {
|
|
39926
|
+
baseOptions = configuration.baseOptions;
|
|
39927
|
+
}
|
|
39928
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
39929
|
+
const localVarHeaderParameter = {};
|
|
39930
|
+
const localVarQueryParameter = {};
|
|
39931
|
+
// authentication ApiKeyAuth required
|
|
39932
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
39933
|
+
// authentication bearerAuth required
|
|
39934
|
+
// http bearer authentication required
|
|
39935
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
39936
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
39937
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39938
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
39939
|
+
return {
|
|
39940
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
39941
|
+
options: localVarRequestOptions,
|
|
39942
|
+
};
|
|
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
|
+
}),
|
|
39978
|
+
};
|
|
39979
|
+
};
|
|
39980
|
+
exports.ServiceMainCallsApiAxiosParamCreator = ServiceMainCallsApiAxiosParamCreator;
|
|
39981
|
+
/**
|
|
39982
|
+
* ServiceMainCallsApi - functional programming interface
|
|
39983
|
+
* @export
|
|
39984
|
+
*/
|
|
39985
|
+
const ServiceMainCallsApiFp = function (configuration) {
|
|
39986
|
+
const localVarAxiosParamCreator = (0, exports.ServiceMainCallsApiAxiosParamCreator)(configuration);
|
|
39987
|
+
return {
|
|
39988
|
+
/**
|
|
39989
|
+
* Returns the webhook status for a git-based service. Checks if the Qovery webhook is correctly configured on the git provider (GitHub, GitLab, or Bitbucket).
|
|
39990
|
+
* @summary Get git webhook status for a service
|
|
39991
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
39992
|
+
* @param {*} [options] Override http request option.
|
|
39993
|
+
* @throws {RequiredError}
|
|
39994
|
+
*/
|
|
39995
|
+
getServiceGitWebhookStatus(serviceId, options) {
|
|
39996
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39997
|
+
var _a, _b, _c;
|
|
39998
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getServiceGitWebhookStatus(serviceId, options);
|
|
39999
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
40000
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ServiceMainCallsApi.getServiceGitWebhookStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
40001
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40002
|
+
});
|
|
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
|
+
},
|
|
40020
|
+
};
|
|
40021
|
+
};
|
|
40022
|
+
exports.ServiceMainCallsApiFp = ServiceMainCallsApiFp;
|
|
40023
|
+
/**
|
|
40024
|
+
* ServiceMainCallsApi - factory interface
|
|
40025
|
+
* @export
|
|
40026
|
+
*/
|
|
40027
|
+
const ServiceMainCallsApiFactory = function (configuration, basePath, axios) {
|
|
40028
|
+
const localVarFp = (0, exports.ServiceMainCallsApiFp)(configuration);
|
|
40029
|
+
return {
|
|
40030
|
+
/**
|
|
40031
|
+
* Returns the webhook status for a git-based service. Checks if the Qovery webhook is correctly configured on the git provider (GitHub, GitLab, or Bitbucket).
|
|
40032
|
+
* @summary Get git webhook status for a service
|
|
40033
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
40034
|
+
* @param {*} [options] Override http request option.
|
|
40035
|
+
* @throws {RequiredError}
|
|
40036
|
+
*/
|
|
40037
|
+
getServiceGitWebhookStatus(serviceId, options) {
|
|
40038
|
+
return localVarFp.getServiceGitWebhookStatus(serviceId, options).then((request) => request(axios, basePath));
|
|
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
|
+
},
|
|
40050
|
+
};
|
|
40051
|
+
};
|
|
40052
|
+
exports.ServiceMainCallsApiFactory = ServiceMainCallsApiFactory;
|
|
40053
|
+
/**
|
|
40054
|
+
* ServiceMainCallsApi - object-oriented interface
|
|
40055
|
+
* @export
|
|
40056
|
+
* @class ServiceMainCallsApi
|
|
40057
|
+
* @extends {BaseAPI}
|
|
40058
|
+
*/
|
|
40059
|
+
class ServiceMainCallsApi extends base_1.BaseAPI {
|
|
40060
|
+
/**
|
|
40061
|
+
* Returns the webhook status for a git-based service. Checks if the Qovery webhook is correctly configured on the git provider (GitHub, GitLab, or Bitbucket).
|
|
40062
|
+
* @summary Get git webhook status for a service
|
|
40063
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
40064
|
+
* @param {*} [options] Override http request option.
|
|
40065
|
+
* @throws {RequiredError}
|
|
40066
|
+
* @memberof ServiceMainCallsApi
|
|
40067
|
+
*/
|
|
40068
|
+
getServiceGitWebhookStatus(serviceId, options) {
|
|
40069
|
+
return (0, exports.ServiceMainCallsApiFp)(this.configuration).getServiceGitWebhookStatus(serviceId, options).then((request) => request(this.axios, this.basePath));
|
|
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
|
+
}
|
|
40082
|
+
}
|
|
40083
|
+
exports.ServiceMainCallsApi = ServiceMainCallsApi;
|
|
39893
40084
|
/**
|
|
39894
40085
|
* ServiceStatusApi - axios parameter creator
|
|
39895
40086
|
* @export
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -10479,6 +10479,44 @@ export interface GitTokenResponseList {
|
|
|
10479
10479
|
*/
|
|
10480
10480
|
'results'?: Array<GitTokenResponse>;
|
|
10481
10481
|
}
|
|
10482
|
+
/**
|
|
10483
|
+
*
|
|
10484
|
+
* @export
|
|
10485
|
+
* @interface GitWebhookStatusResponse
|
|
10486
|
+
*/
|
|
10487
|
+
export interface GitWebhookStatusResponse {
|
|
10488
|
+
/**
|
|
10489
|
+
* The webhook configuration status: - ACTIVE: Webhook is properly configured with all required events - NOT_CONFIGURED: No Qovery webhook found on the git rep - MISCONFIGURED: Webhook exists but is missing required events - UNABLE_TO_VERIFY: Could not check webhook status (auth error, rate limit, etc.)
|
|
10490
|
+
* @type {string}
|
|
10491
|
+
* @memberof GitWebhookStatusResponse
|
|
10492
|
+
*/
|
|
10493
|
+
'status': GitWebhookStatusResponseStatusEnum;
|
|
10494
|
+
/**
|
|
10495
|
+
* The git provider where the webhook is configured
|
|
10496
|
+
* @type {string}
|
|
10497
|
+
* @memberof GitWebhookStatusResponse
|
|
10498
|
+
*/
|
|
10499
|
+
'provider': GitWebhookStatusResponseProviderEnum;
|
|
10500
|
+
/**
|
|
10501
|
+
* List of required events that are missing from the webhook configuration (only present when status is MISCONFIGURED)
|
|
10502
|
+
* @type {Array<string>}
|
|
10503
|
+
* @memberof GitWebhookStatusResponse
|
|
10504
|
+
*/
|
|
10505
|
+
'missing_events'?: Array<string>;
|
|
10506
|
+
}
|
|
10507
|
+
export declare const GitWebhookStatusResponseStatusEnum: {
|
|
10508
|
+
readonly ACTIVE: "ACTIVE";
|
|
10509
|
+
readonly NOT_CONFIGURED: "NOT_CONFIGURED";
|
|
10510
|
+
readonly MISCONFIGURED: "MISCONFIGURED";
|
|
10511
|
+
readonly UNABLE_TO_VERIFY: "UNABLE_TO_VERIFY";
|
|
10512
|
+
};
|
|
10513
|
+
export type GitWebhookStatusResponseStatusEnum = typeof GitWebhookStatusResponseStatusEnum[keyof typeof GitWebhookStatusResponseStatusEnum];
|
|
10514
|
+
export declare const GitWebhookStatusResponseProviderEnum: {
|
|
10515
|
+
readonly GITHUB: "GITHUB";
|
|
10516
|
+
readonly GITLAB: "GITLAB";
|
|
10517
|
+
readonly BITBUCKET: "BITBUCKET";
|
|
10518
|
+
};
|
|
10519
|
+
export type GitWebhookStatusResponseProviderEnum = typeof GitWebhookStatusResponseProviderEnum[keyof typeof GitWebhookStatusResponseProviderEnum];
|
|
10482
10520
|
/**
|
|
10483
10521
|
*
|
|
10484
10522
|
* @export
|
|
@@ -39631,6 +39669,98 @@ export declare class ReferralRewardsApi extends BaseAPI {
|
|
|
39631
39669
|
*/
|
|
39632
39670
|
postAccountRewardClaim(rewardClaim?: RewardClaim, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
39633
39671
|
}
|
|
39672
|
+
/**
|
|
39673
|
+
* ServiceMainCallsApi - axios parameter creator
|
|
39674
|
+
* @export
|
|
39675
|
+
*/
|
|
39676
|
+
export declare const ServiceMainCallsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
39677
|
+
/**
|
|
39678
|
+
* Returns the webhook status for a git-based service. Checks if the Qovery webhook is correctly configured on the git provider (GitHub, GitLab, or Bitbucket).
|
|
39679
|
+
* @summary Get git webhook status for a service
|
|
39680
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
39681
|
+
* @param {*} [options] Override http request option.
|
|
39682
|
+
* @throws {RequiredError}
|
|
39683
|
+
*/
|
|
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>;
|
|
39693
|
+
};
|
|
39694
|
+
/**
|
|
39695
|
+
* ServiceMainCallsApi - functional programming interface
|
|
39696
|
+
* @export
|
|
39697
|
+
*/
|
|
39698
|
+
export declare const ServiceMainCallsApiFp: (configuration?: Configuration) => {
|
|
39699
|
+
/**
|
|
39700
|
+
* Returns the webhook status for a git-based service. Checks if the Qovery webhook is correctly configured on the git provider (GitHub, GitLab, or Bitbucket).
|
|
39701
|
+
* @summary Get git webhook status for a service
|
|
39702
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
39703
|
+
* @param {*} [options] Override http request option.
|
|
39704
|
+
* @throws {RequiredError}
|
|
39705
|
+
*/
|
|
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>>;
|
|
39715
|
+
};
|
|
39716
|
+
/**
|
|
39717
|
+
* ServiceMainCallsApi - factory interface
|
|
39718
|
+
* @export
|
|
39719
|
+
*/
|
|
39720
|
+
export declare const ServiceMainCallsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
39721
|
+
/**
|
|
39722
|
+
* Returns the webhook status for a git-based service. Checks if the Qovery webhook is correctly configured on the git provider (GitHub, GitLab, or Bitbucket).
|
|
39723
|
+
* @summary Get git webhook status for a service
|
|
39724
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
39725
|
+
* @param {*} [options] Override http request option.
|
|
39726
|
+
* @throws {RequiredError}
|
|
39727
|
+
*/
|
|
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>;
|
|
39737
|
+
};
|
|
39738
|
+
/**
|
|
39739
|
+
* ServiceMainCallsApi - object-oriented interface
|
|
39740
|
+
* @export
|
|
39741
|
+
* @class ServiceMainCallsApi
|
|
39742
|
+
* @extends {BaseAPI}
|
|
39743
|
+
*/
|
|
39744
|
+
export declare class ServiceMainCallsApi extends BaseAPI {
|
|
39745
|
+
/**
|
|
39746
|
+
* Returns the webhook status for a git-based service. Checks if the Qovery webhook is correctly configured on the git provider (GitHub, GitLab, or Bitbucket).
|
|
39747
|
+
* @summary Get git webhook status for a service
|
|
39748
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
39749
|
+
* @param {*} [options] Override http request option.
|
|
39750
|
+
* @throws {RequiredError}
|
|
39751
|
+
* @memberof ServiceMainCallsApi
|
|
39752
|
+
*/
|
|
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, {}>>;
|
|
39763
|
+
}
|
|
39634
39764
|
/**
|
|
39635
39765
|
* ServiceStatusApi - axios parameter creator
|
|
39636
39766
|
* @export
|
package/dist/esm/api.js
CHANGED
|
@@ -579,6 +579,17 @@ export const GitTokenAssociatedServiceType = {
|
|
|
579
579
|
HELM: 'HELM',
|
|
580
580
|
TERRAFORM: 'TERRAFORM'
|
|
581
581
|
};
|
|
582
|
+
export const GitWebhookStatusResponseStatusEnum = {
|
|
583
|
+
ACTIVE: 'ACTIVE',
|
|
584
|
+
NOT_CONFIGURED: 'NOT_CONFIGURED',
|
|
585
|
+
MISCONFIGURED: 'MISCONFIGURED',
|
|
586
|
+
UNABLE_TO_VERIFY: 'UNABLE_TO_VERIFY'
|
|
587
|
+
};
|
|
588
|
+
export const GitWebhookStatusResponseProviderEnum = {
|
|
589
|
+
GITHUB: 'GITHUB',
|
|
590
|
+
GITLAB: 'GITLAB',
|
|
591
|
+
BITBUCKET: 'BITBUCKET'
|
|
592
|
+
};
|
|
582
593
|
export const GkeInfrastructureOutputsKindEnum = {
|
|
583
594
|
GKE: 'GKE'
|
|
584
595
|
};
|
|
@@ -39550,6 +39561,182 @@ export class ReferralRewardsApi extends BaseAPI {
|
|
|
39550
39561
|
return ReferralRewardsApiFp(this.configuration).postAccountRewardClaim(rewardClaim, options).then((request) => request(this.axios, this.basePath));
|
|
39551
39562
|
}
|
|
39552
39563
|
}
|
|
39564
|
+
/**
|
|
39565
|
+
* ServiceMainCallsApi - axios parameter creator
|
|
39566
|
+
* @export
|
|
39567
|
+
*/
|
|
39568
|
+
export const ServiceMainCallsApiAxiosParamCreator = function (configuration) {
|
|
39569
|
+
return {
|
|
39570
|
+
/**
|
|
39571
|
+
* Returns the webhook status for a git-based service. Checks if the Qovery webhook is correctly configured on the git provider (GitHub, GitLab, or Bitbucket).
|
|
39572
|
+
* @summary Get git webhook status for a service
|
|
39573
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
39574
|
+
* @param {*} [options] Override http request option.
|
|
39575
|
+
* @throws {RequiredError}
|
|
39576
|
+
*/
|
|
39577
|
+
getServiceGitWebhookStatus: (serviceId_1, ...args_1) => __awaiter(this, [serviceId_1, ...args_1], void 0, function* (serviceId, options = {}) {
|
|
39578
|
+
// verify required parameter 'serviceId' is not null or undefined
|
|
39579
|
+
assertParamExists('getServiceGitWebhookStatus', 'serviceId', serviceId);
|
|
39580
|
+
const localVarPath = `/service/{serviceId}/gitWebhookStatus`
|
|
39581
|
+
.replace(`{${"serviceId"}}`, encodeURIComponent(String(serviceId)));
|
|
39582
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
39583
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
39584
|
+
let baseOptions;
|
|
39585
|
+
if (configuration) {
|
|
39586
|
+
baseOptions = configuration.baseOptions;
|
|
39587
|
+
}
|
|
39588
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
39589
|
+
const localVarHeaderParameter = {};
|
|
39590
|
+
const localVarQueryParameter = {};
|
|
39591
|
+
// authentication ApiKeyAuth required
|
|
39592
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
39593
|
+
// authentication bearerAuth required
|
|
39594
|
+
// http bearer authentication required
|
|
39595
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
39596
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
39597
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39598
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
39599
|
+
return {
|
|
39600
|
+
url: toPathString(localVarUrlObj),
|
|
39601
|
+
options: localVarRequestOptions,
|
|
39602
|
+
};
|
|
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
|
+
}),
|
|
39638
|
+
};
|
|
39639
|
+
};
|
|
39640
|
+
/**
|
|
39641
|
+
* ServiceMainCallsApi - functional programming interface
|
|
39642
|
+
* @export
|
|
39643
|
+
*/
|
|
39644
|
+
export const ServiceMainCallsApiFp = function (configuration) {
|
|
39645
|
+
const localVarAxiosParamCreator = ServiceMainCallsApiAxiosParamCreator(configuration);
|
|
39646
|
+
return {
|
|
39647
|
+
/**
|
|
39648
|
+
* Returns the webhook status for a git-based service. Checks if the Qovery webhook is correctly configured on the git provider (GitHub, GitLab, or Bitbucket).
|
|
39649
|
+
* @summary Get git webhook status for a service
|
|
39650
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
39651
|
+
* @param {*} [options] Override http request option.
|
|
39652
|
+
* @throws {RequiredError}
|
|
39653
|
+
*/
|
|
39654
|
+
getServiceGitWebhookStatus(serviceId, options) {
|
|
39655
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39656
|
+
var _a, _b, _c;
|
|
39657
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getServiceGitWebhookStatus(serviceId, options);
|
|
39658
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
39659
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ServiceMainCallsApi.getServiceGitWebhookStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
39660
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
39661
|
+
});
|
|
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
|
+
},
|
|
39679
|
+
};
|
|
39680
|
+
};
|
|
39681
|
+
/**
|
|
39682
|
+
* ServiceMainCallsApi - factory interface
|
|
39683
|
+
* @export
|
|
39684
|
+
*/
|
|
39685
|
+
export const ServiceMainCallsApiFactory = function (configuration, basePath, axios) {
|
|
39686
|
+
const localVarFp = ServiceMainCallsApiFp(configuration);
|
|
39687
|
+
return {
|
|
39688
|
+
/**
|
|
39689
|
+
* Returns the webhook status for a git-based service. Checks if the Qovery webhook is correctly configured on the git provider (GitHub, GitLab, or Bitbucket).
|
|
39690
|
+
* @summary Get git webhook status for a service
|
|
39691
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
39692
|
+
* @param {*} [options] Override http request option.
|
|
39693
|
+
* @throws {RequiredError}
|
|
39694
|
+
*/
|
|
39695
|
+
getServiceGitWebhookStatus(serviceId, options) {
|
|
39696
|
+
return localVarFp.getServiceGitWebhookStatus(serviceId, options).then((request) => request(axios, basePath));
|
|
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
|
+
},
|
|
39708
|
+
};
|
|
39709
|
+
};
|
|
39710
|
+
/**
|
|
39711
|
+
* ServiceMainCallsApi - object-oriented interface
|
|
39712
|
+
* @export
|
|
39713
|
+
* @class ServiceMainCallsApi
|
|
39714
|
+
* @extends {BaseAPI}
|
|
39715
|
+
*/
|
|
39716
|
+
export class ServiceMainCallsApi extends BaseAPI {
|
|
39717
|
+
/**
|
|
39718
|
+
* Returns the webhook status for a git-based service. Checks if the Qovery webhook is correctly configured on the git provider (GitHub, GitLab, or Bitbucket).
|
|
39719
|
+
* @summary Get git webhook status for a service
|
|
39720
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
39721
|
+
* @param {*} [options] Override http request option.
|
|
39722
|
+
* @throws {RequiredError}
|
|
39723
|
+
* @memberof ServiceMainCallsApi
|
|
39724
|
+
*/
|
|
39725
|
+
getServiceGitWebhookStatus(serviceId, options) {
|
|
39726
|
+
return ServiceMainCallsApiFp(this.configuration).getServiceGitWebhookStatus(serviceId, options).then((request) => request(this.axios, this.basePath));
|
|
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
|
+
}
|
|
39739
|
+
}
|
|
39553
39740
|
/**
|
|
39554
39741
|
* ServiceStatusApi - axios parameter creator
|
|
39555
39742
|
* @export
|