@daocloud-proto/zestu 0.10.1-dev-1aa644bf → 0.10.1-dev-d3de9497
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.
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import * as fm from "../../../fetch.pb"
|
|
8
8
|
import * as GoogleProtobufEmpty from "../../../google/api/empty.pb"
|
|
9
9
|
import * as ZestuIoApiAuditV1alpha1Audit from "../audit/v1alpha1/audit.pb"
|
|
10
|
+
import * as ZestuIoApiCommonV1alpha1Common from "../common/v1alpha1/common.pb"
|
|
10
11
|
import * as ZestuIoApiContainerinstanceV1alpha1Containerinstance from "../containerinstance/v1alpha1/containerinstance.pb"
|
|
11
12
|
import * as ZestuIoApiFile_storageV1alpha1Storage from "../file_storage/v1alpha1/storage.pb"
|
|
12
13
|
import * as ZestuIoApiImageV1alpha1Image from "../image/v1alpha1/image.pb"
|
|
@@ -197,4 +198,9 @@ export class Registry {
|
|
|
197
198
|
static CheckUserNameExists(req: ZestuIoApiRegistryV1alpha1Registry.CheckUserNameExistsRequest, initReq?: fm.InitReq): Promise<ZestuIoApiRegistryV1alpha1Registry.CheckUserNameExistsResponse> {
|
|
198
199
|
return fm.fetchReq<ZestuIoApiRegistryV1alpha1Registry.CheckUserNameExistsRequest, ZestuIoApiRegistryV1alpha1Registry.CheckUserNameExistsResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/registries/checkusername`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
199
200
|
}
|
|
201
|
+
}
|
|
202
|
+
export class Common {
|
|
203
|
+
static GetCommonInfo(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<ZestuIoApiCommonV1alpha1Common.CommonInfoResponse> {
|
|
204
|
+
return fm.fetchReq<GoogleProtobufEmpty.Empty, ZestuIoApiCommonV1alpha1Common.CommonInfoResponse>(`/apis/zestu.io/v1/common/info?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
205
|
+
}
|
|
200
206
|
}
|