@stack-spot/portal-network 0.86.1 → 0.87.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 +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/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/client/content.ts +15 -6
package/src/api/content.ts
CHANGED
|
@@ -138,6 +138,7 @@ export type ListWorkflowsByVersionIdsResponse = {
|
|
|
138
138
|
};
|
|
139
139
|
export type DeprecateContentRequest = {
|
|
140
140
|
reason: string;
|
|
141
|
+
archive?: boolean;
|
|
141
142
|
};
|
|
142
143
|
export type YamlValidationError = {
|
|
143
144
|
details: string;
|
|
@@ -239,6 +240,8 @@ export type StackVersionResponse = {
|
|
|
239
240
|
semanticVersion?: string;
|
|
240
241
|
copyFromStackVersionId?: string;
|
|
241
242
|
documentation?: DocumentationContentResponse;
|
|
243
|
+
archivedBy?: string;
|
|
244
|
+
archivedAt?: string;
|
|
242
245
|
};
|
|
243
246
|
export type StackPluginStudioResponse = {
|
|
244
247
|
id: string;
|
|
@@ -357,6 +360,7 @@ export type GetStackWorkflowLatestVersionResponse = {
|
|
|
357
360
|
targetApp: boolean;
|
|
358
361
|
targetInfra: boolean;
|
|
359
362
|
addedAt: string;
|
|
363
|
+
status: string;
|
|
360
364
|
};
|
|
361
365
|
export type GetStackWorkflowResponse = {
|
|
362
366
|
id: string;
|
|
@@ -390,6 +394,8 @@ export type StackVersionV2Dto = {
|
|
|
390
394
|
publishedAt?: string;
|
|
391
395
|
unpublishedBy?: string;
|
|
392
396
|
unpublishedAt?: string;
|
|
397
|
+
archivedBy?: string;
|
|
398
|
+
archivedAt?: string;
|
|
393
399
|
semanticVersion?: string;
|
|
394
400
|
copyFromStackVersionId?: string;
|
|
395
401
|
status: string;
|
|
@@ -413,9 +419,9 @@ export type SortObject = {
|
|
|
413
419
|
export type PageableObject = {
|
|
414
420
|
offset?: number;
|
|
415
421
|
sort?: SortObject[];
|
|
422
|
+
paged?: boolean;
|
|
416
423
|
pageSize?: number;
|
|
417
424
|
pageNumber?: number;
|
|
418
|
-
paged?: boolean;
|
|
419
425
|
unpaged?: boolean;
|
|
420
426
|
};
|
|
421
427
|
export type PageGetStackStudioResponse = {
|
|
@@ -748,6 +754,8 @@ export type StackVersionListResponse = {
|
|
|
748
754
|
publishedBy?: string;
|
|
749
755
|
unpublishedAt?: string;
|
|
750
756
|
unpublishedBy?: string;
|
|
757
|
+
archivedAt?: string;
|
|
758
|
+
archivedBy?: string;
|
|
751
759
|
semanticVersion?: string;
|
|
752
760
|
copyFromStackVersionId?: string;
|
|
753
761
|
documentation?: StackVersionListDocumentationResponse;
|
|
@@ -1278,7 +1286,7 @@ export type LatestVersionV2Response = {
|
|
|
1278
1286
|
displayName?: string;
|
|
1279
1287
|
description?: string;
|
|
1280
1288
|
isDocumented: boolean;
|
|
1281
|
-
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED";
|
|
1289
|
+
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED" | "ARCHIVED";
|
|
1282
1290
|
hasRequiredConnection: boolean;
|
|
1283
1291
|
};
|
|
1284
1292
|
export type ListActionVersionV2Response = {
|
|
@@ -1286,7 +1294,7 @@ export type ListActionVersionV2Response = {
|
|
|
1286
1294
|
version: string;
|
|
1287
1295
|
createdBy: string;
|
|
1288
1296
|
createdAt: string;
|
|
1289
|
-
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED";
|
|
1297
|
+
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED" | "ARCHIVED";
|
|
1290
1298
|
};
|
|
1291
1299
|
export type ListActionV2Response = {
|
|
1292
1300
|
id: string;
|
|
@@ -1521,6 +1529,11 @@ export type PageGetAvailableWorkflowVersionsResponse = {
|
|
|
1521
1529
|
pageable?: PageableObject;
|
|
1522
1530
|
empty?: boolean;
|
|
1523
1531
|
};
|
|
1532
|
+
export type GetWorkflowUsageSummaryResponse = {
|
|
1533
|
+
totalUsedInStacks: number;
|
|
1534
|
+
totalUsedInWorkflows: number;
|
|
1535
|
+
totalNotUsed: number;
|
|
1536
|
+
};
|
|
1524
1537
|
export type StackWorkspaceViewResponse = {
|
|
1525
1538
|
id: string;
|
|
1526
1539
|
name: string;
|
|
@@ -1592,6 +1605,31 @@ export type StackModalViewResponse = {
|
|
|
1592
1605
|
totalUsedInWorkspaces: number;
|
|
1593
1606
|
totalNotUsed: number;
|
|
1594
1607
|
};
|
|
1608
|
+
export type ListStudioPluginsWithVersionsItemResponse = {
|
|
1609
|
+
id: string;
|
|
1610
|
+
semanticVersion: string;
|
|
1611
|
+
};
|
|
1612
|
+
export type ListStudioPluginsWithVersionsResponse = {
|
|
1613
|
+
id: string;
|
|
1614
|
+
slug: string;
|
|
1615
|
+
picture?: string;
|
|
1616
|
+
displayname?: string;
|
|
1617
|
+
totalArchivedVersions: number;
|
|
1618
|
+
versions: ListStudioPluginsWithVersionsItemResponse[];
|
|
1619
|
+
};
|
|
1620
|
+
export type PageListStudioPluginsWithVersionsResponse = {
|
|
1621
|
+
totalElements?: number;
|
|
1622
|
+
totalPages?: number;
|
|
1623
|
+
size?: number;
|
|
1624
|
+
content?: ListStudioPluginsWithVersionsResponse[];
|
|
1625
|
+
"number"?: number;
|
|
1626
|
+
sort?: SortObject[];
|
|
1627
|
+
first?: boolean;
|
|
1628
|
+
last?: boolean;
|
|
1629
|
+
numberOfElements?: number;
|
|
1630
|
+
pageable?: PageableObject;
|
|
1631
|
+
empty?: boolean;
|
|
1632
|
+
};
|
|
1595
1633
|
export type PluginVersionShortResponse = {
|
|
1596
1634
|
id: string;
|
|
1597
1635
|
pluginId: string;
|
|
@@ -1747,7 +1785,7 @@ export type GetPluginStackStarterUsageStackResponse = {
|
|
|
1747
1785
|
export type GetPluginStackStarterUsagePluginResponse = {
|
|
1748
1786
|
id: string;
|
|
1749
1787
|
version: string;
|
|
1750
|
-
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED";
|
|
1788
|
+
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED" | "ARCHIVED";
|
|
1751
1789
|
};
|
|
1752
1790
|
export type GetPluginStackStarterUsageResponse = {
|
|
1753
1791
|
stackVersion: GetPluginStackStarterUsageStackResponse;
|
|
@@ -1795,7 +1833,7 @@ export type GetPluginStackUsageStackResponse = {
|
|
|
1795
1833
|
export type GetPluginStackUsagePluginResponse = {
|
|
1796
1834
|
id: string;
|
|
1797
1835
|
version: string;
|
|
1798
|
-
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED";
|
|
1836
|
+
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED" | "ARCHIVED";
|
|
1799
1837
|
};
|
|
1800
1838
|
export type GetPluginStackUsageResponse = {
|
|
1801
1839
|
stackVersion: GetPluginStackUsageStackResponse;
|
|
@@ -1889,7 +1927,7 @@ export type PagePluginViewUsageMonitorResponse = {
|
|
|
1889
1927
|
export type DependentPluginVersionResponse = {
|
|
1890
1928
|
id: string;
|
|
1891
1929
|
version: string;
|
|
1892
|
-
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED";
|
|
1930
|
+
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED" | "ARCHIVED";
|
|
1893
1931
|
};
|
|
1894
1932
|
export type GetDependentPluginsVersionsResponse = {
|
|
1895
1933
|
pluginVersion: DependentPluginVersionResponse;
|
|
@@ -1910,7 +1948,7 @@ export type PageGetDependentPluginsVersionsResponse = {
|
|
|
1910
1948
|
export type GetPluginVersionsNotInUseResponse = {
|
|
1911
1949
|
id: string;
|
|
1912
1950
|
version: string;
|
|
1913
|
-
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED";
|
|
1951
|
+
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED" | "ARCHIVED";
|
|
1914
1952
|
};
|
|
1915
1953
|
export type PageGetPluginVersionsNotInUseResponse = {
|
|
1916
1954
|
totalElements?: number;
|
|
@@ -2029,6 +2067,16 @@ export type GetPublishSuggestionResponse = {
|
|
|
2029
2067
|
export type StackVersionUsageSummaryResponse = {
|
|
2030
2068
|
totalUsedInWorkspaces: number;
|
|
2031
2069
|
};
|
|
2070
|
+
export type GetConnectionInterfaceSuggestionResponse = {
|
|
2071
|
+
stackVersionId: string;
|
|
2072
|
+
connectionType: string;
|
|
2073
|
+
connectionTypeAlias?: string;
|
|
2074
|
+
referencedByPluginId?: string;
|
|
2075
|
+
referencedByPluginVersionId?: string;
|
|
2076
|
+
suggestionPluginId?: string;
|
|
2077
|
+
suggestionPluginVersionId?: string;
|
|
2078
|
+
subConnectionTypes: GetConnectionInterfaceSuggestionResponse[];
|
|
2079
|
+
};
|
|
2032
2080
|
export type StudioInfo = {
|
|
2033
2081
|
name: string;
|
|
2034
2082
|
imageUrl?: string;
|
|
@@ -2068,6 +2116,7 @@ export type PluginVersionUsageSummaryResponse = {
|
|
|
2068
2116
|
totalUsedInStarter: number;
|
|
2069
2117
|
totalUsedInInfrastructures: number;
|
|
2070
2118
|
totalUsedInApplications: number;
|
|
2119
|
+
totalUsedInWorkflows: number;
|
|
2071
2120
|
};
|
|
2072
2121
|
export type PluginSummaryResponse = {
|
|
2073
2122
|
id: string;
|
|
@@ -5106,6 +5155,64 @@ export function editLink({ stackVersionId, linkId, editLinkRequest }: {
|
|
|
5106
5155
|
body: editLinkRequest
|
|
5107
5156
|
})));
|
|
5108
5157
|
}
|
|
5158
|
+
/**
|
|
5159
|
+
* Archive Stack Version
|
|
5160
|
+
*/
|
|
5161
|
+
export function archiveStackVersion({ stackVersionId }: {
|
|
5162
|
+
stackVersionId: string;
|
|
5163
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5164
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5165
|
+
status: 204;
|
|
5166
|
+
} | {
|
|
5167
|
+
status: 422;
|
|
5168
|
+
data: {
|
|
5169
|
+
code: string;
|
|
5170
|
+
status: number;
|
|
5171
|
+
details: string;
|
|
5172
|
+
validationDetails?: ValidationDetails[];
|
|
5173
|
+
};
|
|
5174
|
+
} | {
|
|
5175
|
+
status: 500;
|
|
5176
|
+
data: {
|
|
5177
|
+
code: string;
|
|
5178
|
+
status: number;
|
|
5179
|
+
details: string;
|
|
5180
|
+
validationDetails?: ValidationDetails[];
|
|
5181
|
+
};
|
|
5182
|
+
}>(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/archive`, {
|
|
5183
|
+
...opts,
|
|
5184
|
+
method: "PATCH"
|
|
5185
|
+
}));
|
|
5186
|
+
}
|
|
5187
|
+
/**
|
|
5188
|
+
* Archive a plugin version
|
|
5189
|
+
*/
|
|
5190
|
+
export function archivePluginVersion({ pluginVersionId }: {
|
|
5191
|
+
pluginVersionId: string;
|
|
5192
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5193
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5194
|
+
status: 204;
|
|
5195
|
+
} | {
|
|
5196
|
+
status: 422;
|
|
5197
|
+
data: {
|
|
5198
|
+
code: string;
|
|
5199
|
+
status: number;
|
|
5200
|
+
details: string;
|
|
5201
|
+
validationDetails?: ValidationDetails[];
|
|
5202
|
+
};
|
|
5203
|
+
} | {
|
|
5204
|
+
status: 500;
|
|
5205
|
+
data: {
|
|
5206
|
+
code: string;
|
|
5207
|
+
status: number;
|
|
5208
|
+
details: string;
|
|
5209
|
+
validationDetails?: ValidationDetails[];
|
|
5210
|
+
};
|
|
5211
|
+
}>(`/v1/plugins/versions/${encodeURIComponent(pluginVersionId)}/archive`, {
|
|
5212
|
+
...opts,
|
|
5213
|
+
method: "PATCH"
|
|
5214
|
+
}));
|
|
5215
|
+
}
|
|
5109
5216
|
/**
|
|
5110
5217
|
* Get a documentation
|
|
5111
5218
|
*/
|
|
@@ -5352,6 +5459,91 @@ export function getStudios({ xWorkspaceId, authorization, aclOnly, filter, view,
|
|
|
5352
5459
|
})
|
|
5353
5460
|
}));
|
|
5354
5461
|
}
|
|
5462
|
+
/**
|
|
5463
|
+
* List Stacks inside a studio - V2
|
|
5464
|
+
*/
|
|
5465
|
+
export function listStacksInStudio({ studioSlug, xWorkspaceId, startersOnly, infraOnly, status, workspaceId, page, size }: {
|
|
5466
|
+
studioSlug: string;
|
|
5467
|
+
xWorkspaceId?: string;
|
|
5468
|
+
startersOnly?: boolean;
|
|
5469
|
+
infraOnly?: boolean;
|
|
5470
|
+
status?: ("DRAFT" | "PUBLISHED" | "DEPRECATED" | "ARCHIVED" | "UNPUBLISHED")[];
|
|
5471
|
+
workspaceId?: string;
|
|
5472
|
+
page?: number;
|
|
5473
|
+
size?: number;
|
|
5474
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5475
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5476
|
+
status: 200;
|
|
5477
|
+
data: PageGetStackStudioResponse;
|
|
5478
|
+
} | {
|
|
5479
|
+
status: 422;
|
|
5480
|
+
data: {
|
|
5481
|
+
code: string;
|
|
5482
|
+
status: number;
|
|
5483
|
+
details: string;
|
|
5484
|
+
validationDetails?: ValidationDetails[];
|
|
5485
|
+
};
|
|
5486
|
+
} | {
|
|
5487
|
+
status: 500;
|
|
5488
|
+
data: {
|
|
5489
|
+
code: string;
|
|
5490
|
+
status: number;
|
|
5491
|
+
details: string;
|
|
5492
|
+
validationDetails?: ValidationDetails[];
|
|
5493
|
+
};
|
|
5494
|
+
}>(`/v2/studios/${encodeURIComponent(studioSlug)}/stacks${QS.query(QS.explode({
|
|
5495
|
+
startersOnly,
|
|
5496
|
+
infraOnly,
|
|
5497
|
+
status,
|
|
5498
|
+
workspaceId,
|
|
5499
|
+
page,
|
|
5500
|
+
size
|
|
5501
|
+
}))}`, {
|
|
5502
|
+
...opts,
|
|
5503
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
5504
|
+
"x-workspace-id": xWorkspaceId
|
|
5505
|
+
})
|
|
5506
|
+
}));
|
|
5507
|
+
}
|
|
5508
|
+
/**
|
|
5509
|
+
* Get Stack by slugs v2
|
|
5510
|
+
*/
|
|
5511
|
+
export function getStackBySlugV2({ studioSlug, stackSlug, semanticVersion, status, xWorkspaceId }: {
|
|
5512
|
+
studioSlug: string;
|
|
5513
|
+
stackSlug: string;
|
|
5514
|
+
semanticVersion?: string;
|
|
5515
|
+
status?: ("DRAFT" | "PUBLISHED" | "DEPRECATED" | "ARCHIVED" | "UNPUBLISHED")[];
|
|
5516
|
+
xWorkspaceId?: string;
|
|
5517
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5518
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5519
|
+
status: 200;
|
|
5520
|
+
data: GetStackVersionResponse;
|
|
5521
|
+
} | {
|
|
5522
|
+
status: 422;
|
|
5523
|
+
data: {
|
|
5524
|
+
code: string;
|
|
5525
|
+
status: number;
|
|
5526
|
+
details: string;
|
|
5527
|
+
validationDetails?: ValidationDetails[];
|
|
5528
|
+
};
|
|
5529
|
+
} | {
|
|
5530
|
+
status: 500;
|
|
5531
|
+
data: {
|
|
5532
|
+
code: string;
|
|
5533
|
+
status: number;
|
|
5534
|
+
details: string;
|
|
5535
|
+
validationDetails?: ValidationDetails[];
|
|
5536
|
+
};
|
|
5537
|
+
}>(`/v2/studios/${encodeURIComponent(studioSlug)}/stacks/${encodeURIComponent(stackSlug)}${QS.query(QS.explode({
|
|
5538
|
+
semanticVersion,
|
|
5539
|
+
status
|
|
5540
|
+
}))}`, {
|
|
5541
|
+
...opts,
|
|
5542
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
5543
|
+
"x-workspace-id": xWorkspaceId
|
|
5544
|
+
})
|
|
5545
|
+
}));
|
|
5546
|
+
}
|
|
5355
5547
|
/**
|
|
5356
5548
|
* Get available plugin versions by plugin slug
|
|
5357
5549
|
*/
|
|
@@ -6024,6 +6216,42 @@ export function getAvailableWorkflowVersionsByWorkflowSlug({ studioSlug, workflo
|
|
|
6024
6216
|
...opts
|
|
6025
6217
|
}));
|
|
6026
6218
|
}
|
|
6219
|
+
/**
|
|
6220
|
+
* Usage Summary of a given Workflow
|
|
6221
|
+
*/
|
|
6222
|
+
export function getWorkflowUsageSummary({ studioSlug, workflowSlug }: {
|
|
6223
|
+
studioSlug: string;
|
|
6224
|
+
workflowSlug: string;
|
|
6225
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
6226
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
6227
|
+
status: 200;
|
|
6228
|
+
data: GetWorkflowUsageSummaryResponse;
|
|
6229
|
+
} | {
|
|
6230
|
+
status: 403;
|
|
6231
|
+
data: GetWorkflowUsageSummaryResponse;
|
|
6232
|
+
} | {
|
|
6233
|
+
status: 404;
|
|
6234
|
+
data: GetWorkflowUsageSummaryResponse;
|
|
6235
|
+
} | {
|
|
6236
|
+
status: 422;
|
|
6237
|
+
data: {
|
|
6238
|
+
code: string;
|
|
6239
|
+
status: number;
|
|
6240
|
+
details: string;
|
|
6241
|
+
validationDetails?: ValidationDetails[];
|
|
6242
|
+
};
|
|
6243
|
+
} | {
|
|
6244
|
+
status: 500;
|
|
6245
|
+
data: {
|
|
6246
|
+
code: string;
|
|
6247
|
+
status: number;
|
|
6248
|
+
details: string;
|
|
6249
|
+
validationDetails?: ValidationDetails[];
|
|
6250
|
+
};
|
|
6251
|
+
}>(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows/${encodeURIComponent(workflowSlug)}/in-use/summary`, {
|
|
6252
|
+
...opts
|
|
6253
|
+
}));
|
|
6254
|
+
}
|
|
6027
6255
|
/**
|
|
6028
6256
|
* Get an workflow documentation
|
|
6029
6257
|
*/
|
|
@@ -6107,7 +6335,7 @@ export function getStarterDoc({ studioSlug, documentationId, language, status }:
|
|
|
6107
6335
|
/**
|
|
6108
6336
|
* List Stacks inside a studio
|
|
6109
6337
|
*/
|
|
6110
|
-
export function
|
|
6338
|
+
export function listStacksInStudio1({ studioSlug, onlyPublished, xWorkspaceId, startersOnly, infraOnly, workspaceId }: {
|
|
6111
6339
|
studioSlug: string;
|
|
6112
6340
|
onlyPublished?: boolean;
|
|
6113
6341
|
xWorkspaceId?: string;
|
|
@@ -6363,6 +6591,42 @@ export function getStackDoc({ studioSlug, documentationId, language, status }: {
|
|
|
6363
6591
|
...opts
|
|
6364
6592
|
}));
|
|
6365
6593
|
}
|
|
6594
|
+
/**
|
|
6595
|
+
* List plugins in the studio
|
|
6596
|
+
*/
|
|
6597
|
+
export function listPluginsAndVersionsInStudio({ studioSlug, status, displayName, pageable }: {
|
|
6598
|
+
studioSlug: string;
|
|
6599
|
+
status?: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED" | "ARCHIVED";
|
|
6600
|
+
displayName?: string;
|
|
6601
|
+
pageable: Pageable;
|
|
6602
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
6603
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
6604
|
+
status: 200;
|
|
6605
|
+
data: PageListStudioPluginsWithVersionsResponse;
|
|
6606
|
+
} | {
|
|
6607
|
+
status: 422;
|
|
6608
|
+
data: {
|
|
6609
|
+
code: string;
|
|
6610
|
+
status: number;
|
|
6611
|
+
details: string;
|
|
6612
|
+
validationDetails?: ValidationDetails[];
|
|
6613
|
+
};
|
|
6614
|
+
} | {
|
|
6615
|
+
status: 500;
|
|
6616
|
+
data: {
|
|
6617
|
+
code: string;
|
|
6618
|
+
status: number;
|
|
6619
|
+
details: string;
|
|
6620
|
+
validationDetails?: ValidationDetails[];
|
|
6621
|
+
};
|
|
6622
|
+
}>(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins${QS.query(QS.explode({
|
|
6623
|
+
status,
|
|
6624
|
+
displayName,
|
|
6625
|
+
pageable
|
|
6626
|
+
}))}`, {
|
|
6627
|
+
...opts
|
|
6628
|
+
}));
|
|
6629
|
+
}
|
|
6366
6630
|
/**
|
|
6367
6631
|
* List versions of a plugin
|
|
6368
6632
|
*/
|
|
@@ -7054,7 +7318,7 @@ export function getPluginDoc({ studioSlug, documentationId, language, status }:
|
|
|
7054
7318
|
export function getAllActionVersions({ studioSlug, actionSlug, status, xWorkspaceId, requiresConnection }: {
|
|
7055
7319
|
studioSlug: string;
|
|
7056
7320
|
actionSlug: string;
|
|
7057
|
-
status?: ("DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED")[];
|
|
7321
|
+
status?: ("DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED" | "ARCHIVED")[];
|
|
7058
7322
|
xWorkspaceId?: string;
|
|
7059
7323
|
requiresConnection?: boolean;
|
|
7060
7324
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -7609,6 +7873,39 @@ export function stackVersionUsageSummary({ stackVersionId }: {
|
|
|
7609
7873
|
...opts
|
|
7610
7874
|
}));
|
|
7611
7875
|
}
|
|
7876
|
+
/**
|
|
7877
|
+
* Get suggestion of connections interfaces
|
|
7878
|
+
*/
|
|
7879
|
+
export function getConnectionInterfaceSuggestion({ stackVersionId, xWorkspaceId }: {
|
|
7880
|
+
stackVersionId: string;
|
|
7881
|
+
xWorkspaceId?: string;
|
|
7882
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
7883
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
7884
|
+
status: 200;
|
|
7885
|
+
data: GetConnectionInterfaceSuggestionResponse[];
|
|
7886
|
+
} | {
|
|
7887
|
+
status: 422;
|
|
7888
|
+
data: {
|
|
7889
|
+
code: string;
|
|
7890
|
+
status: number;
|
|
7891
|
+
details: string;
|
|
7892
|
+
validationDetails?: ValidationDetails[];
|
|
7893
|
+
};
|
|
7894
|
+
} | {
|
|
7895
|
+
status: 500;
|
|
7896
|
+
data: {
|
|
7897
|
+
code: string;
|
|
7898
|
+
status: number;
|
|
7899
|
+
details: string;
|
|
7900
|
+
validationDetails?: ValidationDetails[];
|
|
7901
|
+
};
|
|
7902
|
+
}>(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/connections`, {
|
|
7903
|
+
...opts,
|
|
7904
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
7905
|
+
"x-workspace-id": xWorkspaceId
|
|
7906
|
+
})
|
|
7907
|
+
}));
|
|
7908
|
+
}
|
|
7612
7909
|
/**
|
|
7613
7910
|
* List all action versions from a stack version
|
|
7614
7911
|
*/
|
|
@@ -8411,7 +8708,7 @@ export function getAllActionVersions1({ accountSlug, studioSlug, actionSlug, sta
|
|
|
8411
8708
|
accountSlug: string;
|
|
8412
8709
|
studioSlug: string;
|
|
8413
8710
|
actionSlug: string;
|
|
8414
|
-
status?: ("DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED")[];
|
|
8711
|
+
status?: ("DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED" | "ARCHIVED")[];
|
|
8415
8712
|
xWorkspaceId?: string;
|
|
8416
8713
|
}, opts?: Oazapfts.RequestOpts) {
|
|
8417
8714
|
return oazapfts.ok(oazapfts.fetchJson<{
|
package/src/client/content.ts
CHANGED
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
deprecateActionVersion,
|
|
19
19
|
deprecatePluginVersion,
|
|
20
20
|
deprecateStackVersionBy,
|
|
21
|
+
deprecateWorkflowVersion,
|
|
21
22
|
downloadAction,
|
|
22
23
|
getActionBySlug,
|
|
23
24
|
getActionsVersions,
|
|
@@ -53,6 +54,7 @@ import {
|
|
|
53
54
|
getWorkflow,
|
|
54
55
|
getWorkflowByStudioSlug,
|
|
55
56
|
getWorkflowDoc,
|
|
57
|
+
getWorkflowUsageSummary,
|
|
56
58
|
listAccountWorkflow,
|
|
57
59
|
listActions,
|
|
58
60
|
listActions1,
|
|
@@ -78,6 +80,7 @@ import {
|
|
|
78
80
|
removeStackWorkflow,
|
|
79
81
|
stackModalViewSummary,
|
|
80
82
|
stackVersionUsageSummary,
|
|
83
|
+
unpublishWorkflowVersion,
|
|
81
84
|
updateStudio,
|
|
82
85
|
updateStudioTabs,
|
|
83
86
|
} from '../api/content'
|
|
@@ -408,32 +411,38 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
408
411
|
* Gets a stack from a stack version id
|
|
409
412
|
*/
|
|
410
413
|
getStackByVersionId = this.query(getStackVersionById)
|
|
411
|
-
|
|
412
414
|
/**
|
|
413
415
|
* View all stacks V3 by account
|
|
414
416
|
*/
|
|
415
417
|
getAllStacksV3 = this.query(listStacks)
|
|
416
|
-
|
|
417
418
|
/**
|
|
418
419
|
* View all stacks by account
|
|
419
420
|
*/
|
|
420
421
|
getAllStacks = this.query(listStacks1)
|
|
421
|
-
|
|
422
422
|
/**
|
|
423
423
|
* List most used stack versions
|
|
424
424
|
*/
|
|
425
|
-
|
|
426
425
|
listMostUsedStackVersions = this.query(listMostUsedStackVersions)
|
|
427
|
-
|
|
428
426
|
/**
|
|
429
427
|
* List plugins v2
|
|
430
428
|
*/
|
|
431
429
|
pluginsV2 = this.infiniteQuery(listPlugins, { accumulator: 'content', initialPageParam: 0 })
|
|
432
|
-
|
|
433
430
|
/**
|
|
434
431
|
* Get plugin
|
|
435
432
|
*/
|
|
436
433
|
plugin = this.query(getPlugin)
|
|
434
|
+
/**
|
|
435
|
+
* Deprecate workflow version
|
|
436
|
+
*/
|
|
437
|
+
deprecateWorkflowVersion = this.mutation(deprecateWorkflowVersion)
|
|
438
|
+
/**
|
|
439
|
+
* Unpublish workflow version
|
|
440
|
+
*/
|
|
441
|
+
unpublishWorkflowVersion = this.mutation(unpublishWorkflowVersion)
|
|
442
|
+
/**
|
|
443
|
+
* Get usage summary of workflow
|
|
444
|
+
*/
|
|
445
|
+
workflowUsageSummary = this.query(getWorkflowUsageSummary)
|
|
437
446
|
}
|
|
438
447
|
|
|
439
448
|
export const contentClient = new ContentClient()
|