@stack-spot/portal-network 0.58.2 → 0.58.4
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/cloudRuntimes.d.ts +57 -8
- package/dist/api/cloudRuntimes.d.ts.map +1 -1
- package/dist/api/cloudRuntimes.js +11 -6
- package/dist/api/cloudRuntimes.js.map +1 -1
- package/dist/api/content.d.ts +32 -32
- package/dist/api/content.d.ts.map +1 -1
- package/dist/api/workspaceManager.d.ts +69 -126
- package/dist/api/workspaceManager.d.ts.map +1 -1
- package/dist/api/workspaceManager.js +40 -84
- package/dist/api/workspaceManager.js.map +1 -1
- package/dist/client/account.d.ts +41 -0
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +55 -1
- package/dist/client/account.js.map +1 -1
- package/dist/client/cloud-runtimes.d.ts +20 -6
- package/dist/client/cloud-runtimes.d.ts.map +1 -1
- package/dist/client/cloud-runtimes.js +19 -1
- package/dist/client/cloud-runtimes.js.map +1 -1
- package/dist/client/content.d.ts +30 -1
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +29 -2
- package/dist/client/content.js.map +1 -1
- package/dist/client/workspace-manager.d.ts +42 -2
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +32 -5
- package/dist/client/workspace-manager.js.map +1 -1
- package/dist/client/workspace.d.ts +14 -2
- package/dist/client/workspace.d.ts.map +1 -1
- package/dist/client/workspace.js +10 -1
- package/dist/client/workspace.js.map +1 -1
- package/package.json +1 -1
- package/src/api/cloudRuntimes.ts +96 -16
- package/src/api/content.ts +32 -32
- package/src/api/workspaceManager.ts +108 -209
- package/src/client/account.ts +36 -1
- package/src/client/cloud-runtimes.ts +10 -0
- package/src/client/content.ts +89 -15
- package/src/client/workspace-manager.ts +30 -13
- package/src/client/workspace.ts +6 -1
|
@@ -14,24 +14,6 @@ const oazapfts = Oazapfts.runtime(defaults);
|
|
|
14
14
|
export const servers = {
|
|
15
15
|
generatedServerUrl: "https://workspace-workspace-manager.dev.stackspot.com"
|
|
16
16
|
};
|
|
17
|
-
export type WorkspaceVariableResponse = {
|
|
18
|
-
/** Workspace variable name. */
|
|
19
|
-
name: string;
|
|
20
|
-
/** Workspace variable value. */
|
|
21
|
-
value?: string;
|
|
22
|
-
/** Workspace variable description. */
|
|
23
|
-
description: string;
|
|
24
|
-
/** Workspace variable mandate flag. */
|
|
25
|
-
mandate: boolean;
|
|
26
|
-
/** Variable value source. */
|
|
27
|
-
source: string;
|
|
28
|
-
/** Workspace variable creation data */
|
|
29
|
-
createdAt: string;
|
|
30
|
-
};
|
|
31
|
-
export type UpsertWorkspaceVariableRequest = {
|
|
32
|
-
/** Workspace variable value. */
|
|
33
|
-
value: string;
|
|
34
|
-
};
|
|
35
17
|
export type ExternalItemsResponse = {
|
|
36
18
|
source: string;
|
|
37
19
|
value: string;
|
|
@@ -229,26 +211,6 @@ export type WorkflowActionsRequest = {
|
|
|
229
211
|
actionsBefore: WorkflowActionSimpleRequest[];
|
|
230
212
|
actionsAfter: WorkflowActionSimpleRequest[];
|
|
231
213
|
};
|
|
232
|
-
export type AccountVariableResponse = {
|
|
233
|
-
/** Account variable name */
|
|
234
|
-
name: string;
|
|
235
|
-
/** Account variable value stored */
|
|
236
|
-
value?: string;
|
|
237
|
-
/** Account variable description */
|
|
238
|
-
description: string;
|
|
239
|
-
/** Account variable mandatory flag */
|
|
240
|
-
mandate: boolean;
|
|
241
|
-
/** Account variable creation data */
|
|
242
|
-
createdAt: string;
|
|
243
|
-
};
|
|
244
|
-
export type UpdateAccountVariableRequest = {
|
|
245
|
-
/** New account variable value */
|
|
246
|
-
value?: string;
|
|
247
|
-
/** New account variable description */
|
|
248
|
-
description: string;
|
|
249
|
-
/** New account variable mandatory flag */
|
|
250
|
-
mandate: boolean;
|
|
251
|
-
};
|
|
252
214
|
export type RequiresRequest = {
|
|
253
215
|
/** Connections requires name. */
|
|
254
216
|
selected: string;
|
|
@@ -466,28 +428,6 @@ export type AccountWorkflowCreateRequest = {
|
|
|
466
428
|
export type IdResponseString = {
|
|
467
429
|
id: string;
|
|
468
430
|
};
|
|
469
|
-
export type PaginatedAccountVariableResponse = {
|
|
470
|
-
/** Current page requested */
|
|
471
|
-
currentPage: number;
|
|
472
|
-
/** Last page available */
|
|
473
|
-
lastPage: number;
|
|
474
|
-
/** Page size requested */
|
|
475
|
-
pageSize: number;
|
|
476
|
-
/** Total items found */
|
|
477
|
-
totalItems: number;
|
|
478
|
-
/** Account variables for current page */
|
|
479
|
-
items: AccountVariableResponse[];
|
|
480
|
-
};
|
|
481
|
-
export type CreateAccountVariableRequest = {
|
|
482
|
-
/** Account variable name */
|
|
483
|
-
name: string;
|
|
484
|
-
/** Account variable value */
|
|
485
|
-
value?: string;
|
|
486
|
-
/** Account variable description */
|
|
487
|
-
description: string;
|
|
488
|
-
/** Account variable mandatory flag */
|
|
489
|
-
mandate: boolean;
|
|
490
|
-
};
|
|
491
431
|
export type ManagerRunResponse = {
|
|
492
432
|
environmentName?: string;
|
|
493
433
|
runId: string;
|
|
@@ -747,6 +687,7 @@ export type WorkspacePageResponse = {
|
|
|
747
687
|
pageSize: number;
|
|
748
688
|
lastPage: number;
|
|
749
689
|
totalItems: number;
|
|
690
|
+
totalPages: number;
|
|
750
691
|
items: WorkspaceResponse[];
|
|
751
692
|
};
|
|
752
693
|
export type SimpleStackWithImageResponse = {
|
|
@@ -756,13 +697,6 @@ export type SimpleStackWithImageResponse = {
|
|
|
756
697
|
imageUrl?: string;
|
|
757
698
|
studio: StudioResponse;
|
|
758
699
|
};
|
|
759
|
-
export type PaginatedWorkspaceVariableResponse = {
|
|
760
|
-
currentPage: number;
|
|
761
|
-
pageSize: number;
|
|
762
|
-
lastPage: number;
|
|
763
|
-
totalItems: number;
|
|
764
|
-
items: WorkspaceVariableResponse[];
|
|
765
|
-
};
|
|
766
700
|
export type WorkflowCompleteResponse = {
|
|
767
701
|
workflowId: string;
|
|
768
702
|
name: string;
|
|
@@ -831,6 +765,7 @@ export type SharedInfraPageResponse = {
|
|
|
831
765
|
pageSize: number;
|
|
832
766
|
lastPage: number;
|
|
833
767
|
totalItems: number;
|
|
768
|
+
totalPages: number;
|
|
834
769
|
items: SharedInfraSimplesResponse[];
|
|
835
770
|
};
|
|
836
771
|
export type LinksConsolidateResponse = {
|
|
@@ -977,6 +912,7 @@ export type ApplicationPageResponse = {
|
|
|
977
912
|
pageSize: number;
|
|
978
913
|
lastPage: number;
|
|
979
914
|
totalItems: number;
|
|
915
|
+
totalPages: number;
|
|
980
916
|
items: ApplicationSimpleResponse[];
|
|
981
917
|
};
|
|
982
918
|
export type ApplicationResponse = {
|
|
@@ -1011,6 +947,27 @@ export type ApplicationResponse = {
|
|
|
1011
947
|
/** Application updateAt */
|
|
1012
948
|
updatedAt: string;
|
|
1013
949
|
};
|
|
950
|
+
export type Workspace = {
|
|
951
|
+
id: string;
|
|
952
|
+
name: string;
|
|
953
|
+
};
|
|
954
|
+
export type AccountSharedInfraSimplesResponse = {
|
|
955
|
+
id: string;
|
|
956
|
+
name: string;
|
|
957
|
+
createdAt: string;
|
|
958
|
+
stack?: Stack;
|
|
959
|
+
status: string;
|
|
960
|
+
stackVersion?: StackVersion;
|
|
961
|
+
workspace: Workspace;
|
|
962
|
+
};
|
|
963
|
+
export type AccountSharedInfraPageResponse = {
|
|
964
|
+
currentPage: number;
|
|
965
|
+
pageSize: number;
|
|
966
|
+
lastPage: number;
|
|
967
|
+
totalItems: number;
|
|
968
|
+
totalPages: number;
|
|
969
|
+
items: AccountSharedInfraSimplesResponse[];
|
|
970
|
+
};
|
|
1014
971
|
export type StackActionInputValuesByEnvInWorkspaceContextResponseValueByEnvWorkspaceResponse = {
|
|
1015
972
|
envName: string;
|
|
1016
973
|
value: object;
|
|
@@ -1056,13 +1013,22 @@ export type StackActionInputValuesByEnvInAccountContextResponse = {
|
|
|
1056
1013
|
input?: object;
|
|
1057
1014
|
inputs: object[];
|
|
1058
1015
|
};
|
|
1059
|
-
export type
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1016
|
+
export type AccountApplicationSimpleResponse = {
|
|
1017
|
+
id: string;
|
|
1018
|
+
name: string;
|
|
1019
|
+
createdAt: string;
|
|
1020
|
+
stack?: Stack;
|
|
1021
|
+
status: string;
|
|
1022
|
+
stackVersion?: StackVersion;
|
|
1023
|
+
workspace: Workspace;
|
|
1024
|
+
};
|
|
1025
|
+
export type AccountApplicationPageResponse = {
|
|
1026
|
+
currentPage: number;
|
|
1027
|
+
pageSize: number;
|
|
1028
|
+
lastPage: number;
|
|
1029
|
+
totalItems: number;
|
|
1030
|
+
totalPages: number;
|
|
1031
|
+
items: AccountApplicationSimpleResponse[];
|
|
1066
1032
|
};
|
|
1067
1033
|
export type StacksByAccountWithWorkflowResponseStackVersion = {
|
|
1068
1034
|
stackVersionId: string;
|
|
@@ -1110,32 +1076,6 @@ export type AccountContextStackResponse = {
|
|
|
1110
1076
|
hasVersionsWithContext: boolean;
|
|
1111
1077
|
versions: StackVersionWksResponse[];
|
|
1112
1078
|
};
|
|
1113
|
-
export function workspaceVariableControllerV2FindByName({ accountId, workspaceId, name }: {
|
|
1114
|
-
accountId?: string;
|
|
1115
|
-
workspaceId: string;
|
|
1116
|
-
name: string;
|
|
1117
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1118
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1119
|
-
status: 200;
|
|
1120
|
-
data: WorkspaceVariableResponse;
|
|
1121
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/variables/${encodeURIComponent(name)}`, {
|
|
1122
|
-
...opts,
|
|
1123
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1124
|
-
accountId
|
|
1125
|
-
})
|
|
1126
|
-
}));
|
|
1127
|
-
}
|
|
1128
|
-
export function workspaceVariableControllerV2Upsert({ workspaceId, name, upsertWorkspaceVariableRequest }: {
|
|
1129
|
-
workspaceId: string;
|
|
1130
|
-
name: string;
|
|
1131
|
-
upsertWorkspaceVariableRequest: UpsertWorkspaceVariableRequest;
|
|
1132
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1133
|
-
return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/variables/${encodeURIComponent(name)}`, oazapfts.json({
|
|
1134
|
-
...opts,
|
|
1135
|
-
method: "PUT",
|
|
1136
|
-
body: upsertWorkspaceVariableRequest
|
|
1137
|
-
})));
|
|
1138
|
-
}
|
|
1139
1079
|
export function workflowWorkspaceControllerfindWorkflowStackContext({ workspaceId, stackId, workflowId }: {
|
|
1140
1080
|
workspaceId: string;
|
|
1141
1081
|
stackId: string;
|
|
@@ -1316,38 +1256,6 @@ export function workflowAccountControllerupdateWorkflowActions({ workflowId, wor
|
|
|
1316
1256
|
body: workflowActionsRequest
|
|
1317
1257
|
})));
|
|
1318
1258
|
}
|
|
1319
|
-
export function accountVariableControllerfindByName({ accountId, name }: {
|
|
1320
|
-
accountId?: string;
|
|
1321
|
-
name: string;
|
|
1322
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1323
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1324
|
-
status: 200;
|
|
1325
|
-
data: AccountVariableResponse;
|
|
1326
|
-
}>(`/v1/account/variables/${encodeURIComponent(name)}`, {
|
|
1327
|
-
...opts,
|
|
1328
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1329
|
-
accountId
|
|
1330
|
-
})
|
|
1331
|
-
}));
|
|
1332
|
-
}
|
|
1333
|
-
export function accountVariableControllerupdate({ name, updateAccountVariableRequest }: {
|
|
1334
|
-
name: string;
|
|
1335
|
-
updateAccountVariableRequest: UpdateAccountVariableRequest;
|
|
1336
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1337
|
-
return oazapfts.ok(oazapfts.fetchText(`/v1/account/variables/${encodeURIComponent(name)}`, oazapfts.json({
|
|
1338
|
-
...opts,
|
|
1339
|
-
method: "PUT",
|
|
1340
|
-
body: updateAccountVariableRequest
|
|
1341
|
-
})));
|
|
1342
|
-
}
|
|
1343
|
-
export function accountVariableControllerdelete({ name }: {
|
|
1344
|
-
name: string;
|
|
1345
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1346
|
-
return oazapfts.ok(oazapfts.fetchText(`/v1/account/variables/${encodeURIComponent(name)}`, {
|
|
1347
|
-
...opts,
|
|
1348
|
-
method: "DELETE"
|
|
1349
|
-
}));
|
|
1350
|
-
}
|
|
1351
1259
|
export function workflowStackControllerfindWorkflowStackContext({ stackId, workflowId }: {
|
|
1352
1260
|
stackId: string;
|
|
1353
1261
|
workflowId: string;
|
|
@@ -1460,39 +1368,6 @@ export function workflowAccountControllercreateAccountWorkflow({ accountWorkflow
|
|
|
1460
1368
|
body: accountWorkflowCreateRequest
|
|
1461
1369
|
})));
|
|
1462
1370
|
}
|
|
1463
|
-
export function accountVariableControllerfindAll({ accountId, name, page, size, sortBy, sortDir }: {
|
|
1464
|
-
accountId?: string;
|
|
1465
|
-
name?: string;
|
|
1466
|
-
page?: number;
|
|
1467
|
-
size?: number;
|
|
1468
|
-
sortBy?: "NAME" | "VALUE" | "CREATED_AT";
|
|
1469
|
-
sortDir?: "ASC" | "DESC";
|
|
1470
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1471
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1472
|
-
status: 200;
|
|
1473
|
-
data: PaginatedAccountVariableResponse;
|
|
1474
|
-
}>(`/v1/account/variables${QS.query(QS.explode({
|
|
1475
|
-
name,
|
|
1476
|
-
page,
|
|
1477
|
-
size,
|
|
1478
|
-
sortBy,
|
|
1479
|
-
sortDir
|
|
1480
|
-
}))}`, {
|
|
1481
|
-
...opts,
|
|
1482
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1483
|
-
accountId
|
|
1484
|
-
})
|
|
1485
|
-
}));
|
|
1486
|
-
}
|
|
1487
|
-
export function accountVariableControllercreate({ createAccountVariableRequest }: {
|
|
1488
|
-
createAccountVariableRequest: CreateAccountVariableRequest;
|
|
1489
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1490
|
-
return oazapfts.ok(oazapfts.fetchText("/v1/account/variables", oazapfts.json({
|
|
1491
|
-
...opts,
|
|
1492
|
-
method: "POST",
|
|
1493
|
-
body: createAccountVariableRequest
|
|
1494
|
-
})));
|
|
1495
|
-
}
|
|
1496
1371
|
export function managerRunControllerarchiveApplication({ workspaceId, applicationId }: {
|
|
1497
1372
|
workspaceId: string;
|
|
1498
1373
|
applicationId: string;
|
|
@@ -1591,7 +1466,7 @@ export function contextStackControllergetWorkspaceContext({ workspaceId, stackVe
|
|
|
1591
1466
|
...opts
|
|
1592
1467
|
}));
|
|
1593
1468
|
}
|
|
1594
|
-
export function
|
|
1469
|
+
export function contextgetConsolidatedPluginInputsWithConnectionInterfaces({ workspaceId, stackVersionId, pluginVersionId }: {
|
|
1595
1470
|
workspaceId: string;
|
|
1596
1471
|
stackVersionId: string;
|
|
1597
1472
|
pluginVersionId: string;
|
|
@@ -1603,7 +1478,7 @@ export function contextPluginControllergetConsolidatedPluginInputsWithConnection
|
|
|
1603
1478
|
...opts
|
|
1604
1479
|
}));
|
|
1605
1480
|
}
|
|
1606
|
-
export function
|
|
1481
|
+
export function contextgetConsolidatedPluginInputs({ workspaceId, stackVersionId, pluginVersionId, envName }: {
|
|
1607
1482
|
workspaceId: string;
|
|
1608
1483
|
stackVersionId: string;
|
|
1609
1484
|
pluginVersionId: string;
|
|
@@ -1633,7 +1508,7 @@ export function contextActionControllergetStackActionInputsInWorkspaceContext({
|
|
|
1633
1508
|
...opts
|
|
1634
1509
|
}));
|
|
1635
1510
|
}
|
|
1636
|
-
export function
|
|
1511
|
+
export function contextgetAccountPluginInputs({ stackVersionId, pluginVersionId, envName }: {
|
|
1637
1512
|
stackVersionId: string;
|
|
1638
1513
|
pluginVersionId: string;
|
|
1639
1514
|
envName?: string;
|
|
@@ -1661,7 +1536,7 @@ export function contextActionControllergetStackActionInputsInAccountContext({ st
|
|
|
1661
1536
|
...opts
|
|
1662
1537
|
}));
|
|
1663
1538
|
}
|
|
1664
|
-
export function workspaceControllergetWorkspaces({ name, aclOnly, accountId, page, size, sortBy, sortDir }: {
|
|
1539
|
+
export function workspaceControllergetWorkspaces({ name, aclOnly, accountId, page, size, sortBy, sortDir, tabFilter }: {
|
|
1665
1540
|
name?: string;
|
|
1666
1541
|
aclOnly?: boolean;
|
|
1667
1542
|
accountId?: string;
|
|
@@ -1669,6 +1544,7 @@ export function workspaceControllergetWorkspaces({ name, aclOnly, accountId, pag
|
|
|
1669
1544
|
size?: number;
|
|
1670
1545
|
sortBy?: "NAME" | "DESCRIPTION";
|
|
1671
1546
|
sortDir?: "ASC" | "DESC";
|
|
1547
|
+
tabFilter?: "FAVORITES" | "MY_RESOURCE" | "ALL_RESOURCE";
|
|
1672
1548
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1673
1549
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1674
1550
|
status: 200;
|
|
@@ -1679,7 +1555,8 @@ export function workspaceControllergetWorkspaces({ name, aclOnly, accountId, pag
|
|
|
1679
1555
|
page,
|
|
1680
1556
|
size,
|
|
1681
1557
|
sortBy,
|
|
1682
|
-
sortDir
|
|
1558
|
+
sortDir,
|
|
1559
|
+
tabFilter
|
|
1683
1560
|
}))}`, {
|
|
1684
1561
|
...opts,
|
|
1685
1562
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1698,35 +1575,6 @@ export function workflowWorkspaceControllerlistStacks({ workspaceId, workflowId
|
|
|
1698
1575
|
...opts
|
|
1699
1576
|
}));
|
|
1700
1577
|
}
|
|
1701
|
-
export function workspaceVariableControllerV2FindAll({ workspaceId, accountId, page, size, sortBy, sortDir, mandate, name, showEmptyValues }: {
|
|
1702
|
-
workspaceId: string;
|
|
1703
|
-
accountId?: string;
|
|
1704
|
-
page?: number;
|
|
1705
|
-
size?: number;
|
|
1706
|
-
sortBy?: "NAME" | "VALUE" | "CREATED_AT";
|
|
1707
|
-
sortDir?: "ASC" | "DESC";
|
|
1708
|
-
mandate?: boolean;
|
|
1709
|
-
name?: string;
|
|
1710
|
-
showEmptyValues?: boolean;
|
|
1711
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1712
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1713
|
-
status: 200;
|
|
1714
|
-
data: PaginatedWorkspaceVariableResponse;
|
|
1715
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/variables${QS.query(QS.explode({
|
|
1716
|
-
page,
|
|
1717
|
-
size,
|
|
1718
|
-
sortBy,
|
|
1719
|
-
sortDir,
|
|
1720
|
-
mandate,
|
|
1721
|
-
name,
|
|
1722
|
-
showEmptyValues
|
|
1723
|
-
}))}`, {
|
|
1724
|
-
...opts,
|
|
1725
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1726
|
-
accountId
|
|
1727
|
-
})
|
|
1728
|
-
}));
|
|
1729
|
-
}
|
|
1730
1578
|
export function workflowWorkspaceControllerlistWorkflowByStackIdAndWorkflowType({ workspaceId, stackId, workflowType }: {
|
|
1731
1579
|
workspaceId: string;
|
|
1732
1580
|
stackId: string;
|
|
@@ -1869,7 +1717,7 @@ export function applicationControllergetApplications({ workspaceId, stackVersion
|
|
|
1869
1717
|
name?: string;
|
|
1870
1718
|
page?: number;
|
|
1871
1719
|
size?: number;
|
|
1872
|
-
sortBy?: "NAME" | "CREATED_AT";
|
|
1720
|
+
sortBy?: "NAME" | "CREATED_AT" | "STACK_VERSION" | "STACK";
|
|
1873
1721
|
sortDir?: "ASC" | "DESC";
|
|
1874
1722
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1875
1723
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1936,6 +1784,32 @@ export function applicationControllergetApplicationFilters({ workspaceId }: {
|
|
|
1936
1784
|
...opts
|
|
1937
1785
|
}));
|
|
1938
1786
|
}
|
|
1787
|
+
export function accountSharedInfraControllergetAccountSharedInfraPage({ page, size, sortBy, sortDir, name, tab, stackVersionId, stackId }: {
|
|
1788
|
+
page?: number;
|
|
1789
|
+
size?: number;
|
|
1790
|
+
sortBy?: "NAME" | "CREATED_AT" | "STACK_VERSION" | "STACK";
|
|
1791
|
+
sortDir?: "ASC" | "DESC";
|
|
1792
|
+
name?: string;
|
|
1793
|
+
tab?: "FAVORITES" | "MY_RESOURCE" | "ALL_RESOURCE";
|
|
1794
|
+
stackVersionId?: string;
|
|
1795
|
+
stackId?: string;
|
|
1796
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1797
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1798
|
+
status: 200;
|
|
1799
|
+
data: AccountSharedInfraPageResponse;
|
|
1800
|
+
}>(`/v1/shared-infra${QS.query(QS.explode({
|
|
1801
|
+
page,
|
|
1802
|
+
size,
|
|
1803
|
+
sortBy,
|
|
1804
|
+
sortDir,
|
|
1805
|
+
name,
|
|
1806
|
+
tab,
|
|
1807
|
+
stackVersionId,
|
|
1808
|
+
stackId
|
|
1809
|
+
}))}`, {
|
|
1810
|
+
...opts
|
|
1811
|
+
}));
|
|
1812
|
+
}
|
|
1939
1813
|
export function contextControllergetStackActionInputsInWorkspaceContext({ workspaceId, stackVersionId, actionsVersionId, envName }: {
|
|
1940
1814
|
workspaceId: string;
|
|
1941
1815
|
stackVersionId: string;
|
|
@@ -1965,18 +1839,30 @@ export function contextControllergetStackActionInputsInAccountContext({ stackVer
|
|
|
1965
1839
|
...opts
|
|
1966
1840
|
}));
|
|
1967
1841
|
}
|
|
1968
|
-
export function
|
|
1969
|
-
|
|
1970
|
-
|
|
1842
|
+
export function accountApplicationControllergetAccountApplicationPage({ page, size, sortBy, sortDir, tab, name, stackVersionId, stackId }: {
|
|
1843
|
+
page?: number;
|
|
1844
|
+
size?: number;
|
|
1845
|
+
sortBy?: "NAME" | "CREATED_AT" | "STACK_VERSION" | "STACK";
|
|
1846
|
+
sortDir?: "ASC" | "DESC";
|
|
1847
|
+
tab?: "FAVORITES" | "MY_RESOURCE" | "ALL_RESOURCE";
|
|
1848
|
+
name?: string;
|
|
1849
|
+
stackVersionId?: string;
|
|
1850
|
+
stackId?: string;
|
|
1971
1851
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1972
1852
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1973
1853
|
status: 200;
|
|
1974
|
-
data:
|
|
1975
|
-
}>(`/v1/
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1854
|
+
data: AccountApplicationPageResponse;
|
|
1855
|
+
}>(`/v1/applications${QS.query(QS.explode({
|
|
1856
|
+
page,
|
|
1857
|
+
size,
|
|
1858
|
+
sortBy,
|
|
1859
|
+
sortDir,
|
|
1860
|
+
tab,
|
|
1861
|
+
name,
|
|
1862
|
+
stackVersionId,
|
|
1863
|
+
stackId
|
|
1864
|
+
}))}`, {
|
|
1865
|
+
...opts
|
|
1980
1866
|
}));
|
|
1981
1867
|
}
|
|
1982
1868
|
export function accountStackControllerlistStacksByAccountWithWorkflow({ workspaceId }: {
|
|
@@ -2001,6 +1887,19 @@ export function accountStackControllerlistWorkflowsByStack({ stackId }: {
|
|
|
2001
1887
|
...opts
|
|
2002
1888
|
}));
|
|
2003
1889
|
}
|
|
1890
|
+
export function accountStackControllerlistMostUsedStacksInAppsAndSharedInfras({ accountId }: {
|
|
1891
|
+
accountId: string;
|
|
1892
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1893
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1894
|
+
status: 200;
|
|
1895
|
+
data: string[];
|
|
1896
|
+
}>("/v1/account/stacks/most-used", {
|
|
1897
|
+
...opts,
|
|
1898
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1899
|
+
accountId
|
|
1900
|
+
})
|
|
1901
|
+
}));
|
|
1902
|
+
}
|
|
2004
1903
|
export function accountStackControllerlistVersionsWithContext({ stackVersionId }: {
|
|
2005
1904
|
stackVersionId: string;
|
|
2006
1905
|
}, opts?: Oazapfts.RequestOpts) {
|
package/src/client/account.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HttpError, RequestOpts } from '@oazapfts/runtime'
|
|
2
2
|
import {
|
|
3
3
|
accountDataIsAvailable,
|
|
4
|
+
addAccountMemberFavorite,
|
|
4
5
|
addResourcesToGroup,
|
|
5
6
|
addRoleToMember,
|
|
6
7
|
associateGroupToServiceCredential,
|
|
@@ -16,6 +17,7 @@ import {
|
|
|
16
17
|
deleteAccountRole,
|
|
17
18
|
deleteGroupMapping,
|
|
18
19
|
deleteMember,
|
|
20
|
+
deleteMemberFavorite,
|
|
19
21
|
deletePartner, deleteResourceFromGroup, deleteRole, deleteSso, deleteV1GroupsByGroupId, disablePersonalAccessTokenGeneration,
|
|
20
22
|
disassociateGroupToServiceCredential, enableFidoCredentials,
|
|
21
23
|
getAccess,
|
|
@@ -29,6 +31,7 @@ import {
|
|
|
29
31
|
getGroups,
|
|
30
32
|
getMemberById,
|
|
31
33
|
getMemberGroups,
|
|
34
|
+
getMemberPreferences,
|
|
32
35
|
getMembers,
|
|
33
36
|
getPartnerAccount, getPartnersSharingAllowed,
|
|
34
37
|
getPersonalClientCredentials,
|
|
@@ -46,7 +49,11 @@ import {
|
|
|
46
49
|
getServiceCredentialPermissions,
|
|
47
50
|
getServiceCredentials,
|
|
48
51
|
isCreatedScmCredentials,
|
|
49
|
-
isCreatedScmCredentials1,
|
|
52
|
+
isCreatedScmCredentials1,
|
|
53
|
+
listAccountMemberFavorites,
|
|
54
|
+
listMemberFavoritesByResource,
|
|
55
|
+
listScmCredentials,
|
|
56
|
+
listScmCredentials1, partialUpdateSso, personalAccessTokenAuthorization,
|
|
50
57
|
removeRoleFromMember,
|
|
51
58
|
resetOtp,
|
|
52
59
|
resetPassword, revokeServiceCredential1, save,
|
|
@@ -54,6 +61,7 @@ import {
|
|
|
54
61
|
ssoConfigure, ssoGetAttributesConfig, ssoParseConfigurationFile, update1,
|
|
55
62
|
updateAccountRole,
|
|
56
63
|
updateGroupMapping,
|
|
64
|
+
updateMemberPreferences,
|
|
57
65
|
updatePartnerAccountAdminData,
|
|
58
66
|
updatePartnerAccountData,
|
|
59
67
|
updateResourceActions,
|
|
@@ -505,6 +513,33 @@ class AccountClient extends ReactQueryNetworkClient {
|
|
|
505
513
|
* Updates the attributes in a SSO.
|
|
506
514
|
*/
|
|
507
515
|
updateSSOAttributes = this.mutation(ssoAddAttributes)
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Gets the preferences of a member.
|
|
519
|
+
*/
|
|
520
|
+
preferences = this.query(getMemberPreferences)
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Updates the preferences of a member.
|
|
524
|
+
*/
|
|
525
|
+
updatePreferences = this.mutation(updateMemberPreferences)
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Get account member favorite resources
|
|
529
|
+
*/
|
|
530
|
+
getAccountMemberFavoriteResources = this.query(listAccountMemberFavorites)
|
|
531
|
+
/**
|
|
532
|
+
* Add account member favorite resource
|
|
533
|
+
*/
|
|
534
|
+
addAccountMemberFavoriteResource = this.mutation(addAccountMemberFavorite)
|
|
535
|
+
/**
|
|
536
|
+
* Get member favorite resources by type
|
|
537
|
+
*/
|
|
538
|
+
getMemberFavoriteResourcesByType = this.query(listMemberFavoritesByResource)
|
|
539
|
+
/**
|
|
540
|
+
* Remove resource from member favorites
|
|
541
|
+
*/
|
|
542
|
+
removeResourceFromMemberFavorites = this.mutation(deleteMemberFavorite)
|
|
508
543
|
/**
|
|
509
544
|
* Validate permission access
|
|
510
545
|
*/
|
|
@@ -15,6 +15,8 @@ import
|
|
|
15
15
|
listDeployments,
|
|
16
16
|
listRepositories,
|
|
17
17
|
listRuntimes,
|
|
18
|
+
startApplication,
|
|
19
|
+
stopApplication,
|
|
18
20
|
} from '../api/cloudRuntimes'
|
|
19
21
|
import apis from '../apis.json'
|
|
20
22
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
@@ -83,6 +85,14 @@ class CloudRuntimesClient extends ReactQueryNetworkClient {
|
|
|
83
85
|
* Create an application
|
|
84
86
|
*/
|
|
85
87
|
createApplication = this.mutation(removeAuthorizationParam(createApplication))
|
|
88
|
+
/**
|
|
89
|
+
* Start an application
|
|
90
|
+
*/
|
|
91
|
+
startApplication = this.mutation(removeAuthorizationParam(startApplication))
|
|
92
|
+
/**
|
|
93
|
+
* Stop an application
|
|
94
|
+
*/
|
|
95
|
+
stopApplication = this.mutation(removeAuthorizationParam(stopApplication))
|
|
86
96
|
}
|
|
87
97
|
|
|
88
98
|
|
package/src/client/content.ts
CHANGED
|
@@ -1,22 +1,80 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
2
|
import {
|
|
3
|
-
addAction,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
addAction,
|
|
4
|
+
addLink,
|
|
5
|
+
addWorkflow,
|
|
6
|
+
addWorkspace,
|
|
7
|
+
associateActionToPlugin,
|
|
8
|
+
changeVisibility,
|
|
9
|
+
createStudio,
|
|
10
|
+
defaults,
|
|
11
|
+
deleteAction,
|
|
12
|
+
deleteActionVersion,
|
|
13
|
+
deleteLink,
|
|
14
|
+
deletePluginVersion,
|
|
15
|
+
deleteStudio,
|
|
16
|
+
deleteV1StacksVersionsByStackVersionId,
|
|
17
|
+
delWorkspace,
|
|
18
|
+
deprecateActionVersion,
|
|
19
|
+
deprecatePluginVersion,
|
|
20
|
+
deprecateStackVersionBy,
|
|
21
|
+
downloadAction,
|
|
22
|
+
getActionBySlug,
|
|
23
|
+
getActionsVersions,
|
|
24
|
+
getActionVersionById,
|
|
25
|
+
getAllActionVersions,
|
|
26
|
+
getApplicationDetailsView,
|
|
27
|
+
getApplicationsUsesPlugin,
|
|
28
|
+
getAvailableActionVersionsByActionSlug,
|
|
29
|
+
getDependentPluginsVersions,
|
|
30
|
+
getGetPluginView,
|
|
31
|
+
getInfrastructureEnvironmentsUsesPlugin,
|
|
32
|
+
getListOfInputs,
|
|
33
|
+
getPluginInfrastructureView,
|
|
34
|
+
getPluginModalView,
|
|
35
|
+
getPluginVersions,
|
|
36
|
+
getPluginVersionsNotInUse,
|
|
37
|
+
getPluginVersionUsageSummary,
|
|
38
|
+
getStackUsesPlugin,
|
|
39
|
+
getStackVersionById,
|
|
40
|
+
getStackVersionListByIds,
|
|
41
|
+
getStackWorkspaceDetailView,
|
|
42
|
+
getStackWorkspaces,
|
|
43
|
+
getStarterStackVersionsAndPluginsVersions,
|
|
44
|
+
getStarterUsesPlugin,
|
|
45
|
+
getStudioByIdOrSlug,
|
|
46
|
+
getStudios,
|
|
47
|
+
getStudios1,
|
|
48
|
+
getStudiosToCreateButton,
|
|
49
|
+
getStudioTabs,
|
|
50
|
+
getUnusedStackVersions,
|
|
51
|
+
getWorkflow,
|
|
52
|
+
getWorkflowByStudioSlug,
|
|
53
|
+
getWorkflowDoc,
|
|
54
|
+
listActions,
|
|
13
55
|
listActions1,
|
|
14
56
|
listActions2,
|
|
15
|
-
listActionsByFilters1,
|
|
57
|
+
listActionsByFilters1,
|
|
58
|
+
listConnectionInterfaceTypes,
|
|
59
|
+
listLinksByStackVersion,
|
|
60
|
+
listMostUsedStackVersions,
|
|
61
|
+
listPlugins,
|
|
62
|
+
listPluginVersionByIdsController,
|
|
16
63
|
listReasons,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
64
|
+
listStacks,
|
|
65
|
+
listStacks1,
|
|
66
|
+
listStacksByFilters,
|
|
67
|
+
listStarters,
|
|
68
|
+
listWorkflows,
|
|
69
|
+
listWorkflowVersion,
|
|
70
|
+
listWorkspaces,
|
|
71
|
+
patchStarterV2,
|
|
72
|
+
removeActionFromPlugin,
|
|
73
|
+
removeStackWorkflow,
|
|
74
|
+
stackModalViewSummary,
|
|
75
|
+
stackVersionUsageSummary,
|
|
76
|
+
updateStudio,
|
|
77
|
+
updateStudioTabs,
|
|
20
78
|
} from '../api/content'
|
|
21
79
|
import apis from '../apis.json'
|
|
22
80
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
@@ -241,7 +299,11 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
241
299
|
*/
|
|
242
300
|
actionByActionVersionId = this.query(getActionVersionById)
|
|
243
301
|
/**
|
|
244
|
-
* Gets list of Actions
|
|
302
|
+
* Gets list of Actions V2
|
|
303
|
+
*/
|
|
304
|
+
actionsV2 = this.query(listActions)
|
|
305
|
+
/**
|
|
306
|
+
* Gets list of Actions V1
|
|
245
307
|
*/
|
|
246
308
|
actions = this.query(listActions2)
|
|
247
309
|
/**
|
|
@@ -317,10 +379,22 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
317
379
|
* Gets a stack from a stack version id
|
|
318
380
|
*/
|
|
319
381
|
getStackByVersionId = this.query(getStackVersionById)
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* View all stacks V3 by account
|
|
385
|
+
*/
|
|
386
|
+
getAllStacksV3 = this.query(listStacks)
|
|
387
|
+
|
|
320
388
|
/**
|
|
321
389
|
* View all stacks by account
|
|
322
390
|
*/
|
|
323
391
|
getAllStacks = this.query(listStacks1)
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* List most used stack versions
|
|
395
|
+
*/
|
|
396
|
+
|
|
397
|
+
listMostUsedStackVersions = this.query(listMostUsedStackVersions)
|
|
324
398
|
}
|
|
325
399
|
|
|
326
400
|
export const contentClient = new ContentClient()
|