@stack-spot/portal-network 0.56.1 → 0.57.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/cloudPlatform.d.ts +49 -8
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +12 -12
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/cloudRuntimes.d.ts +381 -0
- package/dist/api/cloudRuntimes.d.ts.map +1 -0
- package/dist/api/cloudRuntimes.js +247 -0
- package/dist/api/cloudRuntimes.js.map +1 -0
- package/dist/api/content.d.ts +224 -20
- package/dist/api/content.d.ts.map +1 -1
- package/dist/api/content.js +124 -17
- package/dist/api/content.js.map +1 -1
- package/dist/apis.json +8 -0
- package/dist/client/cloud-platform.d.ts +23 -0
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +28 -1
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/cloud-runtimes.d.ts +93 -0
- package/dist/client/cloud-runtimes.d.ts.map +1 -0
- package/dist/client/cloud-runtimes.js +133 -0
- package/dist/client/cloud-runtimes.js.map +1 -0
- package/dist/client/content.d.ts +28 -1
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +31 -4
- package/dist/client/content.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/cloudPlatform.ts +58 -17
- package/src/api/cloudRuntimes.ts +1575 -0
- package/src/api/content.ts +454 -27
- package/src/apis.json +8 -0
- package/src/client/cloud-platform.ts +15 -0
- package/src/client/cloud-runtimes.ts +89 -0
- package/src/client/content.ts +21 -7
- package/src/index.ts +1 -0
package/src/apis.json
CHANGED
|
@@ -158,6 +158,14 @@
|
|
|
158
158
|
},
|
|
159
159
|
"docs": "/v3/api-docs"
|
|
160
160
|
},
|
|
161
|
+
"cloudRuntimes": {
|
|
162
|
+
"url": {
|
|
163
|
+
"dev": "https://cloud-cloud-runtime-api.dev.stackspot.com",
|
|
164
|
+
"stg": "https://cloud-cloud-runtime-api.stg.stackspot.com",
|
|
165
|
+
"prd": "https://cloud-cloud-runtime-api.prd.stackspot.com"
|
|
166
|
+
},
|
|
167
|
+
"docs": "/v3/api-docs"
|
|
168
|
+
},
|
|
161
169
|
"cloudPlatformHorizon": {
|
|
162
170
|
"url": {
|
|
163
171
|
"dev": "https://cloud-platform-horizon.dev.stackspot.com",
|
|
@@ -2,6 +2,7 @@ import { HttpError } from '@oazapfts/runtime'
|
|
|
2
2
|
import
|
|
3
3
|
{
|
|
4
4
|
createApplication,
|
|
5
|
+
createCertificate,
|
|
5
6
|
createCidr,
|
|
6
7
|
createDeployment,
|
|
7
8
|
createDnsZone,
|
|
@@ -10,6 +11,7 @@ import
|
|
|
10
11
|
defaults,
|
|
11
12
|
getApplication,
|
|
12
13
|
getApplicationHistory,
|
|
14
|
+
getCertificate,
|
|
13
15
|
getDeployment,
|
|
14
16
|
getDeploymentHealth,
|
|
15
17
|
getDeploymentLogs,
|
|
@@ -18,6 +20,7 @@ import
|
|
|
18
20
|
getFoundation,
|
|
19
21
|
getRepositoryImages,
|
|
20
22
|
listApplications,
|
|
23
|
+
listCertificates,
|
|
21
24
|
listCidr,
|
|
22
25
|
listDeployments,
|
|
23
26
|
listDnsZone,
|
|
@@ -133,6 +136,18 @@ class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
|
133
136
|
* Create a cidr
|
|
134
137
|
*/
|
|
135
138
|
createCidr = this.mutation(removeAuthorizationParam(createCidr))
|
|
139
|
+
/**
|
|
140
|
+
* Get a list of certificates
|
|
141
|
+
*/
|
|
142
|
+
listCertificates = this.query(removeAuthorizationParam(listCertificates))
|
|
143
|
+
/**
|
|
144
|
+
* Get a certificate by id
|
|
145
|
+
*/
|
|
146
|
+
getCertificate = this.query(removeAuthorizationParam(getCertificate))
|
|
147
|
+
/**
|
|
148
|
+
* Create a certificate
|
|
149
|
+
*/
|
|
150
|
+
createCertificate = this.mutation(removeAuthorizationParam(createCertificate))
|
|
136
151
|
}
|
|
137
152
|
|
|
138
153
|
export const cloudPlatformClient = new CloudPlatformClient()
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { HttpError } from '@oazapfts/runtime'
|
|
2
|
+
import
|
|
3
|
+
{
|
|
4
|
+
createApplication,
|
|
5
|
+
createDeployment,
|
|
6
|
+
defaults,
|
|
7
|
+
getApplication,
|
|
8
|
+
getApplicationHistory,
|
|
9
|
+
getDeployment,
|
|
10
|
+
getDeploymentHealth,
|
|
11
|
+
getDeploymentLogs,
|
|
12
|
+
getDeploymentStatus,
|
|
13
|
+
getRepositoryImages,
|
|
14
|
+
listApplications,
|
|
15
|
+
listDeployments,
|
|
16
|
+
listRepositories,
|
|
17
|
+
listRuntimes,
|
|
18
|
+
} from '../api/cloudRuntimes'
|
|
19
|
+
import apis from '../apis.json'
|
|
20
|
+
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
21
|
+
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
22
|
+
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
23
|
+
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
24
|
+
import { baseDictionary } from '../error/dictionary/base'
|
|
25
|
+
|
|
26
|
+
class CloudRuntimesClient extends ReactQueryNetworkClient {
|
|
27
|
+
constructor() {
|
|
28
|
+
super(apis.cloudRuntimes.url, defaults)
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
protected buildStackSpotError(error: HttpError): StackspotAPIError {
|
|
32
|
+
return new DefaultAPIError(error.data, error.status, baseDictionary, error.headers)
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Get list of applications
|
|
36
|
+
*/
|
|
37
|
+
listApplications = this.query(removeAuthorizationParam(listApplications))
|
|
38
|
+
/**
|
|
39
|
+
* Get an application by id
|
|
40
|
+
*/
|
|
41
|
+
application = this.query(removeAuthorizationParam(getApplication))
|
|
42
|
+
/**
|
|
43
|
+
* Get an application history
|
|
44
|
+
*/
|
|
45
|
+
applicationHistory = this.query(removeAuthorizationParam(getApplicationHistory))
|
|
46
|
+
/**
|
|
47
|
+
* Get list of application deployments
|
|
48
|
+
*/
|
|
49
|
+
listApplicationDeployments = this.query(removeAuthorizationParam(listDeployments))
|
|
50
|
+
/**
|
|
51
|
+
* Get an application deployment by id
|
|
52
|
+
*/
|
|
53
|
+
applicationDeployment = this.query(removeAuthorizationParam(getDeployment))
|
|
54
|
+
/**
|
|
55
|
+
* Get an application deployment status
|
|
56
|
+
*/
|
|
57
|
+
applicationDeploymentStatus = this.query(removeAuthorizationParam(getDeploymentStatus))
|
|
58
|
+
/**
|
|
59
|
+
* Get an application deployment health
|
|
60
|
+
*/
|
|
61
|
+
applicationDeploymentHealth = this.query(removeAuthorizationParam(getDeploymentHealth))
|
|
62
|
+
/**
|
|
63
|
+
* Get an application deployment logs
|
|
64
|
+
*/
|
|
65
|
+
applicationDeploymentLogs = this.query(removeAuthorizationParam(getDeploymentLogs))
|
|
66
|
+
/**
|
|
67
|
+
* Get an application runtimes
|
|
68
|
+
*/
|
|
69
|
+
listApplicationRuntimes = this.query(removeAuthorizationParam(listRuntimes))
|
|
70
|
+
/**
|
|
71
|
+
* Get list of repositories
|
|
72
|
+
*/
|
|
73
|
+
listRepositories = this.query(removeAuthorizationParam(listRepositories))
|
|
74
|
+
/**
|
|
75
|
+
* Get list of images from a repository
|
|
76
|
+
*/
|
|
77
|
+
listRepositoryImages = this.query(removeAuthorizationParam(getRepositoryImages))
|
|
78
|
+
/**
|
|
79
|
+
* Create a deploy of the application
|
|
80
|
+
*/
|
|
81
|
+
createDeployment = this.mutation(removeAuthorizationParam(createDeployment))
|
|
82
|
+
/**
|
|
83
|
+
* Create an application
|
|
84
|
+
*/
|
|
85
|
+
createApplication = this.mutation(removeAuthorizationParam(createApplication))
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
export const cloudRuntimesClient = new CloudRuntimesClient()
|
package/src/client/content.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
2
|
import {
|
|
3
|
-
addAction, addLink, addWorkspace, associateActionToPlugin, changeVisibility, createStudio, defaults,
|
|
3
|
+
addAction, addLink, addWorkflow, addWorkspace, associateActionToPlugin, changeVisibility, createStudio, defaults,
|
|
4
4
|
deleteAction, deleteActionVersion, deleteLink, deletePluginVersion, deleteStudio, deleteV1StacksVersionsByStackVersionId,
|
|
5
5
|
delWorkspace, deprecateActionVersion, deprecatePluginVersion, deprecateStackVersionBy, downloadAction, getActionBySlug,
|
|
6
6
|
getActionsVersions, getActionVersionById, getAllActionVersions, getApplicationDetailsView, getApplicationsUsesPlugin,
|
|
@@ -10,10 +10,12 @@ import {
|
|
|
10
10
|
getPluginVersionUsageSummary, getStackUsesPlugin, getStackVersionById, getStackVersionListByIds, getStackWorkspaceDetailView,
|
|
11
11
|
getStackWorkspaces, getStarterStackVersionsAndPluginsVersions, getStarterUsesPlugin, getStudioByIdOrSlug, getStudios, getStudios1,
|
|
12
12
|
getStudiosToCreateButton, getStudioTabs, getUnusedStackVersions, getWorkflow, getWorkflowByStudioSlug, getWorkflowDoc,
|
|
13
|
-
|
|
13
|
+
listActions1,
|
|
14
|
+
listActions2,
|
|
14
15
|
listActionsByFilters1, listConnectionInterfaceTypes, listLinksByStackVersion, listPlugins, listPluginVersionByIdsController,
|
|
15
|
-
listReasons,
|
|
16
|
-
|
|
16
|
+
listReasons,
|
|
17
|
+
listStacks1, listStacksByFilters, listStarters, listWorkflows, listWorkflowVersion,
|
|
18
|
+
listWorkspaces, patchStarterV2, removeActionFromPlugin, removeStackWorkflow, stackModalViewSummary,
|
|
17
19
|
stackVersionUsageSummary, updateStudio, updateStudioTabs,
|
|
18
20
|
} from '../api/content'
|
|
19
21
|
import apis from '../apis.json'
|
|
@@ -126,6 +128,18 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
126
128
|
* Gets all the versions of a workflow
|
|
127
129
|
*/
|
|
128
130
|
workflowVersions = this.query(listWorkflowVersion)
|
|
131
|
+
/**
|
|
132
|
+
* Gets workflows of a stack version
|
|
133
|
+
*/
|
|
134
|
+
workflowsFromStackVersion = this.query(listWorkflows)
|
|
135
|
+
/**
|
|
136
|
+
* Removes a workflow from a stack version
|
|
137
|
+
*/
|
|
138
|
+
removeWorkflowsFromStack = this.mutation(removeStackWorkflow)
|
|
139
|
+
/**
|
|
140
|
+
* Adds a workflow from a stack version
|
|
141
|
+
*/
|
|
142
|
+
addWorkflowToStack = this.mutation(addWorkflow)
|
|
129
143
|
/**
|
|
130
144
|
* Gets usage summary of stack
|
|
131
145
|
*/
|
|
@@ -229,11 +243,11 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
229
243
|
/**
|
|
230
244
|
* Gets list of Actions
|
|
231
245
|
*/
|
|
232
|
-
actions = this.query(
|
|
246
|
+
actions = this.query(listActions2)
|
|
233
247
|
/**
|
|
234
248
|
* Get list of Actions in Stack
|
|
235
249
|
*/
|
|
236
|
-
actionsInStack = this.query(
|
|
250
|
+
actionsInStack = this.query(listActions1)
|
|
237
251
|
/**
|
|
238
252
|
* Add Action to Stack Version
|
|
239
253
|
*/
|
|
@@ -306,7 +320,7 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
306
320
|
/**
|
|
307
321
|
* View all stacks by account
|
|
308
322
|
*/
|
|
309
|
-
getAllStacks = this.query(
|
|
323
|
+
getAllStacks = this.query(listStacks1)
|
|
310
324
|
}
|
|
311
325
|
|
|
312
326
|
export const contentClient = new ContentClient()
|
package/src/index.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { aiClient } from './client/ai'
|
|
|
5
5
|
export { cloudAccountClient } from './client/cloud-account'
|
|
6
6
|
export { cloudPlatformClient } from './client/cloud-platform'
|
|
7
7
|
export { cloudPlatformHorizonClient } from './client/cloud-platform-horizon'
|
|
8
|
+
export { cloudRuntimesClient } from './client/cloud-runtimes'
|
|
8
9
|
export { cloudServicesClient } from './client/cloud-services'
|
|
9
10
|
export { contentClient } from './client/content'
|
|
10
11
|
export { eventBusClient } from './client/event-bus'
|