@stack-spot/portal-network 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/api/content.d.ts +133 -56
- package/dist/api/content.d.ts.map +1 -1
- package/dist/api/content.js.map +1 -1
- package/dist/client/content.d.ts +89 -0
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +118 -1
- package/dist/client/content.js.map +1 -1
- package/package.json +1 -1
- package/src/api/content.ts +133 -56
- package/src/client/content.ts +53 -2
package/src/api/content.ts
CHANGED
|
@@ -110,10 +110,19 @@ export type CreateConnectionInterfaceTypeRequest = {
|
|
|
110
110
|
outputs: CreateConnectionInterfaceTypeOutputRequest[];
|
|
111
111
|
};
|
|
112
112
|
export type StudioResponse = {
|
|
113
|
+
id: string;
|
|
113
114
|
slug: string;
|
|
114
115
|
name: string;
|
|
115
116
|
imageUrl?: string;
|
|
116
|
-
|
|
117
|
+
verified: boolean;
|
|
118
|
+
description: string;
|
|
119
|
+
accountSlug: string;
|
|
120
|
+
teams: string[];
|
|
121
|
+
editAllowed: boolean;
|
|
122
|
+
createdBy: string;
|
|
123
|
+
visibility: "ACCOUNT_ONLY" | "SELECTED_WORKSPACES" | "RESTRICTED_ACCESS" | "PUBLIC";
|
|
124
|
+
isGoverned: boolean;
|
|
125
|
+
tabs: string[];
|
|
117
126
|
};
|
|
118
127
|
export type CreateStudioRequest = {
|
|
119
128
|
name: string;
|
|
@@ -177,7 +186,7 @@ export type StackVersionResponse = {
|
|
|
177
186
|
copyFromStackVersionId?: string;
|
|
178
187
|
documentation?: DocumentationContentResponse;
|
|
179
188
|
};
|
|
180
|
-
export type
|
|
189
|
+
export type StackPluginResponseStudio = {
|
|
181
190
|
id: string;
|
|
182
191
|
slug: string;
|
|
183
192
|
name: string;
|
|
@@ -205,20 +214,20 @@ export type PluginRequiresResponse = {
|
|
|
205
214
|
actions: PluginVersionRequiresActionsResponse[];
|
|
206
215
|
plugins: PluginVersionRequiresPluginsResponse[];
|
|
207
216
|
};
|
|
208
|
-
export type
|
|
217
|
+
export type StackPluginResponseConnections = {
|
|
209
218
|
typeId: string;
|
|
210
219
|
"type": string;
|
|
211
220
|
alias: string;
|
|
212
221
|
optional?: boolean;
|
|
213
222
|
source?: string;
|
|
214
223
|
};
|
|
215
|
-
export type
|
|
216
|
-
connections:
|
|
224
|
+
export type StackPluginResponseGenerates = {
|
|
225
|
+
connections: StackPluginResponseConnections[];
|
|
217
226
|
};
|
|
218
|
-
export type
|
|
219
|
-
connections:
|
|
227
|
+
export type StackPluginActionsResponseRequires = {
|
|
228
|
+
connections: StackPluginResponseConnections[];
|
|
220
229
|
};
|
|
221
|
-
export type
|
|
230
|
+
export type StackPluginActionsResponse = {
|
|
222
231
|
id: string;
|
|
223
232
|
versionId: string;
|
|
224
233
|
version: string;
|
|
@@ -228,32 +237,32 @@ export type PluginActionsResponse = {
|
|
|
228
237
|
description: string;
|
|
229
238
|
qualifier: string;
|
|
230
239
|
status: string;
|
|
231
|
-
requires?:
|
|
240
|
+
requires?: StackPluginActionsResponseRequires;
|
|
232
241
|
};
|
|
233
|
-
export type
|
|
242
|
+
export type StackPluginResponse = {
|
|
234
243
|
pluginId: string;
|
|
235
244
|
pluginVersionId: string;
|
|
236
245
|
slug: string;
|
|
237
246
|
displayName: string;
|
|
238
247
|
description?: string;
|
|
239
248
|
pluginQualifier: string;
|
|
240
|
-
studio:
|
|
249
|
+
studio: StackPluginResponseStudio;
|
|
241
250
|
range?: string;
|
|
242
251
|
version: string;
|
|
243
252
|
"type": string;
|
|
244
253
|
status: string;
|
|
245
254
|
requires: PluginRequiresResponse;
|
|
246
|
-
generates:
|
|
255
|
+
generates: StackPluginResponseGenerates;
|
|
247
256
|
appAllowed: boolean;
|
|
248
257
|
singleUse: boolean;
|
|
249
258
|
stkProjectsOnly: boolean;
|
|
250
|
-
actions?:
|
|
259
|
+
actions?: StackPluginActionsResponse[];
|
|
251
260
|
};
|
|
252
261
|
export type GetPluginsResponse = {
|
|
253
262
|
stackSlug: string;
|
|
254
263
|
stackSemanticVersion: string;
|
|
255
|
-
appPluginVersions:
|
|
256
|
-
infraPluginVersions:
|
|
264
|
+
appPluginVersions: StackPluginResponse[];
|
|
265
|
+
infraPluginVersions: StackPluginResponse[];
|
|
257
266
|
};
|
|
258
267
|
export type StackActionStudioResponse = {
|
|
259
268
|
slug: string;
|
|
@@ -398,6 +407,12 @@ export type FilterPluginVersionRequest = {
|
|
|
398
407
|
technologies?: string[];
|
|
399
408
|
text?: string;
|
|
400
409
|
};
|
|
410
|
+
export type PluginStudioResponse = {
|
|
411
|
+
slug: string;
|
|
412
|
+
name: string;
|
|
413
|
+
imageUrl?: string;
|
|
414
|
+
description?: string;
|
|
415
|
+
};
|
|
401
416
|
export type PluginEnvironmentResponse = {
|
|
402
417
|
environments: string[];
|
|
403
418
|
};
|
|
@@ -422,14 +437,14 @@ export type PluginGeneratesResponse = {
|
|
|
422
437
|
connections: PluginGeneratesConnectionResponse[];
|
|
423
438
|
links?: LinkResponse[];
|
|
424
439
|
};
|
|
425
|
-
export type
|
|
440
|
+
export type PluginGovernanceResponse = {
|
|
426
441
|
id?: string;
|
|
427
442
|
pendingDiscussionReading?: boolean;
|
|
428
443
|
status: string;
|
|
429
444
|
};
|
|
430
445
|
export type PluginVersionResponse = {
|
|
431
446
|
id: string;
|
|
432
|
-
studio:
|
|
447
|
+
studio: PluginStudioResponse;
|
|
433
448
|
studioSlug: string;
|
|
434
449
|
accountSlug?: string;
|
|
435
450
|
pluginId: string;
|
|
@@ -447,7 +462,7 @@ export type PluginVersionResponse = {
|
|
|
447
462
|
requires: PluginRequiresResponse;
|
|
448
463
|
generates: PluginGeneratesResponse;
|
|
449
464
|
isDocumented: boolean;
|
|
450
|
-
governance?:
|
|
465
|
+
governance?: PluginGovernanceResponse;
|
|
451
466
|
singleUse: boolean;
|
|
452
467
|
stkProjectsOnly: boolean;
|
|
453
468
|
};
|
|
@@ -468,12 +483,12 @@ export type ActionCommandResponse = {
|
|
|
468
483
|
"default": string;
|
|
469
484
|
workspace: string;
|
|
470
485
|
};
|
|
471
|
-
export type
|
|
486
|
+
export type ActionInputResponseExternalItems = {
|
|
472
487
|
source: string;
|
|
473
488
|
value: string;
|
|
474
489
|
label?: string;
|
|
475
490
|
};
|
|
476
|
-
export type
|
|
491
|
+
export type ActionInputResponseCondition = {
|
|
477
492
|
variable: string;
|
|
478
493
|
operator: string;
|
|
479
494
|
value: object;
|
|
@@ -486,8 +501,8 @@ export type ActionVersionSubInputResponse = {
|
|
|
486
501
|
help?: string;
|
|
487
502
|
"default"?: JsonNode;
|
|
488
503
|
items?: string[];
|
|
489
|
-
condition?:
|
|
490
|
-
externalItems?:
|
|
504
|
+
condition?: ActionInputResponseCondition;
|
|
505
|
+
externalItems?: ActionInputResponseExternalItems;
|
|
491
506
|
connectionInterfaceType?: string;
|
|
492
507
|
input?: ActionVersionSubInputResponse;
|
|
493
508
|
inputs?: ActionVersionInputResponse[];
|
|
@@ -501,8 +516,8 @@ export type ActionVersionInputResponse = {
|
|
|
501
516
|
help?: string;
|
|
502
517
|
"default"?: JsonNode;
|
|
503
518
|
items?: string[];
|
|
504
|
-
externalItems?:
|
|
505
|
-
condition?:
|
|
519
|
+
externalItems?: ActionInputResponseExternalItems;
|
|
520
|
+
condition?: ActionInputResponseCondition;
|
|
506
521
|
envInput?: boolean;
|
|
507
522
|
connectionInterfaceType?: string;
|
|
508
523
|
input?: ActionVersionSubInputResponse;
|
|
@@ -521,6 +536,11 @@ export type ActionRequiresResponse = {
|
|
|
521
536
|
connections?: ConnectionResponse[];
|
|
522
537
|
secrets?: string[];
|
|
523
538
|
};
|
|
539
|
+
export type ActionGovernanceResponse = {
|
|
540
|
+
id?: string;
|
|
541
|
+
status: string;
|
|
542
|
+
pendingDiscussionReading?: boolean;
|
|
543
|
+
};
|
|
524
544
|
export type GetActionResponse = {
|
|
525
545
|
id: string;
|
|
526
546
|
versionId: string;
|
|
@@ -551,7 +571,7 @@ export type GetActionResponse = {
|
|
|
551
571
|
studioSlug: string;
|
|
552
572
|
accountSlug: string;
|
|
553
573
|
status: string;
|
|
554
|
-
governance?:
|
|
574
|
+
governance?: ActionGovernanceResponse;
|
|
555
575
|
documentation?: DocumentationContentResponse;
|
|
556
576
|
justify?: string;
|
|
557
577
|
};
|
|
@@ -583,7 +603,7 @@ export type ActionResponse = {
|
|
|
583
603
|
description?: string;
|
|
584
604
|
isDocumented: boolean;
|
|
585
605
|
repository?: string;
|
|
586
|
-
governance?:
|
|
606
|
+
governance?: ActionGovernanceResponse;
|
|
587
607
|
status: string;
|
|
588
608
|
};
|
|
589
609
|
export type PageActionResponse = {
|
|
@@ -680,19 +700,51 @@ export type FilterStackVersionPluginRequest = {
|
|
|
680
700
|
technologies: string[];
|
|
681
701
|
text?: string;
|
|
682
702
|
};
|
|
683
|
-
export type
|
|
703
|
+
export type PageStackPluginResponse = {
|
|
684
704
|
totalElements?: number;
|
|
685
705
|
totalPages?: number;
|
|
686
706
|
first?: boolean;
|
|
687
707
|
last?: boolean;
|
|
688
708
|
size?: number;
|
|
689
|
-
content?:
|
|
709
|
+
content?: StackPluginResponse[];
|
|
690
710
|
"number"?: number;
|
|
691
711
|
sort?: SortObject[];
|
|
692
712
|
numberOfElements?: number;
|
|
693
713
|
pageable?: PageableObject;
|
|
694
714
|
empty?: boolean;
|
|
695
715
|
};
|
|
716
|
+
export type LinkPluginStudioResponse = {
|
|
717
|
+
id: string;
|
|
718
|
+
slug: string;
|
|
719
|
+
name: string;
|
|
720
|
+
};
|
|
721
|
+
export type LinkPluginActionsResponseConnections = {
|
|
722
|
+
"type": string;
|
|
723
|
+
alias: string;
|
|
724
|
+
};
|
|
725
|
+
export type LinkPluginActionsResponseRequires = {
|
|
726
|
+
connections: LinkPluginActionsResponseConnections[];
|
|
727
|
+
};
|
|
728
|
+
export type LinkPluginActionsResponse = {
|
|
729
|
+
id: string;
|
|
730
|
+
versionId: string;
|
|
731
|
+
version: string;
|
|
732
|
+
slug: string;
|
|
733
|
+
displayName: string;
|
|
734
|
+
description: string;
|
|
735
|
+
qualifier: string;
|
|
736
|
+
requires?: LinkPluginActionsResponseRequires;
|
|
737
|
+
};
|
|
738
|
+
export type LinkPluginVersionResponse = {
|
|
739
|
+
pluginId: string;
|
|
740
|
+
id: string;
|
|
741
|
+
slug: string;
|
|
742
|
+
displayName: string;
|
|
743
|
+
description?: string;
|
|
744
|
+
qualifier: string;
|
|
745
|
+
studio: LinkPluginStudioResponse;
|
|
746
|
+
actions?: LinkPluginActionsResponse[];
|
|
747
|
+
};
|
|
696
748
|
export type GetLinkResponse = {
|
|
697
749
|
id: string;
|
|
698
750
|
name: string;
|
|
@@ -700,7 +752,7 @@ export type GetLinkResponse = {
|
|
|
700
752
|
source: "PLUGIN" | "STACK";
|
|
701
753
|
"type"?: string;
|
|
702
754
|
imageUrl?: string;
|
|
703
|
-
pluginVersion?:
|
|
755
|
+
pluginVersion?: LinkPluginVersionResponse;
|
|
704
756
|
};
|
|
705
757
|
export type AddLinkRequest = {
|
|
706
758
|
name: string;
|
|
@@ -824,8 +876,8 @@ export type ActionVersionDataSubInputResponse = {
|
|
|
824
876
|
help?: string;
|
|
825
877
|
"default"?: JsonNode;
|
|
826
878
|
items?: string[];
|
|
827
|
-
condition?:
|
|
828
|
-
externalItems?:
|
|
879
|
+
condition?: ActionInputResponseCondition;
|
|
880
|
+
externalItems?: ActionInputResponseExternalItems;
|
|
829
881
|
connectionInterfaceType?: string;
|
|
830
882
|
input?: ActionVersionSubInputResponse;
|
|
831
883
|
};
|
|
@@ -838,8 +890,8 @@ export type ActionVersionDataInputResponse = {
|
|
|
838
890
|
help?: string;
|
|
839
891
|
"default"?: JsonNode;
|
|
840
892
|
items?: string[];
|
|
841
|
-
externalItems?:
|
|
842
|
-
condition?:
|
|
893
|
+
externalItems?: ActionInputResponseExternalItems;
|
|
894
|
+
condition?: ActionInputResponseCondition;
|
|
843
895
|
connectionInterfaceType?: string;
|
|
844
896
|
input?: ActionVersionDataSubInputResponse;
|
|
845
897
|
};
|
|
@@ -985,12 +1037,17 @@ export type GetStackV2Response = {
|
|
|
985
1037
|
latestVersion: StackVersionV2Response;
|
|
986
1038
|
versions: StackVersionShortV2Response[];
|
|
987
1039
|
};
|
|
988
|
-
export type
|
|
1040
|
+
export type PluginInputResponseExternalItem = {
|
|
989
1041
|
source: string;
|
|
990
1042
|
value: string;
|
|
991
1043
|
label?: string;
|
|
992
1044
|
};
|
|
993
|
-
export type
|
|
1045
|
+
export type PluginInputResponseCondition = {
|
|
1046
|
+
variable?: string;
|
|
1047
|
+
operator?: string;
|
|
1048
|
+
value?: JsonNode;
|
|
1049
|
+
};
|
|
1050
|
+
export type PluginInputResponse = {
|
|
994
1051
|
label?: string;
|
|
995
1052
|
name?: string;
|
|
996
1053
|
"type"?: string;
|
|
@@ -999,16 +1056,16 @@ export type InputResponse = {
|
|
|
999
1056
|
help?: string;
|
|
1000
1057
|
"default"?: JsonNode;
|
|
1001
1058
|
items?: string;
|
|
1002
|
-
externalItems?:
|
|
1059
|
+
externalItems?: PluginInputResponseExternalItem;
|
|
1003
1060
|
itemsValues?: string[];
|
|
1004
|
-
condition?:
|
|
1061
|
+
condition?: PluginInputResponseCondition;
|
|
1005
1062
|
isGlobal?: boolean;
|
|
1006
1063
|
inputEnv?: boolean;
|
|
1007
1064
|
connectionInterfaceType?: string;
|
|
1008
|
-
input?:
|
|
1065
|
+
input?: PluginInputResponse;
|
|
1009
1066
|
};
|
|
1010
1067
|
export type PluginInputV2Response = {
|
|
1011
|
-
inputs:
|
|
1068
|
+
inputs: PluginInputResponse[];
|
|
1012
1069
|
computedInputs: ComputedInputResponse[];
|
|
1013
1070
|
globalComputedInputs: ComputedInputResponse[];
|
|
1014
1071
|
};
|
|
@@ -1102,10 +1159,10 @@ export type PluginVersionShortResponse = {
|
|
|
1102
1159
|
singleUse: boolean;
|
|
1103
1160
|
stkProjectOnly: boolean;
|
|
1104
1161
|
stkProjectsOnly: boolean;
|
|
1105
|
-
governance?:
|
|
1162
|
+
governance?: PluginGovernanceResponse;
|
|
1106
1163
|
requires?: PluginRequiresResponse;
|
|
1107
1164
|
};
|
|
1108
|
-
export type
|
|
1165
|
+
export type RequirementsPluginResponseActionStudio = {
|
|
1109
1166
|
slug: string;
|
|
1110
1167
|
};
|
|
1111
1168
|
export type RequirementsPluginActionsResponse = {
|
|
@@ -1118,7 +1175,20 @@ export type RequirementsPluginActionsResponse = {
|
|
|
1118
1175
|
description: string;
|
|
1119
1176
|
actionQualifier: string;
|
|
1120
1177
|
status: string;
|
|
1121
|
-
studio:
|
|
1178
|
+
studio: RequirementsPluginResponseActionStudio;
|
|
1179
|
+
};
|
|
1180
|
+
export type RequirementsPluginResponseStudio = {
|
|
1181
|
+
id: string;
|
|
1182
|
+
slug: string;
|
|
1183
|
+
name: string;
|
|
1184
|
+
};
|
|
1185
|
+
export type RequirementsPluginResponseConnections = {
|
|
1186
|
+
typeId: string;
|
|
1187
|
+
"type": string;
|
|
1188
|
+
alias: string;
|
|
1189
|
+
};
|
|
1190
|
+
export type RequirementsPluginResponseGenerates = {
|
|
1191
|
+
connections: RequirementsPluginResponseConnections[];
|
|
1122
1192
|
};
|
|
1123
1193
|
export type RequirementsPluginResponse = {
|
|
1124
1194
|
pluginId: string;
|
|
@@ -1128,11 +1198,11 @@ export type RequirementsPluginResponse = {
|
|
|
1128
1198
|
displayName: string;
|
|
1129
1199
|
description?: string;
|
|
1130
1200
|
pluginQualifier: string;
|
|
1131
|
-
studio:
|
|
1201
|
+
studio: RequirementsPluginResponseStudio;
|
|
1132
1202
|
range?: string;
|
|
1133
1203
|
version: string;
|
|
1134
1204
|
status: string;
|
|
1135
|
-
generates:
|
|
1205
|
+
generates: RequirementsPluginResponseGenerates;
|
|
1136
1206
|
appAllowed: boolean;
|
|
1137
1207
|
};
|
|
1138
1208
|
export type DependencyTree = {
|
|
@@ -1156,7 +1226,7 @@ export type PluginCommandResponse = {
|
|
|
1156
1226
|
};
|
|
1157
1227
|
export type GetPluginResponse = {
|
|
1158
1228
|
id: string;
|
|
1159
|
-
studio:
|
|
1229
|
+
studio: PluginStudioResponse;
|
|
1160
1230
|
pluginVersionId: string;
|
|
1161
1231
|
"type": string;
|
|
1162
1232
|
version: string;
|
|
@@ -1179,8 +1249,8 @@ export type GetPluginResponse = {
|
|
|
1179
1249
|
createdBy: string;
|
|
1180
1250
|
updatedAt?: string;
|
|
1181
1251
|
runtime?: PluginEnvironmentResponse;
|
|
1182
|
-
inputs:
|
|
1183
|
-
inputsEnvs:
|
|
1252
|
+
inputs: PluginInputResponse[];
|
|
1253
|
+
inputsEnvs: PluginInputResponse[];
|
|
1184
1254
|
computedInputs?: string;
|
|
1185
1255
|
requires?: PluginRequiresResponse;
|
|
1186
1256
|
generates: PluginGeneratesResponse;
|
|
@@ -1189,7 +1259,7 @@ export type GetPluginResponse = {
|
|
|
1189
1259
|
studioSlug: string;
|
|
1190
1260
|
status: string;
|
|
1191
1261
|
isDocumented: boolean;
|
|
1192
|
-
governance?:
|
|
1262
|
+
governance?: PluginGovernanceResponse;
|
|
1193
1263
|
documentation?: DocumentationContentResponse;
|
|
1194
1264
|
singleUse: boolean;
|
|
1195
1265
|
justify?: string;
|
|
@@ -1202,7 +1272,7 @@ export type PluginStarterResponse = {
|
|
|
1202
1272
|
"type": string;
|
|
1203
1273
|
description?: string;
|
|
1204
1274
|
totalLinkedVersions: number;
|
|
1205
|
-
studio:
|
|
1275
|
+
studio: PluginStudioResponse;
|
|
1206
1276
|
stack: StackResponse;
|
|
1207
1277
|
};
|
|
1208
1278
|
export type PagePluginStarterResponse = {
|
|
@@ -1251,7 +1321,7 @@ export type PluginStacksResponse = {
|
|
|
1251
1321
|
description: string;
|
|
1252
1322
|
imageUrl: string;
|
|
1253
1323
|
totalLinkedVersions: number;
|
|
1254
|
-
studio:
|
|
1324
|
+
studio: PluginStudioResponse;
|
|
1255
1325
|
};
|
|
1256
1326
|
export type PagePluginStacksResponse = {
|
|
1257
1327
|
totalElements?: number;
|
|
@@ -1352,7 +1422,7 @@ export type PluginViewUsageMonitorResponse = {
|
|
|
1352
1422
|
imageUrl: string;
|
|
1353
1423
|
"type": string;
|
|
1354
1424
|
totalLinkedVersions: number;
|
|
1355
|
-
studio:
|
|
1425
|
+
studio: PluginStudioResponse;
|
|
1356
1426
|
};
|
|
1357
1427
|
export type PagePluginViewUsageMonitorResponse = {
|
|
1358
1428
|
totalElements?: number;
|
|
@@ -1469,7 +1539,7 @@ export type ActionVersionResponse = {
|
|
|
1469
1539
|
createdAt: string;
|
|
1470
1540
|
updatedAt?: string;
|
|
1471
1541
|
status: string;
|
|
1472
|
-
governance?:
|
|
1542
|
+
governance?: ActionGovernanceResponse;
|
|
1473
1543
|
};
|
|
1474
1544
|
export type GetActionVersionListResponse = {
|
|
1475
1545
|
actionId: string;
|
|
@@ -1521,16 +1591,23 @@ export type PluginVersionByConnectionResponse = {
|
|
|
1521
1591
|
id: string;
|
|
1522
1592
|
slug: string;
|
|
1523
1593
|
accountSlug?: string;
|
|
1524
|
-
studio:
|
|
1594
|
+
studio: PluginStudioResponse;
|
|
1525
1595
|
pluginVersions?: PluginVersionResponse[];
|
|
1526
1596
|
};
|
|
1597
|
+
export type ContentStudioResponse = {
|
|
1598
|
+
slug: string;
|
|
1599
|
+
createdBy: string;
|
|
1600
|
+
visibility: "ACCOUNT_ONLY" | "SELECTED_WORKSPACES" | "RESTRICTED_ACCESS" | "PUBLIC";
|
|
1601
|
+
teams: string[];
|
|
1602
|
+
workspaces: string[];
|
|
1603
|
+
};
|
|
1527
1604
|
export type ContentDataResponse = {
|
|
1528
1605
|
id: string;
|
|
1529
1606
|
slug: string;
|
|
1530
1607
|
contentType: "STUDIO" | "ACTION" | "PLUGIN" | "STACK" | "STARTER" | "ACTION_VERSION" | "PLUGIN_VERSION" | "STACK_VERSION";
|
|
1531
1608
|
};
|
|
1532
1609
|
export type ContentResponse = {
|
|
1533
|
-
studio:
|
|
1610
|
+
studio: ContentStudioResponse;
|
|
1534
1611
|
content: ContentDataResponse;
|
|
1535
1612
|
parent?: ContentDataResponse;
|
|
1536
1613
|
};
|
|
@@ -3076,7 +3153,7 @@ export function filterStackVersionPlugins({ xWorkspaceId, stackVersionId, pageab
|
|
|
3076
3153
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3077
3154
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3078
3155
|
status: 200;
|
|
3079
|
-
data:
|
|
3156
|
+
data: PageStackPluginResponse;
|
|
3080
3157
|
} | {
|
|
3081
3158
|
status: 422;
|
|
3082
3159
|
data: {
|
|
@@ -6404,7 +6481,7 @@ export function getInputs1({ pluginVersionId, xWorkspaceId }: {
|
|
|
6404
6481
|
}, opts?: Oazapfts.RequestOpts) {
|
|
6405
6482
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
6406
6483
|
status: 200;
|
|
6407
|
-
data:
|
|
6484
|
+
data: PluginInputResponse[];
|
|
6408
6485
|
} | {
|
|
6409
6486
|
status: 422;
|
|
6410
6487
|
data: {
|
package/src/client/content.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
|
-
import { addLink, defaults, deleteLink, getStackVersionListByIds, listLinksByStackVersion } from '../api/content'
|
|
2
|
+
import { addLink, addWorkspace, changeVisibility, createStudio, defaults, deleteLink, deleteStudio, delWorkspace, getStackVersionListByIds, getStudioByIdOrSlug, getStudios1, getStudiosToCreateButton, getStudioTabs, listLinksByStackVersion, listReasons, listWorkspaces, updateStudio, updateStudioTabs } from '../api/content'
|
|
3
3
|
import apis from '../apis.json'
|
|
4
4
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
5
5
|
import { cntDictionary } from '../error/dictionary/cnt'
|
|
@@ -30,7 +30,58 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
30
30
|
* Gets all stack version by a list of ids
|
|
31
31
|
*/
|
|
32
32
|
allStackVersionByIds = this.query(getStackVersionListByIds)
|
|
33
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Gets all studios
|
|
35
|
+
*/
|
|
36
|
+
studios = this.query(getStudios1)
|
|
37
|
+
/**
|
|
38
|
+
* Gets all studios
|
|
39
|
+
*/
|
|
40
|
+
studiosUserHasCreatePermission = this.query(getStudiosToCreateButton)
|
|
41
|
+
/**
|
|
42
|
+
* Gets a studio
|
|
43
|
+
*/
|
|
44
|
+
studio = this.query(getStudioByIdOrSlug)
|
|
45
|
+
/**
|
|
46
|
+
* Creates a studio
|
|
47
|
+
*/
|
|
48
|
+
createStudio = this.mutation(createStudio)
|
|
49
|
+
/**
|
|
50
|
+
* Updates a studio
|
|
51
|
+
*/
|
|
52
|
+
updateStudio = this.mutation(updateStudio)
|
|
53
|
+
/**
|
|
54
|
+
* Deletes a studio
|
|
55
|
+
*/
|
|
56
|
+
deleteStudio = this.mutation(deleteStudio)
|
|
57
|
+
/**
|
|
58
|
+
* Changes studio visibility
|
|
59
|
+
*/
|
|
60
|
+
changeStudioVisibility = this.mutation(changeVisibility)
|
|
61
|
+
/**
|
|
62
|
+
* Adds a workspace to a studio
|
|
63
|
+
*/
|
|
64
|
+
addWorkspaceToStudio = this.mutation(addWorkspace)
|
|
65
|
+
/**
|
|
66
|
+
* Removes a given workspace from a studio
|
|
67
|
+
*/
|
|
68
|
+
removeWorkspaceFromStudio = this.mutation(delWorkspace)
|
|
69
|
+
/**
|
|
70
|
+
* Gets all workspaces associated with a given studio
|
|
71
|
+
*/
|
|
72
|
+
workspacesAssociatedToStudio = this.query(listWorkspaces)
|
|
73
|
+
/**
|
|
74
|
+
* Gets studio tabs
|
|
75
|
+
*/
|
|
76
|
+
studioTabs = this.query(getStudioTabs)
|
|
77
|
+
/**
|
|
78
|
+
* Updates studio tabs
|
|
79
|
+
*/
|
|
80
|
+
updateStudioTabs = this.mutation(updateStudioTabs)
|
|
81
|
+
/**
|
|
82
|
+
* Gets content deprecation reasons
|
|
83
|
+
*/
|
|
84
|
+
deprecationReasons = this.query(listReasons)
|
|
34
85
|
}
|
|
35
86
|
|
|
36
87
|
export const contentClient = new ContentClient()
|