backendless 6.3.3 → 6.3.7

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/backendless.d.ts CHANGED
@@ -269,6 +269,8 @@ declare module Backendless {
269
269
 
270
270
  function describe(model: string | Object | Function): Promise<Object>;
271
271
 
272
+ function getTableNameById(tableId: string): Promise<string>;
273
+
272
274
  function mapTableToClass(tableName: string, clientClass: Function): void;
273
275
  function mapTableToClass(clientClass: Function): void;
274
276
  }
@@ -447,12 +449,25 @@ declare module Backendless {
447
449
 
448
450
  let restUrl: string;
449
451
 
450
- function saveFile(path: string, fileName: string, fileContent: Blob | string, overwrite?: boolean): Promise<boolean>;
452
+ function saveFile(path: string, fileName: string, fileContent: Blob | Buffer | string, overwrite?: boolean): Promise<string>;
451
453
 
452
- function upload(file: File, path: string, overwrite?: boolean): Promise<Object>;
453
- function upload(fileURL: string, path: string, overwrite?: boolean): Promise<Object>;
454
454
  // @ts-ignore - file has to be an instance of File in browser env and an instance of ReadStream in nodejs env
455
- function upload(readStream: ReadStream, path: string, overwrite?: boolean): Promise<Object>;
455
+ function upload(readStream: ReadStream, path: string, overwrite?: boolean): Promise<{ fileURL: string }>;
456
+ function upload(file: File, path: string, overwrite?: boolean): Promise<{ fileURL: string }>;
457
+ function upload(fileURL: string, path: string, overwrite?: boolean): Promise<{ fileURL: string }>;
458
+
459
+ function append(filePath: string, fileURL: string): Promise<string>;
460
+ function append(filePath: string, fileContent: Blob | Buffer | ArrayBuffer | number[]): Promise<string>;
461
+ // @ts-ignore
462
+ function append(filePath: string, readStream: ReadStream): Promise<string>;
463
+
464
+ function append(directoryPath: string, fileName: string, fileURL: string): Promise<string>;
465
+ function append(directoryPath: string, fileName: string, fileContent: Blob | Buffer | ArrayBuffer | number[]): Promise<string>;
466
+ // @ts-ignore
467
+ function append(directoryPath: string, fileName: string, readStream: ReadStream): Promise<string>;
468
+
469
+ function appendText(directoryPath: string, fileName: string, fileContent: string): Promise<string>;
470
+ function appendText(filePath: string, fileContent: string): Promise<string>;
456
471
 
457
472
  function listing(path: string, pattern?: string, sub?: boolean, pageSize?: number, offset?: number): Promise<Object>;
458
473