@aouda/client 0.0.3 → 0.1.1
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 +29 -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 +29 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/{client-Bvs1yerF.d.cts → client-B3XIGTr9.d.cts} +59 -4
- package/dist/{client-Bvs1yerF.d.ts → client-B3XIGTr9.d.ts} +59 -4
- package/dist/index.cjs +29 -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 +29 -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.
|
|
395
|
+
version: "0.1.1",
|
|
396
396
|
description: "Official TypeScript/JavaScript client library for Aouda",
|
|
397
397
|
type: "module",
|
|
398
398
|
main: "./dist/index.cjs",
|
|
@@ -3893,6 +3893,24 @@ var TablesApi = class {
|
|
|
3893
3893
|
`${prefix}/tables/${encodedTable}/columns/${encodedColumn}`
|
|
3894
3894
|
);
|
|
3895
3895
|
}
|
|
3896
|
+
/**
|
|
3897
|
+
* Updates table options (auth mode, partition-level security, culture, etc.).
|
|
3898
|
+
* PUT /api/databases/{db}/tables/{name}/options.
|
|
3899
|
+
* @param name - Table name.
|
|
3900
|
+
* @param body - Options to update. Omit a field to leave it unchanged; pass null to clear a nullable field.
|
|
3901
|
+
* @returns Updated table schema.
|
|
3902
|
+
* @throws AoudaNotFoundError if table does not exist; AoudaApiError for WRITE_NOT_ALLOWED, INVALID_REQUEST, etc.
|
|
3903
|
+
*/
|
|
3904
|
+
async updateTableOptions(name, body) {
|
|
3905
|
+
validateNonEmptyString(name, "Table name");
|
|
3906
|
+
const prefix = databasePath2(this.database);
|
|
3907
|
+
const encodedName = encodeURIComponent(name);
|
|
3908
|
+
const requestBody = { database: this.database, ...body };
|
|
3909
|
+
return this.transport.put(
|
|
3910
|
+
`${prefix}/tables/${encodedName}/options`,
|
|
3911
|
+
requestBody
|
|
3912
|
+
);
|
|
3913
|
+
}
|
|
3896
3914
|
/**
|
|
3897
3915
|
* Updates a table's storage policy (temperature).
|
|
3898
3916
|
* @param name - Table name.
|
|
@@ -3921,13 +3939,19 @@ var DatabasesApi = class {
|
|
|
3921
3939
|
this.transport = transport;
|
|
3922
3940
|
}
|
|
3923
3941
|
/**
|
|
3924
|
-
* Lists
|
|
3942
|
+
* Lists databases on the server.
|
|
3925
3943
|
* GET /api/databases
|
|
3926
3944
|
*
|
|
3927
|
-
*
|
|
3945
|
+
* By default only operator-facing databases (isInternal === false) are returned.
|
|
3946
|
+
* Pass `{ includeInternal: true }` to receive the full catalog including internal
|
|
3947
|
+
* infrastructure databases such as `_serverauth` and `_settings`.
|
|
3948
|
+
*
|
|
3949
|
+
* @param options.includeInternal - When true, appends `?include=internal` to the request.
|
|
3950
|
+
* @returns Array of database info.
|
|
3928
3951
|
*/
|
|
3929
|
-
async list() {
|
|
3930
|
-
const
|
|
3952
|
+
async list(options) {
|
|
3953
|
+
const path4 = options?.includeInternal ? "/api/databases?include=internal" : "/api/databases";
|
|
3954
|
+
const response = await this.transport.get(path4);
|
|
3931
3955
|
return response.databases;
|
|
3932
3956
|
}
|
|
3933
3957
|
/**
|