@aouda/client 0.1.16 → 0.1.17
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/cli/index.cjs +14 -7
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +1 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +14 -7
- package/dist/cli/index.js.map +1 -1
- package/dist/{client-CsE8Vd6m.d.cts → client-CeON_I6V.d.cts} +22 -4
- package/dist/{client-CsE8Vd6m.d.ts → client-CeON_I6V.d.ts} +22 -4
- package/dist/index.cjs +14 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +14 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.d.cts
CHANGED
package/dist/cli/index.d.ts
CHANGED
package/dist/cli/index.js
CHANGED
|
@@ -392,7 +392,7 @@ import { fileURLToPath } from "url";
|
|
|
392
392
|
// package.json
|
|
393
393
|
var package_default = {
|
|
394
394
|
name: "@aouda/client",
|
|
395
|
-
version: "0.1.
|
|
395
|
+
version: "0.1.17",
|
|
396
396
|
description: "Official TypeScript/JavaScript client library for Aouda",
|
|
397
397
|
type: "module",
|
|
398
398
|
main: "./dist/index.cjs",
|
|
@@ -4925,14 +4925,21 @@ var BackupAdminApi = class {
|
|
|
4925
4925
|
return this.transport.get(`${BASE_PATH4}/list`);
|
|
4926
4926
|
}
|
|
4927
4927
|
/**
|
|
4928
|
-
* Restore a backup
|
|
4929
|
-
* POST /admin/backup/restore/{id}
|
|
4928
|
+
* Restore a backup. The string form is an exact restore of that id
|
|
4929
|
+
* (`POST /admin/backup/restore/{id}` with `{}`). The object form posts the body to
|
|
4930
|
+
* `POST /admin/backup/restore` and may carry `targetTime` for point-in-time recovery.
|
|
4930
4931
|
*/
|
|
4931
|
-
async restore(
|
|
4932
|
-
|
|
4932
|
+
async restore(input) {
|
|
4933
|
+
if (typeof input === "string") {
|
|
4934
|
+
const encoded = encodeURIComponent(input);
|
|
4935
|
+
return this.transport.post(
|
|
4936
|
+
`${BASE_PATH4}/restore/${encoded}`,
|
|
4937
|
+
{}
|
|
4938
|
+
);
|
|
4939
|
+
}
|
|
4933
4940
|
return this.transport.post(
|
|
4934
|
-
`${BASE_PATH4}/restore
|
|
4935
|
-
|
|
4941
|
+
`${BASE_PATH4}/restore`,
|
|
4942
|
+
input
|
|
4936
4943
|
);
|
|
4937
4944
|
}
|
|
4938
4945
|
/**
|