@stack-spot/portal-network 0.35.0 → 0.37.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 +15 -0
- package/dist/api/content.d.ts +103 -38
- package/dist/api/content.d.ts.map +1 -1
- package/dist/api/content.js +35 -21
- package/dist/api/content.js.map +1 -1
- package/dist/api/workspaceManager.d.ts +74 -69
- package/dist/api/workspaceManager.d.ts.map +1 -1
- package/dist/api/workspaceManager.js +68 -68
- package/dist/api/workspaceManager.js.map +1 -1
- package/dist/client/content.d.ts +28 -0
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +29 -1
- package/dist/client/content.js.map +1 -1
- package/dist/client/workspace-manager.d.ts +7 -0
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +32 -23
- package/dist/client/workspace-manager.js.map +1 -1
- package/package.json +1 -1
- package/src/api/content.ts +169 -54
- package/src/api/workspaceManager.ts +82 -77
- package/src/client/content.ts +18 -2
- package/src/client/workspace-manager.ts +76 -71
|
@@ -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.stg.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.stg.stackspot.com"
|
|
16
16
|
};
|
|
17
17
|
export type ExternalItemsResponse = {
|
|
18
18
|
source: string;
|
|
@@ -76,6 +76,10 @@ export type WorkflowContextSaveRequest = {
|
|
|
76
76
|
actionsBefore: ContextWorkflowRequest[];
|
|
77
77
|
actionsAfter: ContextWorkflowRequest[];
|
|
78
78
|
};
|
|
79
|
+
export type AddStackInWorkspaceRequest = {
|
|
80
|
+
/** Stack version id. */
|
|
81
|
+
stackVersionId: string;
|
|
82
|
+
};
|
|
79
83
|
export type ConnectionInterfaceAttribute = {
|
|
80
84
|
/** Attribute key. */
|
|
81
85
|
key: string;
|
|
@@ -357,6 +361,10 @@ export type CreateApplicationResponse = {
|
|
|
357
361
|
workflowId: string;
|
|
358
362
|
logs: string;
|
|
359
363
|
};
|
|
364
|
+
export type StackVersionLatestAvailableResponse = {
|
|
365
|
+
stackVersionId: string;
|
|
366
|
+
semanticVersion: string;
|
|
367
|
+
};
|
|
360
368
|
export type WorkspaceStackResponseStackResponse = {
|
|
361
369
|
id: string;
|
|
362
370
|
version: number;
|
|
@@ -365,6 +373,7 @@ export type WorkspaceStackResponseStackResponse = {
|
|
|
365
373
|
slug: string;
|
|
366
374
|
description: string;
|
|
367
375
|
studio: StudioResponse;
|
|
376
|
+
latestVersionAvailable?: StackVersionLatestAvailableResponse;
|
|
368
377
|
};
|
|
369
378
|
export type WorkspaceStackResponse = {
|
|
370
379
|
stackVersionId: string;
|
|
@@ -377,10 +386,6 @@ export type WorkspaceStackResponse = {
|
|
|
377
386
|
qualifier: string;
|
|
378
387
|
stack: WorkspaceStackResponseStackResponse;
|
|
379
388
|
};
|
|
380
|
-
export type AddStackInWorkspaceRequest = {
|
|
381
|
-
/** Stack version id. */
|
|
382
|
-
stackVersionId: string;
|
|
383
|
-
};
|
|
384
389
|
export type CreateConnectionInterfaceRequest = {
|
|
385
390
|
/** Connection interface type id. */
|
|
386
391
|
typeId: string;
|
|
@@ -480,7 +485,7 @@ export type SharedInfraAppliedPluginsV2Response = {
|
|
|
480
485
|
export type ActivityResponse = {
|
|
481
486
|
title: string;
|
|
482
487
|
owner?: string;
|
|
483
|
-
status: "SUCCESS" | "FAILED" | "RUNNING" | "PENDING" | "SKIPPED" | "CANCELLED" | "NONE" | "DRIFT" | "SUCCEEDED" | "RUNTIME_ERROR" | "USER_ERROR" | "INTERNAL_ERROR" | "ABORTED" | "ABORTING" | "EXTERNAL_ERROR" | "READY_TO_RUN";
|
|
488
|
+
status: "SUCCESS" | "FAILED" | "RUNNING" | "PENDING" | "SKIPPED" | "CANCELLED" | "NONE" | "DRIFT" | "SUCCEEDED" | "RUNTIME_ERROR" | "USER_ERROR" | "INTERNAL_ERROR" | "ABORTED" | "ABORTING" | "EXTERNAL_ERROR" | "READY_TO_RUN" | "TIMEOUT";
|
|
484
489
|
"type"?: "DEPLOY" | "CUSTOMER_WORKFLOW" | "ACTION" | "WORKFLOW" | "DRIFT" | "DESTROY" | "ROLLBACK" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "ROLLBACK_SELF_HOSTED";
|
|
485
490
|
action?: "CREATE" | "UPDATE" | "DELETE" | "RUN";
|
|
486
491
|
requestedBy?: string;
|
|
@@ -749,7 +754,7 @@ export type SharedInfraResponse = {
|
|
|
749
754
|
export type WorkspaceActivitiesResponse = {
|
|
750
755
|
title: string;
|
|
751
756
|
owner?: string;
|
|
752
|
-
status: "SUCCESS" | "FAILED" | "RUNNING" | "PENDING" | "SKIPPED" | "CANCELLED" | "NONE" | "DRIFT" | "SUCCEEDED" | "RUNTIME_ERROR" | "USER_ERROR" | "INTERNAL_ERROR" | "ABORTED" | "ABORTING" | "EXTERNAL_ERROR" | "READY_TO_RUN";
|
|
757
|
+
status: "SUCCESS" | "FAILED" | "RUNNING" | "PENDING" | "SKIPPED" | "CANCELLED" | "NONE" | "DRIFT" | "SUCCEEDED" | "RUNTIME_ERROR" | "USER_ERROR" | "INTERNAL_ERROR" | "ABORTED" | "ABORTING" | "EXTERNAL_ERROR" | "READY_TO_RUN" | "TIMEOUT";
|
|
753
758
|
"type"?: "DEPLOY" | "CUSTOMER_WORKFLOW" | "ACTION" | "WORKFLOW" | "DRIFT" | "DESTROY" | "ROLLBACK" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "ROLLBACK_SELF_HOSTED";
|
|
754
759
|
action?: "CREATE" | "UPDATE" | "DELETE" | "RUN";
|
|
755
760
|
requestedBy?: string;
|
|
@@ -947,7 +952,7 @@ export type AccountContextStackResponse = {
|
|
|
947
952
|
hasVersionsWithContext: boolean;
|
|
948
953
|
versions: StackVersionWksResponse[];
|
|
949
954
|
};
|
|
950
|
-
export function
|
|
955
|
+
export function workflowWorkspaceControllerfindWorkflowStackContext({ workspaceId, stackId, workflowId }: {
|
|
951
956
|
workspaceId: string;
|
|
952
957
|
stackId: string;
|
|
953
958
|
workflowId: string;
|
|
@@ -959,7 +964,7 @@ export function findWorkflowStackContext({ workspaceId, stackId, workflowId }: {
|
|
|
959
964
|
...opts
|
|
960
965
|
}));
|
|
961
966
|
}
|
|
962
|
-
export function
|
|
967
|
+
export function workflowWorkspaceControllersaveWorkflowWorkspaceContext({ workspaceId, stackId, workflowId, workflowContextSaveRequest }: {
|
|
963
968
|
workspaceId: string;
|
|
964
969
|
stackId: string;
|
|
965
970
|
workflowId: string;
|
|
@@ -971,7 +976,17 @@ export function saveWorkflowWorkspaceContext({ workspaceId, stackId, workflowId,
|
|
|
971
976
|
body: workflowContextSaveRequest
|
|
972
977
|
})));
|
|
973
978
|
}
|
|
974
|
-
export function
|
|
979
|
+
export function workspaceStackControllerrefreshStacksInWorkspace({ workspaceId, addStackInWorkspaceRequest }: {
|
|
980
|
+
workspaceId: string;
|
|
981
|
+
addStackInWorkspaceRequest: AddStackInWorkspaceRequest;
|
|
982
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
983
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/-/update`, oazapfts.json({
|
|
984
|
+
...opts,
|
|
985
|
+
method: "PUT",
|
|
986
|
+
body: addStackInWorkspaceRequest
|
|
987
|
+
})));
|
|
988
|
+
}
|
|
989
|
+
export function connectionInterfaceControllerupdateConnectionInterfaceAttributes({ workspaceId, connectionInterfaceId, connectionInterfaceAttributesByEnv }: {
|
|
975
990
|
workspaceId: string;
|
|
976
991
|
connectionInterfaceId: string;
|
|
977
992
|
connectionInterfaceAttributesByEnv: ConnectionInterfaceAttributesByEnv;
|
|
@@ -982,7 +997,7 @@ export function updateConnectionInterfaceAttributes({ workspaceId, connectionInt
|
|
|
982
997
|
body: connectionInterfaceAttributesByEnv
|
|
983
998
|
})));
|
|
984
999
|
}
|
|
985
|
-
export function
|
|
1000
|
+
export function contextControllergetConsolidatedPluginInputs({ workspaceId, stackVersionId, pluginVersionId, envName }: {
|
|
986
1001
|
workspaceId: string;
|
|
987
1002
|
stackVersionId: string;
|
|
988
1003
|
pluginVersionId: string;
|
|
@@ -997,7 +1012,7 @@ export function getConsolidatedPluginInputs1({ workspaceId, stackVersionId, plug
|
|
|
997
1012
|
...opts
|
|
998
1013
|
}));
|
|
999
1014
|
}
|
|
1000
|
-
export function
|
|
1015
|
+
export function contextControllerupsertPluginWorkspaceContext({ workspaceId, stackVersionId, pluginVersionId, body }: {
|
|
1001
1016
|
workspaceId: string;
|
|
1002
1017
|
stackVersionId: string;
|
|
1003
1018
|
pluginVersionId: string;
|
|
@@ -1009,7 +1024,7 @@ export function upsertPluginWorkspaceContext({ workspaceId, stackVersionId, plug
|
|
|
1009
1024
|
body
|
|
1010
1025
|
})));
|
|
1011
1026
|
}
|
|
1012
|
-
export function
|
|
1027
|
+
export function contextControllerupsertWorkspaceActionsInputContext({ workspaceId, stackVersionId, actionVersionId, body }: {
|
|
1013
1028
|
workspaceId: string;
|
|
1014
1029
|
stackVersionId: string;
|
|
1015
1030
|
actionVersionId: string;
|
|
@@ -1021,7 +1036,7 @@ export function upsertWorkspaceActionsInputContext({ workspaceId, stackVersionId
|
|
|
1021
1036
|
body
|
|
1022
1037
|
})));
|
|
1023
1038
|
}
|
|
1024
|
-
export function
|
|
1039
|
+
export function contextControllergetAccountPluginInputs({ stackVersionId, pluginVersionId, envName }: {
|
|
1025
1040
|
stackVersionId: string;
|
|
1026
1041
|
pluginVersionId: string;
|
|
1027
1042
|
envName?: string;
|
|
@@ -1035,7 +1050,7 @@ export function getAccountPluginInputs1({ stackVersionId, pluginVersionId, envNa
|
|
|
1035
1050
|
...opts
|
|
1036
1051
|
}));
|
|
1037
1052
|
}
|
|
1038
|
-
export function
|
|
1053
|
+
export function contextControllerupsertPluginAccountContext({ stackVersionId, pluginVersionId, body }: {
|
|
1039
1054
|
stackVersionId: string;
|
|
1040
1055
|
pluginVersionId: string;
|
|
1041
1056
|
body: UpsertPluginInputContextRequest[];
|
|
@@ -1046,7 +1061,7 @@ export function upsertPluginAccountContext({ stackVersionId, pluginVersionId, bo
|
|
|
1046
1061
|
body
|
|
1047
1062
|
})));
|
|
1048
1063
|
}
|
|
1049
|
-
export function
|
|
1064
|
+
export function contextControllerupsertAccountActionsInputContext({ stackVersionId, actionVersionId, body }: {
|
|
1050
1065
|
stackVersionId: string;
|
|
1051
1066
|
actionVersionId: string;
|
|
1052
1067
|
body: UpsertActionInputContextRequest[];
|
|
@@ -1057,7 +1072,7 @@ export function upsertAccountActionsInputContext({ stackVersionId, actionVersion
|
|
|
1057
1072
|
body
|
|
1058
1073
|
})));
|
|
1059
1074
|
}
|
|
1060
|
-
export function
|
|
1075
|
+
export function workflowAccountControllerfindWorkflowSettings({ workflowId }: {
|
|
1061
1076
|
workflowId: string;
|
|
1062
1077
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1063
1078
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1067,7 +1082,7 @@ export function findWorkflowSettings({ workflowId }: {
|
|
|
1067
1082
|
...opts
|
|
1068
1083
|
}));
|
|
1069
1084
|
}
|
|
1070
|
-
export function
|
|
1085
|
+
export function workflowAccountControllersaveWorkflowSettings({ workflowId, workflowSettingsSaveRequest }: {
|
|
1071
1086
|
workflowId: string;
|
|
1072
1087
|
workflowSettingsSaveRequest: WorkflowSettingsSaveRequest;
|
|
1073
1088
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1077,7 +1092,7 @@ export function saveWorkflowSettings({ workflowId, workflowSettingsSaveRequest }
|
|
|
1077
1092
|
body: workflowSettingsSaveRequest
|
|
1078
1093
|
})));
|
|
1079
1094
|
}
|
|
1080
|
-
export function
|
|
1095
|
+
export function workflowAccountControllerfindWorkflowContext({ workflowId }: {
|
|
1081
1096
|
workflowId: string;
|
|
1082
1097
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1083
1098
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1087,7 +1102,7 @@ export function findWorkflowContext({ workflowId }: {
|
|
|
1087
1102
|
...opts
|
|
1088
1103
|
}));
|
|
1089
1104
|
}
|
|
1090
|
-
export function
|
|
1105
|
+
export function workflowAccountControllersaveWorkflowContext({ workflowId, workflowContextSaveRequest }: {
|
|
1091
1106
|
workflowId: string;
|
|
1092
1107
|
workflowContextSaveRequest: WorkflowContextSaveRequest;
|
|
1093
1108
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1097,7 +1112,7 @@ export function saveWorkflowContext({ workflowId, workflowContextSaveRequest }:
|
|
|
1097
1112
|
body: workflowContextSaveRequest
|
|
1098
1113
|
})));
|
|
1099
1114
|
}
|
|
1100
|
-
export function
|
|
1115
|
+
export function workflowAccountControllergetWorkflowActions({ workflowId }: {
|
|
1101
1116
|
workflowId: string;
|
|
1102
1117
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1103
1118
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1107,7 +1122,7 @@ export function getWorkflowActions1({ workflowId }: {
|
|
|
1107
1122
|
...opts
|
|
1108
1123
|
}));
|
|
1109
1124
|
}
|
|
1110
|
-
export function
|
|
1125
|
+
export function workflowAccountControllerupdateWorkflowActions({ workflowId, workflowActionsRequest }: {
|
|
1111
1126
|
workflowId: string;
|
|
1112
1127
|
workflowActionsRequest: WorkflowActionsRequest;
|
|
1113
1128
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1117,7 +1132,7 @@ export function getWorkflowActions({ workflowId, workflowActionsRequest }: {
|
|
|
1117
1132
|
body: workflowActionsRequest
|
|
1118
1133
|
})));
|
|
1119
1134
|
}
|
|
1120
|
-
export function
|
|
1135
|
+
export function workflowStackControllerfindWorkflowStackContext({ stackId, workflowId }: {
|
|
1121
1136
|
stackId: string;
|
|
1122
1137
|
workflowId: string;
|
|
1123
1138
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1128,7 +1143,7 @@ export function findWorkflowStackContext1({ stackId, workflowId }: {
|
|
|
1128
1143
|
...opts
|
|
1129
1144
|
}));
|
|
1130
1145
|
}
|
|
1131
|
-
export function
|
|
1146
|
+
export function workflowStackControllersaveWorkflowStackContext({ stackId, workflowId, workflowContextSaveRequest }: {
|
|
1132
1147
|
stackId: string;
|
|
1133
1148
|
workflowId: string;
|
|
1134
1149
|
workflowContextSaveRequest: WorkflowContextSaveRequest;
|
|
@@ -1139,7 +1154,7 @@ export function saveWorkflowStackContext({ stackId, workflowId, workflowContextS
|
|
|
1139
1154
|
body: workflowContextSaveRequest
|
|
1140
1155
|
})));
|
|
1141
1156
|
}
|
|
1142
|
-
export function
|
|
1157
|
+
export function sharedInfraControllerV2CreateSharedInfra({ workspaceId, createSharedRequest }: {
|
|
1143
1158
|
workspaceId: string;
|
|
1144
1159
|
createSharedRequest: CreateSharedRequest;
|
|
1145
1160
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1152,7 +1167,7 @@ export function createSharedInfra({ workspaceId, createSharedRequest }: {
|
|
|
1152
1167
|
body: createSharedRequest
|
|
1153
1168
|
})));
|
|
1154
1169
|
}
|
|
1155
|
-
export function
|
|
1170
|
+
export function applicationControllerV2CreateApp({ workspaceId, createAppRequest }: {
|
|
1156
1171
|
workspaceId: string;
|
|
1157
1172
|
createAppRequest: CreateAppRequest;
|
|
1158
1173
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1165,17 +1180,7 @@ export function createApp({ workspaceId, createAppRequest }: {
|
|
|
1165
1180
|
body: createAppRequest
|
|
1166
1181
|
})));
|
|
1167
1182
|
}
|
|
1168
|
-
export function
|
|
1169
|
-
workspaceId: string;
|
|
1170
|
-
body: string[];
|
|
1171
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1172
|
-
return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/teams/batch`, oazapfts.json({
|
|
1173
|
-
...opts,
|
|
1174
|
-
method: "POST",
|
|
1175
|
-
body
|
|
1176
|
-
})));
|
|
1177
|
-
}
|
|
1178
|
-
export function listStacks1({ workspaceId }: {
|
|
1183
|
+
export function workspaceStackControllerlistStacks({ workspaceId }: {
|
|
1179
1184
|
workspaceId: string;
|
|
1180
1185
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1181
1186
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1185,7 +1190,7 @@ export function listStacks1({ workspaceId }: {
|
|
|
1185
1190
|
...opts
|
|
1186
1191
|
}));
|
|
1187
1192
|
}
|
|
1188
|
-
export function
|
|
1193
|
+
export function workspaceStackControlleraddStacksInWorkspace({ workspaceId, addStackInWorkspaceRequest }: {
|
|
1189
1194
|
workspaceId: string;
|
|
1190
1195
|
addStackInWorkspaceRequest: AddStackInWorkspaceRequest;
|
|
1191
1196
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1195,7 +1200,7 @@ export function addStacksInWorkspace({ workspaceId, addStackInWorkspaceRequest }
|
|
|
1195
1200
|
body: addStackInWorkspaceRequest
|
|
1196
1201
|
})));
|
|
1197
1202
|
}
|
|
1198
|
-
export function
|
|
1203
|
+
export function sharedInfraControllercreateSharedInfra({ workspaceId, createSharedRequest }: {
|
|
1199
1204
|
workspaceId: string;
|
|
1200
1205
|
createSharedRequest: CreateSharedRequest;
|
|
1201
1206
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1208,7 +1213,7 @@ export function createSharedInfra1({ workspaceId, createSharedRequest }: {
|
|
|
1208
1213
|
body: createSharedRequest
|
|
1209
1214
|
})));
|
|
1210
1215
|
}
|
|
1211
|
-
export function
|
|
1216
|
+
export function connectionInterfaceControllercreateConnectionInterface({ workspaceId, createConnectionInterfaceRequest }: {
|
|
1212
1217
|
workspaceId: string;
|
|
1213
1218
|
createConnectionInterfaceRequest: CreateConnectionInterfaceRequest;
|
|
1214
1219
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1221,7 +1226,7 @@ export function createConnectionInterface({ workspaceId, createConnectionInterfa
|
|
|
1221
1226
|
body: createConnectionInterfaceRequest
|
|
1222
1227
|
})));
|
|
1223
1228
|
}
|
|
1224
|
-
export function
|
|
1229
|
+
export function applicationControllercreateApp({ workspaceId, createAppRequest }: {
|
|
1225
1230
|
workspaceId: string;
|
|
1226
1231
|
createAppRequest: CreateAppRequest;
|
|
1227
1232
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1234,7 +1239,7 @@ export function createApp1({ workspaceId, createAppRequest }: {
|
|
|
1234
1239
|
body: createAppRequest
|
|
1235
1240
|
})));
|
|
1236
1241
|
}
|
|
1237
|
-
export function
|
|
1242
|
+
export function contextControllerimportContextInWorkspace({ workspaceId, body }: {
|
|
1238
1243
|
workspaceId: string;
|
|
1239
1244
|
body: ImportContextRequest[];
|
|
1240
1245
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1244,7 +1249,7 @@ export function importContextInWorkspace({ workspaceId, body }: {
|
|
|
1244
1249
|
body
|
|
1245
1250
|
})));
|
|
1246
1251
|
}
|
|
1247
|
-
export function
|
|
1252
|
+
export function contextControllerimportContextInAccount({ body }: {
|
|
1248
1253
|
body: ImportContextRequest[];
|
|
1249
1254
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1250
1255
|
return oazapfts.ok(oazapfts.fetchText("/v1/contexts/account/stacks/import-context", oazapfts.json({
|
|
@@ -1253,7 +1258,7 @@ export function importContextInAccount({ body }: {
|
|
|
1253
1258
|
body
|
|
1254
1259
|
})));
|
|
1255
1260
|
}
|
|
1256
|
-
export function
|
|
1261
|
+
export function workflowAccountControllercreateAccountWorkflow({ accountWorkflowCreateRequest }: {
|
|
1257
1262
|
accountWorkflowCreateRequest: AccountWorkflowCreateRequest;
|
|
1258
1263
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1259
1264
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1265,7 +1270,7 @@ export function createAccountWorkflow({ accountWorkflowCreateRequest }: {
|
|
|
1265
1270
|
body: accountWorkflowCreateRequest
|
|
1266
1271
|
})));
|
|
1267
1272
|
}
|
|
1268
|
-
export function
|
|
1273
|
+
export function managerRunControllerarchiveApplication({ workspaceId, applicationId }: {
|
|
1269
1274
|
workspaceId: string;
|
|
1270
1275
|
applicationId: string;
|
|
1271
1276
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1277,7 +1282,7 @@ export function archiveApplication({ workspaceId, applicationId }: {
|
|
|
1277
1282
|
method: "PATCH"
|
|
1278
1283
|
}));
|
|
1279
1284
|
}
|
|
1280
|
-
export function
|
|
1285
|
+
export function sharedInfraControllerV2GetSharedInfraAppliedPlugins({ workspaceId, sharedInfraId, envName, pluginType, containsLinks }: {
|
|
1281
1286
|
workspaceId: string;
|
|
1282
1287
|
sharedInfraId: string;
|
|
1283
1288
|
envName: string;
|
|
@@ -1294,7 +1299,7 @@ export function getSharedInfraAppliedPlugins({ workspaceId, sharedInfraId, envNa
|
|
|
1294
1299
|
...opts
|
|
1295
1300
|
}));
|
|
1296
1301
|
}
|
|
1297
|
-
export function
|
|
1302
|
+
export function sharedInfraControllerV2GetSharedInfraActivities({ workspaceId, sharedInfraId, envName, $type, page, size }: {
|
|
1298
1303
|
workspaceId: string;
|
|
1299
1304
|
sharedInfraId: string;
|
|
1300
1305
|
envName: string;
|
|
@@ -1313,7 +1318,7 @@ export function getSharedInfraActivities({ workspaceId, sharedInfraId, envName,
|
|
|
1313
1318
|
...opts
|
|
1314
1319
|
}));
|
|
1315
1320
|
}
|
|
1316
|
-
export function
|
|
1321
|
+
export function applicationControllerV2GetApplicationAppliedPlugins({ workspaceId, applicationId, envName, pluginType, containsLinks }: {
|
|
1317
1322
|
workspaceId: string;
|
|
1318
1323
|
applicationId: string;
|
|
1319
1324
|
envName: string;
|
|
@@ -1330,7 +1335,7 @@ export function getApplicationAppliedPlugins({ workspaceId, applicationId, envNa
|
|
|
1330
1335
|
...opts
|
|
1331
1336
|
}));
|
|
1332
1337
|
}
|
|
1333
|
-
export function
|
|
1338
|
+
export function applicationControllerV2GetApplicationActivities({ workspaceId, applicationId, envName, $type, page, size }: {
|
|
1334
1339
|
workspaceId: string;
|
|
1335
1340
|
applicationId: string;
|
|
1336
1341
|
envName: string;
|
|
@@ -1349,7 +1354,7 @@ export function getApplicationActivities({ workspaceId, applicationId, envName,
|
|
|
1349
1354
|
...opts
|
|
1350
1355
|
}));
|
|
1351
1356
|
}
|
|
1352
|
-
export function
|
|
1357
|
+
export function contextStackControllergetWorkspaceContext({ workspaceId, stackVersionId, envName }: {
|
|
1353
1358
|
workspaceId: string;
|
|
1354
1359
|
stackVersionId: string;
|
|
1355
1360
|
envName?: string;
|
|
@@ -1363,7 +1368,7 @@ export function getWorkspaceContext({ workspaceId, stackVersionId, envName }: {
|
|
|
1363
1368
|
...opts
|
|
1364
1369
|
}));
|
|
1365
1370
|
}
|
|
1366
|
-
export function
|
|
1371
|
+
export function contextgetConsolidatedPluginInputsWithConnectionInterfaces({ workspaceId, stackVersionId, pluginVersionId }: {
|
|
1367
1372
|
workspaceId: string;
|
|
1368
1373
|
stackVersionId: string;
|
|
1369
1374
|
pluginVersionId: string;
|
|
@@ -1375,7 +1380,7 @@ export function getConsolidatedPluginInputsWithConnectionInterfaces({ workspaceI
|
|
|
1375
1380
|
...opts
|
|
1376
1381
|
}));
|
|
1377
1382
|
}
|
|
1378
|
-
export function
|
|
1383
|
+
export function contextgetConsolidatedPluginInputs({ workspaceId, stackVersionId, pluginVersionId, envName }: {
|
|
1379
1384
|
workspaceId: string;
|
|
1380
1385
|
stackVersionId: string;
|
|
1381
1386
|
pluginVersionId: string;
|
|
@@ -1390,7 +1395,7 @@ export function getConsolidatedPluginInputs({ workspaceId, stackVersionId, plugi
|
|
|
1390
1395
|
...opts
|
|
1391
1396
|
}));
|
|
1392
1397
|
}
|
|
1393
|
-
export function
|
|
1398
|
+
export function contextActionControllergetStackActionInputsInWorkspaceContext({ workspaceId, stackVersionId, actionsVersionId, envName }: {
|
|
1394
1399
|
workspaceId: string;
|
|
1395
1400
|
stackVersionId: string;
|
|
1396
1401
|
actionsVersionId: string;
|
|
@@ -1405,7 +1410,7 @@ export function getStackActionInputsInWorkspaceContext({ workspaceId, stackVersi
|
|
|
1405
1410
|
...opts
|
|
1406
1411
|
}));
|
|
1407
1412
|
}
|
|
1408
|
-
export function
|
|
1413
|
+
export function contextgetAccountPluginInputs({ stackVersionId, pluginVersionId, envName }: {
|
|
1409
1414
|
stackVersionId: string;
|
|
1410
1415
|
pluginVersionId: string;
|
|
1411
1416
|
envName?: string;
|
|
@@ -1419,7 +1424,7 @@ export function getAccountPluginInputs({ stackVersionId, pluginVersionId, envNam
|
|
|
1419
1424
|
...opts
|
|
1420
1425
|
}));
|
|
1421
1426
|
}
|
|
1422
|
-
export function
|
|
1427
|
+
export function contextActionControllergetStackActionInputsInAccountContext({ stackVersionId, actionsVersionId, envName }: {
|
|
1423
1428
|
stackVersionId: string;
|
|
1424
1429
|
actionsVersionId: string;
|
|
1425
1430
|
envName?: string;
|
|
@@ -1433,7 +1438,7 @@ export function getStackActionInputsInAccountContext({ stackVersionId, actionsVe
|
|
|
1433
1438
|
...opts
|
|
1434
1439
|
}));
|
|
1435
1440
|
}
|
|
1436
|
-
export function
|
|
1441
|
+
export function workflowWorkspaceControllerlistStacks({ workspaceId, workflowId }: {
|
|
1437
1442
|
workspaceId: string;
|
|
1438
1443
|
workflowId: string;
|
|
1439
1444
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1444,7 +1449,7 @@ export function listStacks({ workspaceId, workflowId }: {
|
|
|
1444
1449
|
...opts
|
|
1445
1450
|
}));
|
|
1446
1451
|
}
|
|
1447
|
-
export function
|
|
1452
|
+
export function workflowWorkspaceControllerlistWorkflowByStackIdAndWorkflowType({ workspaceId, stackId, workflowType }: {
|
|
1448
1453
|
workspaceId: string;
|
|
1449
1454
|
stackId: string;
|
|
1450
1455
|
workflowType: string;
|
|
@@ -1456,7 +1461,7 @@ export function listWorkflowByStackIdAndWorkflowType({ workspaceId, stackId, wor
|
|
|
1456
1461
|
...opts
|
|
1457
1462
|
}));
|
|
1458
1463
|
}
|
|
1459
|
-
export function
|
|
1464
|
+
export function workspaceStackControllerlistStacksContext({ workspaceId }: {
|
|
1460
1465
|
workspaceId: string;
|
|
1461
1466
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1462
1467
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1466,7 +1471,7 @@ export function listStacksContext({ workspaceId }: {
|
|
|
1466
1471
|
...opts
|
|
1467
1472
|
}));
|
|
1468
1473
|
}
|
|
1469
|
-
export function
|
|
1474
|
+
export function sharedInfraControllergetApplicationLinks({ workspaceId, sharedInfraId, envName }: {
|
|
1470
1475
|
workspaceId: string;
|
|
1471
1476
|
sharedInfraId: string;
|
|
1472
1477
|
envName: string;
|
|
@@ -1478,7 +1483,7 @@ export function getApplicationLinks({ workspaceId, sharedInfraId, envName }: {
|
|
|
1478
1483
|
...opts
|
|
1479
1484
|
}));
|
|
1480
1485
|
}
|
|
1481
|
-
export function
|
|
1486
|
+
export function sharedInfraControllergetSharedInfraAppliedPlugins({ workspaceId, sharedInfraId, envName }: {
|
|
1482
1487
|
workspaceId: string;
|
|
1483
1488
|
sharedInfraId: string;
|
|
1484
1489
|
envName: string;
|
|
@@ -1490,7 +1495,7 @@ export function getSharedInfraAppliedPlugins1({ workspaceId, sharedInfraId, envN
|
|
|
1490
1495
|
...opts
|
|
1491
1496
|
}));
|
|
1492
1497
|
}
|
|
1493
|
-
export function
|
|
1498
|
+
export function sharedInfraControllergetSharedInfraActivities({ workspaceId, sharedInfraId, envName, $type }: {
|
|
1494
1499
|
workspaceId: string;
|
|
1495
1500
|
sharedInfraId: string;
|
|
1496
1501
|
envName: string;
|
|
@@ -1505,7 +1510,7 @@ export function getSharedInfraActivities1({ workspaceId, sharedInfraId, envName,
|
|
|
1505
1510
|
...opts
|
|
1506
1511
|
}));
|
|
1507
1512
|
}
|
|
1508
|
-
export function
|
|
1513
|
+
export function workspacePluginControllerlistPluginsFromWorkspace({ workspaceId, typePlugin }: {
|
|
1509
1514
|
workspaceId: string;
|
|
1510
1515
|
typePlugin?: "INFRA" | "APP";
|
|
1511
1516
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1518,7 +1523,7 @@ export function listPluginsFromWorkspace({ workspaceId, typePlugin }: {
|
|
|
1518
1523
|
...opts
|
|
1519
1524
|
}));
|
|
1520
1525
|
}
|
|
1521
|
-
export function
|
|
1526
|
+
export function connectionInterfaceControllergetConnectionInterfaceDetails({ workspaceId, connectionInterfaceId }: {
|
|
1522
1527
|
workspaceId: string;
|
|
1523
1528
|
connectionInterfaceId: string;
|
|
1524
1529
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1529,7 +1534,7 @@ export function getConnectionInterfaceDetails({ workspaceId, connectionInterface
|
|
|
1529
1534
|
...opts
|
|
1530
1535
|
}));
|
|
1531
1536
|
}
|
|
1532
|
-
export function
|
|
1537
|
+
export function availableConnectionInterfaceControllergetAvailableConnectionInterfaces({ workspaceId, typeName, automaticallyGenerated }: {
|
|
1533
1538
|
workspaceId: string;
|
|
1534
1539
|
typeName?: string;
|
|
1535
1540
|
automaticallyGenerated?: boolean;
|
|
@@ -1544,7 +1549,7 @@ export function getAvailableConnectionInterfaces({ workspaceId, typeName, automa
|
|
|
1544
1549
|
...opts
|
|
1545
1550
|
}));
|
|
1546
1551
|
}
|
|
1547
|
-
export function
|
|
1552
|
+
export function applicationControllergetApplicationLinks({ workspaceId, applicationId, envName }: {
|
|
1548
1553
|
workspaceId: string;
|
|
1549
1554
|
applicationId: string;
|
|
1550
1555
|
envName: string;
|
|
@@ -1556,7 +1561,7 @@ export function getApplicationLinks1({ workspaceId, applicationId, envName }: {
|
|
|
1556
1561
|
...opts
|
|
1557
1562
|
}));
|
|
1558
1563
|
}
|
|
1559
|
-
export function
|
|
1564
|
+
export function applicationControllergetApplicationDetails({ workspaceId, applicationId, envName }: {
|
|
1560
1565
|
workspaceId: string;
|
|
1561
1566
|
applicationId: string;
|
|
1562
1567
|
envName: string;
|
|
@@ -1568,7 +1573,7 @@ export function getApplicationDetails({ workspaceId, applicationId, envName }: {
|
|
|
1568
1573
|
...opts
|
|
1569
1574
|
}));
|
|
1570
1575
|
}
|
|
1571
|
-
export function
|
|
1576
|
+
export function applicationControllergetApplicationActivities({ workspaceId, applicationId, envName, $type }: {
|
|
1572
1577
|
workspaceId: string;
|
|
1573
1578
|
applicationId: string;
|
|
1574
1579
|
envName: string;
|
|
@@ -1583,7 +1588,7 @@ export function getApplicationActivities1({ workspaceId, applicationId, envName,
|
|
|
1583
1588
|
...opts
|
|
1584
1589
|
}));
|
|
1585
1590
|
}
|
|
1586
|
-
export function
|
|
1591
|
+
export function contextControllergetStackActionInputsInWorkspaceContext({ workspaceId, stackVersionId, actionsVersionId, envName }: {
|
|
1587
1592
|
workspaceId: string;
|
|
1588
1593
|
stackVersionId: string;
|
|
1589
1594
|
actionsVersionId: string;
|
|
@@ -1598,7 +1603,7 @@ export function getStackActionInputsInWorkspaceContext1({ workspaceId, stackVers
|
|
|
1598
1603
|
...opts
|
|
1599
1604
|
}));
|
|
1600
1605
|
}
|
|
1601
|
-
export function
|
|
1606
|
+
export function contextControllergetStackActionInputsInAccountContext({ stackVersionId, actionsVersionId, envName }: {
|
|
1602
1607
|
stackVersionId: string;
|
|
1603
1608
|
actionsVersionId: string;
|
|
1604
1609
|
envName?: string;
|
|
@@ -1612,7 +1617,7 @@ export function getStackActionInputsInAccountContext1({ stackVersionId, actionsV
|
|
|
1612
1617
|
...opts
|
|
1613
1618
|
}));
|
|
1614
1619
|
}
|
|
1615
|
-
export function
|
|
1620
|
+
export function accountStackControllerlistStacksByAccountWithWorkflow({ workspaceId }: {
|
|
1616
1621
|
workspaceId?: string;
|
|
1617
1622
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1618
1623
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1624,7 +1629,7 @@ export function listStacksByAccountWithWorkflow({ workspaceId }: {
|
|
|
1624
1629
|
...opts
|
|
1625
1630
|
}));
|
|
1626
1631
|
}
|
|
1627
|
-
export function
|
|
1632
|
+
export function accountStackControllerlistWorkflowsByStack({ stackId }: {
|
|
1628
1633
|
stackId: string;
|
|
1629
1634
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1630
1635
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1634,7 +1639,7 @@ export function listWorkflowsByStack({ stackId }: {
|
|
|
1634
1639
|
...opts
|
|
1635
1640
|
}));
|
|
1636
1641
|
}
|
|
1637
|
-
export function
|
|
1642
|
+
export function accountStackControllerlistVersionsWithContext({ stackVersionId }: {
|
|
1638
1643
|
stackVersionId: string;
|
|
1639
1644
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1640
1645
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -1644,7 +1649,7 @@ export function listVersionsWithContext({ stackVersionId }: {
|
|
|
1644
1649
|
...opts
|
|
1645
1650
|
}));
|
|
1646
1651
|
}
|
|
1647
|
-
export function
|
|
1652
|
+
export function workspaceControllerdelete({ workspaceId }: {
|
|
1648
1653
|
workspaceId: string;
|
|
1649
1654
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1650
1655
|
return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}`, {
|
|
@@ -1652,7 +1657,7 @@ export function deleteV1WorkspacesByWorkspaceId({ workspaceId }: {
|
|
|
1652
1657
|
method: "DELETE"
|
|
1653
1658
|
}));
|
|
1654
1659
|
}
|
|
1655
|
-
export function
|
|
1660
|
+
export function workspaceStackControllerdeleteStacksInWorkspace({ workspaceId, stackVersionId }: {
|
|
1656
1661
|
workspaceId: string;
|
|
1657
1662
|
stackVersionId: string;
|
|
1658
1663
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1661,7 +1666,7 @@ export function deleteStacksInWorkspace({ workspaceId, stackVersionId }: {
|
|
|
1661
1666
|
method: "DELETE"
|
|
1662
1667
|
}));
|
|
1663
1668
|
}
|
|
1664
|
-
export function
|
|
1669
|
+
export function managerRunControllerdeleteSharedInfra({ workspaceId, sharedInfraId }: {
|
|
1665
1670
|
workspaceId: string;
|
|
1666
1671
|
sharedInfraId: string;
|
|
1667
1672
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1670,7 +1675,7 @@ export function deleteSharedInfra({ workspaceId, sharedInfraId }: {
|
|
|
1670
1675
|
method: "DELETE"
|
|
1671
1676
|
}));
|
|
1672
1677
|
}
|
|
1673
|
-
export function
|
|
1678
|
+
export function managerRunControllerdeleteApplication({ workspaceId, applicationId }: {
|
|
1674
1679
|
workspaceId: string;
|
|
1675
1680
|
applicationId: string;
|
|
1676
1681
|
}, opts?: Oazapfts.RequestOpts) {
|
package/src/client/content.ts
CHANGED
|
@@ -3,11 +3,13 @@ import { addAction, addLink, addWorkspace, associateActionToPlugin, changeVisibi
|
|
|
3
3
|
deleteAction, deleteActionVersion, deleteLink, deletePluginVersion, deleteStudio, deleteV1StacksVersionsByStackVersionId,
|
|
4
4
|
delWorkspace, deprecateActionVersion, deprecatePluginVersion, deprecateStackVersionBy, downloadAction, getActionBySlug,
|
|
5
5
|
getActionsVersions, getActionVersionById, getAllActionVersions, getApplicationDetailsView, getApplicationsUsesPlugin,
|
|
6
|
-
getAvailableActionVersionsByActionSlug,
|
|
6
|
+
getAvailableActionVersionsByActionSlug, getAvailableWorkflowVersionsByWorkflowSlug, getDependentPluginsVersions,
|
|
7
|
+
getGetPluginView, getInfrastructureEnvironmentsUsesPlugin,
|
|
7
8
|
getListOfInputs, getPluginInfrastructureView, getPluginModalView, getPluginVersions, getPluginVersionsNotInUse,
|
|
8
9
|
getPluginVersionUsageSummary, getStackUsesPlugin, getStackVersionById, getStackVersionListByIds, getStackWorkspaceDetailView,
|
|
9
10
|
getStackWorkspaces, getStarterStackVersionsAndPluginsVersions, getStarterUsesPlugin, getStudioByIdOrSlug, getStudios1,
|
|
10
|
-
getStudiosToCreateButton, getStudioTabs, getUnusedStackVersions,
|
|
11
|
+
getStudiosToCreateButton, getStudioTabs, getUnusedStackVersions, getWorkflow, getWorkflowByStudioSlug, getWorkflowDoc,
|
|
12
|
+
listActions, listActions1,
|
|
11
13
|
listActionsByFilters1, listConnectionInterfaceTypes, listLinksByStackVersion, listPlugins, listPluginVersionByIdsController,
|
|
12
14
|
listReasons, listStacksByFilters, listStarters, listWorkspaces, patchStarterV2, removeActionFromPlugin, stackModalViewSummary,
|
|
13
15
|
stackVersionUsageSummary, updateStudio, updateStudioTabs } from '../api/content'
|
|
@@ -99,10 +101,24 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
99
101
|
* Gets stacks from a given studio
|
|
100
102
|
*/
|
|
101
103
|
stacksFromStudios = this.query(listStacksByFilters)
|
|
104
|
+
|
|
105
|
+
//Workflow
|
|
102
106
|
/**
|
|
103
107
|
* Gets workflows from a given studio
|
|
104
108
|
*/
|
|
105
109
|
workflowsFromStudio = this.query(getWorkflowByStudioSlug)
|
|
110
|
+
/**
|
|
111
|
+
* Gets workflows from a given studio
|
|
112
|
+
*/
|
|
113
|
+
workflowDoc = this.query(getWorkflowDoc)
|
|
114
|
+
/**
|
|
115
|
+
* Gets a workflow by slug
|
|
116
|
+
*/
|
|
117
|
+
workflow = this.query(getWorkflow)
|
|
118
|
+
/**
|
|
119
|
+
* Gets a workflow by slug
|
|
120
|
+
*/
|
|
121
|
+
workflowVersionsByRange = this.query(getAvailableWorkflowVersionsByWorkflowSlug)
|
|
106
122
|
/**
|
|
107
123
|
* Gets usage summary of stack
|
|
108
124
|
*/
|