@stack-spot/portal-network 0.221.0 → 0.223.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 +16 -0
- package/dist/api-addresses.d.ts.map +1 -1
- package/dist/api-addresses.js +0 -1
- package/dist/api-addresses.js.map +1 -1
- package/dist/apis-itau.json +0 -8
- package/dist/apis.json +0 -8
- package/dist/client/cloud-platform.d.ts +30 -0
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +47 -1
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api-addresses.ts +0 -1
- package/src/apis-itau.json +0 -8
- package/src/apis.json +0 -8
- package/src/client/cloud-platform.ts +25 -0
- package/src/index.ts +0 -1
- package/dist/api/cloudPlatformHorizon.d.ts +0 -1314
- package/dist/api/cloudPlatformHorizon.d.ts.map +0 -1
- package/dist/api/cloudPlatformHorizon.js +0 -494
- package/dist/api/cloudPlatformHorizon.js.map +0 -1
- package/dist/client/cloud-platform-horizon.d.ts +0 -210
- package/dist/client/cloud-platform-horizon.d.ts.map +0 -1
- package/dist/client/cloud-platform-horizon.js +0 -241
- package/dist/client/cloud-platform-horizon.js.map +0 -1
- package/src/api/cloudPlatformHorizon.ts +0 -3058
- package/src/client/cloud-platform-horizon.ts +0 -121
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { HttpError } from '@oazapfts/runtime'
|
|
2
|
-
|
|
3
|
-
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
4
|
-
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
5
|
-
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
6
|
-
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
7
|
-
import { associateWithWorkspaceEnvironment, createAddon, createDeployTemplate, createOrganization, createRuntime1, createTenant1, defaults, deploy, findApplicationDeploymentById, getApplicationDeploymentHealth, getApplicationDeploymentLogs, getAssociationWorkspaceEnvironmentByRuntimeId, getOrganizationById, getOrganizations, getRuntime1, getTenant1, listAddon, listApplicationDeploymentRollouts, listApplicationDeployments, listAssociations, listDeployTemplate, listRuntimes, listRuntimes1, listTenants, listTenants1, postApplicationDeploymentRolloutAction } from '../api/cloudPlatformHorizon'
|
|
8
|
-
import { baseDictionary } from '../error/dictionary/base'
|
|
9
|
-
import { getApiAddresses } from '../api-addresses'
|
|
10
|
-
|
|
11
|
-
class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(getApiAddresses().cloudPlatformHorizon.url, defaults)
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
protected buildStackSpotError(error: HttpError): StackspotAPIError {
|
|
17
|
-
return new DefaultAPIError(error.data, error.status, baseDictionary, error.headers)
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Get a list of organizations
|
|
21
|
-
*/
|
|
22
|
-
listOrganizations = this.query(removeAuthorizationParam(getOrganizations))
|
|
23
|
-
/**
|
|
24
|
-
* Get organization by id
|
|
25
|
-
*/
|
|
26
|
-
getOrganizationById = this.query(removeAuthorizationParam(getOrganizationById))
|
|
27
|
-
/**
|
|
28
|
-
* Get details of an tenant
|
|
29
|
-
*/
|
|
30
|
-
getTenantById = this.query(removeAuthorizationParam(getTenant1))
|
|
31
|
-
/**
|
|
32
|
-
* Get details of an runtime
|
|
33
|
-
*/
|
|
34
|
-
getRuntimeById = this.query(removeAuthorizationParam(getRuntime1))
|
|
35
|
-
/**
|
|
36
|
-
* Create an tenant
|
|
37
|
-
*/
|
|
38
|
-
createTenant = this.mutation(removeAuthorizationParam(createTenant1))
|
|
39
|
-
/**
|
|
40
|
-
* Create an runtime
|
|
41
|
-
*/
|
|
42
|
-
createRuntime = this.mutation(removeAuthorizationParam(createRuntime1))
|
|
43
|
-
/**
|
|
44
|
-
* Create an organization
|
|
45
|
-
*/
|
|
46
|
-
createOrganization = this.mutation(removeAuthorizationParam(createOrganization))
|
|
47
|
-
/**
|
|
48
|
-
* List all runtimes
|
|
49
|
-
*/
|
|
50
|
-
listRuntimes = this.query(removeAuthorizationParam(listRuntimes))
|
|
51
|
-
/**
|
|
52
|
-
* List all tenants
|
|
53
|
-
*/
|
|
54
|
-
listTenants = this.query(removeAuthorizationParam(listTenants))
|
|
55
|
-
/**
|
|
56
|
-
* List tenants from organization
|
|
57
|
-
*/
|
|
58
|
-
listTenantsByOrganization = this.query(removeAuthorizationParam(listTenants1))
|
|
59
|
-
/**
|
|
60
|
-
* List runtimes from tenant
|
|
61
|
-
*/
|
|
62
|
-
listRuntimesByTenant = this.query(removeAuthorizationParam(listRuntimes1))
|
|
63
|
-
/**
|
|
64
|
-
* List applications deployments from runtime
|
|
65
|
-
*/
|
|
66
|
-
listApplicationsDeployments = this.query(removeAuthorizationParam(listApplicationDeployments))
|
|
67
|
-
/**
|
|
68
|
-
* Deploy an application
|
|
69
|
-
*/
|
|
70
|
-
deployApplication = this.mutation(removeAuthorizationParam(deploy))
|
|
71
|
-
/**
|
|
72
|
-
* Get details of an application deployment
|
|
73
|
-
*/
|
|
74
|
-
getApplicationDeploymentById = this.query(removeAuthorizationParam(findApplicationDeploymentById))
|
|
75
|
-
/**
|
|
76
|
-
* Get logs from a application deployment
|
|
77
|
-
*/
|
|
78
|
-
getApplicationDeploymentLogs = this.query(removeAuthorizationParam(getApplicationDeploymentLogs))
|
|
79
|
-
/**
|
|
80
|
-
* Get health from a application deployment
|
|
81
|
-
*/
|
|
82
|
-
getApplicationDeploymentHealth = this.query(removeAuthorizationParam(getApplicationDeploymentHealth))
|
|
83
|
-
/**
|
|
84
|
-
* Get a list of organization addons
|
|
85
|
-
*/
|
|
86
|
-
listAddons = this.query(removeAuthorizationParam(listAddon))
|
|
87
|
-
/**
|
|
88
|
-
* Get a list of organization deploy templates
|
|
89
|
-
*/
|
|
90
|
-
listDeployTemplates = this.query(removeAuthorizationParam(listDeployTemplate))
|
|
91
|
-
/**
|
|
92
|
-
* Create an addon
|
|
93
|
-
*/
|
|
94
|
-
createAddon = this.mutation(removeAuthorizationParam(createAddon))
|
|
95
|
-
/**
|
|
96
|
-
* Create an deploy template
|
|
97
|
-
*/
|
|
98
|
-
createDeployTemplate = this.mutation(removeAuthorizationParam(createDeployTemplate))
|
|
99
|
-
/**
|
|
100
|
-
* Associate an runtime with an workspace environment
|
|
101
|
-
*/
|
|
102
|
-
associateRuntimeWithWorkspaceEnv = this.mutation(removeAuthorizationParam(associateWithWorkspaceEnvironment))
|
|
103
|
-
/**
|
|
104
|
-
* Retrieves associate runtime with a workspace's environment
|
|
105
|
-
*/
|
|
106
|
-
getRuntimeAssociations = this.query(removeAuthorizationParam(getAssociationWorkspaceEnvironmentByRuntimeId))
|
|
107
|
-
/**
|
|
108
|
-
* List runtime associations to workspace's environment
|
|
109
|
-
*/
|
|
110
|
-
listRuntimeAssociationsToEnv = this.query(removeAuthorizationParam(listAssociations))
|
|
111
|
-
/**
|
|
112
|
-
* List of application deployments rollout
|
|
113
|
-
*/
|
|
114
|
-
listApplicationDeploymentRollouts = this.query(removeAuthorizationParam(listApplicationDeploymentRollouts))
|
|
115
|
-
/**
|
|
116
|
-
* Set an action to application deployment rollout
|
|
117
|
-
*/
|
|
118
|
-
deployApplicationRolloutAction = this.mutation(removeAuthorizationParam(postApplicationDeploymentRolloutAction))
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export const cloudPlatformHorizonClient = new CloudPlatformHorizonClient()
|