@stack-spot/portal-network 0.38.1 → 0.39.1
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/content.d.ts +60 -28
- package/dist/api/content.d.ts.map +1 -1
- package/dist/api/content.js +14 -0
- package/dist/api/content.js.map +1 -1
- package/dist/client/content.d.ts +4 -4
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +4 -4
- package/dist/client/content.js.map +1 -1
- package/package.json +1 -1
- package/src/api/content.ts +89 -28
- package/src/client/content.ts +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.39.1](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.39.0...portal-network@v0.39.1) (2024-10-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* content swagger ([#415](https://github.com/stack-spot/portal-commons/issues/415)) ([d928fb2](https://github.com/stack-spot/portal-commons/commit/d928fb2ad5b92573a1a03b65a4de02d5df8f67fa))
|
|
9
|
+
|
|
10
|
+
## [0.39.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.38.1...portal-network@v0.39.0) (2024-10-09)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* Add workflow get versions ([#412](https://github.com/stack-spot/portal-commons/issues/412)) ([7463ec4](https://github.com/stack-spot/portal-commons/commit/7463ec48075592e3eeda688111671879ecc738c5))
|
|
16
|
+
|
|
3
17
|
## [0.38.1](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.38.0...portal-network@v0.38.1) (2024-10-09)
|
|
4
18
|
|
|
5
19
|
|
package/dist/api/content.d.ts
CHANGED
|
@@ -315,7 +315,7 @@ export type GetStackVersionResponse = {
|
|
|
315
315
|
export type Pageable = {
|
|
316
316
|
page?: number;
|
|
317
317
|
size?: number;
|
|
318
|
-
sort?:
|
|
318
|
+
sort?: any;
|
|
319
319
|
};
|
|
320
320
|
export type FilterStackRequest = {
|
|
321
321
|
filter?: string;
|
|
@@ -359,8 +359,8 @@ export type PageableObject = {
|
|
|
359
359
|
pageNumber?: number;
|
|
360
360
|
};
|
|
361
361
|
export type PageGetStackStudioResponse = {
|
|
362
|
-
totalPages?: number;
|
|
363
362
|
totalElements?: number;
|
|
363
|
+
totalPages?: number;
|
|
364
364
|
first?: boolean;
|
|
365
365
|
last?: boolean;
|
|
366
366
|
size?: number;
|
|
@@ -497,8 +497,8 @@ export type PluginVersionResponse = {
|
|
|
497
497
|
stkProjectsOnly: boolean;
|
|
498
498
|
};
|
|
499
499
|
export type PagePluginVersionResponse = {
|
|
500
|
-
totalPages?: number;
|
|
501
500
|
totalElements?: number;
|
|
501
|
+
totalPages?: number;
|
|
502
502
|
first?: boolean;
|
|
503
503
|
last?: boolean;
|
|
504
504
|
size?: number;
|
|
@@ -638,8 +638,8 @@ export type ActionResponse = {
|
|
|
638
638
|
hasRequiredConnection: boolean;
|
|
639
639
|
};
|
|
640
640
|
export type PageActionResponse = {
|
|
641
|
-
totalPages?: number;
|
|
642
641
|
totalElements?: number;
|
|
642
|
+
totalPages?: number;
|
|
643
643
|
first?: boolean;
|
|
644
644
|
last?: boolean;
|
|
645
645
|
size?: number;
|
|
@@ -699,8 +699,8 @@ export type FilterStarterRequest = {
|
|
|
699
699
|
"type"?: "INFRA" | "APP";
|
|
700
700
|
};
|
|
701
701
|
export type PageStarterResponseWithRange = {
|
|
702
|
-
totalPages?: number;
|
|
703
702
|
totalElements?: number;
|
|
703
|
+
totalPages?: number;
|
|
704
704
|
first?: boolean;
|
|
705
705
|
last?: boolean;
|
|
706
706
|
size?: number;
|
|
@@ -717,8 +717,8 @@ export type FilterStackVersionPluginRequest = {
|
|
|
717
717
|
text?: string;
|
|
718
718
|
};
|
|
719
719
|
export type PageStackPluginResponse = {
|
|
720
|
-
totalPages?: number;
|
|
721
720
|
totalElements?: number;
|
|
721
|
+
totalPages?: number;
|
|
722
722
|
first?: boolean;
|
|
723
723
|
last?: boolean;
|
|
724
724
|
size?: number;
|
|
@@ -816,8 +816,8 @@ export type FilterStackActionRequest = {
|
|
|
816
816
|
filter?: string;
|
|
817
817
|
};
|
|
818
818
|
export type PageGetStackActionResponse = {
|
|
819
|
-
totalPages?: number;
|
|
820
819
|
totalElements?: number;
|
|
820
|
+
totalPages?: number;
|
|
821
821
|
first?: boolean;
|
|
822
822
|
last?: boolean;
|
|
823
823
|
size?: number;
|
|
@@ -999,8 +999,8 @@ export type UpdateDocRequest = {
|
|
|
999
999
|
publish: boolean;
|
|
1000
1000
|
};
|
|
1001
1001
|
export type PageStudioResponse = {
|
|
1002
|
-
totalPages?: number;
|
|
1003
1002
|
totalElements?: number;
|
|
1003
|
+
totalPages?: number;
|
|
1004
1004
|
first?: boolean;
|
|
1005
1005
|
last?: boolean;
|
|
1006
1006
|
size?: number;
|
|
@@ -1026,8 +1026,8 @@ export type PluginVersionDto = {
|
|
|
1026
1026
|
governance?: GovernanceDto;
|
|
1027
1027
|
};
|
|
1028
1028
|
export type PagePluginVersionDto = {
|
|
1029
|
-
totalPages?: number;
|
|
1030
1029
|
totalElements?: number;
|
|
1030
|
+
totalPages?: number;
|
|
1031
1031
|
first?: boolean;
|
|
1032
1032
|
last?: boolean;
|
|
1033
1033
|
size?: number;
|
|
@@ -1053,8 +1053,8 @@ export type ActionVersionDto = {
|
|
|
1053
1053
|
governance?: GovernanceDto;
|
|
1054
1054
|
};
|
|
1055
1055
|
export type PageActionVersionDto = {
|
|
1056
|
-
totalPages?: number;
|
|
1057
1056
|
totalElements?: number;
|
|
1057
|
+
totalPages?: number;
|
|
1058
1058
|
first?: boolean;
|
|
1059
1059
|
last?: boolean;
|
|
1060
1060
|
size?: number;
|
|
@@ -1180,8 +1180,8 @@ export type GetWorkflowsByStudioResponse = {
|
|
|
1180
1180
|
latestVersion?: GetWorkflowsByStudioLatestVersionDataResponse;
|
|
1181
1181
|
};
|
|
1182
1182
|
export type PageGetWorkflowsByStudioResponse = {
|
|
1183
|
-
totalPages?: number;
|
|
1184
1183
|
totalElements?: number;
|
|
1184
|
+
totalPages?: number;
|
|
1185
1185
|
first?: boolean;
|
|
1186
1186
|
last?: boolean;
|
|
1187
1187
|
size?: number;
|
|
@@ -1192,6 +1192,27 @@ export type PageGetWorkflowsByStudioResponse = {
|
|
|
1192
1192
|
numberOfElements?: number;
|
|
1193
1193
|
empty?: boolean;
|
|
1194
1194
|
};
|
|
1195
|
+
export type ListWorkflowVersionsResponse = {
|
|
1196
|
+
workflowVersionId: string;
|
|
1197
|
+
version: string;
|
|
1198
|
+
createdBy: string;
|
|
1199
|
+
createdAt: string;
|
|
1200
|
+
updatedAt?: string;
|
|
1201
|
+
status: "PUBLISHED" | "DEPRECATED";
|
|
1202
|
+
};
|
|
1203
|
+
export type PageListWorkflowVersionsResponse = {
|
|
1204
|
+
totalElements?: number;
|
|
1205
|
+
totalPages?: number;
|
|
1206
|
+
first?: boolean;
|
|
1207
|
+
last?: boolean;
|
|
1208
|
+
size?: number;
|
|
1209
|
+
content?: ListWorkflowVersionsResponse[];
|
|
1210
|
+
"number"?: number;
|
|
1211
|
+
sort?: SortObject[];
|
|
1212
|
+
pageable?: PageableObject;
|
|
1213
|
+
numberOfElements?: number;
|
|
1214
|
+
empty?: boolean;
|
|
1215
|
+
};
|
|
1195
1216
|
export type DownloadWorkflowBase64Response = {
|
|
1196
1217
|
file_base_64: string;
|
|
1197
1218
|
file_name: string;
|
|
@@ -1210,7 +1231,7 @@ export type GetWorkflowCommandResponse = {
|
|
|
1210
1231
|
export type WorkflowVersionJobStepsResponse = {
|
|
1211
1232
|
id: string;
|
|
1212
1233
|
identifier: string;
|
|
1213
|
-
name
|
|
1234
|
+
name?: string;
|
|
1214
1235
|
label?: string;
|
|
1215
1236
|
ordination: number;
|
|
1216
1237
|
optional: boolean;
|
|
@@ -1239,6 +1260,7 @@ export type GetWorkflowResponse = {
|
|
|
1239
1260
|
createdAt: string;
|
|
1240
1261
|
createdBy: string;
|
|
1241
1262
|
updatedAt?: string;
|
|
1263
|
+
repository?: string;
|
|
1242
1264
|
qualifier: string;
|
|
1243
1265
|
accountSlug?: string;
|
|
1244
1266
|
studioSlug: string;
|
|
@@ -1252,8 +1274,8 @@ export type GetAvailableWorkflowVersionsResponse = {
|
|
|
1252
1274
|
version: string;
|
|
1253
1275
|
};
|
|
1254
1276
|
export type PageGetAvailableWorkflowVersionsResponse = {
|
|
1255
|
-
totalPages?: number;
|
|
1256
1277
|
totalElements?: number;
|
|
1278
|
+
totalPages?: number;
|
|
1257
1279
|
first?: boolean;
|
|
1258
1280
|
last?: boolean;
|
|
1259
1281
|
size?: number;
|
|
@@ -1272,8 +1294,8 @@ export type StackWorkspaceViewResponse = {
|
|
|
1272
1294
|
totalLinkedVersions: number;
|
|
1273
1295
|
};
|
|
1274
1296
|
export type PageStackWorkspaceViewResponse = {
|
|
1275
|
-
totalPages?: number;
|
|
1276
1297
|
totalElements?: number;
|
|
1298
|
+
totalPages?: number;
|
|
1277
1299
|
first?: boolean;
|
|
1278
1300
|
last?: boolean;
|
|
1279
1301
|
size?: number;
|
|
@@ -1300,8 +1322,8 @@ export type StackWorkspaceDetailViewResponse = {
|
|
|
1300
1322
|
environment?: StackWorkspaceDetailViewEnvironmentResponse;
|
|
1301
1323
|
};
|
|
1302
1324
|
export type PageStackWorkspaceDetailViewResponse = {
|
|
1303
|
-
totalPages?: number;
|
|
1304
1325
|
totalElements?: number;
|
|
1326
|
+
totalPages?: number;
|
|
1305
1327
|
first?: boolean;
|
|
1306
1328
|
last?: boolean;
|
|
1307
1329
|
size?: number;
|
|
@@ -1319,8 +1341,8 @@ export type GetUnusedStackVersionsResponse = {
|
|
|
1319
1341
|
status?: string;
|
|
1320
1342
|
};
|
|
1321
1343
|
export type PageGetUnusedStackVersionsResponse = {
|
|
1322
|
-
totalPages?: number;
|
|
1323
1344
|
totalElements?: number;
|
|
1345
|
+
totalPages?: number;
|
|
1324
1346
|
first?: boolean;
|
|
1325
1347
|
last?: boolean;
|
|
1326
1348
|
size?: number;
|
|
@@ -1470,8 +1492,8 @@ export type PluginStarterResponse = {
|
|
|
1470
1492
|
stack: StackResponse;
|
|
1471
1493
|
};
|
|
1472
1494
|
export type PagePluginStarterResponse = {
|
|
1473
|
-
totalPages?: number;
|
|
1474
1495
|
totalElements?: number;
|
|
1496
|
+
totalPages?: number;
|
|
1475
1497
|
first?: boolean;
|
|
1476
1498
|
last?: boolean;
|
|
1477
1499
|
size?: number;
|
|
@@ -1496,8 +1518,8 @@ export type GetPluginStackStarterUsageResponse = {
|
|
|
1496
1518
|
pluginVersion: GetPluginStackStarterUsagePluginResponse;
|
|
1497
1519
|
};
|
|
1498
1520
|
export type PageGetPluginStackStarterUsageResponse = {
|
|
1499
|
-
totalPages?: number;
|
|
1500
1521
|
totalElements?: number;
|
|
1522
|
+
totalPages?: number;
|
|
1501
1523
|
first?: boolean;
|
|
1502
1524
|
last?: boolean;
|
|
1503
1525
|
size?: number;
|
|
@@ -1518,8 +1540,8 @@ export type PluginStacksResponse = {
|
|
|
1518
1540
|
studio: PluginStudioResponse;
|
|
1519
1541
|
};
|
|
1520
1542
|
export type PagePluginStacksResponse = {
|
|
1521
|
-
totalPages?: number;
|
|
1522
1543
|
totalElements?: number;
|
|
1544
|
+
totalPages?: number;
|
|
1523
1545
|
first?: boolean;
|
|
1524
1546
|
last?: boolean;
|
|
1525
1547
|
size?: number;
|
|
@@ -1544,8 +1566,8 @@ export type GetPluginStackUsageResponse = {
|
|
|
1544
1566
|
pluginVersion: GetPluginStackUsagePluginResponse;
|
|
1545
1567
|
};
|
|
1546
1568
|
export type PageGetPluginStackUsageResponse = {
|
|
1547
|
-
totalPages?: number;
|
|
1548
1569
|
totalElements?: number;
|
|
1570
|
+
totalPages?: number;
|
|
1549
1571
|
first?: boolean;
|
|
1550
1572
|
last?: boolean;
|
|
1551
1573
|
size?: number;
|
|
@@ -1570,8 +1592,8 @@ export type PluginInfrastructureViewResponse = {
|
|
|
1570
1592
|
workspace: PluginInfrastructureWorkspaceResponse;
|
|
1571
1593
|
};
|
|
1572
1594
|
export type PagePluginInfrastructureViewResponse = {
|
|
1573
|
-
totalPages?: number;
|
|
1574
1595
|
totalElements?: number;
|
|
1596
|
+
totalPages?: number;
|
|
1575
1597
|
first?: boolean;
|
|
1576
1598
|
last?: boolean;
|
|
1577
1599
|
size?: number;
|
|
@@ -1596,8 +1618,8 @@ export type InfrastructureEnvironmentsUsesPluginResponse = {
|
|
|
1596
1618
|
pluginVersion: GetInfrastructureEnvironmentsUsagePluginVersionResponse;
|
|
1597
1619
|
};
|
|
1598
1620
|
export type PageInfrastructureEnvironmentsUsesPluginResponse = {
|
|
1599
|
-
totalPages?: number;
|
|
1600
1621
|
totalElements?: number;
|
|
1622
|
+
totalPages?: number;
|
|
1601
1623
|
first?: boolean;
|
|
1602
1624
|
last?: boolean;
|
|
1603
1625
|
size?: number;
|
|
@@ -1616,8 +1638,8 @@ export type PluginViewUsageMonitorResponse = {
|
|
|
1616
1638
|
studio: PluginStudioResponse;
|
|
1617
1639
|
};
|
|
1618
1640
|
export type PagePluginViewUsageMonitorResponse = {
|
|
1619
|
-
totalPages?: number;
|
|
1620
1641
|
totalElements?: number;
|
|
1642
|
+
totalPages?: number;
|
|
1621
1643
|
first?: boolean;
|
|
1622
1644
|
last?: boolean;
|
|
1623
1645
|
size?: number;
|
|
@@ -1637,8 +1659,8 @@ export type GetDependentPluginsVersionsResponse = {
|
|
|
1637
1659
|
pluginVersion: DependentPluginVersionResponse;
|
|
1638
1660
|
};
|
|
1639
1661
|
export type PageGetDependentPluginsVersionsResponse = {
|
|
1640
|
-
totalPages?: number;
|
|
1641
1662
|
totalElements?: number;
|
|
1663
|
+
totalPages?: number;
|
|
1642
1664
|
first?: boolean;
|
|
1643
1665
|
last?: boolean;
|
|
1644
1666
|
size?: number;
|
|
@@ -1655,8 +1677,8 @@ export type GetPluginVersionsNotInUseResponse = {
|
|
|
1655
1677
|
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED";
|
|
1656
1678
|
};
|
|
1657
1679
|
export type PageGetPluginVersionsNotInUseResponse = {
|
|
1658
|
-
totalPages?: number;
|
|
1659
1680
|
totalElements?: number;
|
|
1681
|
+
totalPages?: number;
|
|
1660
1682
|
first?: boolean;
|
|
1661
1683
|
last?: boolean;
|
|
1662
1684
|
size?: number;
|
|
@@ -1689,8 +1711,8 @@ export type PluginApplicationsResponse = {
|
|
|
1689
1711
|
workspace: PluginApplicationsWorkspaceResponse;
|
|
1690
1712
|
};
|
|
1691
1713
|
export type PagePluginApplicationsResponse = {
|
|
1692
|
-
totalPages?: number;
|
|
1693
1714
|
totalElements?: number;
|
|
1715
|
+
totalPages?: number;
|
|
1694
1716
|
first?: boolean;
|
|
1695
1717
|
last?: boolean;
|
|
1696
1718
|
size?: number;
|
|
@@ -1715,8 +1737,8 @@ export type PluginUsageMonitorApplicationViewResponse = {
|
|
|
1715
1737
|
environment: PluginUsageMonitorApplicationViewEnvironmentResponse;
|
|
1716
1738
|
};
|
|
1717
1739
|
export type PagePluginUsageMonitorApplicationViewResponse = {
|
|
1718
|
-
totalPages?: number;
|
|
1719
1740
|
totalElements?: number;
|
|
1741
|
+
totalPages?: number;
|
|
1720
1742
|
first?: boolean;
|
|
1721
1743
|
last?: boolean;
|
|
1722
1744
|
size?: number;
|
|
@@ -1838,8 +1860,8 @@ export type ContentEvaluationResponse = {
|
|
|
1838
1860
|
pendingDiscussionReading: boolean;
|
|
1839
1861
|
};
|
|
1840
1862
|
export type PageContentEvaluationResponse = {
|
|
1841
|
-
totalPages?: number;
|
|
1842
1863
|
totalElements?: number;
|
|
1864
|
+
totalPages?: number;
|
|
1843
1865
|
first?: boolean;
|
|
1844
1866
|
last?: boolean;
|
|
1845
1867
|
size?: number;
|
|
@@ -2632,6 +2654,16 @@ export declare function getWorkflowByStudioSlug({ studioSlug, xWorkspaceId, disp
|
|
|
2632
2654
|
$type?: "starter" | "deploy" | "destroy" | "rollback" | "reusable" | "create";
|
|
2633
2655
|
pageable: Pageable;
|
|
2634
2656
|
}, opts?: Oazapfts.RequestOpts): Promise<PageGetWorkflowsByStudioResponse>;
|
|
2657
|
+
/**
|
|
2658
|
+
* List all workflow versions
|
|
2659
|
+
*/
|
|
2660
|
+
export declare function listWorkflowVersion({ studioSlug, workflowSlug, status, xWorkspaceId, pageable }: {
|
|
2661
|
+
studioSlug: string;
|
|
2662
|
+
workflowSlug: string;
|
|
2663
|
+
status?: "PUBLISHED" | "DEPRECATED";
|
|
2664
|
+
xWorkspaceId?: string;
|
|
2665
|
+
pageable: Pageable;
|
|
2666
|
+
}, opts?: Oazapfts.RequestOpts): Promise<PageListWorkflowVersionsResponse>;
|
|
2635
2667
|
/**
|
|
2636
2668
|
* Download a workflow by version
|
|
2637
2669
|
*/
|