@stack-spot/portal-network 0.87.1 → 0.89.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 +14 -0
- package/dist/api/content.d.ts +190 -129
- package/dist/api/content.d.ts.map +1 -1
- package/dist/api/content.js +39 -26
- package/dist/api/content.js.map +1 -1
- package/dist/client/content.d.ts +38 -1
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +38 -1
- package/dist/client/content.js.map +1 -1
- package/package.json +1 -1
- package/src/api/content.ts +271 -181
- package/src/client/content.ts +21 -0
package/src/client/content.ts
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
addLink,
|
|
5
5
|
addWorkflow,
|
|
6
6
|
addWorkspace,
|
|
7
|
+
archiveStackVersion,
|
|
7
8
|
associateActionToPlugin,
|
|
8
9
|
changeVisibility,
|
|
9
10
|
createStudio,
|
|
@@ -38,6 +39,7 @@ import {
|
|
|
38
39
|
getPluginVersions,
|
|
39
40
|
getPluginVersionsNotInUse,
|
|
40
41
|
getPluginVersionUsageSummary,
|
|
42
|
+
getStackBySlugV2,
|
|
41
43
|
getStackUsesPlugin,
|
|
42
44
|
getStackVersionById,
|
|
43
45
|
getStackVersionListByIds,
|
|
@@ -70,6 +72,8 @@ import {
|
|
|
70
72
|
listStacks,
|
|
71
73
|
listStacks1,
|
|
72
74
|
listStacksByFilters,
|
|
75
|
+
listStacksByFiltersV2,
|
|
76
|
+
listStackVersions,
|
|
73
77
|
listStarters,
|
|
74
78
|
listWorkflows,
|
|
75
79
|
listWorkflowVersion,
|
|
@@ -173,9 +177,22 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
173
177
|
*/
|
|
174
178
|
deprecationReasons = this.query(listReasons)
|
|
175
179
|
/**
|
|
180
|
+
* @deprecated use stacksFromStudio instead
|
|
176
181
|
* Gets stacks from a given studio
|
|
177
182
|
*/
|
|
178
183
|
stacksFromStudios = this.query(listStacksByFilters)
|
|
184
|
+
/**
|
|
185
|
+
* Gets stacks from a given studio
|
|
186
|
+
*/
|
|
187
|
+
stacksFromStudio = this.query(listStacksByFiltersV2)
|
|
188
|
+
/**
|
|
189
|
+
* Retrieves a specific stack (by slug) from a studio.
|
|
190
|
+
*/
|
|
191
|
+
stackFromStudio = this.query(getStackBySlugV2)
|
|
192
|
+
/**
|
|
193
|
+
* Lists all versions of a Stack
|
|
194
|
+
*/
|
|
195
|
+
versionsOfStack = this.query(listStackVersions)
|
|
179
196
|
|
|
180
197
|
//Workflow
|
|
181
198
|
/**
|
|
@@ -298,6 +315,10 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
298
315
|
* Deprecate a stack version
|
|
299
316
|
*/
|
|
300
317
|
deprecateStackVersion = this.mutation(removeAuthorizationParam(deprecateStackVersionBy))
|
|
318
|
+
/**
|
|
319
|
+
* Archive a stack version
|
|
320
|
+
*/
|
|
321
|
+
archiveStackVersion = this.mutation(archiveStackVersion)
|
|
301
322
|
/**
|
|
302
323
|
* Delete a stack version of type draft or unpublish
|
|
303
324
|
*/
|