@daocloud-proto/zestu 0.5.0-dev-e8aa25df → 0.5.0-dev-2dfb72fa

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/zestu",
3
- "version":"v0.5.0-dev-e8aa25df",
3
+ "version":"v0.5.0-dev-2dfb72fa",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -75,6 +75,14 @@ export type GetStorageDetailsResponse = {
75
75
  initializedAt?: string
76
76
  }
77
77
 
78
+ export type GetCurrentUsageRequest = {
79
+ regionId?: string
80
+ }
81
+
82
+ export type GetCurrentUsageResponse = {
83
+ currentUsage?: string
84
+ }
85
+
78
86
  export type DeleteFileRequest = {
79
87
  regionId?: string
80
88
  filename?: string
@@ -88,6 +88,9 @@ export class FileStorage {
88
88
  static UpdateQuota(req: ZestuIoApiFile_storageV1alpha1Storage.UpdateQuotaRequest, initReq?: fm.InitReq): Promise<ZestuIoApiFile_storageV1alpha1Storage.UpdateQuotaResponse> {
89
89
  return fm.fetchReq<ZestuIoApiFile_storageV1alpha1Storage.UpdateQuotaRequest, ZestuIoApiFile_storageV1alpha1Storage.UpdateQuotaResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/filestorage/quota`, {...initReq, method: "POST", body: JSON.stringify(req)})
90
90
  }
91
+ static GetCurrentUsage(req: ZestuIoApiFile_storageV1alpha1Storage.GetCurrentUsageRequest, initReq?: fm.InitReq): Promise<ZestuIoApiFile_storageV1alpha1Storage.GetCurrentUsageResponse> {
92
+ return fm.fetchReq<ZestuIoApiFile_storageV1alpha1Storage.GetCurrentUsageRequest, ZestuIoApiFile_storageV1alpha1Storage.GetCurrentUsageResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/filestorage/currentusage?${fm.renderURLSearchParams(req, ["regionId"])}`, {...initReq, method: "GET"})
93
+ }
91
94
  }
92
95
  export class StorageResource {
93
96
  static GetStoragePrice(req: ZestuIoApiFile_storageV1alpha1Storage.GetStoragePriceRequest, initReq?: fm.InitReq): Promise<ZestuIoApiFile_storageV1alpha1Storage.GetStoragePriceResponse> {