@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/workspace.ts
CHANGED
|
@@ -1,77 +1,66 @@
|
|
|
1
|
-
/* eslint-disable max-len */
|
|
2
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
3
2
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
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,
|
|
3
|
+
checkConnectionSlugAvailability,
|
|
4
|
+
save5 as createEmbeddedLink,
|
|
38
5
|
defaults,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
6
|
+
delete1,
|
|
7
|
+
delete2,
|
|
8
|
+
delete3,
|
|
9
|
+
delete5,
|
|
10
|
+
deleteAccountWorkflow,
|
|
11
|
+
delete6 as deleteApplicationEmbeddedLinks,
|
|
12
|
+
deleteConnectionInterfaceAttributesFromEnvironment, deleteConnectionInterfaceFromAllEnvironments,
|
|
13
|
+
delete4 as deleteEmbeddedLink,
|
|
14
|
+
findAll,
|
|
15
|
+
getEmbeddedLinks1 as getAllApplicationEmbeddedLinks,
|
|
16
|
+
getAllSharedInfrastructure,
|
|
17
|
+
getApplication,
|
|
18
|
+
getEmbeddedLink1 as getApplicationEmbeddedLinks,
|
|
19
|
+
getApplicationLink,
|
|
20
|
+
getApplications,
|
|
21
|
+
getAvailableConnectionInterfaceForAnApplication,
|
|
22
|
+
getAvailableConnectionInterfaceForAWorkspace,
|
|
23
|
+
getConnectionInterface, getConnectionInterfaces,
|
|
24
|
+
getDependencyTree,
|
|
25
|
+
getDependencyTree1,
|
|
26
|
+
getEmbeddedLink, getEmbeddedLinks, getEnvironment, getEnvironments,
|
|
27
|
+
getSharedInfraLink,
|
|
28
|
+
getSharedInfrastructure,
|
|
29
|
+
getStacks,
|
|
30
|
+
getV1WorkspacesByWorkspaceIdVariablesAndName,
|
|
31
|
+
getWorkspaceForId,
|
|
32
|
+
getWorkspaceLinks,
|
|
33
|
+
getWorkspaces,
|
|
34
|
+
getWorkspacesFromUserPermission,
|
|
35
|
+
listAccountContext,
|
|
36
|
+
listAccountWorkflows,
|
|
37
|
+
listConsolidatedContext,
|
|
38
|
+
listWorkflowByStackIdAndWorkflowType,
|
|
39
|
+
save,
|
|
40
|
+
save1,
|
|
41
|
+
save3,
|
|
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,
|
|
73
63
|
} from '../api/workspace'
|
|
74
|
-
|
|
75
64
|
import apis from '../apis.json'
|
|
76
65
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
77
66
|
import { workspaceDictionary } from '../error/dictionary/workspace'
|
|
@@ -91,320 +80,299 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
91
80
|
/**
|
|
92
81
|
* Gets all connection interfaces from a workspace
|
|
93
82
|
*/
|
|
94
|
-
allConnectionInterfaces = this.query(
|
|
83
|
+
allConnectionInterfaces = this.query(getConnectionInterfaces)
|
|
95
84
|
|
|
96
85
|
/**
|
|
97
86
|
* Gets a connection interface from a workspace
|
|
98
87
|
*/
|
|
99
|
-
connectionInterface = this.query(
|
|
88
|
+
connectionInterface = this.query(getConnectionInterface)
|
|
100
89
|
/**
|
|
101
90
|
* Get available connection interface for a workspace by connection interface slug
|
|
102
91
|
*/
|
|
103
|
-
workspaceAvailableConnInterfaceBySlug = this.query(
|
|
92
|
+
workspaceAvailableConnInterfaceBySlug = this.query(getAvailableConnectionInterfaceForAWorkspace)
|
|
104
93
|
/**
|
|
105
94
|
* Get available connection interface for an application by connection interface slug
|
|
106
95
|
*/
|
|
107
|
-
applicationAvailableConnInterface = this.query(
|
|
96
|
+
applicationAvailableConnInterface = this.query(getAvailableConnectionInterfaceForAnApplication)
|
|
108
97
|
/**
|
|
109
98
|
* Updates the visibility of a connection interface
|
|
110
99
|
*/
|
|
111
|
-
updateConnectionInterfaceVisibility = this.mutation(
|
|
100
|
+
updateConnectionInterfaceVisibility = this.mutation(updateConnectionInterfaceVisibility)
|
|
112
101
|
|
|
113
102
|
/**
|
|
114
103
|
* Removes a connection interface
|
|
115
104
|
*/
|
|
116
|
-
deleteConnectionInterface = this.mutation(
|
|
105
|
+
deleteConnectionInterface = this.mutation(deleteConnectionInterfaceFromAllEnvironments)
|
|
117
106
|
|
|
118
107
|
/**
|
|
119
108
|
* Removes connection interface attributes by environment
|
|
120
109
|
*/
|
|
121
|
-
deleteConnectionInterfaceAttributesFromEnvironment = this.mutation(
|
|
122
|
-
|
|
110
|
+
deleteConnectionInterfaceAttributesFromEnvironment = this.mutation(deleteConnectionInterfaceAttributesFromEnvironment)
|
|
111
|
+
|
|
123
112
|
/**
|
|
124
113
|
* Updates the attributes of a connection interface
|
|
125
114
|
*/
|
|
126
|
-
updateConnectionInterfaceAttributes = this.mutation(
|
|
115
|
+
updateConnectionInterfaceAttributes = this.mutation(updateConnectionInterfaceAttributes)
|
|
127
116
|
/**
|
|
128
117
|
* Checks the availability of a connection interface slug.
|
|
129
118
|
*/
|
|
130
|
-
checkConnectionInterfaceAvailability = this.query(
|
|
119
|
+
checkConnectionInterfaceAvailability = this.query(checkConnectionSlugAvailability)
|
|
131
120
|
|
|
132
121
|
/**
|
|
133
122
|
* Gets all environments
|
|
134
123
|
*/
|
|
135
|
-
environments = this.query(
|
|
124
|
+
environments = this.query(getEnvironments)
|
|
136
125
|
|
|
137
126
|
/**
|
|
138
127
|
* Gets environment by Id
|
|
139
128
|
*/
|
|
140
|
-
environment = this.query(
|
|
129
|
+
environment = this.query(getEnvironment)
|
|
141
130
|
|
|
142
131
|
/**
|
|
143
132
|
* Creates an environment
|
|
144
133
|
*/
|
|
145
|
-
createEnvironment = this.mutation(
|
|
134
|
+
createEnvironment = this.mutation(saveEnvironment)
|
|
146
135
|
|
|
147
136
|
/**
|
|
148
137
|
* Updates environment data
|
|
149
138
|
*/
|
|
150
|
-
updateEnvironment = this.mutation(
|
|
139
|
+
updateEnvironment = this.mutation(updateEnvironment)
|
|
151
140
|
|
|
152
141
|
/**
|
|
153
142
|
* Gets embedded link by id
|
|
154
143
|
*/
|
|
155
|
-
embeddedLinkInWorkspace = this.query(
|
|
144
|
+
embeddedLinkInWorkspace = this.query(getEmbeddedLink)
|
|
156
145
|
|
|
157
146
|
/**
|
|
158
147
|
* Gets all embedded links from a workspace
|
|
159
148
|
*/
|
|
160
|
-
allEmbeddedLinksInWorkspace = this.query(
|
|
161
|
-
|
|
149
|
+
allEmbeddedLinksInWorkspace = this.query(getEmbeddedLinks)
|
|
150
|
+
|
|
162
151
|
/**
|
|
163
152
|
* Creates an embedded link in a workspace
|
|
164
153
|
*/
|
|
165
|
-
createEmbeddedLinkInWorkspace = this.mutation(
|
|
166
|
-
|
|
154
|
+
createEmbeddedLinkInWorkspace = this.mutation(createEmbeddedLink)
|
|
155
|
+
|
|
167
156
|
/**
|
|
168
157
|
* Deletes an embedded link from a workspace
|
|
169
158
|
*/
|
|
170
|
-
deleteEmbeddedLinkFromWorkspace = this.mutation(
|
|
171
|
-
|
|
159
|
+
deleteEmbeddedLinkFromWorkspace = this.mutation(deleteEmbeddedLink)
|
|
160
|
+
|
|
172
161
|
/**
|
|
173
162
|
* Updates an embedded link from a workspace
|
|
174
163
|
*/
|
|
175
|
-
updateEmbeddedLinkInWorkspace = this.mutation(
|
|
176
|
-
|
|
164
|
+
updateEmbeddedLinkInWorkspace = this.mutation(updateEmbeddedLink)
|
|
165
|
+
|
|
177
166
|
/**
|
|
178
167
|
* Updates all embedded links from a workspace
|
|
179
168
|
*/
|
|
180
|
-
updateAllEmbeddedLinksInWorkspace = this.mutation(
|
|
181
|
-
|
|
169
|
+
updateAllEmbeddedLinksInWorkspace = this.mutation(updateAllEmbeddedLink)
|
|
170
|
+
|
|
182
171
|
/**
|
|
183
172
|
* Gets an embedded link from an application
|
|
184
173
|
*/
|
|
185
|
-
embeddedLinkInApplication = this.query(
|
|
174
|
+
embeddedLinkInApplication = this.query(getApplicationEmbeddedLinks)
|
|
186
175
|
|
|
187
176
|
/**
|
|
188
177
|
* Gets all embedded links from an application
|
|
189
178
|
*/
|
|
190
|
-
allEmbeddedLinksInApplication = this.query(
|
|
191
|
-
|
|
179
|
+
allEmbeddedLinksInApplication = this.query(getAllApplicationEmbeddedLinks)
|
|
180
|
+
|
|
192
181
|
/**
|
|
193
182
|
* Creates an embedded link in an application
|
|
194
183
|
*/
|
|
195
|
-
createEmbeddedLinkInApplication = this.mutation(
|
|
184
|
+
createEmbeddedLinkInApplication = this.mutation(saveApplicationEmbeddedLinks)
|
|
196
185
|
|
|
197
186
|
/**
|
|
198
187
|
* Deletes an embedded link from an application
|
|
199
188
|
*/
|
|
200
|
-
deleteEmbeddedLinkFromApplication = this.mutation(
|
|
189
|
+
deleteEmbeddedLinkFromApplication = this.mutation(deleteApplicationEmbeddedLinks)
|
|
201
190
|
|
|
202
191
|
/**
|
|
203
192
|
* Updates an embedded link in an application
|
|
204
193
|
*/
|
|
205
|
-
updateEmbeddedLinkInApplication = this.mutation(
|
|
206
|
-
|
|
194
|
+
updateEmbeddedLinkInApplication = this.mutation(updateApplicationEmbeddedLinks)
|
|
195
|
+
|
|
207
196
|
/**
|
|
208
197
|
* Updates all embedded links in an application
|
|
209
198
|
*/
|
|
210
|
-
updateAllEmbeddedLinksInApplication = this.mutation(
|
|
211
|
-
|
|
199
|
+
updateAllEmbeddedLinksInApplication = this.mutation(updateAllApplicationEmbeddedLinks)
|
|
200
|
+
|
|
212
201
|
/**
|
|
213
202
|
* Gets all workspaces
|
|
214
203
|
*/
|
|
215
|
-
workspaces = this.query(
|
|
204
|
+
workspaces = this.query(getWorkspaces)
|
|
216
205
|
|
|
217
206
|
/**
|
|
218
207
|
* Gets a workspace
|
|
219
208
|
*/
|
|
220
|
-
workspace = this.query(
|
|
209
|
+
workspace = this.query(getWorkspaceForId)
|
|
221
210
|
/**
|
|
222
211
|
* Get workspaces within user permission
|
|
223
212
|
*/
|
|
224
|
-
workspacesFromUserPermission = this.query(
|
|
213
|
+
workspacesFromUserPermission = this.query(getWorkspacesFromUserPermission)
|
|
225
214
|
|
|
226
215
|
/**
|
|
227
216
|
* Creates a workspace
|
|
228
217
|
*/
|
|
229
|
-
createWorkspace = this.mutation(
|
|
218
|
+
createWorkspace = this.mutation(save)
|
|
230
219
|
|
|
231
220
|
/**
|
|
232
221
|
* Updates a workspace
|
|
233
222
|
*/
|
|
234
|
-
updateWorkspace = this.mutation(
|
|
235
|
-
|
|
223
|
+
updateWorkspace = this.mutation(update1)
|
|
224
|
+
|
|
236
225
|
//App and infra
|
|
237
226
|
/**
|
|
238
227
|
* Gets all applications in a Workspace
|
|
239
228
|
*/
|
|
240
|
-
applications = this.query(
|
|
229
|
+
applications = this.query(getApplications)
|
|
241
230
|
/**
|
|
242
231
|
* Gets an application
|
|
243
232
|
*/
|
|
244
|
-
application = this.query(
|
|
233
|
+
application = this.query(getApplication)
|
|
245
234
|
|
|
246
235
|
/**
|
|
247
236
|
* Gets the dependencies of an application
|
|
248
237
|
*/
|
|
249
|
-
applicationDependencies = this.query(
|
|
238
|
+
applicationDependencies = this.query(getDependencyTree1)
|
|
250
239
|
/**
|
|
251
240
|
* Gets all shared infra in a Workspace
|
|
252
241
|
*/
|
|
253
|
-
allSharedInfra = this.query(
|
|
242
|
+
allSharedInfra = this.query(getAllSharedInfrastructure)
|
|
254
243
|
/**
|
|
255
244
|
* Gets a shared infra
|
|
256
245
|
*/
|
|
257
|
-
sharedInfra = this.query(
|
|
246
|
+
sharedInfra = this.query(getSharedInfrastructure)
|
|
258
247
|
|
|
259
248
|
/**
|
|
260
249
|
* Gets the dependencies of a shared infra
|
|
261
250
|
*/
|
|
262
|
-
sharedInfraDependencies = this.query(
|
|
263
|
-
|
|
251
|
+
sharedInfraDependencies = this.query(getDependencyTree)
|
|
252
|
+
|
|
264
253
|
/**
|
|
265
254
|
* Updates an application
|
|
266
255
|
*/
|
|
267
|
-
updateApplication = this.mutation(
|
|
256
|
+
updateApplication = this.mutation(update6)
|
|
268
257
|
|
|
269
258
|
/**
|
|
270
259
|
* Updates a shared infra
|
|
271
260
|
*/
|
|
272
|
-
updateInfra = this.mutation(
|
|
261
|
+
updateInfra = this.mutation(update2)
|
|
273
262
|
|
|
274
263
|
// Workflow
|
|
275
264
|
/**
|
|
276
265
|
* Gets a workflow by stack id
|
|
277
266
|
*/
|
|
278
|
-
workflowsByStackId = this.query(
|
|
267
|
+
workflowsByStackId = this.query(listWorkflowByStackIdAndWorkflowType)
|
|
279
268
|
/**
|
|
280
269
|
* Gets account workflows
|
|
281
270
|
*/
|
|
282
|
-
accountWorkflows = this.query(
|
|
271
|
+
accountWorkflows = this.query(listAccountWorkflows)
|
|
283
272
|
/**
|
|
284
273
|
* Gets workflows from a stack
|
|
285
274
|
*/
|
|
286
|
-
stackWorkflows = this.query(
|
|
275
|
+
stackWorkflows = this.query(listWorkflowByStackIdAndWorkflowType)
|
|
287
276
|
/**
|
|
288
277
|
* Removes account workflow
|
|
289
278
|
*/
|
|
290
|
-
deleteAccountWorkflow = this.mutation(
|
|
279
|
+
deleteAccountWorkflow = this.mutation(deleteAccountWorkflow)
|
|
291
280
|
|
|
292
|
-
//
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* Find all account variables
|
|
296
|
-
*/
|
|
297
|
-
accountVariables = this.query(accountVariableControllerfindAll)
|
|
281
|
+
// Variable
|
|
298
282
|
/**
|
|
299
|
-
*
|
|
283
|
+
* Gets all workspace variables
|
|
300
284
|
*/
|
|
301
|
-
|
|
285
|
+
variables = this.query(findAll)
|
|
302
286
|
/**
|
|
303
|
-
*
|
|
287
|
+
* Creates a workspace variable
|
|
304
288
|
*/
|
|
305
|
-
|
|
289
|
+
createVariable = this.mutation(save1)
|
|
306
290
|
/**
|
|
307
|
-
*
|
|
291
|
+
* Gets a variable by name
|
|
308
292
|
*/
|
|
309
|
-
|
|
293
|
+
variable = this.query(getV1WorkspacesByWorkspaceIdVariablesAndName)
|
|
310
294
|
/**
|
|
311
|
-
*
|
|
295
|
+
* Updates a workspace variable
|
|
312
296
|
*/
|
|
313
|
-
|
|
297
|
+
updateVariable = this.mutation(update)
|
|
314
298
|
/**
|
|
315
|
-
*
|
|
299
|
+
* Deletes a workspace variable
|
|
316
300
|
*/
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
// Variables Workspace
|
|
301
|
+
deleteVariable = this.mutation(delete1)
|
|
320
302
|
|
|
321
|
-
/**
|
|
322
|
-
* Find all workspace variables
|
|
323
|
-
*/
|
|
324
|
-
workspaceVariables = this.query(workspaceVariableV2ControllerfindAll)
|
|
325
|
-
/**
|
|
326
|
-
* Get a workspace variable by name
|
|
327
|
-
*/
|
|
328
|
-
getWorkspaceVariable = this.query(workspaceVariableV2ControllerfindByName)
|
|
329
|
-
/**
|
|
330
|
-
* Upsert workspace variable based on existing account variable
|
|
331
|
-
*/
|
|
332
|
-
updateWorkspaceVariable = this.mutation(workspaceVariableV2Controllerupsert)
|
|
333
|
-
|
|
334
303
|
//Links
|
|
335
304
|
/**
|
|
336
305
|
* Gets shared infra links
|
|
337
306
|
*/
|
|
338
|
-
linksInWorkspace = this.query(
|
|
307
|
+
linksInWorkspace = this.query(getWorkspaceLinks)
|
|
339
308
|
/**
|
|
340
309
|
* Adds a link to a workspace
|
|
341
310
|
*/
|
|
342
|
-
addLinkInWorkspace = this.mutation(
|
|
311
|
+
addLinkInWorkspace = this.mutation(save4)
|
|
343
312
|
/**
|
|
344
313
|
* Deletes a link from a workspace
|
|
345
314
|
*/
|
|
346
|
-
removeLinkFromWorkspace = this.mutation(
|
|
315
|
+
removeLinkFromWorkspace = this.mutation(delete3)
|
|
347
316
|
/**
|
|
348
317
|
* Gets application link
|
|
349
318
|
*/
|
|
350
|
-
linkInApplication = this.query(
|
|
319
|
+
linkInApplication = this.query(getApplicationLink)
|
|
351
320
|
/**
|
|
352
321
|
* Adds a link to an application
|
|
353
322
|
*/
|
|
354
|
-
addLinkInApplication = this.mutation(
|
|
323
|
+
addLinkInApplication = this.mutation(save7)
|
|
355
324
|
/**
|
|
356
325
|
* Deletes a link from an application
|
|
357
326
|
*/
|
|
358
|
-
removeLinkFromApplication = this.mutation(
|
|
327
|
+
removeLinkFromApplication = this.mutation(delete5)
|
|
359
328
|
/**
|
|
360
329
|
* Updates a link from an application
|
|
361
330
|
*/
|
|
362
|
-
updateLinkInApplication = this.mutation(
|
|
331
|
+
updateLinkInApplication = this.mutation(update7)
|
|
363
332
|
/**
|
|
364
333
|
* Updates application links visibility
|
|
365
334
|
*/
|
|
366
|
-
updateLinkVisibilityInApplication = this.mutation(
|
|
335
|
+
updateLinkVisibilityInApplication = this.mutation(updateLinksVisibility1)
|
|
367
336
|
/**
|
|
368
337
|
* Gets shared infra link
|
|
369
338
|
*/
|
|
370
|
-
linkInInfra = this.query(
|
|
339
|
+
linkInInfra = this.query(getSharedInfraLink)
|
|
371
340
|
/**
|
|
372
341
|
* Adds a link to an infra
|
|
373
342
|
*/
|
|
374
|
-
addLinkInInfra = this.mutation(
|
|
343
|
+
addLinkInInfra = this.mutation(save3)
|
|
375
344
|
/**
|
|
376
345
|
* Deletes a link from an infra
|
|
377
346
|
*/
|
|
378
|
-
removeLinkFromInfra = this.mutation(
|
|
347
|
+
removeLinkFromInfra = this.mutation(delete2)
|
|
379
348
|
/**
|
|
380
349
|
* Updates a link from an infra
|
|
381
350
|
*/
|
|
382
|
-
updateLinkInInfra = this.mutation(
|
|
351
|
+
updateLinkInInfra = this.mutation(update3)
|
|
383
352
|
/**
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
updateLinkVisibilityInInfra = this.mutation(
|
|
387
|
-
|
|
353
|
+
* Updates infra links visibility
|
|
354
|
+
*/
|
|
355
|
+
updateLinkVisibilityInInfra = this.mutation(updateLinksVisibility)
|
|
388
356
|
/**
|
|
389
357
|
* Gets stacks in a workspace. This fn is only used for permission purposes.
|
|
390
358
|
*/
|
|
391
|
-
stacks = this.query(
|
|
359
|
+
stacks = this.query(getStacks) as OperationObject<Parameters<typeof getStacks>[0]>
|
|
392
360
|
/**
|
|
393
361
|
* List workspace context inputs for a plugin or action in a stack. This fn is only used for permission purposes.
|
|
394
362
|
*/
|
|
395
|
-
listConsolidatedWorkspaceContext = this.query(
|
|
363
|
+
listConsolidatedWorkspaceContext = this.query(listConsolidatedContext) as OperationObject<Parameters<typeof listConsolidatedContext>[0]>
|
|
396
364
|
/**
|
|
397
365
|
* List account context inputs for a plugin or action in a stack. This fn is only used for permission purposes.
|
|
398
366
|
*/
|
|
399
|
-
listConsolidatedContext = this.query(
|
|
367
|
+
listConsolidatedContext = this.query(listAccountContext) as OperationObject<Parameters<typeof listAccountContext>[0]>
|
|
400
368
|
/**
|
|
401
369
|
* Save workspace context inputs for a plugin or action in a stack. This fn is only used for permission purposes.
|
|
402
370
|
*/
|
|
403
|
-
saveContextInWorkspace = this.query(
|
|
371
|
+
saveContextInWorkspace = this.query(addTypedContextInWorkspace) as OperationObject<Parameters<typeof addTypedContextInWorkspace>[0]>
|
|
404
372
|
/**
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
saveContextInAccount = this.query(
|
|
373
|
+
* Save workspace context inputs for a plugin or action in a stack. This fn is only used for permission purposes.
|
|
374
|
+
*/
|
|
375
|
+
saveContextInAccount = this.query(addTypedContextInAccount) as OperationObject<Parameters<typeof addTypedContextInAccount>[0]>
|
|
408
376
|
}
|
|
409
377
|
|
|
410
378
|
export const workspaceClient = new WorkspaceClient()
|