@stack-spot/portal-network 0.111.0 → 0.112.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 +14 -0
- package/dist/api/cloudPlatformHorizon.d.ts +60 -13
- package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
- package/dist/api/cloudPlatformHorizon.js.map +1 -1
- package/dist/api/workspaceManager.d.ts +70 -51
- package/dist/api/workspaceManager.d.ts.map +1 -1
- package/dist/api/workspaceManager.js +30 -16
- package/dist/api/workspaceManager.js.map +1 -1
- package/dist/client/cloud-platform-horizon.d.ts +31 -3
- package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
- package/dist/client/cloud-platform-horizon.js +31 -4
- package/dist/client/cloud-platform-horizon.js.map +1 -1
- package/dist/client/workspace-manager.d.ts +2 -2
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/cloudPlatformHorizon.ts +60 -13
- package/src/api/workspaceManager.ts +102 -71
- package/src/client/cloud-platform-horizon.ts +15 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-manager.d.ts","sourceRoot":"","sources":["../../src/client/workspace-manager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAqE7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAE5E,OAAO,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,mCAAmC,EAAE,gCAAgC,EAAiB,MAAM,SAAS,CAAA;AAG7K,cAAM,sBAAuB,SAAQ,uBAAuB;;IAK1D,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAIlE;;OAEG;IACH,iBAAiB;;mEAQf;IACF;;OAEG;IACH,mBAAmB;;;cAMjB;IACF;;OAEG;IACH,wBAAwB;;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EG;IACH,oCAAoC;;;;;;;;;kEAAkD;IACtF;;OAEG;IACH,sCAAsC;;8DAAyD;IAC/F;;OAEG;IACH,gCAAgC;;8DAAyD;IAEzF;;OAEG;IACH,oBAAoB;;;;;;;;;gEAA+C;IAEnE;;OAEG;IACH,sBAAsB;;;;;;;;;yEAAoE;IAE1F;;OAEG;IACH,qBAAqB;;;;;;;;;yEAAoE;IAEzF,kEAAkE;IAClE,6BAA6B,sGAAwE;IAErG,4EAA4E;IAC5E,4BAA4B,sGAAuE;IAInG;;OAEG;IACH,gBAAgB;;;;;;;2EAA+C;IAC/D;;OAEG;IACH,kBAAkB;;;kEAAkD;IACpE;;OAEG;IACH,oBAAoB;;;uEAA6C;IACjE;;OAEG;IACH,qBAAqB;;cAAiD;IACtE;;OAEG;IACH,qBAAqB;;;cAAiD;IACtE;;OAEG;IACH,qBAAqB;;cAAiD;IAItE;;OAEG;IACH,kBAAkB;;;;;;;;;;6EAAiD;IACnE;;OAEG;IACH,oBAAoB;;;;oEAAoD;IACxE;;OAEG;IACH,uBAAuB;;;;cAAmD;IAK1E;;OAEG;IACH,uBAAuB;;;iBAAmE;IAE1F;;OAEG;IACH,yBAAyB;;;iBAAmE;IAC5F;;OAEG;IACH,0BAA0B;;;;oEAAuE;IAEjG;;OAEG;IACH,uBAAuB;;;;oEAAuE;IAE9F;;OAEG;IACH,kBAAkB;;;;eAAmG;IAErH;;OAEG;IACH,qBAAqB;;;;eAAmG;IAExH;;OAEG;IACH,oBAAoB
|
|
1
|
+
{"version":3,"file":"workspace-manager.d.ts","sourceRoot":"","sources":["../../src/client/workspace-manager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAqE7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAE5E,OAAO,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,mCAAmC,EA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,UAAU;;;;;cAAyD;IAEnE;;OAEG;IACH,YAAY;;;;eAAmG;IAC/G;;OAEG;IACH,eAAe;;;;eAAmG;CACnH;AAED,eAAO,MAAM,sBAAsB,wBAA+B,CAAA"}
|
package/package.json
CHANGED
|
@@ -18,12 +18,6 @@ export type NameValuePairResource = {
|
|
|
18
18
|
name: string;
|
|
19
19
|
value: string;
|
|
20
20
|
};
|
|
21
|
-
export type MetadataResource = {
|
|
22
|
-
id?: string;
|
|
23
|
-
name: string;
|
|
24
|
-
tags?: NameValuePairResource[];
|
|
25
|
-
labels?: NameValuePairResource[];
|
|
26
|
-
};
|
|
27
21
|
export type FromRef = {
|
|
28
22
|
id: string;
|
|
29
23
|
};
|
|
@@ -137,7 +131,15 @@ export type TenantStatusResource = {
|
|
|
137
131
|
export type TenantResource = {
|
|
138
132
|
apiVersion: string;
|
|
139
133
|
kind: string;
|
|
140
|
-
metadata:
|
|
134
|
+
metadata: {
|
|
135
|
+
organizationName?: string;
|
|
136
|
+
labels?: NameValuePairResource[];
|
|
137
|
+
tags?: NameValuePairResource[];
|
|
138
|
+
name?: string;
|
|
139
|
+
id?: string;
|
|
140
|
+
empty?: boolean;
|
|
141
|
+
[key: string]: object;
|
|
142
|
+
};
|
|
141
143
|
spec?: TenantSpecResource;
|
|
142
144
|
status?: TenantStatusResource;
|
|
143
145
|
};
|
|
@@ -172,7 +174,16 @@ export type RuntimeStatusResource = {
|
|
|
172
174
|
export type RuntimeResource = {
|
|
173
175
|
apiVersion: string;
|
|
174
176
|
kind: string;
|
|
175
|
-
metadata:
|
|
177
|
+
metadata: {
|
|
178
|
+
tenantName?: string;
|
|
179
|
+
organizationName?: string;
|
|
180
|
+
labels?: NameValuePairResource[];
|
|
181
|
+
tags?: NameValuePairResource[];
|
|
182
|
+
name?: string;
|
|
183
|
+
id?: string;
|
|
184
|
+
empty?: boolean;
|
|
185
|
+
[key: string]: object;
|
|
186
|
+
};
|
|
176
187
|
status: RuntimeStatusResource;
|
|
177
188
|
};
|
|
178
189
|
export type RuntimeSpecResource = {
|
|
@@ -184,7 +195,14 @@ export type RuntimeSpecResource = {
|
|
|
184
195
|
export type RuntimeDefinitionResource = {
|
|
185
196
|
apiVersion: string;
|
|
186
197
|
kind: string;
|
|
187
|
-
metadata:
|
|
198
|
+
metadata: {
|
|
199
|
+
labels?: NameValuePairResource[];
|
|
200
|
+
tags?: NameValuePairResource[];
|
|
201
|
+
name?: string;
|
|
202
|
+
id?: string;
|
|
203
|
+
empty?: boolean;
|
|
204
|
+
[key: string]: object;
|
|
205
|
+
};
|
|
188
206
|
spec: RuntimeSpecResource;
|
|
189
207
|
};
|
|
190
208
|
export type TenantControlPlaneResource = {
|
|
@@ -209,7 +227,14 @@ export type OrganizationStatusResource = {
|
|
|
209
227
|
export type OrganizationResource = {
|
|
210
228
|
apiVersion: string;
|
|
211
229
|
kind: string;
|
|
212
|
-
metadata:
|
|
230
|
+
metadata: {
|
|
231
|
+
labels?: NameValuePairResource[];
|
|
232
|
+
tags?: NameValuePairResource[];
|
|
233
|
+
name?: string;
|
|
234
|
+
id?: string;
|
|
235
|
+
empty?: boolean;
|
|
236
|
+
[key: string]: object;
|
|
237
|
+
};
|
|
213
238
|
status: OrganizationStatusResource;
|
|
214
239
|
};
|
|
215
240
|
export type OrganizationSpecResource = {
|
|
@@ -218,7 +243,14 @@ export type OrganizationSpecResource = {
|
|
|
218
243
|
export type OrganizationDefinitionResource = {
|
|
219
244
|
apiVersion: string;
|
|
220
245
|
kind: string;
|
|
221
|
-
metadata:
|
|
246
|
+
metadata: {
|
|
247
|
+
labels?: NameValuePairResource[];
|
|
248
|
+
tags?: NameValuePairResource[];
|
|
249
|
+
name?: string;
|
|
250
|
+
id?: string;
|
|
251
|
+
empty?: boolean;
|
|
252
|
+
[key: string]: object;
|
|
253
|
+
};
|
|
222
254
|
spec?: OrganizationSpecResource;
|
|
223
255
|
};
|
|
224
256
|
export type ApplicationDeploymentMetadataResource = {
|
|
@@ -264,7 +296,14 @@ export type LogStatusResource = {
|
|
|
264
296
|
};
|
|
265
297
|
export type LogResource = {
|
|
266
298
|
apiVersion: string;
|
|
267
|
-
metadata:
|
|
299
|
+
metadata: {
|
|
300
|
+
labels?: NameValuePairResource[];
|
|
301
|
+
tags?: NameValuePairResource[];
|
|
302
|
+
name?: string;
|
|
303
|
+
id?: string;
|
|
304
|
+
empty?: boolean;
|
|
305
|
+
[key: string]: object;
|
|
306
|
+
};
|
|
268
307
|
spec: LogSpecResource;
|
|
269
308
|
status?: LogStatusResource;
|
|
270
309
|
kind: string;
|
|
@@ -286,12 +325,20 @@ export type Pod = {
|
|
|
286
325
|
};
|
|
287
326
|
export type Status = {
|
|
288
327
|
fetchHealthTimestamp: string;
|
|
328
|
+
healthStatus: string;
|
|
289
329
|
pods: Pod[];
|
|
290
330
|
};
|
|
291
331
|
export type HealthResource = {
|
|
292
332
|
apiVersion: string;
|
|
293
333
|
kind: string;
|
|
294
|
-
metadata:
|
|
334
|
+
metadata: {
|
|
335
|
+
labels?: NameValuePairResource[];
|
|
336
|
+
tags?: NameValuePairResource[];
|
|
337
|
+
name?: string;
|
|
338
|
+
id?: string;
|
|
339
|
+
empty?: boolean;
|
|
340
|
+
[key: string]: object;
|
|
341
|
+
};
|
|
295
342
|
spec: Spec;
|
|
296
343
|
status?: Status;
|
|
297
344
|
};
|
|
@@ -8,11 +8,11 @@ import * as Oazapfts from "@oazapfts/runtime";
|
|
|
8
8
|
import * as QS from "@oazapfts/runtime/query";
|
|
9
9
|
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
10
|
headers: {},
|
|
11
|
-
baseUrl: "https://workspace-workspace-manager.
|
|
11
|
+
baseUrl: "https://workspace-workspace-manager.dev.stackspot.com",
|
|
12
12
|
};
|
|
13
13
|
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
14
|
export const servers = {
|
|
15
|
-
generatedServerUrl: "https://workspace-workspace-manager.
|
|
15
|
+
generatedServerUrl: "https://workspace-workspace-manager.dev.stackspot.com"
|
|
16
16
|
};
|
|
17
17
|
export type WorkspaceVariableResponse = {
|
|
18
18
|
/** Workspace variable name. */
|
|
@@ -114,6 +114,44 @@ export type ConnectionInterfaceAttributesByEnv = {
|
|
|
114
114
|
/** List of attributes */
|
|
115
115
|
attributes: ConnectionInterfaceAttribute[];
|
|
116
116
|
};
|
|
117
|
+
export type ValueByEnvResponse = {
|
|
118
|
+
envName: string;
|
|
119
|
+
value: object;
|
|
120
|
+
mandate: boolean;
|
|
121
|
+
source: string;
|
|
122
|
+
};
|
|
123
|
+
export type InputValuesContextResponse = {
|
|
124
|
+
name?: string;
|
|
125
|
+
label: string;
|
|
126
|
+
"type": string;
|
|
127
|
+
items?: string[];
|
|
128
|
+
externalItems?: ExternalItemsResponse;
|
|
129
|
+
inputEnv: boolean;
|
|
130
|
+
"default"?: object;
|
|
131
|
+
required?: boolean;
|
|
132
|
+
pattern?: string;
|
|
133
|
+
help?: string;
|
|
134
|
+
valuesByEnv: ValueByEnvResponse[];
|
|
135
|
+
connectionInterfaceType?: string;
|
|
136
|
+
addQuestion?: string;
|
|
137
|
+
input?: object;
|
|
138
|
+
inputs: object[];
|
|
139
|
+
condition?: InputConditionResponse;
|
|
140
|
+
isGlobal?: boolean;
|
|
141
|
+
scope?: string;
|
|
142
|
+
};
|
|
143
|
+
export type FullInputContextResponse = {
|
|
144
|
+
inputs: InputValuesContextResponse[];
|
|
145
|
+
computedInputs: ComputedInputResponse[];
|
|
146
|
+
globalComputedInputs: ComputedInputResponse[];
|
|
147
|
+
};
|
|
148
|
+
export type UpsertInputContextRequest = {
|
|
149
|
+
/** Context's environment (omit or null for all in account) */
|
|
150
|
+
envName?: string;
|
|
151
|
+
key: string;
|
|
152
|
+
value: object;
|
|
153
|
+
mandate?: boolean;
|
|
154
|
+
};
|
|
117
155
|
export type ValueByEnvWorkspaceResponse = {
|
|
118
156
|
envName: string;
|
|
119
157
|
value: object;
|
|
@@ -724,37 +762,6 @@ export type PluginForAppCreationV2Response = {
|
|
|
724
762
|
requiredConnectionInterfacesByType: PluginForAppCreationV2ResponseRequiredConnectionInterfaceByType[];
|
|
725
763
|
generatesConnectionInterfacesByType: PluginForAppCreationV2ResponseGeneratesConnectionInterfaceByType[];
|
|
726
764
|
};
|
|
727
|
-
export type ValueByEnvResponse = {
|
|
728
|
-
envName: string;
|
|
729
|
-
value: object;
|
|
730
|
-
mandate: boolean;
|
|
731
|
-
source: string;
|
|
732
|
-
};
|
|
733
|
-
export type InputValuesContextResponse = {
|
|
734
|
-
name?: string;
|
|
735
|
-
label: string;
|
|
736
|
-
"type": string;
|
|
737
|
-
items?: string[];
|
|
738
|
-
externalItems?: ExternalItemsResponse;
|
|
739
|
-
inputEnv: boolean;
|
|
740
|
-
"default"?: object;
|
|
741
|
-
required?: boolean;
|
|
742
|
-
pattern?: string;
|
|
743
|
-
help?: string;
|
|
744
|
-
valuesByEnv: ValueByEnvResponse[];
|
|
745
|
-
connectionInterfaceType?: string;
|
|
746
|
-
addQuestion?: string;
|
|
747
|
-
input?: object;
|
|
748
|
-
inputs: object[];
|
|
749
|
-
condition?: InputConditionResponse;
|
|
750
|
-
isGlobal?: boolean;
|
|
751
|
-
scope?: string;
|
|
752
|
-
};
|
|
753
|
-
export type FullInputContextResponse = {
|
|
754
|
-
inputs: InputValuesContextResponse[];
|
|
755
|
-
computedInputs: ComputedInputResponse[];
|
|
756
|
-
globalComputedInputs: ComputedInputResponse[];
|
|
757
|
-
};
|
|
758
765
|
export type WorkspaceResponse = {
|
|
759
766
|
/** Workspace id. */
|
|
760
767
|
id: string;
|
|
@@ -953,9 +960,16 @@ export type SharedInfraResponse = {
|
|
|
953
960
|
/** Extra links */
|
|
954
961
|
extraLinks: ExtraLinkResponse[];
|
|
955
962
|
};
|
|
963
|
+
export type SimpleWorkspaceResponse = {
|
|
964
|
+
id: string;
|
|
965
|
+
name: string;
|
|
966
|
+
description?: string;
|
|
967
|
+
imageUrl?: string;
|
|
968
|
+
};
|
|
956
969
|
export type AppDependencyConnInterfaceResponse = {
|
|
957
970
|
name: string;
|
|
958
971
|
"type": string;
|
|
972
|
+
workspaces: SimpleWorkspaceResponse[];
|
|
959
973
|
};
|
|
960
974
|
export type Dependencies = {
|
|
961
975
|
environmentName: string;
|
|
@@ -963,7 +977,7 @@ export type Dependencies = {
|
|
|
963
977
|
hasApplication: boolean;
|
|
964
978
|
connectionInterfaces: AppDependencyConnInterfaceResponse[];
|
|
965
979
|
};
|
|
966
|
-
export type
|
|
980
|
+
export type DependenciesResponse = {
|
|
967
981
|
canDelete: boolean;
|
|
968
982
|
hasSelfHostedInfra: boolean;
|
|
969
983
|
hasApplication: boolean;
|
|
@@ -1084,12 +1098,6 @@ export type ApplicationResponse = {
|
|
|
1084
1098
|
/** Extra links */
|
|
1085
1099
|
extraLinks: ExtraLinkResponse[];
|
|
1086
1100
|
};
|
|
1087
|
-
export type SimpleWorkspaceResponse = {
|
|
1088
|
-
id: string;
|
|
1089
|
-
name: string;
|
|
1090
|
-
description?: string;
|
|
1091
|
-
imageUrl?: string;
|
|
1092
|
-
};
|
|
1093
1101
|
export type AccountSharedInfraSimpleResponse = {
|
|
1094
1102
|
id: string;
|
|
1095
1103
|
name: string;
|
|
@@ -1318,6 +1326,33 @@ export function connectionInterfaceControllerupdateConnectionInterfaceAttributes
|
|
|
1318
1326
|
body: connectionInterfaceAttributesByEnv
|
|
1319
1327
|
})));
|
|
1320
1328
|
}
|
|
1329
|
+
export function contextWorkflowControllergetWorkspaceWorkflowInputs({ workspaceId, stackVersionId, workflowVersionId, envName }: {
|
|
1330
|
+
workspaceId: string;
|
|
1331
|
+
stackVersionId: string;
|
|
1332
|
+
workflowVersionId: string;
|
|
1333
|
+
envName?: string;
|
|
1334
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1335
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1336
|
+
status: 200;
|
|
1337
|
+
data: FullInputContextResponse;
|
|
1338
|
+
}>(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/workflows/${encodeURIComponent(workflowVersionId)}/inputs${QS.query(QS.explode({
|
|
1339
|
+
envName
|
|
1340
|
+
}))}`, {
|
|
1341
|
+
...opts
|
|
1342
|
+
}));
|
|
1343
|
+
}
|
|
1344
|
+
export function contextControllerupsertWorkflowWorkspaceContext({ workspaceId, stackVersionId, workflowVersionId, body }: {
|
|
1345
|
+
workspaceId: string;
|
|
1346
|
+
stackVersionId: string;
|
|
1347
|
+
workflowVersionId: string;
|
|
1348
|
+
body: UpsertInputContextRequest[];
|
|
1349
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1350
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/workflows/${encodeURIComponent(workflowVersionId)}/inputs`, oazapfts.json({
|
|
1351
|
+
...opts,
|
|
1352
|
+
method: "PUT",
|
|
1353
|
+
body
|
|
1354
|
+
})));
|
|
1355
|
+
}
|
|
1321
1356
|
export function contextControllergetConsolidatedPluginInputs({ workspaceId, stackVersionId, pluginVersionId, envName }: {
|
|
1322
1357
|
workspaceId: string;
|
|
1323
1358
|
stackVersionId: string;
|
|
@@ -1357,6 +1392,31 @@ export function contextControllerupsertWorkspaceActionsInputContext({ workspaceI
|
|
|
1357
1392
|
body
|
|
1358
1393
|
})));
|
|
1359
1394
|
}
|
|
1395
|
+
export function contextWorkflowControllergetAccountWorkflowInputs({ stackVersionId, workflowVersionId, envName }: {
|
|
1396
|
+
stackVersionId: string;
|
|
1397
|
+
workflowVersionId: string;
|
|
1398
|
+
envName?: string;
|
|
1399
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1400
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1401
|
+
status: 200;
|
|
1402
|
+
data: FullInputContextResponse;
|
|
1403
|
+
}>(`/v1/contexts/account/stacks/${encodeURIComponent(stackVersionId)}/workflows/${encodeURIComponent(workflowVersionId)}/inputs${QS.query(QS.explode({
|
|
1404
|
+
envName
|
|
1405
|
+
}))}`, {
|
|
1406
|
+
...opts
|
|
1407
|
+
}));
|
|
1408
|
+
}
|
|
1409
|
+
export function contextControllerupsertWorkflowAccountContext({ stackVersionId, workflowVersionId, body }: {
|
|
1410
|
+
stackVersionId: string;
|
|
1411
|
+
workflowVersionId: string;
|
|
1412
|
+
body: UpsertInputContextRequest[];
|
|
1413
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1414
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/account/stacks/${encodeURIComponent(stackVersionId)}/workflows/${encodeURIComponent(workflowVersionId)}/inputs`, oazapfts.json({
|
|
1415
|
+
...opts,
|
|
1416
|
+
method: "PUT",
|
|
1417
|
+
body
|
|
1418
|
+
})));
|
|
1419
|
+
}
|
|
1360
1420
|
export function contextControllergetAccountPluginInputs({ stackVersionId, pluginVersionId, envName }: {
|
|
1361
1421
|
stackVersionId: string;
|
|
1362
1422
|
pluginVersionId: string;
|
|
@@ -2109,7 +2169,7 @@ export function sharedInfraControllergetSharedInfraDependencies({ workspaceId, s
|
|
|
2109
2169
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2110
2170
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2111
2171
|
status: 200;
|
|
2112
|
-
data:
|
|
2172
|
+
data: DependenciesResponse;
|
|
2113
2173
|
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/dependencies`, {
|
|
2114
2174
|
...opts
|
|
2115
2175
|
}));
|
|
@@ -2245,7 +2305,7 @@ export function applicationControllergetApplicationDependencies({ workspaceId, a
|
|
|
2245
2305
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2246
2306
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2247
2307
|
status: 200;
|
|
2248
|
-
data:
|
|
2308
|
+
data: DependenciesResponse;
|
|
2249
2309
|
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/dependencies`, {
|
|
2250
2310
|
...opts
|
|
2251
2311
|
}));
|
|
@@ -2317,21 +2377,6 @@ export function contextWorkflowControllergetConsolidatedWorkflowInputs({ workspa
|
|
|
2317
2377
|
...opts
|
|
2318
2378
|
}));
|
|
2319
2379
|
}
|
|
2320
|
-
export function contextWorkflowControllergetWorkspaceWorkflowInputs({ workspaceId, stackVersionId, workflowVersionId, envName }: {
|
|
2321
|
-
workspaceId: string;
|
|
2322
|
-
stackVersionId: string;
|
|
2323
|
-
workflowVersionId: string;
|
|
2324
|
-
envName?: string;
|
|
2325
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2326
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2327
|
-
status: 200;
|
|
2328
|
-
data: FullInputContextResponse;
|
|
2329
|
-
}>(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/workflows/${encodeURIComponent(workflowVersionId)}/inputs${QS.query(QS.explode({
|
|
2330
|
-
envName
|
|
2331
|
-
}))}`, {
|
|
2332
|
-
...opts
|
|
2333
|
-
}));
|
|
2334
|
-
}
|
|
2335
2380
|
export function contextControllergetStackActionInputsInWorkspaceContext({ workspaceId, stackVersionId, actionsVersionId, envName }: {
|
|
2336
2381
|
workspaceId: string;
|
|
2337
2382
|
stackVersionId: string;
|
|
@@ -2347,20 +2392,6 @@ export function contextControllergetStackActionInputsInWorkspaceContext({ worksp
|
|
|
2347
2392
|
...opts
|
|
2348
2393
|
}));
|
|
2349
2394
|
}
|
|
2350
|
-
export function contextWorkflowControllergetAccountWorkflowInputs({ stackVersionId, workflowVersionId, envName }: {
|
|
2351
|
-
stackVersionId: string;
|
|
2352
|
-
workflowVersionId: string;
|
|
2353
|
-
envName?: string;
|
|
2354
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2355
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2356
|
-
status: 200;
|
|
2357
|
-
data: FullInputContextResponse;
|
|
2358
|
-
}>(`/v1/contexts/account/stacks/${encodeURIComponent(stackVersionId)}/workflows/${encodeURIComponent(workflowVersionId)}/inputs${QS.query(QS.explode({
|
|
2359
|
-
envName
|
|
2360
|
-
}))}`, {
|
|
2361
|
-
...opts
|
|
2362
|
-
}));
|
|
2363
|
-
}
|
|
2364
2395
|
export function contextControllergetStackActionInputsInAccountContext({ stackVersionId, actionsVersionId, envName }: {
|
|
2365
2396
|
stackVersionId: string;
|
|
2366
2397
|
actionsVersionId: string;
|
|
@@ -5,7 +5,7 @@ import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
|
5
5
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
6
6
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
7
7
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
8
|
-
import { apply, createOrganization, createRuntime1, createTenant1, defaults, deploy, getOrganizationById, getOrganizations, getRuntime1, getTenant1, listApplicationDeployments, listRuntimes, listRuntimes1, listTenants, listTenants1 } from '../api/cloudPlatformHorizon'
|
|
8
|
+
import { apply, createOrganization, createRuntime1, createTenant1, defaults, deploy, findApplicationDeploymentById, getApplicationDeploymentHealth, getApplicationDeploymentLogs, getOrganizationById, getOrganizations, getRuntime1, getTenant1, listApplicationDeployments, listRuntimes, listRuntimes1, listTenants, listTenants1 } from '../api/cloudPlatformHorizon'
|
|
9
9
|
import { baseDictionary } from '../error/dictionary/base'
|
|
10
10
|
|
|
11
11
|
class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
|
|
@@ -24,6 +24,10 @@ class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
|
|
|
24
24
|
* Get a list of organizations
|
|
25
25
|
*/
|
|
26
26
|
listOrganizations= this.query(removeAuthorizationParam(getOrganizations))
|
|
27
|
+
/**
|
|
28
|
+
* Get organization by id
|
|
29
|
+
*/
|
|
30
|
+
getOrganizationById = this.query(removeAuthorizationParam(getOrganizationById))
|
|
27
31
|
/**
|
|
28
32
|
* Get details of an tenant
|
|
29
33
|
*/
|
|
@@ -69,9 +73,17 @@ class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
|
|
|
69
73
|
*/
|
|
70
74
|
deployApplication = this.mutation(removeAuthorizationParam(deploy))
|
|
71
75
|
/**
|
|
72
|
-
* Get
|
|
76
|
+
* Get details of an application deployment
|
|
73
77
|
*/
|
|
74
|
-
|
|
78
|
+
getApplicationDeploymentById = this.query(removeAuthorizationParam(findApplicationDeploymentById))
|
|
79
|
+
/**
|
|
80
|
+
* Get logs from a application deployment
|
|
81
|
+
*/
|
|
82
|
+
getApplicationDeploymentLogs = this.query(removeAuthorizationParam(getApplicationDeploymentLogs))
|
|
83
|
+
/**
|
|
84
|
+
* Get health from a application deployment
|
|
85
|
+
*/
|
|
86
|
+
getApplicationDeploymentHealth= this.query(removeAuthorizationParam(getApplicationDeploymentHealth))
|
|
75
87
|
}
|
|
76
88
|
|
|
77
89
|
export const cloudPlatformHorizonClient = new CloudPlatformHorizonClient()
|