Skip to content

Commit bcb0a0f

Browse files
author
qovery
committed
See Qovery/qovery-openapi-spec@974b64e from refs/heads/main
1 parent adb8042 commit bcb0a0f

File tree

2 files changed

+155
-2
lines changed

2 files changed

+155
-2
lines changed

api.ts

Lines changed: 154 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20085,6 +20085,76 @@ export interface VersionResponseList {
2008520085
*/
2008620086
'results'?: Array<Version>;
2008720087
}
20088+
/**
20089+
*
20090+
* @export
20091+
* @interface WebhookEventResponse
20092+
*/
20093+
export interface WebhookEventResponse {
20094+
/**
20095+
* Unique identifier
20096+
* @type {string}
20097+
* @memberof WebhookEventResponse
20098+
*/
20099+
'id': string;
20100+
/**
20101+
* Timestamp when the webhook event was created
20102+
* @type {string}
20103+
* @memberof WebhookEventResponse
20104+
*/
20105+
'createdAt': string;
20106+
/**
20107+
*
20108+
* @type {OrganizationWebhookKindEnum}
20109+
* @memberof WebhookEventResponse
20110+
*/
20111+
'kind': OrganizationWebhookKindEnum;
20112+
/**
20113+
*
20114+
* @type {OrganizationWebhookEventEnum}
20115+
* @memberof WebhookEventResponse
20116+
*/
20117+
'matchedEvent': OrganizationWebhookEventEnum;
20118+
/**
20119+
* The webhook target URL that was invoked
20120+
* @type {string}
20121+
* @memberof WebhookEventResponse
20122+
*/
20123+
'targetUrlUsed': string;
20124+
/**
20125+
* The request payload sent to the webhook
20126+
* @type {{ [key: string]: any; }}
20127+
* @memberof WebhookEventResponse
20128+
*/
20129+
'request': { [key: string]: any; };
20130+
/**
20131+
* HTTP status code returned by the webhook target
20132+
* @type {number}
20133+
* @memberof WebhookEventResponse
20134+
*/
20135+
'targetResponseStatusCode': number;
20136+
/**
20137+
* Response body from the webhook target
20138+
* @type {string}
20139+
* @memberof WebhookEventResponse
20140+
*/
20141+
'targetResponseBody'?: string | null;
20142+
}
20143+
20144+
20145+
/**
20146+
*
20147+
* @export
20148+
* @interface WebhookEventResponseList
20149+
*/
20150+
export interface WebhookEventResponseList {
20151+
/**
20152+
*
20153+
* @type {Array<WebhookEventResponse>}
20154+
* @memberof WebhookEventResponseList
20155+
*/
20156+
'results'?: Array<WebhookEventResponse>;
20157+
}
2008820158
/**
2008920159
*
2009020160
* @export
@@ -58257,7 +58327,7 @@ export const OrganizationWebhookApiAxiosParamCreator = function (configuration?:
5825758327
createOrganizationWebhook: async (organizationId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5825858328
// verify required parameter 'organizationId' is not null or undefined
5825958329
assertParamExists('createOrganizationWebhook', 'organizationId', organizationId)
58260-
const localVarPath = `/organization/{organizationId}/webhook`
58330+
const localVarPath = `/organization/{organizationId}/webhook/{webhookId}/event`
5826158331
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
5826258332
// use dummy base URL string because the URL constructor only accepts absolute URLs.
5826358333
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -58462,6 +58532,51 @@ export const OrganizationWebhookApiAxiosParamCreator = function (configuration?:
5846258532

5846358533

5846458534

58535+
setSearchParams(localVarUrlObj, localVarQueryParameter);
58536+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
58537+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
58538+
58539+
return {
58540+
url: toPathString(localVarUrlObj),
58541+
options: localVarRequestOptions,
58542+
};
58543+
},
58544+
/**
58545+
* List events of a webhooks
58546+
* @summary List events of a webhook
58547+
* @param {string} organizationId Organization ID
58548+
* @param {string} webhookId Webhook ID
58549+
* @param {*} [options] Override http request option.
58550+
* @throws {RequiredError}
58551+
*/
58552+
listWebhookEvent: async (organizationId: string, webhookId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
58553+
// verify required parameter 'organizationId' is not null or undefined
58554+
assertParamExists('listWebhookEvent', 'organizationId', organizationId)
58555+
// verify required parameter 'webhookId' is not null or undefined
58556+
assertParamExists('listWebhookEvent', 'webhookId', webhookId)
58557+
const localVarPath = `/organization/{organizationId}/webhook/{webhookId}/event`
58558+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
58559+
.replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
58560+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
58561+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
58562+
let baseOptions;
58563+
if (configuration) {
58564+
baseOptions = configuration.baseOptions;
58565+
}
58566+
58567+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
58568+
const localVarHeaderParameter = {} as any;
58569+
const localVarQueryParameter = {} as any;
58570+
58571+
// authentication ApiKeyAuth required
58572+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
58573+
58574+
// authentication bearerAuth required
58575+
// http bearer authentication required
58576+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
58577+
58578+
58579+
5846558580
setSearchParams(localVarUrlObj, localVarQueryParameter);
5846658581
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5846758582
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -58551,6 +58666,20 @@ export const OrganizationWebhookApiFp = function(configuration?: Configuration)
5855158666
const localVarOperationServerBasePath = operationServerMap['OrganizationWebhookApi.listOrganizationWebHooks']?.[localVarOperationServerIndex]?.url;
5855258667
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5855358668
},
58669+
/**
58670+
* List events of a webhooks
58671+
* @summary List events of a webhook
58672+
* @param {string} organizationId Organization ID
58673+
* @param {string} webhookId Webhook ID
58674+
* @param {*} [options] Override http request option.
58675+
* @throws {RequiredError}
58676+
*/
58677+
async listWebhookEvent(organizationId: string, webhookId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebhookEventResponseList>> {
58678+
const localVarAxiosArgs = await localVarAxiosParamCreator.listWebhookEvent(organizationId, webhookId, options);
58679+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
58680+
const localVarOperationServerBasePath = operationServerMap['OrganizationWebhookApi.listWebhookEvent']?.[localVarOperationServerIndex]?.url;
58681+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58682+
},
5855458683
}
5855558684
};
5855658685

@@ -58616,6 +58745,17 @@ export const OrganizationWebhookApiFactory = function (configuration?: Configura
5861658745
listOrganizationWebHooks(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationWebhookResponseList> {
5861758746
return localVarFp.listOrganizationWebHooks(organizationId, options).then((request) => request(axios, basePath));
5861858747
},
58748+
/**
58749+
* List events of a webhooks
58750+
* @summary List events of a webhook
58751+
* @param {string} organizationId Organization ID
58752+
* @param {string} webhookId Webhook ID
58753+
* @param {*} [options] Override http request option.
58754+
* @throws {RequiredError}
58755+
*/
58756+
listWebhookEvent(organizationId: string, webhookId: string, options?: RawAxiosRequestConfig): AxiosPromise<WebhookEventResponseList> {
58757+
return localVarFp.listWebhookEvent(organizationId, webhookId, options).then((request) => request(axios, basePath));
58758+
},
5861958759
};
5862058760
};
5862158761

@@ -58690,6 +58830,19 @@ export class OrganizationWebhookApi extends BaseAPI {
5869058830
public listOrganizationWebHooks(organizationId: string, options?: RawAxiosRequestConfig) {
5869158831
return OrganizationWebhookApiFp(this.configuration).listOrganizationWebHooks(organizationId, options).then((request) => request(this.axios, this.basePath));
5869258832
}
58833+
58834+
/**
58835+
* List events of a webhooks
58836+
* @summary List events of a webhook
58837+
* @param {string} organizationId Organization ID
58838+
* @param {string} webhookId Webhook ID
58839+
* @param {*} [options] Override http request option.
58840+
* @throws {RequiredError}
58841+
* @memberof OrganizationWebhookApi
58842+
*/
58843+
public listWebhookEvent(organizationId: string, webhookId: string, options?: RawAxiosRequestConfig) {
58844+
return OrganizationWebhookApiFp(this.configuration).listWebhookEvent(organizationId, webhookId, options).then((request) => request(this.axios, this.basePath));
58845+
}
5869358846
}
5869458847

5869558848

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "qovery-typescript-axios",
3-
"version": "v1.1.772",
3+
"version": "1.0.4",
44
"description": "OpenAPI client for qovery-typescript-axios",
55
"author": "OpenAPI-Generator Contributors",
66
"repository": {

0 commit comments

Comments
 (0)