@stack-spot/portal-network 0.86.1 → 0.87.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 +117 -10
- package/dist/api/content.d.ts.map +1 -1
- package/dist/api/content.js +82 -1
- package/dist/api/content.js.map +1 -1
- package/dist/api/workspaceManager.d.ts +29 -100
- package/dist/api/workspaceManager.d.ts.map +1 -1
- package/dist/api/workspaceManager.js +0 -14
- package/dist/api/workspaceManager.js.map +1 -1
- package/dist/client/content.d.ts +21 -1
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +28 -1
- package/dist/client/content.js.map +1 -1
- package/package.json +1 -1
- package/src/api/content.ts +307 -10
- package/src/api/workspaceManager.ts +29 -118
- package/src/client/content.ts +15 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.87.1](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.87.0...portal-network@v0.87.1) (2025-02-25)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* 1088 connection interface ([35375c9](https://github.com/stack-spot/portal-commons/commit/35375c9b885a8496f703dd9c840c3086cd5229c5))
|
|
9
|
+
|
|
10
|
+
## [0.87.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.86.1...portal-network@v0.87.0) (2025-02-20)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* Feat 1307 Workflow Deprecate and Unpublish ([#724](https://github.com/stack-spot/portal-commons/issues/724)) ([45be253](https://github.com/stack-spot/portal-commons/commit/45be25395034c0b743ad7e5a78fbc01265ca06ed))
|
|
16
|
+
|
|
3
17
|
## [0.86.1](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.86.0...portal-network@v0.86.1) (2025-02-20)
|
|
4
18
|
|
|
5
19
|
|
package/dist/api/content.d.ts
CHANGED
|
@@ -133,6 +133,7 @@ export type ListWorkflowsByVersionIdsResponse = {
|
|
|
133
133
|
};
|
|
134
134
|
export type DeprecateContentRequest = {
|
|
135
135
|
reason: string;
|
|
136
|
+
archive?: boolean;
|
|
136
137
|
};
|
|
137
138
|
export type YamlValidationError = {
|
|
138
139
|
details: string;
|
|
@@ -234,6 +235,8 @@ export type StackVersionResponse = {
|
|
|
234
235
|
semanticVersion?: string;
|
|
235
236
|
copyFromStackVersionId?: string;
|
|
236
237
|
documentation?: DocumentationContentResponse;
|
|
238
|
+
archivedBy?: string;
|
|
239
|
+
archivedAt?: string;
|
|
237
240
|
};
|
|
238
241
|
export type StackPluginStudioResponse = {
|
|
239
242
|
id: string;
|
|
@@ -352,6 +355,7 @@ export type GetStackWorkflowLatestVersionResponse = {
|
|
|
352
355
|
targetApp: boolean;
|
|
353
356
|
targetInfra: boolean;
|
|
354
357
|
addedAt: string;
|
|
358
|
+
status: string;
|
|
355
359
|
};
|
|
356
360
|
export type GetStackWorkflowResponse = {
|
|
357
361
|
id: string;
|
|
@@ -385,6 +389,8 @@ export type StackVersionV2Dto = {
|
|
|
385
389
|
publishedAt?: string;
|
|
386
390
|
unpublishedBy?: string;
|
|
387
391
|
unpublishedAt?: string;
|
|
392
|
+
archivedBy?: string;
|
|
393
|
+
archivedAt?: string;
|
|
388
394
|
semanticVersion?: string;
|
|
389
395
|
copyFromStackVersionId?: string;
|
|
390
396
|
status: string;
|
|
@@ -408,9 +414,9 @@ export type SortObject = {
|
|
|
408
414
|
export type PageableObject = {
|
|
409
415
|
offset?: number;
|
|
410
416
|
sort?: SortObject[];
|
|
417
|
+
paged?: boolean;
|
|
411
418
|
pageSize?: number;
|
|
412
419
|
pageNumber?: number;
|
|
413
|
-
paged?: boolean;
|
|
414
420
|
unpaged?: boolean;
|
|
415
421
|
};
|
|
416
422
|
export type PageGetStackStudioResponse = {
|
|
@@ -743,6 +749,8 @@ export type StackVersionListResponse = {
|
|
|
743
749
|
publishedBy?: string;
|
|
744
750
|
unpublishedAt?: string;
|
|
745
751
|
unpublishedBy?: string;
|
|
752
|
+
archivedAt?: string;
|
|
753
|
+
archivedBy?: string;
|
|
746
754
|
semanticVersion?: string;
|
|
747
755
|
copyFromStackVersionId?: string;
|
|
748
756
|
documentation?: StackVersionListDocumentationResponse;
|
|
@@ -1273,7 +1281,7 @@ export type LatestVersionV2Response = {
|
|
|
1273
1281
|
displayName?: string;
|
|
1274
1282
|
description?: string;
|
|
1275
1283
|
isDocumented: boolean;
|
|
1276
|
-
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED";
|
|
1284
|
+
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED" | "ARCHIVED";
|
|
1277
1285
|
hasRequiredConnection: boolean;
|
|
1278
1286
|
};
|
|
1279
1287
|
export type ListActionVersionV2Response = {
|
|
@@ -1281,7 +1289,7 @@ export type ListActionVersionV2Response = {
|
|
|
1281
1289
|
version: string;
|
|
1282
1290
|
createdBy: string;
|
|
1283
1291
|
createdAt: string;
|
|
1284
|
-
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED";
|
|
1292
|
+
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED" | "ARCHIVED";
|
|
1285
1293
|
};
|
|
1286
1294
|
export type ListActionV2Response = {
|
|
1287
1295
|
id: string;
|
|
@@ -1516,6 +1524,11 @@ export type PageGetAvailableWorkflowVersionsResponse = {
|
|
|
1516
1524
|
pageable?: PageableObject;
|
|
1517
1525
|
empty?: boolean;
|
|
1518
1526
|
};
|
|
1527
|
+
export type GetWorkflowUsageSummaryResponse = {
|
|
1528
|
+
totalUsedInStacks: number;
|
|
1529
|
+
totalUsedInWorkflows: number;
|
|
1530
|
+
totalNotUsed: number;
|
|
1531
|
+
};
|
|
1519
1532
|
export type StackWorkspaceViewResponse = {
|
|
1520
1533
|
id: string;
|
|
1521
1534
|
name: string;
|
|
@@ -1587,6 +1600,31 @@ export type StackModalViewResponse = {
|
|
|
1587
1600
|
totalUsedInWorkspaces: number;
|
|
1588
1601
|
totalNotUsed: number;
|
|
1589
1602
|
};
|
|
1603
|
+
export type ListStudioPluginsWithVersionsItemResponse = {
|
|
1604
|
+
id: string;
|
|
1605
|
+
semanticVersion: string;
|
|
1606
|
+
};
|
|
1607
|
+
export type ListStudioPluginsWithVersionsResponse = {
|
|
1608
|
+
id: string;
|
|
1609
|
+
slug: string;
|
|
1610
|
+
picture?: string;
|
|
1611
|
+
displayname?: string;
|
|
1612
|
+
totalArchivedVersions: number;
|
|
1613
|
+
versions: ListStudioPluginsWithVersionsItemResponse[];
|
|
1614
|
+
};
|
|
1615
|
+
export type PageListStudioPluginsWithVersionsResponse = {
|
|
1616
|
+
totalElements?: number;
|
|
1617
|
+
totalPages?: number;
|
|
1618
|
+
size?: number;
|
|
1619
|
+
content?: ListStudioPluginsWithVersionsResponse[];
|
|
1620
|
+
"number"?: number;
|
|
1621
|
+
sort?: SortObject[];
|
|
1622
|
+
first?: boolean;
|
|
1623
|
+
last?: boolean;
|
|
1624
|
+
numberOfElements?: number;
|
|
1625
|
+
pageable?: PageableObject;
|
|
1626
|
+
empty?: boolean;
|
|
1627
|
+
};
|
|
1590
1628
|
export type PluginVersionShortResponse = {
|
|
1591
1629
|
id: string;
|
|
1592
1630
|
pluginId: string;
|
|
@@ -1742,7 +1780,7 @@ export type GetPluginStackStarterUsageStackResponse = {
|
|
|
1742
1780
|
export type GetPluginStackStarterUsagePluginResponse = {
|
|
1743
1781
|
id: string;
|
|
1744
1782
|
version: string;
|
|
1745
|
-
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED";
|
|
1783
|
+
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED" | "ARCHIVED";
|
|
1746
1784
|
};
|
|
1747
1785
|
export type GetPluginStackStarterUsageResponse = {
|
|
1748
1786
|
stackVersion: GetPluginStackStarterUsageStackResponse;
|
|
@@ -1790,7 +1828,7 @@ export type GetPluginStackUsageStackResponse = {
|
|
|
1790
1828
|
export type GetPluginStackUsagePluginResponse = {
|
|
1791
1829
|
id: string;
|
|
1792
1830
|
version: string;
|
|
1793
|
-
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED";
|
|
1831
|
+
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED" | "ARCHIVED";
|
|
1794
1832
|
};
|
|
1795
1833
|
export type GetPluginStackUsageResponse = {
|
|
1796
1834
|
stackVersion: GetPluginStackUsageStackResponse;
|
|
@@ -1884,7 +1922,7 @@ export type PagePluginViewUsageMonitorResponse = {
|
|
|
1884
1922
|
export type DependentPluginVersionResponse = {
|
|
1885
1923
|
id: string;
|
|
1886
1924
|
version: string;
|
|
1887
|
-
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED";
|
|
1925
|
+
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED" | "ARCHIVED";
|
|
1888
1926
|
};
|
|
1889
1927
|
export type GetDependentPluginsVersionsResponse = {
|
|
1890
1928
|
pluginVersion: DependentPluginVersionResponse;
|
|
@@ -1905,7 +1943,7 @@ export type PageGetDependentPluginsVersionsResponse = {
|
|
|
1905
1943
|
export type GetPluginVersionsNotInUseResponse = {
|
|
1906
1944
|
id: string;
|
|
1907
1945
|
version: string;
|
|
1908
|
-
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED";
|
|
1946
|
+
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED" | "ARCHIVED";
|
|
1909
1947
|
};
|
|
1910
1948
|
export type PageGetPluginVersionsNotInUseResponse = {
|
|
1911
1949
|
totalElements?: number;
|
|
@@ -2024,6 +2062,16 @@ export type GetPublishSuggestionResponse = {
|
|
|
2024
2062
|
export type StackVersionUsageSummaryResponse = {
|
|
2025
2063
|
totalUsedInWorkspaces: number;
|
|
2026
2064
|
};
|
|
2065
|
+
export type GetConnectionInterfaceSuggestionResponse = {
|
|
2066
|
+
stackVersionId: string;
|
|
2067
|
+
connectionType: string;
|
|
2068
|
+
connectionTypeAlias?: string;
|
|
2069
|
+
referencedByPluginId?: string;
|
|
2070
|
+
referencedByPluginVersionId?: string;
|
|
2071
|
+
suggestionPluginId?: string;
|
|
2072
|
+
suggestionPluginVersionId?: string;
|
|
2073
|
+
subConnectionTypes: GetConnectionInterfaceSuggestionResponse[];
|
|
2074
|
+
};
|
|
2027
2075
|
export type StudioInfo = {
|
|
2028
2076
|
name: string;
|
|
2029
2077
|
imageUrl?: string;
|
|
@@ -2063,6 +2111,7 @@ export type PluginVersionUsageSummaryResponse = {
|
|
|
2063
2111
|
totalUsedInStarter: number;
|
|
2064
2112
|
totalUsedInInfrastructures: number;
|
|
2065
2113
|
totalUsedInApplications: number;
|
|
2114
|
+
totalUsedInWorkflows: number;
|
|
2066
2115
|
};
|
|
2067
2116
|
export type PluginSummaryResponse = {
|
|
2068
2117
|
id: string;
|
|
@@ -2841,6 +2890,18 @@ export declare function editLink({ stackVersionId, linkId, editLinkRequest }: {
|
|
|
2841
2890
|
linkId: string;
|
|
2842
2891
|
editLinkRequest: EditLinkRequest;
|
|
2843
2892
|
}, opts?: Oazapfts.RequestOpts): Promise<LinkResponse>;
|
|
2893
|
+
/**
|
|
2894
|
+
* Archive Stack Version
|
|
2895
|
+
*/
|
|
2896
|
+
export declare function archiveStackVersion({ stackVersionId }: {
|
|
2897
|
+
stackVersionId: string;
|
|
2898
|
+
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
2899
|
+
/**
|
|
2900
|
+
* Archive a plugin version
|
|
2901
|
+
*/
|
|
2902
|
+
export declare function archivePluginVersion({ pluginVersionId }: {
|
|
2903
|
+
pluginVersionId: string;
|
|
2904
|
+
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
2844
2905
|
/**
|
|
2845
2906
|
* Get a documentation
|
|
2846
2907
|
*/
|
|
@@ -2899,6 +2960,29 @@ export declare function getStudios({ xWorkspaceId, authorization, aclOnly, filte
|
|
|
2899
2960
|
workspaceId?: string;
|
|
2900
2961
|
pageable: Pageable;
|
|
2901
2962
|
}, opts?: Oazapfts.RequestOpts): Promise<PageStudioResponse>;
|
|
2963
|
+
/**
|
|
2964
|
+
* List Stacks inside a studio - V2
|
|
2965
|
+
*/
|
|
2966
|
+
export declare function listStacksInStudio({ studioSlug, xWorkspaceId, startersOnly, infraOnly, status, workspaceId, page, size }: {
|
|
2967
|
+
studioSlug: string;
|
|
2968
|
+
xWorkspaceId?: string;
|
|
2969
|
+
startersOnly?: boolean;
|
|
2970
|
+
infraOnly?: boolean;
|
|
2971
|
+
status?: ("DRAFT" | "PUBLISHED" | "DEPRECATED" | "ARCHIVED" | "UNPUBLISHED")[];
|
|
2972
|
+
workspaceId?: string;
|
|
2973
|
+
page?: number;
|
|
2974
|
+
size?: number;
|
|
2975
|
+
}, opts?: Oazapfts.RequestOpts): Promise<PageGetStackStudioResponse>;
|
|
2976
|
+
/**
|
|
2977
|
+
* Get Stack by slugs v2
|
|
2978
|
+
*/
|
|
2979
|
+
export declare function getStackBySlugV2({ studioSlug, stackSlug, semanticVersion, status, xWorkspaceId }: {
|
|
2980
|
+
studioSlug: string;
|
|
2981
|
+
stackSlug: string;
|
|
2982
|
+
semanticVersion?: string;
|
|
2983
|
+
status?: ("DRAFT" | "PUBLISHED" | "DEPRECATED" | "ARCHIVED" | "UNPUBLISHED")[];
|
|
2984
|
+
xWorkspaceId?: string;
|
|
2985
|
+
}, opts?: Oazapfts.RequestOpts): Promise<GetStackVersionResponse>;
|
|
2902
2986
|
/**
|
|
2903
2987
|
* Get available plugin versions by plugin slug
|
|
2904
2988
|
*/
|
|
@@ -3069,6 +3153,13 @@ export declare function getAvailableWorkflowVersionsByWorkflowSlug({ studioSlug,
|
|
|
3069
3153
|
range: string;
|
|
3070
3154
|
pageable: Pageable;
|
|
3071
3155
|
}, opts?: Oazapfts.RequestOpts): Promise<PageGetAvailableWorkflowVersionsResponse>;
|
|
3156
|
+
/**
|
|
3157
|
+
* Usage Summary of a given Workflow
|
|
3158
|
+
*/
|
|
3159
|
+
export declare function getWorkflowUsageSummary({ studioSlug, workflowSlug }: {
|
|
3160
|
+
studioSlug: string;
|
|
3161
|
+
workflowSlug: string;
|
|
3162
|
+
}, opts?: Oazapfts.RequestOpts): Promise<GetWorkflowUsageSummaryResponse>;
|
|
3072
3163
|
/**
|
|
3073
3164
|
* Get an workflow documentation
|
|
3074
3165
|
*/
|
|
@@ -3090,7 +3181,7 @@ export declare function getStarterDoc({ studioSlug, documentationId, language, s
|
|
|
3090
3181
|
/**
|
|
3091
3182
|
* List Stacks inside a studio
|
|
3092
3183
|
*/
|
|
3093
|
-
export declare function
|
|
3184
|
+
export declare function listStacksInStudio1({ studioSlug, onlyPublished, xWorkspaceId, startersOnly, infraOnly, workspaceId }: {
|
|
3094
3185
|
studioSlug: string;
|
|
3095
3186
|
onlyPublished?: boolean;
|
|
3096
3187
|
xWorkspaceId?: string;
|
|
@@ -3150,6 +3241,15 @@ export declare function getStackDoc({ studioSlug, documentationId, language, sta
|
|
|
3150
3241
|
language: string;
|
|
3151
3242
|
status?: string;
|
|
3152
3243
|
}, opts?: Oazapfts.RequestOpts): Promise<DocumentationResponse>;
|
|
3244
|
+
/**
|
|
3245
|
+
* List plugins in the studio
|
|
3246
|
+
*/
|
|
3247
|
+
export declare function listPluginsAndVersionsInStudio({ studioSlug, status, displayName, pageable }: {
|
|
3248
|
+
studioSlug: string;
|
|
3249
|
+
status?: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED" | "ARCHIVED";
|
|
3250
|
+
displayName?: string;
|
|
3251
|
+
pageable: Pageable;
|
|
3252
|
+
}, opts?: Oazapfts.RequestOpts): Promise<PageListStudioPluginsWithVersionsResponse>;
|
|
3153
3253
|
/**
|
|
3154
3254
|
* List versions of a plugin
|
|
3155
3255
|
*/
|
|
@@ -3327,7 +3427,7 @@ export declare function getPluginDoc({ studioSlug, documentationId, language, st
|
|
|
3327
3427
|
export declare function getAllActionVersions({ studioSlug, actionSlug, status, xWorkspaceId, requiresConnection }: {
|
|
3328
3428
|
studioSlug: string;
|
|
3329
3429
|
actionSlug: string;
|
|
3330
|
-
status?: ("DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED")[];
|
|
3430
|
+
status?: ("DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED" | "ARCHIVED")[];
|
|
3331
3431
|
xWorkspaceId?: string;
|
|
3332
3432
|
requiresConnection?: boolean;
|
|
3333
3433
|
}, opts?: Oazapfts.RequestOpts): Promise<ListActionVersionResponse>;
|
|
@@ -3444,6 +3544,13 @@ export declare function listPlugins1({ stackVersionId, starterType, xWorkspaceId
|
|
|
3444
3544
|
export declare function stackVersionUsageSummary({ stackVersionId }: {
|
|
3445
3545
|
stackVersionId: string;
|
|
3446
3546
|
}, opts?: Oazapfts.RequestOpts): Promise<StackVersionUsageSummaryResponse>;
|
|
3547
|
+
/**
|
|
3548
|
+
* Get suggestion of connections interfaces
|
|
3549
|
+
*/
|
|
3550
|
+
export declare function getConnectionInterfaceSuggestion({ stackVersionId, xWorkspaceId }: {
|
|
3551
|
+
stackVersionId: string;
|
|
3552
|
+
xWorkspaceId?: string;
|
|
3553
|
+
}, opts?: Oazapfts.RequestOpts): Promise<GetConnectionInterfaceSuggestionResponse[]>;
|
|
3447
3554
|
/**
|
|
3448
3555
|
* List all action versions from a stack version
|
|
3449
3556
|
*/
|
|
@@ -3623,7 +3730,7 @@ export declare function getAllActionVersions1({ accountSlug, studioSlug, actionS
|
|
|
3623
3730
|
accountSlug: string;
|
|
3624
3731
|
studioSlug: string;
|
|
3625
3732
|
actionSlug: string;
|
|
3626
|
-
status?: ("DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED")[];
|
|
3733
|
+
status?: ("DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED" | "ARCHIVED")[];
|
|
3627
3734
|
xWorkspaceId?: string;
|
|
3628
3735
|
}, opts?: Oazapfts.RequestOpts): Promise<ListActionVersionResponse>;
|
|
3629
3736
|
/**
|