@stack-spot/portal-network 0.28.0-beta → 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/api/workspace.d.ts +216 -320
- package/dist/api/workspace.d.ts.map +1 -1
- package/dist/api/workspace.js +184 -255
- package/dist/api/workspace.js.map +1 -1
- package/dist/client/content.d.ts +130 -16
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +142 -16
- package/dist/client/content.js.map +1 -1
- package/dist/client/workspace.d.ts +24 -62
- package/dist/client/workspace.d.ts.map +1 -1
- package/dist/client/workspace.js +81 -118
- package/dist/client/workspace.js.map +1 -1
- package/package.json +1 -1
- package/src/api/workspace.ts +288 -497
- package/src/client/content.ts +73 -28
- package/src/client/workspace.ts +145 -177
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, listStacksByFilters,
|
|
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() {
|
|
@@ -100,19 +89,19 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
100
89
|
*/
|
|
101
90
|
stacksFromStudios = this.query(listStacksByFilters)
|
|
102
91
|
/**
|
|
103
|
-
*
|
|
92
|
+
* Gets usage summary of stack
|
|
104
93
|
*/
|
|
105
94
|
stackUsageSummary = this.query(stackModalViewSummary)
|
|
106
95
|
/**
|
|
107
|
-
*
|
|
96
|
+
* Gets list of Workspaces using the Stack
|
|
108
97
|
*/
|
|
109
98
|
workspacesUsingStack = this.query(getStackWorkspaces)
|
|
110
99
|
/**
|
|
111
|
-
*
|
|
100
|
+
* Gets list StackVersions used by Workspace
|
|
112
101
|
*/
|
|
113
102
|
stackVersionsUsedByWorkspace = this.query(getStackWorkspaceDetailView)
|
|
114
103
|
/**
|
|
115
|
-
*
|
|
104
|
+
* Gets list of StackVersions not used by any Content
|
|
116
105
|
*/
|
|
117
106
|
stackVersionsNotInUse = this.query(getUnusedStackVersions)
|
|
118
107
|
/**
|
|
@@ -120,47 +109,47 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
120
109
|
*/
|
|
121
110
|
pluginUsageSummary = this.query(getPluginModalView)
|
|
122
111
|
/**
|
|
123
|
-
*
|
|
112
|
+
* Gets list of Stacks using the plugin
|
|
124
113
|
*/
|
|
125
114
|
stacksUsingPlugin = this.query(getStackUsesPlugin)
|
|
126
115
|
/**
|
|
127
|
-
*
|
|
116
|
+
* Gets list of PluginVersions used by Stack
|
|
128
117
|
*/
|
|
129
118
|
pluginVersionsUsedByStack = this.query(getPluginVersions)
|
|
130
119
|
/**
|
|
131
|
-
*
|
|
120
|
+
* Gets list of Plugin that requires the plugin
|
|
132
121
|
*/
|
|
133
122
|
pluginsRequiresPlugin = this.query(getGetPluginView)
|
|
134
123
|
/**
|
|
135
|
-
*
|
|
124
|
+
* Gets list of PluginVersions used by Plugin
|
|
136
125
|
*/
|
|
137
126
|
pluginVersionsUsedByPlugin = this.query(getDependentPluginsVersions)
|
|
138
127
|
/**
|
|
139
|
-
*
|
|
128
|
+
* Gets list of Starter using the plugin
|
|
140
129
|
*/
|
|
141
130
|
starterUsingPlugin = this.query(getStarterUsesPlugin)
|
|
142
131
|
/**
|
|
143
|
-
*
|
|
132
|
+
* Gets list of PluginVersions used by Starter
|
|
144
133
|
*/
|
|
145
134
|
pluginVersionsUsedByStarter = this.query(getStarterStackVersionsAndPluginsVersions)
|
|
146
135
|
/**
|
|
147
|
-
*
|
|
136
|
+
* Gets list of Infrastructure using the plugin
|
|
148
137
|
*/
|
|
149
138
|
infrastructureUsingPlugin = this.query(getPluginInfrastructureView)
|
|
150
139
|
/**
|
|
151
|
-
*
|
|
140
|
+
* Gets list of PluginVersions used by Infrastructure
|
|
152
141
|
*/
|
|
153
142
|
pluginVersionsUsedByInfrastructure = this.query(getInfrastructureEnvironmentsUsesPlugin)
|
|
154
143
|
/**
|
|
155
|
-
*
|
|
144
|
+
* Gets list of Application using the plugin
|
|
156
145
|
*/
|
|
157
146
|
applicationUsingPlugin = this.query(getApplicationsUsesPlugin)
|
|
158
147
|
/**
|
|
159
|
-
*
|
|
148
|
+
* Gets list of PluginVersions used by Applications
|
|
160
149
|
*/
|
|
161
150
|
pluginVersionsUsedByApplication = this.query(getApplicationDetailsView)
|
|
162
151
|
/**
|
|
163
|
-
*
|
|
152
|
+
* Gets list of PluginVersions not used by any Content
|
|
164
153
|
*/
|
|
165
154
|
pluginVersionsNotInUse = this.query(getPluginVersionsNotInUse)
|
|
166
155
|
/**
|
|
@@ -188,6 +177,62 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
188
177
|
*/
|
|
189
178
|
deletePluginVersion = this.mutation(deletePluginVersion)
|
|
190
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
|
+
/*
|
|
191
236
|
* Update starter
|
|
192
237
|
*/
|
|
193
238
|
updateStarter = this.mutation(patchStarterV2)
|