@taruvi/sdk 1.0.4 → 1.0.5
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
|
@@ -21,7 +21,7 @@ export class Database {
|
|
|
21
21
|
this.body = body
|
|
22
22
|
this.config = this.client.getConfig()
|
|
23
23
|
this.filters = filters
|
|
24
|
-
}
|
|
24
|
+
}
|
|
25
25
|
|
|
26
26
|
from(dataTables: string): Database {
|
|
27
27
|
return new Database(this.client, { ...this.urlParams, dataTables }, undefined, undefined)
|
|
@@ -36,13 +36,13 @@ export class Database {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
update(body: any): Database {
|
|
39
|
-
return new Database(this.client, this.urlParams = { ...this.urlParams }, HttpMethod.
|
|
39
|
+
return new Database(this.client, this.urlParams = { ...this.urlParams }, HttpMethod.PUT, body)
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
delete(recordId?: any): Database {
|
|
43
43
|
return new Database(this.client, this.urlParams = { ...this.urlParams, recordId }, HttpMethod.DELETE)
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
11
|
|
46
46
|
private buildRoute(): string {
|
|
47
47
|
return (
|
|
48
48
|
DatabaseRoutes.baseUrl(this.config.appSlug) +
|
|
@@ -33,8 +33,10 @@ export class Storage {
|
|
|
33
33
|
return new Storage(this.client, { ...this.urlParams }, undefined, undefined, filters)
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
delete(
|
|
37
|
-
return new Storage(this.client, {
|
|
36
|
+
delete(paths: string[]): Storage {
|
|
37
|
+
return new Storage(this.client, {
|
|
38
|
+
...this.urlParams, delete: "delete"
|
|
39
|
+
} as any, HttpMethod.POST, { paths })
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
update(path: string, body: object): Storage {
|