@stack-spot/portal-network 0.236.0 → 0.238.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 +22 -0
- package/dist/api/cloudPlatform.d.ts +94 -816
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +33 -599
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/workspaceManager.d.ts +28 -1
- package/dist/api/workspaceManager.d.ts.map +1 -1
- package/dist/api/workspaceManager.js +20 -0
- package/dist/api/workspaceManager.js.map +1 -1
- package/dist/apis.json +1 -1
- package/dist/client/cloud-platform.d.ts +470 -942
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +460 -963
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/workspace-manager.d.ts +16 -0
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +19 -1
- package/dist/client/workspace-manager.js.map +1 -1
- package/package.json +1 -1
- package/src/api/cloudPlatform.ts +150 -1546
- package/src/api/workspaceManager.ts +48 -3
- package/src/api-docs/cloud-platform-docs-prd.json +1681 -7331
- package/src/api-docs/cloud-platform-docs-stg.json +1430 -6671
- package/src/apis.json +1 -1
- package/src/client/cloud-platform.ts +417 -694
- package/src/client/workspace-manager.ts +10 -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",
|
|
@@ -125,6 +125,7 @@ export type InputValuesContextResponse = {
|
|
|
125
125
|
label: string;
|
|
126
126
|
"type": string;
|
|
127
127
|
items?: string[];
|
|
128
|
+
itemsValues?: string[];
|
|
128
129
|
externalItems?: ExternalItemsResponse;
|
|
129
130
|
inputEnv: boolean;
|
|
130
131
|
"default"?: any;
|
|
@@ -135,7 +136,6 @@ export type InputValuesContextResponse = {
|
|
|
135
136
|
connectionInterfaceType?: string;
|
|
136
137
|
addQuestion?: string;
|
|
137
138
|
input?: any;
|
|
138
|
-
inputs: any[];
|
|
139
139
|
condition?: InputConditionResponse;
|
|
140
140
|
isGlobal?: boolean;
|
|
141
141
|
scope?: string;
|
|
@@ -481,6 +481,17 @@ export type WorkspaceStackResponse = {
|
|
|
481
481
|
qualifier: string;
|
|
482
482
|
stack: WorkspaceStackResponseStackResponse;
|
|
483
483
|
};
|
|
484
|
+
export type TerraformExportInfraPluginRequest = {
|
|
485
|
+
pluginVersionId: string;
|
|
486
|
+
stackVersionId: string;
|
|
487
|
+
alias: string;
|
|
488
|
+
};
|
|
489
|
+
export type TerraformExportDispatchRequest = {
|
|
490
|
+
originBranchName: string;
|
|
491
|
+
targetBranchName: string;
|
|
492
|
+
exportedTerraformDirectory?: string;
|
|
493
|
+
plugins: TerraformExportInfraPluginRequest[];
|
|
494
|
+
};
|
|
484
495
|
export type RemovePluginAndCreatePrRequest = {
|
|
485
496
|
originBranchName: string;
|
|
486
497
|
};
|
|
@@ -1756,6 +1767,23 @@ export function workspaceStackControlleraddStacksInWorkspace({ workspaceId, addS
|
|
|
1756
1767
|
body: addStackInWorkspaceRequest
|
|
1757
1768
|
})));
|
|
1758
1769
|
}
|
|
1770
|
+
/**
|
|
1771
|
+
* Dispatch terraform export workflow by shared infrastructure
|
|
1772
|
+
*/
|
|
1773
|
+
export function terraformExportControllerdispatchTerraformExportBySharedInfra({ workspaceId, sharedInfraId, terraformExportDispatchRequest }: {
|
|
1774
|
+
workspaceId: string;
|
|
1775
|
+
sharedInfraId: string;
|
|
1776
|
+
terraformExportDispatchRequest: TerraformExportDispatchRequest;
|
|
1777
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1778
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1779
|
+
status: 200;
|
|
1780
|
+
data: string;
|
|
1781
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/terraform-export/dispatch`, oazapfts.json({
|
|
1782
|
+
...opts,
|
|
1783
|
+
method: "POST",
|
|
1784
|
+
body: terraformExportDispatchRequest
|
|
1785
|
+
})));
|
|
1786
|
+
}
|
|
1759
1787
|
/**
|
|
1760
1788
|
* Remove workspace shared infrastructure infra plugins and create pull request
|
|
1761
1789
|
*/
|
|
@@ -1840,6 +1868,23 @@ export function connectionInterfaceControllercreateConnectionInterface({ workspa
|
|
|
1840
1868
|
body: createConnectionInterfaceRequest
|
|
1841
1869
|
})));
|
|
1842
1870
|
}
|
|
1871
|
+
/**
|
|
1872
|
+
* Dispatch terraform export workflow by application
|
|
1873
|
+
*/
|
|
1874
|
+
export function terraformExportControllerdispatchTerraformExportByApplication({ workspaceId, applicationId, terraformExportDispatchRequest }: {
|
|
1875
|
+
workspaceId: string;
|
|
1876
|
+
applicationId: string;
|
|
1877
|
+
terraformExportDispatchRequest: TerraformExportDispatchRequest;
|
|
1878
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1879
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1880
|
+
status: 200;
|
|
1881
|
+
data: string;
|
|
1882
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/terraform-export/dispatch`, oazapfts.json({
|
|
1883
|
+
...opts,
|
|
1884
|
+
method: "POST",
|
|
1885
|
+
body: terraformExportDispatchRequest
|
|
1886
|
+
})));
|
|
1887
|
+
}
|
|
1843
1888
|
/**
|
|
1844
1889
|
* Remove workspace application infra plugins and create pull request
|
|
1845
1890
|
*/
|