easywork-common-lib 1.0.880 → 1.0.882
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/dist/grpc/drive/drive.proto +17 -0
- package/package.json +1 -1
|
@@ -23,6 +23,7 @@ message IFile {
|
|
|
23
23
|
string mimeType = 3; // Tipo MIME del archivo
|
|
24
24
|
string s3Key = 4; // Clave del archivo en S3
|
|
25
25
|
bytes filecontent = 5; // Contenido binario del archivo
|
|
26
|
+
string metadata = 6; // Metadatos
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
// Categorías para clasificar las carpetas de un recibo.
|
|
@@ -185,6 +186,12 @@ message CreateFolderBulkResponse {
|
|
|
185
186
|
bool success = 1; // Indicador de éxito de la operación
|
|
186
187
|
}
|
|
187
188
|
|
|
189
|
+
message CopyFileRequest {
|
|
190
|
+
string fileId = 1;
|
|
191
|
+
string newName = 2;
|
|
192
|
+
string folderId = 3;
|
|
193
|
+
}
|
|
194
|
+
|
|
188
195
|
// Solicitud para crear un archivo.
|
|
189
196
|
message CreateFileRequest {
|
|
190
197
|
string name = 1; // Nombre del archivo
|
|
@@ -204,6 +211,13 @@ message CreateFilesRequest {
|
|
|
204
211
|
repeated CreateFileRequest files = 1; // Lista de archivos a crear
|
|
205
212
|
}
|
|
206
213
|
|
|
214
|
+
message CopyFileResponse {
|
|
215
|
+
string id = 1; // Identificador del archivo copiado
|
|
216
|
+
string url = 2; // URL del archivo almacenado
|
|
217
|
+
string name = 3; // Nombre del archivo copiado
|
|
218
|
+
string mimeType = 4; // Tipo MIME del archivo
|
|
219
|
+
}
|
|
220
|
+
|
|
207
221
|
// Respuesta tras la creación de múltiples archivos.
|
|
208
222
|
message CreateFilesResponse {
|
|
209
223
|
repeated string filesIds = 1; // Identificadores de los archivos creados
|
|
@@ -239,6 +253,9 @@ service DriveService {
|
|
|
239
253
|
// Crea múltiples carpetas en una sola operación.
|
|
240
254
|
rpc CreateFolders(CreateFolderBulkRequest) returns (CreateFolderBulkResponse);
|
|
241
255
|
|
|
256
|
+
// Copia un archivo
|
|
257
|
+
rpc CopyFile(CopyFileRequest) returns (CopyFileResponse)
|
|
258
|
+
|
|
242
259
|
// Crea un archivo.
|
|
243
260
|
rpc CreateFile(CreateFileRequest) returns (CreateFileResponse);
|
|
244
261
|
|