@atscript/db-client 0.1.154 → 0.1.155
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 +17 -0
- package/dist/index.d.cts +14 -2
- package/dist/index.d.mts +14 -2
- package/dist/index.mjs +17 -1
- package/dist/{validator-DRW4WDEX.d.mts → validator-CI8qxCps.d.cts} +10 -3
- package/dist/{validator-u-SCH8c3.d.cts → validator-zwjB-484.d.mts} +10 -3
- package/dist/validator.d.cts +1 -1
- package/dist/validator.d.mts +1 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -258,6 +258,8 @@ function opaque(etag) {
|
|
|
258
258
|
/**
|
|
259
259
|
* The store every {@link Client} uses unless `ClientOptions.metaStore` says
|
|
260
260
|
* otherwise, so all clients in a page share revalidated `/meta` bodies.
|
|
261
|
+
* Exported since 0.1.155: `client.metaStore === defaultMetaStore` tells a
|
|
262
|
+
* client on the shared store from one with its own.
|
|
261
263
|
*/
|
|
262
264
|
const defaultMetaStore = new MetaStore();
|
|
263
265
|
/**
|
|
@@ -348,6 +350,8 @@ var Client = class {
|
|
|
348
350
|
}
|
|
349
351
|
/**
|
|
350
352
|
* `GET /query` with `$groupBy` — aggregate query with typed dimension/measure fields.
|
|
353
|
+
* `$groupBy: []` is the ungrouped aggregate: one row over the filtered set (served
|
|
354
|
+
* by moost-db since 0.1.155 — the URL carries the aggregate `$select` and no `$groupBy`).
|
|
351
355
|
*
|
|
352
356
|
* `$select` may carry calendar buckets (`{ $bucket, $field, $tz?, $weekStart?, $as? }`);
|
|
353
357
|
* a `$groupBy` entry must be a dimension or a bucket alias (`ValidGroupBy`), and a
|
|
@@ -485,6 +489,18 @@ var Client = class {
|
|
|
485
489
|
return this._metaEtag;
|
|
486
490
|
}
|
|
487
491
|
/**
|
|
492
|
+
* The {@link MetaStore} {@link meta} revalidates through — the shared
|
|
493
|
+
* default store, the one passed as `ClientOptions.metaStore`, or
|
|
494
|
+
* `undefined` when that option was `false`. Read-only: clear it on an
|
|
495
|
+
* identity change (`client.metaStore?.clear()`) together with
|
|
496
|
+
* {@link invalidateMeta}.
|
|
497
|
+
*
|
|
498
|
+
* @since 0.1.155
|
|
499
|
+
*/
|
|
500
|
+
get metaStore() {
|
|
501
|
+
return this._metaStore;
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
488
504
|
* Drops everything this client cached from the server's metadata — the
|
|
489
505
|
* `/meta` response, the validator built from it and the loaded action
|
|
490
506
|
* forms — so the next call fetches them again. Call it when the viewer's
|
|
@@ -1021,6 +1037,7 @@ Object.defineProperty(exports, "bucketStartInstant", {
|
|
|
1021
1037
|
}
|
|
1022
1038
|
});
|
|
1023
1039
|
exports.clearMetaStore = clearMetaStore;
|
|
1040
|
+
exports.defaultMetaStore = defaultMetaStore;
|
|
1024
1041
|
exports.encodeNavigateId = encodeNavigateId;
|
|
1025
1042
|
exports.formatIdentifier = formatIdentifier;
|
|
1026
1043
|
exports.formatIdentifierField = formatIdentifierField;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as SearchIndexInfo, B as Uniquery, C as MetaResponse, D as PatchOf, E as PageResult, F as TDbInsertManyResult, G as MetaStoreOptions, H as ValidGroupBy, I as TDbInsertResult, K as clearMetaStore, L as TDbQueryTarget, M as TDbDeleteResult, N as TDbInsertIgnoreResult, O as RelationInfo, P as TDbInsertManyIgnoreResult, R as TDbUpdateResult, S as IdOf, T as OwnOf, U as WeekStart, V as UniqueryControls, W as MetaStore, _ as DbRow, a as ValidatorMode, b as FieldMeta, c as AggregateResult, d as BucketUnit, f as CalendarBucketLabel, g as DbPatch, h as DataOf, j as ServerError, k as RowOf, l as AtscriptClientShape, m as ClientResponse, n as ClientValidator, p as ClientOptions, r as ClientValidatorOptions, s as AggregateQuery, t as ClientValidationError, u as BucketExpr, v as DecoratedControls, w as NavOf, x as FilterExpr, y as DecoratedQuery, z as TypedWithRelation } from "./validator-
|
|
1
|
+
import { A as SearchIndexInfo, B as Uniquery, C as MetaResponse, D as PatchOf, E as PageResult, F as TDbInsertManyResult, G as MetaStoreOptions, H as ValidGroupBy, I as TDbInsertResult, K as clearMetaStore, L as TDbQueryTarget, M as TDbDeleteResult, N as TDbInsertIgnoreResult, O as RelationInfo, P as TDbInsertManyIgnoreResult, R as TDbUpdateResult, S as IdOf, T as OwnOf, U as WeekStart, V as UniqueryControls, W as MetaStore, _ as DbRow, a as ValidatorMode, b as FieldMeta, c as AggregateResult, d as BucketUnit, f as CalendarBucketLabel, g as DbPatch, h as DataOf, j as ServerError, k as RowOf, l as AtscriptClientShape, m as ClientResponse, n as ClientValidator, p as ClientOptions, q as defaultMetaStore, r as ClientValidatorOptions, s as AggregateQuery, t as ClientValidationError, u as BucketExpr, v as DecoratedControls, w as NavOf, x as FilterExpr, y as DecoratedQuery, z as TypedWithRelation } from "./validator-CI8qxCps.cjs";
|
|
2
2
|
import { AggregateExpr, AggregateOfExpr, AggregateQuery as AggregateQuery$1, AggregateResult as AggregateResult$1, BucketExpr as BucketExpr$1, BucketSeriesOptions, NextBucketOptions, SelectArithExpr, Uniquery as Uniquery$1, ValidGroupBy as ValidGroupBy$1, bucketSeries, bucketStartInstant, nextBucketLabel } from "@uniqu/core";
|
|
3
3
|
import { TAtscriptAnnotatedType, TSerializedAnnotatedType } from "@atscript/typescript/utils";
|
|
4
4
|
import { TCrudOp, TCrudPermissions, TDbActionInfo, TDbActionInfo as TDbActionInfo$1, TDbActionIntent, TDbActionLevel, TDbActionProcessor, TDbActionTargetSummary, TDbActionTargetSummary as TDbActionTargetSummary$1, TDbAvailableActions, TDbAvailableActions as TDbAvailableActions$1, TDbDeleteResult as TDbDeleteResult$1, TDbInsertIgnoreResult as TDbInsertIgnoreResult$1, TDbInsertManyIgnoreResult as TDbInsertManyIgnoreResult$1, TDbInsertManyResult as TDbInsertManyResult$1, TDbInsertResult as TDbInsertResult$1, TDbUpdateResult as TDbUpdateResult$1 } from "@atscript/db";
|
|
@@ -73,6 +73,8 @@ declare class Client<T extends AtscriptClientShape = AtscriptClientShape, D exte
|
|
|
73
73
|
}): Promise<number>;
|
|
74
74
|
/**
|
|
75
75
|
* `GET /query` with `$groupBy` — aggregate query with typed dimension/measure fields.
|
|
76
|
+
* `$groupBy: []` is the ungrouped aggregate: one row over the filtered set (served
|
|
77
|
+
* by moost-db since 0.1.155 — the URL carries the aggregate `$select` and no `$groupBy`).
|
|
76
78
|
*
|
|
77
79
|
* `$select` may carry calendar buckets (`{ $bucket, $field, $tz?, $weekStart?, $as? }`);
|
|
78
80
|
* a `$groupBy` entry must be a dimension or a bucket alias (`ValidGroupBy`), and a
|
|
@@ -184,6 +186,16 @@ declare class Client<T extends AtscriptClientShape = AtscriptClientShape, D exte
|
|
|
184
186
|
* @since 0.1.153
|
|
185
187
|
*/
|
|
186
188
|
metaEtag(): string | undefined;
|
|
189
|
+
/**
|
|
190
|
+
* The {@link MetaStore} {@link meta} revalidates through — the shared
|
|
191
|
+
* default store, the one passed as `ClientOptions.metaStore`, or
|
|
192
|
+
* `undefined` when that option was `false`. Read-only: clear it on an
|
|
193
|
+
* identity change (`client.metaStore?.clear()`) together with
|
|
194
|
+
* {@link invalidateMeta}.
|
|
195
|
+
*
|
|
196
|
+
* @since 0.1.155
|
|
197
|
+
*/
|
|
198
|
+
get metaStore(): MetaStore | undefined;
|
|
187
199
|
/**
|
|
188
200
|
* Drops everything this client cached from the server's metadata — the
|
|
189
201
|
* `/meta` response, the validator built from it and the loaded action
|
|
@@ -543,4 +555,4 @@ declare class ActionUnsupportedError extends Error {
|
|
|
543
555
|
constructor(action: string, processor: string, message: string);
|
|
544
556
|
}
|
|
545
557
|
//#endregion
|
|
546
|
-
export { ActionDisabledError, type ActionDisabledErrorBody, ActionNotFoundError, ActionTargetError, type ActionTargetErrorBody, ActionUnsupportedError, type AggregateQuery, type AggregateResult, type AtscriptClientShape, type BucketExpr, type BucketSeriesOptions, type BucketUnit, type CalendarBucketLabel, Client, ClientError, type ClientOptions, type ClientResponse, type ClientValidationError, type ClientValidator, type ClientValidatorOptions, type DataOf, type DbPatch, type DbRow, type FieldMeta, type FilterExpr, type IdOf, type MetaResponse, MetaStore, type MetaStoreOptions, type NavOf, type NextBucketOptions, type OwnOf, type PageResult, type PatchOf, type RelationInfo, type RowOf, type SearchIndexInfo, type ServerError, type TCrudOp, type TCrudPermissions, type TDbActionInfo, type TDbActionIntent, type TDbActionLevel, type TDbActionProcessor, type TDbActionTargetSummary, type TDbAvailableActions, type TDbDeleteResult, type TDbInsertIgnoreResult, type TDbInsertManyIgnoreResult, type TDbInsertManyResult, type TDbInsertResult, type TDbQueryTarget, type TDbUpdateResult, type TSerializedAnnotatedType, TransportError, type TypedWithRelation, type Uniquery, type UniqueryControls, type ValidGroupBy, type ValidatorMode, VersionMismatchError, type VersionMismatchErrorBody, type WeekStart, actionIdentifier, bucketSeries, bucketStartInstant, clearMetaStore, encodeNavigateId, formatIdentifier, formatIdentifierField, nextBucketLabel };
|
|
558
|
+
export { ActionDisabledError, type ActionDisabledErrorBody, ActionNotFoundError, ActionTargetError, type ActionTargetErrorBody, ActionUnsupportedError, type AggregateQuery, type AggregateResult, type AtscriptClientShape, type BucketExpr, type BucketSeriesOptions, type BucketUnit, type CalendarBucketLabel, Client, ClientError, type ClientOptions, type ClientResponse, type ClientValidationError, type ClientValidator, type ClientValidatorOptions, type DataOf, type DbPatch, type DbRow, type FieldMeta, type FilterExpr, type IdOf, type MetaResponse, MetaStore, type MetaStoreOptions, type NavOf, type NextBucketOptions, type OwnOf, type PageResult, type PatchOf, type RelationInfo, type RowOf, type SearchIndexInfo, type ServerError, type TCrudOp, type TCrudPermissions, type TDbActionInfo, type TDbActionIntent, type TDbActionLevel, type TDbActionProcessor, type TDbActionTargetSummary, type TDbAvailableActions, type TDbDeleteResult, type TDbInsertIgnoreResult, type TDbInsertManyIgnoreResult, type TDbInsertManyResult, type TDbInsertResult, type TDbQueryTarget, type TDbUpdateResult, type TSerializedAnnotatedType, TransportError, type TypedWithRelation, type Uniquery, type UniqueryControls, type ValidGroupBy, type ValidatorMode, VersionMismatchError, type VersionMismatchErrorBody, type WeekStart, actionIdentifier, bucketSeries, bucketStartInstant, clearMetaStore, defaultMetaStore, encodeNavigateId, formatIdentifier, formatIdentifierField, nextBucketLabel };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as SearchIndexInfo, B as Uniquery, C as MetaResponse, D as PatchOf, E as PageResult, F as TDbInsertManyResult, G as MetaStoreOptions, H as ValidGroupBy, I as TDbInsertResult, K as clearMetaStore, L as TDbQueryTarget, M as TDbDeleteResult, N as TDbInsertIgnoreResult, O as RelationInfo, P as TDbInsertManyIgnoreResult, R as TDbUpdateResult, S as IdOf, T as OwnOf, U as WeekStart, V as UniqueryControls, W as MetaStore, _ as DbRow, a as ValidatorMode, b as FieldMeta, c as AggregateResult, d as BucketUnit, f as CalendarBucketLabel, g as DbPatch, h as DataOf, j as ServerError, k as RowOf, l as AtscriptClientShape, m as ClientResponse, n as ClientValidator, p as ClientOptions, r as ClientValidatorOptions, s as AggregateQuery, t as ClientValidationError, u as BucketExpr, v as DecoratedControls, w as NavOf, x as FilterExpr, y as DecoratedQuery, z as TypedWithRelation } from "./validator-
|
|
1
|
+
import { A as SearchIndexInfo, B as Uniquery, C as MetaResponse, D as PatchOf, E as PageResult, F as TDbInsertManyResult, G as MetaStoreOptions, H as ValidGroupBy, I as TDbInsertResult, K as clearMetaStore, L as TDbQueryTarget, M as TDbDeleteResult, N as TDbInsertIgnoreResult, O as RelationInfo, P as TDbInsertManyIgnoreResult, R as TDbUpdateResult, S as IdOf, T as OwnOf, U as WeekStart, V as UniqueryControls, W as MetaStore, _ as DbRow, a as ValidatorMode, b as FieldMeta, c as AggregateResult, d as BucketUnit, f as CalendarBucketLabel, g as DbPatch, h as DataOf, j as ServerError, k as RowOf, l as AtscriptClientShape, m as ClientResponse, n as ClientValidator, p as ClientOptions, q as defaultMetaStore, r as ClientValidatorOptions, s as AggregateQuery, t as ClientValidationError, u as BucketExpr, v as DecoratedControls, w as NavOf, x as FilterExpr, y as DecoratedQuery, z as TypedWithRelation } from "./validator-zwjB-484.mjs";
|
|
2
2
|
import { TAtscriptAnnotatedType, TSerializedAnnotatedType } from "@atscript/typescript/utils";
|
|
3
3
|
import { AggregateExpr, AggregateOfExpr, AggregateQuery as AggregateQuery$1, AggregateResult as AggregateResult$1, BucketExpr as BucketExpr$1, BucketSeriesOptions, NextBucketOptions, SelectArithExpr, Uniquery as Uniquery$1, ValidGroupBy as ValidGroupBy$1, bucketSeries, bucketStartInstant, nextBucketLabel } from "@uniqu/core";
|
|
4
4
|
import { TCrudOp, TCrudPermissions, TDbActionInfo, TDbActionInfo as TDbActionInfo$1, TDbActionIntent, TDbActionLevel, TDbActionProcessor, TDbActionTargetSummary, TDbActionTargetSummary as TDbActionTargetSummary$1, TDbAvailableActions, TDbAvailableActions as TDbAvailableActions$1, TDbDeleteResult as TDbDeleteResult$1, TDbInsertIgnoreResult as TDbInsertIgnoreResult$1, TDbInsertManyIgnoreResult as TDbInsertManyIgnoreResult$1, TDbInsertManyResult as TDbInsertManyResult$1, TDbInsertResult as TDbInsertResult$1, TDbUpdateResult as TDbUpdateResult$1 } from "@atscript/db";
|
|
@@ -73,6 +73,8 @@ declare class Client<T extends AtscriptClientShape = AtscriptClientShape, D exte
|
|
|
73
73
|
}): Promise<number>;
|
|
74
74
|
/**
|
|
75
75
|
* `GET /query` with `$groupBy` — aggregate query with typed dimension/measure fields.
|
|
76
|
+
* `$groupBy: []` is the ungrouped aggregate: one row over the filtered set (served
|
|
77
|
+
* by moost-db since 0.1.155 — the URL carries the aggregate `$select` and no `$groupBy`).
|
|
76
78
|
*
|
|
77
79
|
* `$select` may carry calendar buckets (`{ $bucket, $field, $tz?, $weekStart?, $as? }`);
|
|
78
80
|
* a `$groupBy` entry must be a dimension or a bucket alias (`ValidGroupBy`), and a
|
|
@@ -184,6 +186,16 @@ declare class Client<T extends AtscriptClientShape = AtscriptClientShape, D exte
|
|
|
184
186
|
* @since 0.1.153
|
|
185
187
|
*/
|
|
186
188
|
metaEtag(): string | undefined;
|
|
189
|
+
/**
|
|
190
|
+
* The {@link MetaStore} {@link meta} revalidates through — the shared
|
|
191
|
+
* default store, the one passed as `ClientOptions.metaStore`, or
|
|
192
|
+
* `undefined` when that option was `false`. Read-only: clear it on an
|
|
193
|
+
* identity change (`client.metaStore?.clear()`) together with
|
|
194
|
+
* {@link invalidateMeta}.
|
|
195
|
+
*
|
|
196
|
+
* @since 0.1.155
|
|
197
|
+
*/
|
|
198
|
+
get metaStore(): MetaStore | undefined;
|
|
187
199
|
/**
|
|
188
200
|
* Drops everything this client cached from the server's metadata — the
|
|
189
201
|
* `/meta` response, the validator built from it and the loaded action
|
|
@@ -543,4 +555,4 @@ declare class ActionUnsupportedError extends Error {
|
|
|
543
555
|
constructor(action: string, processor: string, message: string);
|
|
544
556
|
}
|
|
545
557
|
//#endregion
|
|
546
|
-
export { ActionDisabledError, type ActionDisabledErrorBody, ActionNotFoundError, ActionTargetError, type ActionTargetErrorBody, ActionUnsupportedError, type AggregateQuery, type AggregateResult, type AtscriptClientShape, type BucketExpr, type BucketSeriesOptions, type BucketUnit, type CalendarBucketLabel, Client, ClientError, type ClientOptions, type ClientResponse, type ClientValidationError, type ClientValidator, type ClientValidatorOptions, type DataOf, type DbPatch, type DbRow, type FieldMeta, type FilterExpr, type IdOf, type MetaResponse, MetaStore, type MetaStoreOptions, type NavOf, type NextBucketOptions, type OwnOf, type PageResult, type PatchOf, type RelationInfo, type RowOf, type SearchIndexInfo, type ServerError, type TCrudOp, type TCrudPermissions, type TDbActionInfo, type TDbActionIntent, type TDbActionLevel, type TDbActionProcessor, type TDbActionTargetSummary, type TDbAvailableActions, type TDbDeleteResult, type TDbInsertIgnoreResult, type TDbInsertManyIgnoreResult, type TDbInsertManyResult, type TDbInsertResult, type TDbQueryTarget, type TDbUpdateResult, type TSerializedAnnotatedType, TransportError, type TypedWithRelation, type Uniquery, type UniqueryControls, type ValidGroupBy, type ValidatorMode, VersionMismatchError, type VersionMismatchErrorBody, type WeekStart, actionIdentifier, bucketSeries, bucketStartInstant, clearMetaStore, encodeNavigateId, formatIdentifier, formatIdentifierField, nextBucketLabel };
|
|
558
|
+
export { ActionDisabledError, type ActionDisabledErrorBody, ActionNotFoundError, ActionTargetError, type ActionTargetErrorBody, ActionUnsupportedError, type AggregateQuery, type AggregateResult, type AtscriptClientShape, type BucketExpr, type BucketSeriesOptions, type BucketUnit, type CalendarBucketLabel, Client, ClientError, type ClientOptions, type ClientResponse, type ClientValidationError, type ClientValidator, type ClientValidatorOptions, type DataOf, type DbPatch, type DbRow, type FieldMeta, type FilterExpr, type IdOf, type MetaResponse, MetaStore, type MetaStoreOptions, type NavOf, type NextBucketOptions, type OwnOf, type PageResult, type PatchOf, type RelationInfo, type RowOf, type SearchIndexInfo, type ServerError, type TCrudOp, type TCrudPermissions, type TDbActionInfo, type TDbActionIntent, type TDbActionLevel, type TDbActionProcessor, type TDbActionTargetSummary, type TDbAvailableActions, type TDbDeleteResult, type TDbInsertIgnoreResult, type TDbInsertManyIgnoreResult, type TDbInsertManyResult, type TDbInsertResult, type TDbQueryTarget, type TDbUpdateResult, type TSerializedAnnotatedType, TransportError, type TypedWithRelation, type Uniquery, type UniqueryControls, type ValidGroupBy, type ValidatorMode, VersionMismatchError, type VersionMismatchErrorBody, type WeekStart, actionIdentifier, bucketSeries, bucketStartInstant, clearMetaStore, defaultMetaStore, encodeNavigateId, formatIdentifier, formatIdentifierField, nextBucketLabel };
|
package/dist/index.mjs
CHANGED
|
@@ -257,6 +257,8 @@ function opaque(etag) {
|
|
|
257
257
|
/**
|
|
258
258
|
* The store every {@link Client} uses unless `ClientOptions.metaStore` says
|
|
259
259
|
* otherwise, so all clients in a page share revalidated `/meta` bodies.
|
|
260
|
+
* Exported since 0.1.155: `client.metaStore === defaultMetaStore` tells a
|
|
261
|
+
* client on the shared store from one with its own.
|
|
260
262
|
*/
|
|
261
263
|
const defaultMetaStore = new MetaStore();
|
|
262
264
|
/**
|
|
@@ -347,6 +349,8 @@ var Client = class {
|
|
|
347
349
|
}
|
|
348
350
|
/**
|
|
349
351
|
* `GET /query` with `$groupBy` — aggregate query with typed dimension/measure fields.
|
|
352
|
+
* `$groupBy: []` is the ungrouped aggregate: one row over the filtered set (served
|
|
353
|
+
* by moost-db since 0.1.155 — the URL carries the aggregate `$select` and no `$groupBy`).
|
|
350
354
|
*
|
|
351
355
|
* `$select` may carry calendar buckets (`{ $bucket, $field, $tz?, $weekStart?, $as? }`);
|
|
352
356
|
* a `$groupBy` entry must be a dimension or a bucket alias (`ValidGroupBy`), and a
|
|
@@ -484,6 +488,18 @@ var Client = class {
|
|
|
484
488
|
return this._metaEtag;
|
|
485
489
|
}
|
|
486
490
|
/**
|
|
491
|
+
* The {@link MetaStore} {@link meta} revalidates through — the shared
|
|
492
|
+
* default store, the one passed as `ClientOptions.metaStore`, or
|
|
493
|
+
* `undefined` when that option was `false`. Read-only: clear it on an
|
|
494
|
+
* identity change (`client.metaStore?.clear()`) together with
|
|
495
|
+
* {@link invalidateMeta}.
|
|
496
|
+
*
|
|
497
|
+
* @since 0.1.155
|
|
498
|
+
*/
|
|
499
|
+
get metaStore() {
|
|
500
|
+
return this._metaStore;
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
487
503
|
* Drops everything this client cached from the server's metadata — the
|
|
488
504
|
* `/meta` response, the validator built from it and the loaded action
|
|
489
505
|
* forms — so the next call fetches them again. Call it when the viewer's
|
|
@@ -997,4 +1013,4 @@ function describeShape(value) {
|
|
|
997
1013
|
return typeof value;
|
|
998
1014
|
}
|
|
999
1015
|
//#endregion
|
|
1000
|
-
export { ActionDisabledError, ActionNotFoundError, ActionTargetError, ActionUnsupportedError, Client, ClientError, MetaStore, TransportError, VersionMismatchError, actionIdentifier, bucketSeries, bucketStartInstant, clearMetaStore, encodeNavigateId, formatIdentifier, formatIdentifierField, nextBucketLabel };
|
|
1016
|
+
export { ActionDisabledError, ActionNotFoundError, ActionTargetError, ActionUnsupportedError, Client, ClientError, MetaStore, TransportError, VersionMismatchError, actionIdentifier, bucketSeries, bucketStartInstant, clearMetaStore, defaultMetaStore, encodeNavigateId, formatIdentifier, formatIdentifierField, nextBucketLabel };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TAtscriptAnnotatedType, TAtscriptTypeObject } from "@atscript/typescript/utils";
|
|
2
1
|
import { AggregateQuery as AggregateQuery$1, AggregateResult as AggregateResult$1, BucketExpr as BucketExpr$1, BucketUnit, CalendarBucketLabel, FilterExpr, SelectExpr, TypedWithRelation, Uniquery as Uniquery$1, UniqueryControls, ValidGroupBy as ValidGroupBy$1, WeekStart } from "@uniqu/core";
|
|
3
|
-
import {
|
|
2
|
+
import { TAtscriptAnnotatedType, TAtscriptTypeObject } from "@atscript/typescript/utils";
|
|
4
3
|
import { DbPatch, DbResponse, DbRow, TDbDeleteResult as TDbDeleteResult$1, TDbInsertIgnoreResult as TDbInsertIgnoreResult$1, TDbInsertManyIgnoreResult as TDbInsertManyIgnoreResult$1, TDbInsertManyResult as TDbInsertManyResult$1, TDbInsertResult as TDbInsertResult$1, TDbUpdateResult as TDbUpdateResult$1, TFieldMeta, TMetaResponse, TRelationInfo, TSearchIndexInfo } from "@atscript/db";
|
|
4
|
+
import { DbValidationContext, ValidatorMode, ValidatorMode as ValidatorMode$1 } from "@atscript/db/validator";
|
|
5
5
|
|
|
6
6
|
//#region src/meta-store.d.ts
|
|
7
7
|
/** Options for {@link MetaStore}. */
|
|
@@ -78,6 +78,13 @@ declare class MetaStore {
|
|
|
78
78
|
/** The entry for `key`, created if needed and moved to most recently used. */
|
|
79
79
|
private _touchKey;
|
|
80
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* The store every {@link Client} uses unless `ClientOptions.metaStore` says
|
|
83
|
+
* otherwise, so all clients in a page share revalidated `/meta` bodies.
|
|
84
|
+
* Exported since 0.1.155: `client.metaStore === defaultMetaStore` tells a
|
|
85
|
+
* client on the shared store from one with its own.
|
|
86
|
+
*/
|
|
87
|
+
declare const defaultMetaStore: MetaStore;
|
|
81
88
|
/**
|
|
82
89
|
* Clears the shared default {@link MetaStore}. Call it on sign-out or any
|
|
83
90
|
* identity change (together with `Client.invalidateMeta()` on live clients).
|
|
@@ -348,4 +355,4 @@ declare class ClientValidationError extends Error {
|
|
|
348
355
|
*/
|
|
349
356
|
declare function createClientValidator(meta: MetaResponse, opts?: ClientValidatorOptions): ClientValidator;
|
|
350
357
|
//#endregion
|
|
351
|
-
export { SearchIndexInfo as A, Uniquery$1 as B, MetaResponse as C, PatchOf as D, PageResult as E, TDbInsertManyResult$1 as F, MetaStoreOptions as G, ValidGroupBy$1 as H, TDbInsertResult$1 as I, clearMetaStore as K, TDbQueryTarget as L, TDbDeleteResult$1 as M, TDbInsertIgnoreResult$1 as N, RelationInfo as O, TDbInsertManyIgnoreResult$1 as P, TDbUpdateResult$1 as R, IdOf as S, OwnOf as T, WeekStart as U, UniqueryControls as V, MetaStore as W, DbRow as _, ValidatorMode$1 as a, FieldMeta as b, AggregateResult$1 as c, BucketUnit as d, CalendarBucketLabel as f, DbPatch as g, DataOf as h, DbValidationContext as i, ServerError as j, RowOf as k, AtscriptClientShape as l, ClientResponse as m, ClientValidator as n, createClientValidator as o, ClientOptions as p, ClientValidatorOptions as r, AggregateQuery$1 as s, ClientValidationError as t, BucketExpr$1 as u, DecoratedControls as v, NavOf as w, FilterExpr as x, DecoratedQuery as y, TypedWithRelation as z };
|
|
358
|
+
export { SearchIndexInfo as A, Uniquery$1 as B, MetaResponse as C, PatchOf as D, PageResult as E, TDbInsertManyResult$1 as F, MetaStoreOptions as G, ValidGroupBy$1 as H, TDbInsertResult$1 as I, clearMetaStore as K, TDbQueryTarget as L, TDbDeleteResult$1 as M, TDbInsertIgnoreResult$1 as N, RelationInfo as O, TDbInsertManyIgnoreResult$1 as P, TDbUpdateResult$1 as R, IdOf as S, OwnOf as T, WeekStart as U, UniqueryControls as V, MetaStore as W, DbRow as _, ValidatorMode$1 as a, FieldMeta as b, AggregateResult$1 as c, BucketUnit as d, CalendarBucketLabel as f, DbPatch as g, DataOf as h, DbValidationContext as i, ServerError as j, RowOf as k, AtscriptClientShape as l, ClientResponse as m, ClientValidator as n, createClientValidator as o, ClientOptions as p, defaultMetaStore as q, ClientValidatorOptions as r, AggregateQuery$1 as s, ClientValidationError as t, BucketExpr$1 as u, DecoratedControls as v, NavOf as w, FilterExpr as x, DecoratedQuery as y, TypedWithRelation as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AggregateQuery as AggregateQuery$1, AggregateResult as AggregateResult$1, BucketExpr as BucketExpr$1, BucketUnit, CalendarBucketLabel, FilterExpr, SelectExpr, TypedWithRelation, Uniquery as Uniquery$1, UniqueryControls, ValidGroupBy as ValidGroupBy$1, WeekStart } from "@uniqu/core";
|
|
2
1
|
import { TAtscriptAnnotatedType, TAtscriptTypeObject } from "@atscript/typescript/utils";
|
|
3
|
-
import {
|
|
2
|
+
import { AggregateQuery as AggregateQuery$1, AggregateResult as AggregateResult$1, BucketExpr as BucketExpr$1, BucketUnit, CalendarBucketLabel, FilterExpr, SelectExpr, TypedWithRelation, Uniquery as Uniquery$1, UniqueryControls, ValidGroupBy as ValidGroupBy$1, WeekStart } from "@uniqu/core";
|
|
4
3
|
import { DbValidationContext, ValidatorMode, ValidatorMode as ValidatorMode$1 } from "@atscript/db/validator";
|
|
4
|
+
import { DbPatch, DbResponse, DbRow, TDbDeleteResult as TDbDeleteResult$1, TDbInsertIgnoreResult as TDbInsertIgnoreResult$1, TDbInsertManyIgnoreResult as TDbInsertManyIgnoreResult$1, TDbInsertManyResult as TDbInsertManyResult$1, TDbInsertResult as TDbInsertResult$1, TDbUpdateResult as TDbUpdateResult$1, TFieldMeta, TMetaResponse, TRelationInfo, TSearchIndexInfo } from "@atscript/db";
|
|
5
5
|
|
|
6
6
|
//#region src/meta-store.d.ts
|
|
7
7
|
/** Options for {@link MetaStore}. */
|
|
@@ -78,6 +78,13 @@ declare class MetaStore {
|
|
|
78
78
|
/** The entry for `key`, created if needed and moved to most recently used. */
|
|
79
79
|
private _touchKey;
|
|
80
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* The store every {@link Client} uses unless `ClientOptions.metaStore` says
|
|
83
|
+
* otherwise, so all clients in a page share revalidated `/meta` bodies.
|
|
84
|
+
* Exported since 0.1.155: `client.metaStore === defaultMetaStore` tells a
|
|
85
|
+
* client on the shared store from one with its own.
|
|
86
|
+
*/
|
|
87
|
+
declare const defaultMetaStore: MetaStore;
|
|
81
88
|
/**
|
|
82
89
|
* Clears the shared default {@link MetaStore}. Call it on sign-out or any
|
|
83
90
|
* identity change (together with `Client.invalidateMeta()` on live clients).
|
|
@@ -348,4 +355,4 @@ declare class ClientValidationError extends Error {
|
|
|
348
355
|
*/
|
|
349
356
|
declare function createClientValidator(meta: MetaResponse, opts?: ClientValidatorOptions): ClientValidator;
|
|
350
357
|
//#endregion
|
|
351
|
-
export { SearchIndexInfo as A, Uniquery$1 as B, MetaResponse as C, PatchOf as D, PageResult as E, TDbInsertManyResult$1 as F, MetaStoreOptions as G, ValidGroupBy$1 as H, TDbInsertResult$1 as I, clearMetaStore as K, TDbQueryTarget as L, TDbDeleteResult$1 as M, TDbInsertIgnoreResult$1 as N, RelationInfo as O, TDbInsertManyIgnoreResult$1 as P, TDbUpdateResult$1 as R, IdOf as S, OwnOf as T, WeekStart as U, UniqueryControls as V, MetaStore as W, DbRow as _, ValidatorMode$1 as a, FieldMeta as b, AggregateResult$1 as c, BucketUnit as d, CalendarBucketLabel as f, DbPatch as g, DataOf as h, DbValidationContext as i, ServerError as j, RowOf as k, AtscriptClientShape as l, ClientResponse as m, ClientValidator as n, createClientValidator as o, ClientOptions as p, ClientValidatorOptions as r, AggregateQuery$1 as s, ClientValidationError as t, BucketExpr$1 as u, DecoratedControls as v, NavOf as w, FilterExpr as x, DecoratedQuery as y, TypedWithRelation as z };
|
|
358
|
+
export { SearchIndexInfo as A, Uniquery$1 as B, MetaResponse as C, PatchOf as D, PageResult as E, TDbInsertManyResult$1 as F, MetaStoreOptions as G, ValidGroupBy$1 as H, TDbInsertResult$1 as I, clearMetaStore as K, TDbQueryTarget as L, TDbDeleteResult$1 as M, TDbInsertIgnoreResult$1 as N, RelationInfo as O, TDbInsertManyIgnoreResult$1 as P, TDbUpdateResult$1 as R, IdOf as S, OwnOf as T, WeekStart as U, UniqueryControls as V, MetaStore as W, DbRow as _, ValidatorMode$1 as a, FieldMeta as b, AggregateResult$1 as c, BucketUnit as d, CalendarBucketLabel as f, DbPatch as g, DataOf as h, DbValidationContext as i, ServerError as j, RowOf as k, AtscriptClientShape as l, ClientResponse as m, ClientValidator as n, createClientValidator as o, ClientOptions as p, defaultMetaStore as q, ClientValidatorOptions as r, AggregateQuery$1 as s, ClientValidationError as t, BucketExpr$1 as u, DecoratedControls as v, NavOf as w, FilterExpr as x, DecoratedQuery as y, TypedWithRelation as z };
|
package/dist/validator.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ValidatorMode, i as DbValidationContext, n as ClientValidator, o as createClientValidator, r as ClientValidatorOptions, t as ClientValidationError } from "./validator-
|
|
1
|
+
import { a as ValidatorMode, i as DbValidationContext, n as ClientValidator, o as createClientValidator, r as ClientValidatorOptions, t as ClientValidationError } from "./validator-CI8qxCps.cjs";
|
|
2
2
|
export { ClientValidationError, ClientValidator, ClientValidatorOptions, type DbValidationContext, type ValidatorMode, createClientValidator };
|
package/dist/validator.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ValidatorMode, i as DbValidationContext, n as ClientValidator, o as createClientValidator, r as ClientValidatorOptions, t as ClientValidationError } from "./validator-
|
|
1
|
+
import { a as ValidatorMode, i as DbValidationContext, n as ClientValidator, o as createClientValidator, r as ClientValidatorOptions, t as ClientValidationError } from "./validator-zwjB-484.mjs";
|
|
2
2
|
export { ClientValidationError, ClientValidator, ClientValidatorOptions, 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.
|
|
3
|
+
"version": "0.1.155",
|
|
4
4
|
"description": "Browser-compatible HTTP client for @atscript/moost-db REST endpoints.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"atscript",
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
"@uniqu/url": "^0.1.15"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@atscript/core": "^0.1.
|
|
51
|
-
"@atscript/typescript": "^0.1.
|
|
52
|
-
"unplugin-atscript": "^0.1.
|
|
53
|
-
"@atscript/db": "0.1.
|
|
50
|
+
"@atscript/core": "^0.1.105",
|
|
51
|
+
"@atscript/typescript": "^0.1.105",
|
|
52
|
+
"unplugin-atscript": "^0.1.105",
|
|
53
|
+
"@atscript/db": "0.1.155"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@atscript/db": "^0.1.44",
|
|
57
|
-
"@atscript/typescript": "^0.1.
|
|
57
|
+
"@atscript/typescript": "^0.1.105"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"postinstall": "asc -f dts",
|