@aouda/client 0.0.3 → 0.1.0
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 +11 -5
- 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 +11 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/{client-Bvs1yerF.d.cts → client-Dttx8D7c.d.cts} +27 -3
- package/dist/{client-Bvs1yerF.d.ts → client-Dttx8D7c.d.ts} +27 -3
- package/dist/index.cjs +11 -5
- 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 +11 -5
- 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.0
|
|
395
|
+
version: "0.1.0",
|
|
396
396
|
description: "Official TypeScript/JavaScript client library for Aouda",
|
|
397
397
|
type: "module",
|
|
398
398
|
main: "./dist/index.cjs",
|
|
@@ -3921,13 +3921,19 @@ var DatabasesApi = class {
|
|
|
3921
3921
|
this.transport = transport;
|
|
3922
3922
|
}
|
|
3923
3923
|
/**
|
|
3924
|
-
* Lists
|
|
3924
|
+
* Lists databases on the server.
|
|
3925
3925
|
* GET /api/databases
|
|
3926
3926
|
*
|
|
3927
|
-
*
|
|
3927
|
+
* By default only operator-facing databases (isInternal === false) are returned.
|
|
3928
|
+
* Pass `{ includeInternal: true }` to receive the full catalog including internal
|
|
3929
|
+
* infrastructure databases such as `_serverauth` and `_settings`.
|
|
3930
|
+
*
|
|
3931
|
+
* @param options.includeInternal - When true, appends `?include=internal` to the request.
|
|
3932
|
+
* @returns Array of database info.
|
|
3928
3933
|
*/
|
|
3929
|
-
async list() {
|
|
3930
|
-
const
|
|
3934
|
+
async list(options) {
|
|
3935
|
+
const path4 = options?.includeInternal ? "/api/databases?include=internal" : "/api/databases";
|
|
3936
|
+
const response = await this.transport.get(path4);
|
|
3931
3937
|
return response.databases;
|
|
3932
3938
|
}
|
|
3933
3939
|
/**
|