@stack-spot/portal-network 0.58.7 → 0.60.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 +14 -0
- package/dist/api/content.d.ts +183 -57
- package/dist/api/content.d.ts.map +1 -1
- package/dist/api/content.js +38 -1
- package/dist/api/content.js.map +1 -1
- package/dist/api/workspaceManager.d.ts +4 -8
- package/dist/api/workspaceManager.d.ts.map +1 -1
- package/dist/api/workspaceManager.js +10 -0
- package/dist/api/workspaceManager.js.map +1 -1
- package/dist/client/content.d.ts +20 -1
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +20 -2
- package/dist/client/content.js.map +1 -1
- package/dist/client/workspace-manager.d.ts +4 -0
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +15 -1
- package/dist/client/workspace-manager.js.map +1 -1
- package/package.json +1 -1
- package/src/api/content.ts +265 -57
- package/src/api/workspaceManager.ts +20 -10
- package/src/client/content.ts +11 -1
- package/src/client/workspace-manager.ts +8 -0
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
5
|
* See https://www.npmjs.com/package/oazapfts
|
|
6
6
|
*/
|
|
7
|
-
import * as Oazapfts from "@oazapfts/runtime"
|
|
8
|
-
import * as QS from "@oazapfts/runtime/query"
|
|
7
|
+
import * as Oazapfts from "@oazapfts/runtime"
|
|
8
|
+
import * as QS from "@oazapfts/runtime/query"
|
|
9
9
|
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
10
|
headers: {},
|
|
11
11
|
baseUrl: "https://workspace-workspace-manager.dev.stackspot.com",
|
|
@@ -174,6 +174,7 @@ export type SimpleStackResponse = {
|
|
|
174
174
|
stackId: string;
|
|
175
175
|
name: string;
|
|
176
176
|
slug: string;
|
|
177
|
+
imageUrl?: string;
|
|
177
178
|
studio: StudioResponse;
|
|
178
179
|
};
|
|
179
180
|
export type WorkflowAccountSettingsResponse = {
|
|
@@ -690,13 +691,6 @@ export type WorkspacePageResponse = {
|
|
|
690
691
|
totalPages: number;
|
|
691
692
|
items: WorkspaceResponse[];
|
|
692
693
|
};
|
|
693
|
-
export type SimpleStackWithImageResponse = {
|
|
694
|
-
stackId: string;
|
|
695
|
-
name: string;
|
|
696
|
-
slug: string;
|
|
697
|
-
imageUrl?: string;
|
|
698
|
-
studio: StudioResponse;
|
|
699
|
-
};
|
|
700
694
|
export type WorkflowCompleteResponse = {
|
|
701
695
|
workflowId: string;
|
|
702
696
|
name: string;
|
|
@@ -1570,7 +1564,7 @@ export function workflowWorkspaceControllerlistStacks({ workspaceId, workflowId
|
|
|
1570
1564
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1571
1565
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1572
1566
|
status: 200;
|
|
1573
|
-
data:
|
|
1567
|
+
data: SimpleStackResponse[];
|
|
1574
1568
|
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/workflows/${encodeURIComponent(workflowId)}/stacks`, {
|
|
1575
1569
|
...opts
|
|
1576
1570
|
}));
|
|
@@ -1810,6 +1804,14 @@ export function accountSharedInfraControllergetAccountSharedInfraPage({ page, si
|
|
|
1810
1804
|
...opts
|
|
1811
1805
|
}));
|
|
1812
1806
|
}
|
|
1807
|
+
export function accountSharedInfraControllergetAccountApplicationsFilters(opts?: Oazapfts.RequestOpts) {
|
|
1808
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1809
|
+
status: 200;
|
|
1810
|
+
data: StackFilterResponse;
|
|
1811
|
+
}>("/v1/shared-infra/filters", {
|
|
1812
|
+
...opts
|
|
1813
|
+
}));
|
|
1814
|
+
}
|
|
1813
1815
|
export function contextControllergetStackActionInputsInWorkspaceContext({ workspaceId, stackVersionId, actionsVersionId, envName }: {
|
|
1814
1816
|
workspaceId: string;
|
|
1815
1817
|
stackVersionId: string;
|
|
@@ -1865,6 +1867,14 @@ export function accountApplicationControllergetAccountApplicationPage({ page, si
|
|
|
1865
1867
|
...opts
|
|
1866
1868
|
}));
|
|
1867
1869
|
}
|
|
1870
|
+
export function accountApplicationControllergetAccountApplicationsFilters(opts?: Oazapfts.RequestOpts) {
|
|
1871
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1872
|
+
status: 200;
|
|
1873
|
+
data: StackFilterResponse;
|
|
1874
|
+
}>("/v1/applications/filters", {
|
|
1875
|
+
...opts
|
|
1876
|
+
}));
|
|
1877
|
+
}
|
|
1868
1878
|
export function accountStackControllerlistStacksByAccountWithWorkflow({ workspaceId }: {
|
|
1869
1879
|
workspaceId?: string;
|
|
1870
1880
|
}, opts?: Oazapfts.RequestOpts) {
|
package/src/client/content.ts
CHANGED
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
getApplicationDetailsView,
|
|
27
27
|
getApplicationsUsesPlugin,
|
|
28
28
|
getAvailableActionVersionsByActionSlug,
|
|
29
|
+
getAvailableWorkflowVersionsByWorkflowSlug,
|
|
29
30
|
getDependentPluginsVersions,
|
|
30
31
|
getGetPluginView,
|
|
31
32
|
getInfrastructureEnvironmentsUsesPlugin,
|
|
@@ -51,6 +52,7 @@ import {
|
|
|
51
52
|
getWorkflow,
|
|
52
53
|
getWorkflowByStudioSlug,
|
|
53
54
|
getWorkflowDoc,
|
|
55
|
+
listAccountWorkflow,
|
|
54
56
|
listActions,
|
|
55
57
|
listActions1,
|
|
56
58
|
listActions2,
|
|
@@ -184,7 +186,11 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
184
186
|
},
|
|
185
187
|
})
|
|
186
188
|
/**
|
|
187
|
-
* Gets
|
|
189
|
+
* Gets all account workflows
|
|
190
|
+
*/
|
|
191
|
+
accountWorkflows = this.infiniteQuery(listAccountWorkflow, { accumulator: 'content', initialPageParam: 0 })
|
|
192
|
+
/**
|
|
193
|
+
* Gets workflow doc
|
|
188
194
|
*/
|
|
189
195
|
workflowDoc = this.query(getWorkflowDoc)
|
|
190
196
|
/**
|
|
@@ -207,6 +213,10 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
207
213
|
* Adds a workflow from a stack version
|
|
208
214
|
*/
|
|
209
215
|
addWorkflowToStack = this.mutation(addWorkflow)
|
|
216
|
+
/**
|
|
217
|
+
* Gets workflow doc
|
|
218
|
+
*/
|
|
219
|
+
availableWorkflowVersionsBySlug = this.query(getAvailableWorkflowVersionsByWorkflowSlug)
|
|
210
220
|
/**
|
|
211
221
|
* Gets usage summary of stack
|
|
212
222
|
*/
|
|
@@ -34,6 +34,8 @@ import {
|
|
|
34
34
|
workspaceStackControllerdeleteStacksInWorkspace,
|
|
35
35
|
workspaceStackControllerlistStacks,
|
|
36
36
|
workspaceStackControllerrefreshStacksInWorkspace,
|
|
37
|
+
accountApplicationControllergetAccountApplicationsFilters,
|
|
38
|
+
accountSharedInfraControllergetAccountApplicationsFilters,
|
|
37
39
|
} from '../api/workspaceManager'
|
|
38
40
|
import apis from '../apis.json'
|
|
39
41
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
@@ -307,6 +309,12 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
|
|
|
307
309
|
* Get all shared infrastructures associated with an account.
|
|
308
310
|
*/
|
|
309
311
|
getAccountSharedInfra = this.query(accountSharedInfraControllergetAccountSharedInfraPage)
|
|
312
|
+
|
|
313
|
+
/** * Gets filters for applications associated with an account. */
|
|
314
|
+
getAccountApplicationsFilters = this.query(accountApplicationControllergetAccountApplicationsFilters)
|
|
315
|
+
|
|
316
|
+
/** * Gets filters for shared infrastructures associated with an account. */
|
|
317
|
+
getAccountSharedInfraFilters = this.query(accountSharedInfraControllergetAccountApplicationsFilters)
|
|
310
318
|
}
|
|
311
319
|
|
|
312
320
|
export const workspaceManagerClient = new WorkspaceManagerClient()
|