@stack-spot/portal-network 0.58.2 → 0.58.4
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 +14 -0
- package/dist/api/cloudRuntimes.d.ts +57 -8
- package/dist/api/cloudRuntimes.d.ts.map +1 -1
- package/dist/api/cloudRuntimes.js +11 -6
- package/dist/api/cloudRuntimes.js.map +1 -1
- package/dist/api/content.d.ts +32 -32
- package/dist/api/content.d.ts.map +1 -1
- package/dist/api/workspaceManager.d.ts +69 -126
- package/dist/api/workspaceManager.d.ts.map +1 -1
- package/dist/api/workspaceManager.js +40 -84
- package/dist/api/workspaceManager.js.map +1 -1
- package/dist/client/account.d.ts +41 -0
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +55 -1
- package/dist/client/account.js.map +1 -1
- package/dist/client/cloud-runtimes.d.ts +20 -6
- package/dist/client/cloud-runtimes.d.ts.map +1 -1
- package/dist/client/cloud-runtimes.js +19 -1
- package/dist/client/cloud-runtimes.js.map +1 -1
- package/dist/client/content.d.ts +30 -1
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +29 -2
- package/dist/client/content.js.map +1 -1
- package/dist/client/workspace-manager.d.ts +42 -2
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +32 -5
- package/dist/client/workspace-manager.js.map +1 -1
- package/dist/client/workspace.d.ts +14 -2
- package/dist/client/workspace.d.ts.map +1 -1
- package/dist/client/workspace.js +10 -1
- package/dist/client/workspace.js.map +1 -1
- package/package.json +1 -1
- package/src/api/cloudRuntimes.ts +96 -16
- package/src/api/content.ts +32 -32
- package/src/api/workspaceManager.ts +108 -209
- package/src/client/account.ts +36 -1
- package/src/client/cloud-runtimes.ts +10 -0
- package/src/client/content.ts +89 -15
- package/src/client/workspace-manager.ts +30 -13
- package/src/client/workspace.ts +6 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/* eslint-disable max-len */
|
|
2
2
|
import { HttpError } from '@oazapfts/runtime'
|
|
3
3
|
import {
|
|
4
|
+
accountApplicationControllergetAccountApplicationPage,
|
|
5
|
+
accountSharedInfraControllergetAccountSharedInfraPage,
|
|
4
6
|
applicationControllerV2GetApplicationActivities,
|
|
5
7
|
applicationControllerV2GetApplicationAppliedPlugins,
|
|
6
8
|
applicationControllergetApplicationDetails,
|
|
@@ -13,9 +15,9 @@ import {
|
|
|
13
15
|
contextControllerupsertPluginAccountContext,
|
|
14
16
|
contextControllerupsertPluginWorkspaceContext,
|
|
15
17
|
contextControllerupsertWorkspaceActionsInputContext,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
contextControllergetAccountPluginInputs,
|
|
19
|
+
contextControllergetConsolidatedPluginInputs,
|
|
20
|
+
contextgetConsolidatedPluginInputsWithConnectionInterfaces,
|
|
19
21
|
defaults,
|
|
20
22
|
managerRunControllerdeleteApplication,
|
|
21
23
|
managerRunControllerdeleteSharedInfra,
|
|
@@ -98,11 +100,11 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
|
|
|
98
100
|
*/
|
|
99
101
|
pluginInputsInWorkspace = this.query({
|
|
100
102
|
name: 'pluginInputsInWorkspace',
|
|
101
|
-
request: async (signal, variables: Parameters<typeof
|
|
102
|
-
const data = await
|
|
103
|
-
return data as FixedFullInputContextResponse
|
|
103
|
+
request: async (signal, variables: Parameters<typeof contextControllergetConsolidatedPluginInputs>[0]) => {
|
|
104
|
+
const data = await contextControllergetConsolidatedPluginInputs(variables, { signal })
|
|
105
|
+
return data as unknown as FixedFullInputContextResponse
|
|
104
106
|
},
|
|
105
|
-
permission: async ({ workspaceId, stackVersionId }: Parameters<typeof
|
|
107
|
+
permission: async ({ workspaceId, stackVersionId }: Parameters<typeof contextControllergetConsolidatedPluginInputs>[0]) => {
|
|
106
108
|
const canViewContext = await workspaceClient.listConsolidatedWorkspaceContext.isAllowed({ $type: 'plugin', workspaceId, stackVersionId })
|
|
107
109
|
const canGetConnectionInterfaceTypes = await contentClient.connectionInterfaceTypes.isAllowed()
|
|
108
110
|
const canGetPluginVersions = await contentClient.pluginVersionsByIds.isAllowed({})
|
|
@@ -114,11 +116,11 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
|
|
|
114
116
|
*/
|
|
115
117
|
pluginInputsAccount = this.query({
|
|
116
118
|
name: 'pluginInputsAccount',
|
|
117
|
-
request: async (signal, variables: Parameters<typeof
|
|
118
|
-
const data = await
|
|
119
|
-
return data as FixedFullInputContextResponse
|
|
119
|
+
request: async (signal, variables: Parameters<typeof contextControllergetAccountPluginInputs>[0]) => {
|
|
120
|
+
const data = await contextControllergetAccountPluginInputs(variables, { signal })
|
|
121
|
+
return data as unknown as FixedFullInputContextResponse
|
|
120
122
|
},
|
|
121
|
-
permission: async ({ stackVersionId }: Parameters<typeof
|
|
123
|
+
permission: async ({ stackVersionId }: Parameters<typeof contextControllergetAccountPluginInputs>[0]) => {
|
|
122
124
|
const canViewContext = await workspaceClient.listConsolidatedContext.isAllowed({ $type: 'plugin', stackVersionId })
|
|
123
125
|
const canGetConnectionInterfaceTypes = await contentClient.connectionInterfaceTypes.isAllowed()
|
|
124
126
|
const canGetPluginVersions = await contentClient.pluginVersionsByIds.isAllowed({})
|
|
@@ -164,7 +166,7 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
|
|
|
164
166
|
/**
|
|
165
167
|
* Gets plugin inputs and connection interface from a plugin in a stack version in workspace
|
|
166
168
|
*/
|
|
167
|
-
pluginInputsWithConnectionInterfaces = this.query(
|
|
169
|
+
pluginInputsWithConnectionInterfaces = this.query(contextgetConsolidatedPluginInputsWithConnectionInterfaces as unknown as ReplaceResult<typeof contextgetConsolidatedPluginInputsWithConnectionInterfaces, FixedPluginForAppCreationV2Response>)
|
|
168
170
|
/**
|
|
169
171
|
* Gets workflows from a given stack and workflow type
|
|
170
172
|
*/
|
|
@@ -287,9 +289,24 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
|
|
|
287
289
|
*/
|
|
288
290
|
filterStacksFromApplicationInWorkspace = this.query(applicationControllergetApplicationFilters)
|
|
289
291
|
/**
|
|
290
|
-
* Get all stacks used to create infra in a workspace
|
|
292
|
+
* Get all stacks used to create infra in a workspace.
|
|
291
293
|
*/
|
|
292
294
|
filterStacksFromInfraInWorkspace = this.query(sharedInfraControllergetSharedInfraFilters)
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Get all workspaces associated with an account.
|
|
298
|
+
*/
|
|
299
|
+
getAccountWorkspaces = this.query(workspaceControllergetWorkspaces)
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Get all applications associated with an account.
|
|
303
|
+
*/
|
|
304
|
+
getAccountApplications = this.query(accountApplicationControllergetAccountApplicationPage)
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Get all shared infrastructures associated with an account.
|
|
308
|
+
*/
|
|
309
|
+
getAccountSharedInfra = this.query(accountSharedInfraControllergetAccountSharedInfraPage)
|
|
293
310
|
}
|
|
294
311
|
|
|
295
312
|
export const workspaceManagerClient = new WorkspaceManagerClient()
|
package/src/client/workspace.ts
CHANGED
|
@@ -73,6 +73,7 @@ import {
|
|
|
73
73
|
workspaceStackControllerdeleteStack,
|
|
74
74
|
workspaceStackControllergetStackById,
|
|
75
75
|
workspaceStackControllergetStacks,
|
|
76
|
+
workspaceV2ControllergetWorkspacesWithoutStackFilter,
|
|
76
77
|
workspaceVariableV2ControllerfindAll,
|
|
77
78
|
workspaceVariableV2ControllerfindByName,
|
|
78
79
|
workspaceVariableV2Controllerupsert,
|
|
@@ -266,7 +267,7 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
266
267
|
* Gets the dependencies of a shared infra
|
|
267
268
|
*/
|
|
268
269
|
sharedInfraDependencies = this.query(workspaceSharedInfrastructureControllergetDependencyTree)
|
|
269
|
-
|
|
270
|
+
|
|
270
271
|
/**
|
|
271
272
|
* Updates an application
|
|
272
273
|
*/
|
|
@@ -443,6 +444,10 @@ class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
443
444
|
* Gets the detail of an infra. This fn is only used for permission purposes.
|
|
444
445
|
*/
|
|
445
446
|
infraDetail = this.query(workspaceSharedInfrastructureControllergetSharedInfrastructure) as OperationObject<Parameters<typeof workspaceSharedInfrastructureControllergetSharedInfrastructure>[0]>
|
|
447
|
+
/**
|
|
448
|
+
* Get all workspaces without stack version and favorites filter
|
|
449
|
+
*/
|
|
450
|
+
getWorkspacesWithoutStackFilter = this.query(workspaceV2ControllergetWorkspacesWithoutStackFilter)
|
|
446
451
|
}
|
|
447
452
|
|
|
448
453
|
export const workspaceClient = new WorkspaceClient()
|