@stack-spot/portal-network 0.37.0 → 0.38.0
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 +7 -0
- package/dist/api/cloudPlatform.d.ts +117 -58
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +78 -51
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +14 -3
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/cloudPlatform.ts +276 -84
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.38.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.37.0...portal-network@v0.38.0) (2024-10-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* update swagger cloud-platform ([7891d55](https://github.com/stack-spot/portal-commons/commit/7891d5586b2325787f83be7c140277fea8b36e8d))
|
|
9
|
+
|
|
3
10
|
## [0.37.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.36.0...portal-network@v0.37.0) (2024-10-07)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -13,12 +13,11 @@ export type ReplicasConfigRequest = {
|
|
|
13
13
|
/** Minimum number of replicas */
|
|
14
14
|
min?: number;
|
|
15
15
|
/** Maximum number of replicas */
|
|
16
|
-
max
|
|
17
|
-
cpu
|
|
16
|
+
max?: number;
|
|
17
|
+
cpu?: number;
|
|
18
18
|
};
|
|
19
19
|
export type CreateDeploymentRequest = {
|
|
20
20
|
applicationId?: string;
|
|
21
|
-
deploymentId?: string;
|
|
22
21
|
action: "DEPLOY" | "STOP" | "START" | "RESTART" | "REDEPLOY";
|
|
23
22
|
containerPort?: string;
|
|
24
23
|
healthCheckPath?: string;
|
|
@@ -33,46 +32,89 @@ export type CreateDeploymentRequest = {
|
|
|
33
32
|
cpu?: number;
|
|
34
33
|
replicaNum?: ReplicasConfigRequest;
|
|
35
34
|
};
|
|
36
|
-
export type
|
|
37
|
-
deploymentId
|
|
35
|
+
export type CreateDeploymentResponse = {
|
|
36
|
+
deploymentId?: string;
|
|
38
37
|
applicationUrl?: string;
|
|
39
38
|
action: "DEPLOY" | "STOP" | "START" | "RESTART" | "REDEPLOY";
|
|
40
39
|
containerPort?: string;
|
|
41
40
|
healthCheckPath?: string;
|
|
42
41
|
envVars?: {
|
|
43
42
|
[key: string]: string;
|
|
44
|
-
}
|
|
43
|
+
};
|
|
45
44
|
imageUrl?: string;
|
|
46
45
|
versionTag?: string;
|
|
47
46
|
health?: "HEALTH" | "UNHEALTH";
|
|
48
47
|
deploymentStatus?: "UP" | "STOPPED" | "DEPLOYING";
|
|
49
48
|
runtimeId?: string;
|
|
50
|
-
runtimeName?: string;
|
|
51
|
-
runtimeTags?: string[];
|
|
52
|
-
runtimeEnv?: string;
|
|
53
49
|
mem?: number;
|
|
54
50
|
cpu?: number;
|
|
55
51
|
replicaNum?: ReplicasConfigRequest;
|
|
56
52
|
awsAccount?: string;
|
|
57
53
|
idAwsAccount?: string;
|
|
58
54
|
};
|
|
55
|
+
export type ErrorResponse = {
|
|
56
|
+
message: string;
|
|
57
|
+
exception: {
|
|
58
|
+
cause?: {
|
|
59
|
+
stackTrace?: {
|
|
60
|
+
classLoaderName?: string;
|
|
61
|
+
moduleName?: string;
|
|
62
|
+
moduleVersion?: string;
|
|
63
|
+
methodName?: string;
|
|
64
|
+
fileName?: string;
|
|
65
|
+
lineNumber?: number;
|
|
66
|
+
className?: string;
|
|
67
|
+
nativeMethod?: boolean;
|
|
68
|
+
}[];
|
|
69
|
+
message?: string;
|
|
70
|
+
localizedMessage?: string;
|
|
71
|
+
};
|
|
72
|
+
stackTrace?: {
|
|
73
|
+
classLoaderName?: string;
|
|
74
|
+
moduleName?: string;
|
|
75
|
+
moduleVersion?: string;
|
|
76
|
+
methodName?: string;
|
|
77
|
+
fileName?: string;
|
|
78
|
+
lineNumber?: number;
|
|
79
|
+
className?: string;
|
|
80
|
+
nativeMethod?: boolean;
|
|
81
|
+
}[];
|
|
82
|
+
message?: string;
|
|
83
|
+
suppressed?: {
|
|
84
|
+
stackTrace?: {
|
|
85
|
+
classLoaderName?: string;
|
|
86
|
+
moduleName?: string;
|
|
87
|
+
moduleVersion?: string;
|
|
88
|
+
methodName?: string;
|
|
89
|
+
fileName?: string;
|
|
90
|
+
lineNumber?: number;
|
|
91
|
+
className?: string;
|
|
92
|
+
nativeMethod?: boolean;
|
|
93
|
+
}[];
|
|
94
|
+
message?: string;
|
|
95
|
+
localizedMessage?: string;
|
|
96
|
+
}[];
|
|
97
|
+
localizedMessage?: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
59
100
|
export type CreateApplicationRequest = {
|
|
60
101
|
/** The name of the application in kebab-case format. */
|
|
61
102
|
name: string;
|
|
62
103
|
/** The description of the application */
|
|
63
104
|
description: "CONTAINER";
|
|
64
105
|
/** The type of the application */
|
|
65
|
-
|
|
106
|
+
"type": "CONTAINER" | "STATIC";
|
|
107
|
+
creator: string;
|
|
66
108
|
/** The creator of the application. */
|
|
67
109
|
projectId: string;
|
|
68
110
|
};
|
|
69
111
|
export type ApplicationResponse = {
|
|
70
|
-
name
|
|
71
|
-
id
|
|
72
|
-
description
|
|
112
|
+
name?: string;
|
|
113
|
+
id?: string;
|
|
114
|
+
description?: string;
|
|
73
115
|
"type": "CONTAINER" | "STATIC";
|
|
74
|
-
creator
|
|
75
|
-
projectId
|
|
116
|
+
creator?: string;
|
|
117
|
+
projectId?: string;
|
|
76
118
|
url?: string;
|
|
77
119
|
createdAt?: string;
|
|
78
120
|
updatedAt?: string;
|
|
@@ -88,7 +130,7 @@ export type RuntimeResponse = {
|
|
|
88
130
|
"type": "CONTAINER" | "STATIC";
|
|
89
131
|
projectId: string;
|
|
90
132
|
tags: string[];
|
|
91
|
-
env
|
|
133
|
+
env?: string;
|
|
92
134
|
addons: AddOn[];
|
|
93
135
|
};
|
|
94
136
|
export type ListRuntimesResponse = {
|
|
@@ -98,12 +140,13 @@ export type ListRuntimesResponse = {
|
|
|
98
140
|
offset: number;
|
|
99
141
|
};
|
|
100
142
|
export type GetRuntimeByApplicationIdResponse = {
|
|
101
|
-
id
|
|
143
|
+
id?: string;
|
|
102
144
|
name: string;
|
|
103
145
|
description: string;
|
|
104
146
|
"type": "CONTAINER" | "STATIC";
|
|
105
147
|
projectId: string;
|
|
106
148
|
tags: string[];
|
|
149
|
+
env?: string;
|
|
107
150
|
addons: AddOn[];
|
|
108
151
|
};
|
|
109
152
|
export type ListRuntimeByApplicationResponse = {
|
|
@@ -112,10 +155,6 @@ export type ListRuntimeByApplicationResponse = {
|
|
|
112
155
|
limit: number;
|
|
113
156
|
offset: number;
|
|
114
157
|
};
|
|
115
|
-
export type GetRegistryByIdResponse = {
|
|
116
|
-
registryId?: string;
|
|
117
|
-
imageUri: string;
|
|
118
|
-
};
|
|
119
158
|
export type RepositoryResponse = {
|
|
120
159
|
repositoryName: string;
|
|
121
160
|
repositoryUri: string;
|
|
@@ -127,7 +166,7 @@ export type ListRepositoryResponse = {
|
|
|
127
166
|
offset: number;
|
|
128
167
|
};
|
|
129
168
|
export type GetRepositoryImagesResponse = {
|
|
130
|
-
|
|
169
|
+
imageUri: string[];
|
|
131
170
|
};
|
|
132
171
|
export type DeploymentStatusResponse = {
|
|
133
172
|
status: "UP" | "STOPPED" | "DEPLOYING";
|
|
@@ -140,14 +179,34 @@ export type DeploymentHealthResponse = {
|
|
|
140
179
|
};
|
|
141
180
|
export type BasicDeploymentResponse = {
|
|
142
181
|
deploymentId: string;
|
|
143
|
-
runtimeName
|
|
182
|
+
runtimeName?: string;
|
|
144
183
|
deploymentStatus?: "UP" | "STOPPED" | "DEPLOYING";
|
|
145
184
|
runtimeEnv: string;
|
|
146
185
|
};
|
|
186
|
+
export type DeploymentResponse = {
|
|
187
|
+
deploymentId?: string;
|
|
188
|
+
applicationUrl?: string;
|
|
189
|
+
action: "DEPLOY" | "STOP" | "START" | "RESTART" | "REDEPLOY";
|
|
190
|
+
containerPort?: string;
|
|
191
|
+
healthCheckPath?: string;
|
|
192
|
+
envVars?: {
|
|
193
|
+
[key: string]: string;
|
|
194
|
+
};
|
|
195
|
+
imageUrl?: string;
|
|
196
|
+
versionTag?: string;
|
|
197
|
+
health?: "HEALTH" | "UNHEALTH";
|
|
198
|
+
deploymentStatus?: "UP" | "STOPPED" | "DEPLOYING";
|
|
199
|
+
runtimeId?: string;
|
|
200
|
+
mem?: number;
|
|
201
|
+
cpu?: number;
|
|
202
|
+
replicaNum?: ReplicasConfigRequest;
|
|
203
|
+
awsAccount?: string;
|
|
204
|
+
idAwsAccount?: string;
|
|
205
|
+
};
|
|
147
206
|
export type ApplicationHistoryResponse = {
|
|
148
|
-
applicationId
|
|
207
|
+
applicationId?: string;
|
|
149
208
|
runtimeName: string;
|
|
150
|
-
creator
|
|
209
|
+
creator?: string;
|
|
151
210
|
action: "CREATED" | "DEPLOYED" | "STOPPED";
|
|
152
211
|
date: string;
|
|
153
212
|
};
|
|
@@ -165,77 +224,77 @@ export type ListApplicationsResponse = {
|
|
|
165
224
|
limit: number;
|
|
166
225
|
offset: number;
|
|
167
226
|
};
|
|
168
|
-
export declare function createDeployment({ createDeploymentRequest }: {
|
|
227
|
+
export declare function createDeployment({ authorization, createDeploymentRequest }: {
|
|
228
|
+
authorization: string;
|
|
169
229
|
createDeploymentRequest: CreateDeploymentRequest;
|
|
170
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
*/
|
|
174
|
-
export declare function createApplication({ createApplicationRequest }: {
|
|
230
|
+
}, opts?: Oazapfts.RequestOpts): Promise<CreateDeploymentResponse>;
|
|
231
|
+
export declare function createApplication({ authorization, createApplicationRequest }: {
|
|
232
|
+
authorization: string;
|
|
175
233
|
createApplicationRequest: CreateApplicationRequest;
|
|
176
234
|
}, opts?: Oazapfts.RequestOpts): Promise<ApplicationResponse>;
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
*/
|
|
180
|
-
export declare function getApplication({ applicationId }: {
|
|
235
|
+
export declare function getApplication({ authorization, applicationId }: {
|
|
236
|
+
authorization: string;
|
|
181
237
|
applicationId: string;
|
|
182
238
|
}, opts?: Oazapfts.RequestOpts): Promise<ApplicationResponse>;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
export declare function updateApplication({ createApplicationRequest }: {
|
|
239
|
+
export declare function updateApplication({ authorization, applicationId, createApplicationRequest }: {
|
|
240
|
+
authorization: string;
|
|
241
|
+
applicationId: string;
|
|
187
242
|
createApplicationRequest: CreateApplicationRequest;
|
|
188
243
|
}, opts?: Oazapfts.RequestOpts): Promise<ApplicationResponse>;
|
|
189
|
-
export declare function getRuntimeById({ runtimeId }: {
|
|
244
|
+
export declare function getRuntimeById({ authorization, runtimeId }: {
|
|
245
|
+
authorization: string;
|
|
190
246
|
runtimeId: string;
|
|
191
247
|
}, opts?: Oazapfts.RequestOpts): Promise<RuntimeResponse>;
|
|
192
|
-
export declare function listRuntimes({ limit, offset }: {
|
|
248
|
+
export declare function listRuntimes({ authorization, projectId, limit, offset }: {
|
|
249
|
+
authorization: string;
|
|
250
|
+
projectId: string;
|
|
193
251
|
limit?: number;
|
|
194
252
|
offset?: number;
|
|
195
253
|
}, opts?: Oazapfts.RequestOpts): Promise<ListRuntimesResponse>;
|
|
196
|
-
export declare function getRuntimeByApplicationId({ applicationId, limit, offset }: {
|
|
254
|
+
export declare function getRuntimeByApplicationId({ authorization, applicationId, limit, offset }: {
|
|
255
|
+
authorization: string;
|
|
197
256
|
applicationId: string;
|
|
198
257
|
limit?: number;
|
|
199
258
|
offset?: number;
|
|
200
259
|
}, opts?: Oazapfts.RequestOpts): Promise<ListRuntimeByApplicationResponse>;
|
|
201
|
-
export declare function
|
|
202
|
-
|
|
203
|
-
}, opts?: Oazapfts.RequestOpts): Promise<GetRegistryByIdResponse>;
|
|
204
|
-
export declare function listRepositories({ registryId, limit, offset }: {
|
|
205
|
-
registryId: string;
|
|
260
|
+
export declare function listRepositories({ authorization, limit, offset }: {
|
|
261
|
+
authorization: string;
|
|
206
262
|
limit?: number;
|
|
207
263
|
offset?: number;
|
|
208
264
|
}, opts?: Oazapfts.RequestOpts): Promise<ListRepositoryResponse>;
|
|
209
|
-
export declare function getRepositoryImages({ repositoryId }: {
|
|
265
|
+
export declare function getRepositoryImages({ authorization, repositoryId }: {
|
|
266
|
+
authorization: string;
|
|
210
267
|
repositoryId: string;
|
|
211
268
|
}, opts?: Oazapfts.RequestOpts): Promise<GetRepositoryImagesResponse>;
|
|
212
|
-
export declare function getDeploymentStatus({ deploymentId }: {
|
|
269
|
+
export declare function getDeploymentStatus({ authorization, deploymentId }: {
|
|
270
|
+
authorization: string;
|
|
213
271
|
deploymentId: string;
|
|
214
272
|
}, opts?: Oazapfts.RequestOpts): Promise<DeploymentStatusResponse>;
|
|
215
|
-
export declare function getDeploymentLogs({ deploymentId }: {
|
|
273
|
+
export declare function getDeploymentLogs({ authorization, deploymentId }: {
|
|
274
|
+
authorization: string;
|
|
216
275
|
deploymentId: string;
|
|
217
276
|
}, opts?: Oazapfts.RequestOpts): Promise<DeploymentLogResponse>;
|
|
218
|
-
export declare function getDeploymentHealth({ deploymentId }: {
|
|
277
|
+
export declare function getDeploymentHealth({ authorization, deploymentId }: {
|
|
278
|
+
authorization: string;
|
|
219
279
|
deploymentId: string;
|
|
220
280
|
}, opts?: Oazapfts.RequestOpts): Promise<DeploymentHealthResponse>;
|
|
221
281
|
export declare function listDeployments({ applicationId }: {
|
|
222
282
|
applicationId: string;
|
|
223
283
|
}, opts?: Oazapfts.RequestOpts): Promise<BasicDeploymentResponse[]>;
|
|
224
|
-
export declare function getDeployment({ deploymentId }: {
|
|
284
|
+
export declare function getDeployment({ authorization, deploymentId }: {
|
|
285
|
+
authorization: string;
|
|
225
286
|
deploymentId: string;
|
|
226
287
|
}, opts?: Oazapfts.RequestOpts): Promise<DeploymentResponse>;
|
|
227
|
-
export declare function getApplicationHistory({ applicationId, limit, offset }: {
|
|
288
|
+
export declare function getApplicationHistory({ authorization, applicationId, limit, offset }: {
|
|
289
|
+
authorization: string;
|
|
228
290
|
applicationId: string;
|
|
229
291
|
limit?: number;
|
|
230
292
|
offset?: number;
|
|
231
293
|
}, opts?: Oazapfts.RequestOpts): Promise<ListApplicationHistoryResponse>;
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
*/
|
|
235
|
-
export declare function listApplications({ projectId, limit, offset, name }: {
|
|
294
|
+
export declare function listApplications({ authorization, projectId, limit, offset }: {
|
|
295
|
+
authorization: string;
|
|
236
296
|
projectId: string;
|
|
237
297
|
limit?: number;
|
|
238
298
|
offset?: number;
|
|
239
|
-
name?: string;
|
|
240
299
|
}, opts?: Oazapfts.RequestOpts): Promise<ListApplicationsResponse>;
|
|
241
300
|
//# sourceMappingURL=cloudPlatform.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudPlatform.d.ts","sourceRoot":"","sources":["../../src/api/cloudPlatform.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAE9C,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAG9D,CAAC;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG;IAChC,iCAAiC;IACjC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,GAAG,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"cloudPlatform.d.ts","sourceRoot":"","sources":["../../src/api/cloudPlatform.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAE9C,eAAO,MAAM,QAAQ,EAAE,QAAQ,C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AAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,EAAE,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,2CAmB7B;AACD,wBAAgB,gBAAgB,CAAC,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;IAC1E,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,EAAE,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,qCAmB7B"}
|
|
@@ -14,93 +14,115 @@ const oazapfts = Oazapfts.runtime(defaults);
|
|
|
14
14
|
export const servers = {
|
|
15
15
|
generatedServerUrl: "https://cloud-cloud-platform-api.dev.stackspot.com"
|
|
16
16
|
};
|
|
17
|
-
export function createDeployment({ createDeploymentRequest }, opts) {
|
|
17
|
+
export function createDeployment({ authorization, createDeploymentRequest }, opts) {
|
|
18
18
|
return oazapfts.ok(oazapfts.fetchJson("/v1/deployments", oazapfts.json({
|
|
19
19
|
...opts,
|
|
20
20
|
method: "POST",
|
|
21
|
-
body: createDeploymentRequest
|
|
21
|
+
body: createDeploymentRequest,
|
|
22
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
23
|
+
Authorization: authorization
|
|
24
|
+
})
|
|
22
25
|
})));
|
|
23
26
|
}
|
|
24
|
-
|
|
25
|
-
* Create an application.
|
|
26
|
-
*/
|
|
27
|
-
export function createApplication({ createApplicationRequest }, opts) {
|
|
27
|
+
export function createApplication({ authorization, createApplicationRequest }, opts) {
|
|
28
28
|
return oazapfts.ok(oazapfts.fetchJson("/v1/applications", oazapfts.json({
|
|
29
29
|
...opts,
|
|
30
30
|
method: "POST",
|
|
31
|
-
body: createApplicationRequest
|
|
31
|
+
body: createApplicationRequest,
|
|
32
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
33
|
+
Authorization: authorization
|
|
34
|
+
})
|
|
32
35
|
})));
|
|
33
36
|
}
|
|
34
|
-
|
|
35
|
-
* Get an application.
|
|
36
|
-
*/
|
|
37
|
-
export function getApplication({ applicationId }, opts) {
|
|
37
|
+
export function getApplication({ authorization, applicationId }, opts) {
|
|
38
38
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/applications/${encodeURIComponent(applicationId)}`, {
|
|
39
|
-
...opts
|
|
39
|
+
...opts,
|
|
40
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
41
|
+
Authorization: authorization
|
|
42
|
+
})
|
|
40
43
|
}));
|
|
41
44
|
}
|
|
42
|
-
|
|
43
|
-
* Update an application.
|
|
44
|
-
*/
|
|
45
|
-
export function updateApplication({ createApplicationRequest }, opts) {
|
|
45
|
+
export function updateApplication({ authorization, applicationId, createApplicationRequest }, opts) {
|
|
46
46
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/applications/${encodeURIComponent(applicationId)}`, oazapfts.json({
|
|
47
47
|
...opts,
|
|
48
48
|
method: "PATCH",
|
|
49
|
-
body: createApplicationRequest
|
|
49
|
+
body: createApplicationRequest,
|
|
50
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
51
|
+
Authorization: authorization
|
|
52
|
+
})
|
|
50
53
|
})));
|
|
51
54
|
}
|
|
52
|
-
export function getRuntimeById({ runtimeId }, opts) {
|
|
55
|
+
export function getRuntimeById({ authorization, runtimeId }, opts) {
|
|
53
56
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/runtimes/${encodeURIComponent(runtimeId)}`, {
|
|
54
|
-
...opts
|
|
57
|
+
...opts,
|
|
58
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
59
|
+
Authorization: authorization
|
|
60
|
+
})
|
|
55
61
|
}));
|
|
56
62
|
}
|
|
57
|
-
export function listRuntimes({ limit, offset }, opts) {
|
|
58
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/runtimes/
|
|
63
|
+
export function listRuntimes({ authorization, projectId, limit, offset }, opts) {
|
|
64
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/runtimes/projects/${encodeURIComponent(projectId)}${QS.query(QS.explode({
|
|
59
65
|
limit,
|
|
60
66
|
offset
|
|
61
67
|
}))}`, {
|
|
62
|
-
...opts
|
|
68
|
+
...opts,
|
|
69
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
70
|
+
Authorization: authorization
|
|
71
|
+
})
|
|
63
72
|
}));
|
|
64
73
|
}
|
|
65
|
-
export function getRuntimeByApplicationId({ applicationId, limit, offset }, opts) {
|
|
74
|
+
export function getRuntimeByApplicationId({ authorization, applicationId, limit, offset }, opts) {
|
|
66
75
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/runtimes/application/${encodeURIComponent(applicationId)}${QS.query(QS.explode({
|
|
67
76
|
limit,
|
|
68
77
|
offset
|
|
69
78
|
}))}`, {
|
|
70
|
-
...opts
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/registries/${encodeURIComponent(registryId)}`, {
|
|
75
|
-
...opts
|
|
79
|
+
...opts,
|
|
80
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
81
|
+
Authorization: authorization
|
|
82
|
+
})
|
|
76
83
|
}));
|
|
77
84
|
}
|
|
78
|
-
export function listRepositories({
|
|
79
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/registries
|
|
85
|
+
export function listRepositories({ authorization, limit, offset }, opts) {
|
|
86
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/registries/repositories${QS.query(QS.explode({
|
|
80
87
|
limit,
|
|
81
88
|
offset
|
|
82
89
|
}))}`, {
|
|
83
|
-
...opts
|
|
90
|
+
...opts,
|
|
91
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
92
|
+
Authorization: authorization
|
|
93
|
+
})
|
|
84
94
|
}));
|
|
85
95
|
}
|
|
86
|
-
export function getRepositoryImages({ repositoryId }, opts) {
|
|
96
|
+
export function getRepositoryImages({ authorization, repositoryId }, opts) {
|
|
87
97
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/registries/repositories/${encodeURIComponent(repositoryId)}/images`, {
|
|
88
|
-
...opts
|
|
98
|
+
...opts,
|
|
99
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
100
|
+
Authorization: authorization
|
|
101
|
+
})
|
|
89
102
|
}));
|
|
90
103
|
}
|
|
91
|
-
export function getDeploymentStatus({ deploymentId }, opts) {
|
|
104
|
+
export function getDeploymentStatus({ authorization, deploymentId }, opts) {
|
|
92
105
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/deployments/${encodeURIComponent(deploymentId)}/status`, {
|
|
93
|
-
...opts
|
|
106
|
+
...opts,
|
|
107
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
108
|
+
Authorization: authorization
|
|
109
|
+
})
|
|
94
110
|
}));
|
|
95
111
|
}
|
|
96
|
-
export function getDeploymentLogs({ deploymentId }, opts) {
|
|
112
|
+
export function getDeploymentLogs({ authorization, deploymentId }, opts) {
|
|
97
113
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/deployments/${encodeURIComponent(deploymentId)}/logs`, {
|
|
98
|
-
...opts
|
|
114
|
+
...opts,
|
|
115
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
116
|
+
Authorization: authorization
|
|
117
|
+
})
|
|
99
118
|
}));
|
|
100
119
|
}
|
|
101
|
-
export function getDeploymentHealth({ deploymentId }, opts) {
|
|
120
|
+
export function getDeploymentHealth({ authorization, deploymentId }, opts) {
|
|
102
121
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/deployments/${encodeURIComponent(deploymentId)}/health`, {
|
|
103
|
-
...opts
|
|
122
|
+
...opts,
|
|
123
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
124
|
+
Authorization: authorization
|
|
125
|
+
})
|
|
104
126
|
}));
|
|
105
127
|
}
|
|
106
128
|
export function listDeployments({ applicationId }, opts) {
|
|
@@ -108,29 +130,34 @@ export function listDeployments({ applicationId }, opts) {
|
|
|
108
130
|
...opts
|
|
109
131
|
}));
|
|
110
132
|
}
|
|
111
|
-
export function getDeployment({ deploymentId }, opts) {
|
|
133
|
+
export function getDeployment({ authorization, deploymentId }, opts) {
|
|
112
134
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/deployments/details/${encodeURIComponent(deploymentId)}`, {
|
|
113
|
-
...opts
|
|
135
|
+
...opts,
|
|
136
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
137
|
+
Authorization: authorization
|
|
138
|
+
})
|
|
114
139
|
}));
|
|
115
140
|
}
|
|
116
|
-
export function getApplicationHistory({ applicationId, limit, offset }, opts) {
|
|
141
|
+
export function getApplicationHistory({ authorization, applicationId, limit, offset }, opts) {
|
|
117
142
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/applications/${encodeURIComponent(applicationId)}/history${QS.query(QS.explode({
|
|
118
143
|
limit,
|
|
119
144
|
offset
|
|
120
145
|
}))}`, {
|
|
121
|
-
...opts
|
|
146
|
+
...opts,
|
|
147
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
148
|
+
Authorization: authorization
|
|
149
|
+
})
|
|
122
150
|
}));
|
|
123
151
|
}
|
|
124
|
-
|
|
125
|
-
* List applications.
|
|
126
|
-
*/
|
|
127
|
-
export function listApplications({ projectId, limit, offset, name }, opts) {
|
|
152
|
+
export function listApplications({ authorization, projectId, limit, offset }, opts) {
|
|
128
153
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/applications/project/${encodeURIComponent(projectId)}${QS.query(QS.explode({
|
|
129
154
|
limit,
|
|
130
|
-
offset
|
|
131
|
-
name
|
|
155
|
+
offset
|
|
132
156
|
}))}`, {
|
|
133
|
-
...opts
|
|
157
|
+
...opts,
|
|
158
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
159
|
+
Authorization: authorization
|
|
160
|
+
})
|
|
134
161
|
}));
|
|
135
162
|
}
|
|
136
163
|
//# sourceMappingURL=cloudPlatform.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudPlatform.js","sourceRoot":"","sources":["../../src/api/cloudPlatform.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAC9C,MAAM,CAAC,MAAM,QAAQ,GAA8C;IAC/D,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,oDAAoD;CAChE,CAAC;AACF,MAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC5C,MAAM,CAAC,MAAM,OAAO,GAAG;IACnB,kBAAkB,EAAE,oDAAoD;CAC3E,CAAC;
|
|
1
|
+
{"version":3,"file":"cloudPlatform.js","sourceRoot":"","sources":["../../src/api/cloudPlatform.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAC9C,MAAM,CAAC,MAAM,QAAQ,GAA8C;IAC/D,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,oDAAoD;CAChE,CAAC;AACF,MAAM,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC5C,MAAM,CAAC,MAAM,OAAO,GAAG;IACnB,kBAAkB,EAAE,oDAAoD;CAC3E,CAAC;AAwNF,MAAM,UAAU,gBAAgB,CAAC,EAAE,aAAa,EAAE,uBAAuB,EAGxE,EAAE,IAA2B;IAC1B,OAAO,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,SAAS,CASlC,iBAAiB,EAAE,QAAQ,CAAC,IAAI,CAA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AE;YAC1C,aAAa,EAAE,aAAa;SAC/B,CAAC;KACL,CAAC,CAAC,CAAC;AACR,CAAC;AACD,MAAM,UAAU,qBAAqB,CAAC,EAAE,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAKlF,EAAE,IAA2B;IAC1B,OAAO,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,SAAS,CASlC,oBAAoB,kBAAkB,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC;QACnF,KAAK;QACL,MAAM;KACT,CAAC,CAAC,EAAE,EAAE;QACH,GAAG,IAAI;QACP,OAAO,EAAE,QAAQ,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,EAAE;YAC1C,aAAa,EAAE,aAAa;SAC/B,CAAC;KACL,CAAC,CAAC,CAAC;AACR,CAAC;AACD,MAAM,UAAU,gBAAgB,CAAC,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAKzE,EAAE,IAA2B;IAC1B,OAAO,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,SAAS,CASlC,4BAA4B,kBAAkB,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC;QAC/E,KAAK;QACL,MAAM;KACT,CAAC,CAAC,EAAE,EAAE;QACH,GAAG,IAAI;QACP,OAAO,EAAE,QAAQ,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,EAAE;YAC1C,aAAa,EAAE,aAAa;SAC/B,CAAC;KACL,CAAC,CAAC,CAAC;AACR,CAAC"}
|
|
@@ -8,21 +8,23 @@ declare class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
|
8
8
|
* Get list of applications
|
|
9
9
|
*/
|
|
10
10
|
listApplications: import("../network/types.js").QueryObject<{
|
|
11
|
+
authorization: string;
|
|
11
12
|
projectId: string;
|
|
12
13
|
limit?: number | undefined;
|
|
13
14
|
offset?: number | undefined;
|
|
14
|
-
name?: string | undefined;
|
|
15
15
|
}, import("../api/cloudPlatform.js").ListApplicationsResponse>;
|
|
16
16
|
/**
|
|
17
17
|
* Get an application by id
|
|
18
18
|
*/
|
|
19
19
|
application: import("../network/types.js").QueryObject<{
|
|
20
|
+
authorization: string;
|
|
20
21
|
applicationId: string;
|
|
21
22
|
}, import("../api/cloudPlatform.js").ApplicationResponse>;
|
|
22
23
|
/**
|
|
23
24
|
* Get an application history
|
|
24
25
|
*/
|
|
25
26
|
applicationHistory: import("../network/types.js").QueryObject<{
|
|
27
|
+
authorization: string;
|
|
26
28
|
applicationId: string;
|
|
27
29
|
limit?: number | undefined;
|
|
28
30
|
offset?: number | undefined;
|
|
@@ -37,30 +39,36 @@ declare class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
|
37
39
|
* Get an application deployment by id
|
|
38
40
|
*/
|
|
39
41
|
applicationDeployment: import("../network/types.js").QueryObject<{
|
|
42
|
+
authorization: string;
|
|
40
43
|
deploymentId: string;
|
|
41
44
|
}, import("../api/cloudPlatform.js").DeploymentResponse>;
|
|
42
45
|
/**
|
|
43
46
|
* Get an application deployment status
|
|
44
47
|
*/
|
|
45
48
|
applicationDeploymentStatus: import("../network/types.js").QueryObject<{
|
|
49
|
+
authorization: string;
|
|
46
50
|
deploymentId: string;
|
|
47
51
|
}, import("../api/cloudPlatform.js").DeploymentStatusResponse>;
|
|
48
52
|
/**
|
|
49
53
|
* Get an application deployment health
|
|
50
54
|
*/
|
|
51
55
|
applicationDeploymentHealth: import("../network/types.js").QueryObject<{
|
|
56
|
+
authorization: string;
|
|
52
57
|
deploymentId: string;
|
|
53
58
|
}, import("../api/cloudPlatform.js").DeploymentHealthResponse>;
|
|
54
59
|
/**
|
|
55
60
|
* Get an application deployment logs
|
|
56
61
|
*/
|
|
57
62
|
applicationDeploymentLogs: import("../network/types.js").QueryObject<{
|
|
63
|
+
authorization: string;
|
|
58
64
|
deploymentId: string;
|
|
59
65
|
}, import("../api/cloudPlatform.js").DeploymentLogResponse>;
|
|
60
66
|
/**
|
|
61
67
|
* Get an application runtimes
|
|
62
68
|
*/
|
|
63
69
|
listApplicationRuntimes: import("../network/types.js").QueryObject<{
|
|
70
|
+
authorization: string;
|
|
71
|
+
projectId: string;
|
|
64
72
|
limit?: number | undefined;
|
|
65
73
|
offset?: number | undefined;
|
|
66
74
|
}, import("../api/cloudPlatform.js").ListRuntimesResponse>;
|
|
@@ -68,7 +76,7 @@ declare class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
|
68
76
|
* Get list of repositories
|
|
69
77
|
*/
|
|
70
78
|
listRepositories: import("../network/types.js").QueryObject<{
|
|
71
|
-
|
|
79
|
+
authorization: string;
|
|
72
80
|
limit?: number | undefined;
|
|
73
81
|
offset?: number | undefined;
|
|
74
82
|
}, import("../api/cloudPlatform.js").ListRepositoryResponse>;
|
|
@@ -76,18 +84,21 @@ declare class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
|
76
84
|
* Get list of images from a repository
|
|
77
85
|
*/
|
|
78
86
|
listRepositoryImages: import("../network/types.js").QueryObject<{
|
|
87
|
+
authorization: string;
|
|
79
88
|
repositoryId: string;
|
|
80
89
|
}, import("../api/cloudPlatform.js").GetRepositoryImagesResponse>;
|
|
81
90
|
/**
|
|
82
91
|
* Create a deploy of the application
|
|
83
92
|
*/
|
|
84
93
|
createDeployment: import("../network/types.js").MutationObject<{
|
|
94
|
+
authorization: string;
|
|
85
95
|
createDeploymentRequest: import("../api/cloudPlatform.js").CreateDeploymentRequest;
|
|
86
|
-
}, import("../api/cloudPlatform.js").
|
|
96
|
+
}, import("../api/cloudPlatform.js").CreateDeploymentResponse>;
|
|
87
97
|
/**
|
|
88
98
|
* Create an application
|
|
89
99
|
*/
|
|
90
100
|
createApplication: import("../network/types.js").MutationObject<{
|
|
101
|
+
authorization: string;
|
|
91
102
|
createApplicationRequest: import("../api/cloudPlatform.js").CreateApplicationRequest;
|
|
92
103
|
}, import("../api/cloudPlatform.js").ApplicationResponse>;
|
|
93
104
|
}
|
|
@@ -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;AAI7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAkB5E,cAAM,mBAAoB,SAAQ,uBAAuB;;IAKvD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAGlE;;OAEG;IACH,gBAAgB;;;;;gEAA+B;IAC/C;;OAEG;IACH,WAAW
|
|
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;AAI7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAkB5E,cAAM,mBAAoB,SAAQ,uBAAuB;;IAKvD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAGlE;;OAEG;IACH,gBAAgB;;;;;gEAA+B;IAC/C;;OAEG;IACH,WAAW;;;2DAA6B;IACxC;;OAEG;IACH,kBAAkB;;;;;sEAAoC;IACtD;;OAEG;IACH,0BAA0B;;iEAA8B;IACxD;;OAEG;IACH,qBAAqB;;;0DAA4B;IACjD;;OAEG;IACH,2BAA2B;;;gEAAkC;IAC7D;;OAEG;IACH,2BAA2B;;;gEAAkC;IAC7D;;OAEG;IACH,yBAAyB;;;6DAAgC;IACzD;;OAEG;IACH,uBAAuB;;;;;4DAA2B;IAClD;;OAEG;IACH,gBAAgB;;;;8DAA+B;IAC/C;;OAEG;IACH,oBAAoB;;;mEAAkC;IACtD;;OAEG;IACH,gBAAgB;;;gEAAkC;IAClD;;OAEG;IACH,iBAAiB;;;2DAAmC;CACrD;AAED,eAAO,MAAM,mBAAmB,qBAA4B,CAAA"}
|
package/package.json
CHANGED
package/src/api/cloudPlatform.ts
CHANGED
|
@@ -18,12 +18,11 @@ export type ReplicasConfigRequest = {
|
|
|
18
18
|
/** Minimum number of replicas */
|
|
19
19
|
min?: number;
|
|
20
20
|
/** Maximum number of replicas */
|
|
21
|
-
max
|
|
22
|
-
cpu
|
|
21
|
+
max?: number;
|
|
22
|
+
cpu?: number;
|
|
23
23
|
};
|
|
24
24
|
export type CreateDeploymentRequest = {
|
|
25
25
|
applicationId?: string;
|
|
26
|
-
deploymentId?: string;
|
|
27
26
|
action: "DEPLOY" | "STOP" | "START" | "RESTART" | "REDEPLOY";
|
|
28
27
|
containerPort?: string;
|
|
29
28
|
healthCheckPath?: string;
|
|
@@ -38,46 +37,89 @@ export type CreateDeploymentRequest = {
|
|
|
38
37
|
cpu?: number;
|
|
39
38
|
replicaNum?: ReplicasConfigRequest;
|
|
40
39
|
};
|
|
41
|
-
export type
|
|
42
|
-
deploymentId
|
|
40
|
+
export type CreateDeploymentResponse = {
|
|
41
|
+
deploymentId?: string;
|
|
43
42
|
applicationUrl?: string;
|
|
44
43
|
action: "DEPLOY" | "STOP" | "START" | "RESTART" | "REDEPLOY";
|
|
45
44
|
containerPort?: string;
|
|
46
45
|
healthCheckPath?: string;
|
|
47
46
|
envVars?: {
|
|
48
47
|
[key: string]: string;
|
|
49
|
-
}
|
|
48
|
+
};
|
|
50
49
|
imageUrl?: string;
|
|
51
50
|
versionTag?: string;
|
|
52
51
|
health?: "HEALTH" | "UNHEALTH";
|
|
53
52
|
deploymentStatus?: "UP" | "STOPPED" | "DEPLOYING";
|
|
54
53
|
runtimeId?: string;
|
|
55
|
-
runtimeName?: string;
|
|
56
|
-
runtimeTags?: string[];
|
|
57
|
-
runtimeEnv?: string;
|
|
58
54
|
mem?: number;
|
|
59
55
|
cpu?: number;
|
|
60
56
|
replicaNum?: ReplicasConfigRequest;
|
|
61
57
|
awsAccount?: string;
|
|
62
58
|
idAwsAccount?: string;
|
|
63
59
|
};
|
|
60
|
+
export type ErrorResponse = {
|
|
61
|
+
message: string;
|
|
62
|
+
exception: {
|
|
63
|
+
cause?: {
|
|
64
|
+
stackTrace?: {
|
|
65
|
+
classLoaderName?: string;
|
|
66
|
+
moduleName?: string;
|
|
67
|
+
moduleVersion?: string;
|
|
68
|
+
methodName?: string;
|
|
69
|
+
fileName?: string;
|
|
70
|
+
lineNumber?: number;
|
|
71
|
+
className?: string;
|
|
72
|
+
nativeMethod?: boolean;
|
|
73
|
+
}[];
|
|
74
|
+
message?: string;
|
|
75
|
+
localizedMessage?: string;
|
|
76
|
+
};
|
|
77
|
+
stackTrace?: {
|
|
78
|
+
classLoaderName?: string;
|
|
79
|
+
moduleName?: string;
|
|
80
|
+
moduleVersion?: string;
|
|
81
|
+
methodName?: string;
|
|
82
|
+
fileName?: string;
|
|
83
|
+
lineNumber?: number;
|
|
84
|
+
className?: string;
|
|
85
|
+
nativeMethod?: boolean;
|
|
86
|
+
}[];
|
|
87
|
+
message?: string;
|
|
88
|
+
suppressed?: {
|
|
89
|
+
stackTrace?: {
|
|
90
|
+
classLoaderName?: string;
|
|
91
|
+
moduleName?: string;
|
|
92
|
+
moduleVersion?: string;
|
|
93
|
+
methodName?: string;
|
|
94
|
+
fileName?: string;
|
|
95
|
+
lineNumber?: number;
|
|
96
|
+
className?: string;
|
|
97
|
+
nativeMethod?: boolean;
|
|
98
|
+
}[];
|
|
99
|
+
message?: string;
|
|
100
|
+
localizedMessage?: string;
|
|
101
|
+
}[];
|
|
102
|
+
localizedMessage?: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
64
105
|
export type CreateApplicationRequest = {
|
|
65
106
|
/** The name of the application in kebab-case format. */
|
|
66
107
|
name: string;
|
|
67
108
|
/** The description of the application */
|
|
68
109
|
description: "CONTAINER";
|
|
69
110
|
/** The type of the application */
|
|
70
|
-
|
|
111
|
+
"type": "CONTAINER" | "STATIC";
|
|
112
|
+
creator: string;
|
|
71
113
|
/** The creator of the application. */
|
|
72
114
|
projectId: string;
|
|
73
115
|
};
|
|
74
116
|
export type ApplicationResponse = {
|
|
75
|
-
name
|
|
76
|
-
id
|
|
77
|
-
description
|
|
117
|
+
name?: string;
|
|
118
|
+
id?: string;
|
|
119
|
+
description?: string;
|
|
78
120
|
"type": "CONTAINER" | "STATIC";
|
|
79
|
-
creator
|
|
80
|
-
projectId
|
|
121
|
+
creator?: string;
|
|
122
|
+
projectId?: string;
|
|
81
123
|
url?: string;
|
|
82
124
|
createdAt?: string;
|
|
83
125
|
updatedAt?: string;
|
|
@@ -93,7 +135,7 @@ export type RuntimeResponse = {
|
|
|
93
135
|
"type": "CONTAINER" | "STATIC";
|
|
94
136
|
projectId: string;
|
|
95
137
|
tags: string[];
|
|
96
|
-
env
|
|
138
|
+
env?: string;
|
|
97
139
|
addons: AddOn[];
|
|
98
140
|
};
|
|
99
141
|
export type ListRuntimesResponse = {
|
|
@@ -103,12 +145,13 @@ export type ListRuntimesResponse = {
|
|
|
103
145
|
offset: number;
|
|
104
146
|
};
|
|
105
147
|
export type GetRuntimeByApplicationIdResponse = {
|
|
106
|
-
id
|
|
148
|
+
id?: string;
|
|
107
149
|
name: string;
|
|
108
150
|
description: string;
|
|
109
151
|
"type": "CONTAINER" | "STATIC";
|
|
110
152
|
projectId: string;
|
|
111
153
|
tags: string[];
|
|
154
|
+
env?: string;
|
|
112
155
|
addons: AddOn[];
|
|
113
156
|
};
|
|
114
157
|
export type ListRuntimeByApplicationResponse = {
|
|
@@ -117,10 +160,6 @@ export type ListRuntimeByApplicationResponse = {
|
|
|
117
160
|
limit: number;
|
|
118
161
|
offset: number;
|
|
119
162
|
};
|
|
120
|
-
export type GetRegistryByIdResponse = {
|
|
121
|
-
registryId?: string;
|
|
122
|
-
imageUri: string;
|
|
123
|
-
};
|
|
124
163
|
export type RepositoryResponse = {
|
|
125
164
|
repositoryName: string;
|
|
126
165
|
repositoryUri: string;
|
|
@@ -132,7 +171,7 @@ export type ListRepositoryResponse = {
|
|
|
132
171
|
offset: number;
|
|
133
172
|
};
|
|
134
173
|
export type GetRepositoryImagesResponse = {
|
|
135
|
-
|
|
174
|
+
imageUri: string[];
|
|
136
175
|
};
|
|
137
176
|
export type DeploymentStatusResponse = {
|
|
138
177
|
status: "UP" | "STOPPED" | "DEPLOYING";
|
|
@@ -145,14 +184,34 @@ export type DeploymentHealthResponse = {
|
|
|
145
184
|
};
|
|
146
185
|
export type BasicDeploymentResponse = {
|
|
147
186
|
deploymentId: string;
|
|
148
|
-
runtimeName
|
|
187
|
+
runtimeName?: string;
|
|
149
188
|
deploymentStatus?: "UP" | "STOPPED" | "DEPLOYING";
|
|
150
189
|
runtimeEnv: string;
|
|
151
190
|
};
|
|
191
|
+
export type DeploymentResponse = {
|
|
192
|
+
deploymentId?: string;
|
|
193
|
+
applicationUrl?: string;
|
|
194
|
+
action: "DEPLOY" | "STOP" | "START" | "RESTART" | "REDEPLOY";
|
|
195
|
+
containerPort?: string;
|
|
196
|
+
healthCheckPath?: string;
|
|
197
|
+
envVars?: {
|
|
198
|
+
[key: string]: string;
|
|
199
|
+
};
|
|
200
|
+
imageUrl?: string;
|
|
201
|
+
versionTag?: string;
|
|
202
|
+
health?: "HEALTH" | "UNHEALTH";
|
|
203
|
+
deploymentStatus?: "UP" | "STOPPED" | "DEPLOYING";
|
|
204
|
+
runtimeId?: string;
|
|
205
|
+
mem?: number;
|
|
206
|
+
cpu?: number;
|
|
207
|
+
replicaNum?: ReplicasConfigRequest;
|
|
208
|
+
awsAccount?: string;
|
|
209
|
+
idAwsAccount?: string;
|
|
210
|
+
};
|
|
152
211
|
export type ApplicationHistoryResponse = {
|
|
153
|
-
applicationId
|
|
212
|
+
applicationId?: string;
|
|
154
213
|
runtimeName: string;
|
|
155
|
-
creator
|
|
214
|
+
creator?: string;
|
|
156
215
|
action: "CREATED" | "DEPLOYED" | "STOPPED";
|
|
157
216
|
date: string;
|
|
158
217
|
};
|
|
@@ -170,86 +229,140 @@ export type ListApplicationsResponse = {
|
|
|
170
229
|
limit: number;
|
|
171
230
|
offset: number;
|
|
172
231
|
};
|
|
173
|
-
export function createDeployment({ createDeploymentRequest }: {
|
|
232
|
+
export function createDeployment({ authorization, createDeploymentRequest }: {
|
|
233
|
+
authorization: string;
|
|
174
234
|
createDeploymentRequest: CreateDeploymentRequest;
|
|
175
235
|
}, opts?: Oazapfts.RequestOpts) {
|
|
176
236
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
177
237
|
status: 200;
|
|
178
|
-
data:
|
|
238
|
+
data: CreateDeploymentResponse;
|
|
239
|
+
} | {
|
|
240
|
+
status: 500;
|
|
241
|
+
data: ErrorResponse;
|
|
242
|
+
} | {
|
|
243
|
+
status: 503;
|
|
244
|
+
data: ErrorResponse;
|
|
179
245
|
}>("/v1/deployments", oazapfts.json({
|
|
180
246
|
...opts,
|
|
181
247
|
method: "POST",
|
|
182
|
-
body: createDeploymentRequest
|
|
248
|
+
body: createDeploymentRequest,
|
|
249
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
250
|
+
Authorization: authorization
|
|
251
|
+
})
|
|
183
252
|
})));
|
|
184
253
|
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
*/
|
|
188
|
-
export function createApplication({ createApplicationRequest }: {
|
|
254
|
+
export function createApplication({ authorization, createApplicationRequest }: {
|
|
255
|
+
authorization: string;
|
|
189
256
|
createApplicationRequest: CreateApplicationRequest;
|
|
190
257
|
}, opts?: Oazapfts.RequestOpts) {
|
|
191
258
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
192
259
|
status: 200;
|
|
193
260
|
data: ApplicationResponse;
|
|
261
|
+
} | {
|
|
262
|
+
status: 500;
|
|
263
|
+
data: ErrorResponse;
|
|
264
|
+
} | {
|
|
265
|
+
status: 503;
|
|
266
|
+
data: ErrorResponse;
|
|
194
267
|
}>("/v1/applications", oazapfts.json({
|
|
195
268
|
...opts,
|
|
196
269
|
method: "POST",
|
|
197
|
-
body: createApplicationRequest
|
|
270
|
+
body: createApplicationRequest,
|
|
271
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
272
|
+
Authorization: authorization
|
|
273
|
+
})
|
|
198
274
|
})));
|
|
199
275
|
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
*/
|
|
203
|
-
export function getApplication({ applicationId }: {
|
|
276
|
+
export function getApplication({ authorization, applicationId }: {
|
|
277
|
+
authorization: string;
|
|
204
278
|
applicationId: string;
|
|
205
279
|
}, opts?: Oazapfts.RequestOpts) {
|
|
206
280
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
207
281
|
status: 200;
|
|
208
282
|
data: ApplicationResponse;
|
|
283
|
+
} | {
|
|
284
|
+
status: 500;
|
|
285
|
+
data: ErrorResponse;
|
|
286
|
+
} | {
|
|
287
|
+
status: 503;
|
|
288
|
+
data: ErrorResponse;
|
|
209
289
|
}>(`/v1/applications/${encodeURIComponent(applicationId)}`, {
|
|
210
|
-
...opts
|
|
290
|
+
...opts,
|
|
291
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
292
|
+
Authorization: authorization
|
|
293
|
+
})
|
|
211
294
|
}));
|
|
212
295
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
export function updateApplication({ createApplicationRequest }: {
|
|
296
|
+
export function updateApplication({ authorization, applicationId, createApplicationRequest }: {
|
|
297
|
+
authorization: string;
|
|
298
|
+
applicationId: string;
|
|
217
299
|
createApplicationRequest: CreateApplicationRequest;
|
|
218
300
|
}, opts?: Oazapfts.RequestOpts) {
|
|
219
301
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
220
302
|
status: 200;
|
|
221
303
|
data: ApplicationResponse;
|
|
304
|
+
} | {
|
|
305
|
+
status: 500;
|
|
306
|
+
data: ErrorResponse;
|
|
307
|
+
} | {
|
|
308
|
+
status: 503;
|
|
309
|
+
data: ErrorResponse;
|
|
222
310
|
}>(`/v1/applications/${encodeURIComponent(applicationId)}`, oazapfts.json({
|
|
223
311
|
...opts,
|
|
224
312
|
method: "PATCH",
|
|
225
|
-
body: createApplicationRequest
|
|
313
|
+
body: createApplicationRequest,
|
|
314
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
315
|
+
Authorization: authorization
|
|
316
|
+
})
|
|
226
317
|
})));
|
|
227
318
|
}
|
|
228
|
-
export function getRuntimeById({ runtimeId }: {
|
|
319
|
+
export function getRuntimeById({ authorization, runtimeId }: {
|
|
320
|
+
authorization: string;
|
|
229
321
|
runtimeId: string;
|
|
230
322
|
}, opts?: Oazapfts.RequestOpts) {
|
|
231
323
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
232
324
|
status: 200;
|
|
233
325
|
data: RuntimeResponse;
|
|
326
|
+
} | {
|
|
327
|
+
status: 500;
|
|
328
|
+
data: ErrorResponse;
|
|
329
|
+
} | {
|
|
330
|
+
status: 503;
|
|
331
|
+
data: ErrorResponse;
|
|
234
332
|
}>(`/v1/runtimes/${encodeURIComponent(runtimeId)}`, {
|
|
235
|
-
...opts
|
|
333
|
+
...opts,
|
|
334
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
335
|
+
Authorization: authorization
|
|
336
|
+
})
|
|
236
337
|
}));
|
|
237
338
|
}
|
|
238
|
-
export function listRuntimes({ limit, offset }: {
|
|
339
|
+
export function listRuntimes({ authorization, projectId, limit, offset }: {
|
|
340
|
+
authorization: string;
|
|
341
|
+
projectId: string;
|
|
239
342
|
limit?: number;
|
|
240
343
|
offset?: number;
|
|
241
344
|
}, opts?: Oazapfts.RequestOpts) {
|
|
242
345
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
243
346
|
status: 200;
|
|
244
347
|
data: ListRuntimesResponse;
|
|
245
|
-
}
|
|
348
|
+
} | {
|
|
349
|
+
status: 500;
|
|
350
|
+
data: ErrorResponse;
|
|
351
|
+
} | {
|
|
352
|
+
status: 503;
|
|
353
|
+
data: ErrorResponse;
|
|
354
|
+
}>(`/v1/runtimes/projects/${encodeURIComponent(projectId)}${QS.query(QS.explode({
|
|
246
355
|
limit,
|
|
247
356
|
offset
|
|
248
357
|
}))}`, {
|
|
249
|
-
...opts
|
|
358
|
+
...opts,
|
|
359
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
360
|
+
Authorization: authorization
|
|
361
|
+
})
|
|
250
362
|
}));
|
|
251
363
|
}
|
|
252
|
-
export function getRuntimeByApplicationId({ applicationId, limit, offset }: {
|
|
364
|
+
export function getRuntimeByApplicationId({ authorization, applicationId, limit, offset }: {
|
|
365
|
+
authorization: string;
|
|
253
366
|
applicationId: string;
|
|
254
367
|
limit?: number;
|
|
255
368
|
offset?: number;
|
|
@@ -257,76 +370,124 @@ export function getRuntimeByApplicationId({ applicationId, limit, offset }: {
|
|
|
257
370
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
258
371
|
status: 200;
|
|
259
372
|
data: ListRuntimeByApplicationResponse;
|
|
373
|
+
} | {
|
|
374
|
+
status: 500;
|
|
375
|
+
data: ErrorResponse;
|
|
376
|
+
} | {
|
|
377
|
+
status: 503;
|
|
378
|
+
data: ErrorResponse;
|
|
260
379
|
}>(`/v1/runtimes/application/${encodeURIComponent(applicationId)}${QS.query(QS.explode({
|
|
261
380
|
limit,
|
|
262
381
|
offset
|
|
263
382
|
}))}`, {
|
|
264
|
-
...opts
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
registryId: string;
|
|
269
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
270
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
271
|
-
status: 200;
|
|
272
|
-
data: GetRegistryByIdResponse;
|
|
273
|
-
}>(`/v1/registries/${encodeURIComponent(registryId)}`, {
|
|
274
|
-
...opts
|
|
383
|
+
...opts,
|
|
384
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
385
|
+
Authorization: authorization
|
|
386
|
+
})
|
|
275
387
|
}));
|
|
276
388
|
}
|
|
277
|
-
export function listRepositories({
|
|
278
|
-
|
|
389
|
+
export function listRepositories({ authorization, limit, offset }: {
|
|
390
|
+
authorization: string;
|
|
279
391
|
limit?: number;
|
|
280
392
|
offset?: number;
|
|
281
393
|
}, opts?: Oazapfts.RequestOpts) {
|
|
282
394
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
283
395
|
status: 200;
|
|
284
396
|
data: ListRepositoryResponse;
|
|
285
|
-
}
|
|
397
|
+
} | {
|
|
398
|
+
status: 500;
|
|
399
|
+
data: ErrorResponse;
|
|
400
|
+
} | {
|
|
401
|
+
status: 503;
|
|
402
|
+
data: ErrorResponse;
|
|
403
|
+
}>(`/v1/registries/repositories${QS.query(QS.explode({
|
|
286
404
|
limit,
|
|
287
405
|
offset
|
|
288
406
|
}))}`, {
|
|
289
|
-
...opts
|
|
407
|
+
...opts,
|
|
408
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
409
|
+
Authorization: authorization
|
|
410
|
+
})
|
|
290
411
|
}));
|
|
291
412
|
}
|
|
292
|
-
export function getRepositoryImages({ repositoryId }: {
|
|
413
|
+
export function getRepositoryImages({ authorization, repositoryId }: {
|
|
414
|
+
authorization: string;
|
|
293
415
|
repositoryId: string;
|
|
294
416
|
}, opts?: Oazapfts.RequestOpts) {
|
|
295
417
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
296
418
|
status: 200;
|
|
297
419
|
data: GetRepositoryImagesResponse;
|
|
420
|
+
} | {
|
|
421
|
+
status: 500;
|
|
422
|
+
data: ErrorResponse;
|
|
423
|
+
} | {
|
|
424
|
+
status: 503;
|
|
425
|
+
data: ErrorResponse;
|
|
298
426
|
}>(`/v1/registries/repositories/${encodeURIComponent(repositoryId)}/images`, {
|
|
299
|
-
...opts
|
|
427
|
+
...opts,
|
|
428
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
429
|
+
Authorization: authorization
|
|
430
|
+
})
|
|
300
431
|
}));
|
|
301
432
|
}
|
|
302
|
-
export function getDeploymentStatus({ deploymentId }: {
|
|
433
|
+
export function getDeploymentStatus({ authorization, deploymentId }: {
|
|
434
|
+
authorization: string;
|
|
303
435
|
deploymentId: string;
|
|
304
436
|
}, opts?: Oazapfts.RequestOpts) {
|
|
305
437
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
306
438
|
status: 200;
|
|
307
439
|
data: DeploymentStatusResponse;
|
|
440
|
+
} | {
|
|
441
|
+
status: 500;
|
|
442
|
+
data: ErrorResponse;
|
|
443
|
+
} | {
|
|
444
|
+
status: 503;
|
|
445
|
+
data: ErrorResponse;
|
|
308
446
|
}>(`/v1/deployments/${encodeURIComponent(deploymentId)}/status`, {
|
|
309
|
-
...opts
|
|
447
|
+
...opts,
|
|
448
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
449
|
+
Authorization: authorization
|
|
450
|
+
})
|
|
310
451
|
}));
|
|
311
452
|
}
|
|
312
|
-
export function getDeploymentLogs({ deploymentId }: {
|
|
453
|
+
export function getDeploymentLogs({ authorization, deploymentId }: {
|
|
454
|
+
authorization: string;
|
|
313
455
|
deploymentId: string;
|
|
314
456
|
}, opts?: Oazapfts.RequestOpts) {
|
|
315
457
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
316
458
|
status: 200;
|
|
317
459
|
data: DeploymentLogResponse;
|
|
460
|
+
} | {
|
|
461
|
+
status: 500;
|
|
462
|
+
data: ErrorResponse;
|
|
463
|
+
} | {
|
|
464
|
+
status: 503;
|
|
465
|
+
data: ErrorResponse;
|
|
318
466
|
}>(`/v1/deployments/${encodeURIComponent(deploymentId)}/logs`, {
|
|
319
|
-
...opts
|
|
467
|
+
...opts,
|
|
468
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
469
|
+
Authorization: authorization
|
|
470
|
+
})
|
|
320
471
|
}));
|
|
321
472
|
}
|
|
322
|
-
export function getDeploymentHealth({ deploymentId }: {
|
|
473
|
+
export function getDeploymentHealth({ authorization, deploymentId }: {
|
|
474
|
+
authorization: string;
|
|
323
475
|
deploymentId: string;
|
|
324
476
|
}, opts?: Oazapfts.RequestOpts) {
|
|
325
477
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
326
478
|
status: 200;
|
|
327
479
|
data: DeploymentHealthResponse;
|
|
480
|
+
} | {
|
|
481
|
+
status: 500;
|
|
482
|
+
data: ErrorResponse;
|
|
483
|
+
} | {
|
|
484
|
+
status: 503;
|
|
485
|
+
data: ErrorResponse;
|
|
328
486
|
}>(`/v1/deployments/${encodeURIComponent(deploymentId)}/health`, {
|
|
329
|
-
...opts
|
|
487
|
+
...opts,
|
|
488
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
489
|
+
Authorization: authorization
|
|
490
|
+
})
|
|
330
491
|
}));
|
|
331
492
|
}
|
|
332
493
|
export function listDeployments({ applicationId }: {
|
|
@@ -335,21 +496,38 @@ export function listDeployments({ applicationId }: {
|
|
|
335
496
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
336
497
|
status: 200;
|
|
337
498
|
data: BasicDeploymentResponse[];
|
|
499
|
+
} | {
|
|
500
|
+
status: 500;
|
|
501
|
+
data: ErrorResponse;
|
|
502
|
+
} | {
|
|
503
|
+
status: 503;
|
|
504
|
+
data: ErrorResponse;
|
|
338
505
|
}>(`/v1/deployments/${encodeURIComponent(applicationId)}`, {
|
|
339
506
|
...opts
|
|
340
507
|
}));
|
|
341
508
|
}
|
|
342
|
-
export function getDeployment({ deploymentId }: {
|
|
509
|
+
export function getDeployment({ authorization, deploymentId }: {
|
|
510
|
+
authorization: string;
|
|
343
511
|
deploymentId: string;
|
|
344
512
|
}, opts?: Oazapfts.RequestOpts) {
|
|
345
513
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
346
514
|
status: 200;
|
|
347
515
|
data: DeploymentResponse;
|
|
516
|
+
} | {
|
|
517
|
+
status: 500;
|
|
518
|
+
data: ErrorResponse;
|
|
519
|
+
} | {
|
|
520
|
+
status: 503;
|
|
521
|
+
data: ErrorResponse;
|
|
348
522
|
}>(`/v1/deployments/details/${encodeURIComponent(deploymentId)}`, {
|
|
349
|
-
...opts
|
|
523
|
+
...opts,
|
|
524
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
525
|
+
Authorization: authorization
|
|
526
|
+
})
|
|
350
527
|
}));
|
|
351
528
|
}
|
|
352
|
-
export function getApplicationHistory({ applicationId, limit, offset }: {
|
|
529
|
+
export function getApplicationHistory({ authorization, applicationId, limit, offset }: {
|
|
530
|
+
authorization: string;
|
|
353
531
|
applicationId: string;
|
|
354
532
|
limit?: number;
|
|
355
533
|
offset?: number;
|
|
@@ -357,30 +535,44 @@ export function getApplicationHistory({ applicationId, limit, offset }: {
|
|
|
357
535
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
358
536
|
status: 200;
|
|
359
537
|
data: ListApplicationHistoryResponse;
|
|
538
|
+
} | {
|
|
539
|
+
status: 500;
|
|
540
|
+
data: ErrorResponse;
|
|
541
|
+
} | {
|
|
542
|
+
status: 503;
|
|
543
|
+
data: ErrorResponse;
|
|
360
544
|
}>(`/v1/applications/${encodeURIComponent(applicationId)}/history${QS.query(QS.explode({
|
|
361
545
|
limit,
|
|
362
546
|
offset
|
|
363
547
|
}))}`, {
|
|
364
|
-
...opts
|
|
548
|
+
...opts,
|
|
549
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
550
|
+
Authorization: authorization
|
|
551
|
+
})
|
|
365
552
|
}));
|
|
366
553
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
*/
|
|
370
|
-
export function listApplications({ projectId, limit, offset, name }: {
|
|
554
|
+
export function listApplications({ authorization, projectId, limit, offset }: {
|
|
555
|
+
authorization: string;
|
|
371
556
|
projectId: string;
|
|
372
557
|
limit?: number;
|
|
373
558
|
offset?: number;
|
|
374
|
-
name?: string;
|
|
375
559
|
}, opts?: Oazapfts.RequestOpts) {
|
|
376
560
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
377
561
|
status: 200;
|
|
378
562
|
data: ListApplicationsResponse;
|
|
563
|
+
} | {
|
|
564
|
+
status: 500;
|
|
565
|
+
data: ErrorResponse;
|
|
566
|
+
} | {
|
|
567
|
+
status: 503;
|
|
568
|
+
data: ErrorResponse;
|
|
379
569
|
}>(`/v1/applications/project/${encodeURIComponent(projectId)}${QS.query(QS.explode({
|
|
380
570
|
limit,
|
|
381
|
-
offset
|
|
382
|
-
name
|
|
571
|
+
offset
|
|
383
572
|
}))}`, {
|
|
384
|
-
...opts
|
|
573
|
+
...opts,
|
|
574
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
575
|
+
Authorization: authorization
|
|
576
|
+
})
|
|
385
577
|
}));
|
|
386
578
|
}
|