qovery-typescript-axios 1.1.260 → 1.1.261

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/dist/esm/api.js CHANGED
@@ -27835,6 +27835,43 @@ export class OrganizationEventApi extends BaseAPI {
27835
27835
  */
27836
27836
  export const OrganizationMainCallsApiAxiosParamCreator = function (configuration) {
27837
27837
  return {
27838
+ /**
27839
+ * Create a new git token to be used as a git provider by a service
27840
+ * @summary Create a git token
27841
+ * @param {string} organizationId Organization ID
27842
+ * @param {GitTokenRequest} [gitTokenRequest]
27843
+ * @param {*} [options] Override http request option.
27844
+ * @throws {RequiredError}
27845
+ */
27846
+ createGitToken: (organizationId, gitTokenRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
27847
+ // verify required parameter 'organizationId' is not null or undefined
27848
+ assertParamExists('createGitToken', 'organizationId', organizationId);
27849
+ const localVarPath = `/organization/{organizationId}/gitToken`
27850
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
27851
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27852
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27853
+ let baseOptions;
27854
+ if (configuration) {
27855
+ baseOptions = configuration.baseOptions;
27856
+ }
27857
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
27858
+ const localVarHeaderParameter = {};
27859
+ const localVarQueryParameter = {};
27860
+ // authentication ApiKeyAuth required
27861
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
27862
+ // authentication bearerAuth required
27863
+ // http bearer authentication required
27864
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
27865
+ localVarHeaderParameter['Content-Type'] = 'application/json';
27866
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27867
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27868
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
27869
+ localVarRequestOptions.data = serializeDataIfNeeded(gitTokenRequest, localVarRequestOptions, configuration);
27870
+ return {
27871
+ url: toPathString(localVarUrlObj),
27872
+ options: localVarRequestOptions,
27873
+ };
27874
+ }),
27838
27875
  /**
27839
27876
  *
27840
27877
  * @summary Create an organization
@@ -27868,6 +27905,44 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
27868
27905
  options: localVarRequestOptions,
27869
27906
  };
27870
27907
  }),
27908
+ /**
27909
+ *
27910
+ * @summary Delete a git token
27911
+ * @param {string} organizationId Organization ID
27912
+ * @param {string} gitTokenId Git Token ID
27913
+ * @param {*} [options] Override http request option.
27914
+ * @throws {RequiredError}
27915
+ */
27916
+ deleteGitToken: (organizationId, gitTokenId, options = {}) => __awaiter(this, void 0, void 0, function* () {
27917
+ // verify required parameter 'organizationId' is not null or undefined
27918
+ assertParamExists('deleteGitToken', 'organizationId', organizationId);
27919
+ // verify required parameter 'gitTokenId' is not null or undefined
27920
+ assertParamExists('deleteGitToken', 'gitTokenId', gitTokenId);
27921
+ const localVarPath = `/organization/{organizationId}/gitToken/{gitTokenId}`
27922
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
27923
+ .replace(`{${"gitTokenId"}}`, encodeURIComponent(String(gitTokenId)));
27924
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27925
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27926
+ let baseOptions;
27927
+ if (configuration) {
27928
+ baseOptions = configuration.baseOptions;
27929
+ }
27930
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
27931
+ const localVarHeaderParameter = {};
27932
+ const localVarQueryParameter = {};
27933
+ // authentication ApiKeyAuth required
27934
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
27935
+ // authentication bearerAuth required
27936
+ // http bearer authentication required
27937
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
27938
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27939
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27940
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
27941
+ return {
27942
+ url: toPathString(localVarUrlObj),
27943
+ options: localVarRequestOptions,
27944
+ };
27945
+ }),
27871
27946
  /**
27872
27947
  * To delete an organization you must have the admin permission
27873
27948
  * @summary Delete an organization
@@ -27902,6 +27977,47 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
27902
27977
  options: localVarRequestOptions,
27903
27978
  };
27904
27979
  }),
27980
+ /**
27981
+ *
27982
+ * @summary Edit a git token
27983
+ * @param {string} organizationId Organization ID
27984
+ * @param {string} gitTokenId Git Token ID
27985
+ * @param {GitTokenRequest} [gitTokenRequest]
27986
+ * @param {*} [options] Override http request option.
27987
+ * @throws {RequiredError}
27988
+ */
27989
+ editGitToken: (organizationId, gitTokenId, gitTokenRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
27990
+ // verify required parameter 'organizationId' is not null or undefined
27991
+ assertParamExists('editGitToken', 'organizationId', organizationId);
27992
+ // verify required parameter 'gitTokenId' is not null or undefined
27993
+ assertParamExists('editGitToken', 'gitTokenId', gitTokenId);
27994
+ const localVarPath = `/organization/{organizationId}/gitToken/{gitTokenId}`
27995
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
27996
+ .replace(`{${"gitTokenId"}}`, encodeURIComponent(String(gitTokenId)));
27997
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27998
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27999
+ let baseOptions;
28000
+ if (configuration) {
28001
+ baseOptions = configuration.baseOptions;
28002
+ }
28003
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
28004
+ const localVarHeaderParameter = {};
28005
+ const localVarQueryParameter = {};
28006
+ // authentication ApiKeyAuth required
28007
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
28008
+ // authentication bearerAuth required
28009
+ // http bearer authentication required
28010
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
28011
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28012
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28013
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28014
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28015
+ localVarRequestOptions.data = serializeDataIfNeeded(gitTokenRequest, localVarRequestOptions, configuration);
28016
+ return {
28017
+ url: toPathString(localVarUrlObj),
28018
+ options: localVarRequestOptions,
28019
+ };
28020
+ }),
27905
28021
  /**
27906
28022
  * To edit an organization you must have the admin permission
27907
28023
  * @summary Edit an organization
@@ -28080,6 +28196,20 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
28080
28196
  export const OrganizationMainCallsApiFp = function (configuration) {
28081
28197
  const localVarAxiosParamCreator = OrganizationMainCallsApiAxiosParamCreator(configuration);
28082
28198
  return {
28199
+ /**
28200
+ * Create a new git token to be used as a git provider by a service
28201
+ * @summary Create a git token
28202
+ * @param {string} organizationId Organization ID
28203
+ * @param {GitTokenRequest} [gitTokenRequest]
28204
+ * @param {*} [options] Override http request option.
28205
+ * @throws {RequiredError}
28206
+ */
28207
+ createGitToken(organizationId, gitTokenRequest, options) {
28208
+ return __awaiter(this, void 0, void 0, function* () {
28209
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createGitToken(organizationId, gitTokenRequest, options);
28210
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
28211
+ });
28212
+ },
28083
28213
  /**
28084
28214
  *
28085
28215
  * @summary Create an organization
@@ -28093,6 +28223,20 @@ export const OrganizationMainCallsApiFp = function (configuration) {
28093
28223
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
28094
28224
  });
28095
28225
  },
28226
+ /**
28227
+ *
28228
+ * @summary Delete a git token
28229
+ * @param {string} organizationId Organization ID
28230
+ * @param {string} gitTokenId Git Token ID
28231
+ * @param {*} [options] Override http request option.
28232
+ * @throws {RequiredError}
28233
+ */
28234
+ deleteGitToken(organizationId, gitTokenId, options) {
28235
+ return __awaiter(this, void 0, void 0, function* () {
28236
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteGitToken(organizationId, gitTokenId, options);
28237
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
28238
+ });
28239
+ },
28096
28240
  /**
28097
28241
  * To delete an organization you must have the admin permission
28098
28242
  * @summary Delete an organization
@@ -28106,6 +28250,21 @@ export const OrganizationMainCallsApiFp = function (configuration) {
28106
28250
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
28107
28251
  });
28108
28252
  },
28253
+ /**
28254
+ *
28255
+ * @summary Edit a git token
28256
+ * @param {string} organizationId Organization ID
28257
+ * @param {string} gitTokenId Git Token ID
28258
+ * @param {GitTokenRequest} [gitTokenRequest]
28259
+ * @param {*} [options] Override http request option.
28260
+ * @throws {RequiredError}
28261
+ */
28262
+ editGitToken(organizationId, gitTokenId, gitTokenRequest, options) {
28263
+ return __awaiter(this, void 0, void 0, function* () {
28264
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.editGitToken(organizationId, gitTokenId, gitTokenRequest, options);
28265
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
28266
+ });
28267
+ },
28109
28268
  /**
28110
28269
  * To edit an organization you must have the admin permission
28111
28270
  * @summary Edit an organization
@@ -28180,6 +28339,17 @@ export const OrganizationMainCallsApiFp = function (configuration) {
28180
28339
  export const OrganizationMainCallsApiFactory = function (configuration, basePath, axios) {
28181
28340
  const localVarFp = OrganizationMainCallsApiFp(configuration);
28182
28341
  return {
28342
+ /**
28343
+ * Create a new git token to be used as a git provider by a service
28344
+ * @summary Create a git token
28345
+ * @param {string} organizationId Organization ID
28346
+ * @param {GitTokenRequest} [gitTokenRequest]
28347
+ * @param {*} [options] Override http request option.
28348
+ * @throws {RequiredError}
28349
+ */
28350
+ createGitToken(organizationId, gitTokenRequest, options) {
28351
+ return localVarFp.createGitToken(organizationId, gitTokenRequest, options).then((request) => request(axios, basePath));
28352
+ },
28183
28353
  /**
28184
28354
  *
28185
28355
  * @summary Create an organization
@@ -28190,6 +28360,17 @@ export const OrganizationMainCallsApiFactory = function (configuration, basePath
28190
28360
  createOrganization(organizationRequest, options) {
28191
28361
  return localVarFp.createOrganization(organizationRequest, options).then((request) => request(axios, basePath));
28192
28362
  },
28363
+ /**
28364
+ *
28365
+ * @summary Delete a git token
28366
+ * @param {string} organizationId Organization ID
28367
+ * @param {string} gitTokenId Git Token ID
28368
+ * @param {*} [options] Override http request option.
28369
+ * @throws {RequiredError}
28370
+ */
28371
+ deleteGitToken(organizationId, gitTokenId, options) {
28372
+ return localVarFp.deleteGitToken(organizationId, gitTokenId, options).then((request) => request(axios, basePath));
28373
+ },
28193
28374
  /**
28194
28375
  * To delete an organization you must have the admin permission
28195
28376
  * @summary Delete an organization
@@ -28200,6 +28381,18 @@ export const OrganizationMainCallsApiFactory = function (configuration, basePath
28200
28381
  deleteOrganization(organizationId, options) {
28201
28382
  return localVarFp.deleteOrganization(organizationId, options).then((request) => request(axios, basePath));
28202
28383
  },
28384
+ /**
28385
+ *
28386
+ * @summary Edit a git token
28387
+ * @param {string} organizationId Organization ID
28388
+ * @param {string} gitTokenId Git Token ID
28389
+ * @param {GitTokenRequest} [gitTokenRequest]
28390
+ * @param {*} [options] Override http request option.
28391
+ * @throws {RequiredError}
28392
+ */
28393
+ editGitToken(organizationId, gitTokenId, gitTokenRequest, options) {
28394
+ return localVarFp.editGitToken(organizationId, gitTokenId, gitTokenRequest, options).then((request) => request(axios, basePath));
28395
+ },
28203
28396
  /**
28204
28397
  * To edit an organization you must have the admin permission
28205
28398
  * @summary Edit an organization
@@ -28259,6 +28452,18 @@ export const OrganizationMainCallsApiFactory = function (configuration, basePath
28259
28452
  * @extends {BaseAPI}
28260
28453
  */
28261
28454
  export class OrganizationMainCallsApi extends BaseAPI {
28455
+ /**
28456
+ * Create a new git token to be used as a git provider by a service
28457
+ * @summary Create a git token
28458
+ * @param {string} organizationId Organization ID
28459
+ * @param {GitTokenRequest} [gitTokenRequest]
28460
+ * @param {*} [options] Override http request option.
28461
+ * @throws {RequiredError}
28462
+ * @memberof OrganizationMainCallsApi
28463
+ */
28464
+ createGitToken(organizationId, gitTokenRequest, options) {
28465
+ return OrganizationMainCallsApiFp(this.configuration).createGitToken(organizationId, gitTokenRequest, options).then((request) => request(this.axios, this.basePath));
28466
+ }
28262
28467
  /**
28263
28468
  *
28264
28469
  * @summary Create an organization
@@ -28270,6 +28475,18 @@ export class OrganizationMainCallsApi extends BaseAPI {
28270
28475
  createOrganization(organizationRequest, options) {
28271
28476
  return OrganizationMainCallsApiFp(this.configuration).createOrganization(organizationRequest, options).then((request) => request(this.axios, this.basePath));
28272
28477
  }
28478
+ /**
28479
+ *
28480
+ * @summary Delete a git token
28481
+ * @param {string} organizationId Organization ID
28482
+ * @param {string} gitTokenId Git Token ID
28483
+ * @param {*} [options] Override http request option.
28484
+ * @throws {RequiredError}
28485
+ * @memberof OrganizationMainCallsApi
28486
+ */
28487
+ deleteGitToken(organizationId, gitTokenId, options) {
28488
+ return OrganizationMainCallsApiFp(this.configuration).deleteGitToken(organizationId, gitTokenId, options).then((request) => request(this.axios, this.basePath));
28489
+ }
28273
28490
  /**
28274
28491
  * To delete an organization you must have the admin permission
28275
28492
  * @summary Delete an organization
@@ -28281,6 +28498,19 @@ export class OrganizationMainCallsApi extends BaseAPI {
28281
28498
  deleteOrganization(organizationId, options) {
28282
28499
  return OrganizationMainCallsApiFp(this.configuration).deleteOrganization(organizationId, options).then((request) => request(this.axios, this.basePath));
28283
28500
  }
28501
+ /**
28502
+ *
28503
+ * @summary Edit a git token
28504
+ * @param {string} organizationId Organization ID
28505
+ * @param {string} gitTokenId Git Token ID
28506
+ * @param {GitTokenRequest} [gitTokenRequest]
28507
+ * @param {*} [options] Override http request option.
28508
+ * @throws {RequiredError}
28509
+ * @memberof OrganizationMainCallsApi
28510
+ */
28511
+ editGitToken(organizationId, gitTokenId, gitTokenRequest, options) {
28512
+ return OrganizationMainCallsApiFp(this.configuration).editGitToken(organizationId, gitTokenId, gitTokenRequest, options).then((request) => request(this.axios, this.basePath));
28513
+ }
28284
28514
  /**
28285
28515
  * To edit an organization you must have the admin permission
28286
28516
  * @summary Edit an organization
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-typescript-axios",
3
- "version": "v1.1.260",
3
+ "version": "v1.1.261",
4
4
  "description": "OpenAPI client for qovery-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {