@stack-spot/portal-network 0.28.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 +20 -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/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/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/content.ts +77 -29
- package/src/client/workspace-manager.ts +20 -1
- package/src/client/workspace.ts +187 -145
package/dist/client/workspace.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { accountVariableControllercreate, accountVariableControllerdelete, accountVariableControllerfindAll, accountVariableControllerfindByName, accountVariableControllerupdate, accountVariableControllerusage, applicationControllergetApplication, applicationControllergetApplications, applicationControllergetDependencyTree, applicationControllerupdate, applicationEmbeddedLinkControllerdelete, applicationEmbeddedLinkControllergetEmbeddedLink, applicationEmbeddedLinkControllergetEmbeddedLinks, applicationEmbeddedLinkControllersave, applicationEmbeddedLinkControllerupdate, applicationEmbeddedLinkControllerupsertBatch, applicationLinkControllerdelete, applicationLinkControllergetApplicationLink, applicationLinkControllersave, applicationLinkControllerupdate, applicationLinkControllerupdateLinksVisibility, availableConnectionInterfaceV2ControllergetAvailableConnectionInterfaceForAnApplication, availableConnectionInterfaceV2ControllergetAvailableConnectionInterfaceForAWorkspace, checkConnectionSlugAvailabilityControllercheckConnectionSlugAvailability, connectionInterfaceControllerdeleteConnectionInterfaceAttributesFromEnvironment, connectionInterfaceControllerdeleteConnectionInterfaceFromAllEnvironments, connectionInterfaceControllergetConnectionInterface, connectionInterfaceControllergetConnectionInterfaces, connectionInterfaceControllerupdateConnectionInterfaceAttributes, connectionInterfaceControllerupdateConnectionInterfaceVisibility, contextControlleraddTypedContextInAccount, contextControlleraddTypedContextInWorkspace, contextControllerlistAccountContext, contextControllerlistConsolidatedContext, defaults, environmentControllergetEnvironment, environmentControllergetEnvironments, environmentControllersave, environmentControllerupdate, sharedInfraLinkControllerdelete, sharedInfraLinkControllergetSharedInfraLink, sharedInfraLinkControllersave, sharedInfraLinkControllerupdate, sharedInfraLinkControllerupdateLinksVisibility, sharedInfrastructureControllergetAllSharedInfrastructure, sharedInfrastructureControllergetDependencyTree, sharedInfrastructureControllergetSharedInfrastructure, sharedInfrastructureControllerupdate, workflowAccountControllerdeleteAccountWorkflow, workflowAccountControllerlistAccountWorkflows, workflowWorkspaceControllerlistWorkflowByStackIdAndWorkflowType, workspaceControllergetWorkspaceForId, workspaceControllergetWorkspaces, workspaceControllergetWorkspacesFromUserPermission, workspaceControllersave, workspaceControllerupdate, workspaceEmbeddedLinkControllerdelete, workspaceEmbeddedLinkControllergetEmbeddedLink, workspaceEmbeddedLinkControllergetEmbeddedLinks, workspaceEmbeddedLinkControllersave, workspaceEmbeddedLinkControllerupdate, workspaceEmbeddedLinkControllerupsertBatch, workspaceLinkControllerdelete, workspaceLinkControllergetWorkspaceLinks, workspaceLinkControllersave, workspaceStackControlleraddStack, workspaceStackControllerdeleteStack, workspaceStackControllergetStacks, workspaceVariableV2ControllerfindAll, workspaceVariableV2ControllerfindByName, workspaceVariableV2Controllerupsert, } from '../api/workspace.js';
|
|
2
2
|
import apis from '../apis.json';
|
|
3
3
|
import { DefaultAPIError } from '../error/DefaultAPIError.js';
|
|
4
4
|
import { workspaceDictionary } from '../error/dictionary/workspace.js';
|
|
@@ -13,7 +13,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
13
13
|
enumerable: true,
|
|
14
14
|
configurable: true,
|
|
15
15
|
writable: true,
|
|
16
|
-
value: this.query(
|
|
16
|
+
value: this.query(connectionInterfaceControllergetConnectionInterfaces)
|
|
17
17
|
});
|
|
18
18
|
/**
|
|
19
19
|
* Gets a connection interface from a workspace
|
|
@@ -22,7 +22,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
22
22
|
enumerable: true,
|
|
23
23
|
configurable: true,
|
|
24
24
|
writable: true,
|
|
25
|
-
value: this.query(
|
|
25
|
+
value: this.query(connectionInterfaceControllergetConnectionInterface)
|
|
26
26
|
});
|
|
27
27
|
/**
|
|
28
28
|
* Get available connection interface for a workspace by connection interface slug
|
|
@@ -31,7 +31,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
31
31
|
enumerable: true,
|
|
32
32
|
configurable: true,
|
|
33
33
|
writable: true,
|
|
34
|
-
value: this.query(
|
|
34
|
+
value: this.query(availableConnectionInterfaceV2ControllergetAvailableConnectionInterfaceForAWorkspace)
|
|
35
35
|
});
|
|
36
36
|
/**
|
|
37
37
|
* Get available connection interface for an application by connection interface slug
|
|
@@ -40,7 +40,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
40
40
|
enumerable: true,
|
|
41
41
|
configurable: true,
|
|
42
42
|
writable: true,
|
|
43
|
-
value: this.query(
|
|
43
|
+
value: this.query(availableConnectionInterfaceV2ControllergetAvailableConnectionInterfaceForAnApplication)
|
|
44
44
|
});
|
|
45
45
|
/**
|
|
46
46
|
* Updates the visibility of a connection interface
|
|
@@ -49,7 +49,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
49
49
|
enumerable: true,
|
|
50
50
|
configurable: true,
|
|
51
51
|
writable: true,
|
|
52
|
-
value: this.mutation(
|
|
52
|
+
value: this.mutation(connectionInterfaceControllerupdateConnectionInterfaceVisibility)
|
|
53
53
|
});
|
|
54
54
|
/**
|
|
55
55
|
* Removes a connection interface
|
|
@@ -58,7 +58,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
58
58
|
enumerable: true,
|
|
59
59
|
configurable: true,
|
|
60
60
|
writable: true,
|
|
61
|
-
value: this.mutation(
|
|
61
|
+
value: this.mutation(connectionInterfaceControllerdeleteConnectionInterfaceFromAllEnvironments)
|
|
62
62
|
});
|
|
63
63
|
/**
|
|
64
64
|
* Removes connection interface attributes by environment
|
|
@@ -67,7 +67,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
67
67
|
enumerable: true,
|
|
68
68
|
configurable: true,
|
|
69
69
|
writable: true,
|
|
70
|
-
value: this.mutation(
|
|
70
|
+
value: this.mutation(connectionInterfaceControllerdeleteConnectionInterfaceAttributesFromEnvironment)
|
|
71
71
|
});
|
|
72
72
|
/**
|
|
73
73
|
* Updates the attributes of a connection interface
|
|
@@ -76,7 +76,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
76
76
|
enumerable: true,
|
|
77
77
|
configurable: true,
|
|
78
78
|
writable: true,
|
|
79
|
-
value: this.mutation(
|
|
79
|
+
value: this.mutation(connectionInterfaceControllerupdateConnectionInterfaceAttributes)
|
|
80
80
|
});
|
|
81
81
|
/**
|
|
82
82
|
* Checks the availability of a connection interface slug.
|
|
@@ -85,7 +85,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
85
85
|
enumerable: true,
|
|
86
86
|
configurable: true,
|
|
87
87
|
writable: true,
|
|
88
|
-
value: this.query(
|
|
88
|
+
value: this.query(checkConnectionSlugAvailabilityControllercheckConnectionSlugAvailability)
|
|
89
89
|
});
|
|
90
90
|
/**
|
|
91
91
|
* Gets all environments
|
|
@@ -94,7 +94,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
94
94
|
enumerable: true,
|
|
95
95
|
configurable: true,
|
|
96
96
|
writable: true,
|
|
97
|
-
value: this.query(
|
|
97
|
+
value: this.query(environmentControllergetEnvironments)
|
|
98
98
|
});
|
|
99
99
|
/**
|
|
100
100
|
* Gets environment by Id
|
|
@@ -103,7 +103,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
103
103
|
enumerable: true,
|
|
104
104
|
configurable: true,
|
|
105
105
|
writable: true,
|
|
106
|
-
value: this.query(
|
|
106
|
+
value: this.query(environmentControllergetEnvironment)
|
|
107
107
|
});
|
|
108
108
|
/**
|
|
109
109
|
* Creates an environment
|
|
@@ -112,7 +112,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
112
112
|
enumerable: true,
|
|
113
113
|
configurable: true,
|
|
114
114
|
writable: true,
|
|
115
|
-
value: this.mutation(
|
|
115
|
+
value: this.mutation(environmentControllersave)
|
|
116
116
|
});
|
|
117
117
|
/**
|
|
118
118
|
* Updates environment data
|
|
@@ -121,7 +121,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
121
121
|
enumerable: true,
|
|
122
122
|
configurable: true,
|
|
123
123
|
writable: true,
|
|
124
|
-
value: this.mutation(
|
|
124
|
+
value: this.mutation(environmentControllerupdate)
|
|
125
125
|
});
|
|
126
126
|
/**
|
|
127
127
|
* Gets embedded link by id
|
|
@@ -130,7 +130,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
130
130
|
enumerable: true,
|
|
131
131
|
configurable: true,
|
|
132
132
|
writable: true,
|
|
133
|
-
value: this.query(
|
|
133
|
+
value: this.query(workspaceEmbeddedLinkControllergetEmbeddedLink)
|
|
134
134
|
});
|
|
135
135
|
/**
|
|
136
136
|
* Gets all embedded links from a workspace
|
|
@@ -139,7 +139,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
139
139
|
enumerable: true,
|
|
140
140
|
configurable: true,
|
|
141
141
|
writable: true,
|
|
142
|
-
value: this.query(
|
|
142
|
+
value: this.query(workspaceEmbeddedLinkControllergetEmbeddedLinks)
|
|
143
143
|
});
|
|
144
144
|
/**
|
|
145
145
|
* Creates an embedded link in a workspace
|
|
@@ -148,7 +148,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
148
148
|
enumerable: true,
|
|
149
149
|
configurable: true,
|
|
150
150
|
writable: true,
|
|
151
|
-
value: this.mutation(
|
|
151
|
+
value: this.mutation(workspaceEmbeddedLinkControllersave)
|
|
152
152
|
});
|
|
153
153
|
/**
|
|
154
154
|
* Deletes an embedded link from a workspace
|
|
@@ -157,7 +157,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
157
157
|
enumerable: true,
|
|
158
158
|
configurable: true,
|
|
159
159
|
writable: true,
|
|
160
|
-
value: this.mutation(
|
|
160
|
+
value: this.mutation(workspaceEmbeddedLinkControllerdelete)
|
|
161
161
|
});
|
|
162
162
|
/**
|
|
163
163
|
* Updates an embedded link from a workspace
|
|
@@ -166,7 +166,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
166
166
|
enumerable: true,
|
|
167
167
|
configurable: true,
|
|
168
168
|
writable: true,
|
|
169
|
-
value: this.mutation(
|
|
169
|
+
value: this.mutation(workspaceEmbeddedLinkControllerupdate)
|
|
170
170
|
});
|
|
171
171
|
/**
|
|
172
172
|
* Updates all embedded links from a workspace
|
|
@@ -175,7 +175,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
175
175
|
enumerable: true,
|
|
176
176
|
configurable: true,
|
|
177
177
|
writable: true,
|
|
178
|
-
value: this.mutation(
|
|
178
|
+
value: this.mutation(workspaceEmbeddedLinkControllerupsertBatch)
|
|
179
179
|
});
|
|
180
180
|
/**
|
|
181
181
|
* Gets an embedded link from an application
|
|
@@ -184,7 +184,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
184
184
|
enumerable: true,
|
|
185
185
|
configurable: true,
|
|
186
186
|
writable: true,
|
|
187
|
-
value: this.query(
|
|
187
|
+
value: this.query(applicationEmbeddedLinkControllergetEmbeddedLink)
|
|
188
188
|
});
|
|
189
189
|
/**
|
|
190
190
|
* Gets all embedded links from an application
|
|
@@ -193,7 +193,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
193
193
|
enumerable: true,
|
|
194
194
|
configurable: true,
|
|
195
195
|
writable: true,
|
|
196
|
-
value: this.query(
|
|
196
|
+
value: this.query(applicationEmbeddedLinkControllergetEmbeddedLinks)
|
|
197
197
|
});
|
|
198
198
|
/**
|
|
199
199
|
* Creates an embedded link in an application
|
|
@@ -202,7 +202,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
202
202
|
enumerable: true,
|
|
203
203
|
configurable: true,
|
|
204
204
|
writable: true,
|
|
205
|
-
value: this.mutation(
|
|
205
|
+
value: this.mutation(applicationEmbeddedLinkControllersave)
|
|
206
206
|
});
|
|
207
207
|
/**
|
|
208
208
|
* Deletes an embedded link from an application
|
|
@@ -211,7 +211,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
211
211
|
enumerable: true,
|
|
212
212
|
configurable: true,
|
|
213
213
|
writable: true,
|
|
214
|
-
value: this.mutation(
|
|
214
|
+
value: this.mutation(applicationEmbeddedLinkControllerdelete)
|
|
215
215
|
});
|
|
216
216
|
/**
|
|
217
217
|
* Updates an embedded link in an application
|
|
@@ -220,7 +220,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
220
220
|
enumerable: true,
|
|
221
221
|
configurable: true,
|
|
222
222
|
writable: true,
|
|
223
|
-
value: this.mutation(
|
|
223
|
+
value: this.mutation(applicationEmbeddedLinkControllerupdate)
|
|
224
224
|
});
|
|
225
225
|
/**
|
|
226
226
|
* Updates all embedded links in an application
|
|
@@ -229,7 +229,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
229
229
|
enumerable: true,
|
|
230
230
|
configurable: true,
|
|
231
231
|
writable: true,
|
|
232
|
-
value: this.mutation(
|
|
232
|
+
value: this.mutation(applicationEmbeddedLinkControllerupsertBatch)
|
|
233
233
|
});
|
|
234
234
|
/**
|
|
235
235
|
* Gets all workspaces
|
|
@@ -238,7 +238,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
238
238
|
enumerable: true,
|
|
239
239
|
configurable: true,
|
|
240
240
|
writable: true,
|
|
241
|
-
value: this.query(
|
|
241
|
+
value: this.query(workspaceControllergetWorkspaces)
|
|
242
242
|
});
|
|
243
243
|
/**
|
|
244
244
|
* Gets a workspace
|
|
@@ -247,7 +247,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
247
247
|
enumerable: true,
|
|
248
248
|
configurable: true,
|
|
249
249
|
writable: true,
|
|
250
|
-
value: this.query(
|
|
250
|
+
value: this.query(workspaceControllergetWorkspaceForId)
|
|
251
251
|
});
|
|
252
252
|
/**
|
|
253
253
|
* Get workspaces within user permission
|
|
@@ -256,7 +256,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
256
256
|
enumerable: true,
|
|
257
257
|
configurable: true,
|
|
258
258
|
writable: true,
|
|
259
|
-
value: this.query(
|
|
259
|
+
value: this.query(workspaceControllergetWorkspacesFromUserPermission)
|
|
260
260
|
});
|
|
261
261
|
/**
|
|
262
262
|
* Creates a workspace
|
|
@@ -265,7 +265,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
265
265
|
enumerable: true,
|
|
266
266
|
configurable: true,
|
|
267
267
|
writable: true,
|
|
268
|
-
value: this.mutation(
|
|
268
|
+
value: this.mutation(workspaceControllersave)
|
|
269
269
|
});
|
|
270
270
|
/**
|
|
271
271
|
* Updates a workspace
|
|
@@ -274,7 +274,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
274
274
|
enumerable: true,
|
|
275
275
|
configurable: true,
|
|
276
276
|
writable: true,
|
|
277
|
-
value: this.mutation(
|
|
277
|
+
value: this.mutation(workspaceControllerupdate)
|
|
278
278
|
});
|
|
279
279
|
//App and infra
|
|
280
280
|
/**
|
|
@@ -284,7 +284,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
284
284
|
enumerable: true,
|
|
285
285
|
configurable: true,
|
|
286
286
|
writable: true,
|
|
287
|
-
value: this.query(
|
|
287
|
+
value: this.query(applicationControllergetApplications)
|
|
288
288
|
});
|
|
289
289
|
/**
|
|
290
290
|
* Gets an application
|
|
@@ -293,7 +293,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
293
293
|
enumerable: true,
|
|
294
294
|
configurable: true,
|
|
295
295
|
writable: true,
|
|
296
|
-
value: this.query(
|
|
296
|
+
value: this.query(applicationControllergetApplication)
|
|
297
297
|
});
|
|
298
298
|
/**
|
|
299
299
|
* Gets the dependencies of an application
|
|
@@ -302,7 +302,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
302
302
|
enumerable: true,
|
|
303
303
|
configurable: true,
|
|
304
304
|
writable: true,
|
|
305
|
-
value: this.query(
|
|
305
|
+
value: this.query(applicationControllergetDependencyTree)
|
|
306
306
|
});
|
|
307
307
|
/**
|
|
308
308
|
* Gets all shared infra in a Workspace
|
|
@@ -311,7 +311,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
311
311
|
enumerable: true,
|
|
312
312
|
configurable: true,
|
|
313
313
|
writable: true,
|
|
314
|
-
value: this.query(
|
|
314
|
+
value: this.query(sharedInfrastructureControllergetAllSharedInfrastructure)
|
|
315
315
|
});
|
|
316
316
|
/**
|
|
317
317
|
* Gets a shared infra
|
|
@@ -320,7 +320,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
320
320
|
enumerable: true,
|
|
321
321
|
configurable: true,
|
|
322
322
|
writable: true,
|
|
323
|
-
value: this.query(
|
|
323
|
+
value: this.query(sharedInfrastructureControllergetSharedInfrastructure)
|
|
324
324
|
});
|
|
325
325
|
/**
|
|
326
326
|
* Gets the dependencies of a shared infra
|
|
@@ -329,7 +329,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
329
329
|
enumerable: true,
|
|
330
330
|
configurable: true,
|
|
331
331
|
writable: true,
|
|
332
|
-
value: this.query(
|
|
332
|
+
value: this.query(sharedInfrastructureControllergetDependencyTree)
|
|
333
333
|
});
|
|
334
334
|
/**
|
|
335
335
|
* Updates an application
|
|
@@ -338,7 +338,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
338
338
|
enumerable: true,
|
|
339
339
|
configurable: true,
|
|
340
340
|
writable: true,
|
|
341
|
-
value: this.mutation(
|
|
341
|
+
value: this.mutation(applicationControllerupdate)
|
|
342
342
|
});
|
|
343
343
|
/**
|
|
344
344
|
* Updates a shared infra
|
|
@@ -347,7 +347,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
347
347
|
enumerable: true,
|
|
348
348
|
configurable: true,
|
|
349
349
|
writable: true,
|
|
350
|
-
value: this.mutation(
|
|
350
|
+
value: this.mutation(sharedInfrastructureControllerupdate)
|
|
351
351
|
});
|
|
352
352
|
// Workflow
|
|
353
353
|
/**
|
|
@@ -357,7 +357,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
357
357
|
enumerable: true,
|
|
358
358
|
configurable: true,
|
|
359
359
|
writable: true,
|
|
360
|
-
value: this.query(
|
|
360
|
+
value: this.query(workflowWorkspaceControllerlistWorkflowByStackIdAndWorkflowType)
|
|
361
361
|
});
|
|
362
362
|
/**
|
|
363
363
|
* Gets account workflows
|
|
@@ -366,7 +366,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
366
366
|
enumerable: true,
|
|
367
367
|
configurable: true,
|
|
368
368
|
writable: true,
|
|
369
|
-
value: this.query(
|
|
369
|
+
value: this.query(workflowAccountControllerlistAccountWorkflows)
|
|
370
370
|
});
|
|
371
371
|
/**
|
|
372
372
|
* Gets workflows from a stack
|
|
@@ -375,7 +375,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
375
375
|
enumerable: true,
|
|
376
376
|
configurable: true,
|
|
377
377
|
writable: true,
|
|
378
|
-
value: this.query(
|
|
378
|
+
value: this.query(workflowWorkspaceControllerlistWorkflowByStackIdAndWorkflowType)
|
|
379
379
|
});
|
|
380
380
|
/**
|
|
381
381
|
* Removes account workflow
|
|
@@ -384,53 +384,90 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
384
384
|
enumerable: true,
|
|
385
385
|
configurable: true,
|
|
386
386
|
writable: true,
|
|
387
|
-
value: this.mutation(
|
|
387
|
+
value: this.mutation(workflowAccountControllerdeleteAccountWorkflow)
|
|
388
388
|
});
|
|
389
|
-
//
|
|
389
|
+
// Variables Account
|
|
390
390
|
/**
|
|
391
|
-
*
|
|
391
|
+
* Find all account variables
|
|
392
392
|
*/
|
|
393
|
-
Object.defineProperty(this, "
|
|
393
|
+
Object.defineProperty(this, "accountVariables", {
|
|
394
394
|
enumerable: true,
|
|
395
395
|
configurable: true,
|
|
396
396
|
writable: true,
|
|
397
|
-
value: this.query(
|
|
397
|
+
value: this.query(accountVariableControllerfindAll)
|
|
398
398
|
});
|
|
399
399
|
/**
|
|
400
|
-
*
|
|
400
|
+
* Get an account variable by name
|
|
401
401
|
*/
|
|
402
|
-
Object.defineProperty(this, "
|
|
402
|
+
Object.defineProperty(this, "getAccountVariable", {
|
|
403
403
|
enumerable: true,
|
|
404
404
|
configurable: true,
|
|
405
405
|
writable: true,
|
|
406
|
-
value: this.
|
|
406
|
+
value: this.query(accountVariableControllerfindByName)
|
|
407
407
|
});
|
|
408
408
|
/**
|
|
409
|
-
*
|
|
409
|
+
* Get account variable usage
|
|
410
410
|
*/
|
|
411
|
-
Object.defineProperty(this, "
|
|
411
|
+
Object.defineProperty(this, "accountVariableUsage", {
|
|
412
412
|
enumerable: true,
|
|
413
413
|
configurable: true,
|
|
414
414
|
writable: true,
|
|
415
|
-
value: this.query(
|
|
415
|
+
value: this.query(accountVariableControllerusage)
|
|
416
416
|
});
|
|
417
417
|
/**
|
|
418
|
-
*
|
|
418
|
+
* Create account variable
|
|
419
419
|
*/
|
|
420
|
-
Object.defineProperty(this, "
|
|
420
|
+
Object.defineProperty(this, "createAccountVariable", {
|
|
421
421
|
enumerable: true,
|
|
422
422
|
configurable: true,
|
|
423
423
|
writable: true,
|
|
424
|
-
value: this.mutation(
|
|
424
|
+
value: this.mutation(accountVariableControllercreate)
|
|
425
425
|
});
|
|
426
426
|
/**
|
|
427
|
-
*
|
|
427
|
+
* Update account variable
|
|
428
428
|
*/
|
|
429
|
-
Object.defineProperty(this, "
|
|
429
|
+
Object.defineProperty(this, "updateAccountVariable", {
|
|
430
430
|
enumerable: true,
|
|
431
431
|
configurable: true,
|
|
432
432
|
writable: true,
|
|
433
|
-
value: this.mutation(
|
|
433
|
+
value: this.mutation(accountVariableControllerupdate)
|
|
434
|
+
});
|
|
435
|
+
/**
|
|
436
|
+
* Delete account variable
|
|
437
|
+
*/
|
|
438
|
+
Object.defineProperty(this, "deleteAccountVariable", {
|
|
439
|
+
enumerable: true,
|
|
440
|
+
configurable: true,
|
|
441
|
+
writable: true,
|
|
442
|
+
value: this.mutation(accountVariableControllerdelete)
|
|
443
|
+
});
|
|
444
|
+
// Variables Workspace
|
|
445
|
+
/**
|
|
446
|
+
* Find all workspace variables
|
|
447
|
+
*/
|
|
448
|
+
Object.defineProperty(this, "workspaceVariables", {
|
|
449
|
+
enumerable: true,
|
|
450
|
+
configurable: true,
|
|
451
|
+
writable: true,
|
|
452
|
+
value: this.query(workspaceVariableV2ControllerfindAll)
|
|
453
|
+
});
|
|
454
|
+
/**
|
|
455
|
+
* Get a workspace variable by name
|
|
456
|
+
*/
|
|
457
|
+
Object.defineProperty(this, "getWorkspaceVariable", {
|
|
458
|
+
enumerable: true,
|
|
459
|
+
configurable: true,
|
|
460
|
+
writable: true,
|
|
461
|
+
value: this.query(workspaceVariableV2ControllerfindByName)
|
|
462
|
+
});
|
|
463
|
+
/**
|
|
464
|
+
* Updates workspace variable based on existing account variable
|
|
465
|
+
*/
|
|
466
|
+
Object.defineProperty(this, "updateWorkspaceVariable", {
|
|
467
|
+
enumerable: true,
|
|
468
|
+
configurable: true,
|
|
469
|
+
writable: true,
|
|
470
|
+
value: this.mutation(workspaceVariableV2Controllerupsert)
|
|
434
471
|
});
|
|
435
472
|
//Links
|
|
436
473
|
/**
|
|
@@ -440,7 +477,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
440
477
|
enumerable: true,
|
|
441
478
|
configurable: true,
|
|
442
479
|
writable: true,
|
|
443
|
-
value: this.query(
|
|
480
|
+
value: this.query(workspaceLinkControllergetWorkspaceLinks)
|
|
444
481
|
});
|
|
445
482
|
/**
|
|
446
483
|
* Adds a link to a workspace
|
|
@@ -449,7 +486,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
449
486
|
enumerable: true,
|
|
450
487
|
configurable: true,
|
|
451
488
|
writable: true,
|
|
452
|
-
value: this.mutation(
|
|
489
|
+
value: this.mutation(workspaceLinkControllersave)
|
|
453
490
|
});
|
|
454
491
|
/**
|
|
455
492
|
* Deletes a link from a workspace
|
|
@@ -458,7 +495,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
458
495
|
enumerable: true,
|
|
459
496
|
configurable: true,
|
|
460
497
|
writable: true,
|
|
461
|
-
value: this.mutation(
|
|
498
|
+
value: this.mutation(workspaceLinkControllerdelete)
|
|
462
499
|
});
|
|
463
500
|
/**
|
|
464
501
|
* Gets application link
|
|
@@ -467,7 +504,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
467
504
|
enumerable: true,
|
|
468
505
|
configurable: true,
|
|
469
506
|
writable: true,
|
|
470
|
-
value: this.query(
|
|
507
|
+
value: this.query(applicationLinkControllergetApplicationLink)
|
|
471
508
|
});
|
|
472
509
|
/**
|
|
473
510
|
* Adds a link to an application
|
|
@@ -476,7 +513,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
476
513
|
enumerable: true,
|
|
477
514
|
configurable: true,
|
|
478
515
|
writable: true,
|
|
479
|
-
value: this.mutation(
|
|
516
|
+
value: this.mutation(applicationLinkControllersave)
|
|
480
517
|
});
|
|
481
518
|
/**
|
|
482
519
|
* Deletes a link from an application
|
|
@@ -485,7 +522,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
485
522
|
enumerable: true,
|
|
486
523
|
configurable: true,
|
|
487
524
|
writable: true,
|
|
488
|
-
value: this.mutation(
|
|
525
|
+
value: this.mutation(applicationLinkControllerdelete)
|
|
489
526
|
});
|
|
490
527
|
/**
|
|
491
528
|
* Updates a link from an application
|
|
@@ -494,7 +531,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
494
531
|
enumerable: true,
|
|
495
532
|
configurable: true,
|
|
496
533
|
writable: true,
|
|
497
|
-
value: this.mutation(
|
|
534
|
+
value: this.mutation(applicationLinkControllerupdate)
|
|
498
535
|
});
|
|
499
536
|
/**
|
|
500
537
|
* Updates application links visibility
|
|
@@ -503,7 +540,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
503
540
|
enumerable: true,
|
|
504
541
|
configurable: true,
|
|
505
542
|
writable: true,
|
|
506
|
-
value: this.mutation(
|
|
543
|
+
value: this.mutation(applicationLinkControllerupdateLinksVisibility)
|
|
507
544
|
});
|
|
508
545
|
/**
|
|
509
546
|
* Gets shared infra link
|
|
@@ -512,7 +549,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
512
549
|
enumerable: true,
|
|
513
550
|
configurable: true,
|
|
514
551
|
writable: true,
|
|
515
|
-
value: this.query(
|
|
552
|
+
value: this.query(sharedInfraLinkControllergetSharedInfraLink)
|
|
516
553
|
});
|
|
517
554
|
/**
|
|
518
555
|
* Adds a link to an infra
|
|
@@ -521,7 +558,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
521
558
|
enumerable: true,
|
|
522
559
|
configurable: true,
|
|
523
560
|
writable: true,
|
|
524
|
-
value: this.mutation(
|
|
561
|
+
value: this.mutation(sharedInfraLinkControllersave)
|
|
525
562
|
});
|
|
526
563
|
/**
|
|
527
564
|
* Deletes a link from an infra
|
|
@@ -530,7 +567,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
530
567
|
enumerable: true,
|
|
531
568
|
configurable: true,
|
|
532
569
|
writable: true,
|
|
533
|
-
value: this.mutation(
|
|
570
|
+
value: this.mutation(sharedInfraLinkControllerdelete)
|
|
534
571
|
});
|
|
535
572
|
/**
|
|
536
573
|
* Updates a link from an infra
|
|
@@ -539,16 +576,16 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
539
576
|
enumerable: true,
|
|
540
577
|
configurable: true,
|
|
541
578
|
writable: true,
|
|
542
|
-
value: this.mutation(
|
|
579
|
+
value: this.mutation(sharedInfraLinkControllerupdate)
|
|
543
580
|
});
|
|
544
581
|
/**
|
|
545
|
-
|
|
546
|
-
|
|
582
|
+
* Updates infra links visibility
|
|
583
|
+
*/
|
|
547
584
|
Object.defineProperty(this, "updateLinkVisibilityInInfra", {
|
|
548
585
|
enumerable: true,
|
|
549
586
|
configurable: true,
|
|
550
587
|
writable: true,
|
|
551
|
-
value: this.mutation(
|
|
588
|
+
value: this.mutation(sharedInfraLinkControllerupdateLinksVisibility)
|
|
552
589
|
});
|
|
553
590
|
/**
|
|
554
591
|
* Gets stacks in a workspace. This fn is only used for permission purposes.
|
|
@@ -557,7 +594,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
557
594
|
enumerable: true,
|
|
558
595
|
configurable: true,
|
|
559
596
|
writable: true,
|
|
560
|
-
value: this.query(
|
|
597
|
+
value: this.query(workspaceStackControllergetStacks)
|
|
561
598
|
});
|
|
562
599
|
/**
|
|
563
600
|
* List workspace context inputs for a plugin or action in a stack. This fn is only used for permission purposes.
|
|
@@ -566,7 +603,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
566
603
|
enumerable: true,
|
|
567
604
|
configurable: true,
|
|
568
605
|
writable: true,
|
|
569
|
-
value: this.query(
|
|
606
|
+
value: this.query(contextControllerlistConsolidatedContext)
|
|
570
607
|
});
|
|
571
608
|
/**
|
|
572
609
|
* List account context inputs for a plugin or action in a stack. This fn is only used for permission purposes.
|
|
@@ -575,7 +612,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
575
612
|
enumerable: true,
|
|
576
613
|
configurable: true,
|
|
577
614
|
writable: true,
|
|
578
|
-
value: this.query(
|
|
615
|
+
value: this.query(contextControllerlistAccountContext)
|
|
579
616
|
});
|
|
580
617
|
/**
|
|
581
618
|
* Save workspace context inputs for a plugin or action in a stack. This fn is only used for permission purposes.
|
|
@@ -584,16 +621,34 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
584
621
|
enumerable: true,
|
|
585
622
|
configurable: true,
|
|
586
623
|
writable: true,
|
|
587
|
-
value: this.query(
|
|
624
|
+
value: this.query(contextControlleraddTypedContextInWorkspace)
|
|
588
625
|
});
|
|
589
626
|
/**
|
|
590
|
-
|
|
591
|
-
|
|
627
|
+
* Save workspace context inputs for a plugin or action in the account. This fn is only used for permission purposes.
|
|
628
|
+
*/
|
|
592
629
|
Object.defineProperty(this, "saveContextInAccount", {
|
|
593
630
|
enumerable: true,
|
|
594
631
|
configurable: true,
|
|
595
632
|
writable: true,
|
|
596
|
-
value: this.query(
|
|
633
|
+
value: this.query(contextControlleraddTypedContextInAccount)
|
|
634
|
+
});
|
|
635
|
+
/**
|
|
636
|
+
* Add stack to workspace. This fn is only used for permission purposes.
|
|
637
|
+
*/
|
|
638
|
+
Object.defineProperty(this, "addStackInWorkspace", {
|
|
639
|
+
enumerable: true,
|
|
640
|
+
configurable: true,
|
|
641
|
+
writable: true,
|
|
642
|
+
value: this.query(workspaceStackControlleraddStack)
|
|
643
|
+
});
|
|
644
|
+
/**
|
|
645
|
+
* Removes a stack from a workspace. This fn is only used for permission purposes.
|
|
646
|
+
*/
|
|
647
|
+
Object.defineProperty(this, "removeStackFromWorkspace", {
|
|
648
|
+
enumerable: true,
|
|
649
|
+
configurable: true,
|
|
650
|
+
writable: true,
|
|
651
|
+
value: this.query(workspaceStackControllerdeleteStack)
|
|
597
652
|
});
|
|
598
653
|
}
|
|
599
654
|
buildStackSpotError(error) {
|