qovery-ws-typescript-axios 0.1.49 → 0.1.51
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/.openapi-generator/FILES +1 -0
- package/.openapi-generator/VERSION +1 -1
- package/api.ts +91 -67
- package/base.ts +4 -3
- package/common.ts +28 -16
- package/dist/api.d.ts +70 -69
- package/dist/api.js +40 -40
- package/dist/base.d.ts +2 -3
- package/dist/base.js +0 -2
- package/dist/common.d.ts +4 -4
- package/dist/common.js +22 -14
- package/dist/esm/api.d.ts +906 -0
- package/dist/esm/api.js +741 -0
- package/dist/esm/base.d.ts +54 -0
- package/dist/esm/base.js +54 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +148 -0
- package/dist/esm/configuration.d.ts +83 -0
- package/dist/esm/configuration.js +38 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +15 -0
- package/dist/index.js +5 -1
- package/package.json +10 -4
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +2 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7.0.1
|
package/api.ts
CHANGED
|
@@ -13,13 +13,15 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
import { Configuration } from './configuration';
|
|
17
|
-
import
|
|
16
|
+
import type { Configuration } from './configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
18
19
|
// Some imports not used depending on template conditions
|
|
19
20
|
// @ts-ignore
|
|
20
21
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
22
|
+
import type { RequestArgs } from './base';
|
|
21
23
|
// @ts-ignore
|
|
22
|
-
import { BASE_PATH, COLLECTION_FORMATS,
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
|
|
23
25
|
|
|
24
26
|
/**
|
|
25
27
|
*
|
|
@@ -52,6 +54,8 @@ export interface ApplicationStatusDto {
|
|
|
52
54
|
*/
|
|
53
55
|
'state': ServiceStateDto;
|
|
54
56
|
}
|
|
57
|
+
|
|
58
|
+
|
|
55
59
|
/**
|
|
56
60
|
*
|
|
57
61
|
* @export
|
|
@@ -71,25 +75,25 @@ export interface CertificateStatusDto {
|
|
|
71
75
|
*/
|
|
72
76
|
'failed_issuance_attempt_count': number;
|
|
73
77
|
/**
|
|
74
|
-
*
|
|
78
|
+
* Unix timestamp with millisecond precision
|
|
75
79
|
* @type {number}
|
|
76
80
|
* @memberof CertificateStatusDto
|
|
77
81
|
*/
|
|
78
82
|
'last_failure_issuance_time'?: number | null;
|
|
79
83
|
/**
|
|
80
|
-
*
|
|
84
|
+
* Unix timestamp with millisecond precision
|
|
81
85
|
* @type {number}
|
|
82
86
|
* @memberof CertificateStatusDto
|
|
83
87
|
*/
|
|
84
88
|
'not_after'?: number | null;
|
|
85
89
|
/**
|
|
86
|
-
*
|
|
90
|
+
* Unix timestamp with millisecond precision
|
|
87
91
|
* @type {number}
|
|
88
92
|
* @memberof CertificateStatusDto
|
|
89
93
|
*/
|
|
90
94
|
'not_before'?: number | null;
|
|
91
95
|
/**
|
|
92
|
-
*
|
|
96
|
+
* Unix timestamp with millisecond precision
|
|
93
97
|
* @type {number}
|
|
94
98
|
* @memberof CertificateStatusDto
|
|
95
99
|
*/
|
|
@@ -107,6 +111,8 @@ export interface CertificateStatusDto {
|
|
|
107
111
|
*/
|
|
108
112
|
'state_message'?: string | null;
|
|
109
113
|
}
|
|
114
|
+
|
|
115
|
+
|
|
110
116
|
/**
|
|
111
117
|
*
|
|
112
118
|
* @export
|
|
@@ -114,7 +120,7 @@ export interface CertificateStatusDto {
|
|
|
114
120
|
*/
|
|
115
121
|
export interface ContainerStateDto {
|
|
116
122
|
/**
|
|
117
|
-
*
|
|
123
|
+
* Unix timestamp with millisecond precision
|
|
118
124
|
* @type {number}
|
|
119
125
|
* @memberof ContainerStateDto
|
|
120
126
|
*/
|
|
@@ -138,6 +144,8 @@ export interface ContainerStateDto {
|
|
|
138
144
|
*/
|
|
139
145
|
'state_reason'?: string | null;
|
|
140
146
|
}
|
|
147
|
+
|
|
148
|
+
|
|
141
149
|
/**
|
|
142
150
|
*
|
|
143
151
|
* @export
|
|
@@ -157,7 +165,7 @@ export interface ContainerStateTerminatedDto {
|
|
|
157
165
|
*/
|
|
158
166
|
'exit_code_message': string;
|
|
159
167
|
/**
|
|
160
|
-
*
|
|
168
|
+
* Unix timestamp with millisecond precision
|
|
161
169
|
* @type {number}
|
|
162
170
|
* @memberof ContainerStateTerminatedDto
|
|
163
171
|
*/
|
|
@@ -181,7 +189,7 @@ export interface ContainerStateTerminatedDto {
|
|
|
181
189
|
*/
|
|
182
190
|
'signal': number;
|
|
183
191
|
/**
|
|
184
|
-
*
|
|
192
|
+
* Unix timestamp with millisecond precision
|
|
185
193
|
* @type {number}
|
|
186
194
|
* @memberof ContainerStateTerminatedDto
|
|
187
195
|
*/
|
|
@@ -249,6 +257,8 @@ export interface DatabaseStatusDto {
|
|
|
249
257
|
*/
|
|
250
258
|
'state': ServiceStateDto;
|
|
251
259
|
}
|
|
260
|
+
|
|
261
|
+
|
|
252
262
|
/**
|
|
253
263
|
*
|
|
254
264
|
* @export
|
|
@@ -298,6 +308,8 @@ export interface EnvironmentStatusDto {
|
|
|
298
308
|
*/
|
|
299
309
|
'state': ServiceStateDto;
|
|
300
310
|
}
|
|
311
|
+
|
|
312
|
+
|
|
301
313
|
/**
|
|
302
314
|
*
|
|
303
315
|
* @export
|
|
@@ -341,6 +353,8 @@ export interface MetricDto {
|
|
|
341
353
|
*/
|
|
342
354
|
'unit': UnitDto;
|
|
343
355
|
}
|
|
356
|
+
|
|
357
|
+
|
|
344
358
|
/**
|
|
345
359
|
*
|
|
346
360
|
* @export
|
|
@@ -372,7 +386,7 @@ export interface PodStatusDto {
|
|
|
372
386
|
*/
|
|
373
387
|
'service_version': string;
|
|
374
388
|
/**
|
|
375
|
-
*
|
|
389
|
+
* Unix timestamp with millisecond precision
|
|
376
390
|
* @type {number}
|
|
377
391
|
* @memberof PodStatusDto
|
|
378
392
|
*/
|
|
@@ -396,6 +410,8 @@ export interface PodStatusDto {
|
|
|
396
410
|
*/
|
|
397
411
|
'state_reason': string;
|
|
398
412
|
}
|
|
413
|
+
|
|
414
|
+
|
|
399
415
|
/**
|
|
400
416
|
*
|
|
401
417
|
* @export
|
|
@@ -408,6 +424,7 @@ export enum ResourceStatusDto {
|
|
|
408
424
|
ALERT = 'ALERT'
|
|
409
425
|
}
|
|
410
426
|
|
|
427
|
+
|
|
411
428
|
/**
|
|
412
429
|
*
|
|
413
430
|
* @export
|
|
@@ -505,6 +522,7 @@ export enum ServiceStateDto {
|
|
|
505
522
|
WARNING = 'WARNING'
|
|
506
523
|
}
|
|
507
524
|
|
|
525
|
+
|
|
508
526
|
/**
|
|
509
527
|
*
|
|
510
528
|
* @export
|
|
@@ -531,6 +549,7 @@ export enum ServiceType {
|
|
|
531
549
|
JOB = 'JOB'
|
|
532
550
|
}
|
|
533
551
|
|
|
552
|
+
|
|
534
553
|
/**
|
|
535
554
|
*
|
|
536
555
|
* @export
|
|
@@ -543,6 +562,7 @@ export enum UnitDto {
|
|
|
543
562
|
}
|
|
544
563
|
|
|
545
564
|
|
|
565
|
+
|
|
546
566
|
/**
|
|
547
567
|
* DeploymentApi - axios parameter creator
|
|
548
568
|
* @export
|
|
@@ -552,14 +572,14 @@ export const DeploymentApiAxiosParamCreator = function (configuration?: Configur
|
|
|
552
572
|
/**
|
|
553
573
|
*
|
|
554
574
|
* @param {string} organization
|
|
555
|
-
* @param {string} cluster
|
|
575
|
+
* @param {string | null} cluster
|
|
556
576
|
* @param {string} project
|
|
557
577
|
* @param {string} environment
|
|
558
|
-
* @param {string} version
|
|
578
|
+
* @param {string | null} version
|
|
559
579
|
* @param {*} [options] Override http request option.
|
|
560
580
|
* @throws {RequiredError}
|
|
561
581
|
*/
|
|
562
|
-
handleDeploymentLogsRequest: async (organization: string, cluster: string, project: string, environment: string, version: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
582
|
+
handleDeploymentLogsRequest: async (organization: string, cluster: string | null, project: string, environment: string, version: string | null, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
563
583
|
// verify required parameter 'organization' is not null or undefined
|
|
564
584
|
assertParamExists('handleDeploymentLogsRequest', 'organization', organization)
|
|
565
585
|
// verify required parameter 'cluster' is not null or undefined
|
|
@@ -601,14 +621,14 @@ export const DeploymentApiAxiosParamCreator = function (configuration?: Configur
|
|
|
601
621
|
/**
|
|
602
622
|
*
|
|
603
623
|
* @param {string} organization
|
|
604
|
-
* @param {string} cluster
|
|
624
|
+
* @param {string | null} cluster
|
|
605
625
|
* @param {string} project
|
|
606
|
-
* @param {string} environment
|
|
607
|
-
* @param {string} version
|
|
626
|
+
* @param {string | null} environment
|
|
627
|
+
* @param {string | null} version
|
|
608
628
|
* @param {*} [options] Override http request option.
|
|
609
629
|
* @throws {RequiredError}
|
|
610
630
|
*/
|
|
611
|
-
handleDeploymentStatusRequest: async (organization: string, cluster: string, project: string, environment: string, version: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
631
|
+
handleDeploymentStatusRequest: async (organization: string, cluster: string | null, project: string, environment: string | null, version: string | null, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
612
632
|
// verify required parameter 'organization' is not null or undefined
|
|
613
633
|
assertParamExists('handleDeploymentStatusRequest', 'organization', organization)
|
|
614
634
|
// verify required parameter 'cluster' is not null or undefined
|
|
@@ -660,28 +680,28 @@ export const DeploymentApiFp = function(configuration?: Configuration) {
|
|
|
660
680
|
/**
|
|
661
681
|
*
|
|
662
682
|
* @param {string} organization
|
|
663
|
-
* @param {string} cluster
|
|
683
|
+
* @param {string | null} cluster
|
|
664
684
|
* @param {string} project
|
|
665
685
|
* @param {string} environment
|
|
666
|
-
* @param {string} version
|
|
686
|
+
* @param {string | null} version
|
|
667
687
|
* @param {*} [options] Override http request option.
|
|
668
688
|
* @throws {RequiredError}
|
|
669
689
|
*/
|
|
670
|
-
async handleDeploymentLogsRequest(organization: string, cluster: string, project: string, environment: string, version: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
690
|
+
async handleDeploymentLogsRequest(organization: string, cluster: string | null, project: string, environment: string, version: string | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
671
691
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleDeploymentLogsRequest(organization, cluster, project, environment, version, options);
|
|
672
692
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
673
693
|
},
|
|
674
694
|
/**
|
|
675
695
|
*
|
|
676
696
|
* @param {string} organization
|
|
677
|
-
* @param {string} cluster
|
|
697
|
+
* @param {string | null} cluster
|
|
678
698
|
* @param {string} project
|
|
679
|
-
* @param {string} environment
|
|
680
|
-
* @param {string} version
|
|
699
|
+
* @param {string | null} environment
|
|
700
|
+
* @param {string | null} version
|
|
681
701
|
* @param {*} [options] Override http request option.
|
|
682
702
|
* @throws {RequiredError}
|
|
683
703
|
*/
|
|
684
|
-
async handleDeploymentStatusRequest(organization: string, cluster: string, project: string, environment: string, version: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
704
|
+
async handleDeploymentStatusRequest(organization: string, cluster: string | null, project: string, environment: string | null, version: string | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
685
705
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleDeploymentStatusRequest(organization, cluster, project, environment, version, options);
|
|
686
706
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
687
707
|
},
|
|
@@ -698,27 +718,27 @@ export const DeploymentApiFactory = function (configuration?: Configuration, bas
|
|
|
698
718
|
/**
|
|
699
719
|
*
|
|
700
720
|
* @param {string} organization
|
|
701
|
-
* @param {string} cluster
|
|
721
|
+
* @param {string | null} cluster
|
|
702
722
|
* @param {string} project
|
|
703
723
|
* @param {string} environment
|
|
704
|
-
* @param {string} version
|
|
724
|
+
* @param {string | null} version
|
|
705
725
|
* @param {*} [options] Override http request option.
|
|
706
726
|
* @throws {RequiredError}
|
|
707
727
|
*/
|
|
708
|
-
handleDeploymentLogsRequest(organization: string, cluster: string, project: string, environment: string, version: string, options?: any): AxiosPromise<string> {
|
|
728
|
+
handleDeploymentLogsRequest(organization: string, cluster: string | null, project: string, environment: string, version: string | null, options?: any): AxiosPromise<string> {
|
|
709
729
|
return localVarFp.handleDeploymentLogsRequest(organization, cluster, project, environment, version, options).then((request) => request(axios, basePath));
|
|
710
730
|
},
|
|
711
731
|
/**
|
|
712
732
|
*
|
|
713
733
|
* @param {string} organization
|
|
714
|
-
* @param {string} cluster
|
|
734
|
+
* @param {string | null} cluster
|
|
715
735
|
* @param {string} project
|
|
716
|
-
* @param {string} environment
|
|
717
|
-
* @param {string} version
|
|
736
|
+
* @param {string | null} environment
|
|
737
|
+
* @param {string | null} version
|
|
718
738
|
* @param {*} [options] Override http request option.
|
|
719
739
|
* @throws {RequiredError}
|
|
720
740
|
*/
|
|
721
|
-
handleDeploymentStatusRequest(organization: string, cluster: string, project: string, environment: string, version: string, options?: any): AxiosPromise<string> {
|
|
741
|
+
handleDeploymentStatusRequest(organization: string, cluster: string | null, project: string, environment: string | null, version: string | null, options?: any): AxiosPromise<string> {
|
|
722
742
|
return localVarFp.handleDeploymentStatusRequest(organization, cluster, project, environment, version, options).then((request) => request(axios, basePath));
|
|
723
743
|
},
|
|
724
744
|
};
|
|
@@ -734,35 +754,36 @@ export class DeploymentApi extends BaseAPI {
|
|
|
734
754
|
/**
|
|
735
755
|
*
|
|
736
756
|
* @param {string} organization
|
|
737
|
-
* @param {string} cluster
|
|
757
|
+
* @param {string | null} cluster
|
|
738
758
|
* @param {string} project
|
|
739
759
|
* @param {string} environment
|
|
740
|
-
* @param {string} version
|
|
760
|
+
* @param {string | null} version
|
|
741
761
|
* @param {*} [options] Override http request option.
|
|
742
762
|
* @throws {RequiredError}
|
|
743
763
|
* @memberof DeploymentApi
|
|
744
764
|
*/
|
|
745
|
-
public handleDeploymentLogsRequest(organization: string, cluster: string, project: string, environment: string, version: string, options?: AxiosRequestConfig) {
|
|
765
|
+
public handleDeploymentLogsRequest(organization: string, cluster: string | null, project: string, environment: string, version: string | null, options?: AxiosRequestConfig) {
|
|
746
766
|
return DeploymentApiFp(this.configuration).handleDeploymentLogsRequest(organization, cluster, project, environment, version, options).then((request) => request(this.axios, this.basePath));
|
|
747
767
|
}
|
|
748
768
|
|
|
749
769
|
/**
|
|
750
770
|
*
|
|
751
771
|
* @param {string} organization
|
|
752
|
-
* @param {string} cluster
|
|
772
|
+
* @param {string | null} cluster
|
|
753
773
|
* @param {string} project
|
|
754
|
-
* @param {string} environment
|
|
755
|
-
* @param {string} version
|
|
774
|
+
* @param {string | null} environment
|
|
775
|
+
* @param {string | null} version
|
|
756
776
|
* @param {*} [options] Override http request option.
|
|
757
777
|
* @throws {RequiredError}
|
|
758
778
|
* @memberof DeploymentApi
|
|
759
779
|
*/
|
|
760
|
-
public handleDeploymentStatusRequest(organization: string, cluster: string, project: string, environment: string, version: string, options?: AxiosRequestConfig) {
|
|
780
|
+
public handleDeploymentStatusRequest(organization: string, cluster: string | null, project: string, environment: string | null, version: string | null, options?: AxiosRequestConfig) {
|
|
761
781
|
return DeploymentApiFp(this.configuration).handleDeploymentStatusRequest(organization, cluster, project, environment, version, options).then((request) => request(this.axios, this.basePath));
|
|
762
782
|
}
|
|
763
783
|
}
|
|
764
784
|
|
|
765
785
|
|
|
786
|
+
|
|
766
787
|
/**
|
|
767
788
|
* LogsApi - axios parameter creator
|
|
768
789
|
* @export
|
|
@@ -773,14 +794,14 @@ export const LogsApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
773
794
|
*
|
|
774
795
|
* @param {string} organization
|
|
775
796
|
* @param {string} cluster
|
|
776
|
-
* @param {string} project
|
|
777
|
-
* @param {string} environment
|
|
778
|
-
* @param {string} service
|
|
797
|
+
* @param {string | null} project
|
|
798
|
+
* @param {string | null} environment
|
|
799
|
+
* @param {string | null} service
|
|
779
800
|
* @param {string} infraComponentType
|
|
780
801
|
* @param {*} [options] Override http request option.
|
|
781
802
|
* @throws {RequiredError}
|
|
782
803
|
*/
|
|
783
|
-
handleInfraLogsRequest: async (organization: string, cluster: string, project: string, environment: string, service: string, infraComponentType: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
804
|
+
handleInfraLogsRequest: async (organization: string, cluster: string, project: string | null, environment: string | null, service: string | null, infraComponentType: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
784
805
|
// verify required parameter 'organization' is not null or undefined
|
|
785
806
|
assertParamExists('handleInfraLogsRequest', 'organization', organization)
|
|
786
807
|
// verify required parameter 'cluster' is not null or undefined
|
|
@@ -885,14 +906,14 @@ export const LogsApiFp = function(configuration?: Configuration) {
|
|
|
885
906
|
*
|
|
886
907
|
* @param {string} organization
|
|
887
908
|
* @param {string} cluster
|
|
888
|
-
* @param {string} project
|
|
889
|
-
* @param {string} environment
|
|
890
|
-
* @param {string} service
|
|
909
|
+
* @param {string | null} project
|
|
910
|
+
* @param {string | null} environment
|
|
911
|
+
* @param {string | null} service
|
|
891
912
|
* @param {string} infraComponentType
|
|
892
913
|
* @param {*} [options] Override http request option.
|
|
893
914
|
* @throws {RequiredError}
|
|
894
915
|
*/
|
|
895
|
-
async handleInfraLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, infraComponentType: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceInfraLogResponseDto>> {
|
|
916
|
+
async handleInfraLogsRequest(organization: string, cluster: string, project: string | null, environment: string | null, service: string | null, infraComponentType: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceInfraLogResponseDto>> {
|
|
896
917
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleInfraLogsRequest(organization, cluster, project, environment, service, infraComponentType, options);
|
|
897
918
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
898
919
|
},
|
|
@@ -924,14 +945,14 @@ export const LogsApiFactory = function (configuration?: Configuration, basePath?
|
|
|
924
945
|
*
|
|
925
946
|
* @param {string} organization
|
|
926
947
|
* @param {string} cluster
|
|
927
|
-
* @param {string} project
|
|
928
|
-
* @param {string} environment
|
|
929
|
-
* @param {string} service
|
|
948
|
+
* @param {string | null} project
|
|
949
|
+
* @param {string | null} environment
|
|
950
|
+
* @param {string | null} service
|
|
930
951
|
* @param {string} infraComponentType
|
|
931
952
|
* @param {*} [options] Override http request option.
|
|
932
953
|
* @throws {RequiredError}
|
|
933
954
|
*/
|
|
934
|
-
handleInfraLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, infraComponentType: string, options?: any): AxiosPromise<ServiceInfraLogResponseDto> {
|
|
955
|
+
handleInfraLogsRequest(organization: string, cluster: string, project: string | null, environment: string | null, service: string | null, infraComponentType: string, options?: any): AxiosPromise<ServiceInfraLogResponseDto> {
|
|
935
956
|
return localVarFp.handleInfraLogsRequest(organization, cluster, project, environment, service, infraComponentType, options).then((request) => request(axios, basePath));
|
|
936
957
|
},
|
|
937
958
|
/**
|
|
@@ -961,15 +982,15 @@ export class LogsApi extends BaseAPI {
|
|
|
961
982
|
*
|
|
962
983
|
* @param {string} organization
|
|
963
984
|
* @param {string} cluster
|
|
964
|
-
* @param {string} project
|
|
965
|
-
* @param {string} environment
|
|
966
|
-
* @param {string} service
|
|
985
|
+
* @param {string | null} project
|
|
986
|
+
* @param {string | null} environment
|
|
987
|
+
* @param {string | null} service
|
|
967
988
|
* @param {string} infraComponentType
|
|
968
989
|
* @param {*} [options] Override http request option.
|
|
969
990
|
* @throws {RequiredError}
|
|
970
991
|
* @memberof LogsApi
|
|
971
992
|
*/
|
|
972
|
-
public handleInfraLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, infraComponentType: string, options?: AxiosRequestConfig) {
|
|
993
|
+
public handleInfraLogsRequest(organization: string, cluster: string, project: string | null, environment: string | null, service: string | null, infraComponentType: string, options?: AxiosRequestConfig) {
|
|
973
994
|
return LogsApiFp(this.configuration).handleInfraLogsRequest(organization, cluster, project, environment, service, infraComponentType, options).then((request) => request(this.axios, this.basePath));
|
|
974
995
|
}
|
|
975
996
|
|
|
@@ -990,6 +1011,7 @@ export class LogsApi extends BaseAPI {
|
|
|
990
1011
|
}
|
|
991
1012
|
|
|
992
1013
|
|
|
1014
|
+
|
|
993
1015
|
/**
|
|
994
1016
|
* ServiceMetricsApi - axios parameter creator
|
|
995
1017
|
* @export
|
|
@@ -1126,6 +1148,7 @@ export class ServiceMetricsApi extends BaseAPI {
|
|
|
1126
1148
|
}
|
|
1127
1149
|
|
|
1128
1150
|
|
|
1151
|
+
|
|
1129
1152
|
/**
|
|
1130
1153
|
* ServiceStatusApi - axios parameter creator
|
|
1131
1154
|
* @export
|
|
@@ -1136,12 +1159,12 @@ export const ServiceStatusApiAxiosParamCreator = function (configuration?: Confi
|
|
|
1136
1159
|
*
|
|
1137
1160
|
* @param {string} organization
|
|
1138
1161
|
* @param {string} cluster
|
|
1139
|
-
* @param {string} project
|
|
1140
|
-
* @param {string} environment
|
|
1162
|
+
* @param {string | null} project
|
|
1163
|
+
* @param {string | null} environment
|
|
1141
1164
|
* @param {*} [options] Override http request option.
|
|
1142
1165
|
* @throws {RequiredError}
|
|
1143
1166
|
*/
|
|
1144
|
-
handleServiceStatusRequest: async (organization: string, cluster: string, project: string, environment: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1167
|
+
handleServiceStatusRequest: async (organization: string, cluster: string, project: string | null, environment: string | null, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1145
1168
|
// verify required parameter 'organization' is not null or undefined
|
|
1146
1169
|
assertParamExists('handleServiceStatusRequest', 'organization', organization)
|
|
1147
1170
|
// verify required parameter 'cluster' is not null or undefined
|
|
@@ -1191,12 +1214,12 @@ export const ServiceStatusApiFp = function(configuration?: Configuration) {
|
|
|
1191
1214
|
*
|
|
1192
1215
|
* @param {string} organization
|
|
1193
1216
|
* @param {string} cluster
|
|
1194
|
-
* @param {string} project
|
|
1195
|
-
* @param {string} environment
|
|
1217
|
+
* @param {string | null} project
|
|
1218
|
+
* @param {string | null} environment
|
|
1196
1219
|
* @param {*} [options] Override http request option.
|
|
1197
1220
|
* @throws {RequiredError}
|
|
1198
1221
|
*/
|
|
1199
|
-
async handleServiceStatusRequest(organization: string, cluster: string, project: string, environment: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceStatusDto>> {
|
|
1222
|
+
async handleServiceStatusRequest(organization: string, cluster: string, project: string | null, environment: string | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceStatusDto>> {
|
|
1200
1223
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleServiceStatusRequest(organization, cluster, project, environment, options);
|
|
1201
1224
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1202
1225
|
},
|
|
@@ -1214,12 +1237,12 @@ export const ServiceStatusApiFactory = function (configuration?: Configuration,
|
|
|
1214
1237
|
*
|
|
1215
1238
|
* @param {string} organization
|
|
1216
1239
|
* @param {string} cluster
|
|
1217
|
-
* @param {string} project
|
|
1218
|
-
* @param {string} environment
|
|
1240
|
+
* @param {string | null} project
|
|
1241
|
+
* @param {string | null} environment
|
|
1219
1242
|
* @param {*} [options] Override http request option.
|
|
1220
1243
|
* @throws {RequiredError}
|
|
1221
1244
|
*/
|
|
1222
|
-
handleServiceStatusRequest(organization: string, cluster: string, project: string, environment: string, options?: any): AxiosPromise<ServiceStatusDto> {
|
|
1245
|
+
handleServiceStatusRequest(organization: string, cluster: string, project: string | null, environment: string | null, options?: any): AxiosPromise<ServiceStatusDto> {
|
|
1223
1246
|
return localVarFp.handleServiceStatusRequest(organization, cluster, project, environment, options).then((request) => request(axios, basePath));
|
|
1224
1247
|
},
|
|
1225
1248
|
};
|
|
@@ -1236,15 +1259,16 @@ export class ServiceStatusApi extends BaseAPI {
|
|
|
1236
1259
|
*
|
|
1237
1260
|
* @param {string} organization
|
|
1238
1261
|
* @param {string} cluster
|
|
1239
|
-
* @param {string} project
|
|
1240
|
-
* @param {string} environment
|
|
1262
|
+
* @param {string | null} project
|
|
1263
|
+
* @param {string | null} environment
|
|
1241
1264
|
* @param {*} [options] Override http request option.
|
|
1242
1265
|
* @throws {RequiredError}
|
|
1243
1266
|
* @memberof ServiceStatusApi
|
|
1244
1267
|
*/
|
|
1245
|
-
public handleServiceStatusRequest(organization: string, cluster: string, project: string, environment: string, options?: AxiosRequestConfig) {
|
|
1268
|
+
public handleServiceStatusRequest(organization: string, cluster: string, project: string | null, environment: string | null, options?: AxiosRequestConfig) {
|
|
1246
1269
|
return ServiceStatusApiFp(this.configuration).handleServiceStatusRequest(organization, cluster, project, environment, options).then((request) => request(this.axios, this.basePath));
|
|
1247
1270
|
}
|
|
1248
1271
|
}
|
|
1249
1272
|
|
|
1250
1273
|
|
|
1274
|
+
|
package/base.ts
CHANGED
|
@@ -13,10 +13,11 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
import { Configuration } from
|
|
16
|
+
import type { Configuration } from './configuration';
|
|
17
17
|
// Some imports not used depending on template conditions
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
import
|
|
19
|
+
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
20
|
+
import globalAxios from 'axios';
|
|
20
21
|
|
|
21
22
|
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
22
23
|
|
|
@@ -64,8 +65,8 @@ export class BaseAPI {
|
|
|
64
65
|
* @extends {Error}
|
|
65
66
|
*/
|
|
66
67
|
export class RequiredError extends Error {
|
|
67
|
-
override name: "RequiredError" = "RequiredError";
|
|
68
68
|
constructor(public field: string, msg?: string) {
|
|
69
69
|
super(msg);
|
|
70
|
+
this.name = "RequiredError"
|
|
70
71
|
}
|
|
71
72
|
}
|
package/common.ts
CHANGED
|
@@ -13,9 +13,10 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
import { Configuration } from "./configuration";
|
|
17
|
-
import {
|
|
18
|
-
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
16
|
+
import type { Configuration } from "./configuration";
|
|
17
|
+
import type { RequestArgs } from "./base";
|
|
18
|
+
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
19
|
+
import { RequiredError } from "./base";
|
|
19
20
|
|
|
20
21
|
/**
|
|
21
22
|
*
|
|
@@ -83,24 +84,35 @@ export const setOAuthToObject = async function (object: any, name: string, scope
|
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
|
|
87
|
+
function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void {
|
|
88
|
+
if (parameter == null) return;
|
|
89
|
+
if (typeof parameter === "object") {
|
|
90
|
+
if (Array.isArray(parameter)) {
|
|
91
|
+
(parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
Object.keys(parameter).forEach(currentKey =>
|
|
95
|
+
setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
if (urlSearchParams.has(key)) {
|
|
101
|
+
urlSearchParams.append(key, parameter);
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
urlSearchParams.set(key, parameter);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
86
109
|
/**
|
|
87
110
|
*
|
|
88
111
|
* @export
|
|
89
112
|
*/
|
|
90
113
|
export const setSearchParams = function (url: URL, ...objects: any[]) {
|
|
91
114
|
const searchParams = new URLSearchParams(url.search);
|
|
92
|
-
|
|
93
|
-
for (const key in object) {
|
|
94
|
-
if (Array.isArray(object[key])) {
|
|
95
|
-
searchParams.delete(key);
|
|
96
|
-
for (const item of object[key]) {
|
|
97
|
-
searchParams.append(key, item);
|
|
98
|
-
}
|
|
99
|
-
} else {
|
|
100
|
-
searchParams.set(key, object[key]);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
115
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
104
116
|
url.search = searchParams.toString();
|
|
105
117
|
}
|
|
106
118
|
|
|
@@ -132,7 +144,7 @@ export const toPathString = function (url: URL) {
|
|
|
132
144
|
*/
|
|
133
145
|
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
134
146
|
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
135
|
-
const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
|
|
147
|
+
const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || axios.defaults.baseURL || basePath) + axiosArgs.url};
|
|
136
148
|
return axios.request<T, R>(axiosRequestArgs);
|
|
137
149
|
};
|
|
138
150
|
}
|