@stack-spot/portal-network 0.29.0 → 0.30.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 +8 -0
- package/dist/api/workspace.d.ts +320 -216
- package/dist/api/workspace.d.ts.map +1 -1
- package/dist/api/workspace.js +255 -184
- package/dist/api/workspace.js.map +1 -1
- package/dist/client/workspace-manager.d.ts +30 -0
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +37 -1
- package/dist/client/workspace-manager.js.map +1 -1
- package/dist/client/workspace.d.ts +76 -24
- package/dist/client/workspace.d.ts.map +1 -1
- package/dist/client/workspace.js +136 -81
- package/dist/client/workspace.js.map +1 -1
- package/package.json +1 -1
- package/src/api/workspace.ts +497 -288
- package/src/client/workspace-manager.ts +20 -1
- package/src/client/workspace.ts +187 -145
|
@@ -15,6 +15,10 @@ import {
|
|
|
15
15
|
upsertPluginAccountContext,
|
|
16
16
|
getConsolidatedPluginInputsWithConnectionInterfaces,
|
|
17
17
|
listWorkflowByStackIdAndWorkflowType,
|
|
18
|
+
getApplicationLinks,
|
|
19
|
+
getApplicationLinks1,
|
|
20
|
+
addStacksInWorkspace,
|
|
21
|
+
deleteStacksInWorkspace,
|
|
18
22
|
} from '../api/workspaceManager'
|
|
19
23
|
import apis from '../apis.json'
|
|
20
24
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
@@ -46,6 +50,14 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
|
|
|
46
50
|
return workspaceStacksPermission && contentStacksPermission
|
|
47
51
|
},
|
|
48
52
|
})
|
|
53
|
+
/**
|
|
54
|
+
* Add a stack in a workspace
|
|
55
|
+
*/
|
|
56
|
+
addStackToWorkspace = this.mutation(addStacksInWorkspace)
|
|
57
|
+
/**
|
|
58
|
+
* Removes a stack from a workspace
|
|
59
|
+
*/
|
|
60
|
+
removeStackFromWorkspace = this.mutation(deleteStacksInWorkspace)
|
|
49
61
|
/**
|
|
50
62
|
* Gets inputs from a plugin in a workspace stack
|
|
51
63
|
*/
|
|
@@ -98,7 +110,14 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
|
|
|
98
110
|
permission: async ({ stackVersionId, pluginVersionId }: Parameters<typeof upsertPluginAccountContext>[0]) =>
|
|
99
111
|
workspaceClient.saveContextInAccount.isAllowed({ $type: 'plugin', stackVersionId, externalId: pluginVersionId }),
|
|
100
112
|
})
|
|
101
|
-
|
|
113
|
+
/**
|
|
114
|
+
* Gets links in a shared infra for a given env
|
|
115
|
+
*/
|
|
116
|
+
sharedInfraLinks = this.query(getApplicationLinks)
|
|
117
|
+
/**
|
|
118
|
+
* Gets links in an application for a given env
|
|
119
|
+
*/
|
|
120
|
+
applicationLinks = this.query(getApplicationLinks1)
|
|
102
121
|
/**
|
|
103
122
|
* Gets applied plugins in shared infra
|
|
104
123
|
*/
|
package/src/client/workspace.ts
CHANGED
|
@@ -1,66 +1,79 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
1
2
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
3
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
accountVariableControllercreate,
|
|
5
|
+
accountVariableControllerdelete,
|
|
6
|
+
accountVariableControllerfindAll,
|
|
7
|
+
accountVariableControllerfindByName,
|
|
8
|
+
accountVariableControllerupdate,
|
|
9
|
+
accountVariableControllerusage,
|
|
10
|
+
applicationControllergetApplication,
|
|
11
|
+
applicationControllergetApplications,
|
|
12
|
+
applicationControllergetDependencyTree,
|
|
13
|
+
applicationControllerupdate,
|
|
14
|
+
applicationEmbeddedLinkControllerdelete,
|
|
15
|
+
applicationEmbeddedLinkControllergetEmbeddedLink,
|
|
16
|
+
applicationEmbeddedLinkControllergetEmbeddedLinks,
|
|
17
|
+
applicationEmbeddedLinkControllersave,
|
|
18
|
+
applicationEmbeddedLinkControllerupdate,
|
|
19
|
+
applicationEmbeddedLinkControllerupsertBatch,
|
|
20
|
+
applicationLinkControllerdelete,
|
|
21
|
+
applicationLinkControllergetApplicationLink,
|
|
22
|
+
applicationLinkControllersave,
|
|
23
|
+
applicationLinkControllerupdate,
|
|
24
|
+
applicationLinkControllerupdateLinksVisibility,
|
|
25
|
+
availableConnectionInterfaceV2ControllergetAvailableConnectionInterfaceForAnApplication,
|
|
26
|
+
availableConnectionInterfaceV2ControllergetAvailableConnectionInterfaceForAWorkspace,
|
|
27
|
+
checkConnectionSlugAvailabilityControllercheckConnectionSlugAvailability,
|
|
28
|
+
connectionInterfaceControllerdeleteConnectionInterfaceAttributesFromEnvironment,
|
|
29
|
+
connectionInterfaceControllerdeleteConnectionInterfaceFromAllEnvironments,
|
|
30
|
+
connectionInterfaceControllergetConnectionInterface,
|
|
31
|
+
connectionInterfaceControllergetConnectionInterfaces,
|
|
32
|
+
connectionInterfaceControllerupdateConnectionInterfaceAttributes,
|
|
33
|
+
connectionInterfaceControllerupdateConnectionInterfaceVisibility,
|
|
34
|
+
contextControlleraddTypedContextInAccount,
|
|
35
|
+
contextControlleraddTypedContextInWorkspace,
|
|
36
|
+
contextControllerlistAccountContext,
|
|
37
|
+
contextControllerlistConsolidatedContext,
|
|
5
38
|
defaults,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
save4,
|
|
43
|
-
save7,
|
|
44
|
-
save8 as saveApplicationEmbeddedLinks,
|
|
45
|
-
save9 as saveEnvironment,
|
|
46
|
-
update,
|
|
47
|
-
update1,
|
|
48
|
-
update2,
|
|
49
|
-
update3,
|
|
50
|
-
update6,
|
|
51
|
-
update7,
|
|
52
|
-
upsertBatch2 as updateAllApplicationEmbeddedLinks,
|
|
53
|
-
upsertBatch1 as updateAllEmbeddedLink,
|
|
54
|
-
update8 as updateApplicationEmbeddedLinks,
|
|
55
|
-
updateConnectionInterfaceAttributes,
|
|
56
|
-
updateConnectionInterfaceVisibility,
|
|
57
|
-
update5 as updateEmbeddedLink,
|
|
58
|
-
update9 as updateEnvironment,
|
|
59
|
-
updateLinksVisibility,
|
|
60
|
-
updateLinksVisibility1,
|
|
61
|
-
addTypedContextInWorkspace,
|
|
62
|
-
addTypedContextInAccount,
|
|
39
|
+
environmentControllergetEnvironment,
|
|
40
|
+
environmentControllergetEnvironments,
|
|
41
|
+
environmentControllersave,
|
|
42
|
+
environmentControllerupdate,
|
|
43
|
+
sharedInfraLinkControllerdelete,
|
|
44
|
+
sharedInfraLinkControllergetSharedInfraLink,
|
|
45
|
+
sharedInfraLinkControllersave,
|
|
46
|
+
sharedInfraLinkControllerupdate,
|
|
47
|
+
sharedInfraLinkControllerupdateLinksVisibility,
|
|
48
|
+
sharedInfrastructureControllergetAllSharedInfrastructure,
|
|
49
|
+
sharedInfrastructureControllergetDependencyTree,
|
|
50
|
+
sharedInfrastructureControllergetSharedInfrastructure,
|
|
51
|
+
sharedInfrastructureControllerupdate,
|
|
52
|
+
workflowAccountControllerdeleteAccountWorkflow,
|
|
53
|
+
workflowAccountControllerlistAccountWorkflows,
|
|
54
|
+
workflowWorkspaceControllerlistWorkflowByStackIdAndWorkflowType,
|
|
55
|
+
workspaceControllergetWorkspaceForId,
|
|
56
|
+
workspaceControllergetWorkspaces,
|
|
57
|
+
workspaceControllergetWorkspacesFromUserPermission,
|
|
58
|
+
workspaceControllersave,
|
|
59
|
+
workspaceControllerupdate,
|
|
60
|
+
workspaceEmbeddedLinkControllerdelete,
|
|
61
|
+
workspaceEmbeddedLinkControllergetEmbeddedLink,
|
|
62
|
+
workspaceEmbeddedLinkControllergetEmbeddedLinks,
|
|
63
|
+
workspaceEmbeddedLinkControllersave,
|
|
64
|
+
workspaceEmbeddedLinkControllerupdate,
|
|
65
|
+
workspaceEmbeddedLinkControllerupsertBatch,
|
|
66
|
+
workspaceLinkControllerdelete,
|
|
67
|
+
workspaceLinkControllergetWorkspaceLinks,
|
|
68
|
+
workspaceLinkControllersave,
|
|
69
|
+
workspaceStackControlleraddStack,
|
|
70
|
+
workspaceStackControllerdeleteStack,
|
|
71
|
+
workspaceStackControllergetStacks,
|
|
72
|
+
workspaceVariableV2ControllerfindAll,
|
|
73
|
+
workspaceVariableV2ControllerfindByName,
|
|
74
|
+
workspaceVariableV2Controllerupsert,
|
|
63
75
|
} from '../api/workspace'
|
|
76
|
+
|
|
64
77
|
import apis from '../apis.json'
|
|
65
78
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
66
79
|
import { workspaceDictionary } from '../error/dictionary/workspace'
|
|
@@ -80,299 +93,328 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
80
93
|
/**
|
|
81
94
|
* Gets all connection interfaces from a workspace
|
|
82
95
|
*/
|
|
83
|
-
allConnectionInterfaces = this.query(
|
|
96
|
+
allConnectionInterfaces = this.query(connectionInterfaceControllergetConnectionInterfaces)
|
|
84
97
|
|
|
85
98
|
/**
|
|
86
99
|
* Gets a connection interface from a workspace
|
|
87
100
|
*/
|
|
88
|
-
connectionInterface = this.query(
|
|
101
|
+
connectionInterface = this.query(connectionInterfaceControllergetConnectionInterface)
|
|
89
102
|
/**
|
|
90
103
|
* Get available connection interface for a workspace by connection interface slug
|
|
91
104
|
*/
|
|
92
|
-
workspaceAvailableConnInterfaceBySlug = this.query(
|
|
105
|
+
workspaceAvailableConnInterfaceBySlug = this.query(availableConnectionInterfaceV2ControllergetAvailableConnectionInterfaceForAWorkspace)
|
|
93
106
|
/**
|
|
94
107
|
* Get available connection interface for an application by connection interface slug
|
|
95
108
|
*/
|
|
96
|
-
applicationAvailableConnInterface = this.query(
|
|
109
|
+
applicationAvailableConnInterface = this.query(availableConnectionInterfaceV2ControllergetAvailableConnectionInterfaceForAnApplication)
|
|
97
110
|
/**
|
|
98
111
|
* Updates the visibility of a connection interface
|
|
99
112
|
*/
|
|
100
|
-
updateConnectionInterfaceVisibility = this.mutation(
|
|
113
|
+
updateConnectionInterfaceVisibility = this.mutation(connectionInterfaceControllerupdateConnectionInterfaceVisibility)
|
|
101
114
|
|
|
102
115
|
/**
|
|
103
116
|
* Removes a connection interface
|
|
104
117
|
*/
|
|
105
|
-
deleteConnectionInterface = this.mutation(
|
|
118
|
+
deleteConnectionInterface = this.mutation(connectionInterfaceControllerdeleteConnectionInterfaceFromAllEnvironments)
|
|
106
119
|
|
|
107
120
|
/**
|
|
108
121
|
* Removes connection interface attributes by environment
|
|
109
122
|
*/
|
|
110
|
-
deleteConnectionInterfaceAttributesFromEnvironment = this.mutation(
|
|
111
|
-
|
|
123
|
+
deleteConnectionInterfaceAttributesFromEnvironment = this.mutation(connectionInterfaceControllerdeleteConnectionInterfaceAttributesFromEnvironment)
|
|
124
|
+
|
|
112
125
|
/**
|
|
113
126
|
* Updates the attributes of a connection interface
|
|
114
127
|
*/
|
|
115
|
-
updateConnectionInterfaceAttributes = this.mutation(
|
|
128
|
+
updateConnectionInterfaceAttributes = this.mutation(connectionInterfaceControllerupdateConnectionInterfaceAttributes)
|
|
116
129
|
/**
|
|
117
130
|
* Checks the availability of a connection interface slug.
|
|
118
131
|
*/
|
|
119
|
-
checkConnectionInterfaceAvailability = this.query(
|
|
132
|
+
checkConnectionInterfaceAvailability = this.query(checkConnectionSlugAvailabilityControllercheckConnectionSlugAvailability)
|
|
120
133
|
|
|
121
134
|
/**
|
|
122
135
|
* Gets all environments
|
|
123
136
|
*/
|
|
124
|
-
environments = this.query(
|
|
137
|
+
environments = this.query(environmentControllergetEnvironments)
|
|
125
138
|
|
|
126
139
|
/**
|
|
127
140
|
* Gets environment by Id
|
|
128
141
|
*/
|
|
129
|
-
environment = this.query(
|
|
142
|
+
environment = this.query(environmentControllergetEnvironment)
|
|
130
143
|
|
|
131
144
|
/**
|
|
132
145
|
* Creates an environment
|
|
133
146
|
*/
|
|
134
|
-
createEnvironment = this.mutation(
|
|
147
|
+
createEnvironment = this.mutation(environmentControllersave)
|
|
135
148
|
|
|
136
149
|
/**
|
|
137
150
|
* Updates environment data
|
|
138
151
|
*/
|
|
139
|
-
updateEnvironment = this.mutation(
|
|
152
|
+
updateEnvironment = this.mutation(environmentControllerupdate)
|
|
140
153
|
|
|
141
154
|
/**
|
|
142
155
|
* Gets embedded link by id
|
|
143
156
|
*/
|
|
144
|
-
embeddedLinkInWorkspace = this.query(
|
|
157
|
+
embeddedLinkInWorkspace = this.query(workspaceEmbeddedLinkControllergetEmbeddedLink)
|
|
145
158
|
|
|
146
159
|
/**
|
|
147
160
|
* Gets all embedded links from a workspace
|
|
148
161
|
*/
|
|
149
|
-
allEmbeddedLinksInWorkspace = this.query(
|
|
150
|
-
|
|
162
|
+
allEmbeddedLinksInWorkspace = this.query(workspaceEmbeddedLinkControllergetEmbeddedLinks)
|
|
163
|
+
|
|
151
164
|
/**
|
|
152
165
|
* Creates an embedded link in a workspace
|
|
153
166
|
*/
|
|
154
|
-
createEmbeddedLinkInWorkspace = this.mutation(
|
|
155
|
-
|
|
167
|
+
createEmbeddedLinkInWorkspace = this.mutation(workspaceEmbeddedLinkControllersave)
|
|
168
|
+
|
|
156
169
|
/**
|
|
157
170
|
* Deletes an embedded link from a workspace
|
|
158
171
|
*/
|
|
159
|
-
deleteEmbeddedLinkFromWorkspace = this.mutation(
|
|
160
|
-
|
|
172
|
+
deleteEmbeddedLinkFromWorkspace = this.mutation(workspaceEmbeddedLinkControllerdelete)
|
|
173
|
+
|
|
161
174
|
/**
|
|
162
175
|
* Updates an embedded link from a workspace
|
|
163
176
|
*/
|
|
164
|
-
updateEmbeddedLinkInWorkspace = this.mutation(
|
|
165
|
-
|
|
177
|
+
updateEmbeddedLinkInWorkspace = this.mutation(workspaceEmbeddedLinkControllerupdate)
|
|
178
|
+
|
|
166
179
|
/**
|
|
167
180
|
* Updates all embedded links from a workspace
|
|
168
181
|
*/
|
|
169
|
-
updateAllEmbeddedLinksInWorkspace = this.mutation(
|
|
170
|
-
|
|
182
|
+
updateAllEmbeddedLinksInWorkspace = this.mutation(workspaceEmbeddedLinkControllerupsertBatch)
|
|
183
|
+
|
|
171
184
|
/**
|
|
172
185
|
* Gets an embedded link from an application
|
|
173
186
|
*/
|
|
174
|
-
embeddedLinkInApplication = this.query(
|
|
187
|
+
embeddedLinkInApplication = this.query(applicationEmbeddedLinkControllergetEmbeddedLink)
|
|
175
188
|
|
|
176
189
|
/**
|
|
177
190
|
* Gets all embedded links from an application
|
|
178
191
|
*/
|
|
179
|
-
allEmbeddedLinksInApplication = this.query(
|
|
180
|
-
|
|
192
|
+
allEmbeddedLinksInApplication = this.query(applicationEmbeddedLinkControllergetEmbeddedLinks)
|
|
193
|
+
|
|
181
194
|
/**
|
|
182
195
|
* Creates an embedded link in an application
|
|
183
196
|
*/
|
|
184
|
-
createEmbeddedLinkInApplication = this.mutation(
|
|
197
|
+
createEmbeddedLinkInApplication = this.mutation(applicationEmbeddedLinkControllersave)
|
|
185
198
|
|
|
186
199
|
/**
|
|
187
200
|
* Deletes an embedded link from an application
|
|
188
201
|
*/
|
|
189
|
-
deleteEmbeddedLinkFromApplication = this.mutation(
|
|
202
|
+
deleteEmbeddedLinkFromApplication = this.mutation(applicationEmbeddedLinkControllerdelete)
|
|
190
203
|
|
|
191
204
|
/**
|
|
192
205
|
* Updates an embedded link in an application
|
|
193
206
|
*/
|
|
194
|
-
updateEmbeddedLinkInApplication = this.mutation(
|
|
195
|
-
|
|
207
|
+
updateEmbeddedLinkInApplication = this.mutation(applicationEmbeddedLinkControllerupdate)
|
|
208
|
+
|
|
196
209
|
/**
|
|
197
210
|
* Updates all embedded links in an application
|
|
198
211
|
*/
|
|
199
|
-
updateAllEmbeddedLinksInApplication = this.mutation(
|
|
200
|
-
|
|
212
|
+
updateAllEmbeddedLinksInApplication = this.mutation(applicationEmbeddedLinkControllerupsertBatch)
|
|
213
|
+
|
|
201
214
|
/**
|
|
202
215
|
* Gets all workspaces
|
|
203
216
|
*/
|
|
204
|
-
workspaces = this.query(
|
|
217
|
+
workspaces = this.query(workspaceControllergetWorkspaces)
|
|
205
218
|
|
|
206
219
|
/**
|
|
207
220
|
* Gets a workspace
|
|
208
221
|
*/
|
|
209
|
-
workspace = this.query(
|
|
222
|
+
workspace = this.query(workspaceControllergetWorkspaceForId)
|
|
210
223
|
/**
|
|
211
224
|
* Get workspaces within user permission
|
|
212
225
|
*/
|
|
213
|
-
workspacesFromUserPermission = this.query(
|
|
226
|
+
workspacesFromUserPermission = this.query(workspaceControllergetWorkspacesFromUserPermission)
|
|
214
227
|
|
|
215
228
|
/**
|
|
216
229
|
* Creates a workspace
|
|
217
230
|
*/
|
|
218
|
-
createWorkspace = this.mutation(
|
|
231
|
+
createWorkspace = this.mutation(workspaceControllersave)
|
|
219
232
|
|
|
220
233
|
/**
|
|
221
234
|
* Updates a workspace
|
|
222
235
|
*/
|
|
223
|
-
updateWorkspace = this.mutation(
|
|
224
|
-
|
|
236
|
+
updateWorkspace = this.mutation(workspaceControllerupdate)
|
|
237
|
+
|
|
225
238
|
//App and infra
|
|
226
239
|
/**
|
|
227
240
|
* Gets all applications in a Workspace
|
|
228
241
|
*/
|
|
229
|
-
applications = this.query(
|
|
242
|
+
applications = this.query(applicationControllergetApplications)
|
|
230
243
|
/**
|
|
231
244
|
* Gets an application
|
|
232
245
|
*/
|
|
233
|
-
application = this.query(
|
|
246
|
+
application = this.query(applicationControllergetApplication)
|
|
234
247
|
|
|
235
248
|
/**
|
|
236
249
|
* Gets the dependencies of an application
|
|
237
250
|
*/
|
|
238
|
-
applicationDependencies = this.query(
|
|
251
|
+
applicationDependencies = this.query(applicationControllergetDependencyTree)
|
|
239
252
|
/**
|
|
240
253
|
* Gets all shared infra in a Workspace
|
|
241
254
|
*/
|
|
242
|
-
allSharedInfra = this.query(
|
|
255
|
+
allSharedInfra = this.query(sharedInfrastructureControllergetAllSharedInfrastructure)
|
|
243
256
|
/**
|
|
244
257
|
* Gets a shared infra
|
|
245
258
|
*/
|
|
246
|
-
sharedInfra = this.query(
|
|
259
|
+
sharedInfra = this.query(sharedInfrastructureControllergetSharedInfrastructure)
|
|
247
260
|
|
|
248
261
|
/**
|
|
249
262
|
* Gets the dependencies of a shared infra
|
|
250
263
|
*/
|
|
251
|
-
sharedInfraDependencies = this.query(
|
|
252
|
-
|
|
264
|
+
sharedInfraDependencies = this.query(sharedInfrastructureControllergetDependencyTree)
|
|
265
|
+
|
|
253
266
|
/**
|
|
254
267
|
* Updates an application
|
|
255
268
|
*/
|
|
256
|
-
updateApplication = this.mutation(
|
|
269
|
+
updateApplication = this.mutation(applicationControllerupdate)
|
|
257
270
|
|
|
258
271
|
/**
|
|
259
272
|
* Updates a shared infra
|
|
260
273
|
*/
|
|
261
|
-
updateInfra = this.mutation(
|
|
274
|
+
updateInfra = this.mutation(sharedInfrastructureControllerupdate)
|
|
262
275
|
|
|
263
276
|
// Workflow
|
|
264
277
|
/**
|
|
265
278
|
* Gets a workflow by stack id
|
|
266
279
|
*/
|
|
267
|
-
workflowsByStackId = this.query(
|
|
280
|
+
workflowsByStackId = this.query(workflowWorkspaceControllerlistWorkflowByStackIdAndWorkflowType)
|
|
268
281
|
/**
|
|
269
282
|
* Gets account workflows
|
|
270
283
|
*/
|
|
271
|
-
accountWorkflows = this.query(
|
|
284
|
+
accountWorkflows = this.query(workflowAccountControllerlistAccountWorkflows)
|
|
272
285
|
/**
|
|
273
286
|
* Gets workflows from a stack
|
|
274
287
|
*/
|
|
275
|
-
stackWorkflows = this.query(
|
|
288
|
+
stackWorkflows = this.query(workflowWorkspaceControllerlistWorkflowByStackIdAndWorkflowType)
|
|
276
289
|
/**
|
|
277
290
|
* Removes account workflow
|
|
278
291
|
*/
|
|
279
|
-
deleteAccountWorkflow = this.mutation(
|
|
292
|
+
deleteAccountWorkflow = this.mutation(workflowAccountControllerdeleteAccountWorkflow)
|
|
280
293
|
|
|
281
|
-
//
|
|
294
|
+
// Variables Account
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Find all account variables
|
|
298
|
+
*/
|
|
299
|
+
accountVariables = this.query(accountVariableControllerfindAll)
|
|
282
300
|
/**
|
|
283
|
-
*
|
|
301
|
+
* Get an account variable by name
|
|
284
302
|
*/
|
|
285
|
-
|
|
303
|
+
getAccountVariable = this.query(accountVariableControllerfindByName)
|
|
286
304
|
/**
|
|
287
|
-
*
|
|
305
|
+
* Get account variable usage
|
|
288
306
|
*/
|
|
289
|
-
|
|
307
|
+
accountVariableUsage = this.query(accountVariableControllerusage)
|
|
290
308
|
/**
|
|
291
|
-
*
|
|
309
|
+
* Create account variable
|
|
292
310
|
*/
|
|
293
|
-
|
|
311
|
+
createAccountVariable = this.mutation(accountVariableControllercreate)
|
|
294
312
|
/**
|
|
295
|
-
*
|
|
313
|
+
* Update account variable
|
|
296
314
|
*/
|
|
297
|
-
|
|
315
|
+
updateAccountVariable = this.mutation(accountVariableControllerupdate)
|
|
298
316
|
/**
|
|
299
|
-
*
|
|
317
|
+
* Delete account variable
|
|
300
318
|
*/
|
|
301
|
-
|
|
319
|
+
deleteAccountVariable = this.mutation(accountVariableControllerdelete)
|
|
320
|
+
|
|
321
|
+
// Variables Workspace
|
|
302
322
|
|
|
323
|
+
/**
|
|
324
|
+
* Find all workspace variables
|
|
325
|
+
*/
|
|
326
|
+
workspaceVariables = this.query(workspaceVariableV2ControllerfindAll)
|
|
327
|
+
/**
|
|
328
|
+
* Get a workspace variable by name
|
|
329
|
+
*/
|
|
330
|
+
getWorkspaceVariable = this.query(workspaceVariableV2ControllerfindByName)
|
|
331
|
+
/**
|
|
332
|
+
* Updates workspace variable based on existing account variable
|
|
333
|
+
*/
|
|
334
|
+
updateWorkspaceVariable = this.mutation(workspaceVariableV2Controllerupsert)
|
|
335
|
+
|
|
303
336
|
//Links
|
|
304
337
|
/**
|
|
305
338
|
* Gets shared infra links
|
|
306
339
|
*/
|
|
307
|
-
linksInWorkspace = this.query(
|
|
340
|
+
linksInWorkspace = this.query(workspaceLinkControllergetWorkspaceLinks)
|
|
308
341
|
/**
|
|
309
342
|
* Adds a link to a workspace
|
|
310
343
|
*/
|
|
311
|
-
addLinkInWorkspace = this.mutation(
|
|
344
|
+
addLinkInWorkspace = this.mutation(workspaceLinkControllersave)
|
|
312
345
|
/**
|
|
313
346
|
* Deletes a link from a workspace
|
|
314
347
|
*/
|
|
315
|
-
removeLinkFromWorkspace = this.mutation(
|
|
348
|
+
removeLinkFromWorkspace = this.mutation(workspaceLinkControllerdelete)
|
|
316
349
|
/**
|
|
317
350
|
* Gets application link
|
|
318
351
|
*/
|
|
319
|
-
linkInApplication = this.query(
|
|
352
|
+
linkInApplication = this.query(applicationLinkControllergetApplicationLink)
|
|
320
353
|
/**
|
|
321
354
|
* Adds a link to an application
|
|
322
355
|
*/
|
|
323
|
-
addLinkInApplication = this.mutation(
|
|
356
|
+
addLinkInApplication = this.mutation(applicationLinkControllersave)
|
|
324
357
|
/**
|
|
325
358
|
* Deletes a link from an application
|
|
326
359
|
*/
|
|
327
|
-
removeLinkFromApplication = this.mutation(
|
|
360
|
+
removeLinkFromApplication = this.mutation(applicationLinkControllerdelete)
|
|
328
361
|
/**
|
|
329
362
|
* Updates a link from an application
|
|
330
363
|
*/
|
|
331
|
-
updateLinkInApplication = this.mutation(
|
|
364
|
+
updateLinkInApplication = this.mutation(applicationLinkControllerupdate)
|
|
332
365
|
/**
|
|
333
366
|
* Updates application links visibility
|
|
334
367
|
*/
|
|
335
|
-
updateLinkVisibilityInApplication = this.mutation(
|
|
368
|
+
updateLinkVisibilityInApplication = this.mutation(applicationLinkControllerupdateLinksVisibility)
|
|
336
369
|
/**
|
|
337
370
|
* Gets shared infra link
|
|
338
371
|
*/
|
|
339
|
-
linkInInfra = this.query(
|
|
372
|
+
linkInInfra = this.query(sharedInfraLinkControllergetSharedInfraLink)
|
|
340
373
|
/**
|
|
341
374
|
* Adds a link to an infra
|
|
342
375
|
*/
|
|
343
|
-
addLinkInInfra = this.mutation(
|
|
376
|
+
addLinkInInfra = this.mutation(sharedInfraLinkControllersave)
|
|
344
377
|
/**
|
|
345
378
|
* Deletes a link from an infra
|
|
346
379
|
*/
|
|
347
|
-
removeLinkFromInfra = this.mutation(
|
|
380
|
+
removeLinkFromInfra = this.mutation(sharedInfraLinkControllerdelete)
|
|
348
381
|
/**
|
|
349
382
|
* Updates a link from an infra
|
|
350
383
|
*/
|
|
351
|
-
updateLinkInInfra = this.mutation(
|
|
384
|
+
updateLinkInInfra = this.mutation(sharedInfraLinkControllerupdate)
|
|
352
385
|
/**
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
updateLinkVisibilityInInfra = this.mutation(
|
|
386
|
+
* Updates infra links visibility
|
|
387
|
+
*/
|
|
388
|
+
updateLinkVisibilityInInfra = this.mutation(sharedInfraLinkControllerupdateLinksVisibility)
|
|
389
|
+
|
|
356
390
|
/**
|
|
357
391
|
* Gets stacks in a workspace. This fn is only used for permission purposes.
|
|
358
392
|
*/
|
|
359
|
-
stacks = this.query(
|
|
393
|
+
stacks = this.query(workspaceStackControllergetStacks) as OperationObject<Parameters<typeof workspaceStackControllergetStacks>[0]>
|
|
360
394
|
/**
|
|
361
395
|
* List workspace context inputs for a plugin or action in a stack. This fn is only used for permission purposes.
|
|
362
396
|
*/
|
|
363
|
-
listConsolidatedWorkspaceContext = this.query(
|
|
397
|
+
listConsolidatedWorkspaceContext = this.query(contextControllerlistConsolidatedContext) as OperationObject<Parameters<typeof contextControllerlistConsolidatedContext>[0]>
|
|
364
398
|
/**
|
|
365
399
|
* List account context inputs for a plugin or action in a stack. This fn is only used for permission purposes.
|
|
366
400
|
*/
|
|
367
|
-
listConsolidatedContext = this.query(
|
|
401
|
+
listConsolidatedContext = this.query(contextControllerlistAccountContext) as OperationObject<Parameters<typeof contextControllerlistAccountContext>[0]>
|
|
368
402
|
/**
|
|
369
403
|
* Save workspace context inputs for a plugin or action in a stack. This fn is only used for permission purposes.
|
|
370
404
|
*/
|
|
371
|
-
saveContextInWorkspace = this.query(
|
|
405
|
+
saveContextInWorkspace = this.query(contextControlleraddTypedContextInWorkspace) as OperationObject<Parameters<typeof contextControlleraddTypedContextInWorkspace>[0]>
|
|
406
|
+
/**
|
|
407
|
+
* Save workspace context inputs for a plugin or action in the account. This fn is only used for permission purposes.
|
|
408
|
+
*/
|
|
409
|
+
saveContextInAccount = this.query(contextControlleraddTypedContextInAccount) as OperationObject<Parameters<typeof contextControlleraddTypedContextInAccount>[0]>
|
|
372
410
|
/**
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
411
|
+
* Add stack to workspace. This fn is only used for permission purposes.
|
|
412
|
+
*/
|
|
413
|
+
addStackInWorkspace = this.query(workspaceStackControlleraddStack) as OperationObject<Parameters<typeof workspaceStackControlleraddStack>[0]>
|
|
414
|
+
/**
|
|
415
|
+
* Removes a stack from a workspace. This fn is only used for permission purposes.
|
|
416
|
+
*/
|
|
417
|
+
removeStackFromWorkspace = this.query(workspaceStackControllerdeleteStack) as OperationObject<Parameters<typeof workspaceStackControllerdeleteStack>[0]>
|
|
376
418
|
}
|
|
377
419
|
|
|
378
420
|
export const workspaceClient = new WorkspaceClient()
|