@stack-spot/portal-network 0.28.0 → 0.29.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 +12 -0
- package/dist/client/content.d.ts +139 -16
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +151 -16
- package/dist/client/content.js.map +1 -1
- package/package.json +1 -1
- package/src/client/content.ts +77 -29
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.29.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.28.0...portal-network@v0.29.0) (2024-09-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* Add actions fn ([6111461](https://github.com/stack-spot/portal-commons/commit/611146176448eb3a2e87f4015f3cb4e5d4444129))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add missing fn ([c845e86](https://github.com/stack-spot/portal-commons/commit/c845e86c0d13561cde27b34e7ade09b068ce860c))
|
|
14
|
+
|
|
3
15
|
## [0.28.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.27.2...portal-network@v0.28.0) (2024-09-16)
|
|
4
16
|
|
|
5
17
|
|
package/dist/client/content.d.ts
CHANGED
|
@@ -122,14 +122,23 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
122
122
|
*/
|
|
123
123
|
deprecationReasons: import("../network/types.js").QueryObject<void, string[]>;
|
|
124
124
|
/**
|
|
125
|
-
*
|
|
125
|
+
* Gets stacks from a given studio
|
|
126
|
+
*/
|
|
127
|
+
stacksFromStudios: import("../network/types.js").QueryObject<{
|
|
128
|
+
xWorkspaceId?: string | undefined;
|
|
129
|
+
studioSlug: string;
|
|
130
|
+
pageable: import("../api/content.js").Pageable;
|
|
131
|
+
filterStackRequest: import("../api/content.js").FilterStackRequest;
|
|
132
|
+
}, import("../api/content.js").PageGetStackStudioResponse>;
|
|
133
|
+
/**
|
|
134
|
+
* Gets usage summary of stack
|
|
126
135
|
*/
|
|
127
136
|
stackUsageSummary: import("../network/types.js").QueryObject<{
|
|
128
137
|
studioSlug: string;
|
|
129
138
|
stackSlug: string;
|
|
130
139
|
}, import("../api/content.js").StackModalViewResponse>;
|
|
131
140
|
/**
|
|
132
|
-
*
|
|
141
|
+
* Gets list of Workspaces using the Stack
|
|
133
142
|
*/
|
|
134
143
|
workspacesUsingStack: import("../network/types.js").QueryObject<{
|
|
135
144
|
studioSlug: string;
|
|
@@ -138,7 +147,7 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
138
147
|
pageable: import("../api/content.js").Pageable;
|
|
139
148
|
}, import("../api/content.js").PageStackWorkspaceViewResponse>;
|
|
140
149
|
/**
|
|
141
|
-
*
|
|
150
|
+
* Gets list StackVersions used by Workspace
|
|
142
151
|
*/
|
|
143
152
|
stackVersionsUsedByWorkspace: import("../network/types.js").QueryObject<{
|
|
144
153
|
studioSlug: string;
|
|
@@ -147,7 +156,7 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
147
156
|
pageable: import("../api/content.js").Pageable;
|
|
148
157
|
}, import("../api/content.js").PageStackWorkspaceDetailViewResponse>;
|
|
149
158
|
/**
|
|
150
|
-
*
|
|
159
|
+
* Gets list of StackVersions not used by any Content
|
|
151
160
|
*/
|
|
152
161
|
stackVersionsNotInUse: import("../network/types.js").QueryObject<{
|
|
153
162
|
studioSlug: string;
|
|
@@ -162,7 +171,7 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
162
171
|
pluginSlug: string;
|
|
163
172
|
}, import("../api/content.js").PluginInUseSummaryResponse>;
|
|
164
173
|
/**
|
|
165
|
-
*
|
|
174
|
+
* Gets list of Stacks using the plugin
|
|
166
175
|
*/
|
|
167
176
|
stacksUsingPlugin: import("../network/types.js").QueryObject<{
|
|
168
177
|
studioSlug: string;
|
|
@@ -171,7 +180,7 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
171
180
|
pageable: import("../api/content.js").Pageable;
|
|
172
181
|
}, import("../api/content.js").PagePluginStacksResponse>;
|
|
173
182
|
/**
|
|
174
|
-
*
|
|
183
|
+
* Gets list of PluginVersions used by Stack
|
|
175
184
|
*/
|
|
176
185
|
pluginVersionsUsedByStack: import("../network/types.js").QueryObject<{
|
|
177
186
|
studioSlug: string;
|
|
@@ -181,7 +190,7 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
181
190
|
pageable: import("../api/content.js").Pageable;
|
|
182
191
|
}, import("../api/content.js").PageGetPluginStackUsageResponse>;
|
|
183
192
|
/**
|
|
184
|
-
*
|
|
193
|
+
* Gets list of Plugin that requires the plugin
|
|
185
194
|
*/
|
|
186
195
|
pluginsRequiresPlugin: import("../network/types.js").QueryObject<{
|
|
187
196
|
studioSlug: string;
|
|
@@ -192,7 +201,7 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
192
201
|
pageable: import("../api/content.js").Pageable;
|
|
193
202
|
}, import("../api/content.js").PagePluginViewUsageMonitorResponse>;
|
|
194
203
|
/**
|
|
195
|
-
*
|
|
204
|
+
* Gets list of PluginVersions used by Plugin
|
|
196
205
|
*/
|
|
197
206
|
pluginVersionsUsedByPlugin: import("../network/types.js").QueryObject<{
|
|
198
207
|
studioSlug: string;
|
|
@@ -201,7 +210,7 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
201
210
|
pageable: import("../api/content.js").Pageable;
|
|
202
211
|
}, import("../api/content.js").PageGetDependentPluginsVersionsResponse>;
|
|
203
212
|
/**
|
|
204
|
-
*
|
|
213
|
+
* Gets list of Starter using the plugin
|
|
205
214
|
*/
|
|
206
215
|
starterUsingPlugin: import("../network/types.js").QueryObject<{
|
|
207
216
|
studioSlug: string;
|
|
@@ -211,7 +220,7 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
211
220
|
pageable: import("../api/content.js").Pageable;
|
|
212
221
|
}, import("../api/content.js").PagePluginStarterResponse>;
|
|
213
222
|
/**
|
|
214
|
-
*
|
|
223
|
+
* Gets list of PluginVersions used by Starter
|
|
215
224
|
*/
|
|
216
225
|
pluginVersionsUsedByStarter: import("../network/types.js").QueryObject<{
|
|
217
226
|
studioSlug: string;
|
|
@@ -220,7 +229,7 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
220
229
|
pageable: import("../api/content.js").Pageable;
|
|
221
230
|
}, import("../api/content.js").PageGetPluginStackStarterUsageResponse>;
|
|
222
231
|
/**
|
|
223
|
-
*
|
|
232
|
+
* Gets list of Infrastructure using the plugin
|
|
224
233
|
*/
|
|
225
234
|
infrastructureUsingPlugin: import("../network/types.js").QueryObject<{
|
|
226
235
|
studioSlug: string;
|
|
@@ -229,7 +238,7 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
229
238
|
pageable: import("../api/content.js").Pageable;
|
|
230
239
|
}, import("../api/content.js").PagePluginInfrastructureViewResponse>;
|
|
231
240
|
/**
|
|
232
|
-
*
|
|
241
|
+
* Gets list of PluginVersions used by Infrastructure
|
|
233
242
|
*/
|
|
234
243
|
pluginVersionsUsedByInfrastructure: import("../network/types.js").QueryObject<{
|
|
235
244
|
studioSlug: string;
|
|
@@ -238,7 +247,7 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
238
247
|
pageable: import("../api/content.js").Pageable;
|
|
239
248
|
}, import("../api/content.js").PageInfrastructureEnvironmentsUsesPluginResponse>;
|
|
240
249
|
/**
|
|
241
|
-
*
|
|
250
|
+
* Gets list of Application using the plugin
|
|
242
251
|
*/
|
|
243
252
|
applicationUsingPlugin: import("../network/types.js").QueryObject<{
|
|
244
253
|
studioSlug: string;
|
|
@@ -247,7 +256,7 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
247
256
|
pageable: import("../api/content.js").Pageable;
|
|
248
257
|
}, import("../api/content.js").PagePluginApplicationsResponse>;
|
|
249
258
|
/**
|
|
250
|
-
*
|
|
259
|
+
* Gets list of PluginVersions used by Applications
|
|
251
260
|
*/
|
|
252
261
|
pluginVersionsUsedByApplication: import("../network/types.js").QueryObject<{
|
|
253
262
|
studioSlug: string;
|
|
@@ -256,7 +265,7 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
256
265
|
pageable: import("../api/content.js").Pageable;
|
|
257
266
|
}, import("../api/content.js").PagePluginUsageMonitorApplicationViewResponse>;
|
|
258
267
|
/**
|
|
259
|
-
*
|
|
268
|
+
* Gets list of PluginVersions not used by any Content
|
|
260
269
|
*/
|
|
261
270
|
pluginVersionsNotInUse: import("../network/types.js").QueryObject<{
|
|
262
271
|
studioSlug: string;
|
|
@@ -306,8 +315,122 @@ declare class ContentClient extends ReactQueryNetworkClient {
|
|
|
306
315
|
$override?: boolean | undefined;
|
|
307
316
|
}, unknown>;
|
|
308
317
|
/**
|
|
309
|
-
*
|
|
318
|
+
* Gets Action by Slug and Studio
|
|
319
|
+
*/
|
|
320
|
+
action: import("../network/types.js").QueryObject<{
|
|
321
|
+
studioSlug: string;
|
|
322
|
+
actionSlug: string;
|
|
323
|
+
version?: string | undefined;
|
|
324
|
+
xWorkspaceId?: string | undefined;
|
|
325
|
+
}, import("../api/content.js").GetActionResponse>;
|
|
326
|
+
/**
|
|
327
|
+
* Gets all Versions of Action
|
|
328
|
+
*/
|
|
329
|
+
actionVersions: import("../network/types.js").QueryObject<{
|
|
330
|
+
studioSlug: string;
|
|
331
|
+
actionSlug: string;
|
|
332
|
+
status?: ("DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED")[] | undefined;
|
|
333
|
+
xWorkspaceId?: string | undefined;
|
|
334
|
+
}, import("../api/content.js").GetActionVersionListResponse>;
|
|
335
|
+
/**
|
|
336
|
+
* Gets Action by Action Version Id
|
|
337
|
+
*/
|
|
338
|
+
actionByActionVersionId: import("../network/types.js").QueryObject<{
|
|
339
|
+
actionVersionId: string;
|
|
340
|
+
xWorkspaceId?: string | undefined;
|
|
341
|
+
}, import("../api/content.js").GetActionResponse>;
|
|
342
|
+
/**
|
|
343
|
+
* Gets list of Actions
|
|
344
|
+
*/
|
|
345
|
+
actions: import("../network/types.js").QueryObject<{
|
|
346
|
+
studioSlug?: string | undefined;
|
|
347
|
+
name?: string | undefined;
|
|
348
|
+
$type?: string | undefined;
|
|
349
|
+
technologies?: string[] | undefined;
|
|
350
|
+
status?: ("PENDING_APPROVAL" | "PENDING_CREATOR_UPDATE" | "PUBLICATION_APPROVED" | "PUBLICATION_DECLINED")[] | undefined;
|
|
351
|
+
filter?: string | undefined;
|
|
352
|
+
accountOnly?: boolean | undefined;
|
|
353
|
+
xWorkspaceId?: string | undefined;
|
|
354
|
+
requiresConnection?: boolean | undefined;
|
|
355
|
+
}, import("../api/content.js").ActionResponse[]>;
|
|
356
|
+
/**
|
|
357
|
+
* Get list of Actions in Stack
|
|
358
|
+
*/
|
|
359
|
+
actionsInStack: import("../network/types.js").QueryObject<{
|
|
360
|
+
stackVersionId: string;
|
|
361
|
+
forPluginVersionId?: string | undefined;
|
|
362
|
+
xWorkspaceId?: string | undefined;
|
|
363
|
+
}, import("../api/content.js").GetStackActionResponse[]>;
|
|
364
|
+
/**
|
|
365
|
+
* Add Action to Stack Version
|
|
366
|
+
*/
|
|
367
|
+
addActionsToStackVersion: import("../network/types.js").MutationObject<{
|
|
368
|
+
stackVersionId: string;
|
|
369
|
+
body: import("../api/content.js").AddActionRequest[];
|
|
370
|
+
}, unknown>;
|
|
371
|
+
/**
|
|
372
|
+
* Add Action to Plugin Version
|
|
373
|
+
*/
|
|
374
|
+
addActionsToPluginVersion: import("../network/types.js").MutationObject<{
|
|
375
|
+
stackVersionId: string;
|
|
376
|
+
pluginVersionId: string;
|
|
377
|
+
body: import("../api/content.js").AddActionRequest[];
|
|
378
|
+
}, unknown>;
|
|
379
|
+
/**
|
|
380
|
+
* Remove Action Version from Stack
|
|
381
|
+
*/
|
|
382
|
+
removeActionVersionFromStack: import("../network/types.js").MutationObject<{
|
|
383
|
+
stackVersionId: string;
|
|
384
|
+
actionVersionId: string;
|
|
385
|
+
}, unknown>;
|
|
386
|
+
/**
|
|
387
|
+
* Remove Action Version from Plugin
|
|
388
|
+
*/
|
|
389
|
+
removeActionVersionFromPlugin: import("../network/types.js").MutationObject<{
|
|
390
|
+
stackVersionId: string;
|
|
391
|
+
pluginVersionId: string;
|
|
392
|
+
actionVersionId: string;
|
|
393
|
+
}, unknown>;
|
|
394
|
+
/**
|
|
395
|
+
* Delete Action Version
|
|
396
|
+
*/
|
|
397
|
+
deleteActionVersion: import("../network/types.js").MutationObject<{
|
|
398
|
+
actionVersionId: string;
|
|
399
|
+
}, unknown>;
|
|
400
|
+
/**
|
|
401
|
+
* Deprecate Action Version
|
|
310
402
|
*/
|
|
403
|
+
deprecateActionVersion: import("../network/types.js").MutationObject<{
|
|
404
|
+
actionVersionId: string;
|
|
405
|
+
deprecateContentRequest: import("../api/content.js").DeprecateContentRequest;
|
|
406
|
+
}, unknown>;
|
|
407
|
+
/**
|
|
408
|
+
* Download Action Version
|
|
409
|
+
*/
|
|
410
|
+
downloadActionVersion: import("../network/types.js").QueryObject<{
|
|
411
|
+
studioSlug: string;
|
|
412
|
+
actionSlug: string;
|
|
413
|
+
version: string;
|
|
414
|
+
xWorkspaceId?: string | undefined;
|
|
415
|
+
}, import("../api/content.js").DownloadBase64Response>;
|
|
416
|
+
/**
|
|
417
|
+
* Get Action Version range by Action Slug
|
|
418
|
+
*/
|
|
419
|
+
actionVersionRange: import("../network/types.js").MutationObject<{
|
|
420
|
+
studioSlug: string;
|
|
421
|
+
actionSlug: string;
|
|
422
|
+
xWorkspaceId?: string | undefined;
|
|
423
|
+
range: string;
|
|
424
|
+
}, import("../api/content.js").GetAvailableActionVersionsResponse[]>;
|
|
425
|
+
/**
|
|
426
|
+
* Get Actions from Stack
|
|
427
|
+
*/
|
|
428
|
+
actionsFromStack: import("../network/types.js").QueryObject<{
|
|
429
|
+
xWorkspaceId?: string | undefined;
|
|
430
|
+
stackVersionId: string;
|
|
431
|
+
pageable: import("../api/content.js").Pageable;
|
|
432
|
+
filterStackActionRequest: import("../api/content.js").FilterStackActionRequest;
|
|
433
|
+
}, import("../api/content.js").PageGetStackActionResponse>;
|
|
311
434
|
updateStarter: import("../network/types.js").MutationObject<{
|
|
312
435
|
stackVersionId: string;
|
|
313
436
|
starterId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../src/client/content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../src/client/content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAK7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAGlD,cAAM,aAAc,SAAQ,uBAAuB;;IAKjD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAGlE;;OAEG;IACH,YAAY;;mDAAsC;IAClD;;OAEG;IACH,cAAc;;;8CAAyB;IACvC;;OAEG;IACH,mBAAmB;;;gBAA4B;IAC/C;;OAEG;IACH,oBAAoB;;;oDAAuC;IAC3D;;OAEG;IACH,OAAO;;;;;;;sFAAoD;IAC3D;;OAEG;IACH,8BAA8B;;6FAAiE;IAC/F;;OAEG;IACH,MAAM;;;;gDAAkC;IACxC;;OAEG;IACH,YAAY;;;0FAAwD;IACpE;;OAEG;IACH,YAAY;;;gDAA8B;IAC1C;;OAEG;IACH,YAAY;;gBAA8B;IAC1C;;OAEG;IACH,sBAAsB;;;gDAAkC;IACxD;;OAEG;IACH,oBAAoB;;;gBAA8B;IAClD;;OAEG;IACH,yBAA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,cAAc;;;;0DAA0B;IACxC;;OAEG;IACH,wBAAwB;;;gBAA2B;IACnD;;OAEG;IACH,yBAAyB;;;;gBAAyC;IAClE;;OAEG;IACH,4BAA4B;;;gBAA8B;IAC1D;;OAEG;IACH,6BAA6B;;;;gBAAwC;IACrE;;OAEG;IACH,mBAAmB;;gBAAqC;IACxD;;OAEG;IACH,sBAAsB;;;gBAAwC;IAC9D;;OAEG;IACH,qBAAqB;;;;;wDAA6B;IAClD;;OAEG;IACH,kBAAkB;;;;;sEAAwD;IAC1E;;OAEG;IACH,gBAAgB;;;;;4DAAoC;IAIpD,aAAa;;;;0DAAgC;IAC7C;;OAEG;IACH,wBAAwB,yGAA2C;IACnE;;OAEG;IACH,mBAAmB;;;yDAA+C;IAClE;;OAEG;IACH,oBAAoB;;;;oDAA0B;IAC9C;;OAEG;IACH,YAAY;;;;OAC4C;IACxD;;OAEG;IACH,eAAe;;uEAAiC;IAChD;;OAEG;IACH,sBAAsB;;;;;4DAA2B;CAClD;AAED,eAAO,MAAM,aAAa,eAAsB,CAAA"}
|
package/dist/client/content.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { addLink, addWorkspace, changeVisibility, createStudio, defaults, deleteLink, deleteStudio, delWorkspace,
|
|
1
|
+
import { addAction, addLink, addWorkspace, associateActionToPlugin, changeVisibility, createStudio, defaults, deleteAction, deleteActionVersion, deleteLink, deletePluginVersion, deleteStudio, deleteV1StacksVersionsByStackVersionId, delWorkspace, deprecateActionVersion, deprecatePluginVersion, deprecateStackVersionBy, downloadAction, getActionBySlug, getActionsVersions, getActionVersionById, getAllActionVersions, getApplicationDetailsView, getApplicationsUsesPlugin, getAvailableActionVersionsByActionSlug, getDependentPluginsVersions, getGetPluginView, getInfrastructureEnvironmentsUsesPlugin, getListOfInputs, getPluginInfrastructureView, getPluginModalView, getPluginVersions, getPluginVersionsNotInUse, getPluginVersionUsageSummary, getStackUsesPlugin, getStackVersionListByIds, getStackWorkspaceDetailView, getStackWorkspaces, getStarterStackVersionsAndPluginsVersions, getStarterUsesPlugin, getStudioByIdOrSlug, getStudios1, getStudiosToCreateButton, getStudioTabs, getUnusedStackVersions, listActions, listActions1, listActionsByFilters1, listConnectionInterfaceTypes, listLinksByStackVersion, listPlugins, listPluginVersionByIdsController, listReasons, listStacksByFilters, listStarters, listWorkspaces, patchStarterV2, removeActionFromPlugin, stackModalViewSummary, stackVersionUsageSummary, updateStudio, updateStudioTabs } from '../api/content.js';
|
|
2
2
|
import apis from '../apis.json';
|
|
3
3
|
import { DefaultAPIError } from '../error/DefaultAPIError.js';
|
|
4
4
|
import { cntDictionary } from '../error/dictionary/cnt.js';
|
|
@@ -161,7 +161,16 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
161
161
|
value: this.query(listReasons)
|
|
162
162
|
});
|
|
163
163
|
/**
|
|
164
|
-
*
|
|
164
|
+
* Gets stacks from a given studio
|
|
165
|
+
*/
|
|
166
|
+
Object.defineProperty(this, "stacksFromStudios", {
|
|
167
|
+
enumerable: true,
|
|
168
|
+
configurable: true,
|
|
169
|
+
writable: true,
|
|
170
|
+
value: this.query(listStacksByFilters)
|
|
171
|
+
});
|
|
172
|
+
/**
|
|
173
|
+
* Gets usage summary of stack
|
|
165
174
|
*/
|
|
166
175
|
Object.defineProperty(this, "stackUsageSummary", {
|
|
167
176
|
enumerable: true,
|
|
@@ -170,7 +179,7 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
170
179
|
value: this.query(stackModalViewSummary)
|
|
171
180
|
});
|
|
172
181
|
/**
|
|
173
|
-
*
|
|
182
|
+
* Gets list of Workspaces using the Stack
|
|
174
183
|
*/
|
|
175
184
|
Object.defineProperty(this, "workspacesUsingStack", {
|
|
176
185
|
enumerable: true,
|
|
@@ -179,7 +188,7 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
179
188
|
value: this.query(getStackWorkspaces)
|
|
180
189
|
});
|
|
181
190
|
/**
|
|
182
|
-
*
|
|
191
|
+
* Gets list StackVersions used by Workspace
|
|
183
192
|
*/
|
|
184
193
|
Object.defineProperty(this, "stackVersionsUsedByWorkspace", {
|
|
185
194
|
enumerable: true,
|
|
@@ -188,7 +197,7 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
188
197
|
value: this.query(getStackWorkspaceDetailView)
|
|
189
198
|
});
|
|
190
199
|
/**
|
|
191
|
-
*
|
|
200
|
+
* Gets list of StackVersions not used by any Content
|
|
192
201
|
*/
|
|
193
202
|
Object.defineProperty(this, "stackVersionsNotInUse", {
|
|
194
203
|
enumerable: true,
|
|
@@ -206,7 +215,7 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
206
215
|
value: this.query(getPluginModalView)
|
|
207
216
|
});
|
|
208
217
|
/**
|
|
209
|
-
*
|
|
218
|
+
* Gets list of Stacks using the plugin
|
|
210
219
|
*/
|
|
211
220
|
Object.defineProperty(this, "stacksUsingPlugin", {
|
|
212
221
|
enumerable: true,
|
|
@@ -215,7 +224,7 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
215
224
|
value: this.query(getStackUsesPlugin)
|
|
216
225
|
});
|
|
217
226
|
/**
|
|
218
|
-
*
|
|
227
|
+
* Gets list of PluginVersions used by Stack
|
|
219
228
|
*/
|
|
220
229
|
Object.defineProperty(this, "pluginVersionsUsedByStack", {
|
|
221
230
|
enumerable: true,
|
|
@@ -224,7 +233,7 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
224
233
|
value: this.query(getPluginVersions)
|
|
225
234
|
});
|
|
226
235
|
/**
|
|
227
|
-
*
|
|
236
|
+
* Gets list of Plugin that requires the plugin
|
|
228
237
|
*/
|
|
229
238
|
Object.defineProperty(this, "pluginsRequiresPlugin", {
|
|
230
239
|
enumerable: true,
|
|
@@ -233,7 +242,7 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
233
242
|
value: this.query(getGetPluginView)
|
|
234
243
|
});
|
|
235
244
|
/**
|
|
236
|
-
*
|
|
245
|
+
* Gets list of PluginVersions used by Plugin
|
|
237
246
|
*/
|
|
238
247
|
Object.defineProperty(this, "pluginVersionsUsedByPlugin", {
|
|
239
248
|
enumerable: true,
|
|
@@ -242,7 +251,7 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
242
251
|
value: this.query(getDependentPluginsVersions)
|
|
243
252
|
});
|
|
244
253
|
/**
|
|
245
|
-
*
|
|
254
|
+
* Gets list of Starter using the plugin
|
|
246
255
|
*/
|
|
247
256
|
Object.defineProperty(this, "starterUsingPlugin", {
|
|
248
257
|
enumerable: true,
|
|
@@ -251,7 +260,7 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
251
260
|
value: this.query(getStarterUsesPlugin)
|
|
252
261
|
});
|
|
253
262
|
/**
|
|
254
|
-
*
|
|
263
|
+
* Gets list of PluginVersions used by Starter
|
|
255
264
|
*/
|
|
256
265
|
Object.defineProperty(this, "pluginVersionsUsedByStarter", {
|
|
257
266
|
enumerable: true,
|
|
@@ -260,7 +269,7 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
260
269
|
value: this.query(getStarterStackVersionsAndPluginsVersions)
|
|
261
270
|
});
|
|
262
271
|
/**
|
|
263
|
-
*
|
|
272
|
+
* Gets list of Infrastructure using the plugin
|
|
264
273
|
*/
|
|
265
274
|
Object.defineProperty(this, "infrastructureUsingPlugin", {
|
|
266
275
|
enumerable: true,
|
|
@@ -269,7 +278,7 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
269
278
|
value: this.query(getPluginInfrastructureView)
|
|
270
279
|
});
|
|
271
280
|
/**
|
|
272
|
-
*
|
|
281
|
+
* Gets list of PluginVersions used by Infrastructure
|
|
273
282
|
*/
|
|
274
283
|
Object.defineProperty(this, "pluginVersionsUsedByInfrastructure", {
|
|
275
284
|
enumerable: true,
|
|
@@ -278,7 +287,7 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
278
287
|
value: this.query(getInfrastructureEnvironmentsUsesPlugin)
|
|
279
288
|
});
|
|
280
289
|
/**
|
|
281
|
-
*
|
|
290
|
+
* Gets list of Application using the plugin
|
|
282
291
|
*/
|
|
283
292
|
Object.defineProperty(this, "applicationUsingPlugin", {
|
|
284
293
|
enumerable: true,
|
|
@@ -287,7 +296,7 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
287
296
|
value: this.query(getApplicationsUsesPlugin)
|
|
288
297
|
});
|
|
289
298
|
/**
|
|
290
|
-
*
|
|
299
|
+
* Gets list of PluginVersions used by Applications
|
|
291
300
|
*/
|
|
292
301
|
Object.defineProperty(this, "pluginVersionsUsedByApplication", {
|
|
293
302
|
enumerable: true,
|
|
@@ -296,7 +305,7 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
296
305
|
value: this.query(getApplicationDetailsView)
|
|
297
306
|
});
|
|
298
307
|
/**
|
|
299
|
-
*
|
|
308
|
+
* Gets list of PluginVersions not used by any Content
|
|
300
309
|
*/
|
|
301
310
|
Object.defineProperty(this, "pluginVersionsNotInUse", {
|
|
302
311
|
enumerable: true,
|
|
@@ -359,6 +368,132 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
359
368
|
value: this.mutation(deletePluginVersion)
|
|
360
369
|
});
|
|
361
370
|
/**
|
|
371
|
+
* Gets Action by Slug and Studio
|
|
372
|
+
*/
|
|
373
|
+
Object.defineProperty(this, "action", {
|
|
374
|
+
enumerable: true,
|
|
375
|
+
configurable: true,
|
|
376
|
+
writable: true,
|
|
377
|
+
value: this.query(getActionBySlug)
|
|
378
|
+
});
|
|
379
|
+
/**
|
|
380
|
+
* Gets all Versions of Action
|
|
381
|
+
*/
|
|
382
|
+
Object.defineProperty(this, "actionVersions", {
|
|
383
|
+
enumerable: true,
|
|
384
|
+
configurable: true,
|
|
385
|
+
writable: true,
|
|
386
|
+
value: this.query(getAllActionVersions)
|
|
387
|
+
});
|
|
388
|
+
/**
|
|
389
|
+
* Gets Action by Action Version Id
|
|
390
|
+
*/
|
|
391
|
+
Object.defineProperty(this, "actionByActionVersionId", {
|
|
392
|
+
enumerable: true,
|
|
393
|
+
configurable: true,
|
|
394
|
+
writable: true,
|
|
395
|
+
value: this.query(getActionVersionById)
|
|
396
|
+
});
|
|
397
|
+
/**
|
|
398
|
+
* Gets list of Actions
|
|
399
|
+
*/
|
|
400
|
+
Object.defineProperty(this, "actions", {
|
|
401
|
+
enumerable: true,
|
|
402
|
+
configurable: true,
|
|
403
|
+
writable: true,
|
|
404
|
+
value: this.query(listActions1)
|
|
405
|
+
});
|
|
406
|
+
/**
|
|
407
|
+
* Get list of Actions in Stack
|
|
408
|
+
*/
|
|
409
|
+
Object.defineProperty(this, "actionsInStack", {
|
|
410
|
+
enumerable: true,
|
|
411
|
+
configurable: true,
|
|
412
|
+
writable: true,
|
|
413
|
+
value: this.query(listActions)
|
|
414
|
+
});
|
|
415
|
+
/**
|
|
416
|
+
* Add Action to Stack Version
|
|
417
|
+
*/
|
|
418
|
+
Object.defineProperty(this, "addActionsToStackVersion", {
|
|
419
|
+
enumerable: true,
|
|
420
|
+
configurable: true,
|
|
421
|
+
writable: true,
|
|
422
|
+
value: this.mutation(addAction)
|
|
423
|
+
});
|
|
424
|
+
/**
|
|
425
|
+
* Add Action to Plugin Version
|
|
426
|
+
*/
|
|
427
|
+
Object.defineProperty(this, "addActionsToPluginVersion", {
|
|
428
|
+
enumerable: true,
|
|
429
|
+
configurable: true,
|
|
430
|
+
writable: true,
|
|
431
|
+
value: this.mutation(associateActionToPlugin)
|
|
432
|
+
});
|
|
433
|
+
/**
|
|
434
|
+
* Remove Action Version from Stack
|
|
435
|
+
*/
|
|
436
|
+
Object.defineProperty(this, "removeActionVersionFromStack", {
|
|
437
|
+
enumerable: true,
|
|
438
|
+
configurable: true,
|
|
439
|
+
writable: true,
|
|
440
|
+
value: this.mutation(deleteAction)
|
|
441
|
+
});
|
|
442
|
+
/**
|
|
443
|
+
* Remove Action Version from Plugin
|
|
444
|
+
*/
|
|
445
|
+
Object.defineProperty(this, "removeActionVersionFromPlugin", {
|
|
446
|
+
enumerable: true,
|
|
447
|
+
configurable: true,
|
|
448
|
+
writable: true,
|
|
449
|
+
value: this.mutation(removeActionFromPlugin)
|
|
450
|
+
});
|
|
451
|
+
/**
|
|
452
|
+
* Delete Action Version
|
|
453
|
+
*/
|
|
454
|
+
Object.defineProperty(this, "deleteActionVersion", {
|
|
455
|
+
enumerable: true,
|
|
456
|
+
configurable: true,
|
|
457
|
+
writable: true,
|
|
458
|
+
value: this.mutation(deleteActionVersion)
|
|
459
|
+
});
|
|
460
|
+
/**
|
|
461
|
+
* Deprecate Action Version
|
|
462
|
+
*/
|
|
463
|
+
Object.defineProperty(this, "deprecateActionVersion", {
|
|
464
|
+
enumerable: true,
|
|
465
|
+
configurable: true,
|
|
466
|
+
writable: true,
|
|
467
|
+
value: this.mutation(deprecateActionVersion)
|
|
468
|
+
});
|
|
469
|
+
/**
|
|
470
|
+
* Download Action Version
|
|
471
|
+
*/
|
|
472
|
+
Object.defineProperty(this, "downloadActionVersion", {
|
|
473
|
+
enumerable: true,
|
|
474
|
+
configurable: true,
|
|
475
|
+
writable: true,
|
|
476
|
+
value: this.query(downloadAction)
|
|
477
|
+
});
|
|
478
|
+
/**
|
|
479
|
+
* Get Action Version range by Action Slug
|
|
480
|
+
*/
|
|
481
|
+
Object.defineProperty(this, "actionVersionRange", {
|
|
482
|
+
enumerable: true,
|
|
483
|
+
configurable: true,
|
|
484
|
+
writable: true,
|
|
485
|
+
value: this.mutation(getAvailableActionVersionsByActionSlug)
|
|
486
|
+
});
|
|
487
|
+
/**
|
|
488
|
+
* Get Actions from Stack
|
|
489
|
+
*/
|
|
490
|
+
Object.defineProperty(this, "actionsFromStack", {
|
|
491
|
+
enumerable: true,
|
|
492
|
+
configurable: true,
|
|
493
|
+
writable: true,
|
|
494
|
+
value: this.query(listActionsByFilters1)
|
|
495
|
+
});
|
|
496
|
+
/*
|
|
362
497
|
* Update starter
|
|
363
498
|
*/
|
|
364
499
|
Object.defineProperty(this, "updateStarter", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../src/client/content.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../src/client/content.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,mBAAmB,EAAE,UAAU,EAAE,mBAAmB,EAAE,YAAY,EAAE,sCAAsC,EAAE,YAAY,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,cAAc,EAAE,eAAe,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,sCAAsC,EAAE,2BAA2B,EAAE,gBAAgB,EAAE,uCAAuC,EAAE,eAAe,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,4BAA4B,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,yCAAyC,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,WAAW,EAAE,wBAAwB,EAAE,aAAa,EAAE,sBAAsB,EAAE,WAAW,EAAE,YAAY,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,uBAAuB,EAAE,WAAW,EAAE,gCAAgC,EAAE,WAAW,EAAE,mBAAmB,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAC90C,OAAO,IAAI,MAAM,cAAc,CAAA;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAEvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;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,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;IACpF,CAAC;CAsPF;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,aAAa,EAAE,CAAA"}
|
package/package.json
CHANGED
package/src/client/content.ts
CHANGED
|
@@ -1,23 +1,12 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
|
-
import {
|
|
3
|
-
addLink, addWorkspace, changeVisibility, createStudio, defaults, deleteLink, deleteStudio, delWorkspace,
|
|
4
|
-
getStackVersionListByIds, getStudioByIdOrSlug, getStudios1, getStudiosToCreateButton, getStudioTabs,
|
|
5
|
-
listConnectionInterfaceTypes, listLinksByStackVersion, listPluginVersionByIdsController, listReasons,
|
|
6
|
-
listWorkspaces, stackModalViewSummary, getListOfInputs, updateStudio, updateStudioTabs, deleteV1StacksVersionsByStackVersionId,
|
|
7
|
-
getStackWorkspaces, getStackWorkspaceDetailView, getUnusedStackVersions, getPluginModalView, getStackUsesPlugin,
|
|
8
|
-
getGetPluginView, getPluginInfrastructureView, getApplicationsUsesPlugin, getStarterUsesPlugin, getPluginVersionsNotInUse,
|
|
9
|
-
getPluginVersions, getDependentPluginsVersions, getStarterStackVersionsAndPluginsVersions, getInfrastructureEnvironmentsUsesPlugin,
|
|
10
|
-
getApplicationDetailsView, stackVersionUsageSummary, deprecateStackVersionBy, getPluginVersionUsageSummary, deprecatePluginVersion,
|
|
11
|
-
deletePluginVersion, patchStarterV2, listPlugins,
|
|
12
|
-
getActionsVersions, listStarters,
|
|
13
|
-
} from '../api/content'
|
|
2
|
+
import { addAction, addLink, addWorkspace, associateActionToPlugin, changeVisibility, createStudio, defaults, deleteAction, deleteActionVersion, deleteLink, deletePluginVersion, deleteStudio, deleteV1StacksVersionsByStackVersionId, delWorkspace, deprecateActionVersion, deprecatePluginVersion, deprecateStackVersionBy, downloadAction, getActionBySlug, getActionsVersions, getActionVersionById, getAllActionVersions, getApplicationDetailsView, getApplicationsUsesPlugin, getAvailableActionVersionsByActionSlug, getDependentPluginsVersions, getGetPluginView, getInfrastructureEnvironmentsUsesPlugin, getListOfInputs, getPluginInfrastructureView, getPluginModalView, getPluginVersions, getPluginVersionsNotInUse, getPluginVersionUsageSummary, getStackUsesPlugin, getStackVersionListByIds, getStackWorkspaceDetailView, getStackWorkspaces, getStarterStackVersionsAndPluginsVersions, getStarterUsesPlugin, getStudioByIdOrSlug, getStudios1, getStudiosToCreateButton, getStudioTabs, getUnusedStackVersions, listActions, listActions1, listActionsByFilters1, listConnectionInterfaceTypes, listLinksByStackVersion, listPlugins, listPluginVersionByIdsController, listReasons, listStacksByFilters, listStarters, listWorkspaces, patchStarterV2, removeActionFromPlugin, stackModalViewSummary, stackVersionUsageSummary, updateStudio, updateStudioTabs } from '../api/content'
|
|
14
3
|
import apis from '../apis.json'
|
|
15
4
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
16
5
|
import { cntDictionary } from '../error/dictionary/cnt'
|
|
17
6
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
18
7
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
19
|
-
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
20
8
|
import { OperationObject } from '../network/types'
|
|
9
|
+
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
21
10
|
|
|
22
11
|
class ContentClient extends ReactQueryNetworkClient {
|
|
23
12
|
constructor() {
|
|
@@ -95,21 +84,24 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
95
84
|
* Gets content deprecation reasons
|
|
96
85
|
*/
|
|
97
86
|
deprecationReasons = this.query(listReasons)
|
|
98
|
-
|
|
99
87
|
/**
|
|
100
|
-
*
|
|
88
|
+
* Gets stacks from a given studio
|
|
89
|
+
*/
|
|
90
|
+
stacksFromStudios = this.query(listStacksByFilters)
|
|
91
|
+
/**
|
|
92
|
+
* Gets usage summary of stack
|
|
101
93
|
*/
|
|
102
94
|
stackUsageSummary = this.query(stackModalViewSummary)
|
|
103
95
|
/**
|
|
104
|
-
*
|
|
96
|
+
* Gets list of Workspaces using the Stack
|
|
105
97
|
*/
|
|
106
98
|
workspacesUsingStack = this.query(getStackWorkspaces)
|
|
107
99
|
/**
|
|
108
|
-
*
|
|
100
|
+
* Gets list StackVersions used by Workspace
|
|
109
101
|
*/
|
|
110
102
|
stackVersionsUsedByWorkspace = this.query(getStackWorkspaceDetailView)
|
|
111
103
|
/**
|
|
112
|
-
*
|
|
104
|
+
* Gets list of StackVersions not used by any Content
|
|
113
105
|
*/
|
|
114
106
|
stackVersionsNotInUse = this.query(getUnusedStackVersions)
|
|
115
107
|
/**
|
|
@@ -117,47 +109,47 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
117
109
|
*/
|
|
118
110
|
pluginUsageSummary = this.query(getPluginModalView)
|
|
119
111
|
/**
|
|
120
|
-
*
|
|
112
|
+
* Gets list of Stacks using the plugin
|
|
121
113
|
*/
|
|
122
114
|
stacksUsingPlugin = this.query(getStackUsesPlugin)
|
|
123
115
|
/**
|
|
124
|
-
*
|
|
116
|
+
* Gets list of PluginVersions used by Stack
|
|
125
117
|
*/
|
|
126
118
|
pluginVersionsUsedByStack = this.query(getPluginVersions)
|
|
127
119
|
/**
|
|
128
|
-
*
|
|
120
|
+
* Gets list of Plugin that requires the plugin
|
|
129
121
|
*/
|
|
130
122
|
pluginsRequiresPlugin = this.query(getGetPluginView)
|
|
131
123
|
/**
|
|
132
|
-
*
|
|
124
|
+
* Gets list of PluginVersions used by Plugin
|
|
133
125
|
*/
|
|
134
126
|
pluginVersionsUsedByPlugin = this.query(getDependentPluginsVersions)
|
|
135
127
|
/**
|
|
136
|
-
*
|
|
128
|
+
* Gets list of Starter using the plugin
|
|
137
129
|
*/
|
|
138
130
|
starterUsingPlugin = this.query(getStarterUsesPlugin)
|
|
139
131
|
/**
|
|
140
|
-
*
|
|
132
|
+
* Gets list of PluginVersions used by Starter
|
|
141
133
|
*/
|
|
142
134
|
pluginVersionsUsedByStarter = this.query(getStarterStackVersionsAndPluginsVersions)
|
|
143
135
|
/**
|
|
144
|
-
*
|
|
136
|
+
* Gets list of Infrastructure using the plugin
|
|
145
137
|
*/
|
|
146
138
|
infrastructureUsingPlugin = this.query(getPluginInfrastructureView)
|
|
147
139
|
/**
|
|
148
|
-
*
|
|
140
|
+
* Gets list of PluginVersions used by Infrastructure
|
|
149
141
|
*/
|
|
150
142
|
pluginVersionsUsedByInfrastructure = this.query(getInfrastructureEnvironmentsUsesPlugin)
|
|
151
143
|
/**
|
|
152
|
-
*
|
|
144
|
+
* Gets list of Application using the plugin
|
|
153
145
|
*/
|
|
154
146
|
applicationUsingPlugin = this.query(getApplicationsUsesPlugin)
|
|
155
147
|
/**
|
|
156
|
-
*
|
|
148
|
+
* Gets list of PluginVersions used by Applications
|
|
157
149
|
*/
|
|
158
150
|
pluginVersionsUsedByApplication = this.query(getApplicationDetailsView)
|
|
159
151
|
/**
|
|
160
|
-
*
|
|
152
|
+
* Gets list of PluginVersions not used by any Content
|
|
161
153
|
*/
|
|
162
154
|
pluginVersionsNotInUse = this.query(getPluginVersionsNotInUse)
|
|
163
155
|
/**
|
|
@@ -185,6 +177,62 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
185
177
|
*/
|
|
186
178
|
deletePluginVersion = this.mutation(deletePluginVersion)
|
|
187
179
|
/**
|
|
180
|
+
* Gets Action by Slug and Studio
|
|
181
|
+
*/
|
|
182
|
+
action = this.query(getActionBySlug)
|
|
183
|
+
/**
|
|
184
|
+
* Gets all Versions of Action
|
|
185
|
+
*/
|
|
186
|
+
actionVersions = this.query(getAllActionVersions)
|
|
187
|
+
/**
|
|
188
|
+
* Gets Action by Action Version Id
|
|
189
|
+
*/
|
|
190
|
+
actionByActionVersionId = this.query(getActionVersionById)
|
|
191
|
+
/**
|
|
192
|
+
* Gets list of Actions
|
|
193
|
+
*/
|
|
194
|
+
actions = this.query(listActions1)
|
|
195
|
+
/**
|
|
196
|
+
* Get list of Actions in Stack
|
|
197
|
+
*/
|
|
198
|
+
actionsInStack = this.query(listActions)
|
|
199
|
+
/**
|
|
200
|
+
* Add Action to Stack Version
|
|
201
|
+
*/
|
|
202
|
+
addActionsToStackVersion = this.mutation(addAction)
|
|
203
|
+
/**
|
|
204
|
+
* Add Action to Plugin Version
|
|
205
|
+
*/
|
|
206
|
+
addActionsToPluginVersion = this.mutation(associateActionToPlugin)
|
|
207
|
+
/**
|
|
208
|
+
* Remove Action Version from Stack
|
|
209
|
+
*/
|
|
210
|
+
removeActionVersionFromStack = this.mutation(deleteAction)
|
|
211
|
+
/**
|
|
212
|
+
* Remove Action Version from Plugin
|
|
213
|
+
*/
|
|
214
|
+
removeActionVersionFromPlugin = this.mutation(removeActionFromPlugin)
|
|
215
|
+
/**
|
|
216
|
+
* Delete Action Version
|
|
217
|
+
*/
|
|
218
|
+
deleteActionVersion = this.mutation(deleteActionVersion)
|
|
219
|
+
/**
|
|
220
|
+
* Deprecate Action Version
|
|
221
|
+
*/
|
|
222
|
+
deprecateActionVersion = this.mutation(deprecateActionVersion)
|
|
223
|
+
/**
|
|
224
|
+
* Download Action Version
|
|
225
|
+
*/
|
|
226
|
+
downloadActionVersion = this.query(downloadAction)
|
|
227
|
+
/**
|
|
228
|
+
* Get Action Version range by Action Slug
|
|
229
|
+
*/
|
|
230
|
+
actionVersionRange = this.mutation(getAvailableActionVersionsByActionSlug)
|
|
231
|
+
/**
|
|
232
|
+
* Get Actions from Stack
|
|
233
|
+
*/
|
|
234
|
+
actionsFromStack = this.query(listActionsByFilters1)
|
|
235
|
+
/*
|
|
188
236
|
* Update starter
|
|
189
237
|
*/
|
|
190
238
|
updateStarter = this.mutation(patchStarterV2)
|