@stack-spot/portal-network 0.94.1 → 0.95.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 +8 -0
- package/dist/api/codeShift.d.ts +34 -1
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +42 -2
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/workspaceManager.d.ts +18 -0
- package/dist/api/workspaceManager.d.ts.map +1 -1
- package/dist/api/workspaceManager.js +26 -2
- package/dist/api/workspaceManager.js.map +1 -1
- package/dist/client/code-shift.d.ts +7 -0
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +7 -1
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/workspace-manager.d.ts +33 -2
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +55 -3
- package/dist/client/workspace-manager.js.map +1 -1
- package/dist/error/dictionary/workspace.d.ts +2 -0
- package/dist/error/dictionary/workspace.d.ts.map +1 -1
- package/dist/error/dictionary/workspace.js +2 -0
- package/dist/error/dictionary/workspace.js.map +1 -1
- package/package.json +1 -1
- package/src/api/codeShift.ts +123 -2
- package/src/api/workspaceManager.ts +40 -2
- package/src/client/code-shift.ts +4 -1
- package/src/client/workspace-manager.ts +45 -2
- package/src/error/dictionary/workspace.ts +2 -0
|
@@ -21,6 +21,9 @@ import {
|
|
|
21
21
|
contentWorkflowControllercreateSharedInfraThroughWorkflow,
|
|
22
22
|
contextActionControllergetStackActionInputsInAccountContext,
|
|
23
23
|
contextActionControllergetStackActionInputsInWorkspaceContext,
|
|
24
|
+
contextControllerclearActionContextInAccount,
|
|
25
|
+
contextControllerclearActionContextInWorkspace,
|
|
26
|
+
contextControllerclearPluginContextInWorkspace,
|
|
24
27
|
contextControllerupsertAccountActionsInputContext,
|
|
25
28
|
contextControllerupsertPluginAccountContext,
|
|
26
29
|
contextControllerupsertPluginWorkspaceContext,
|
|
@@ -159,7 +162,7 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
|
|
|
159
162
|
},
|
|
160
163
|
})
|
|
161
164
|
/**
|
|
162
|
-
* Update context inputs from
|
|
165
|
+
* Update context inputs from a plugin in workspace
|
|
163
166
|
*/
|
|
164
167
|
updateInputContextPluginWorkspace = this.mutation({
|
|
165
168
|
name: 'updateInputContextPluginWorkspace',
|
|
@@ -169,7 +172,17 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
|
|
|
169
172
|
workspaceClient.saveContextInWorkspace.isAllowed({ $type: 'plugin', workspaceId, stackVersionId, externalId: pluginVersionId }),
|
|
170
173
|
})
|
|
171
174
|
/**
|
|
172
|
-
*
|
|
175
|
+
* Clear context of inputs from a plugin in workspace
|
|
176
|
+
*/
|
|
177
|
+
clearInputContextPluginWorkspace = this.mutation({
|
|
178
|
+
name: 'clearInputContextPluginWorkspace',
|
|
179
|
+
request: async (signal, variables: Parameters<typeof contextControllerclearPluginContextInWorkspace>[0]) =>
|
|
180
|
+
contextControllerclearPluginContextInWorkspace(variables, { signal }),
|
|
181
|
+
permission: async ({ stackVersionId, workspaceId, pluginVersionId }: Parameters<typeof contextControllerclearPluginContextInWorkspace>[0]) =>
|
|
182
|
+
workspaceClient.saveContextInWorkspace.isAllowed({ $type: 'plugin', workspaceId, stackVersionId, externalId: pluginVersionId }),
|
|
183
|
+
})
|
|
184
|
+
/**
|
|
185
|
+
* Update context inputs from a plugin in account
|
|
173
186
|
*/
|
|
174
187
|
updateInputContextPluginAccount = this.mutation({
|
|
175
188
|
name: 'updateInputContextPluginAccount',
|
|
@@ -178,6 +191,16 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
|
|
|
178
191
|
permission: async ({ stackVersionId, pluginVersionId }: Parameters<typeof contextControllerupsertPluginAccountContext>[0]) =>
|
|
179
192
|
workspaceClient.saveContextInAccount.isAllowed({ $type: 'plugin', stackVersionId, externalId: pluginVersionId }),
|
|
180
193
|
})
|
|
194
|
+
/**
|
|
195
|
+
* Clear context of inputs from an plugin in account
|
|
196
|
+
*/
|
|
197
|
+
clearInputContextPluginAccount = this.mutation({
|
|
198
|
+
name: 'clearInputContextPluginAccount',
|
|
199
|
+
request: async (signal, variables: Parameters<typeof contextControllerupsertPluginAccountContext>[0]) =>
|
|
200
|
+
contextControllerupsertPluginAccountContext(variables, { signal }),
|
|
201
|
+
permission: async ({ stackVersionId, pluginVersionId }: Parameters<typeof contextControllerupsertPluginAccountContext>[0]) =>
|
|
202
|
+
workspaceClient.saveContextInAccount.isAllowed({ $type: 'plugin', stackVersionId, externalId: pluginVersionId }),
|
|
203
|
+
})
|
|
181
204
|
/**
|
|
182
205
|
* Gets links in a shared infra for a given env
|
|
183
206
|
*/
|
|
@@ -251,6 +274,16 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
|
|
|
251
274
|
permission: async ({ stackVersionId, workspaceId, actionVersionId }: Parameters<typeof contextControllerupsertWorkspaceActionsInputContext>[0]) =>
|
|
252
275
|
workspaceClient.saveContextInWorkspace.isAllowed({ $type: 'action', workspaceId, stackVersionId, externalId: actionVersionId }),
|
|
253
276
|
})
|
|
277
|
+
/**
|
|
278
|
+
* Clear context inputs from an action in workspace
|
|
279
|
+
*/
|
|
280
|
+
clearInputContextActionWorkspace = this.mutation({
|
|
281
|
+
name: 'clearInputContextActionWorkspace',
|
|
282
|
+
request: async (signal, variables: Parameters<typeof contextControllerclearActionContextInWorkspace>[0]) =>
|
|
283
|
+
contextControllerclearActionContextInWorkspace(variables, { signal }),
|
|
284
|
+
permission: async ({ stackVersionId, workspaceId, actionVersionId }: Parameters<typeof contextControllerclearActionContextInWorkspace>[0]) =>
|
|
285
|
+
workspaceClient.saveContextInWorkspace.isAllowed({ $type: 'action', workspaceId, stackVersionId, externalId: actionVersionId }),
|
|
286
|
+
})
|
|
254
287
|
/**
|
|
255
288
|
* Update context inputs from an action in account
|
|
256
289
|
*/
|
|
@@ -261,6 +294,16 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
|
|
|
261
294
|
permission: async ({ stackVersionId, actionVersionId }: Parameters<typeof contextControllerupsertAccountActionsInputContext>[0]) =>
|
|
262
295
|
workspaceClient.saveContextInAccount.isAllowed({ $type: 'action', stackVersionId, externalId: actionVersionId }),
|
|
263
296
|
})
|
|
297
|
+
/**
|
|
298
|
+
* Clear context inputs from an action in account
|
|
299
|
+
*/
|
|
300
|
+
clearInputContextActionAccount = this.mutation({
|
|
301
|
+
name: 'clearInputContextActionAccount',
|
|
302
|
+
request: async (signal, variables: Parameters<typeof contextControllerclearActionContextInAccount>[0]) =>
|
|
303
|
+
contextControllerclearActionContextInAccount(variables, { signal }),
|
|
304
|
+
permission: async ({ stackVersionId, actionVersionId }: Parameters<typeof contextControllerclearActionContextInAccount>[0]) =>
|
|
305
|
+
workspaceClient.saveContextInAccount.isAllowed({ $type: 'action', stackVersionId, externalId: actionVersionId }),
|
|
306
|
+
})
|
|
264
307
|
/**
|
|
265
308
|
* Gets details of an application in an environment
|
|
266
309
|
*/
|
|
@@ -79,6 +79,7 @@ export const workspaceDictionary = {
|
|
|
79
79
|
WKS_PLUGIN_NOT_ASSOCIATED_WITH_SPECIFIC_STACK_VERSION: 'Plugin {1} is not associated with stack {2}',
|
|
80
80
|
WKS_PARAMETER_CONFIG_NOT_FOUND: 'Parameter {1} is missing in Workspace',
|
|
81
81
|
WKS_CONTEXT_ATTRIBUTE_NOT_ALLOWED_FOR_ACCOUNT: 'Connection inputs are not allowed in account contexts',
|
|
82
|
+
WKS_CONTEXT_ATTRIBUTE_TYPE_ERROR: 'Value {1} doesn\'t match the expected type for this input. Expected type: {2}',
|
|
82
83
|
SCM_API_4001_GITHUB_GET_REPO_BRANCHES_NOT_FOUND: 'The specified repository could not be found on GitHub.',
|
|
83
84
|
SCM_API_4002_GITHUB_GET_REPO_BRANCHES_UNAUTHORIZED: 'Unauthorized access to the repository on GitHub. Please check your credentials.',
|
|
84
85
|
SCM_API_4002_GITHUB_GET_REPO_BRANCHES_FORBIDDEN: 'Access to the repository on GitHub is forbidden. Verify your permissions.',
|
|
@@ -176,6 +177,7 @@ export const workspaceDictionary = {
|
|
|
176
177
|
WKS_PLUGIN_NOT_ASSOCIATED_WITH_SPECIFIC_STACK_VERSION: 'O plugin {1} não está associado à stack {2}',
|
|
177
178
|
WKS_PARAMETER_CONFIG_NOT_FOUND: 'O parâmetro {1} está ausente no Workspace',
|
|
178
179
|
WKS_CONTEXT_ATTRIBUTE_NOT_ALLOWED_FOR_ACCOUNT: 'Entradas de conexão não são permitidas em contextos de conta',
|
|
180
|
+
WKS_CONTEXT_ATTRIBUTE_TYPE_ERROR: 'O valor {1} não corresponde ao tipo esperado para este input. Tipo esperado: {2}',
|
|
179
181
|
SCM_API_4001_GITHUB_GET_REPO_BRANCHES_NOT_FOUND: 'O repositório especificado não foi encontrado no GitHub.',
|
|
180
182
|
SCM_API_4002_GITHUB_GET_REPO_BRANCHES_UNAUTHORIZED: 'Acesso não autorizado ao repositório no GitHub. Verifique suas credenciais.',
|
|
181
183
|
SCM_API_4002_GITHUB_GET_REPO_BRANCHES_FORBIDDEN: 'Acesso ao repositório no GitHub foi proibido. Verifique suas permissões.',
|