@daocloud-proto/skoala 0.2.0-28 → 0.2.0-30

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.
@@ -28,8 +28,8 @@ export class Registry {
28
28
  static Create(req: SkoalaApiIntegratedV1alpha1Registry.CreateRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.CreateRegistryRes> {
29
29
  return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.CreateRegistryReq, SkoalaApiIntegratedV1alpha1Registry.CreateRegistryRes>(`/apis/hive.skoala.io/v1alpha1/registries`, {...initReq, method: "POST", body: JSON.stringify(req)})
30
30
  }
31
- static Delete(req: SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
32
- return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/registries/${req["registryId"]}`, {...initReq, method: "DELETE"})
31
+ static Delete(req: SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryRes> {
32
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryReq, SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryRes>(`/apis/hive.skoala.io/v1alpha1/registries/${req["registryId"]}`, {...initReq, method: "DELETE"})
33
33
  }
34
34
  static Ping(req: SkoalaApiIntegratedV1alpha1Registry.PingRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.PingRegistryRes> {
35
35
  return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.PingRegistryReq, SkoalaApiIntegratedV1alpha1Registry.PingRegistryRes>(`/apis/hive.skoala.io/v1alpha1/registries/ping`, {...initReq, method: "POST", body: JSON.stringify(req)})
@@ -3,16 +3,32 @@
3
3
  /*
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
+
7
+ export enum RegistryRegistryType {
8
+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
9
+ NACOS = "NACOS",
10
+ EUREKA = "EUREKA",
11
+ KUBERNETES = "KUBERNETES",
12
+ ZOOKEEPER = "ZOOKEEPER",
13
+ MESH = "MESH",
14
+ }
15
+
6
16
  export type Registry = {
7
17
  registryId?: string
8
18
  name?: string
9
- type?: string
19
+ type?: RegistryRegistryType
10
20
  addresses?: string[]
11
21
  namespaces?: Namespace[]
12
22
  serviceCount?: number
13
23
  }
14
24
 
25
+ export type RegistryOnlyID = {
26
+ registryId?: string
27
+ }
28
+
15
29
  export type ListRegistryReq = {
30
+ type?: string
31
+ name?: string
16
32
  page?: number
17
33
  size?: number
18
34
  }
@@ -52,13 +68,17 @@ export type CreateRegistryReq = {
52
68
  }
53
69
 
54
70
  export type CreateRegistryRes = {
55
- registry?: Registry
71
+ registry?: RegistryOnlyID
56
72
  }
57
73
 
58
74
  export type DeleteRegistryReq = {
59
75
  registryId?: string
60
76
  }
61
77
 
78
+ export type DeleteRegistryRes = {
79
+ registry?: RegistryOnlyID
80
+ }
81
+
62
82
  export type PingRegistryReq = {
63
83
  type?: string
64
84
  addresses?: string[]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.2.0-28",
3
+ "version": "0.2.0-30",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {