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 +19 -4
- package/dist/backendless.js +306 -76
- package/dist/backendless.js.map +1 -1
- package/dist/backendless.min.js +3 -3
- package/es/data/index.js +26 -0
- package/es/files/index.js +235 -71
- package/es/files/utils.js +23 -2
- package/es/local-cache/index.js +1 -1
- package/es/logging/index.js +4 -0
- package/es/urls.js +15 -0
- package/lib/data/index.js +26 -0
- package/lib/files/index.js +235 -71
- package/lib/files/utils.js +23 -2
- package/lib/local-cache/index.js +1 -1
- package/lib/logging/index.js +4 -0
- package/lib/urls.js +15 -0
- package/package.json +2 -2
- package/src/data/index.js +6 -0
- package/src/files/index.js +95 -7
- package/src/files/utils.js +25 -2
- package/src/local-cache/index.js +3 -1
- package/src/logging/index.js +4 -0
- package/src/urls.js +12 -0
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<
|
|
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<
|
|
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
|
|