@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.
- package/dist/{db-readable-RTtqL7H4.d.mts → db-readable-B9Irll4q.d.mts} +29 -1
- package/dist/{db-readable-DtrC0BGF.d.cts → db-readable-Cwjbk6o_.d.cts} +29 -1
- package/dist/{db-space-BqVLHVq7.d.cts → db-space-CAcEB09Y.d.mts} +2 -2
- package/dist/{db-space-D3QSKx2B.d.mts → db-space-CQg17vv7.d.cts} +2 -2
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/rel.d.cts +1 -1
- package/dist/rel.d.mts +1 -1
- package/dist/sync.d.cts +2 -2
- package/dist/sync.d.mts +2 -2
- package/package.json +1 -1
|
@@ -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 {
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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
|
|
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-
|
|
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
|
|
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-
|
|
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 {
|
|
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 {
|
|
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 {
|
|
2
|
-
import { r as AtscriptDbView, t as DbSpace } from "./db-space-
|
|
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 {
|
|
2
|
-
import { r as AtscriptDbView, t as DbSpace } from "./db-space-
|
|
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
|