@daocloud-proto/zestu 0.17.0-dev-14c407a7 → 0.17.0-dev-a9345d20

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.17.0-dev-14c407a7",
3
+ "version":"v0.17.0-dev-a9345d20",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -98,6 +98,23 @@ export type DeleteFileRequest = {
98
98
  dirPath?: string
99
99
  }
100
100
 
101
+ export type CreateDirectoryRequest = {
102
+ regionId?: string
103
+ dirPath?: string
104
+ name?: string
105
+ }
106
+
107
+ export type CreateDirectoryResponse = {
108
+ info?: FileInfo
109
+ }
110
+
111
+ export type RenameFileRequest = {
112
+ regionId?: string
113
+ dirPath?: string
114
+ oldName?: string
115
+ newName?: string
116
+ }
117
+
101
118
  export type GenerateFileUploadSignatureRequest = {
102
119
  regionId?: string
103
120
  filename?: string
@@ -115,6 +115,12 @@ export class FileStorage {
115
115
  static DeleteFile(req: ZestuIoApiFile_storageV1alpha1Storage.DeleteFileRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
116
116
  return fm.fetchReq<ZestuIoApiFile_storageV1alpha1Storage.DeleteFileRequest, GoogleProtobufEmpty.Empty>(`/apis/zestu.io/v1/region/${req["regionId"]}/filestorage/file`, {...initReq, method: "DELETE", body: JSON.stringify(req)})
117
117
  }
118
+ static CreateDirectory(req: ZestuIoApiFile_storageV1alpha1Storage.CreateDirectoryRequest, initReq?: fm.InitReq): Promise<ZestuIoApiFile_storageV1alpha1Storage.CreateDirectoryResponse> {
119
+ return fm.fetchReq<ZestuIoApiFile_storageV1alpha1Storage.CreateDirectoryRequest, ZestuIoApiFile_storageV1alpha1Storage.CreateDirectoryResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/filestorage/directory`, {...initReq, method: "POST", body: JSON.stringify(req)})
120
+ }
121
+ static RenameFile(req: ZestuIoApiFile_storageV1alpha1Storage.RenameFileRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
122
+ return fm.fetchReq<ZestuIoApiFile_storageV1alpha1Storage.RenameFileRequest, GoogleProtobufEmpty.Empty>(`/apis/zestu.io/v1/region/${req["regionId"]}/filestorage/file/rename`, {...initReq, method: "POST", body: JSON.stringify(req)})
123
+ }
118
124
  static UpdateQuota(req: ZestuIoApiFile_storageV1alpha1Storage.UpdateQuotaRequest, initReq?: fm.InitReq): Promise<ZestuIoApiFile_storageV1alpha1Storage.UpdateQuotaResponse> {
119
125
  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)})
120
126
  }