graphddb 0.7.6 → 0.7.8
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/cdc/index.d.ts +2 -2
- package/dist/cdc/index.js +2 -2
- package/dist/{chunk-F2DI3GTI.js → chunk-HFFIB77D.js} +4 -1
- package/dist/{chunk-5NXNEW43.js → chunk-IA6MW2HP.js} +1 -1
- package/dist/{chunk-QOA5MSMD.js → chunk-NZRCBEWS.js} +841 -327
- package/dist/cli.js +2 -2
- package/dist/{from-change-bwwGGQDB.d.ts → from-change-w2Ih8fkm.d.ts} +1 -1
- package/dist/{index-CFySSIg4.d.ts → index-Deugy2sa.d.ts} +10 -5
- package/dist/index.d.ts +28 -9
- package/dist/index.js +15 -14
- package/dist/linter/index.d.ts +4 -4
- package/dist/{maintenance-view-adapter-B4oU6udW.d.ts → maintenance-view-adapter-BCbgKG5d.d.ts} +207 -41
- package/dist/{registry-uYUbg3If.d.ts → registry-pAnFcc62.d.ts} +1 -1
- package/dist/{relation-depth-JFdnwU7k.d.ts → relation-depth-C9t4s9bt.d.ts} +1 -1
- package/dist/spec/index.d.ts +3 -3
- package/dist/spec/index.js +2 -2
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +2 -2
- package/package.json +1 -1
package/dist/{maintenance-view-adapter-B4oU6udW.d.ts → maintenance-view-adapter-BCbgKG5d.d.ts}
RENAMED
|
@@ -437,14 +437,14 @@ declare const RAW_COND: unique symbol;
|
|
|
437
437
|
* `FilterInput<M>` of the same model, so embedding a different model's column
|
|
438
438
|
* is a compile error.
|
|
439
439
|
*/
|
|
440
|
-
interface RawCondition<M = unknown> {
|
|
440
|
+
interface RawCondition<M = unknown, P extends readonly unknown[] = readonly unknown[]> {
|
|
441
441
|
readonly [RAW_COND]: true;
|
|
442
442
|
/** @internal phantom — owning-model brand. */
|
|
443
443
|
readonly __model?: M;
|
|
444
444
|
/** Expression fragment with `{name}` / `{value}` markers already inlined. */
|
|
445
445
|
readonly template: TemplateStringsArray;
|
|
446
446
|
/** The interpolated parts, each either a Column ref or an embedded value. */
|
|
447
|
-
readonly parts:
|
|
447
|
+
readonly parts: P;
|
|
448
448
|
}
|
|
449
449
|
/**
|
|
450
450
|
* The interpolation slot type accepted by {@link cond}. A column reference
|
|
@@ -469,7 +469,7 @@ type CondSlot<M> = Column<any, M> | string | number | boolean | Date | Param<unk
|
|
|
469
469
|
* filter: cond`${User.col.age} > ${18} and attribute_exists(${User.col.email})`
|
|
470
470
|
* ```
|
|
471
471
|
*/
|
|
472
|
-
declare function cond<M = unknown>(template: TemplateStringsArray, ...parts:
|
|
472
|
+
declare function cond<M = unknown, const P extends readonly CondSlot<M>[] = readonly CondSlot<M>[]>(template: TemplateStringsArray, ...parts: P): RawCondition<M, P>;
|
|
473
473
|
|
|
474
474
|
/**
|
|
475
475
|
* Type-safe attribute condition API (DynamoDB `FilterExpression`).
|
|
@@ -1910,36 +1910,53 @@ type OperationKind = 'query' | 'list' | 'put' | 'update' | 'delete';
|
|
|
1910
1910
|
* / `not` (single nested condition) keys express logical groups. Each operand
|
|
1911
1911
|
* value may be a concrete literal or a {@link Param} placeholder.
|
|
1912
1912
|
*/
|
|
1913
|
-
|
|
1913
|
+
/**
|
|
1914
|
+
* An operand leaf of a declarative condition.
|
|
1915
|
+
*
|
|
1916
|
+
* The optional type parameter `X` names an **extra** operand kind admitted only
|
|
1917
|
+
* in a specific authoring context; it defaults to `never`, so the bare
|
|
1918
|
+
* `ConditionLeaf` (the single-write / contract path) is exactly the original
|
|
1919
|
+
* `Param<unknown> | string | number | boolean | Date` and is unaffected.
|
|
1920
|
+
*
|
|
1921
|
+
* The transaction path (issue #246) passes `X = TransactionRef`: inside
|
|
1922
|
+
* `defineTransaction` a condition operand may be a `p.*` field reference (a
|
|
1923
|
+
* {@link import('./transaction.js').TransactionRef}), which the serializer
|
|
1924
|
+
* (`spec/transaction.ts` `conditionTreeLeaf`) already renders to a `{ $param }`
|
|
1925
|
+
* marker. Widening the leaf here to include `TransactionRef` **only** in the tx
|
|
1926
|
+
* context (via `ConditionInput<TransactionRef>`) aligns the type with that
|
|
1927
|
+
* runtime behaviour without letting a `TransactionRef` leak into non-tx
|
|
1928
|
+
* conditions (whose serializers do not accept it).
|
|
1929
|
+
*/
|
|
1930
|
+
type ConditionLeaf<X = never> = Param<unknown> | string | number | boolean | Date | X;
|
|
1914
1931
|
/** A declarative operator object on one condition field (subset of FilterInput). */
|
|
1915
|
-
interface ConditionOperatorObject {
|
|
1916
|
-
readonly eq?: ConditionLeaf
|
|
1917
|
-
readonly ne?: ConditionLeaf
|
|
1918
|
-
readonly gt?: ConditionLeaf
|
|
1919
|
-
readonly ge?: ConditionLeaf
|
|
1920
|
-
readonly lt?: ConditionLeaf
|
|
1921
|
-
readonly le?: ConditionLeaf
|
|
1922
|
-
readonly between?: readonly [ConditionLeaf
|
|
1923
|
-
readonly in?: readonly ConditionLeaf[];
|
|
1924
|
-
readonly beginsWith?: ConditionLeaf
|
|
1925
|
-
readonly contains?: ConditionLeaf
|
|
1926
|
-
readonly notContains?: ConditionLeaf
|
|
1932
|
+
interface ConditionOperatorObject<X = never> {
|
|
1933
|
+
readonly eq?: ConditionLeaf<X>;
|
|
1934
|
+
readonly ne?: ConditionLeaf<X>;
|
|
1935
|
+
readonly gt?: ConditionLeaf<X>;
|
|
1936
|
+
readonly ge?: ConditionLeaf<X>;
|
|
1937
|
+
readonly lt?: ConditionLeaf<X>;
|
|
1938
|
+
readonly le?: ConditionLeaf<X>;
|
|
1939
|
+
readonly between?: readonly [ConditionLeaf<X>, ConditionLeaf<X>];
|
|
1940
|
+
readonly in?: readonly ConditionLeaf<X>[];
|
|
1941
|
+
readonly beginsWith?: ConditionLeaf<X>;
|
|
1942
|
+
readonly contains?: ConditionLeaf<X>;
|
|
1943
|
+
readonly notContains?: ConditionLeaf<X>;
|
|
1927
1944
|
readonly attributeExists?: boolean;
|
|
1928
1945
|
readonly attributeType?: string;
|
|
1929
1946
|
}
|
|
1930
|
-
type ConditionInput = {
|
|
1947
|
+
type ConditionInput<X = never> = {
|
|
1931
1948
|
readonly notExists: true;
|
|
1932
1949
|
} | {
|
|
1933
1950
|
readonly attributeExists: string;
|
|
1934
1951
|
} | {
|
|
1935
1952
|
readonly attributeNotExists: string;
|
|
1936
|
-
} | RawCondition | ConditionTree
|
|
1953
|
+
} | RawCondition | ConditionTree<X>;
|
|
1937
1954
|
/** A recursive declarative condition tree (field clauses + logical groups). */
|
|
1938
|
-
interface ConditionTree {
|
|
1939
|
-
readonly and?: readonly ConditionInput[];
|
|
1940
|
-
readonly or?: readonly ConditionInput[];
|
|
1941
|
-
readonly not?: ConditionInput
|
|
1942
|
-
readonly [field: string]: ConditionLeaf | ConditionOperatorObject | readonly ConditionInput[] | ConditionInput | undefined;
|
|
1955
|
+
interface ConditionTree<X = never> {
|
|
1956
|
+
readonly and?: readonly ConditionInput<X>[];
|
|
1957
|
+
readonly or?: readonly ConditionInput<X>[];
|
|
1958
|
+
readonly not?: ConditionInput<X>;
|
|
1959
|
+
readonly [field: string]: ConditionLeaf<X> | ConditionOperatorObject<X> | readonly ConditionInput<X>[] | ConditionInput<X> | undefined;
|
|
1943
1960
|
}
|
|
1944
1961
|
/** Options accepted by the write `define*` entry points (issue #46). */
|
|
1945
1962
|
interface WriteDefinitionOptions {
|
|
@@ -2904,6 +2921,45 @@ type FragmentInput = Readonly<Record<string, MutationInputRef | string | number
|
|
|
2904
2921
|
* assembler validates every leaf via {@link assertFaithfulInput}.
|
|
2905
2922
|
*/
|
|
2906
2923
|
type DescriptorBinding = Readonly<Record<string, unknown>>;
|
|
2924
|
+
/** A concrete scalar admissible at a condition operand leaf. */
|
|
2925
|
+
type ConditionScalar = MutationInputRef | string | number | boolean | Date | null;
|
|
2926
|
+
/** A declarative operator object on one condition field (the #114-A subset). */
|
|
2927
|
+
interface FragmentConditionOperatorObject {
|
|
2928
|
+
readonly eq?: ConditionScalar;
|
|
2929
|
+
readonly ne?: ConditionScalar;
|
|
2930
|
+
readonly gt?: ConditionScalar;
|
|
2931
|
+
readonly ge?: ConditionScalar;
|
|
2932
|
+
readonly lt?: ConditionScalar;
|
|
2933
|
+
readonly le?: ConditionScalar;
|
|
2934
|
+
readonly between?: readonly [ConditionScalar, ConditionScalar];
|
|
2935
|
+
readonly in?: readonly ConditionScalar[];
|
|
2936
|
+
readonly beginsWith?: ConditionScalar;
|
|
2937
|
+
readonly contains?: ConditionScalar;
|
|
2938
|
+
readonly notContains?: ConditionScalar;
|
|
2939
|
+
readonly attributeExists?: boolean;
|
|
2940
|
+
}
|
|
2941
|
+
/**
|
|
2942
|
+
* A declarative write **condition** authored on a {@link WriteDescriptor} (issue
|
|
2943
|
+
* #242, Phase 2) — the same #114-A subset the #101 public write descriptor and
|
|
2944
|
+
* `defineCommands` support, but with {@link MutationInputRef} (`$.field`) leaves
|
|
2945
|
+
* (the mutation authoring form's placeholder) rather than `param.*` / concrete
|
|
2946
|
+
* values. It is a recursive tree of field clauses (bare equality or an operator
|
|
2947
|
+
* object) and `and` / `or` / `not` logical groups. The compiler translates each
|
|
2948
|
+
* `$.field` leaf into a {@link import('./contract.js').ContractParamRef} so the
|
|
2949
|
+
* existing serializer / runtime consume it unchanged.
|
|
2950
|
+
*
|
|
2951
|
+
* A cross-fragment reference (`$.alias.field`) is **not** admissible in a
|
|
2952
|
+
* condition — a `TransactWriteItems` cannot read one item's value mid-transaction
|
|
2953
|
+
* to gate another, and a condition on the fragment's own row can only reference
|
|
2954
|
+
* that row's persisted attributes vs. the command input. Such a leaf is a loud
|
|
2955
|
+
* build error ({@link assertFaithfulCondition}).
|
|
2956
|
+
*/
|
|
2957
|
+
interface FragmentCondition {
|
|
2958
|
+
readonly and?: readonly FragmentCondition[];
|
|
2959
|
+
readonly or?: readonly FragmentCondition[];
|
|
2960
|
+
readonly not?: FragmentCondition;
|
|
2961
|
+
readonly [field: string]: ConditionScalar | FragmentConditionOperatorObject | readonly FragmentCondition[] | FragmentCondition | undefined;
|
|
2962
|
+
}
|
|
2907
2963
|
/**
|
|
2908
2964
|
* One recorded write fragment (proposal §3): an **intent** + a target entity + an
|
|
2909
2965
|
* optional adopted save contract (`use:`) + the input binding. It is a
|
|
@@ -2922,6 +2978,21 @@ interface MutationFragment {
|
|
|
2922
2978
|
readonly entity: EntityRef;
|
|
2923
2979
|
readonly input: FragmentInput;
|
|
2924
2980
|
readonly use?: EntityWritesDefinition;
|
|
2981
|
+
/**
|
|
2982
|
+
* The declarative write **condition** (gate) authored on the descriptor (issue
|
|
2983
|
+
* #242, Phase 2). It is the #114-A subset — bare field equality, an operator
|
|
2984
|
+
* object (`{ gt }`, `{ between }`, `{ in }`, …), and the `and` / `or` / `not`
|
|
2985
|
+
* logical groups — whose value leaves are {@link MutationInputRef} (`$.field`)
|
|
2986
|
+
* references or concrete literals. It is carried **verbatim** here (the mutation
|
|
2987
|
+
* assembler only validates the leaf shapes; see {@link assertFaithfulCondition});
|
|
2988
|
+
* the compiler ({@link import('../spec/mutation-command.js').compileFragment})
|
|
2989
|
+
* translates each `$.field` leaf into a {@link
|
|
2990
|
+
* import('./contract.js').ContractParamRef} and attaches it to the compiled base
|
|
2991
|
+
* op's `condition`, so the **existing** condition serializer / runtime consume it
|
|
2992
|
+
* exactly as a #101 public write descriptor's condition does. `undefined` when
|
|
2993
|
+
* the descriptor declared no `condition`.
|
|
2994
|
+
*/
|
|
2995
|
+
readonly condition?: FragmentCondition;
|
|
2925
2996
|
}
|
|
2926
2997
|
/** Runtime guard: is `value` a {@link MutationFragment}? */
|
|
2927
2998
|
declare function isMutationFragment(value: unknown): value is MutationFragment;
|
|
@@ -2944,10 +3015,17 @@ type ModelRef = ModelStatic<DDBModel> | (new (...args: unknown[]) => unknown) |
|
|
|
2944
3015
|
* - `key` — the target row's primary-key binding (identifies the row);
|
|
2945
3016
|
* - `input` — the non-key field binding (the body / changed fields). Optional for
|
|
2946
3017
|
* a `remove` (a delete writes no fields);
|
|
2947
|
-
* - `condition` — an optional declarative write gate (
|
|
2948
|
-
*
|
|
2949
|
-
*
|
|
2950
|
-
*
|
|
3018
|
+
* - `condition` — an optional declarative write gate (issue #242, Phase 2). It is
|
|
3019
|
+
* the #114-A condition subset (bare equality, operator objects `{ gt }` / `{ in }`
|
|
3020
|
+
* / `{ between }` / …, and `and` / `or` / `not` groups) whose operand leaves are
|
|
3021
|
+
* `$.field` input references or literals. The declaration-DSL compiler **consumes**
|
|
3022
|
+
* it: each `$.field` leaf becomes a {@link import('./contract.js').ContractParamRef}
|
|
3023
|
+
* and the tree is attached to the compiled base op's `condition`, so it is
|
|
3024
|
+
* serialized (into the operation spec) and evaluated at runtime exactly as a #101
|
|
3025
|
+
* public write descriptor's / `defineCommands` condition is (single-op, in-process
|
|
3026
|
+
* transaction, and the Python bridge). A conditioned `update` / `remove` therefore
|
|
3027
|
+
* fails a CAS-style write when the gate does not hold, rather than silently
|
|
3028
|
+
* committing;
|
|
2951
3029
|
* - `result` — an optional read-back projection `{ select, options? }` (likewise
|
|
2952
3030
|
* accepted for authoring parity; the public read-back projection of a
|
|
2953
3031
|
* `command(...).plan(...)` method is still declared on `command({ select })`).
|
|
@@ -2962,8 +3040,11 @@ interface WriteDescriptor {
|
|
|
2962
3040
|
readonly key: DescriptorBinding;
|
|
2963
3041
|
/** The non-key field binding; optional (a `remove` writes no fields). */
|
|
2964
3042
|
readonly input?: DescriptorBinding;
|
|
2965
|
-
/**
|
|
2966
|
-
|
|
3043
|
+
/**
|
|
3044
|
+
* Optional declarative write gate — the #114-A condition subset (issue #242,
|
|
3045
|
+
* Phase 2). Compiled, serialized, and evaluated at runtime; see the interface doc.
|
|
3046
|
+
*/
|
|
3047
|
+
readonly condition?: FragmentCondition;
|
|
2967
3048
|
/** Optional read-back projection `{ select, options? }` (accepted for #101 parity). */
|
|
2968
3049
|
readonly result?: {
|
|
2969
3050
|
readonly select?: unknown;
|
|
@@ -3752,14 +3833,65 @@ type LeafValueOf<L> = L extends Param<infer V> ? V : L;
|
|
|
3752
3833
|
type KeyOf<KeyRec> = {
|
|
3753
3834
|
readonly [F in keyof KeyRec]: LeafValueOf<KeyRec[F]>;
|
|
3754
3835
|
};
|
|
3755
|
-
/** The params a descriptor method accepts: the union of its `key` + `input` leaf value types. */
|
|
3836
|
+
/** The params a descriptor method accepts: the union of its `key` + `input` + `condition` leaf value types. */
|
|
3756
3837
|
type DescriptorParamsOf<D> = (D extends {
|
|
3757
3838
|
readonly key: infer K;
|
|
3758
3839
|
} ? KeyOf<K> : Record<never, never>) & (D extends {
|
|
3759
3840
|
readonly input: infer I;
|
|
3760
3841
|
} ? {
|
|
3761
3842
|
readonly [F in keyof I]: LeafValueOf<I[F]>;
|
|
3762
|
-
} : Record<never, never>)
|
|
3843
|
+
} : Record<never, never>) & (D extends {
|
|
3844
|
+
readonly condition: infer C;
|
|
3845
|
+
} ? ConditionParamsOf<C> : Record<never, never>);
|
|
3846
|
+
/**
|
|
3847
|
+
* The `param.*` bindings a descriptor `condition` contributes to the method's
|
|
3848
|
+
* `params` argument (issue #243). Every `param.*` at a condition operand position
|
|
3849
|
+
* is minted (at runtime, by `descriptorConditionRecord`) into a named binding using
|
|
3850
|
+
* the shared {@link conditionParamName} / `condParamName` scheme; this type mirrors
|
|
3851
|
+
* that naming so a caller must supply exactly those params:
|
|
3852
|
+
* - a bare-equality clause / single-operand operator → keyed by the field name;
|
|
3853
|
+
* - `between` → `{field}_lo` / `{field}_hi`; `in` → `{field}_0`, `{field}_1`, …;
|
|
3854
|
+
* - `size` → `{field}_size`;
|
|
3855
|
+
* - `and` / `or` / `not` groups recurse; a raw `cond` → positional `cond_p0`, ….
|
|
3856
|
+
*/
|
|
3857
|
+
type ConditionParamsOf<C> = C extends {
|
|
3858
|
+
readonly [RAW_COND]: true;
|
|
3859
|
+
readonly parts: infer P;
|
|
3860
|
+
} ? RawCondParamsOf<P> : C extends readonly unknown[] ? never : C extends object ? UnionToIntersection<ConditionEntryParamsOf<C, keyof C>> extends infer R ? R : Record<never, never> : Record<never, never>;
|
|
3861
|
+
/** Per-key expansion of a condition object's param bindings (distributes over `K`). */
|
|
3862
|
+
type ConditionEntryParamsOf<C, K extends keyof C> = K extends 'and' | 'or' ? C[K] extends readonly (infer Sub)[] ? ConditionParamsOf<Sub> : Record<never, never> : K extends 'not' ? ConditionParamsOf<C[K]> : K extends string ? FieldClauseParamsOf<K & string, C[K]> : Record<never, never>;
|
|
3863
|
+
/** The param bindings a single field clause (`{ field: leaf | operatorObject }`) contributes. */
|
|
3864
|
+
type FieldClauseParamsOf<Field extends string, V> = V extends Param<infer PV> ? {
|
|
3865
|
+
readonly [P in Field]: PV;
|
|
3866
|
+
} : V extends object ? UnionToIntersection<OperatorParamsOf<Field, V, keyof V>> : Record<never, never>;
|
|
3867
|
+
/** Per-operator expansion of an operator object's param bindings. */
|
|
3868
|
+
type OperatorParamsOf<Field extends string, V, Op extends keyof V> = Op extends 'between' ? V[Op] extends readonly [infer Lo, infer Hi] ? (Lo extends Param<infer LV> ? {
|
|
3869
|
+
readonly [P in `${Field}_lo`]: LV;
|
|
3870
|
+
} : Record<never, never>) & (Hi extends Param<infer HV> ? {
|
|
3871
|
+
readonly [P in `${Field}_hi`]: HV;
|
|
3872
|
+
} : Record<never, never>) : Record<never, never> : Op extends 'in' ? V[Op] extends readonly unknown[] ? InParamsOf<Field, V[Op]> : Record<never, never> : Op extends 'size' ? V[Op] extends Param<infer SV> ? {
|
|
3873
|
+
readonly [P in `${Field}_size`]: SV;
|
|
3874
|
+
} : Record<never, never> : Op extends 'attributeExists' | 'attributeType' ? Record<never, never> : V[Op] extends Param<infer OV> ? {
|
|
3875
|
+
readonly [P in Field]: OV;
|
|
3876
|
+
} : Record<never, never>;
|
|
3877
|
+
/** Positional `{field}_0`, `{field}_1`, … bindings for an `in` operand tuple. */
|
|
3878
|
+
type InParamsOf<Field extends string, T extends readonly unknown[], Acc extends unknown[] = []> = T extends readonly [
|
|
3879
|
+
infer Head,
|
|
3880
|
+
...infer Tail
|
|
3881
|
+
] ? (Head extends Param<infer HV> ? {
|
|
3882
|
+
readonly [P in `${Field}_${Acc['length']}`]: HV;
|
|
3883
|
+
} : Record<never, never>) & InParamsOf<Field, Tail, [...Acc, unknown]> : Record<never, never>;
|
|
3884
|
+
/**
|
|
3885
|
+
* Positional `cond_p0`, `cond_p1`, … bindings for a raw `cond` fragment's `param.*`
|
|
3886
|
+
* value slots. The index counts ONLY `param.*` slots (matching `condParamName` /
|
|
3887
|
+
* `collectRawConditionParams`, where a column ref and an embedded literal never
|
|
3888
|
+
* advance the counter), so `cond_pN` names the N-th param slot in occurrence order.
|
|
3889
|
+
*/
|
|
3890
|
+
type RawCondParamsOf<P, Acc extends unknown[] = []> = P extends readonly [infer Head, ...infer Tail] ? Head extends Param<infer HV> ? {
|
|
3891
|
+
readonly [K in `cond_p${Acc['length']}`]: HV;
|
|
3892
|
+
} & RawCondParamsOf<Tail, [...Acc, unknown]> : RawCondParamsOf<Tail, Acc> : Record<never, never>;
|
|
3893
|
+
/** Collapse a union of records into their intersection (all bindings required together). */
|
|
3894
|
+
type UnionToIntersection<U> = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
3763
3895
|
/** The result of a read descriptor: a projected item (`query` → item | null, `list` → connection). */
|
|
3764
3896
|
type ReadDescriptorResultOf<D> = D extends {
|
|
3765
3897
|
readonly query: infer M;
|
|
@@ -3916,7 +4048,7 @@ interface PublicWriteDescriptor {
|
|
|
3916
4048
|
readonly remove?: ModelRef;
|
|
3917
4049
|
readonly key: Readonly<Record<string, unknown>>;
|
|
3918
4050
|
readonly input?: Readonly<Record<string, unknown>>;
|
|
3919
|
-
readonly condition?: Readonly<Record<string, unknown
|
|
4051
|
+
readonly condition?: Readonly<Record<string, unknown>> | RawCondition<any, any>;
|
|
3920
4052
|
readonly result?: {
|
|
3921
4053
|
readonly select?: Readonly<Record<string, boolean>>;
|
|
3922
4054
|
readonly options?: unknown;
|
|
@@ -4537,6 +4669,21 @@ interface WhenSpec {
|
|
|
4537
4669
|
* `attribute_exists`).
|
|
4538
4670
|
*/
|
|
4539
4671
|
type TransactionItemType = 'Put' | 'Update' | 'Delete' | 'ConditionCheck';
|
|
4672
|
+
/**
|
|
4673
|
+
* A value leaf of a transaction `item` / `changes` / `add` map (issue #245).
|
|
4674
|
+
*
|
|
4675
|
+
* - a **string** carries a template: a `{param}` / `{item.field}` placeholder, a
|
|
4676
|
+
* composite (`PREFIX#{param}`), or a plain string literal — resolved by the
|
|
4677
|
+
* runtimes' template machinery (a whole-placeholder string keeps the bound
|
|
4678
|
+
* param's *type*, a composite / plain string resolves to a string);
|
|
4679
|
+
* - a **number** / **boolean** carries a *typed literal* verbatim, so a numeric
|
|
4680
|
+
* literal in a `put` item / `update` changes (`version: 0`) survives to DynamoDB
|
|
4681
|
+
* as an `N` / `BOOL` instead of being stringified to an `S` (the pre-#245 bug).
|
|
4682
|
+
*
|
|
4683
|
+
* A `Date` literal is serialized to its ISO-8601 **string** at build time (a
|
|
4684
|
+
* `@datetime` / `@date` field is stored as `S`), so it stays a string leaf.
|
|
4685
|
+
*/
|
|
4686
|
+
type TransactionValueLeaf = string | number | boolean;
|
|
4540
4687
|
/**
|
|
4541
4688
|
* A single templated item in a transaction. When `forEach` is present, the item
|
|
4542
4689
|
* is expanded **once per element** of the named array param, with each element's
|
|
@@ -4562,19 +4709,27 @@ interface TransactionItemSpec {
|
|
|
4562
4709
|
readonly type: TransactionItemType;
|
|
4563
4710
|
readonly tableName: string;
|
|
4564
4711
|
readonly entity: string;
|
|
4565
|
-
/**
|
|
4566
|
-
|
|
4712
|
+
/**
|
|
4713
|
+
* Put: the full item template (field → template / typed literal). A string
|
|
4714
|
+
* value is a template ({@link TransactionValueLeaf}); a `number` / `boolean` is
|
|
4715
|
+
* a typed literal carried verbatim (issue #245).
|
|
4716
|
+
*/
|
|
4717
|
+
readonly item?: Readonly<Record<string, TransactionValueLeaf>>;
|
|
4567
4718
|
/** Update / Delete / ConditionCheck: the key template (attribute → template). */
|
|
4568
4719
|
readonly keyCondition?: Readonly<Record<string, string>>;
|
|
4569
|
-
/**
|
|
4570
|
-
|
|
4720
|
+
/**
|
|
4721
|
+
* Update: field-level `SET` change templates (overwrite). A string value is a
|
|
4722
|
+
* template; a `number` / `boolean` is a typed literal carried verbatim (#245).
|
|
4723
|
+
*/
|
|
4724
|
+
readonly changes?: Readonly<Record<string, TransactionValueLeaf>>;
|
|
4571
4725
|
/**
|
|
4572
4726
|
* Update: field-level atomic `ADD` deltas (issue #85, derived counters). Each
|
|
4573
|
-
* value is a numeric template (`{param}` / a literal number string)
|
|
4574
|
-
* applies `ADD #field :delta`, an
|
|
4575
|
-
*
|
|
4727
|
+
* value is a numeric template (`{param}` / a literal number string) or a typed
|
|
4728
|
+
* numeric literal (issue #245); the runtime applies `ADD #field :delta`, an
|
|
4729
|
+
* atomic increment that needs no prior read and is safe under concurrency. A
|
|
4730
|
+
* negative delta decrements (e.g. `-1` on a remove).
|
|
4576
4731
|
*/
|
|
4577
|
-
readonly add?: Readonly<Record<string,
|
|
4732
|
+
readonly add?: Readonly<Record<string, TransactionValueLeaf>>;
|
|
4578
4733
|
/**
|
|
4579
4734
|
* The write / assertion condition (subset). Optional on `Put` / `Update` /
|
|
4580
4735
|
* `Delete`; **required** on a `ConditionCheck` (the assertion it makes).
|
|
@@ -6572,6 +6727,17 @@ declare abstract class DDBModel {
|
|
|
6572
6727
|
* a client you pass in.
|
|
6573
6728
|
*/
|
|
6574
6729
|
static setClient(client: DynamoDBClient): void;
|
|
6730
|
+
/**
|
|
6731
|
+
* Read back the registered `DynamoDBClient` — the resolved client last passed to
|
|
6732
|
+
* {@link setClient}. Symmetric with {@link setClient} and backed by the same
|
|
6733
|
+
* {@link ClientManager} store, so it always reflects the client GraphDDB sends
|
|
6734
|
+
* through.
|
|
6735
|
+
*
|
|
6736
|
+
* Throws a clear error if no client has been registered yet (call
|
|
6737
|
+
* {@link setClient} first) — matching {@link ClientManager.getClient}'s "loud,
|
|
6738
|
+
* never silently `undefined`" convention shared with the rest of the client API.
|
|
6739
|
+
*/
|
|
6740
|
+
static getClient(): DynamoDBClient;
|
|
6575
6741
|
static setTableMapping(mapping: Record<string, string>): void;
|
|
6576
6742
|
/**
|
|
6577
6743
|
* Configure the global single-op retry policy (issue #111) — exponential backoff
|
|
@@ -7369,4 +7535,4 @@ interface ViewDefinition {
|
|
|
7369
7535
|
*/
|
|
7370
7536
|
declare function collectViewDefinitions(registry?: ReadonlyMap<Function, EntityMetadata>): ViewDefinition[];
|
|
7371
7537
|
|
|
7372
|
-
export { type AnyOperationDefinition as $, type ContractSpec as A, type BatchResult as B, type CdcEmulatorOptions as C, type DynamoDBOperation as D, type EventLog as E, type FaultSpec as F, type QuerySpec as G, type CommandSpec as H, type TransactionSpec as I, type ContextSpec as J, SPEC_VERSION as K, type ParamSpec as L, type ModelStatic as M, type ParamDescriptor as N, type EntityRef as O, type PutInput as P, type QueryModelContract as Q, type ReplayOptions as R, type ShardId as S, type TransactWriteExecItem as T, type Unsubscribe as U, type ViewDefinition as V, type WriteExecOptions as W, type ConditionInput as X, type Param as Y, type DefinitionMap as Z, type OperationsDocument as _, type CdcMode as a, type FieldOptions as a$, type Manifest as a0, type BridgeBundle as a1, type ConditionSpec as a2, type PreparedBody as a3, type CommandContractMethodSpec as a4, type CommandResolutionTarget as a5, type CompiledFragment as a6, type CompiledMutationPlan as a7, type ComposeSpec as a8, type CompositionPlanSpec as a9, type QueryContractMethodSpec as aA, type RangeConditionSpec as aB, type ReadOperationType as aC, type TransactionItemSpec as aD, type TransactionItemType as aE, type WhenSpec as aF, type WriteOperationType as aG, assertNoCrossFragmentMaintainCollision as aH, compileFragment as aI, compileMutationPlan as aJ, compileSingleFragmentPlan as aK, resetMaintenanceGraphCache as aL, resolveLifecycle as aM, resolveMaintainers as aN, type SelectableOf as aO, type PrimaryKeyOf as aP, type RequestContext as aQ, type Middleware as aR, type ReadRequestKind as aS, type CtxModel as aT, type ReadParams as aU, type ReadRequestCtx as aV, type Item as aW, type RetryPolicy as aX, type KeyDefinition as aY, type GsiDefinition as aZ, type ModelKind as a_, type ContractCardinality as aa, type ContractCommandResult as ab, type ContractInputArity as ac, type ContractKeySpec as ad, type ContractKind as ae, type ContractResolution as af, type DerivedConditionCheck as ag, type DerivedEdgeWrite as ah, type DerivedIdempotencyGuard as ai, type DerivedMaintainOutbox as aj, type DerivedMaintainWrite as ak, type DerivedOutboxEvent as al, type DerivedUniqueGuard as am, type DerivedUpdate as an, type EntityRefResolver as ao, type ExecutionPlanSpec as ap, type FilterSpec as aq, MAX_TRANSACT_COMPOSE_ITEMS as ar, type ManifestEntity as as, type ManifestField as at, type ManifestFieldType as au, type ManifestGsi as av, type ManifestKey as aw, type ManifestRelation as ax, type ManifestTable as ay, type OperationSpec as az, type ChangeBatch as b, type ContractQueryParams as b$, type DynamoType as b0, type ProjectionTransform as b1, type MaintainEvent as b2, type MembershipPredicate as b3, type MaintainConsistency as b4, type MaintainUpdateMode as b5, type MembershipPredicateOp as b6, type RelationOptions as b7, type AggregateOptions as b8, type AggregateValue as b9, type BatchWriteRequest as bA, CONTRACT_RANGE_FANOUT_CONCURRENCY as bB, type CdcModelRegistry as bC, type CdcSubscribeHandlers as bD, type Change as bE, type CollectionEffect as bF, type CollectionOptions as bG, type Column as bH, type ColumnMap as bI, type CommandInputShape as bJ, type CommandMethod as bK, type CommandPlan as bL, type CommandResultKind as bM, type CommandSelectShape as bN, type CondSlot as bO, type ConditionCheckInput as bP, type Connection as bQ, type ContractCallSignature as bR, type ContractCommandParams as bS, type ContractComposeNode as bT, type ContractFromRef as bU, type ContractItem as bV, type ContractKeyFieldRef as bW, type ContractKeyInput as bX, type ContractKeyRef as bY, type ContractMethodOp as bZ, type ContractParamRef as b_, type SelectBuilderSpec as ba, type RawCondition as bb, type RetryOverride as bc, type ExecutionPlan as bd, type FieldMetadata as be, type ResolvedKey as bf, type Slot as bg, type PreparedWriteExecOptions as bh, type CommandReturn as bi, type ParallelOpResult as bj, type PreparedStatement as bk, type RelationMetadata as bl, type MaintainEffect as bm, type OperationDefinition as bn, type WriteDefinitionOptions as bo, type PartialQueryKeyOf as bp, type StrictSelectSpec as bq, type ReadDefinitionOptions as br, type EntityInput as bs, type UniqueQueryKeyOf as bt, type AggregateMetadata as bu, type BatchDeleteRequest as bv, type BatchGetOptions as bw, type BatchGetRequest as bx, BatchGetResult as by, type BatchPutRequest as bz, type ChangeEvent as c,
|
|
7538
|
+
export { type AnyOperationDefinition as $, type ContractSpec as A, type BatchResult as B, type CdcEmulatorOptions as C, type DynamoDBOperation as D, type EventLog as E, type FaultSpec as F, type QuerySpec as G, type CommandSpec as H, type TransactionSpec as I, type ContextSpec as J, SPEC_VERSION as K, type ParamSpec as L, type ModelStatic as M, type ParamDescriptor as N, type EntityRef as O, type PutInput as P, type QueryModelContract as Q, type ReplayOptions as R, type ShardId as S, type TransactWriteExecItem as T, type Unsubscribe as U, type ViewDefinition as V, type WriteExecOptions as W, type ConditionInput as X, type Param as Y, type DefinitionMap as Z, type OperationsDocument as _, type CdcMode as a, type FieldOptions as a$, type Manifest as a0, type BridgeBundle as a1, type ConditionSpec as a2, type PreparedBody as a3, type CommandContractMethodSpec as a4, type CommandResolutionTarget as a5, type CompiledFragment as a6, type CompiledMutationPlan as a7, type ComposeSpec as a8, type CompositionPlanSpec as a9, type QueryContractMethodSpec as aA, type RangeConditionSpec as aB, type ReadOperationType as aC, type TransactionItemSpec as aD, type TransactionItemType as aE, type WhenSpec as aF, type WriteOperationType as aG, assertNoCrossFragmentMaintainCollision as aH, compileFragment as aI, compileMutationPlan as aJ, compileSingleFragmentPlan as aK, resetMaintenanceGraphCache as aL, resolveLifecycle as aM, resolveMaintainers as aN, type SelectableOf as aO, type PrimaryKeyOf as aP, type RequestContext as aQ, type Middleware as aR, type ReadRequestKind as aS, type CtxModel as aT, type ReadParams as aU, type ReadRequestCtx as aV, type Item as aW, type RetryPolicy as aX, type KeyDefinition as aY, type GsiDefinition as aZ, type ModelKind as a_, type ContractCardinality as aa, type ContractCommandResult as ab, type ContractInputArity as ac, type ContractKeySpec as ad, type ContractKind as ae, type ContractResolution as af, type DerivedConditionCheck as ag, type DerivedEdgeWrite as ah, type DerivedIdempotencyGuard as ai, type DerivedMaintainOutbox as aj, type DerivedMaintainWrite as ak, type DerivedOutboxEvent as al, type DerivedUniqueGuard as am, type DerivedUpdate as an, type EntityRefResolver as ao, type ExecutionPlanSpec as ap, type FilterSpec as aq, MAX_TRANSACT_COMPOSE_ITEMS as ar, type ManifestEntity as as, type ManifestField as at, type ManifestFieldType as au, type ManifestGsi as av, type ManifestKey as aw, type ManifestRelation as ax, type ManifestTable as ay, type OperationSpec as az, type ChangeBatch as b, type ContractQueryParams as b$, type DynamoType as b0, type ProjectionTransform as b1, type MaintainEvent as b2, type MembershipPredicate as b3, type MaintainConsistency as b4, type MaintainUpdateMode as b5, type MembershipPredicateOp as b6, type RelationOptions as b7, type AggregateOptions as b8, type AggregateValue as b9, type BatchWriteRequest as bA, CONTRACT_RANGE_FANOUT_CONCURRENCY as bB, type CdcModelRegistry as bC, type CdcSubscribeHandlers as bD, type Change as bE, type CollectionEffect as bF, type CollectionOptions as bG, type Column as bH, type ColumnMap as bI, type CommandInputShape as bJ, type CommandMethod as bK, type CommandPlan as bL, type CommandResultKind as bM, type CommandSelectShape as bN, type CondSlot as bO, type ConditionCheckInput as bP, type Connection as bQ, type ContractCallSignature as bR, type ContractCommandParams as bS, type ContractComposeNode as bT, type ContractFromRef as bU, type ContractItem as bV, type ContractKeyFieldRef as bW, type ContractKeyInput as bX, type ContractKeyRef as bY, type ContractMethodOp as bZ, type ContractParamRef as b_, type SelectBuilderSpec as ba, type RawCondition as bb, type RetryOverride as bc, type ExecutionPlan as bd, type FieldMetadata as be, type ResolvedKey as bf, type Slot as bg, type PreparedWriteExecOptions as bh, type CommandReturn as bi, type ParallelOpResult as bj, type PreparedStatement as bk, type RelationMetadata as bl, type MaintainEffect as bm, type OperationDefinition as bn, type WriteDefinitionOptions as bo, type PartialQueryKeyOf as bp, type StrictSelectSpec as bq, type ReadDefinitionOptions as br, type EntityInput as bs, type UniqueQueryKeyOf as bt, type AggregateMetadata as bu, type BatchDeleteRequest as bv, type BatchGetOptions as bw, type BatchGetRequest as bx, BatchGetResult as by, type BatchPutRequest as bz, type ChangeEvent as c, PreparedReadStatement as c$, type CounterAggregate as c0, type CounterEffect as c1, type CtxBase as c2, DEFAULT_MAX_ATTEMPTS as c3, DEFAULT_RETRY_POLICY as c4, type DeleteOptions as c5, type DeriveEffect as c6, type DescriptorBinding as c7, ENTITY_WRITES_MARKER as c8, type EdgeEffect as c9, type MaintainItem as cA, type MaintainTrigger as cB, type MaintenanceGraph as cC, type MembershipEffect as cD, type ModelRef as cE, type MutateMode as cF, type MutateOptions as cG, type MutateParallelResult as cH, type MutateTransactionResult as cI, type MutationBody as cJ, type MutationDescriptorMap as cK, type MutationFragment as cL, type MutationInputProxy as cM, type MutationInputRef as cN, type MutationIntent as cO, type NumberParam as cP, type OperationKind as cQ, PREPARE_CACHE_MAX as cR, type ParamKind as cS, type ParamStructure as cT, type PersistCtx as cU, type PersistOrigin as cV, type PlannedCommandMethod as cW, type PreparedInputProxy as cX, type PreparedParamRef as cY, type PreparedReadExecOptions as cZ, type PreparedReadRoute as c_, type EffectPath as ca, type EmbeddedMetadata as cb, type EmitEffect as cc, type EntityWritesDefinition as cd, type EntityWritesShape as ce, type ExecutableCommandContract as cf, type ExecutableQueryContract as cg, type FilterInput as ch, type FragmentCondition as ci, type FragmentConditionOperatorObject as cj, type FragmentInput as ck, type GsiDefinitionMarker as cl, type GsiOptions as cm, type IdempotencyEffect as cn, type InProcessWriteDescriptor as co, type InlineSnapshotSpec as cp, type InputArity as cq, type KeyDefinitionMarker as cr, type KeySegment as cs, type KeySlot as ct, type KeyStructure as cu, type KeyedResult as cv, LIFECYCLE_CONTRACT_MARKER as cw, type LifecycleContract as cx, type LifecycleEffects as cy, type LiteralParam as cz, type ChangeEventName as d, executeCommandMethod as d$, type PreparedWriteRoute as d0, PreparedWriteStatement as d1, type ProjectionMap as d2, type ProjectionTransformOp as d3, type PutOptions as d4, type QueryEnvelopeResult as d5, type QueryKeyOf as d6, type QueryMethod as d7, type QueryResult as d8, type ReadEnvelope as d9, type StringParam as dA, TransactionContext as dB, type UniqueEffect as dC, type Updatable as dD, type UpdateOptions as dE, type ViewSourceSlice as dF, type WriteCtx as dG, type WriteDescriptor as dH, type WriteEnvelope as dI, type WriteInput as dJ, type WriteKind as dK, type WriteLifecyclePhase as dL, type WriteMiddleware as dM, type WriteRecorder as dN, type WriteResultProjection as dO, attachModelClass as dP, buildDeleteInput as dQ, buildMaintenanceGraph as dR, buildPutInput as dS, buildUpdateInput as dT, collectViewDefinitions as dU, cond as dV, contractOfMethodSpec as dW, definePlan as dX, entityWrites as dY, executeBatchGet as dZ, executeBatchWrite as d_, type ReadOpCtx as da, type ReadOpKind as db, type ReadRouteDescriptor as dc, type ReadRouteOptions as dd, type ReadRouteResult as de, type RecordedCompose as df, type RelationBuilder as dg, type RelationConsistency as dh, type RelationLimitOptions as di, type RelationPattern as dj, type RelationProjection as dk, type RelationReadOptions as dl, type RelationSelect as dm, type RelationSpec as dn, type RelationUpdateMode as dp, type RelationWriteOptions as dq, type RequiresEffect as dr, type Resolution as ds, type RetryInfo as dt, type RetryOperationKind as du, type SegmentSpec as dv, type SegmentedKey as dw, type SelectBuilder as dx, type SelectOf as dy, type SnapshotEffect as dz, type ChangeHandler as e, executeDelete as e0, executeKeyedBatchGet as e1, executePut as e2, executeQueryMethod as e3, executeRangeFanout as e4, executeTransaction as e5, executeUpdate as e6, from as e7, getEntityWrites as e8, gsi as e9, mintContractParamRef as eA, mutation as eB, param as eC, prepare as eD, preview as eE, publicCommandModel as eF, publicQueryModel as eG, query as eH, wholeKeysSentinel as eI, identity as ea, isColumn as eb, isCommandModelContract as ec, isCommandPlan as ed, isContractComposeNode as ee, isContractFromRef as ef, isContractKeyFieldRef as eg, isContractKeyRef as eh, isContractParamRef as ei, isEntityWritesDefinition as ej, isKeySegment as ek, isLifecycleContract as el, isMaintainTrigger as em, isMutationFragment as en, isMutationInputRef as eo, isParam as ep, isPlannedCommandMethod as eq, isPreparedParamRef as er, isQueryModelContract as es, isRetryableError as et, isRetryableTransactionCancellation as eu, k as ev, key as ew, lifecyclePhaseForIntent as ex, maintainTrigger as ey, mintContractKeyFieldRef as ez, type ClockMode as f, type ConcurrentRecomputeRef as g, type StartingPosition as h, type StreamViewType as i, type SubscribeHandler as j, type SubscribeHandlers as k, buildSubscribeHandler as l, type EntityMetadata as m, type Executor as n, type ReadExecOptions as o, type ExecutorResult as p, type BatchGetExecInput as q, type WriteResult as r, type UpdateInput as s, type DeleteInput as t, type BatchWriteExecItem as u, type BatchExecOptions as v, DDBModel as w, type QueryMethodSpec as x, type CommandModelContract as y, type CommandMethodSpec as z };
|
package/dist/spec/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a1 as BridgeBundle, a4 as CommandContractMethodSpec, a5 as CommandResolutionTarget, H as CommandSpec, a6 as CompiledFragment, a7 as CompiledMutationPlan, a8 as ComposeSpec, a9 as CompositionPlanSpec, a2 as ConditionSpec, J as ContextSpec, aa as ContractCardinality, ab as ContractCommandResult, ac as ContractInputArity, ad as ContractKeySpec, ae as ContractKind, af as ContractResolution, A as ContractSpec, ag as DerivedConditionCheck, ah as DerivedEdgeWrite, ai as DerivedIdempotencyGuard, aj as DerivedMaintainOutbox, ak as DerivedMaintainWrite, al as DerivedOutboxEvent, am as DerivedUniqueGuard, an as DerivedUpdate, ao as EntityRefResolver, ap as ExecutionPlanSpec, aq as FilterSpec, ar as MAX_TRANSACT_COMPOSE_ITEMS, a0 as Manifest, as as ManifestEntity, at as ManifestField, au as ManifestFieldType, av as ManifestGsi, aw as ManifestKey, ax as ManifestRelation, ay as ManifestTable, az as OperationSpec, _ as OperationsDocument, L as ParamSpec, aA as QueryContractMethodSpec, G as QuerySpec, aB as RangeConditionSpec, aC as ReadOperationType, K as SPEC_VERSION, aD as TransactionItemSpec, aE as TransactionItemType, I as TransactionSpec, aF as WhenSpec, aG as WriteOperationType, aH as assertNoCrossFragmentMaintainCollision, aI as compileFragment, aJ as compileMutationPlan, aK as compileSingleFragmentPlan, aL as resetMaintenanceGraphCache, aM as resolveLifecycle, aN as resolveMaintainers } from '../maintenance-view-adapter-
|
|
2
|
-
export { A as AnyModelContract, B as BuiltContracts, C as ContextOwnership, b as ContextOwnershipMap, c as ContractBoundaryViolation, d as ContractInputs, e as ContractMap, f as ContractN1Violation, O as PREPARED_FORMAT_VERSION, Q as PreparedBindMap, g as PreparedBindSpec, a as PreparedPlanDocument, h as PreparedPlanSpec, i as PreparedReadRouteSpec, P as PreparedWriteOpSpec, s as assertBundleSerializable, t as assertContractBoundaries, u as assertContractN1Safe, v as assertJsonSerializable, w as assertSupportedCondition, x as buildBridgeBundle, y as buildContexts, z as buildContracts, D as buildManifest, E as buildOperations, R as buildPreparedPlanDocument, F as buildQuerySpec, G as buildTransactionSpec, H as buildTransactions, S as canonicalJson, I as collectContractBoundaryViolations, J as collectContractN1Violations, U as compilePreparedPlan, V as entityFingerprint, X as planFingerprint } from '../index-
|
|
3
|
-
import '../registry-
|
|
1
|
+
export { a1 as BridgeBundle, a4 as CommandContractMethodSpec, a5 as CommandResolutionTarget, H as CommandSpec, a6 as CompiledFragment, a7 as CompiledMutationPlan, a8 as ComposeSpec, a9 as CompositionPlanSpec, a2 as ConditionSpec, J as ContextSpec, aa as ContractCardinality, ab as ContractCommandResult, ac as ContractInputArity, ad as ContractKeySpec, ae as ContractKind, af as ContractResolution, A as ContractSpec, ag as DerivedConditionCheck, ah as DerivedEdgeWrite, ai as DerivedIdempotencyGuard, aj as DerivedMaintainOutbox, ak as DerivedMaintainWrite, al as DerivedOutboxEvent, am as DerivedUniqueGuard, an as DerivedUpdate, ao as EntityRefResolver, ap as ExecutionPlanSpec, aq as FilterSpec, ar as MAX_TRANSACT_COMPOSE_ITEMS, a0 as Manifest, as as ManifestEntity, at as ManifestField, au as ManifestFieldType, av as ManifestGsi, aw as ManifestKey, ax as ManifestRelation, ay as ManifestTable, az as OperationSpec, _ as OperationsDocument, L as ParamSpec, aA as QueryContractMethodSpec, G as QuerySpec, aB as RangeConditionSpec, aC as ReadOperationType, K as SPEC_VERSION, aD as TransactionItemSpec, aE as TransactionItemType, I as TransactionSpec, aF as WhenSpec, aG as WriteOperationType, aH as assertNoCrossFragmentMaintainCollision, aI as compileFragment, aJ as compileMutationPlan, aK as compileSingleFragmentPlan, aL as resetMaintenanceGraphCache, aM as resolveLifecycle, aN as resolveMaintainers } from '../maintenance-view-adapter-BCbgKG5d.js';
|
|
2
|
+
export { A as AnyModelContract, B as BuiltContracts, C as ContextOwnership, b as ContextOwnershipMap, c as ContractBoundaryViolation, d as ContractInputs, e as ContractMap, f as ContractN1Violation, O as PREPARED_FORMAT_VERSION, Q as PreparedBindMap, g as PreparedBindSpec, a as PreparedPlanDocument, h as PreparedPlanSpec, i as PreparedReadRouteSpec, P as PreparedWriteOpSpec, s as assertBundleSerializable, t as assertContractBoundaries, u as assertContractN1Safe, v as assertJsonSerializable, w as assertSupportedCondition, x as buildBridgeBundle, y as buildContexts, z as buildContracts, D as buildManifest, E as buildOperations, R as buildPreparedPlanDocument, F as buildQuerySpec, G as buildTransactionSpec, H as buildTransactions, S as canonicalJson, I as collectContractBoundaryViolations, J as collectContractN1Violations, U as compilePreparedPlan, V as entityFingerprint, X as planFingerprint } from '../index-Deugy2sa.js';
|
|
3
|
+
import '../registry-pAnFcc62.js';
|
|
4
4
|
import '@aws-sdk/client-dynamodb';
|
package/dist/spec/index.js
CHANGED
|
@@ -29,8 +29,8 @@ import {
|
|
|
29
29
|
resetMaintenanceGraphCache,
|
|
30
30
|
resolveLifecycle,
|
|
31
31
|
resolveMaintainers
|
|
32
|
-
} from "../chunk-
|
|
33
|
-
import "../chunk-
|
|
32
|
+
} from "../chunk-NZRCBEWS.js";
|
|
33
|
+
import "../chunk-HFFIB77D.js";
|
|
34
34
|
import "../chunk-PDUVTYC5.js";
|
|
35
35
|
export {
|
|
36
36
|
MAX_TRANSACT_COMPOSE_ITEMS,
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Executor, D as DynamoDBOperation, o as ReadExecOptions, p as ExecutorResult, q as BatchGetExecInput, P as PutInput, W as WriteExecOptions, r as WriteResult, s as UpdateInput, t as DeleteInput, u as BatchWriteExecItem, v as BatchExecOptions, T as TransactWriteExecItem, M as ModelStatic, w as DDBModel, c as ChangeEvent } from '../maintenance-view-adapter-
|
|
1
|
+
import { n as Executor, D as DynamoDBOperation, o as ReadExecOptions, p as ExecutorResult, q as BatchGetExecInput, P as PutInput, W as WriteExecOptions, r as WriteResult, s as UpdateInput, t as DeleteInput, u as BatchWriteExecItem, v as BatchExecOptions, T as TransactWriteExecItem, M as ModelStatic, w as DDBModel, c as ChangeEvent } from '../maintenance-view-adapter-BCbgKG5d.js';
|
|
2
2
|
import '@aws-sdk/client-dynamodb';
|
|
3
3
|
|
|
4
4
|
/**
|
package/dist/testing/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCdcEmulator
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-IA6MW2HP.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientManager,
|
|
6
6
|
MetadataRegistry,
|
|
7
7
|
resolveModelClass
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-HFFIB77D.js";
|
|
9
9
|
import {
|
|
10
10
|
TableMapping
|
|
11
11
|
} from "../chunk-PDUVTYC5.js";
|