@daocloud-proto/skoala 0.27.2-54 → 0.27.2-58

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.
@@ -83,6 +83,19 @@ export type ExportAPIReq = {
83
83
  all?: boolean
84
84
  }
85
85
 
86
+ export type ExportAPIUrlReq = {
87
+ workspaceId?: string
88
+ gatewayName?: string
89
+ clusterName?: string
90
+ namespaceName?: string
91
+ apiName?: string[]
92
+ all?: boolean
93
+ }
94
+
95
+ export type ExportAPIURLRes = {
96
+ url?: string
97
+ }
98
+
86
99
  export type ImportAPIReq = {
87
100
  workspaceId?: string
88
101
  gatewayName?: string
@@ -17,6 +17,13 @@ type OneOf<T> =
17
17
  : never)
18
18
  : never);
19
19
 
20
+ export enum GetSeataPluginResPhase {
21
+ Waiting = "Waiting",
22
+ Running = "Running",
23
+ Deleting = "Deleting",
24
+ NotReady = "NotReady",
25
+ }
26
+
20
27
  export enum GetMeshPluginResMeshMode {
21
28
  MESH_MODE_UNSPECIFIED = "MESH_MODE_UNSPECIFIED",
22
29
  HOSTED = "HOSTED",
@@ -94,6 +101,8 @@ export type GetSeataPluginRes = {
94
101
  visitAddress?: string
95
102
  workloadState?: SkoalaApiGeneralV1alpha1Common.WorkloadState
96
103
  pwd?: string
104
+ mysql?: MySql
105
+ phase?: GetSeataPluginResPhase
97
106
  }
98
107
 
99
108
  export type GetMeshPluginReq = {
@@ -138,6 +147,15 @@ export type UpdateSeataPluginReq = {
138
147
  ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
139
148
  pwd?: string
140
149
  deleteConfigs?: boolean
150
+ mysql?: MySql
151
+ }
152
+
153
+ export type MySql = {
154
+ host?: string
155
+ port?: string
156
+ name?: string
157
+ user?: string
158
+ password?: string
141
159
  }
142
160
 
143
161
  export type UpdateMeshPluginReq = {
@@ -796,6 +796,9 @@ export class GatewayAPI {
796
796
  static ExportAPI(req: SkoalaApiHostedV1alpha1Api.ExportAPIReq, entityNotifier?: fm.NotifyStreamEntityArrival<GoogleApiHttpbody.HttpBody>, initReq?: fm.InitReq): Promise<void> {
797
797
  return fm.fetchStreamingRequest<SkoalaApiHostedV1alpha1Api.ExportAPIReq, GoogleApiHttpbody.HttpBody>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/export?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, entityNotifier, {...initReq, method: "GET"})
798
798
  }
799
+ static ExportAPIURL(req: SkoalaApiHostedV1alpha1Api.ExportAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ExportAPIURLRes> {
800
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Api.ExportAPIReq, SkoalaApiHostedV1alpha1Api.ExportAPIURLRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/exporturl?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
801
+ }
799
802
  static ImportAPICheck(req: SkoalaApiHostedV1alpha1Api.ImportAPICheckReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ImportAPICheckRes> {
800
803
  return fm.fetchReq<SkoalaApiHostedV1alpha1Api.ImportAPICheckReq, SkoalaApiHostedV1alpha1Api.ImportAPICheckRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/import/check`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
801
804
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.27.2-54",
3
+ "version": "0.27.2-58",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {