@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.cjs
CHANGED
|
@@ -421,7 +421,7 @@ var import_node_url = require("url");
|
|
|
421
421
|
// package.json
|
|
422
422
|
var package_default = {
|
|
423
423
|
name: "@aouda/client",
|
|
424
|
-
version: "0.0
|
|
424
|
+
version: "0.1.0",
|
|
425
425
|
description: "Official TypeScript/JavaScript client library for Aouda",
|
|
426
426
|
type: "module",
|
|
427
427
|
main: "./dist/index.cjs",
|
|
@@ -3950,13 +3950,19 @@ var DatabasesApi = class {
|
|
|
3950
3950
|
this.transport = transport;
|
|
3951
3951
|
}
|
|
3952
3952
|
/**
|
|
3953
|
-
* Lists
|
|
3953
|
+
* Lists databases on the server.
|
|
3954
3954
|
* GET /api/databases
|
|
3955
3955
|
*
|
|
3956
|
-
*
|
|
3956
|
+
* By default only operator-facing databases (isInternal === false) are returned.
|
|
3957
|
+
* Pass `{ includeInternal: true }` to receive the full catalog including internal
|
|
3958
|
+
* infrastructure databases such as `_serverauth` and `_settings`.
|
|
3959
|
+
*
|
|
3960
|
+
* @param options.includeInternal - When true, appends `?include=internal` to the request.
|
|
3961
|
+
* @returns Array of database info.
|
|
3957
3962
|
*/
|
|
3958
|
-
async list() {
|
|
3959
|
-
const
|
|
3963
|
+
async list(options) {
|
|
3964
|
+
const path4 = options?.includeInternal ? "/api/databases?include=internal" : "/api/databases";
|
|
3965
|
+
const response = await this.transport.get(path4);
|
|
3960
3966
|
return response.databases;
|
|
3961
3967
|
}
|
|
3962
3968
|
/**
|