@daocloud-proto/skoala 0.26.2-54 → 0.26.2-60

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.
@@ -74,6 +74,41 @@ export type CreateAPIReq = {
74
74
  advancedApiConfig?: AdvancedAPIConfig
75
75
  }
76
76
 
77
+ export type ExportAPIReq = {
78
+ workspaceId?: string
79
+ gatewayName?: string
80
+ clusterName?: string
81
+ namespaceName?: string
82
+ apiName?: string[]
83
+ all?: boolean
84
+ }
85
+
86
+ export type ImportAPIReq = {
87
+ workspaceId?: string
88
+ gatewayName?: string
89
+ clusterName?: string
90
+ namespaceName?: string
91
+ apiName?: string[]
92
+ data?: string
93
+ }
94
+
95
+ export type ImportAPIRes = {
96
+ }
97
+
98
+ export type ImportAPICheckReq = {
99
+ workspaceId?: string
100
+ gatewayName?: string
101
+ clusterName?: string
102
+ namespaceName?: string
103
+ data?: string
104
+ }
105
+
106
+ export type ImportAPICheckRes = {
107
+ result?: boolean
108
+ successApi?: string[]
109
+ failApi?: OperationFailReason[]
110
+ }
111
+
77
112
  export type ListAPIGroupReq = {
78
113
  workspaceId?: string
79
114
  gatewayName?: string
@@ -801,6 +801,15 @@ export class GatewayAPI {
801
801
  static BatchOperationAPI(req: SkoalaApiHostedV1alpha1Api.APIBatchOperationReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.APIBatchOperationRes> {
802
802
  return fm.fetchReq<SkoalaApiHostedV1alpha1Api.APIBatchOperationReq, SkoalaApiHostedV1alpha1Api.APIBatchOperationRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/batch`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
803
803
  }
804
+ static ExportAPI(req: SkoalaApiHostedV1alpha1Api.ExportAPIReq, entityNotifier?: fm.NotifyStreamEntityArrival<GoogleApiHttpbody.HttpBody>, initReq?: fm.InitReq): Promise<void> {
805
+ 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"})
806
+ }
807
+ static ImportAPICheck(req: SkoalaApiHostedV1alpha1Api.ImportAPICheckReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ImportAPICheckRes> {
808
+ 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)})
809
+ }
810
+ static ImportAPI(req: SkoalaApiHostedV1alpha1Api.ImportAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ImportAPIRes> {
811
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Api.ImportAPIReq, SkoalaApiHostedV1alpha1Api.ImportAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/import`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
812
+ }
804
813
  }
805
814
  export class GatewayService {
806
815
  static CreateService(req: SkoalaApiHostedV1alpha1Gateway_service.CreateExternalServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.26.2-54",
3
+ "version": "0.26.2-60",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {