@atscript/db 0.1.55 → 0.1.56

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.
@@ -200,6 +200,34 @@ interface TMetaResponse {
200
200
  relations: TRelationInfo[];
201
201
  fields: Record<string, TFieldMeta>;
202
202
  type: TSerializedAnnotatedType;
203
+ actions: TDbActionInfo[];
204
+ }
205
+ /** Where the action applies on the UI. */
206
+ type TDbActionLevel = "table" | "row" | "rows";
207
+ /** Semantic intent the UI maps to its own visual language (color, prominence). */
208
+ type TDbActionIntent = "positive" | "negative" | "primary" | "secondary";
209
+ /** How the UI client should handle the action when invoked. */
210
+ type TDbActionProcessor = "backend" | "navigate" | "custom";
211
+ /**
212
+ * Single action descriptor in the `/meta` envelope. Flat shape — `processor`
213
+ * is a string discriminator; `value` is its sibling and is always populated.
214
+ *
215
+ * - `processor: 'backend'` — UI POSTs to `value` (full HTTP path).
216
+ * - `processor: 'navigate'` — UI routes to `value` (URL template; `$1` is the row PK).
217
+ * - `processor: 'custom'` — UI dispatches `value` as an event name (defaults to action `name`).
218
+ */
219
+ interface TDbActionInfo {
220
+ name: string;
221
+ label: string;
222
+ level: TDbActionLevel;
223
+ processor: TDbActionProcessor;
224
+ value: string;
225
+ icon?: string;
226
+ intent?: TDbActionIntent;
227
+ description?: string;
228
+ order?: number;
229
+ default?: boolean;
230
+ promptText?: string;
203
231
  }
204
232
  interface TDbInsertResult {
205
233
  insertedId: unknown;
@@ -1287,4 +1315,4 @@ declare class AtscriptDbReadable<T extends TAtscriptAnnotatedType = TAtscriptAnn
1287
1315
  }, thisTableName: string, alias?: string): TDbForeignKey | undefined;
1288
1316
  }
1289
1317
  //#endregion
1290
- export { Uniquery$1 as $, TDbIndexType as A, TFkLookupResolver as B, TDbDefaultFn as C, TDbForeignKey as D, TDbFieldMeta as E, TDbStorageType as F, TRelationInfo as G, TIdDescriptor as H, TDbUpdateResult as I, TTableOptionDiff as J, TSearchIndexInfo as K, TExistingColumn as L, TDbInsertResult as M, TDbReferentialAction as N, TDbIndex as O, TDbRelation as P, TypedWithRelation as Q, TExistingTableOption as R, TDbCollation as S, TDbDeleteResult as T, TMetaResponse as U, TFkLookupTarget as V, TMetadataOverrides as W, TValueFormatterPair as X, TTableResolver as Y, TWriteTableResolver as Z, NavPropsOf$1 as _, FieldMappingStrategy as a, UniquSelect as at, TCascadeTarget as b, AggregateExpr$1 as c, AggregateResult as d, UniqueryControls$1 as et, AtscriptDbWritable as f, FilterExpr$1 as g, FieldOpsFor as h, DocumentFieldMapper as i, TGenericLogger as it, TDbInsertManyResult as j, TDbIndexField as k, AggregateFn as l, DbQuery as m, DbResponse as n, TableMetadata as nt, BaseDbAdapter as o, DbControls as p, TSyncColumnResult as q, resolveDesignType as r, NoopLogger as rt, AggregateControls as s, AtscriptDbReadable as t, WithRelation$1 as tt, AggregateQuery$1 as u, OwnPropsOf$1 as v, TDbDefaultValue as w, TColumnDiff as x, TCascadeResolver as y, TFieldMeta as z };
1318
+ export { TTableResolver as $, TDbFieldMeta as A, TDbUpdateResult as B, TDbActionIntent as C, TDbDefaultFn as D, TDbCollation as E, TDbInsertManyResult as F, TFkLookupTarget as G, TExistingTableOption as H, TDbInsertResult as I, TMetadataOverrides as J, TIdDescriptor as K, TDbReferentialAction as L, TDbIndex as M, TDbIndexField as N, TDbDefaultValue as O, TDbIndexType as P, TTableOptionDiff as Q, TDbRelation as R, TDbActionInfo as S, TDbActionProcessor as T, TFieldMeta as U, TExistingColumn as V, TFkLookupResolver as W, TSearchIndexInfo as X, TRelationInfo as Y, TSyncColumnResult as Z, NavPropsOf$1 as _, FieldMappingStrategy as a, WithRelation$1 as at, TCascadeTarget as b, AggregateExpr$1 as c, TGenericLogger as ct, AggregateResult as d, TValueFormatterPair as et, AtscriptDbWritable as f, FilterExpr$1 as g, FieldOpsFor as h, DocumentFieldMapper as i, UniqueryControls$1 as it, TDbForeignKey as j, TDbDeleteResult as k, AggregateFn as l, UniquSelect as lt, DbQuery as m, DbResponse as n, TypedWithRelation as nt, BaseDbAdapter as o, TableMetadata as ot, DbControls as p, TMetaResponse as q, resolveDesignType as r, Uniquery$1 as rt, AggregateControls as s, NoopLogger as st, AtscriptDbReadable as t, TWriteTableResolver as tt, AggregateQuery$1 as u, OwnPropsOf$1 as v, TDbActionLevel as w, TColumnDiff as x, TCascadeResolver as y, TDbStorageType as z };
@@ -200,6 +200,34 @@ interface TMetaResponse {
200
200
  relations: TRelationInfo[];
201
201
  fields: Record<string, TFieldMeta>;
202
202
  type: TSerializedAnnotatedType;
203
+ actions: TDbActionInfo[];
204
+ }
205
+ /** Where the action applies on the UI. */
206
+ type TDbActionLevel = "table" | "row" | "rows";
207
+ /** Semantic intent the UI maps to its own visual language (color, prominence). */
208
+ type TDbActionIntent = "positive" | "negative" | "primary" | "secondary";
209
+ /** How the UI client should handle the action when invoked. */
210
+ type TDbActionProcessor = "backend" | "navigate" | "custom";
211
+ /**
212
+ * Single action descriptor in the `/meta` envelope. Flat shape — `processor`
213
+ * is a string discriminator; `value` is its sibling and is always populated.
214
+ *
215
+ * - `processor: 'backend'` — UI POSTs to `value` (full HTTP path).
216
+ * - `processor: 'navigate'` — UI routes to `value` (URL template; `$1` is the row PK).
217
+ * - `processor: 'custom'` — UI dispatches `value` as an event name (defaults to action `name`).
218
+ */
219
+ interface TDbActionInfo {
220
+ name: string;
221
+ label: string;
222
+ level: TDbActionLevel;
223
+ processor: TDbActionProcessor;
224
+ value: string;
225
+ icon?: string;
226
+ intent?: TDbActionIntent;
227
+ description?: string;
228
+ order?: number;
229
+ default?: boolean;
230
+ promptText?: string;
203
231
  }
204
232
  interface TDbInsertResult {
205
233
  insertedId: unknown;
@@ -1287,4 +1315,4 @@ declare class AtscriptDbReadable<T extends TAtscriptAnnotatedType = TAtscriptAnn
1287
1315
  }, thisTableName: string, alias?: string): TDbForeignKey | undefined;
1288
1316
  }
1289
1317
  //#endregion
1290
- export { Uniquery$1 as $, TDbIndexType as A, TFkLookupResolver as B, TDbDefaultFn as C, TDbForeignKey as D, TDbFieldMeta as E, TDbStorageType as F, TRelationInfo as G, TIdDescriptor as H, TDbUpdateResult as I, TTableOptionDiff as J, TSearchIndexInfo as K, TExistingColumn as L, TDbInsertResult as M, TDbReferentialAction as N, TDbIndex as O, TDbRelation as P, TypedWithRelation as Q, TExistingTableOption as R, TDbCollation as S, TDbDeleteResult as T, TMetaResponse as U, TFkLookupTarget as V, TMetadataOverrides as W, TValueFormatterPair as X, TTableResolver as Y, TWriteTableResolver as Z, NavPropsOf$1 as _, FieldMappingStrategy as a, UniquSelect as at, TCascadeTarget as b, AggregateExpr$1 as c, AggregateResult as d, UniqueryControls$1 as et, AtscriptDbWritable as f, FilterExpr$1 as g, FieldOpsFor as h, DocumentFieldMapper as i, TGenericLogger as it, TDbInsertManyResult as j, TDbIndexField as k, AggregateFn as l, DbQuery as m, DbResponse as n, TableMetadata as nt, BaseDbAdapter as o, DbControls as p, TSyncColumnResult as q, resolveDesignType as r, NoopLogger as rt, AggregateControls as s, AtscriptDbReadable as t, WithRelation$1 as tt, AggregateQuery$1 as u, OwnPropsOf$1 as v, TDbDefaultValue as w, TColumnDiff as x, TCascadeResolver as y, TFieldMeta as z };
1318
+ export { TTableResolver as $, TDbFieldMeta as A, TDbUpdateResult as B, TDbActionIntent as C, TDbDefaultFn as D, TDbCollation as E, TDbInsertManyResult as F, TFkLookupTarget as G, TExistingTableOption as H, TDbInsertResult as I, TMetadataOverrides as J, TIdDescriptor as K, TDbReferentialAction as L, TDbIndex as M, TDbIndexField as N, TDbDefaultValue as O, TDbIndexType as P, TTableOptionDiff as Q, TDbRelation as R, TDbActionInfo as S, TDbActionProcessor as T, TFieldMeta as U, TExistingColumn as V, TFkLookupResolver as W, TSearchIndexInfo as X, TRelationInfo as Y, TSyncColumnResult as Z, NavPropsOf$1 as _, FieldMappingStrategy as a, WithRelation$1 as at, TCascadeTarget as b, AggregateExpr$1 as c, TGenericLogger as ct, AggregateResult as d, TValueFormatterPair as et, AtscriptDbWritable as f, FilterExpr$1 as g, FieldOpsFor as h, DocumentFieldMapper as i, UniqueryControls$1 as it, TDbForeignKey as j, TDbDeleteResult as k, AggregateFn as l, UniquSelect as lt, DbQuery as m, DbResponse as n, TypedWithRelation as nt, BaseDbAdapter as o, TableMetadata as ot, DbControls as p, TMetaResponse as q, resolveDesignType as r, Uniquery$1 as rt, AggregateControls as s, NoopLogger as st, AtscriptDbReadable as t, TWriteTableResolver as tt, AggregateQuery$1 as u, OwnPropsOf$1 as v, TDbActionLevel as w, TColumnDiff as x, TCascadeResolver as y, TDbStorageType as z };
@@ -1,6 +1,6 @@
1
- import { B as TFkLookupResolver, I as TDbUpdateResult, M as TDbInsertResult, T as TDbDeleteResult, Y as TTableResolver, Z as TWriteTableResolver, it as TGenericLogger, j as TDbInsertManyResult, nt as TableMetadata, o as BaseDbAdapter, t as AtscriptDbReadable, y as TCascadeResolver } from "./db-readable-DtrC0BGF.cjs";
2
- import { FilterExpr } from "@uniqu/core";
1
+ import { $ as TTableResolver, B as TDbUpdateResult, F as TDbInsertManyResult, I as TDbInsertResult, W as TFkLookupResolver, ct as TGenericLogger, k as TDbDeleteResult, o as BaseDbAdapter, ot as TableMetadata, t as AtscriptDbReadable, tt as TWriteTableResolver, y as TCascadeResolver } from "./db-readable-B9Irll4q.mjs";
3
2
  import { AtscriptQueryComparison, AtscriptQueryFieldRef, AtscriptQueryFieldRef as AtscriptQueryFieldRef$1, AtscriptQueryNode, AtscriptQueryNode as AtscriptQueryNode$1, AtscriptRef, FlatOf, NavPropsOf, OwnPropsOf, PrimaryKeyOf, TAtscriptAnnotatedType, TAtscriptDataType, Validator } from "@atscript/typescript/utils";
3
+ import { FilterExpr } from "@uniqu/core";
4
4
 
5
5
  //#region src/strategies/integrity.d.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- import { B as TFkLookupResolver, I as TDbUpdateResult, M as TDbInsertResult, T as TDbDeleteResult, Y as TTableResolver, Z as TWriteTableResolver, it as TGenericLogger, j as TDbInsertManyResult, nt as TableMetadata, o as BaseDbAdapter, t as AtscriptDbReadable, y as TCascadeResolver } from "./db-readable-RTtqL7H4.mjs";
2
- import { AtscriptQueryComparison, AtscriptQueryFieldRef, AtscriptQueryFieldRef as AtscriptQueryFieldRef$1, AtscriptQueryNode, AtscriptQueryNode as AtscriptQueryNode$1, AtscriptRef, FlatOf, NavPropsOf, OwnPropsOf, PrimaryKeyOf, TAtscriptAnnotatedType, TAtscriptDataType, Validator } from "@atscript/typescript/utils";
1
+ import { $ as TTableResolver, B as TDbUpdateResult, F as TDbInsertManyResult, I as TDbInsertResult, W as TFkLookupResolver, ct as TGenericLogger, k as TDbDeleteResult, o as BaseDbAdapter, ot as TableMetadata, t as AtscriptDbReadable, tt as TWriteTableResolver, y as TCascadeResolver } from "./db-readable-Cwjbk6o_.cjs";
3
2
  import { FilterExpr } from "@uniqu/core";
3
+ import { AtscriptQueryComparison, AtscriptQueryFieldRef, AtscriptQueryFieldRef as AtscriptQueryFieldRef$1, AtscriptQueryNode, AtscriptQueryNode as AtscriptQueryNode$1, AtscriptRef, FlatOf, NavPropsOf, OwnPropsOf, PrimaryKeyOf, TAtscriptAnnotatedType, TAtscriptDataType, Validator } from "@atscript/typescript/utils";
4
4
 
5
5
  //#region src/strategies/integrity.d.ts
6
6
  /**
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { $ as Uniquery, A as TDbIndexType, B as TFkLookupResolver, C as TDbDefaultFn, D as TDbForeignKey, E as TDbFieldMeta, F as TDbStorageType, G as TRelationInfo, H as TIdDescriptor, I as TDbUpdateResult, J as TTableOptionDiff, K as TSearchIndexInfo, L as TExistingColumn, M as TDbInsertResult, N as TDbReferentialAction, O as TDbIndex, P as TDbRelation, Q as TypedWithRelation, R as TExistingTableOption, S as TDbCollation, T as TDbDeleteResult, U as TMetaResponse, V as TFkLookupTarget, W as TMetadataOverrides, X as TValueFormatterPair, Y as TTableResolver, Z as TWriteTableResolver, _ as NavPropsOf, a as FieldMappingStrategy, at as UniquSelect, b as TCascadeTarget, c as AggregateExpr, d as AggregateResult, et as UniqueryControls, f as AtscriptDbWritable, g as FilterExpr, h as FieldOpsFor, i as DocumentFieldMapper, it as TGenericLogger, j as TDbInsertManyResult, k as TDbIndexField, l as AggregateFn, m as DbQuery, n as DbResponse, nt as TableMetadata, o as BaseDbAdapter, p as DbControls, q as TSyncColumnResult, r as resolveDesignType, rt as NoopLogger, s as AggregateControls, t as AtscriptDbReadable, tt as WithRelation, u as AggregateQuery, v as OwnPropsOf, w as TDbDefaultValue, x as TColumnDiff, y as TCascadeResolver, z as TFieldMeta } from "./db-readable-DtrC0BGF.cjs";
1
+ import { $ as TTableResolver, A as TDbFieldMeta, B as TDbUpdateResult, C as TDbActionIntent, D as TDbDefaultFn, E as TDbCollation, F as TDbInsertManyResult, G as TFkLookupTarget, H as TExistingTableOption, I as TDbInsertResult, J as TMetadataOverrides, K as TIdDescriptor, L as TDbReferentialAction, M as TDbIndex, N as TDbIndexField, O as TDbDefaultValue, P as TDbIndexType, Q as TTableOptionDiff, R as TDbRelation, S as TDbActionInfo, T as TDbActionProcessor, U as TFieldMeta, V as TExistingColumn, W as TFkLookupResolver, X as TSearchIndexInfo, Y as TRelationInfo, Z as TSyncColumnResult, _ as NavPropsOf, a as FieldMappingStrategy, at as WithRelation, b as TCascadeTarget, c as AggregateExpr, ct as TGenericLogger, d as AggregateResult, et as TValueFormatterPair, f as AtscriptDbWritable, g as FilterExpr, h as FieldOpsFor, i as DocumentFieldMapper, it as UniqueryControls, j as TDbForeignKey, k as TDbDeleteResult, l as AggregateFn, lt as UniquSelect, m as DbQuery, n as DbResponse, nt as TypedWithRelation, o as BaseDbAdapter, ot as TableMetadata, p as DbControls, q as TMetaResponse, r as resolveDesignType, rt as Uniquery, s as AggregateControls, st as NoopLogger, t as AtscriptDbReadable, tt as TWriteTableResolver, u as AggregateQuery, v as OwnPropsOf, w as TDbActionLevel, x as TColumnDiff, y as TCascadeResolver, z as TDbStorageType } from "./db-readable-Cwjbk6o_.cjs";
2
2
  import { a as $remove, c as $upsert, d as getDbFieldOp, f as isDbFieldOp, i as $mul, l as TDbFieldOp, n as $inc, o as $replace, p as separateFieldOps, r as $insert, s as $update, t as $dec, u as TFieldOps } from "./ops-DXJ4Zw0P.cjs";
3
- import { a as AtscriptQueryComparison, c as AtscriptRef, d as translateQueryTree, f as AtscriptDbTable, i as TViewColumnMapping, l as TViewJoin, m as NativeIntegrity, n as TAdapterFactory, o as AtscriptQueryFieldRef, p as IntegrityStrategy, r as AtscriptDbView, s as AtscriptQueryNode, t as DbSpace, u as TViewPlan } from "./db-space-BqVLHVq7.cjs";
3
+ import { a as AtscriptQueryComparison, c as AtscriptRef, d as translateQueryTree, f as AtscriptDbTable, i as TViewColumnMapping, l as TViewJoin, m as NativeIntegrity, n as TAdapterFactory, o as AtscriptQueryFieldRef, p as IntegrityStrategy, r as AtscriptDbView, s as AtscriptQueryNode, t as DbSpace, u as TViewPlan } from "./db-space-CQg17vv7.cjs";
4
4
  import { n as createDbValidatorPlugin, t as DbValidationContext } from "./db-validator-plugin-DRGMCEn3.cjs";
5
5
  import { c as TArrayPatch, i as buildValidationContext, l as TDbPatch, n as ValidatorMode, o as forceNavNonOptional, r as buildDbValidator, s as isNavRelation, t as ValidationContext, u as getKeyProps } from "./validator-_z_A3cKa.cjs";
6
6
  import { AggregateQuery as AggregateQuery$1, FilterExpr as FilterExpr$1, FilterVisitor, Uniquery as Uniquery$1, computeInsights, isPrimitive, walkFilter } from "@uniqu/core";
@@ -114,4 +114,4 @@ declare class DbError extends Error {
114
114
  */
115
115
  declare function decomposePatch(payload: Record<string, unknown>, table: AtscriptDbTable): Record<string, unknown>;
116
116
  //#endregion
117
- export { $dec, $inc, $insert, $mul, $remove, $replace, $update, $upsert, type AggregateControls, type AggregateExpr, type AggregateFn, type AggregateQuery, type AggregateResult, ApplicationIntegrity, AtscriptDbReadable, AtscriptDbTable, AtscriptDbView, type AtscriptDbWritable, type AtscriptQueryComparison, type AtscriptQueryFieldRef, type AtscriptQueryNode, type AtscriptRef, BaseDbAdapter, type DbControls, DbError, type DbErrorCode, type DbQuery, type DbResponse, DbSpace, type DbValidationContext, DocumentFieldMapper, FieldMappingStrategy, type FieldOpsFor, type FilterExpr, type FilterVisitor, IntegrityStrategy, NativeIntegrity, type NavPropsOf, NoopLogger, type OwnPropsOf, RelationalFieldMapper, type TAdapterFactory, type TArrayPatch, type TCascadeResolver, type TCascadeTarget, type TColumnDiff, type TDbCollation, type TDbDefaultFn, type TDbDefaultValue, type TDbDeleteResult, type TDbFieldMeta, type TDbFieldOp, type TDbForeignKey, type TDbIndex, type TDbIndexField, type TDbIndexType, type TDbInsertManyResult, type TDbInsertResult, type TDbPatch, type TDbReferentialAction, type TDbRelation, type TDbStorageType, type TDbUpdateResult, type TExistingColumn, type TExistingTableOption, type TFieldMeta, type TFieldOps, type TFkLookupResolver, type TFkLookupTarget, type TGenericLogger, type TIdDescriptor, type TMetaResponse, type TMetadataOverrides, type TRelationInfo, type TSearchIndexInfo, type TSyncColumnResult, type TTableOptionDiff, type TTableResolver, type TValueFormatterPair, type TViewColumnMapping, type TViewJoin, type TViewPlan, type TWriteTableResolver, TableMetadata, type TypedWithRelation, UniquSelect, type Uniquery, type UniqueryControls, type ValidationContext, type ValidatorMode, type WithRelation, buildDbValidator, buildValidationContext, computeInsights, createDbValidatorPlugin, decomposePatch, forceNavNonOptional, getDbFieldOp, getKeyProps, isDbFieldOp, isNavRelation, isPrimitive, resolveDesignType, separateFieldOps, translateQueryTree, walkFilter };
117
+ export { $dec, $inc, $insert, $mul, $remove, $replace, $update, $upsert, type AggregateControls, type AggregateExpr, type AggregateFn, type AggregateQuery, type AggregateResult, ApplicationIntegrity, AtscriptDbReadable, AtscriptDbTable, AtscriptDbView, type AtscriptDbWritable, type AtscriptQueryComparison, type AtscriptQueryFieldRef, type AtscriptQueryNode, type AtscriptRef, BaseDbAdapter, type DbControls, DbError, type DbErrorCode, type DbQuery, type DbResponse, DbSpace, type DbValidationContext, DocumentFieldMapper, FieldMappingStrategy, type FieldOpsFor, type FilterExpr, type FilterVisitor, IntegrityStrategy, NativeIntegrity, type NavPropsOf, NoopLogger, type OwnPropsOf, RelationalFieldMapper, type TAdapterFactory, type TArrayPatch, type TCascadeResolver, type TCascadeTarget, type TColumnDiff, type TDbActionInfo, type TDbActionIntent, type TDbActionLevel, type TDbActionProcessor, type TDbCollation, type TDbDefaultFn, type TDbDefaultValue, type TDbDeleteResult, type TDbFieldMeta, type TDbFieldOp, type TDbForeignKey, type TDbIndex, type TDbIndexField, type TDbIndexType, type TDbInsertManyResult, type TDbInsertResult, type TDbPatch, type TDbReferentialAction, type TDbRelation, type TDbStorageType, type TDbUpdateResult, type TExistingColumn, type TExistingTableOption, type TFieldMeta, type TFieldOps, type TFkLookupResolver, type TFkLookupTarget, type TGenericLogger, type TIdDescriptor, type TMetaResponse, type TMetadataOverrides, type TRelationInfo, type TSearchIndexInfo, type TSyncColumnResult, type TTableOptionDiff, type TTableResolver, type TValueFormatterPair, type TViewColumnMapping, type TViewJoin, type TViewPlan, type TWriteTableResolver, TableMetadata, type TypedWithRelation, UniquSelect, type Uniquery, type UniqueryControls, type ValidationContext, type ValidatorMode, type WithRelation, buildDbValidator, buildValidationContext, computeInsights, createDbValidatorPlugin, decomposePatch, forceNavNonOptional, getDbFieldOp, getKeyProps, isDbFieldOp, isNavRelation, isPrimitive, resolveDesignType, separateFieldOps, translateQueryTree, walkFilter };
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { $ as Uniquery, A as TDbIndexType, B as TFkLookupResolver, C as TDbDefaultFn, D as TDbForeignKey, E as TDbFieldMeta, F as TDbStorageType, G as TRelationInfo, H as TIdDescriptor, I as TDbUpdateResult, J as TTableOptionDiff, K as TSearchIndexInfo, L as TExistingColumn, M as TDbInsertResult, N as TDbReferentialAction, O as TDbIndex, P as TDbRelation, Q as TypedWithRelation, R as TExistingTableOption, S as TDbCollation, T as TDbDeleteResult, U as TMetaResponse, V as TFkLookupTarget, W as TMetadataOverrides, X as TValueFormatterPair, Y as TTableResolver, Z as TWriteTableResolver, _ as NavPropsOf, a as FieldMappingStrategy, at as UniquSelect, b as TCascadeTarget, c as AggregateExpr, d as AggregateResult, et as UniqueryControls, f as AtscriptDbWritable, g as FilterExpr, h as FieldOpsFor, i as DocumentFieldMapper, it as TGenericLogger, j as TDbInsertManyResult, k as TDbIndexField, l as AggregateFn, m as DbQuery, n as DbResponse, nt as TableMetadata, o as BaseDbAdapter, p as DbControls, q as TSyncColumnResult, r as resolveDesignType, rt as NoopLogger, s as AggregateControls, t as AtscriptDbReadable, tt as WithRelation, u as AggregateQuery, v as OwnPropsOf, w as TDbDefaultValue, x as TColumnDiff, y as TCascadeResolver, z as TFieldMeta } from "./db-readable-RTtqL7H4.mjs";
1
+ import { $ as TTableResolver, A as TDbFieldMeta, B as TDbUpdateResult, C as TDbActionIntent, D as TDbDefaultFn, E as TDbCollation, F as TDbInsertManyResult, G as TFkLookupTarget, H as TExistingTableOption, I as TDbInsertResult, J as TMetadataOverrides, K as TIdDescriptor, L as TDbReferentialAction, M as TDbIndex, N as TDbIndexField, O as TDbDefaultValue, P as TDbIndexType, Q as TTableOptionDiff, R as TDbRelation, S as TDbActionInfo, T as TDbActionProcessor, U as TFieldMeta, V as TExistingColumn, W as TFkLookupResolver, X as TSearchIndexInfo, Y as TRelationInfo, Z as TSyncColumnResult, _ as NavPropsOf, a as FieldMappingStrategy, at as WithRelation, b as TCascadeTarget, c as AggregateExpr, ct as TGenericLogger, d as AggregateResult, et as TValueFormatterPair, f as AtscriptDbWritable, g as FilterExpr, h as FieldOpsFor, i as DocumentFieldMapper, it as UniqueryControls, j as TDbForeignKey, k as TDbDeleteResult, l as AggregateFn, lt as UniquSelect, m as DbQuery, n as DbResponse, nt as TypedWithRelation, o as BaseDbAdapter, ot as TableMetadata, p as DbControls, q as TMetaResponse, r as resolveDesignType, rt as Uniquery, s as AggregateControls, st as NoopLogger, t as AtscriptDbReadable, tt as TWriteTableResolver, u as AggregateQuery, v as OwnPropsOf, w as TDbActionLevel, x as TColumnDiff, y as TCascadeResolver, z as TDbStorageType } from "./db-readable-B9Irll4q.mjs";
2
2
  import { a as $remove, c as $upsert, d as getDbFieldOp, f as isDbFieldOp, i as $mul, l as TDbFieldOp, n as $inc, o as $replace, p as separateFieldOps, r as $insert, s as $update, t as $dec, u as TFieldOps } from "./ops-C61kelof.mjs";
3
- import { a as AtscriptQueryComparison, c as AtscriptRef, d as translateQueryTree, f as AtscriptDbTable, i as TViewColumnMapping, l as TViewJoin, m as NativeIntegrity, n as TAdapterFactory, o as AtscriptQueryFieldRef, p as IntegrityStrategy, r as AtscriptDbView, s as AtscriptQueryNode, t as DbSpace, u as TViewPlan } from "./db-space-D3QSKx2B.mjs";
3
+ import { a as AtscriptQueryComparison, c as AtscriptRef, d as translateQueryTree, f as AtscriptDbTable, i as TViewColumnMapping, l as TViewJoin, m as NativeIntegrity, n as TAdapterFactory, o as AtscriptQueryFieldRef, p as IntegrityStrategy, r as AtscriptDbView, s as AtscriptQueryNode, t as DbSpace, u as TViewPlan } from "./db-space-CAcEB09Y.mjs";
4
4
  import { n as createDbValidatorPlugin, t as DbValidationContext } from "./db-validator-plugin-DDvYyv5t.mjs";
5
5
  import { c as TArrayPatch, i as buildValidationContext, l as TDbPatch, n as ValidatorMode, o as forceNavNonOptional, r as buildDbValidator, s as isNavRelation, t as ValidationContext, u as getKeyProps } from "./validator-DttN2e5_.mjs";
6
6
  import { AggregateQuery as AggregateQuery$1, FilterExpr as FilterExpr$1, FilterVisitor, Uniquery as Uniquery$1, computeInsights, isPrimitive, walkFilter } from "@uniqu/core";
@@ -114,4 +114,4 @@ declare class DbError extends Error {
114
114
  */
115
115
  declare function decomposePatch(payload: Record<string, unknown>, table: AtscriptDbTable): Record<string, unknown>;
116
116
  //#endregion
117
- export { $dec, $inc, $insert, $mul, $remove, $replace, $update, $upsert, type AggregateControls, type AggregateExpr, type AggregateFn, type AggregateQuery, type AggregateResult, ApplicationIntegrity, AtscriptDbReadable, AtscriptDbTable, AtscriptDbView, type AtscriptDbWritable, type AtscriptQueryComparison, type AtscriptQueryFieldRef, type AtscriptQueryNode, type AtscriptRef, BaseDbAdapter, type DbControls, DbError, type DbErrorCode, type DbQuery, type DbResponse, DbSpace, type DbValidationContext, DocumentFieldMapper, FieldMappingStrategy, type FieldOpsFor, type FilterExpr, type FilterVisitor, IntegrityStrategy, NativeIntegrity, type NavPropsOf, NoopLogger, type OwnPropsOf, RelationalFieldMapper, type TAdapterFactory, type TArrayPatch, type TCascadeResolver, type TCascadeTarget, type TColumnDiff, type TDbCollation, type TDbDefaultFn, type TDbDefaultValue, type TDbDeleteResult, type TDbFieldMeta, type TDbFieldOp, type TDbForeignKey, type TDbIndex, type TDbIndexField, type TDbIndexType, type TDbInsertManyResult, type TDbInsertResult, type TDbPatch, type TDbReferentialAction, type TDbRelation, type TDbStorageType, type TDbUpdateResult, type TExistingColumn, type TExistingTableOption, type TFieldMeta, type TFieldOps, type TFkLookupResolver, type TFkLookupTarget, type TGenericLogger, type TIdDescriptor, type TMetaResponse, type TMetadataOverrides, type TRelationInfo, type TSearchIndexInfo, type TSyncColumnResult, type TTableOptionDiff, type TTableResolver, type TValueFormatterPair, type TViewColumnMapping, type TViewJoin, type TViewPlan, type TWriteTableResolver, TableMetadata, type TypedWithRelation, UniquSelect, type Uniquery, type UniqueryControls, type ValidationContext, type ValidatorMode, type WithRelation, buildDbValidator, buildValidationContext, computeInsights, createDbValidatorPlugin, decomposePatch, forceNavNonOptional, getDbFieldOp, getKeyProps, isDbFieldOp, isNavRelation, isPrimitive, resolveDesignType, separateFieldOps, translateQueryTree, walkFilter };
117
+ export { $dec, $inc, $insert, $mul, $remove, $replace, $update, $upsert, type AggregateControls, type AggregateExpr, type AggregateFn, type AggregateQuery, type AggregateResult, ApplicationIntegrity, AtscriptDbReadable, AtscriptDbTable, AtscriptDbView, type AtscriptDbWritable, type AtscriptQueryComparison, type AtscriptQueryFieldRef, type AtscriptQueryNode, type AtscriptRef, BaseDbAdapter, type DbControls, DbError, type DbErrorCode, type DbQuery, type DbResponse, DbSpace, type DbValidationContext, DocumentFieldMapper, FieldMappingStrategy, type FieldOpsFor, type FilterExpr, type FilterVisitor, IntegrityStrategy, NativeIntegrity, type NavPropsOf, NoopLogger, type OwnPropsOf, RelationalFieldMapper, type TAdapterFactory, type TArrayPatch, type TCascadeResolver, type TCascadeTarget, type TColumnDiff, type TDbActionInfo, type TDbActionIntent, type TDbActionLevel, type TDbActionProcessor, type TDbCollation, type TDbDefaultFn, type TDbDefaultValue, type TDbDeleteResult, type TDbFieldMeta, type TDbFieldOp, type TDbForeignKey, type TDbIndex, type TDbIndexField, type TDbIndexType, type TDbInsertManyResult, type TDbInsertResult, type TDbPatch, type TDbReferentialAction, type TDbRelation, type TDbStorageType, type TDbUpdateResult, type TExistingColumn, type TExistingTableOption, type TFieldMeta, type TFieldOps, type TFkLookupResolver, type TFkLookupTarget, type TGenericLogger, type TIdDescriptor, type TMetaResponse, type TMetadataOverrides, type TRelationInfo, type TSearchIndexInfo, type TSyncColumnResult, type TTableOptionDiff, type TTableResolver, type TValueFormatterPair, type TViewColumnMapping, type TViewJoin, type TViewPlan, type TWriteTableResolver, TableMetadata, type TypedWithRelation, UniquSelect, type Uniquery, type UniqueryControls, type ValidationContext, type ValidatorMode, type WithRelation, buildDbValidator, buildValidationContext, computeInsights, createDbValidatorPlugin, decomposePatch, forceNavNonOptional, getDbFieldOp, getKeyProps, isDbFieldOp, isNavRelation, isPrimitive, resolveDesignType, separateFieldOps, translateQueryTree, walkFilter };
package/dist/rel.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { D as TDbForeignKey, P as TDbRelation, Y as TTableResolver, Z as TWriteTableResolver, it as TGenericLogger, nt as TableMetadata, o as BaseDbAdapter } from "./db-readable-DtrC0BGF.cjs";
1
+ import { $ as TTableResolver, R as TDbRelation, ct as TGenericLogger, j as TDbForeignKey, o as BaseDbAdapter, ot as TableMetadata, tt as TWriteTableResolver } from "./db-readable-Cwjbk6o_.cjs";
2
2
  import { t as DbValidationContext } from "./db-validator-plugin-DRGMCEn3.cjs";
3
3
  import { FilterExpr, WithRelation } from "@uniqu/core";
4
4
  import { Validator } from "@atscript/typescript/utils";
package/dist/rel.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { D as TDbForeignKey, P as TDbRelation, Y as TTableResolver, Z as TWriteTableResolver, it as TGenericLogger, nt as TableMetadata, o as BaseDbAdapter } from "./db-readable-RTtqL7H4.mjs";
1
+ import { $ as TTableResolver, R as TDbRelation, ct as TGenericLogger, j as TDbForeignKey, o as BaseDbAdapter, ot as TableMetadata, tt as TWriteTableResolver } from "./db-readable-B9Irll4q.mjs";
2
2
  import { t as DbValidationContext } from "./db-validator-plugin-DDvYyv5t.mjs";
3
3
  import { Validator } from "@atscript/typescript/utils";
4
4
  import { FilterExpr, WithRelation } from "@uniqu/core";
package/dist/sync.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { D as TDbForeignKey, E as TDbFieldMeta, F as TDbStorageType, J as TTableOptionDiff, L as TExistingColumn, R as TExistingTableOption, it as TGenericLogger, t as AtscriptDbReadable, w as TDbDefaultValue, x as TColumnDiff } from "./db-readable-DtrC0BGF.cjs";
2
- import { r as AtscriptDbView, t as DbSpace } from "./db-space-BqVLHVq7.cjs";
1
+ import { A as TDbFieldMeta, H as TExistingTableOption, O as TDbDefaultValue, Q as TTableOptionDiff, V as TExistingColumn, ct as TGenericLogger, j as TDbForeignKey, t as AtscriptDbReadable, x as TColumnDiff, z as TDbStorageType } from "./db-readable-Cwjbk6o_.cjs";
2
+ import { r as AtscriptDbView, t as DbSpace } from "./db-space-CQg17vv7.cjs";
3
3
  import { TAtscriptAnnotatedType } from "@atscript/typescript/utils";
4
4
 
5
5
  //#region src/schema/sync-entry.d.ts
package/dist/sync.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { D as TDbForeignKey, E as TDbFieldMeta, F as TDbStorageType, J as TTableOptionDiff, L as TExistingColumn, R as TExistingTableOption, it as TGenericLogger, t as AtscriptDbReadable, w as TDbDefaultValue, x as TColumnDiff } from "./db-readable-RTtqL7H4.mjs";
2
- import { r as AtscriptDbView, t as DbSpace } from "./db-space-D3QSKx2B.mjs";
1
+ import { A as TDbFieldMeta, H as TExistingTableOption, O as TDbDefaultValue, Q as TTableOptionDiff, V as TExistingColumn, ct as TGenericLogger, j as TDbForeignKey, t as AtscriptDbReadable, x as TColumnDiff, z as TDbStorageType } from "./db-readable-B9Irll4q.mjs";
2
+ import { r as AtscriptDbView, t as DbSpace } from "./db-space-CAcEB09Y.mjs";
3
3
  import { TAtscriptAnnotatedType } from "@atscript/typescript/utils";
4
4
 
5
5
  //#region src/schema/sync-entry.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atscript/db",
3
- "version": "0.1.55",
3
+ "version": "0.1.56",
4
4
  "description": "Database adapter utilities for atscript.",
5
5
  "keywords": [
6
6
  "atscript",