@daocloud-proto/skoala 0.5.1-72 → 0.5.1-78

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.
@@ -97,6 +97,16 @@ export type AdvancedAPIConfig = {
97
97
  pathRewritePolicy?: PathRewritePolicy
98
98
  retryPolicy?: RetryPolicy
99
99
  websocketPolicy?: WebsocketPolicy
100
+ healthCheckPolicy?: HealthCheckPolicy
101
+ }
102
+
103
+ export type HealthCheckPolicy = {
104
+ healthThresholdCount?: string
105
+ host?: string
106
+ intervalSeconds?: string
107
+ path?: string
108
+ timeoutSeconds?: string
109
+ unhealthThresholdCount?: string
100
110
  }
101
111
 
102
112
  export type WebsocketPolicy = {
@@ -143,6 +153,20 @@ export type UpdateAPIReq = {
143
153
  apiConfig?: APIConfig
144
154
  }
145
155
 
156
+ export type UpdateAPIStatusReq = {
157
+ workspaceId?: string
158
+ gatewayName?: string
159
+ clusterName?: string
160
+ namespaceName?: string
161
+ apiName?: string
162
+ enabled?: boolean
163
+ }
164
+
165
+ export type UpdateAPIStatusRes = {
166
+ apiName?: string
167
+ enabled?: boolean
168
+ }
169
+
146
170
  export type CreateAPIRes = {
147
171
  apiName?: string
148
172
  }
@@ -110,12 +110,13 @@ export type ServiceInfo = {
110
110
 
111
111
  export type ServiceSourceInfo = {
112
112
  serviceSource?: ServiceSource
113
- clusterName?: string
114
- k8SNamespaceName?: string
113
+ kubernetesClusterName?: string
114
+ kubernetesNamespaceName?: string
115
115
  registrationId?: string
116
+ registrationName?: string
116
117
  registrationType?: string
117
118
  nacosNamespaceId?: string
118
- groupName?: string
119
+ nacosGroupName?: string
119
120
  }
120
121
 
121
122
 
@@ -136,6 +137,7 @@ export type KubernetesService = {
136
137
 
137
138
  type BaseRegistryService = {
138
139
  registrationId?: string
140
+ registrationName?: string
139
141
  }
140
142
 
141
143
  export type RegistryService = BaseRegistryService
@@ -149,4 +149,16 @@ export type ListNacosServiceReq = {
149
149
  export type ListNacosServiceRes = {
150
150
  count?: number
151
151
  doms?: string[]
152
+ }
153
+
154
+ export type GetNacosServiceReq = {
155
+ workspaceId?: string
156
+ clusterName?: string
157
+ nacosName?: string
158
+ namespaceName?: string
159
+ namespaceId?: string
160
+ serviceName?: string
161
+ }
162
+
163
+ export type GetNacosServiceAPIRes = {
152
164
  }
@@ -44,6 +44,9 @@ export type GetServiceRes = {
44
44
  service?: Service
45
45
  }
46
46
 
47
+ export type GetServiceAPIRes = {
48
+ }
49
+
47
50
  export type NamespaceWithGroup = {
48
51
  id?: string
49
52
  name?: string
@@ -72,6 +72,9 @@ export class Registry {
72
72
  static GetService(req: SkoalaApiIntegratedV1alpha1Service.GetServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.GetServiceRes> {
73
73
  return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.GetServiceReq, SkoalaApiIntegratedV1alpha1Service.GetServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "registryId", "serviceName"])}`, {...initReq, method: "GET"})
74
74
  }
75
+ static GetServiceAPI(req: SkoalaApiIntegratedV1alpha1Service.GetServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.GetServiceAPIRes> {
76
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.GetServiceReq, SkoalaApiIntegratedV1alpha1Service.GetServiceAPIRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/apis?${fm.renderURLSearchParams(req, ["workspaceId", "registryId", "serviceName"])}`, {...initReq, method: "GET"})
77
+ }
75
78
  static ListInstance(req: SkoalaApiIntegratedV1alpha1Instance.ListInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes> {
76
79
  return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.ListInstanceReq, SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/instances?${fm.renderURLSearchParams(req, ["workspaceId", "registryId", "serviceName"])}`, {...initReq, method: "GET"})
77
80
  }
@@ -101,6 +104,12 @@ export class Nacos {
101
104
  static ListService(req: SkoalaApiHostedV1alpha1Nacos.ListNacosServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceRes> {
102
105
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceReq, SkoalaApiHostedV1alpha1Nacos.ListNacosServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["namespaceId"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "namespaceId"])}`, {...initReq, method: "GET"})
103
106
  }
107
+ static GetService(req: SkoalaApiHostedV1alpha1Nacos.GetNacosServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceAPIRes> {
108
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceReq, SkoalaApiHostedV1alpha1Nacos.GetNacosServiceAPIRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["namespaceId"]}/services/${req["serviceName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "namespaceId", "serviceName"])}`, {...initReq, method: "GET"})
109
+ }
110
+ static GetServiceAPI(req: SkoalaApiHostedV1alpha1Nacos.GetNacosServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceAPIRes> {
111
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceReq, SkoalaApiHostedV1alpha1Nacos.GetNacosServiceAPIRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["namespaceId"]}/services/${req["serviceName"]}/apis?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "namespaceId", "serviceName"])}`, {...initReq, method: "GET"})
112
+ }
104
113
  static ListNamespace(req: SkoalaApiHostedV1alpha1Nacos.ListNacosServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceRes> {
105
114
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceReq, SkoalaApiHostedV1alpha1Nacos.ListNacosServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
106
115
  }
@@ -0,0 +1 @@
1
+ export default {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.5.1-72",
3
+ "version": "0.5.1-78",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {