@daocloud-proto/skoala 0.51.0-6 → 0.51.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.
@@ -69,7 +69,8 @@ export type ListAllClusterReq = {
69
69
  }
70
70
 
71
71
  export type ListAllClusterRes = {
72
- items?: Cluster[]
72
+ clusterWorkspace?: ClusterWorkspace[]
73
+ cluster?: Cluster[]
73
74
  }
74
75
 
75
76
  export type Cluster = {
@@ -78,6 +79,14 @@ export type Cluster = {
78
79
  clusterProvider?: SkoalaApiGeneralV1alpha1Common.ClusterProvider
79
80
  clusterPhase?: SkoalaApiGeneralV1alpha1Common.ClusterPhase
80
81
  version?: string
82
+ }
83
+
84
+ export type ClusterWorkspace = {
85
+ id?: string
86
+ name?: string
87
+ clusterProvider?: SkoalaApiGeneralV1alpha1Common.ClusterProvider
88
+ clusterPhase?: SkoalaApiGeneralV1alpha1Common.ClusterPhase
89
+ version?: string
81
90
  workspaceId?: string
82
91
  workspaceName?: string
83
92
  }
@@ -88,4 +97,24 @@ export type ListWorkspaceRolePermissionsReq = {
88
97
 
89
98
  export type ListWorkspaceRolePermissionsRes = {
90
99
  permissions?: string[]
100
+ }
101
+
102
+ export type ListClusterNamespaceReq = {
103
+ workspaceId?: string
104
+ clusterName?: string
105
+ namespaceName?: string
106
+ page?: number
107
+ pageSize?: number
108
+ }
109
+
110
+ export type ListClusterNamespaceRes = {
111
+ items?: WorkspaceClusterNamespace[]
112
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
113
+ }
114
+
115
+ export type WorkspaceClusterNamespace = {
116
+ namespaceName?: string
117
+ clusterName?: string
118
+ workspaceId?: string
119
+ workspaceName?: string
91
120
  }
@@ -45,6 +45,9 @@ export class Skoala {
45
45
  static ListWorkspaceRolePermissions(req: SkoalaApiHostedV1alpha3Skoala.ListWorkspaceRolePermissionsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Skoala.ListWorkspaceRolePermissionsRes> {
46
46
  return fm.fetchReq<SkoalaApiHostedV1alpha3Skoala.ListWorkspaceRolePermissionsReq, SkoalaApiHostedV1alpha3Skoala.ListWorkspaceRolePermissionsRes>(`/apis/skoala.io/v1alpha3/permissions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
47
47
  }
48
+ static ListClusterNamespace(req: SkoalaApiHostedV1alpha3Skoala.ListClusterNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Skoala.ListClusterNamespaceRes> {
49
+ return fm.fetchReq<SkoalaApiHostedV1alpha3Skoala.ListClusterNamespaceReq, SkoalaApiHostedV1alpha3Skoala.ListClusterNamespaceRes>(`/apis/skoala.io/v1alpha3/clusters/${req["clusterName"]}/namespaces?${fm.renderURLSearchParams(req, ["clusterName"])}`, {...initReq, method: "GET"})
50
+ }
48
51
  }
49
52
  export class Nacos {
50
53
  static List(req: SkoalaApiHostedV1alpha3Nacos.ListAllNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Nacos.ListNacosRes> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.51.0-6",
3
+ "version": "0.51.0-8",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {