@daocloud-proto/skoala 0.6.1-28 → 0.6.1-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.
@@ -4,6 +4,12 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
+ export enum APIDataType {
8
+ DATA_TYPE_UNSPECIFIED = "DATA_TYPE_UNSPECIFIED",
9
+ JSON = "JSON",
10
+ YAML = "YAML",
11
+ }
12
+
7
13
  export enum OrderBy {
8
14
  desc = "desc",
9
15
  asc = "asc",
@@ -73,4 +79,15 @@ export type Pagination = {
73
79
  page?: number
74
80
  pageSize?: number
75
81
  pages?: number
82
+ }
83
+
84
+ export type API = {
85
+ apiId?: number
86
+ isHosted?: boolean
87
+ registry?: string
88
+ serviceName?: string
89
+ nacosNamespace?: string
90
+ nacosGroupName?: string
91
+ dataType?: string
92
+ detail?: string
76
93
  }
@@ -8,12 +8,6 @@ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.p
8
8
  import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
9
9
  import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
10
10
 
11
- export enum APIDataType {
12
- DATA_TYPE_UNSPECIFIED = "DATA_TYPE_UNSPECIFIED",
13
- JSON = "JSON",
14
- YAML = "YAML",
15
- }
16
-
17
11
  export enum NacosStatus {
18
12
  STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
19
13
  Running = "Running",
@@ -252,9 +246,13 @@ export type NacosInstanceCluster = {
252
246
  }
253
247
 
254
248
  export type NacosServiceDetail = {
249
+ name?: string
255
250
  groupName?: string
251
+ clusterCount?: number
252
+ healthyInstanceCount?: number
253
+ ipCount?: number
254
+ triggerFlag?: boolean
256
255
  metadata?: {[key: string]: string}
257
- name?: string
258
256
  protectThreshold?: number
259
257
  selector?: {[key: string]: string}
260
258
  }
@@ -321,17 +319,6 @@ export type DeleteNacosServiceRes = {
321
319
  success?: boolean
322
320
  }
323
321
 
324
- export type API = {
325
- apiId?: number
326
- isHosted?: boolean
327
- registry?: string
328
- serviceName?: string
329
- nacosNamespace?: string
330
- nacosGroupName?: string
331
- dataType?: string
332
- detail?: string
333
- }
334
-
335
322
  export type GetNacosServiceAPIReq = {
336
323
  workspaceId?: string
337
324
  clusterName?: string
@@ -343,7 +330,7 @@ export type GetNacosServiceAPIReq = {
343
330
  }
344
331
 
345
332
  export type GetNacosServiceAPIRes = {
346
- api?: API
333
+ api?: SkoalaApiGeneralV1alpha1Common.API
347
334
  }
348
335
 
349
336
  export type CreateNacosServiceAPIReq = {
@@ -354,12 +341,12 @@ export type CreateNacosServiceAPIReq = {
354
341
  nacosNamespace?: string
355
342
  nacosGroupName?: string
356
343
  nacosService?: string
357
- dataType?: APIDataType
344
+ dataType?: SkoalaApiGeneralV1alpha1Common.APIDataType
358
345
  detail?: string
359
346
  }
360
347
 
361
348
  export type CreateNacosServiceAPIRes = {
362
- api?: API
349
+ api?: SkoalaApiGeneralV1alpha1Common.API
363
350
  }
364
351
 
365
352
  export type UpdateNacosServiceAPIReq = {
@@ -371,12 +358,12 @@ export type UpdateNacosServiceAPIReq = {
371
358
  nacosGroupName?: string
372
359
  nacosService?: string
373
360
  apiId?: number
374
- dataType?: APIDataType
361
+ dataType?: SkoalaApiGeneralV1alpha1Common.APIDataType
375
362
  detail?: string
376
363
  }
377
364
 
378
365
  export type UpdateNacosServiceAPIRes = {
379
- api?: API
366
+ api?: SkoalaApiGeneralV1alpha1Common.API
380
367
  }
381
368
 
382
369
  export type DeleteNacosServiceAPIReq = {
@@ -44,7 +44,52 @@ export type GetServiceRes = {
44
44
  service?: Service
45
45
  }
46
46
 
47
+ export type GetServiceAPIReq = {
48
+ workspaceId?: string
49
+ registryId?: string
50
+ serviceName?: string
51
+ }
52
+
47
53
  export type GetServiceAPIRes = {
54
+ api?: SkoalaApiGeneralV1alpha1Common.API
55
+ }
56
+
57
+ export type CreateServiceAPIReq = {
58
+ workspaceId?: string
59
+ registryId?: string
60
+ serviceName?: string
61
+ dataType?: SkoalaApiGeneralV1alpha1Common.APIDataType
62
+ detail?: string
63
+ }
64
+
65
+ export type CreateServiceAPIRes = {
66
+ api?: SkoalaApiGeneralV1alpha1Common.API
67
+ }
68
+
69
+ export type UpdateServiceAPIReq = {
70
+ workspaceId?: string
71
+ registryId?: string
72
+ serviceName?: string
73
+ dataType?: SkoalaApiGeneralV1alpha1Common.APIDataType
74
+ detail?: string
75
+ apiId?: number
76
+ }
77
+
78
+ export type UpdateServiceAPIRes = {
79
+ api?: SkoalaApiGeneralV1alpha1Common.API
80
+ }
81
+
82
+ export type DeleteServiceAPIReq = {
83
+ workspaceId?: string
84
+ registryId?: string
85
+ serviceName?: string
86
+ dataType?: SkoalaApiGeneralV1alpha1Common.APIDataType
87
+ detail?: string
88
+ apiId?: number
89
+ }
90
+
91
+ export type DeleteServiceAPIRes = {
92
+ success?: boolean
48
93
  }
49
94
 
50
95
  export type NamespaceWithGroup = {
@@ -84,8 +84,17 @@ export class Registry {
84
84
  static GetService(req: SkoalaApiIntegratedV1alpha1Service.GetServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.GetServiceRes> {
85
85
  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"})
86
86
  }
87
- static GetServiceAPI(req: SkoalaApiIntegratedV1alpha1Service.GetServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.GetServiceAPIRes> {
88
- 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"})
87
+ static GetServiceAPI(req: SkoalaApiIntegratedV1alpha1Service.GetServiceAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.GetServiceAPIRes> {
88
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.GetServiceAPIReq, 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"})
89
+ }
90
+ static CreateServiceAPI(req: SkoalaApiIntegratedV1alpha1Service.CreateServiceAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.CreateServiceAPIRes> {
91
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.CreateServiceAPIReq, SkoalaApiIntegratedV1alpha1Service.CreateServiceAPIRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/apis`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
92
+ }
93
+ static UpdateServiceAPI(req: SkoalaApiIntegratedV1alpha1Service.UpdateServiceAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.UpdateServiceAPIRes> {
94
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.UpdateServiceAPIReq, SkoalaApiIntegratedV1alpha1Service.UpdateServiceAPIRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/apis/${req["apiId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
95
+ }
96
+ static DeleteServiceAPI(req: SkoalaApiIntegratedV1alpha1Service.DeleteServiceAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.DeleteServiceAPIRes> {
97
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.DeleteServiceAPIReq, SkoalaApiIntegratedV1alpha1Service.DeleteServiceAPIRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/apis/${req["apiId"]}`, {...initReq, method: "DELETE"})
89
98
  }
90
99
  static ListInstance(req: SkoalaApiIntegratedV1alpha1Instance.ListInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes> {
91
100
  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"})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.6.1-28",
3
+ "version": "0.6.1-30",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {