@stack-spot/portal-network 0.76.0 → 0.77.1

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.
@@ -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, defaults, getOrganization, getRuntime, getTenant } from '../api/cloudPlatformHorizon'
8
+ import { apply, createOrganization, createRuntime, createTenant, defaults, getOrganization, getRuntime, getTenant, listOrganizations } from '../api/cloudPlatformHorizon'
9
9
  import { baseDictionary } from '../error/dictionary/base'
10
10
 
11
11
  class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
@@ -20,6 +20,10 @@ class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
20
20
  * Apply manifesto resource
21
21
  */
22
22
  apply = this.mutation(removeAuthorizationParam(apply))
23
+ /**
24
+ * Get a list of organizations
25
+ */
26
+ listOrganizations= this.query(removeAuthorizationParam(listOrganizations))
23
27
  /**
24
28
  * Get details of an organization
25
29
  */
@@ -32,6 +36,18 @@ class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
32
36
  * Get details of an runtime
33
37
  */
34
38
  getRuntimeById= this.query(removeAuthorizationParam(getRuntime))
39
+ /**
40
+ * Create an tenant
41
+ */
42
+ createTenant = this.mutation(removeAuthorizationParam(createTenant))
43
+ /**
44
+ * Create an runtime
45
+ */
46
+ createRuntime = this.mutation(removeAuthorizationParam(createRuntime))
47
+ /**
48
+ * Create an organization
49
+ */
50
+ createOrganization = this.mutation(removeAuthorizationParam(createOrganization))
35
51
  }
36
52
 
37
53
  export const cloudPlatformHorizonClient = new CloudPlatformHorizonClient()
@@ -7,6 +7,7 @@ import
7
7
  createDnsZone,
8
8
  createFolder,
9
9
  createFoundation,
10
+ createInbound,
10
11
  createNetwork,
11
12
  createProject,
12
13
  createSubnet,
@@ -20,6 +21,7 @@ import
20
21
  listDnsRecord,
21
22
  listDnsZone,
22
23
  listFoundations,
24
+ listInbound,
23
25
  listNetwork,
24
26
  listSubnet,
25
27
  providers,
@@ -102,7 +104,7 @@ class CloudPlatformClient extends ReactQueryNetworkClient {
102
104
  /**
103
105
  * Get a list of dns records
104
106
  */
105
- listDnsRecords= this.query(removeAuthorizationParam(listDnsRecord))
107
+ listDnsRecords = this.query(removeAuthorizationParam(listDnsRecord))
106
108
  /**
107
109
  * Create a dns record
108
110
  */
@@ -110,7 +112,7 @@ class CloudPlatformClient extends ReactQueryNetworkClient {
110
112
  /**
111
113
  * Get a list of networks
112
114
  */
113
- listNetworks= this.query(removeAuthorizationParam(listNetwork))
115
+ listNetworks = this.query(removeAuthorizationParam(listNetwork))
114
116
  /**
115
117
  * Create a network
116
118
  */
@@ -118,11 +120,19 @@ class CloudPlatformClient extends ReactQueryNetworkClient {
118
120
  /**
119
121
  * Get a list of subnets
120
122
  */
121
- listSubnets= this.query(removeAuthorizationParam(listSubnet))
123
+ listSubnets = this.query(removeAuthorizationParam(listSubnet))
122
124
  /**
123
125
  * Create a subnet
124
126
  */
125
127
  createSubnet = this.mutation(removeAuthorizationParam(createSubnet))
128
+ /**
129
+ * Get a list of inbounds
130
+ */
131
+ listInbounds = this.query(removeAuthorizationParam(listInbound))
132
+ /**
133
+ * Create a inbound
134
+ */
135
+ createInbound = this.mutation(removeAuthorizationParam(createInbound))
126
136
  }
127
137
 
128
138
  export const cloudPlatformClient = new CloudPlatformClient()