@stack-spot/portal-network 0.73.0 → 0.74.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 +7 -0
- package/dist/api/workspaceManager.d.ts +211 -10
- package/dist/api/workspaceManager.d.ts.map +1 -1
- package/dist/api/workspaceManager.js +103 -2
- package/dist/api/workspaceManager.js.map +1 -1
- package/dist/client/workspace-manager.d.ts +74 -0
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +84 -1
- package/dist/client/workspace-manager.js.map +1 -1
- package/dist/client/workspace.d.ts +11 -2
- package/dist/client/workspace.d.ts.map +1 -1
- package/dist/client/workspace.js +9 -0
- package/dist/client/workspace.js.map +1 -1
- package/package.json +1 -1
- package/src/api/workspaceManager.ts +328 -12
- package/src/client/workspace-manager.ts +60 -9
- package/src/client/workspace.ts +10 -1
|
@@ -5,6 +5,12 @@ import {
|
|
|
5
5
|
accountApplicationControllergetAccountApplicationsFilters,
|
|
6
6
|
accountSharedInfraControllergetAccountSharedInfraFilters,
|
|
7
7
|
accountSharedInfraControllergetAccountSharedInfraPage,
|
|
8
|
+
accountVariableControllercreate,
|
|
9
|
+
accountVariableControllerdelete,
|
|
10
|
+
accountVariableControllerfindAll,
|
|
11
|
+
accountVariableControllerfindByName,
|
|
12
|
+
accountVariableControllerupdate,
|
|
13
|
+
accountVariableControllerusage,
|
|
8
14
|
applicationControllerV2GetApplicationActivities,
|
|
9
15
|
applicationControllerV2GetApplicationAppliedPlugins,
|
|
10
16
|
applicationControllergetApplicationDetails,
|
|
@@ -40,6 +46,9 @@ import {
|
|
|
40
46
|
workspaceStackControllerdeleteStacksInWorkspace,
|
|
41
47
|
workspaceStackControllerlistStacks,
|
|
42
48
|
workspaceStackControllerrefreshStacksInWorkspace,
|
|
49
|
+
workspaceVariableControllerV2FindAll,
|
|
50
|
+
workspaceVariableControllerV2FindByName,
|
|
51
|
+
workspaceVariableControllerV2Upsert,
|
|
43
52
|
} from '../api/workspaceManager'
|
|
44
53
|
import apis from '../apis.json'
|
|
45
54
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
@@ -120,12 +129,12 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
|
|
|
120
129
|
/**
|
|
121
130
|
* Gets workflow in a workspace stack
|
|
122
131
|
*/
|
|
123
|
-
workflowDataWithInputsInWorkspace = this.query(contextWorkflowControllergetConsolidatedWorkflowInputs as
|
|
132
|
+
workflowDataWithInputsInWorkspace = this.query(contextWorkflowControllergetConsolidatedWorkflowInputs as
|
|
124
133
|
unknown as ReplaceResult<typeof contextWorkflowControllergetConsolidatedWorkflowInputs, FixedWorkflowForCreationResponse>)
|
|
125
134
|
/**
|
|
126
135
|
* Gets workflow inputs in an account stack
|
|
127
136
|
*/
|
|
128
|
-
workflowInputsInAccount = this.query(contextWorkflowControllergetAccountWorkflowInputs as
|
|
137
|
+
workflowInputsInAccount = this.query(contextWorkflowControllergetAccountWorkflowInputs as
|
|
129
138
|
unknown as ReplaceResult<typeof contextWorkflowControllergetAccountWorkflowInputs, FixedFullInputContextResponse>)
|
|
130
139
|
/**
|
|
131
140
|
* Gets inputs from a plugin in account context
|
|
@@ -285,12 +294,12 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
|
|
|
285
294
|
/**
|
|
286
295
|
* Gets activities of a shared infra
|
|
287
296
|
*/
|
|
288
|
-
activitiesSharedInfra = this.infiniteQuery(sharedInfraControllerV2GetSharedInfraActivities as unknown as ReplaceResult<typeof sharedInfraControllerV2GetSharedInfraActivities, FixedPaginatedActivityResponse>,
|
|
297
|
+
activitiesSharedInfra = this.infiniteQuery(sharedInfraControllerV2GetSharedInfraActivities as unknown as ReplaceResult<typeof sharedInfraControllerV2GetSharedInfraActivities, FixedPaginatedActivityResponse>,
|
|
289
298
|
{ accumulator: 'items', initialPageParam: 0 })
|
|
290
299
|
/**
|
|
291
300
|
* Gets activities of an application
|
|
292
301
|
*/
|
|
293
|
-
activitiesApplication = this.infiniteQuery(applicationControllerV2GetApplicationActivities
|
|
302
|
+
activitiesApplication = this.infiniteQuery(applicationControllerV2GetApplicationActivities as unknown as ReplaceResult<typeof applicationControllerV2GetApplicationActivities, FixedPaginatedActivityResponse>,
|
|
294
303
|
{ accumulator: 'items', initialPageParam: 0 })
|
|
295
304
|
/**
|
|
296
305
|
* Updates Stacks To Latest Version By Workspace
|
|
@@ -315,13 +324,13 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
|
|
|
315
324
|
/**
|
|
316
325
|
* Get all stacks used to create infra in a workspace.
|
|
317
326
|
*/
|
|
318
|
-
filterStacksFromInfraInWorkspace = this.query(sharedInfraControllergetSharedInfraFilters)
|
|
327
|
+
filterStacksFromInfraInWorkspace = this.query(sharedInfraControllergetSharedInfraFilters)
|
|
319
328
|
|
|
320
329
|
/**
|
|
321
330
|
* Get all workspaces associated with an account.
|
|
322
331
|
*/
|
|
323
332
|
getAccountWorkspaces = this.query(workspaceControllergetWorkspaces)
|
|
324
|
-
|
|
333
|
+
|
|
325
334
|
/**
|
|
326
335
|
* Get all applications associated with an account.
|
|
327
336
|
*/
|
|
@@ -332,11 +341,53 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
|
|
|
332
341
|
*/
|
|
333
342
|
getAccountSharedInfra = this.query(accountSharedInfraControllergetAccountSharedInfraPage)
|
|
334
343
|
|
|
335
|
-
/** * Gets filters for applications associated with an account. */
|
|
344
|
+
/** * Gets filters for applications associated with an account. */
|
|
336
345
|
getAccountApplicationsFilters = this.query(accountApplicationControllergetAccountApplicationsFilters)
|
|
337
|
-
|
|
338
|
-
/** * Gets filters for shared infrastructures associated with an account. */
|
|
346
|
+
|
|
347
|
+
/** * Gets filters for shared infrastructures associated with an account. */
|
|
339
348
|
getAccountSharedInfraFilters = this.query(accountSharedInfraControllergetAccountSharedInfraFilters)
|
|
349
|
+
|
|
350
|
+
// Variables Account
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Find all account variables
|
|
354
|
+
*/
|
|
355
|
+
accountVariables = this.query(accountVariableControllerfindAll)
|
|
356
|
+
/**
|
|
357
|
+
* Get an account variable by name
|
|
358
|
+
*/
|
|
359
|
+
getAccountVariable = this.query(accountVariableControllerfindByName)
|
|
360
|
+
/**
|
|
361
|
+
* Get account variable usage
|
|
362
|
+
*/
|
|
363
|
+
accountVariableUsage = this.query(accountVariableControllerusage)
|
|
364
|
+
/**
|
|
365
|
+
* Create account variable
|
|
366
|
+
*/
|
|
367
|
+
createAccountVariable = this.mutation(accountVariableControllercreate)
|
|
368
|
+
/**
|
|
369
|
+
* Update account variable
|
|
370
|
+
*/
|
|
371
|
+
updateAccountVariable = this.mutation(accountVariableControllerupdate)
|
|
372
|
+
/**
|
|
373
|
+
* Delete account variable
|
|
374
|
+
*/
|
|
375
|
+
deleteAccountVariable = this.mutation(accountVariableControllerdelete)
|
|
376
|
+
|
|
377
|
+
// Variables Workspace
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Find all workspace variables
|
|
381
|
+
*/
|
|
382
|
+
workspaceVariables = this.query(workspaceVariableControllerV2FindAll)
|
|
383
|
+
/**
|
|
384
|
+
* Get a workspace variable by name
|
|
385
|
+
*/
|
|
386
|
+
getWorkspaceVariable = this.query(workspaceVariableControllerV2FindByName)
|
|
387
|
+
/**
|
|
388
|
+
* Updates workspace variable based on existing account variable
|
|
389
|
+
*/
|
|
390
|
+
updateWorkspaceVariable = this.mutation(workspaceVariableControllerV2Upsert)
|
|
340
391
|
}
|
|
341
392
|
|
|
342
393
|
export const workspaceManagerClient = new WorkspaceManagerClient()
|
package/src/client/workspace.ts
CHANGED
|
@@ -267,7 +267,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
267
267
|
* Gets the dependencies of a shared infra
|
|
268
268
|
*/
|
|
269
269
|
sharedInfraDependencies = this.query(workspaceSharedInfrastructureControllergetDependencyTree)
|
|
270
|
-
|
|
270
|
+
|
|
271
271
|
/**
|
|
272
272
|
* Updates an application
|
|
273
273
|
*/
|
|
@@ -300,26 +300,32 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
300
300
|
|
|
301
301
|
/**
|
|
302
302
|
* Find all account variables
|
|
303
|
+
* @deprecated consume from Workspace Manager API
|
|
303
304
|
*/
|
|
304
305
|
accountVariables = this.query(accountVariableControllerfindAll)
|
|
305
306
|
/**
|
|
306
307
|
* Get an account variable by name
|
|
308
|
+
* @deprecated consume from Workspace Manager API
|
|
307
309
|
*/
|
|
308
310
|
getAccountVariable = this.query(accountVariableControllerfindByName)
|
|
309
311
|
/**
|
|
310
312
|
* Get account variable usage
|
|
313
|
+
* @deprecated consume from Workspace Manager API
|
|
311
314
|
*/
|
|
312
315
|
accountVariableUsage = this.query(accountVariableControllerusage)
|
|
313
316
|
/**
|
|
314
317
|
* Create account variable
|
|
318
|
+
* @deprecated consume from Workspace Manager API
|
|
315
319
|
*/
|
|
316
320
|
createAccountVariable = this.mutation(accountVariableControllercreate)
|
|
317
321
|
/**
|
|
318
322
|
* Update account variable
|
|
323
|
+
* @deprecated consume from Workspace Manager API
|
|
319
324
|
*/
|
|
320
325
|
updateAccountVariable = this.mutation(accountVariableControllerupdate)
|
|
321
326
|
/**
|
|
322
327
|
* Delete account variable
|
|
328
|
+
* @deprecated consume from Workspace Manager API
|
|
323
329
|
*/
|
|
324
330
|
deleteAccountVariable = this.mutation(accountVariableControllerdelete)
|
|
325
331
|
|
|
@@ -327,14 +333,17 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
327
333
|
|
|
328
334
|
/**
|
|
329
335
|
* Find all workspace variables
|
|
336
|
+
* @deprecated consume from Workspace Manager API
|
|
330
337
|
*/
|
|
331
338
|
workspaceVariables = this.query(workspaceVariableV2ControllerfindAll)
|
|
332
339
|
/**
|
|
333
340
|
* Get a workspace variable by name
|
|
341
|
+
* @deprecated consume from Workspace Manager API
|
|
334
342
|
*/
|
|
335
343
|
getWorkspaceVariable = this.query(workspaceVariableV2ControllerfindByName)
|
|
336
344
|
/**
|
|
337
345
|
* Updates workspace variable based on existing account variable
|
|
346
|
+
* @deprecated consume from Workspace Manager API
|
|
338
347
|
*/
|
|
339
348
|
updateWorkspaceVariable = this.mutation(workspaceVariableV2Controllerupsert)
|
|
340
349
|
|