@atscript/db-client 0.1.101 → 0.1.103

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/index.cjs CHANGED
@@ -7,6 +7,8 @@ let _atscript_typescript_utils = require("@atscript/typescript/utils");
7
7
  * Captures the HTTP status and the structured error body from moost-db.
8
8
  */
9
9
  var ClientError = class extends Error {
10
+ status;
11
+ body;
10
12
  name = "ClientError";
11
13
  constructor(status, body) {
12
14
  super(body.message || `HTTP ${status}`);
@@ -56,6 +58,7 @@ var VersionMismatchError = class extends ClientError {
56
58
  };
57
59
  /** Thrown by `Client.action()` when the action name is not present in `/meta`. */
58
60
  var ActionNotFoundError = class extends Error {
61
+ action;
59
62
  name = "ActionNotFoundError";
60
63
  constructor(action) {
61
64
  super(`Action "${action}" is not declared on this controller`);
@@ -69,6 +72,8 @@ var ActionNotFoundError = class extends Error {
69
72
  * when no browser environment and no `navigate` option are configured.
70
73
  */
71
74
  var ActionUnsupportedError = class extends Error {
75
+ action;
76
+ processor;
72
77
  name = "ActionUnsupportedError";
73
78
  constructor(action, processor, message) {
74
79
  super(message);
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as TDbInsertManyResult, D as Uniquery, E as TypedWithRelation, O as UniqueryControls, S as TDbDeleteResult, T as TDbUpdateResult, _ as OwnOf, b as SearchIndexInfo, c as AtscriptClientShape, d as DataOf, f as FieldMeta, g as NavOf, h as MetaResponse, i as ValidatorMode, l as ClientOptions, m as IdOf, n as ClientValidator, o as AggregateQuery, p as FilterExpr, s as AggregateResult, t as ClientValidationError, u as ClientResponse, v as PageResult, w as TDbInsertResult, x as ServerError, y as RelationInfo } from "./validator-CiQNksPD.cjs";
1
+ import { C as TDbInsertManyResult, D as Uniquery, E as TypedWithRelation, O as UniqueryControls, S as TDbDeleteResult, T as TDbUpdateResult, _ as OwnOf, b as SearchIndexInfo, c as AtscriptClientShape, d as DataOf, f as FieldMeta, g as NavOf, h as MetaResponse, i as ValidatorMode, l as ClientOptions, m as IdOf, n as ClientValidator, o as AggregateQuery, p as FilterExpr, s as AggregateResult, t as ClientValidationError, u as ClientResponse, v as PageResult, w as TDbInsertResult, x as ServerError, y as RelationInfo } from "./validator-DFrZ7tTQ.cjs";
2
2
  import { AggregateQuery as AggregateQuery$1, AggregateResult as AggregateResult$1, Uniquery as Uniquery$1, UniqueryControls as UniqueryControls$1 } from "@uniqu/core";
3
3
  import { TAtscriptAnnotatedType, TSerializedAnnotatedType } from "@atscript/typescript/utils";
4
4
  import { TCrudOp, TCrudPermissions, TDbActionInfo, TDbActionIntent, TDbActionLevel, TDbActionProcessor, TDbDeleteResult as TDbDeleteResult$1, TDbInsertManyResult as TDbInsertManyResult$1, TDbInsertResult as TDbInsertResult$1, TDbUpdateResult as TDbUpdateResult$1 } from "@atscript/db";
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as TDbInsertManyResult, D as Uniquery, E as TypedWithRelation, O as UniqueryControls, S as TDbDeleteResult, T as TDbUpdateResult, _ as OwnOf, b as SearchIndexInfo, c as AtscriptClientShape, d as DataOf, f as FieldMeta, g as NavOf, h as MetaResponse, i as ValidatorMode, l as ClientOptions, m as IdOf, n as ClientValidator, o as AggregateQuery, p as FilterExpr, s as AggregateResult, t as ClientValidationError, u as ClientResponse, v as PageResult, w as TDbInsertResult, x as ServerError, y as RelationInfo } from "./validator-DkIQ_0Lc.mjs";
1
+ import { C as TDbInsertManyResult, D as Uniquery, E as TypedWithRelation, O as UniqueryControls, S as TDbDeleteResult, T as TDbUpdateResult, _ as OwnOf, b as SearchIndexInfo, c as AtscriptClientShape, d as DataOf, f as FieldMeta, g as NavOf, h as MetaResponse, i as ValidatorMode, l as ClientOptions, m as IdOf, n as ClientValidator, o as AggregateQuery, p as FilterExpr, s as AggregateResult, t as ClientValidationError, u as ClientResponse, v as PageResult, w as TDbInsertResult, x as ServerError, y as RelationInfo } from "./validator-ADGQn9EV.mjs";
2
2
  import { TAtscriptAnnotatedType, TSerializedAnnotatedType } from "@atscript/typescript/utils";
3
3
  import { AggregateQuery as AggregateQuery$1, AggregateResult as AggregateResult$1, Uniquery as Uniquery$1, UniqueryControls as UniqueryControls$1 } from "@uniqu/core";
4
4
  import { TCrudOp, TCrudPermissions, TDbActionInfo, TDbActionIntent, TDbActionLevel, TDbActionProcessor, TDbDeleteResult as TDbDeleteResult$1, TDbInsertManyResult as TDbInsertManyResult$1, TDbInsertResult as TDbInsertResult$1, TDbUpdateResult as TDbUpdateResult$1 } from "@atscript/db";
package/dist/index.mjs CHANGED
@@ -6,6 +6,8 @@ import { deserializeAnnotatedType } from "@atscript/typescript/utils";
6
6
  * Captures the HTTP status and the structured error body from moost-db.
7
7
  */
8
8
  var ClientError = class extends Error {
9
+ status;
10
+ body;
9
11
  name = "ClientError";
10
12
  constructor(status, body) {
11
13
  super(body.message || `HTTP ${status}`);
@@ -55,6 +57,7 @@ var VersionMismatchError = class extends ClientError {
55
57
  };
56
58
  /** Thrown by `Client.action()` when the action name is not present in `/meta`. */
57
59
  var ActionNotFoundError = class extends Error {
60
+ action;
58
61
  name = "ActionNotFoundError";
59
62
  constructor(action) {
60
63
  super(`Action "${action}" is not declared on this controller`);
@@ -68,6 +71,8 @@ var ActionNotFoundError = class extends Error {
68
71
  * when no browser environment and no `navigate` option are configured.
69
72
  */
70
73
  var ActionUnsupportedError = class extends Error {
74
+ action;
75
+ processor;
71
76
  name = "ActionUnsupportedError";
72
77
  constructor(action, processor, message) {
73
78
  super(message);
@@ -1,2 +1,2 @@
1
- import { a as createClientValidator, i as ValidatorMode, n as ClientValidator, r as DbValidationContext, t as ClientValidationError } from "./validator-CiQNksPD.cjs";
2
- export { ClientValidationError, ClientValidator, DbValidationContext, ValidatorMode, createClientValidator };
1
+ import { a as createClientValidator, i as ValidatorMode, n as ClientValidator, r as DbValidationContext, t as ClientValidationError } from "./validator-DFrZ7tTQ.cjs";
2
+ export { ClientValidationError, ClientValidator, type DbValidationContext, type ValidatorMode, createClientValidator };
@@ -1,2 +1,2 @@
1
- import { a as createClientValidator, i as ValidatorMode, n as ClientValidator, r as DbValidationContext, t as ClientValidationError } from "./validator-DkIQ_0Lc.mjs";
2
- export { ClientValidationError, ClientValidator, DbValidationContext, ValidatorMode, createClientValidator };
1
+ import { a as createClientValidator, i as ValidatorMode, n as ClientValidator, r as DbValidationContext, t as ClientValidationError } from "./validator-ADGQn9EV.mjs";
2
+ export { ClientValidationError, ClientValidator, type DbValidationContext, type ValidatorMode, createClientValidator };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atscript/db-client",
3
- "version": "0.1.101",
3
+ "version": "0.1.103",
4
4
  "description": "Browser-compatible HTTP client for @atscript/moost-db REST endpoints.",
5
5
  "keywords": [
6
6
  "atscript",
@@ -46,15 +46,15 @@
46
46
  "@uniqu/url": "^0.1.6"
47
47
  },
48
48
  "devDependencies": {
49
- "@atscript/core": "^0.1.74",
50
- "@atscript/typescript": "^0.1.74",
49
+ "@atscript/core": "^0.1.75",
50
+ "@atscript/typescript": "^0.1.75",
51
51
  "@uniqu/core": "^0.1.6",
52
- "unplugin-atscript": "^0.1.74",
53
- "@atscript/db": "0.1.101"
52
+ "unplugin-atscript": "^0.1.75",
53
+ "@atscript/db": "0.1.103"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@atscript/db": "^0.1.44",
57
- "@atscript/typescript": "^0.1.74"
57
+ "@atscript/typescript": "^0.1.75"
58
58
  },
59
59
  "scripts": {
60
60
  "postinstall": "asc -f dts",