@daocloud-proto/skoala 0.3.3-28 → 0.3.3-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.
@@ -23,16 +23,21 @@ export type Workspace = {
23
23
  parentWorkspaceId?: string
24
24
  }
25
25
 
26
+ export type Pagination = {
27
+ total?: number
28
+ page?: number
29
+ pageSize?: number
30
+ pages?: number
31
+ }
32
+
26
33
  export type ListWorkspaceReq = {
27
34
  page?: number
28
- size?: number
35
+ pageSize?: number
29
36
  }
30
37
 
31
38
  export type ListWorkspaceRes = {
32
- workspaces?: Workspace[]
33
- page?: number
34
- size?: number
35
- total?: number
39
+ items?: Workspace[]
40
+ pagination?: Pagination
36
41
  }
37
42
 
38
43
  export type ListClusterReq = {
@@ -48,7 +48,7 @@ export type Gateway = {
48
48
  export type ListAllGatewayReq = {
49
49
  workspaceId?: number
50
50
  page?: number
51
- size?: number
51
+ pageSize?: number
52
52
  filter?: string
53
53
  }
54
54
 
@@ -56,7 +56,7 @@ export type ListClusterGatewayReq = {
56
56
  workspaceId?: number
57
57
  clusterName?: string
58
58
  page?: number
59
- size?: number
59
+ pageSize?: number
60
60
  }
61
61
 
62
62
  export type ListNamespaceGatewayReq = {
@@ -64,14 +64,12 @@ export type ListNamespaceGatewayReq = {
64
64
  clusterName?: string
65
65
  namespaceName?: string
66
66
  page?: number
67
- size?: number
67
+ pageSize?: number
68
68
  }
69
69
 
70
70
  export type ListGatewayRes = {
71
- gateways?: Gateway[]
72
- page?: number
73
- size?: number
74
- total?: number
71
+ items?: Gateway[]
72
+ pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
75
73
  }
76
74
 
77
75
  export type GetGatewayReq = {
@@ -4,10 +4,12 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- export enum InstanceInstanceStatus {
7
+ import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
8
+
9
+ export enum InstanceStatus {
8
10
  STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
9
11
  RUNNING = "RUNNING",
10
- Failed = "Failed",
12
+ FAILED = "FAILED",
11
13
  }
12
14
 
13
15
  export type Instance = {
@@ -16,11 +18,11 @@ export type Instance = {
16
18
  frameworkType?: string
17
19
  host?: string
18
20
  ports?: number[]
19
- instanceStatus?: InstanceInstanceStatus
21
+ instanceStatus?: InstanceStatus
20
22
  enabled?: boolean
21
23
  metadata?: {[key: string]: string}
22
24
  detail?: {[key: string]: string}
23
- lastUpdatedTimestamp?: string
25
+ updateAt?: string
24
26
  }
25
27
 
26
28
  export type ListInstanceReq = {
@@ -29,16 +31,14 @@ export type ListInstanceReq = {
29
31
  namespaceId?: string
30
32
  groupName?: string
31
33
  serviceName?: string
34
+ instanceId?: string
32
35
  page?: number
33
- size?: number
34
- total?: number
36
+ pageSize?: number
35
37
  }
36
38
 
37
39
  export type ListInstanceRes = {
38
- instances?: Instance[]
39
- page?: number
40
- size?: number
41
- total?: number
40
+ items?: Instance[]
41
+ pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
42
42
  }
43
43
 
44
44
  export type GetInstanceReq = {
@@ -4,13 +4,15 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- export enum RegistryRegistryStatus {
7
+ import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
8
+
9
+ export enum RegistryStatus {
8
10
  STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
9
11
  RUNNING = "RUNNING",
10
12
  ANOMALY = "ANOMALY",
11
13
  }
12
14
 
13
- export enum RegistryRegistryType {
15
+ export enum RegistryType {
14
16
  TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
15
17
  NACOS = "NACOS",
16
18
  EUREKA = "EUREKA",
@@ -23,8 +25,8 @@ export type Registry = {
23
25
  workspaceId?: string
24
26
  registryId?: string
25
27
  name?: string
26
- type?: RegistryRegistryType
27
- status?: RegistryRegistryStatus
28
+ type?: RegistryType
29
+ status?: RegistryStatus
28
30
  addresses?: string[]
29
31
  namespaces?: Namespace[]
30
32
  isHosted?: boolean
@@ -45,14 +47,12 @@ export type ListRegistryReq = {
45
47
  type?: string
46
48
  name?: string
47
49
  page?: number
48
- size?: number
50
+ pageSize?: number
49
51
  }
50
52
 
51
53
  export type ListRegistryRes = {
52
- registries?: Registry[]
53
- page?: number
54
- size?: number
55
- total?: number
54
+ items?: Registry[]
55
+ pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
56
56
  }
57
57
 
58
58
  export type GetRegistryReq = {
@@ -4,6 +4,7 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
+ import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
7
8
  import * as SkoalaApiIntegratedV1alpha1Insight from "./insight.pb"
8
9
  import * as SkoalaApiIntegratedV1alpha1Registry from "./registry.pb"
9
10
  export type Service = {
@@ -19,8 +20,9 @@ export type Service = {
19
20
  export type ListServiceReq = {
20
21
  workspaceId?: string
21
22
  registryId?: string
23
+ serviceName?: string
22
24
  page?: number
23
- size?: number
25
+ pageSize?: number
24
26
  }
25
27
 
26
28
  export type ListAllServiceReq = {
@@ -30,10 +32,8 @@ export type ListAllServiceReq = {
30
32
  }
31
33
 
32
34
  export type ListServiceRes = {
33
- services?: Service[]
34
- page?: number
35
- size?: number
36
- total?: number
35
+ items?: Service[]
36
+ pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
37
37
  }
38
38
 
39
39
  export type GetServiceReq = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.3.3-28",
3
+ "version": "0.3.3-34",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {