@daocloud-proto/skoala 0.2.0-1 → 0.2.0-8
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.
|
@@ -47,11 +47,11 @@ export class Service {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
export class Instance {
|
|
50
|
-
static ListAll(req: SkoalaApiIntegratedV1alpha1Instance.
|
|
51
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.
|
|
50
|
+
static ListAll(req: SkoalaApiIntegratedV1alpha1Instance.ListAllInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes> {
|
|
51
|
+
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.ListAllInstanceReq, SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes>(`/apis/hive.skoala.io/v1alpha1/instances?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
52
52
|
}
|
|
53
|
-
static ListRegistryAll(req: SkoalaApiIntegratedV1alpha1Instance.
|
|
54
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.
|
|
53
|
+
static ListRegistryAll(req: SkoalaApiIntegratedV1alpha1Instance.ListRegistryAllInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes> {
|
|
54
|
+
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.ListRegistryAllInstanceReq, SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes>(`/apis/hive.skoala.io/v1alpha1/registries/${req["registryId"]}/instances?${fm.renderURLSearchParams(req, ["registryId"])}`, {...initReq, method: "GET"})
|
|
55
55
|
}
|
|
56
56
|
static List(req: SkoalaApiIntegratedV1alpha1Instance.ListInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes> {
|
|
57
57
|
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.ListInstanceReq, SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes>(`/apis/hive.skoala.io/v1alpha1/registries/${req["registryId"]}/services/${req["serviceName"]}/instances?${fm.renderURLSearchParams(req, ["registryId", "serviceName"])}`, {...initReq, method: "GET"})
|
|
@@ -23,12 +23,15 @@ export type ListInstanceReq = {
|
|
|
23
23
|
serviceName?: string
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export type
|
|
26
|
+
export type ListAllInstanceReq = {
|
|
27
|
+
page?: number
|
|
28
|
+
size?: number
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type ListRegistryAllInstanceReq = {
|
|
27
32
|
registryId?: string
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
serviceName?: string
|
|
31
|
-
instanceId?: string
|
|
33
|
+
page?: number
|
|
34
|
+
size?: number
|
|
32
35
|
}
|
|
33
36
|
|
|
34
37
|
export type ListInstanceRes = {
|
|
@@ -38,6 +41,14 @@ export type ListInstanceRes = {
|
|
|
38
41
|
total?: number
|
|
39
42
|
}
|
|
40
43
|
|
|
44
|
+
export type GetInstanceReq = {
|
|
45
|
+
registryId?: string
|
|
46
|
+
namespaceId?: string
|
|
47
|
+
groupName?: string
|
|
48
|
+
serviceName?: string
|
|
49
|
+
instanceId?: string
|
|
50
|
+
}
|
|
51
|
+
|
|
41
52
|
export type GetInstanceRes = {
|
|
42
53
|
instance?: Instance
|
|
43
54
|
}
|
|
@@ -8,7 +8,7 @@ export type Registry = {
|
|
|
8
8
|
name?: string
|
|
9
9
|
type?: string
|
|
10
10
|
addresses?: string[]
|
|
11
|
-
namespaces?:
|
|
11
|
+
namespaces?: Namespace[]
|
|
12
12
|
serviceCount?: number
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -73,4 +73,5 @@ export type PingRegistryRes = {
|
|
|
73
73
|
export type Namespace = {
|
|
74
74
|
id?: string
|
|
75
75
|
name?: string
|
|
76
|
+
group?: string
|
|
76
77
|
}
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
import * as SkoalaApiIntegratedV1alpha1Registry from "./registry.pb"
|
|
8
8
|
export type Service = {
|
|
9
9
|
name?: string
|
|
10
|
-
namespace?:
|
|
11
|
-
groupName?: string
|
|
10
|
+
namespace?: SkoalaApiIntegratedV1alpha1Registry.Namespace
|
|
12
11
|
instanceCount?: number
|
|
13
12
|
registry?: SkoalaApiIntegratedV1alpha1Registry.Registry
|
|
14
13
|
detail?: {[key: string]: string}
|