@stack-spot/portal-network 0.34.1 → 0.36.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 +161 -7
- package/dist/api/content.d.ts.map +1 -1
- package/dist/api/content.js +61 -7
- 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 +16 -1
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +15 -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 +285 -10
- package/src/api/workspaceManager.ts +82 -77
- package/src/client/content.ts +11 -1
- package/src/client/workspace-manager.ts +76 -71
package/src/api/content.ts
CHANGED
|
@@ -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://content-content-api.
|
|
11
|
+
baseUrl: "https://content-content-api.stg.stackspot.com",
|
|
12
12
|
};
|
|
13
13
|
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
14
|
export const servers = {
|
|
15
|
-
generatedServerUrl: "https://content-content-api.
|
|
15
|
+
generatedServerUrl: "https://content-content-api.stg.stackspot.com"
|
|
16
16
|
};
|
|
17
17
|
export type ValidationDetails = {
|
|
18
18
|
code?: string;
|
|
@@ -111,7 +111,7 @@ export type CreateConnectionInterfaceTypeRequest = {
|
|
|
111
111
|
};
|
|
112
112
|
export type YamlValidationError = {
|
|
113
113
|
details: string;
|
|
114
|
-
"type": "STK_VAL_0000_YAML_BASE_ERROR" | "STK_VAL_5010_YAML_FIELDS_ERROR" | "STK_VAL_5011_YAML_REQUIRED_FIELD" | "STK_VAL_5012_YAML_INVALID_FIELD_FORMAT" | "STK_VAL_5013_YAML_INVALID_VALUE_BY_ENUM" | "STK_VAL_5015_YAML_ADDITIONAL_FIELD" | "STK_VAL_5016_YAML_FIELD_INVALID_TYPE" | "STK_VAL_5018_INVALID_TECHNOLOGIES" | "STK_VAL_5021_MARKDOWN_LINK_NOT_FOUND" | "STK_VAL_5022_INVALID_INPUT_DEFAULT" | "STK_VAL_5024_PLUGIN_VERSION_NOT_FOUND" | "STK_VAL_5026_FILE_NOT_FOUND" | "STK_VAL_5027_FILE_EMPTY" | "STK_VAL_5030_FUNCTION_RUN_IS_REQUIRED" | "STK_VAL_5031_INVALID_INPUT_CONDITION_OPERATOR" | "STK_VAL_5032_INVALID_INPUT_CONDITION_VALUE" | "STK_VAL_5034_INVALID_INPUT_CONDITION_VARIABLE_DOES_NOT_EXIST" | "STK_VAL_5035_INVALID_CONNECTION_TYPE" | "STK_VAL_5036_INVALID_CONNECTION_TYPE_OUTPUT" | "STK_VAL_5037_DUPLICATED_CONNECTION_ALIAS" | "STK_VAL_5039_INVALID_LINK_URL_TYPE" | "STK_VAL_5040_INVALID_CONNECTION_LINK_VARIABLE" | "STK_VAL_5041_INVALID_CONNECTION_ALIAS_LINK_VARIABLE" | "STK_VAL_5042_INVALID_CONNECTION_OUTPUT_LINK_VARIABLE" | "STK_VAL_5043_DUPLICATED_LINK_NAME" | "STK_VAL_5044_INPUT_NAME_AS_RESERVED_WORD" | "STK_VAL_5045_DYNAMIC_LINK_VARIABLE_NOT_FOUND" | "STK_VAL_5046_LINK_WITH_COMPLEX_JINJA_EXPRESSION" | "STK_VAL_5047_INVALID_DYNAMIC_LINK_URL" | "STK_VAL_5048_DUPLICATED_INPUT_NAMES" | "STK_VAL_5049_INVALID_INPUT_DEFAULT_NOT_IN_ITEMS" | "STK_VAL_5053_MISSING_ACTION_IN_REQUIRES" | "STK_VAL_5054_DUPLICATED_NAME" | "STK_VAL_5055_DUPLICATED_VALUE" | "STK_VAL_5057_ACTION_NOT_DECLARED" | "STK_VAL_5058_OLD_DOCS_DECLARED" | "STK_VAL_5059_OLD_DOCS_WILL_BE_IGNORED" | "STK_VAL_5061_ACTION_VERSION_NOT_FOUND" | "STK_VAL_5062_PLUGIN_OF_STARTER_IS_NOT_DECLARED" | "STK_VAL_5063_STARTER_MUST_CONTAIN_PLUGIN" | "STK_VAL_5064_REQUIRED_PLUGIN_NOT_PUBLISHED" | "STK_VAL_5065_REQUIRED_ACTION_NOT_PUBLISHED" | "STK_VAL_5066_MISSING_PLUGIN_REQUIRED_IN_STACK" | "STK_VAL_5067_MISSING_ACTION_REQUIRED_IN_STACK" | "STK_VAL_5068_INFRA_PLUGIN_APP_ALLOWED_FALSE" | "STK_VAL_5073_SOURCE_AND_ITEMS_BEING_USED" | "STK_VAL_5076_MISSING_OUTPUT_FROM_GENERATES" | "STK_VAL_5077_MISSING_PLUGIN_REQUIRED_IN_STARTER" | "STK_VAL_5078_WRONG_PLUGIN_TYPE_IN_STACK" | "STK_VAL_5079_DUPLICATED_SLUG" | "
|
|
114
|
+
"type": "STK_VAL_0000_YAML_BASE_ERROR" | "STK_VAL_5010_YAML_FIELDS_ERROR" | "STK_VAL_5011_YAML_REQUIRED_FIELD" | "STK_VAL_5012_YAML_INVALID_FIELD_FORMAT" | "STK_VAL_5013_YAML_INVALID_VALUE_BY_ENUM" | "STK_VAL_5015_YAML_ADDITIONAL_FIELD" | "STK_VAL_5016_YAML_FIELD_INVALID_TYPE" | "STK_VAL_5018_INVALID_TECHNOLOGIES" | "STK_VAL_5021_MARKDOWN_LINK_NOT_FOUND" | "STK_VAL_5022_INVALID_INPUT_DEFAULT" | "STK_VAL_5024_PLUGIN_VERSION_NOT_FOUND" | "STK_VAL_5026_FILE_NOT_FOUND" | "STK_VAL_5027_FILE_EMPTY" | "STK_VAL_5030_FUNCTION_RUN_IS_REQUIRED" | "STK_VAL_5031_INVALID_INPUT_CONDITION_OPERATOR" | "STK_VAL_5032_INVALID_INPUT_CONDITION_VALUE" | "STK_VAL_5034_INVALID_INPUT_CONDITION_VARIABLE_DOES_NOT_EXIST" | "STK_VAL_5035_INVALID_CONNECTION_TYPE" | "STK_VAL_5036_INVALID_CONNECTION_TYPE_OUTPUT" | "STK_VAL_5037_DUPLICATED_CONNECTION_ALIAS" | "STK_VAL_5039_INVALID_LINK_URL_TYPE" | "STK_VAL_5040_INVALID_CONNECTION_LINK_VARIABLE" | "STK_VAL_5041_INVALID_CONNECTION_ALIAS_LINK_VARIABLE" | "STK_VAL_5042_INVALID_CONNECTION_OUTPUT_LINK_VARIABLE" | "STK_VAL_5043_DUPLICATED_LINK_NAME" | "STK_VAL_5044_INPUT_NAME_AS_RESERVED_WORD" | "STK_VAL_5045_DYNAMIC_LINK_VARIABLE_NOT_FOUND" | "STK_VAL_5046_LINK_WITH_COMPLEX_JINJA_EXPRESSION" | "STK_VAL_5047_INVALID_DYNAMIC_LINK_URL" | "STK_VAL_5048_DUPLICATED_INPUT_NAMES" | "STK_VAL_5049_INVALID_INPUT_DEFAULT_NOT_IN_ITEMS" | "STK_VAL_5053_MISSING_ACTION_IN_REQUIRES" | "STK_VAL_5054_DUPLICATED_NAME" | "STK_VAL_5055_DUPLICATED_VALUE" | "STK_VAL_5057_ACTION_NOT_DECLARED" | "STK_VAL_5058_OLD_DOCS_DECLARED" | "STK_VAL_5059_OLD_DOCS_WILL_BE_IGNORED" | "STK_VAL_5061_ACTION_VERSION_NOT_FOUND" | "STK_VAL_5062_PLUGIN_OF_STARTER_IS_NOT_DECLARED" | "STK_VAL_5063_STARTER_MUST_CONTAIN_PLUGIN" | "STK_VAL_5064_REQUIRED_PLUGIN_NOT_PUBLISHED" | "STK_VAL_5065_REQUIRED_ACTION_NOT_PUBLISHED" | "STK_VAL_5066_MISSING_PLUGIN_REQUIRED_IN_STACK" | "STK_VAL_5067_MISSING_ACTION_REQUIRED_IN_STACK" | "STK_VAL_5068_INFRA_PLUGIN_APP_ALLOWED_FALSE" | "STK_VAL_5073_SOURCE_AND_ITEMS_BEING_USED" | "STK_VAL_5076_MISSING_OUTPUT_FROM_GENERATES" | "STK_VAL_5077_MISSING_PLUGIN_REQUIRED_IN_STARTER" | "STK_VAL_5078_WRONG_PLUGIN_TYPE_IN_STACK" | "STK_VAL_5079_DUPLICATED_SLUG" | "STK_VAL_5080_INVALID_VARIABLE" | "STK_VAL_5081_INVALID_VARIABLE_REFERENCE" | "STK_VAL_5082_DUPLICATED_JOB" | "STK_VAL_5083_DUPLICATED_STEP" | "STK_VAL_5084_WORKFLOW_VERSION_NOT_FOUND" | "STK_VAL_5085_MISSING_INPUT_REQUIRED_IN_STEP_JOB" | "STK_VAL_5086_CYCLIC_DEPENDENCY_JOB" | "STK_VAL_5087_CYCLIC_DEPENDENCY_WORKFLOW" | "STK_VAL_5088_WORKFLOW_CREATE_DEPENDENCY" | "STK_VAL_5089_INVALID_DEPENDS_ON_JOBS" | "STK_VAL_5090_INVALID_JOB_STEP_WORKFLOW_TYPE" | "STK_VAL_5091_MULTIPLE_GENERATED_CONNECTION_DEFINITION";
|
|
115
115
|
field?: string;
|
|
116
116
|
value?: object;
|
|
117
117
|
examples: string[];
|
|
@@ -309,6 +309,7 @@ export type GetStackActionResponse = {
|
|
|
309
309
|
"type": string;
|
|
310
310
|
qualifier: string;
|
|
311
311
|
status: string;
|
|
312
|
+
isDocumented: boolean;
|
|
312
313
|
};
|
|
313
314
|
export type GetStackVersionResponse = {
|
|
314
315
|
stack: GetStackVersionStackResponse;
|
|
@@ -357,10 +358,10 @@ export type SortObject = {
|
|
|
357
358
|
export type PageableObject = {
|
|
358
359
|
offset?: number;
|
|
359
360
|
sort?: SortObject[];
|
|
360
|
-
pageSize?: number;
|
|
361
|
-
pageNumber?: number;
|
|
362
361
|
paged?: boolean;
|
|
363
362
|
unpaged?: boolean;
|
|
363
|
+
pageSize?: number;
|
|
364
|
+
pageNumber?: number;
|
|
364
365
|
};
|
|
365
366
|
export type PageGetStackStudioResponse = {
|
|
366
367
|
totalElements?: number;
|
|
@@ -456,6 +457,8 @@ export type PluginGeneratesConnectionResponse = {
|
|
|
456
457
|
typeId: string;
|
|
457
458
|
"type": string;
|
|
458
459
|
alias: string;
|
|
460
|
+
optional: boolean;
|
|
461
|
+
source: string;
|
|
459
462
|
outputs?: OutputResponse[];
|
|
460
463
|
};
|
|
461
464
|
export type PluginGeneratesLinkResponse = {
|
|
@@ -637,6 +640,7 @@ export type ActionResponse = {
|
|
|
637
640
|
repository?: string;
|
|
638
641
|
governance?: ActionGovernanceResponse;
|
|
639
642
|
status: string;
|
|
643
|
+
hasRequiredConnection: boolean;
|
|
640
644
|
};
|
|
641
645
|
export type PageActionResponse = {
|
|
642
646
|
totalElements?: number;
|
|
@@ -1012,11 +1016,60 @@ export type PageStudioResponse = {
|
|
|
1012
1016
|
numberOfElements?: number;
|
|
1013
1017
|
empty?: boolean;
|
|
1014
1018
|
};
|
|
1019
|
+
export type GovernanceDto = {
|
|
1020
|
+
id?: string;
|
|
1021
|
+
status: string;
|
|
1022
|
+
pendingDiscussionReading?: boolean;
|
|
1023
|
+
};
|
|
1024
|
+
export type PluginVersionDto = {
|
|
1025
|
+
pluginVersionId: string;
|
|
1026
|
+
slug: string;
|
|
1027
|
+
version: string;
|
|
1028
|
+
createdBy: string;
|
|
1029
|
+
createdAt: string;
|
|
1030
|
+
status: string;
|
|
1031
|
+
governance?: GovernanceDto;
|
|
1032
|
+
};
|
|
1033
|
+
export type PagePluginVersionDto = {
|
|
1034
|
+
totalElements?: number;
|
|
1035
|
+
totalPages?: number;
|
|
1036
|
+
first?: boolean;
|
|
1037
|
+
last?: boolean;
|
|
1038
|
+
size?: number;
|
|
1039
|
+
content?: PluginVersionDto[];
|
|
1040
|
+
"number"?: number;
|
|
1041
|
+
sort?: SortObject[];
|
|
1042
|
+
pageable?: PageableObject;
|
|
1043
|
+
numberOfElements?: number;
|
|
1044
|
+
empty?: boolean;
|
|
1045
|
+
};
|
|
1015
1046
|
export type DownloadBase64Response = {
|
|
1016
1047
|
fileBase64: string;
|
|
1017
1048
|
fileName: string;
|
|
1018
1049
|
actionVersionId: string;
|
|
1019
1050
|
};
|
|
1051
|
+
export type ActionVersionDto = {
|
|
1052
|
+
actionVersionId: string;
|
|
1053
|
+
version: string;
|
|
1054
|
+
createdBy: string;
|
|
1055
|
+
createdAt: string;
|
|
1056
|
+
updatedAt?: string;
|
|
1057
|
+
status: string;
|
|
1058
|
+
governance?: GovernanceDto;
|
|
1059
|
+
};
|
|
1060
|
+
export type PageActionVersionDto = {
|
|
1061
|
+
totalElements?: number;
|
|
1062
|
+
totalPages?: number;
|
|
1063
|
+
first?: boolean;
|
|
1064
|
+
last?: boolean;
|
|
1065
|
+
size?: number;
|
|
1066
|
+
content?: ActionVersionDto[];
|
|
1067
|
+
"number"?: number;
|
|
1068
|
+
sort?: SortObject[];
|
|
1069
|
+
pageable?: PageableObject;
|
|
1070
|
+
numberOfElements?: number;
|
|
1071
|
+
empty?: boolean;
|
|
1072
|
+
};
|
|
1020
1073
|
export type StackStudioV2Response = {
|
|
1021
1074
|
slug: string;
|
|
1022
1075
|
name: string;
|
|
@@ -1072,6 +1125,10 @@ export type PluginInputConditionResponse = {
|
|
|
1072
1125
|
operator?: string;
|
|
1073
1126
|
value?: JsonNode;
|
|
1074
1127
|
};
|
|
1128
|
+
export type PluginOutputResponse = {
|
|
1129
|
+
"from": string;
|
|
1130
|
+
to: string;
|
|
1131
|
+
};
|
|
1075
1132
|
export type PluginInputResponse = {
|
|
1076
1133
|
label?: string;
|
|
1077
1134
|
name?: string;
|
|
@@ -1087,6 +1144,7 @@ export type PluginInputResponse = {
|
|
|
1087
1144
|
isGlobal?: boolean;
|
|
1088
1145
|
inputEnv?: boolean;
|
|
1089
1146
|
connectionInterfaceType?: string;
|
|
1147
|
+
outputs?: PluginOutputResponse[];
|
|
1090
1148
|
input?: PluginInputResponse;
|
|
1091
1149
|
};
|
|
1092
1150
|
export type PluginComputedInputResponse = {
|
|
@@ -1113,9 +1171,11 @@ export type GetWorkflowsByStudioLatestVersionDataResponse = {
|
|
|
1113
1171
|
id: string;
|
|
1114
1172
|
displayName: string;
|
|
1115
1173
|
label: string;
|
|
1174
|
+
description: string;
|
|
1116
1175
|
semanticVersion: string;
|
|
1117
1176
|
targetApp: boolean;
|
|
1118
1177
|
targetInfra: boolean;
|
|
1178
|
+
createdAt: string;
|
|
1119
1179
|
};
|
|
1120
1180
|
export type GetWorkflowsByStudioResponse = {
|
|
1121
1181
|
id: string;
|
|
@@ -1142,6 +1202,56 @@ export type DownloadWorkflowBase64Response = {
|
|
|
1142
1202
|
file_name: string;
|
|
1143
1203
|
workflowVersionId: string;
|
|
1144
1204
|
};
|
|
1205
|
+
export type WorkflowStudioResponse = {
|
|
1206
|
+
slug: string;
|
|
1207
|
+
name: string;
|
|
1208
|
+
imageUrl?: string;
|
|
1209
|
+
description?: string;
|
|
1210
|
+
};
|
|
1211
|
+
export type GetWorkflowCommandResponse = {
|
|
1212
|
+
"default": string;
|
|
1213
|
+
workspace: string;
|
|
1214
|
+
};
|
|
1215
|
+
export type WorkflowVersionJobStepsResponse = {
|
|
1216
|
+
id: string;
|
|
1217
|
+
identifier: string;
|
|
1218
|
+
name: string;
|
|
1219
|
+
label?: string;
|
|
1220
|
+
ordination: number;
|
|
1221
|
+
optional: boolean;
|
|
1222
|
+
workdir?: string;
|
|
1223
|
+
"type": string;
|
|
1224
|
+
alias?: string;
|
|
1225
|
+
};
|
|
1226
|
+
export type WorkflowVersionJobsResponse = {
|
|
1227
|
+
id: string;
|
|
1228
|
+
identifier: string;
|
|
1229
|
+
label: string;
|
|
1230
|
+
ordination: number;
|
|
1231
|
+
optional: boolean;
|
|
1232
|
+
steps?: WorkflowVersionJobStepsResponse[];
|
|
1233
|
+
};
|
|
1234
|
+
export type GetWorkflowResponse = {
|
|
1235
|
+
id: string;
|
|
1236
|
+
studio: WorkflowStudioResponse;
|
|
1237
|
+
workflowVersionId: string;
|
|
1238
|
+
"type": string;
|
|
1239
|
+
version: string;
|
|
1240
|
+
slug: string;
|
|
1241
|
+
displayName?: string;
|
|
1242
|
+
description?: string;
|
|
1243
|
+
commands?: GetWorkflowCommandResponse;
|
|
1244
|
+
createdAt: string;
|
|
1245
|
+
createdBy: string;
|
|
1246
|
+
updatedAt?: string;
|
|
1247
|
+
qualifier: string;
|
|
1248
|
+
accountSlug?: string;
|
|
1249
|
+
studioSlug: string;
|
|
1250
|
+
status: string;
|
|
1251
|
+
isDocumented: boolean;
|
|
1252
|
+
documentation?: DocumentationContentResponse;
|
|
1253
|
+
jobs?: WorkflowVersionJobsResponse[];
|
|
1254
|
+
};
|
|
1145
1255
|
export type GetAvailableWorkflowVersionsResponse = {
|
|
1146
1256
|
workflowVersionId: string;
|
|
1147
1257
|
version: string;
|
|
@@ -1791,6 +1901,48 @@ export type ListDocumentationResponse = {
|
|
|
1791
1901
|
documentationId: string;
|
|
1792
1902
|
languages: DocumentationLanguageResponse[];
|
|
1793
1903
|
};
|
|
1904
|
+
/**
|
|
1905
|
+
* Update Workflow Documentation
|
|
1906
|
+
*/
|
|
1907
|
+
export function updateWorkflowDocumentation({ studioSlug, workflowSlug, body }: {
|
|
1908
|
+
studioSlug: string;
|
|
1909
|
+
workflowSlug: string;
|
|
1910
|
+
body?: {
|
|
1911
|
+
file: Blob;
|
|
1912
|
+
};
|
|
1913
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1914
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1915
|
+
status: 200;
|
|
1916
|
+
} | {
|
|
1917
|
+
status: 204;
|
|
1918
|
+
} | {
|
|
1919
|
+
status: 400;
|
|
1920
|
+
} | {
|
|
1921
|
+
status: 403;
|
|
1922
|
+
} | {
|
|
1923
|
+
status: 404;
|
|
1924
|
+
} | {
|
|
1925
|
+
status: 422;
|
|
1926
|
+
data: {
|
|
1927
|
+
code: string;
|
|
1928
|
+
status: number;
|
|
1929
|
+
details: string;
|
|
1930
|
+
validationDetails?: ValidationDetails[];
|
|
1931
|
+
};
|
|
1932
|
+
} | {
|
|
1933
|
+
status: 500;
|
|
1934
|
+
data: {
|
|
1935
|
+
code: string;
|
|
1936
|
+
status: number;
|
|
1937
|
+
details: string;
|
|
1938
|
+
validationDetails?: ValidationDetails[];
|
|
1939
|
+
};
|
|
1940
|
+
}>(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows/${encodeURIComponent(workflowSlug)}/docs`, oazapfts.multipart({
|
|
1941
|
+
...opts,
|
|
1942
|
+
method: "PUT",
|
|
1943
|
+
body
|
|
1944
|
+
})));
|
|
1945
|
+
}
|
|
1794
1946
|
/**
|
|
1795
1947
|
* Update Stack and starter docs
|
|
1796
1948
|
*/
|
|
@@ -2334,9 +2486,10 @@ export function addWorkspace({ studioSlug, studioWorkspaceRequest }: {
|
|
|
2334
2486
|
/**
|
|
2335
2487
|
* Publish Workflow
|
|
2336
2488
|
*/
|
|
2337
|
-
export function publishWorkflow({ studioSlug, workflowSlug, body }: {
|
|
2489
|
+
export function publishWorkflow({ studioSlug, workflowSlug, userAgent, body }: {
|
|
2338
2490
|
studioSlug: string;
|
|
2339
2491
|
workflowSlug: string;
|
|
2492
|
+
userAgent?: string;
|
|
2340
2493
|
body?: {
|
|
2341
2494
|
file: Blob;
|
|
2342
2495
|
};
|
|
@@ -2363,7 +2516,10 @@ export function publishWorkflow({ studioSlug, workflowSlug, body }: {
|
|
|
2363
2516
|
}>(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows/${encodeURIComponent(workflowSlug)}`, oazapfts.multipart({
|
|
2364
2517
|
...opts,
|
|
2365
2518
|
method: "POST",
|
|
2366
|
-
body
|
|
2519
|
+
body,
|
|
2520
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2521
|
+
"User-Agent": userAgent
|
|
2522
|
+
})
|
|
2367
2523
|
})));
|
|
2368
2524
|
}
|
|
2369
2525
|
/**
|
|
@@ -2517,7 +2673,7 @@ export function publishPluginController({ studioSlug, pluginSlug, body }: {
|
|
|
2517
2673
|
/**
|
|
2518
2674
|
* Get available plugin versions by plugin slug
|
|
2519
2675
|
*/
|
|
2520
|
-
export function
|
|
2676
|
+
export function getAvailablePluginVersionsByPluginSlug1({ studioSlug, pluginSlug, xWorkspaceId, range, appAllowed }: {
|
|
2521
2677
|
studioSlug: string;
|
|
2522
2678
|
pluginSlug: string;
|
|
2523
2679
|
xWorkspaceId?: string;
|
|
@@ -2768,7 +2924,7 @@ export function createAction({ studioSlug, actionSlug, body }: {
|
|
|
2768
2924
|
/**
|
|
2769
2925
|
* Get available action versions by action slug
|
|
2770
2926
|
*/
|
|
2771
|
-
export function
|
|
2927
|
+
export function getAvailableActionVersionsByActionSlug1({ studioSlug, actionSlug, xWorkspaceId, range, requiresConnection }: {
|
|
2772
2928
|
studioSlug: string;
|
|
2773
2929
|
actionSlug: string;
|
|
2774
2930
|
xWorkspaceId?: string;
|
|
@@ -4694,6 +4850,45 @@ export function getStudios({ xWorkspaceId, authorization, aclOnly, filter, isAcc
|
|
|
4694
4850
|
})
|
|
4695
4851
|
}));
|
|
4696
4852
|
}
|
|
4853
|
+
/**
|
|
4854
|
+
* Get available plugin versions by plugin slug
|
|
4855
|
+
*/
|
|
4856
|
+
export function getAvailablePluginVersionsByPluginSlug({ studioSlug, pluginSlug, xWorkspaceId, range, appAllowed, pageable }: {
|
|
4857
|
+
studioSlug: string;
|
|
4858
|
+
pluginSlug: string;
|
|
4859
|
+
xWorkspaceId?: string;
|
|
4860
|
+
range: string;
|
|
4861
|
+
appAllowed?: boolean;
|
|
4862
|
+
pageable: Pageable;
|
|
4863
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4864
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4865
|
+
status: 200;
|
|
4866
|
+
data: PagePluginVersionDto;
|
|
4867
|
+
} | {
|
|
4868
|
+
status: 422;
|
|
4869
|
+
data: {
|
|
4870
|
+
code: string;
|
|
4871
|
+
status: number;
|
|
4872
|
+
details: string;
|
|
4873
|
+
validationDetails?: ValidationDetails[];
|
|
4874
|
+
};
|
|
4875
|
+
} | {
|
|
4876
|
+
status: 500;
|
|
4877
|
+
data: {
|
|
4878
|
+
code: string;
|
|
4879
|
+
status: number;
|
|
4880
|
+
details: string;
|
|
4881
|
+
validationDetails?: ValidationDetails[];
|
|
4882
|
+
};
|
|
4883
|
+
}>(`/v2/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/range${QS.query(QS.explode({
|
|
4884
|
+
"x-workspace-id": xWorkspaceId,
|
|
4885
|
+
range,
|
|
4886
|
+
appAllowed,
|
|
4887
|
+
pageable
|
|
4888
|
+
}))}`, {
|
|
4889
|
+
...opts
|
|
4890
|
+
}));
|
|
4891
|
+
}
|
|
4697
4892
|
/**
|
|
4698
4893
|
* Download an action by version
|
|
4699
4894
|
*/
|
|
@@ -4729,6 +4924,45 @@ export function downloadAction({ studioSlug, actionSlug, version, xWorkspaceId }
|
|
|
4729
4924
|
})
|
|
4730
4925
|
}));
|
|
4731
4926
|
}
|
|
4927
|
+
/**
|
|
4928
|
+
* Get available action versions by action slug
|
|
4929
|
+
*/
|
|
4930
|
+
export function getAvailableActionVersionsByActionSlug({ studioSlug, actionSlug, xWorkspaceId, range, requiresConnection, pageable }: {
|
|
4931
|
+
studioSlug: string;
|
|
4932
|
+
actionSlug: string;
|
|
4933
|
+
xWorkspaceId?: string;
|
|
4934
|
+
range: string;
|
|
4935
|
+
requiresConnection?: boolean;
|
|
4936
|
+
pageable: Pageable;
|
|
4937
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4938
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4939
|
+
status: 200;
|
|
4940
|
+
data: PageActionVersionDto;
|
|
4941
|
+
} | {
|
|
4942
|
+
status: 422;
|
|
4943
|
+
data: {
|
|
4944
|
+
code: string;
|
|
4945
|
+
status: number;
|
|
4946
|
+
details: string;
|
|
4947
|
+
validationDetails?: ValidationDetails[];
|
|
4948
|
+
};
|
|
4949
|
+
} | {
|
|
4950
|
+
status: 500;
|
|
4951
|
+
data: {
|
|
4952
|
+
code: string;
|
|
4953
|
+
status: number;
|
|
4954
|
+
details: string;
|
|
4955
|
+
validationDetails?: ValidationDetails[];
|
|
4956
|
+
};
|
|
4957
|
+
}>(`/v2/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/range${QS.query(QS.explode({
|
|
4958
|
+
"x-workspace-id": xWorkspaceId,
|
|
4959
|
+
range,
|
|
4960
|
+
requiresConnection,
|
|
4961
|
+
pageable
|
|
4962
|
+
}))}`, {
|
|
4963
|
+
...opts
|
|
4964
|
+
}));
|
|
4965
|
+
}
|
|
4732
4966
|
/**
|
|
4733
4967
|
* List stacks from account
|
|
4734
4968
|
*/
|
|
@@ -4868,9 +5102,11 @@ export function listInputs({ actionVersionId, xWorkspaceId, accountId }: {
|
|
|
4868
5102
|
/**
|
|
4869
5103
|
* Get workflows from studio
|
|
4870
5104
|
*/
|
|
4871
|
-
export function getWorkflowByStudioSlug({ studioSlug, xWorkspaceId, pageable }: {
|
|
5105
|
+
export function getWorkflowByStudioSlug({ studioSlug, xWorkspaceId, displayName, $type, pageable }: {
|
|
4872
5106
|
studioSlug: string;
|
|
4873
5107
|
xWorkspaceId?: string;
|
|
5108
|
+
displayName?: string;
|
|
5109
|
+
$type?: "starter" | "deploy" | "destroy" | "rollback" | "reusable" | "create";
|
|
4874
5110
|
pageable: Pageable;
|
|
4875
5111
|
}, opts?: Oazapfts.RequestOpts) {
|
|
4876
5112
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -4894,6 +5130,8 @@ export function getWorkflowByStudioSlug({ studioSlug, xWorkspaceId, pageable }:
|
|
|
4894
5130
|
};
|
|
4895
5131
|
}>(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows${QS.query(QS.explode({
|
|
4896
5132
|
"x-workspace-id": xWorkspaceId,
|
|
5133
|
+
displayName,
|
|
5134
|
+
"type": $type,
|
|
4897
5135
|
pageable
|
|
4898
5136
|
}))}`, {
|
|
4899
5137
|
...opts
|
|
@@ -4969,6 +5207,43 @@ export function downloadWorkflowBase64({ studioSlug, workflowSlug, version, xWor
|
|
|
4969
5207
|
})
|
|
4970
5208
|
}));
|
|
4971
5209
|
}
|
|
5210
|
+
/**
|
|
5211
|
+
* Get workflow version
|
|
5212
|
+
*/
|
|
5213
|
+
export function getWorkflow({ studioSlug, workflowSlug, version, xWorkspaceId }: {
|
|
5214
|
+
studioSlug: string;
|
|
5215
|
+
workflowSlug: string;
|
|
5216
|
+
version?: string;
|
|
5217
|
+
xWorkspaceId?: string;
|
|
5218
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5219
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5220
|
+
status: 200;
|
|
5221
|
+
data: GetWorkflowResponse;
|
|
5222
|
+
} | {
|
|
5223
|
+
status: 422;
|
|
5224
|
+
data: {
|
|
5225
|
+
code: string;
|
|
5226
|
+
status: number;
|
|
5227
|
+
details: string;
|
|
5228
|
+
validationDetails?: ValidationDetails[];
|
|
5229
|
+
};
|
|
5230
|
+
} | {
|
|
5231
|
+
status: 500;
|
|
5232
|
+
data: {
|
|
5233
|
+
code: string;
|
|
5234
|
+
status: number;
|
|
5235
|
+
details: string;
|
|
5236
|
+
validationDetails?: ValidationDetails[];
|
|
5237
|
+
};
|
|
5238
|
+
}>(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows/${encodeURIComponent(workflowSlug)}/version${QS.query(QS.explode({
|
|
5239
|
+
version
|
|
5240
|
+
}))}`, {
|
|
5241
|
+
...opts,
|
|
5242
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
5243
|
+
"x-workspace-id": xWorkspaceId
|
|
5244
|
+
})
|
|
5245
|
+
}));
|
|
5246
|
+
}
|
|
4972
5247
|
/**
|
|
4973
5248
|
* Get available workflow versions by workflow slug
|
|
4974
5249
|
*/
|