@stack-spot/portal-network 0.64.2 → 0.65.1
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/CHANGELOG.md +14 -0
- package/dist/api/cloudPlatform.d.ts +216 -250
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +128 -101
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/cloudRuntimes.d.ts +27 -11
- package/dist/api/cloudRuntimes.d.ts.map +1 -1
- package/dist/api/cloudRuntimes.js +13 -10
- package/dist/api/cloudRuntimes.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +50 -85
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +55 -118
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/cloud-runtimes.d.ts +13 -0
- package/dist/client/cloud-runtimes.d.ts.map +1 -1
- package/dist/client/cloud-runtimes.js +20 -2
- package/dist/client/cloud-runtimes.js.map +1 -1
- package/package.json +1 -1
- package/src/api/cloudPlatform.ts +359 -372
- package/src/api/cloudRuntimes.ts +91 -45
- package/src/client/cloud-platform.ts +30 -65
- package/src/client/cloud-runtimes.ts +12 -2
|
@@ -4,91 +4,6 @@ import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
|
|
|
4
4
|
declare class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
5
5
|
constructor();
|
|
6
6
|
protected buildStackSpotError(error: HttpError): StackspotAPIError;
|
|
7
|
-
/**
|
|
8
|
-
* Get list of applications
|
|
9
|
-
*/
|
|
10
|
-
listApplications: import("../network/types.js").QueryObject<Omit<{
|
|
11
|
-
projectId: string;
|
|
12
|
-
limit?: number | undefined;
|
|
13
|
-
offset?: number | undefined;
|
|
14
|
-
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").ListApplicationsResponse>;
|
|
15
|
-
/**
|
|
16
|
-
* Get an application by id
|
|
17
|
-
*/
|
|
18
|
-
application: import("../network/types.js").QueryObject<Omit<{
|
|
19
|
-
applicationId: string;
|
|
20
|
-
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").ApplicationResponse>;
|
|
21
|
-
/**
|
|
22
|
-
* Get an application history
|
|
23
|
-
*/
|
|
24
|
-
applicationHistory: import("../network/types.js").QueryObject<Omit<{
|
|
25
|
-
projectId: string;
|
|
26
|
-
limit?: number | undefined;
|
|
27
|
-
offset?: number | undefined;
|
|
28
|
-
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").ListApplicationHistoryResponse>;
|
|
29
|
-
/**
|
|
30
|
-
* Get list of application deployments
|
|
31
|
-
*/
|
|
32
|
-
listApplicationDeployments: import("../network/types.js").QueryObject<Omit<{
|
|
33
|
-
applicationId: string;
|
|
34
|
-
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").BasicDeploymentResponse[]>;
|
|
35
|
-
/**
|
|
36
|
-
* Get an application deployment by id
|
|
37
|
-
*/
|
|
38
|
-
applicationDeployment: import("../network/types.js").QueryObject<Omit<{
|
|
39
|
-
deploymentId: string;
|
|
40
|
-
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").DeploymentResponse>;
|
|
41
|
-
/**
|
|
42
|
-
* Get an application deployment status
|
|
43
|
-
*/
|
|
44
|
-
applicationDeploymentStatus: import("../network/types.js").QueryObject<Omit<{
|
|
45
|
-
deploymentId: string;
|
|
46
|
-
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").DeploymentStatusResponse>;
|
|
47
|
-
/**
|
|
48
|
-
* Get an application deployment health
|
|
49
|
-
*/
|
|
50
|
-
applicationDeploymentHealth: import("../network/types.js").QueryObject<Omit<{
|
|
51
|
-
deploymentId: string;
|
|
52
|
-
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").DeploymentHealthResponse>;
|
|
53
|
-
/**
|
|
54
|
-
* Get an application deployment logs
|
|
55
|
-
*/
|
|
56
|
-
applicationDeploymentLogs: import("../network/types.js").QueryObject<Omit<{
|
|
57
|
-
deploymentId: string;
|
|
58
|
-
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").DeploymentLogResponse>;
|
|
59
|
-
/**
|
|
60
|
-
* Get an application runtimes
|
|
61
|
-
*/
|
|
62
|
-
listApplicationRuntimes: import("../network/types.js").QueryObject<Omit<{
|
|
63
|
-
projectId: string;
|
|
64
|
-
limit?: number | undefined;
|
|
65
|
-
offset?: number | undefined;
|
|
66
|
-
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").ListRuntimesResponse>;
|
|
67
|
-
/**
|
|
68
|
-
* Get list of repositories
|
|
69
|
-
*/
|
|
70
|
-
listRepositories: import("../network/types.js").QueryObject<Omit<{
|
|
71
|
-
limit?: number | undefined;
|
|
72
|
-
offset?: number | undefined;
|
|
73
|
-
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").ListRepositoryResponse>;
|
|
74
|
-
/**
|
|
75
|
-
* Get list of images from a repository
|
|
76
|
-
*/
|
|
77
|
-
listRepositoryImages: import("../network/types.js").QueryObject<Omit<{
|
|
78
|
-
repositoryId: string;
|
|
79
|
-
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").ImageResponse[]>;
|
|
80
|
-
/**
|
|
81
|
-
* Create a deploy of the application
|
|
82
|
-
*/
|
|
83
|
-
createDeployment: import("../network/types.js").MutationObject<Omit<{
|
|
84
|
-
createDeploymentRequest: import("../api/cloudPlatform.js").CreateDeploymentRequest;
|
|
85
|
-
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").CreateDeploymentResponse>;
|
|
86
|
-
/**
|
|
87
|
-
* Create an application
|
|
88
|
-
*/
|
|
89
|
-
createApplication: import("../network/types.js").MutationObject<Omit<{
|
|
90
|
-
createApplicationRequest: import("../api/cloudPlatform.js").CreateApplicationRequest;
|
|
91
|
-
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").ApplicationResponse>;
|
|
92
7
|
/**
|
|
93
8
|
* List foundations
|
|
94
9
|
*/
|
|
@@ -200,6 +115,56 @@ declare class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
|
200
115
|
foundationId: string;
|
|
201
116
|
projectId: string;
|
|
202
117
|
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").ProjectResponse>;
|
|
118
|
+
/**
|
|
119
|
+
* Get a list of dns records
|
|
120
|
+
*/
|
|
121
|
+
listDnsRecords: import("../network/types.js").QueryObject<Omit<{
|
|
122
|
+
authorization: string;
|
|
123
|
+
foundationId: string;
|
|
124
|
+
projectId?: string | undefined;
|
|
125
|
+
dnsZoneId?: string | undefined;
|
|
126
|
+
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").ListDnsRecordResponse>;
|
|
127
|
+
/**
|
|
128
|
+
* Create a dns record
|
|
129
|
+
*/
|
|
130
|
+
createDnsRecord: import("../network/types.js").MutationObject<Omit<{
|
|
131
|
+
authorization: string;
|
|
132
|
+
foundationId: string;
|
|
133
|
+
createDnsRecordRequest: import("../api/cloudPlatform.js").CreateDnsRecordRequest;
|
|
134
|
+
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").DnsRecordResponse>;
|
|
135
|
+
/**
|
|
136
|
+
* Get a list of networks
|
|
137
|
+
*/
|
|
138
|
+
listNetworks: import("../network/types.js").QueryObject<Omit<{
|
|
139
|
+
authorization: string;
|
|
140
|
+
foundationId: string;
|
|
141
|
+
projectId?: string | undefined;
|
|
142
|
+
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").ListNetworkResponse>;
|
|
143
|
+
/**
|
|
144
|
+
* Create a network
|
|
145
|
+
*/
|
|
146
|
+
createNetwork: import("../network/types.js").MutationObject<Omit<{
|
|
147
|
+
authorization: string;
|
|
148
|
+
foundationId: string;
|
|
149
|
+
createNetworkRequest: import("../api/cloudPlatform.js").CreateNetworkRequest;
|
|
150
|
+
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").NetworkResponse>;
|
|
151
|
+
/**
|
|
152
|
+
* Get a list of subnets
|
|
153
|
+
*/
|
|
154
|
+
listSubnets: import("../network/types.js").QueryObject<Omit<{
|
|
155
|
+
authorization: string;
|
|
156
|
+
foundationId: string;
|
|
157
|
+
projectId?: string | undefined;
|
|
158
|
+
vpcId?: string | undefined;
|
|
159
|
+
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").ListSubnetResponse>;
|
|
160
|
+
/**
|
|
161
|
+
* Create a subnet
|
|
162
|
+
*/
|
|
163
|
+
createSubnet: import("../network/types.js").MutationObject<Omit<{
|
|
164
|
+
authorization: string;
|
|
165
|
+
foundationId: string;
|
|
166
|
+
createSubnetRequest: import("../api/cloudPlatform.js").CreateSubnetRequest;
|
|
167
|
+
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").SubnetResponse>;
|
|
203
168
|
}
|
|
204
169
|
export declare const cloudPlatformClient: CloudPlatformClient;
|
|
205
170
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-platform.d.ts","sourceRoot":"","sources":["../../src/client/cloud-platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"cloud-platform.d.ts","sourceRoot":"","sources":["../../src/client/cloud-platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AA6B7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAG5E,cAAM,mBAAoB,SAAQ,uBAAuB;;IAKvD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAGlE;;OAEG;IACH,eAAe;;kGAAwD;IACvE;;OAEG;IACH,UAAU;;;8FAAsD;IAChE;;OAEG;IACH,SAAS;;;;0FAAkD;IAC3D;;OAEG;IACH,aAAa;;SAAkD;IAC/D;;OAEG;IACH,gBAAgB;;;8FAA4D;IAC5E;;OAEG;IACH,YAAY;;;;0FAAwD;IACpE;;OAEG;IACH,YAAY;;;+FAAoD;IAChE;;OAEG;IACH,aAAa;;;;2FAAyD;IACtE;;OAEG;IACH,SAAS;;;4FAAiD;IAC1D;;OAEG;IACH,UAAU;;;;wFAAsD;IAChE;;OAEG;IACH,gBAAgB;;;mGAAyD;IACzE;;OAEG;IACH,cAAc;;;;+FAAuD;IACrE;;OAEG;IACH,iBAAiB;;;;+FAA6D;IAC9E;;OAEG;IACH,aAAa;;;;2FAAyD;IACtE;;OAEG;IACH,cAAc;;;;2FAAmD;IACjE;;OAEG;IACH,cAAc;;;;;iGAAqD;IACnE;;OAEG;IACH,eAAe;;;;6FAA2D;IAC1E;;OAEG;IACH,YAAY;;;;+FAAmD;IAC/D;;OAEG;IACH,aAAa;;;;2FAAyD;IACtE;;OAEG;IACH,WAAW;;;;;8FAAkD;IAC7D;;OAEG;IACH,YAAY;;;;0FAAwD;CACrE;AAED,eAAO,MAAM,mBAAmB,qBAA4B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createCertificate, createCidr, createDnsRecord, createDnsZone, createFolder, createFoundation, createNetwork, createProject, createSubnet, defaults, getCertificate, getFolder, getFoundation, getProject, listCertificates, listCidr, listDnsRecord, listDnsZone, listFoundations, listNetwork, listSubnet, providers, } from '../api/cloudPlatform.js';
|
|
2
2
|
import apis from '../apis.json';
|
|
3
3
|
import { DefaultAPIError } from '../error/DefaultAPIError.js';
|
|
4
4
|
import { cntDictionary } from '../error/dictionary/cnt.js';
|
|
@@ -7,123 +7,6 @@ import { removeAuthorizationParam } from '../utils/remove-authorization-param.js
|
|
|
7
7
|
class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(apis.cloudPlatform.url, defaults);
|
|
10
|
-
/**
|
|
11
|
-
* Get list of applications
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(this, "listApplications", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
configurable: true,
|
|
16
|
-
writable: true,
|
|
17
|
-
value: this.query(removeAuthorizationParam(listApplications))
|
|
18
|
-
});
|
|
19
|
-
/**
|
|
20
|
-
* Get an application by id
|
|
21
|
-
*/
|
|
22
|
-
Object.defineProperty(this, "application", {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
configurable: true,
|
|
25
|
-
writable: true,
|
|
26
|
-
value: this.query(removeAuthorizationParam(getApplication))
|
|
27
|
-
});
|
|
28
|
-
/**
|
|
29
|
-
* Get an application history
|
|
30
|
-
*/
|
|
31
|
-
Object.defineProperty(this, "applicationHistory", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
configurable: true,
|
|
34
|
-
writable: true,
|
|
35
|
-
value: this.query(removeAuthorizationParam(getApplicationHistory))
|
|
36
|
-
});
|
|
37
|
-
/**
|
|
38
|
-
* Get list of application deployments
|
|
39
|
-
*/
|
|
40
|
-
Object.defineProperty(this, "listApplicationDeployments", {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
configurable: true,
|
|
43
|
-
writable: true,
|
|
44
|
-
value: this.query(removeAuthorizationParam(listDeployments))
|
|
45
|
-
});
|
|
46
|
-
/**
|
|
47
|
-
* Get an application deployment by id
|
|
48
|
-
*/
|
|
49
|
-
Object.defineProperty(this, "applicationDeployment", {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
configurable: true,
|
|
52
|
-
writable: true,
|
|
53
|
-
value: this.query(removeAuthorizationParam(getDeployment))
|
|
54
|
-
});
|
|
55
|
-
/**
|
|
56
|
-
* Get an application deployment status
|
|
57
|
-
*/
|
|
58
|
-
Object.defineProperty(this, "applicationDeploymentStatus", {
|
|
59
|
-
enumerable: true,
|
|
60
|
-
configurable: true,
|
|
61
|
-
writable: true,
|
|
62
|
-
value: this.query(removeAuthorizationParam(getDeploymentStatus))
|
|
63
|
-
});
|
|
64
|
-
/**
|
|
65
|
-
* Get an application deployment health
|
|
66
|
-
*/
|
|
67
|
-
Object.defineProperty(this, "applicationDeploymentHealth", {
|
|
68
|
-
enumerable: true,
|
|
69
|
-
configurable: true,
|
|
70
|
-
writable: true,
|
|
71
|
-
value: this.query(removeAuthorizationParam(getDeploymentHealth))
|
|
72
|
-
});
|
|
73
|
-
/**
|
|
74
|
-
* Get an application deployment logs
|
|
75
|
-
*/
|
|
76
|
-
Object.defineProperty(this, "applicationDeploymentLogs", {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
configurable: true,
|
|
79
|
-
writable: true,
|
|
80
|
-
value: this.query(removeAuthorizationParam(getDeploymentLogs))
|
|
81
|
-
});
|
|
82
|
-
/**
|
|
83
|
-
* Get an application runtimes
|
|
84
|
-
*/
|
|
85
|
-
Object.defineProperty(this, "listApplicationRuntimes", {
|
|
86
|
-
enumerable: true,
|
|
87
|
-
configurable: true,
|
|
88
|
-
writable: true,
|
|
89
|
-
value: this.query(removeAuthorizationParam(listRuntimes))
|
|
90
|
-
});
|
|
91
|
-
/**
|
|
92
|
-
* Get list of repositories
|
|
93
|
-
*/
|
|
94
|
-
Object.defineProperty(this, "listRepositories", {
|
|
95
|
-
enumerable: true,
|
|
96
|
-
configurable: true,
|
|
97
|
-
writable: true,
|
|
98
|
-
value: this.query(removeAuthorizationParam(listRepositories))
|
|
99
|
-
});
|
|
100
|
-
/**
|
|
101
|
-
* Get list of images from a repository
|
|
102
|
-
*/
|
|
103
|
-
Object.defineProperty(this, "listRepositoryImages", {
|
|
104
|
-
enumerable: true,
|
|
105
|
-
configurable: true,
|
|
106
|
-
writable: true,
|
|
107
|
-
value: this.query(removeAuthorizationParam(getRepositoryImages))
|
|
108
|
-
});
|
|
109
|
-
/**
|
|
110
|
-
* Create a deploy of the application
|
|
111
|
-
*/
|
|
112
|
-
Object.defineProperty(this, "createDeployment", {
|
|
113
|
-
enumerable: true,
|
|
114
|
-
configurable: true,
|
|
115
|
-
writable: true,
|
|
116
|
-
value: this.mutation(removeAuthorizationParam(createDeployment))
|
|
117
|
-
});
|
|
118
|
-
/**
|
|
119
|
-
* Create an application
|
|
120
|
-
*/
|
|
121
|
-
Object.defineProperty(this, "createApplication", {
|
|
122
|
-
enumerable: true,
|
|
123
|
-
configurable: true,
|
|
124
|
-
writable: true,
|
|
125
|
-
value: this.mutation(removeAuthorizationParam(createApplication))
|
|
126
|
-
});
|
|
127
10
|
/**
|
|
128
11
|
* List foundations
|
|
129
12
|
*/
|
|
@@ -259,6 +142,60 @@ class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
|
259
142
|
writable: true,
|
|
260
143
|
value: this.query(removeAuthorizationParam(getProject))
|
|
261
144
|
});
|
|
145
|
+
/**
|
|
146
|
+
* Get a list of dns records
|
|
147
|
+
*/
|
|
148
|
+
Object.defineProperty(this, "listDnsRecords", {
|
|
149
|
+
enumerable: true,
|
|
150
|
+
configurable: true,
|
|
151
|
+
writable: true,
|
|
152
|
+
value: this.query(removeAuthorizationParam(listDnsRecord))
|
|
153
|
+
});
|
|
154
|
+
/**
|
|
155
|
+
* Create a dns record
|
|
156
|
+
*/
|
|
157
|
+
Object.defineProperty(this, "createDnsRecord", {
|
|
158
|
+
enumerable: true,
|
|
159
|
+
configurable: true,
|
|
160
|
+
writable: true,
|
|
161
|
+
value: this.mutation(removeAuthorizationParam(createDnsRecord))
|
|
162
|
+
});
|
|
163
|
+
/**
|
|
164
|
+
* Get a list of networks
|
|
165
|
+
*/
|
|
166
|
+
Object.defineProperty(this, "listNetworks", {
|
|
167
|
+
enumerable: true,
|
|
168
|
+
configurable: true,
|
|
169
|
+
writable: true,
|
|
170
|
+
value: this.query(removeAuthorizationParam(listNetwork))
|
|
171
|
+
});
|
|
172
|
+
/**
|
|
173
|
+
* Create a network
|
|
174
|
+
*/
|
|
175
|
+
Object.defineProperty(this, "createNetwork", {
|
|
176
|
+
enumerable: true,
|
|
177
|
+
configurable: true,
|
|
178
|
+
writable: true,
|
|
179
|
+
value: this.mutation(removeAuthorizationParam(createNetwork))
|
|
180
|
+
});
|
|
181
|
+
/**
|
|
182
|
+
* Get a list of subnets
|
|
183
|
+
*/
|
|
184
|
+
Object.defineProperty(this, "listSubnets", {
|
|
185
|
+
enumerable: true,
|
|
186
|
+
configurable: true,
|
|
187
|
+
writable: true,
|
|
188
|
+
value: this.query(removeAuthorizationParam(listSubnet))
|
|
189
|
+
});
|
|
190
|
+
/**
|
|
191
|
+
* Create a subnet
|
|
192
|
+
*/
|
|
193
|
+
Object.defineProperty(this, "createSubnet", {
|
|
194
|
+
enumerable: true,
|
|
195
|
+
configurable: true,
|
|
196
|
+
writable: true,
|
|
197
|
+
value: this.mutation(removeAuthorizationParam(createSubnet))
|
|
198
|
+
});
|
|
262
199
|
}
|
|
263
200
|
buildStackSpotError(error) {
|
|
264
201
|
return new DefaultAPIError(error.data, error.status, cntDictionary, error.headers);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-platform.js","sourceRoot":"","sources":["../../src/client/cloud-platform.ts"],"names":[],"mappings":"AACA,OACA,EACE,iBAAiB,EACjB,
|
|
1
|
+
{"version":3,"file":"cloud-platform.js","sourceRoot":"","sources":["../../src/client/cloud-platform.ts"],"names":[],"mappings":"AACA,OACA,EACE,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,SAAS,EACT,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,aAAa,EACb,WAAW,EACX,eAAe,EACf,WAAW,EACX,UAAU,EACV,SAAS,GACV,MAAM,sBAAsB,CAAA;AAC7B,OAAO,IAAI,MAAM,cAAc,CAAA;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AA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udRuntimesClient extends ReactQueryNetworkClient {
|
|
|
130
130
|
authorization: string;
|
|
131
131
|
setAutoscalingRequest: import("../api/cloudRuntimes.js").SetAutoscalingRequest;
|
|
132
132
|
}, "authorization" | "jwtToken"> & {}, import("../api/cloudRuntimes.js").CreateDeploymentResponseV2>;
|
|
133
|
+
/**
|
|
134
|
+
* Configure a schedule for application
|
|
135
|
+
*/
|
|
136
|
+
createSchedule: import("../network/types.js").MutationObject<Omit<{
|
|
137
|
+
scheduleRequest: import("../api/cloudRuntimes.js").ScheduleRequest;
|
|
138
|
+
}, "authorization" | "jwtToken"> & {}, import("../api/cloudRuntimes.js").ScheduleResponse>;
|
|
139
|
+
/**
|
|
140
|
+
* Get application scheduling
|
|
141
|
+
*/
|
|
142
|
+
getScheduling: import("../network/types.js").QueryObject<Omit<{
|
|
143
|
+
applicationId: string;
|
|
144
|
+
runtimeId: string;
|
|
145
|
+
}, "authorization" | "jwtToken"> & {}, import("../api/cloudRuntimes.js").ScheduleResponse[]>;
|
|
133
146
|
}
|
|
134
147
|
export declare const cloudRuntimesClient: CloudRuntimesClient;
|
|
135
148
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-runtimes.d.ts","sourceRoot":"","sources":["../../src/client/cloud-runtimes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"cloud-runtimes.d.ts","sourceRoot":"","sources":["../../src/client/cloud-runtimes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AA4B7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAI5E,cAAM,mBAAoB,SAAQ,uBAAuB;;IAKvD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAGlE;;OAEG;IACH,gBAAgB;;;;2GAAyD;IACzE;;OAEG;IACH,WAAW;;0GAAuD;IAClE;;OAEG;IACH,kBAAkB;;0GAA8D;IAChF;;OAEG;IACH,0BAA0B;;qGAAwD;IAClF;;OAEG;IACH,uCAAuC;;qGAAmE;IAC1G;;OAEG;IACH,qBAAqB;;sGAAsD;IAC3E;;OAEG;IACH,2BAA2B;;0FAA4D;IACvF;;OAEG;IACH,2BAA2B;;0FAA4D;IACvF;;OAEG;IACH,yBAAyB;;qGAA0D;IACnF;;OAEG;IACH,uBAAuB;;sGAAqD;IAC5E;;OAEG;IACH,gBAAgB;;;kGAAyD;IACzE;;OAEG;IACH,oBAAoB;;2FAA4D;IAChF;;OAEG;IACH,gBAAgB;;;mDAA4D;IAC5E;;OAEG;IACH,iBAAiB;;;4FAA6D;IAC9E;;OAEG;IACH,gBAAgB;;;;mDAA4D;IAC5E;;OAEG;IACH,eAAe;;;;mDAA2D;IAC1E;;OAEG;IACH,qBAAqB;;;uFAAmD;IACxE;;OAEG;IACH,uBAAuB;;;+FAAqD;IAC5E;;OAEG;IACH,wBAAwB;;;sGAA0D;IAClF;;OAEG;IACH,cAAc;;4FAA0D;IACxE;;OAEG;IACH,aAAa;;;8FAAsD;CACpE;AAGD,eAAO,MAAM,mBAAmB,qBAA4B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createApplication, createDeployment, defaults, getApplication, getApplicationHistory, getDeployment, getDeploymentHealth, getDeploymentLogs, getDeploymentStatus, getInstances, getLastDeploymentByRuntime, getRepositoryImages, getSecrets, listApplications, listDeployments, listRepositories, listRuntimes,
|
|
1
|
+
import { createApplication, createDeployment, createSchedule, defaults, getApplication, getApplicationHistory, getDeployment, getDeploymentHealth, getDeploymentLogs, getDeploymentStatus, getInstances, getLastDeploymentByRuntime, getRepositoryImages, getScheduling, getSecrets, listApplications, listDeployments, listRepositories, listRuntimes, setAutoscaling, startApplication, stopApplication, } from '../api/cloudRuntimes.js';
|
|
2
2
|
import apis from '../apis.json';
|
|
3
3
|
import { DefaultAPIError } from '../error/DefaultAPIError.js';
|
|
4
4
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
|
|
@@ -176,7 +176,25 @@ class CloudRuntimesClient extends ReactQueryNetworkClient {
|
|
|
176
176
|
enumerable: true,
|
|
177
177
|
configurable: true,
|
|
178
178
|
writable: true,
|
|
179
|
-
value: this.mutation(removeAuthorizationParam(
|
|
179
|
+
value: this.mutation(removeAuthorizationParam(setAutoscaling))
|
|
180
|
+
});
|
|
181
|
+
/**
|
|
182
|
+
* Configure a schedule for application
|
|
183
|
+
*/
|
|
184
|
+
Object.defineProperty(this, "createSchedule", {
|
|
185
|
+
enumerable: true,
|
|
186
|
+
configurable: true,
|
|
187
|
+
writable: true,
|
|
188
|
+
value: this.mutation(removeAuthorizationParam(createSchedule))
|
|
189
|
+
});
|
|
190
|
+
/**
|
|
191
|
+
* Get application scheduling
|
|
192
|
+
*/
|
|
193
|
+
Object.defineProperty(this, "getScheduling", {
|
|
194
|
+
enumerable: true,
|
|
195
|
+
configurable: true,
|
|
196
|
+
writable: true,
|
|
197
|
+
value: this.query(removeAuthorizationParam(getScheduling))
|
|
180
198
|
});
|
|
181
199
|
}
|
|
182
200
|
buildStackSpotError(error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-runtimes.js","sourceRoot":"","sources":["../../src/client/cloud-runtimes.ts"],"names":[],"mappings":"AACA,OACA,EACE,iBAAiB,EACjB,gBAAgB,EAChB,QAAQ,EACR,cAAc,EACd,qBAAqB,EACrB,aAAa,EACb,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,EACZ,0BAA0B,EAC1B,mBAAmB,EACnB,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"cloud-runtimes.js","sourceRoot":"","sources":["../../src/client/cloud-runtimes.ts"],"names":[],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