@stack-spot/portal-network 0.30.0 → 0.31.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.
@@ -7,6 +7,7 @@ import {
7
7
  accountVariableControllerfindByName,
8
8
  accountVariableControllerupdate,
9
9
  accountVariableControllerusage,
10
+ applicationControllerdeleteApplication,
10
11
  applicationControllergetApplication,
11
12
  applicationControllergetApplications,
12
13
  applicationControllergetDependencyTree,
@@ -45,6 +46,7 @@ import {
45
46
  sharedInfraLinkControllersave,
46
47
  sharedInfraLinkControllerupdate,
47
48
  sharedInfraLinkControllerupdateLinksVisibility,
49
+ sharedInfrastructureControllerdeleteSharedInfra,
48
50
  sharedInfrastructureControllergetAllSharedInfrastructure,
49
51
  sharedInfrastructureControllergetDependencyTree,
50
52
  sharedInfrastructureControllergetSharedInfrastructure,
@@ -52,6 +54,7 @@ import {
52
54
  workflowAccountControllerdeleteAccountWorkflow,
53
55
  workflowAccountControllerlistAccountWorkflows,
54
56
  workflowWorkspaceControllerlistWorkflowByStackIdAndWorkflowType,
57
+ workspaceControllerdelete,
55
58
  workspaceControllergetWorkspaceForId,
56
59
  workspaceControllergetWorkspaces,
57
60
  workspaceControllergetWorkspacesFromUserPermission,
@@ -68,6 +71,7 @@ import {
68
71
  workspaceLinkControllersave,
69
72
  workspaceStackControlleraddStack,
70
73
  workspaceStackControllerdeleteStack,
74
+ workspaceStackControllergetStackById,
71
75
  workspaceStackControllergetStacks,
72
76
  workspaceVariableV2ControllerfindAll,
73
77
  workspaceVariableV2ControllerfindByName,
@@ -415,6 +419,30 @@ class WorkspaceClient extends ReactQueryNetworkClient {
415
419
  * Removes a stack from a workspace. This fn is only used for permission purposes.
416
420
  */
417
421
  removeStackFromWorkspace = this.query(workspaceStackControllerdeleteStack) as OperationObject<Parameters<typeof workspaceStackControllerdeleteStack>[0]>
422
+ /**
423
+ * Gets a stack in a workspace . This fn is only used for permission purposes.
424
+ */
425
+ stackInWorkspace = this.query(workspaceStackControllergetStackById) as OperationObject<Parameters<typeof workspaceStackControllergetStackById>[0]>
426
+ /**
427
+ * Deletes a workspace . This fn is only used for permission purposes.
428
+ */
429
+ deleteWorkspace = this.query(workspaceControllerdelete) as OperationObject<Parameters<typeof workspaceControllerdelete>[0]>
430
+ /**
431
+ * Deletes an application. This fn is only used for permission purposes.
432
+ */
433
+ deleteApplication = this.query(applicationControllerdeleteApplication) as OperationObject<Parameters<typeof applicationControllerdeleteApplication>[0]>
434
+ /**
435
+ * Deletes an infra. This fn is only used for permission purposes.
436
+ */
437
+ deleteInfra = this.query(sharedInfrastructureControllerdeleteSharedInfra) as OperationObject<Parameters<typeof sharedInfrastructureControllerdeleteSharedInfra>[0]>
438
+ /**
439
+ * Gets the detail of an application. This fn is only used for permission purposes.
440
+ */
441
+ applicationDetail = this.query(applicationControllergetApplication) as OperationObject<Parameters<typeof applicationControllergetApplication>[0]>
442
+ /**
443
+ * Gets the detail of an infra. This fn is only used for permission purposes.
444
+ */
445
+ infraDetail = this.query(sharedInfrastructureControllergetSharedInfrastructure) as OperationObject<Parameters<typeof sharedInfrastructureControllergetSharedInfrastructure>[0]>
418
446
  }
419
447
 
420
448
  export const workspaceClient = new WorkspaceClient()