qovery-ws-typescript-axios 0.1.87 → 0.1.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts CHANGED
@@ -800,6 +800,115 @@ export class DeploymentApi extends BaseAPI {
800
800
 
801
801
 
802
802
 
803
+ /**
804
+ * InfraStatusApi - axios parameter creator
805
+ * @export
806
+ */
807
+ export const InfraStatusApiAxiosParamCreator = function (configuration?: Configuration) {
808
+ return {
809
+ /**
810
+ *
811
+ * @param {string} organization
812
+ * @param {string} cluster
813
+ * @param {*} [options] Override http request option.
814
+ * @throws {RequiredError}
815
+ */
816
+ handleInfraStatusRequest: async (organization: string, cluster: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
817
+ // verify required parameter 'organization' is not null or undefined
818
+ assertParamExists('handleInfraStatusRequest', 'organization', organization)
819
+ // verify required parameter 'cluster' is not null or undefined
820
+ assertParamExists('handleInfraStatusRequest', 'cluster', cluster)
821
+ const localVarPath = `/infra/status`
822
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
823
+ .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)));
824
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
825
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
826
+ let baseOptions;
827
+ if (configuration) {
828
+ baseOptions = configuration.baseOptions;
829
+ }
830
+
831
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
832
+ const localVarHeaderParameter = {} as any;
833
+ const localVarQueryParameter = {} as any;
834
+
835
+
836
+
837
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
838
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
839
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
840
+
841
+ return {
842
+ url: toPathString(localVarUrlObj),
843
+ options: localVarRequestOptions,
844
+ };
845
+ },
846
+ }
847
+ };
848
+
849
+ /**
850
+ * InfraStatusApi - functional programming interface
851
+ * @export
852
+ */
853
+ export const InfraStatusApiFp = function(configuration?: Configuration) {
854
+ const localVarAxiosParamCreator = InfraStatusApiAxiosParamCreator(configuration)
855
+ return {
856
+ /**
857
+ *
858
+ * @param {string} organization
859
+ * @param {string} cluster
860
+ * @param {*} [options] Override http request option.
861
+ * @throws {RequiredError}
862
+ */
863
+ async handleInfraStatusRequest(organization: string, cluster: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
864
+ const localVarAxiosArgs = await localVarAxiosParamCreator.handleInfraStatusRequest(organization, cluster, options);
865
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
866
+ },
867
+ }
868
+ };
869
+
870
+ /**
871
+ * InfraStatusApi - factory interface
872
+ * @export
873
+ */
874
+ export const InfraStatusApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
875
+ const localVarFp = InfraStatusApiFp(configuration)
876
+ return {
877
+ /**
878
+ *
879
+ * @param {string} organization
880
+ * @param {string} cluster
881
+ * @param {*} [options] Override http request option.
882
+ * @throws {RequiredError}
883
+ */
884
+ handleInfraStatusRequest(organization: string, cluster: string, options?: any): AxiosPromise<object> {
885
+ return localVarFp.handleInfraStatusRequest(organization, cluster, options).then((request) => request(axios, basePath));
886
+ },
887
+ };
888
+ };
889
+
890
+ /**
891
+ * InfraStatusApi - object-oriented interface
892
+ * @export
893
+ * @class InfraStatusApi
894
+ * @extends {BaseAPI}
895
+ */
896
+ export class InfraStatusApi extends BaseAPI {
897
+ /**
898
+ *
899
+ * @param {string} organization
900
+ * @param {string} cluster
901
+ * @param {*} [options] Override http request option.
902
+ * @throws {RequiredError}
903
+ * @memberof InfraStatusApi
904
+ */
905
+ public handleInfraStatusRequest(organization: string, cluster: string, options?: AxiosRequestConfig) {
906
+ return InfraStatusApiFp(this.configuration).handleInfraStatusRequest(organization, cluster, options).then((request) => request(this.axios, this.basePath));
907
+ }
908
+ }
909
+
910
+
911
+
803
912
  /**
804
913
  * LogsApi - axios parameter creator
805
914
  * @export
package/dist/api.d.ts CHANGED
@@ -654,6 +654,65 @@ export declare class DeploymentApi extends BaseAPI {
654
654
  */
655
655
  handleDeploymentStatusRequest(organization: string, cluster: string | null, project: string, environment: string | null, version: string | null, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
656
656
  }
657
+ /**
658
+ * InfraStatusApi - axios parameter creator
659
+ * @export
660
+ */
661
+ export declare const InfraStatusApiAxiosParamCreator: (configuration?: Configuration) => {
662
+ /**
663
+ *
664
+ * @param {string} organization
665
+ * @param {string} cluster
666
+ * @param {*} [options] Override http request option.
667
+ * @throws {RequiredError}
668
+ */
669
+ handleInfraStatusRequest: (organization: string, cluster: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
670
+ };
671
+ /**
672
+ * InfraStatusApi - functional programming interface
673
+ * @export
674
+ */
675
+ export declare const InfraStatusApiFp: (configuration?: Configuration) => {
676
+ /**
677
+ *
678
+ * @param {string} organization
679
+ * @param {string} cluster
680
+ * @param {*} [options] Override http request option.
681
+ * @throws {RequiredError}
682
+ */
683
+ handleInfraStatusRequest(organization: string, cluster: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
684
+ };
685
+ /**
686
+ * InfraStatusApi - factory interface
687
+ * @export
688
+ */
689
+ export declare const InfraStatusApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
690
+ /**
691
+ *
692
+ * @param {string} organization
693
+ * @param {string} cluster
694
+ * @param {*} [options] Override http request option.
695
+ * @throws {RequiredError}
696
+ */
697
+ handleInfraStatusRequest(organization: string, cluster: string, options?: any): AxiosPromise<object>;
698
+ };
699
+ /**
700
+ * InfraStatusApi - object-oriented interface
701
+ * @export
702
+ * @class InfraStatusApi
703
+ * @extends {BaseAPI}
704
+ */
705
+ export declare class InfraStatusApi extends BaseAPI {
706
+ /**
707
+ *
708
+ * @param {string} organization
709
+ * @param {string} cluster
710
+ * @param {*} [options] Override http request option.
711
+ * @throws {RequiredError}
712
+ * @memberof InfraStatusApi
713
+ */
714
+ handleInfraStatusRequest(organization: string, cluster: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
715
+ }
657
716
  /**
658
717
  * LogsApi - axios parameter creator
659
718
  * @export
package/dist/api.js CHANGED
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ServiceStatusApi = exports.ServiceStatusApiFactory = exports.ServiceStatusApiFp = exports.ServiceStatusApiAxiosParamCreator = exports.ServiceMetricsApi = exports.ServiceMetricsApiFactory = exports.ServiceMetricsApiFp = exports.ServiceMetricsApiAxiosParamCreator = exports.LogsApi = exports.LogsApiFactory = exports.LogsApiFp = exports.LogsApiAxiosParamCreator = exports.DeploymentApi = exports.DeploymentApiFactory = exports.DeploymentApiFp = exports.DeploymentApiAxiosParamCreator = exports.UnitDto = exports.ServiceType = exports.ServiceStateDto = exports.ResourceStatusDto = void 0;
25
+ exports.ServiceStatusApi = exports.ServiceStatusApiFactory = exports.ServiceStatusApiFp = exports.ServiceStatusApiAxiosParamCreator = exports.ServiceMetricsApi = exports.ServiceMetricsApiFactory = exports.ServiceMetricsApiFp = exports.ServiceMetricsApiAxiosParamCreator = exports.LogsApi = exports.LogsApiFactory = exports.LogsApiFp = exports.LogsApiAxiosParamCreator = exports.InfraStatusApi = exports.InfraStatusApiFactory = exports.InfraStatusApiFp = exports.InfraStatusApiAxiosParamCreator = exports.DeploymentApi = exports.DeploymentApiFactory = exports.DeploymentApiFp = exports.DeploymentApiAxiosParamCreator = exports.UnitDto = exports.ServiceType = exports.ServiceStateDto = exports.ResourceStatusDto = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -287,6 +287,110 @@ class DeploymentApi extends base_1.BaseAPI {
287
287
  }
288
288
  }
289
289
  exports.DeploymentApi = DeploymentApi;
290
+ /**
291
+ * InfraStatusApi - axios parameter creator
292
+ * @export
293
+ */
294
+ const InfraStatusApiAxiosParamCreator = function (configuration) {
295
+ return {
296
+ /**
297
+ *
298
+ * @param {string} organization
299
+ * @param {string} cluster
300
+ * @param {*} [options] Override http request option.
301
+ * @throws {RequiredError}
302
+ */
303
+ handleInfraStatusRequest: (organization, cluster, options = {}) => __awaiter(this, void 0, void 0, function* () {
304
+ // verify required parameter 'organization' is not null or undefined
305
+ (0, common_1.assertParamExists)('handleInfraStatusRequest', 'organization', organization);
306
+ // verify required parameter 'cluster' is not null or undefined
307
+ (0, common_1.assertParamExists)('handleInfraStatusRequest', 'cluster', cluster);
308
+ const localVarPath = `/infra/status`
309
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
310
+ .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)));
311
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
312
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
313
+ let baseOptions;
314
+ if (configuration) {
315
+ baseOptions = configuration.baseOptions;
316
+ }
317
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
318
+ const localVarHeaderParameter = {};
319
+ const localVarQueryParameter = {};
320
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
321
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
322
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
323
+ return {
324
+ url: (0, common_1.toPathString)(localVarUrlObj),
325
+ options: localVarRequestOptions,
326
+ };
327
+ }),
328
+ };
329
+ };
330
+ exports.InfraStatusApiAxiosParamCreator = InfraStatusApiAxiosParamCreator;
331
+ /**
332
+ * InfraStatusApi - functional programming interface
333
+ * @export
334
+ */
335
+ const InfraStatusApiFp = function (configuration) {
336
+ const localVarAxiosParamCreator = (0, exports.InfraStatusApiAxiosParamCreator)(configuration);
337
+ return {
338
+ /**
339
+ *
340
+ * @param {string} organization
341
+ * @param {string} cluster
342
+ * @param {*} [options] Override http request option.
343
+ * @throws {RequiredError}
344
+ */
345
+ handleInfraStatusRequest(organization, cluster, options) {
346
+ return __awaiter(this, void 0, void 0, function* () {
347
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.handleInfraStatusRequest(organization, cluster, options);
348
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
349
+ });
350
+ },
351
+ };
352
+ };
353
+ exports.InfraStatusApiFp = InfraStatusApiFp;
354
+ /**
355
+ * InfraStatusApi - factory interface
356
+ * @export
357
+ */
358
+ const InfraStatusApiFactory = function (configuration, basePath, axios) {
359
+ const localVarFp = (0, exports.InfraStatusApiFp)(configuration);
360
+ return {
361
+ /**
362
+ *
363
+ * @param {string} organization
364
+ * @param {string} cluster
365
+ * @param {*} [options] Override http request option.
366
+ * @throws {RequiredError}
367
+ */
368
+ handleInfraStatusRequest(organization, cluster, options) {
369
+ return localVarFp.handleInfraStatusRequest(organization, cluster, options).then((request) => request(axios, basePath));
370
+ },
371
+ };
372
+ };
373
+ exports.InfraStatusApiFactory = InfraStatusApiFactory;
374
+ /**
375
+ * InfraStatusApi - object-oriented interface
376
+ * @export
377
+ * @class InfraStatusApi
378
+ * @extends {BaseAPI}
379
+ */
380
+ class InfraStatusApi extends base_1.BaseAPI {
381
+ /**
382
+ *
383
+ * @param {string} organization
384
+ * @param {string} cluster
385
+ * @param {*} [options] Override http request option.
386
+ * @throws {RequiredError}
387
+ * @memberof InfraStatusApi
388
+ */
389
+ handleInfraStatusRequest(organization, cluster, options) {
390
+ return (0, exports.InfraStatusApiFp)(this.configuration).handleInfraStatusRequest(organization, cluster, options).then((request) => request(this.axios, this.basePath));
391
+ }
392
+ }
393
+ exports.InfraStatusApi = InfraStatusApi;
290
394
  /**
291
395
  * LogsApi - axios parameter creator
292
396
  * @export
package/dist/esm/api.d.ts CHANGED
@@ -654,6 +654,65 @@ export declare class DeploymentApi extends BaseAPI {
654
654
  */
655
655
  handleDeploymentStatusRequest(organization: string, cluster: string | null, project: string, environment: string | null, version: string | null, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
656
656
  }
657
+ /**
658
+ * InfraStatusApi - axios parameter creator
659
+ * @export
660
+ */
661
+ export declare const InfraStatusApiAxiosParamCreator: (configuration?: Configuration) => {
662
+ /**
663
+ *
664
+ * @param {string} organization
665
+ * @param {string} cluster
666
+ * @param {*} [options] Override http request option.
667
+ * @throws {RequiredError}
668
+ */
669
+ handleInfraStatusRequest: (organization: string, cluster: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
670
+ };
671
+ /**
672
+ * InfraStatusApi - functional programming interface
673
+ * @export
674
+ */
675
+ export declare const InfraStatusApiFp: (configuration?: Configuration) => {
676
+ /**
677
+ *
678
+ * @param {string} organization
679
+ * @param {string} cluster
680
+ * @param {*} [options] Override http request option.
681
+ * @throws {RequiredError}
682
+ */
683
+ handleInfraStatusRequest(organization: string, cluster: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
684
+ };
685
+ /**
686
+ * InfraStatusApi - factory interface
687
+ * @export
688
+ */
689
+ export declare const InfraStatusApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
690
+ /**
691
+ *
692
+ * @param {string} organization
693
+ * @param {string} cluster
694
+ * @param {*} [options] Override http request option.
695
+ * @throws {RequiredError}
696
+ */
697
+ handleInfraStatusRequest(organization: string, cluster: string, options?: any): AxiosPromise<object>;
698
+ };
699
+ /**
700
+ * InfraStatusApi - object-oriented interface
701
+ * @export
702
+ * @class InfraStatusApi
703
+ * @extends {BaseAPI}
704
+ */
705
+ export declare class InfraStatusApi extends BaseAPI {
706
+ /**
707
+ *
708
+ * @param {string} organization
709
+ * @param {string} cluster
710
+ * @param {*} [options] Override http request option.
711
+ * @throws {RequiredError}
712
+ * @memberof InfraStatusApi
713
+ */
714
+ handleInfraStatusRequest(organization: string, cluster: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
715
+ }
657
716
  /**
658
717
  * LogsApi - axios parameter creator
659
718
  * @export
package/dist/esm/api.js CHANGED
@@ -280,6 +280,106 @@ export class DeploymentApi extends BaseAPI {
280
280
  return DeploymentApiFp(this.configuration).handleDeploymentStatusRequest(organization, cluster, project, environment, version, options).then((request) => request(this.axios, this.basePath));
281
281
  }
282
282
  }
283
+ /**
284
+ * InfraStatusApi - axios parameter creator
285
+ * @export
286
+ */
287
+ export const InfraStatusApiAxiosParamCreator = function (configuration) {
288
+ return {
289
+ /**
290
+ *
291
+ * @param {string} organization
292
+ * @param {string} cluster
293
+ * @param {*} [options] Override http request option.
294
+ * @throws {RequiredError}
295
+ */
296
+ handleInfraStatusRequest: (organization, cluster, options = {}) => __awaiter(this, void 0, void 0, function* () {
297
+ // verify required parameter 'organization' is not null or undefined
298
+ assertParamExists('handleInfraStatusRequest', 'organization', organization);
299
+ // verify required parameter 'cluster' is not null or undefined
300
+ assertParamExists('handleInfraStatusRequest', 'cluster', cluster);
301
+ const localVarPath = `/infra/status`
302
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
303
+ .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)));
304
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
305
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
306
+ let baseOptions;
307
+ if (configuration) {
308
+ baseOptions = configuration.baseOptions;
309
+ }
310
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
311
+ const localVarHeaderParameter = {};
312
+ const localVarQueryParameter = {};
313
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
314
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
315
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
316
+ return {
317
+ url: toPathString(localVarUrlObj),
318
+ options: localVarRequestOptions,
319
+ };
320
+ }),
321
+ };
322
+ };
323
+ /**
324
+ * InfraStatusApi - functional programming interface
325
+ * @export
326
+ */
327
+ export const InfraStatusApiFp = function (configuration) {
328
+ const localVarAxiosParamCreator = InfraStatusApiAxiosParamCreator(configuration);
329
+ return {
330
+ /**
331
+ *
332
+ * @param {string} organization
333
+ * @param {string} cluster
334
+ * @param {*} [options] Override http request option.
335
+ * @throws {RequiredError}
336
+ */
337
+ handleInfraStatusRequest(organization, cluster, options) {
338
+ return __awaiter(this, void 0, void 0, function* () {
339
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.handleInfraStatusRequest(organization, cluster, options);
340
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
341
+ });
342
+ },
343
+ };
344
+ };
345
+ /**
346
+ * InfraStatusApi - factory interface
347
+ * @export
348
+ */
349
+ export const InfraStatusApiFactory = function (configuration, basePath, axios) {
350
+ const localVarFp = InfraStatusApiFp(configuration);
351
+ return {
352
+ /**
353
+ *
354
+ * @param {string} organization
355
+ * @param {string} cluster
356
+ * @param {*} [options] Override http request option.
357
+ * @throws {RequiredError}
358
+ */
359
+ handleInfraStatusRequest(organization, cluster, options) {
360
+ return localVarFp.handleInfraStatusRequest(organization, cluster, options).then((request) => request(axios, basePath));
361
+ },
362
+ };
363
+ };
364
+ /**
365
+ * InfraStatusApi - object-oriented interface
366
+ * @export
367
+ * @class InfraStatusApi
368
+ * @extends {BaseAPI}
369
+ */
370
+ export class InfraStatusApi extends BaseAPI {
371
+ /**
372
+ *
373
+ * @param {string} organization
374
+ * @param {string} cluster
375
+ * @param {*} [options] Override http request option.
376
+ * @throws {RequiredError}
377
+ * @memberof InfraStatusApi
378
+ */
379
+ handleInfraStatusRequest(organization, cluster, options) {
380
+ return InfraStatusApiFp(this.configuration).handleInfraStatusRequest(organization, cluster, options).then((request) => request(this.axios, this.basePath));
381
+ }
382
+ }
283
383
  /**
284
384
  * LogsApi - axios parameter creator
285
385
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-ws-typescript-axios",
3
- "version": "v0.1.87",
3
+ "version": "v0.1.88",
4
4
  "description": "OpenAPI client for qovery-ws-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {