@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.
@@ -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()