Skip to content

Commit 5acc723

Browse files
author
qovery
committed
See Qovery/qovery-openapi-spec@3c28967 from refs/heads/main
1 parent 84452b4 commit 5acc723

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

api.ts

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58320,15 +58320,19 @@ export const OrganizationWebhookApiAxiosParamCreator = function (configuration?:
5832058320
* Create an organization webhook.
5832158321
* @summary Create an organization webhook
5832258322
* @param {string} organizationId Organization ID
58323+
* @param {string} webhookId Webhook ID
5832358324
* @param {OrganizationWebhookCreateRequest} [organizationWebhookCreateRequest]
5832458325
* @param {*} [options] Override http request option.
5832558326
* @throws {RequiredError}
5832658327
*/
58327-
createOrganizationWebhook: async (organizationId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
58328+
createOrganizationWebhook: async (organizationId: string, webhookId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5832858329
// verify required parameter 'organizationId' is not null or undefined
5832958330
assertParamExists('createOrganizationWebhook', 'organizationId', organizationId)
58331+
// verify required parameter 'webhookId' is not null or undefined
58332+
assertParamExists('createOrganizationWebhook', 'webhookId', webhookId)
5833058333
const localVarPath = `/organization/{organizationId}/webhook/{webhookId}/event`
58331-
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
58334+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
58335+
.replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
5833258336
// use dummy base URL string because the URL constructor only accepts absolute URLs.
5833358337
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5833458338
let baseOptions;
@@ -58600,12 +58604,13 @@ export const OrganizationWebhookApiFp = function(configuration?: Configuration)
5860058604
* Create an organization webhook.
5860158605
* @summary Create an organization webhook
5860258606
* @param {string} organizationId Organization ID
58607+
* @param {string} webhookId Webhook ID
5860358608
* @param {OrganizationWebhookCreateRequest} [organizationWebhookCreateRequest]
5860458609
* @param {*} [options] Override http request option.
5860558610
* @throws {RequiredError}
5860658611
*/
58607-
async createOrganizationWebhook(organizationId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationWebhookCreateResponse>> {
58608-
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrganizationWebhook(organizationId, organizationWebhookCreateRequest, options);
58612+
async createOrganizationWebhook(organizationId: string, webhookId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationWebhookCreateResponse>> {
58613+
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrganizationWebhook(organizationId, webhookId, organizationWebhookCreateRequest, options);
5860958614
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5861058615
const localVarOperationServerBasePath = operationServerMap['OrganizationWebhookApi.createOrganizationWebhook']?.[localVarOperationServerIndex]?.url;
5861158616
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -58694,12 +58699,13 @@ export const OrganizationWebhookApiFactory = function (configuration?: Configura
5869458699
* Create an organization webhook.
5869558700
* @summary Create an organization webhook
5869658701
* @param {string} organizationId Organization ID
58702+
* @param {string} webhookId Webhook ID
5869758703
* @param {OrganizationWebhookCreateRequest} [organizationWebhookCreateRequest]
5869858704
* @param {*} [options] Override http request option.
5869958705
* @throws {RequiredError}
5870058706
*/
58701-
createOrganizationWebhook(organizationId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationWebhookCreateResponse> {
58702-
return localVarFp.createOrganizationWebhook(organizationId, organizationWebhookCreateRequest, options).then((request) => request(axios, basePath));
58707+
createOrganizationWebhook(organizationId: string, webhookId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationWebhookCreateResponse> {
58708+
return localVarFp.createOrganizationWebhook(organizationId, webhookId, organizationWebhookCreateRequest, options).then((request) => request(axios, basePath));
5870358709
},
5870458710
/**
5870558711
* Delete organization webhook
@@ -58770,13 +58776,14 @@ export class OrganizationWebhookApi extends BaseAPI {
5877058776
* Create an organization webhook.
5877158777
* @summary Create an organization webhook
5877258778
* @param {string} organizationId Organization ID
58779+
* @param {string} webhookId Webhook ID
5877358780
* @param {OrganizationWebhookCreateRequest} [organizationWebhookCreateRequest]
5877458781
* @param {*} [options] Override http request option.
5877558782
* @throws {RequiredError}
5877658783
* @memberof OrganizationWebhookApi
5877758784
*/
58778-
public createOrganizationWebhook(organizationId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options?: RawAxiosRequestConfig) {
58779-
return OrganizationWebhookApiFp(this.configuration).createOrganizationWebhook(organizationId, organizationWebhookCreateRequest, options).then((request) => request(this.axios, this.basePath));
58785+
public createOrganizationWebhook(organizationId: string, webhookId: string, organizationWebhookCreateRequest?: OrganizationWebhookCreateRequest, options?: RawAxiosRequestConfig) {
58786+
return OrganizationWebhookApiFp(this.configuration).createOrganizationWebhook(organizationId, webhookId, organizationWebhookCreateRequest, options).then((request) => request(this.axios, this.basePath));
5878058787
}
5878158788

5878258789
/**

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.774",
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)