@stack-spot/portal-network 0.127.0 → 0.128.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/cloudPlatformHorizon.d.ts +230 -90
- package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
- package/dist/api/cloudPlatformHorizon.js +135 -25
- package/dist/api/cloudPlatformHorizon.js.map +1 -1
- package/dist/client/agent.d.ts +14 -4
- package/dist/client/agent.d.ts.map +1 -1
- package/dist/client/agent.js +10 -1
- package/dist/client/agent.js.map +1 -1
- package/dist/client/cloud-platform-horizon.d.ts +37 -9
- package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
- package/dist/client/cloud-platform-horizon.js +37 -1
- package/dist/client/cloud-platform-horizon.js.map +1 -1
- package/package.json +1 -1
- package/src/api/cloudPlatformHorizon.ts +703 -126
- package/src/client/agent.ts +5 -1
- package/src/client/cloud-platform-horizon.ts +18 -2
package/src/client/agent.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
|
-
import { defaults, deleteV1AgentByAgentIdFavorite, getV1AgentByAgentId, getV1Agents, getV1PublicAgentByAgentId, getV1PublicAgents, postV1AgentByAgentIdFavorite, postV1AgentsTrial, VisibilityLevel } from '../api/agent'
|
|
2
|
+
import { defaults, deleteV1AgentByAgentIdFavorite, getV1AgentByAgentId, getV1Agents, getV1PublicAgentByAgentId, getV1PublicAgents, postV1AgentByAgentIdFavorite, postV1AgentsTrial, putV1AgentByAgentId, VisibilityLevel } from '../api/agent'
|
|
3
3
|
import apis from '../apis.json'
|
|
4
4
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
5
5
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
@@ -138,6 +138,10 @@ class AgentClient extends ReactQueryNetworkClient {
|
|
|
138
138
|
* Create a test agent if it does not exist
|
|
139
139
|
*/
|
|
140
140
|
createTrialAgents = this.mutation(postV1AgentsTrial)
|
|
141
|
+
/**
|
|
142
|
+
* Updates an agent
|
|
143
|
+
*/
|
|
144
|
+
updateAgent = this.mutation(putV1AgentByAgentId)
|
|
141
145
|
}
|
|
142
146
|
|
|
143
147
|
export const agentClient = new AgentClient()
|
|
@@ -5,7 +5,7 @@ import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
|
5
5
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
6
6
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
7
7
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
8
|
-
import { apply, createOrganization, createRuntime1, createTenant1, defaults, deploy, findApplicationDeploymentById, getApplicationDeploymentHealth, getApplicationDeploymentLogs, getOrganizationById, getOrganizations, getRuntime1, getTenant1, listApplicationDeployments, listRuntimes, listRuntimes1, listTenants, listTenants1 } from '../api/cloudPlatformHorizon'
|
|
8
|
+
import { apply, createAddon, createDeployTemplate, createOrganization, createRuntime1, createTenant1, defaults, deploy, findApplicationDeploymentById, getApplicationDeploymentHealth, getApplicationDeploymentLogs, getOrganizationById, getOrganizations, getRuntime1, getTenant1, listAddon, listApplicationDeployments, listDeployTemplate, listRuntimes, listRuntimes1, listTenants, listTenants1 } from '../api/cloudPlatformHorizon'
|
|
9
9
|
import { baseDictionary } from '../error/dictionary/base'
|
|
10
10
|
|
|
11
11
|
class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
|
|
@@ -83,7 +83,23 @@ class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
|
|
|
83
83
|
/**
|
|
84
84
|
* Get health from a application deployment
|
|
85
85
|
*/
|
|
86
|
-
getApplicationDeploymentHealth= this.query(removeAuthorizationParam(getApplicationDeploymentHealth))
|
|
86
|
+
getApplicationDeploymentHealth = this.query(removeAuthorizationParam(getApplicationDeploymentHealth))
|
|
87
|
+
/**
|
|
88
|
+
* Get a list of organization addons
|
|
89
|
+
*/
|
|
90
|
+
listAddons = this.query(removeAuthorizationParam(listAddon))
|
|
91
|
+
/**
|
|
92
|
+
* Get a list of organization deploy templates
|
|
93
|
+
*/
|
|
94
|
+
listDeployTemplates = this.query(removeAuthorizationParam(listDeployTemplate))
|
|
95
|
+
/**
|
|
96
|
+
* Create an addon
|
|
97
|
+
*/
|
|
98
|
+
createAddon = this.mutation(removeAuthorizationParam(createAddon))
|
|
99
|
+
/**
|
|
100
|
+
* Create an deploy template
|
|
101
|
+
*/
|
|
102
|
+
createDeployTemplate = this.mutation(removeAuthorizationParam(createDeployTemplate))
|
|
87
103
|
}
|
|
88
104
|
|
|
89
105
|
export const cloudPlatformHorizonClient = new CloudPlatformHorizonClient()
|