@stack-spot/portal-network 0.56.0 → 0.56.2
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/apis.json +8 -0
- package/dist/client/cloud-platform-horizon.d.ts +1 -1
- package/dist/client/cloud-platform-horizon.js +2 -2
- package/dist/client/cloud-platform-horizon.js.map +1 -1
- 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/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/apis.json +8 -0
- package/src/client/cloud-platform-horizon.ts +2 -2
- package/src/client/cloud-platform.ts +15 -0
- package/src/client/cloud-runtimes.ts +89 -0
- 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",
|
|
@@ -10,14 +10,14 @@ import { baseDictionary } from '../error/dictionary/base'
|
|
|
10
10
|
|
|
11
11
|
class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
|
|
12
12
|
constructor() {
|
|
13
|
-
super(apis.
|
|
13
|
+
super(apis.cloudPlatformHorizon.url, defaults)
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
protected buildStackSpotError(error: HttpError): StackspotAPIError {
|
|
17
17
|
return new DefaultAPIError(error.data, error.status, baseDictionary, error.headers)
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* Apply resource
|
|
20
|
+
* Apply manifesto resource
|
|
21
21
|
*/
|
|
22
22
|
apply = this.mutation(removeAuthorizationParam(apply))
|
|
23
23
|
}
|
|
@@ -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/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'
|