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

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,34 @@
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
23
+ updatedAt?: string
24
+ createdAt?: string
25
+ }
26
+
27
+ export type RegistryOnlyID = {
28
+ registryId?: string
13
29
  }
14
30
 
15
31
  export type ListRegistryReq = {
32
+ type?: string
33
+ name?: string
16
34
  page?: number
17
35
  size?: number
18
36
  }
@@ -52,13 +70,17 @@ export type CreateRegistryReq = {
52
70
  }
53
71
 
54
72
  export type CreateRegistryRes = {
55
- registry?: Registry
73
+ registry?: RegistryOnlyID
56
74
  }
57
75
 
58
76
  export type DeleteRegistryReq = {
59
77
  registryId?: string
60
78
  }
61
79
 
80
+ export type DeleteRegistryRes = {
81
+ registry?: RegistryOnlyID
82
+ }
83
+
62
84
  export type PingRegistryReq = {
63
85
  type?: string
64
86
  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-34",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {