@aouda/client 0.1.12 → 0.1.13
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 +30 -3
- 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 +30 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/{client-Q83x0Mz9.d.cts → client-DFujaTFB.d.cts} +284 -5
- package/dist/{client-Q83x0Mz9.d.ts → client-DFujaTFB.d.ts} +284 -5
- package/dist/index.cjs +32 -3
- 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 +31 -3
- 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.13",
|
|
396
396
|
description: "Official TypeScript/JavaScript client library for Aouda",
|
|
397
397
|
type: "module",
|
|
398
398
|
main: "./dist/index.cjs",
|
|
@@ -1405,7 +1405,9 @@ var BulkLoadCoordinator = class {
|
|
|
1405
1405
|
replicationMode: options.replicationMode,
|
|
1406
1406
|
forceSingleNodeReplicationBypass: options.forceSingleNodeReplicationBypass,
|
|
1407
1407
|
postLoadMqBehavior: options.postLoadMqBehavior,
|
|
1408
|
-
...options.identityInsert === true ? { identityInsert: true } : {}
|
|
1408
|
+
...options.identityInsert === true ? { identityInsert: true } : {},
|
|
1409
|
+
...options.applyTransforms === true ? { applyTransforms: true } : {},
|
|
1410
|
+
...options.preTransformed === true ? { preTransformed: true } : {}
|
|
1409
1411
|
}
|
|
1410
1412
|
};
|
|
1411
1413
|
const beginResp = await this.transport.post(
|
|
@@ -1498,7 +1500,11 @@ var ERROR_CODE_MAP = {
|
|
|
1498
1500
|
NAMED_QUERY_BATCH_MUTATION: AoudaValidationError,
|
|
1499
1501
|
NAMED_QUERY_BIND_FAILED: AoudaValidationError,
|
|
1500
1502
|
NAMED_QUERY_PARAM_REQUIRED: AoudaValidationError,
|
|
1501
|
-
NAMED_MUTATION_BIND_FAILED: AoudaValidationError
|
|
1503
|
+
NAMED_MUTATION_BIND_FAILED: AoudaValidationError,
|
|
1504
|
+
AUTH_IDENTITY_INVALID: AoudaValidationError,
|
|
1505
|
+
AUTH_IDENTITY_NOT_FOUND: AoudaValidationError,
|
|
1506
|
+
BULK_LOAD_TRANSFORM_INTENT_REQUIRED: AoudaValidationError,
|
|
1507
|
+
BULK_LOAD_TRANSFORM_INTENT_CONFLICT: AoudaValidationError
|
|
1502
1508
|
};
|
|
1503
1509
|
function createComposedAbortController(...signals) {
|
|
1504
1510
|
const controller = new AbortController();
|
|
@@ -5201,6 +5207,20 @@ var NamedMutationsApi = class {
|
|
|
5201
5207
|
}
|
|
5202
5208
|
};
|
|
5203
5209
|
|
|
5210
|
+
// src/policy.ts
|
|
5211
|
+
var PolicyApi = class {
|
|
5212
|
+
constructor(transport, database) {
|
|
5213
|
+
this.transport = transport;
|
|
5214
|
+
this.database = database;
|
|
5215
|
+
}
|
|
5216
|
+
inspect(body, options) {
|
|
5217
|
+
const path4 = `${databasePath2(this.database)}/policy/inspect`;
|
|
5218
|
+
return this.transport.post(path4, body, {
|
|
5219
|
+
signal: options?.signal
|
|
5220
|
+
});
|
|
5221
|
+
}
|
|
5222
|
+
};
|
|
5223
|
+
|
|
5204
5224
|
// src/streaming/websocket-transport.ts
|
|
5205
5225
|
import { decode as decodeMessagePack, encode as encodeMessagePack } from "@msgpack/msgpack";
|
|
5206
5226
|
var DEFAULT_PING_INTERVAL_MS = 2e4;
|
|
@@ -5989,6 +6009,7 @@ var AoudaClient = class {
|
|
|
5989
6009
|
this.database,
|
|
5990
6010
|
onNamedArtifactWarning
|
|
5991
6011
|
);
|
|
6012
|
+
this._policy = new PolicyApi(this.transport, this.database);
|
|
5992
6013
|
}
|
|
5993
6014
|
/**
|
|
5994
6015
|
* Connects to the Aouda server.
|
|
@@ -6143,6 +6164,12 @@ var AoudaClient = class {
|
|
|
6143
6164
|
get namedMutations() {
|
|
6144
6165
|
return this._namedMutations;
|
|
6145
6166
|
}
|
|
6167
|
+
/**
|
|
6168
|
+
* Policy inspect (`POST …/policy/inspect`). Admin on the data DB.
|
|
6169
|
+
*/
|
|
6170
|
+
get policy() {
|
|
6171
|
+
return this._policy;
|
|
6172
|
+
}
|
|
6146
6173
|
/**
|
|
6147
6174
|
* Access auth operations (signUp, signIn, signOut, refresh, me, changePassword).
|
|
6148
6175
|
* @returns The auth API.
|