graphddb 0.7.2 → 0.7.3
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/{chunk-H34BNRDZ.js → chunk-QOA5MSMD.js} +20 -5
- package/dist/cli.js +1 -1
- package/dist/{from-change-CWiXBcgi.d.ts → from-change-bwwGGQDB.d.ts} +1 -1
- package/dist/{index-CvS9ATKB.d.ts → index-CFySSIg4.d.ts} +103 -49
- package/dist/index.d.ts +7 -7
- package/dist/index.js +20 -15
- package/dist/linter/index.d.ts +4 -4
- package/dist/{maintenance-view-adapter-NBTZbE8-.d.ts → maintenance-view-adapter-B4oU6udW.d.ts} +1 -1
- package/dist/{registry-BndKbZbg.d.ts → registry-uYUbg3If.d.ts} +1 -1
- package/dist/{relation-depth-CCGHLTOv.d.ts → relation-depth-JFdnwU7k.d.ts} +1 -1
- package/dist/spec/index.d.ts +3 -3
- package/dist/spec/index.js +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/cdc/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { C as CdcEmulator, M as MAINT_OUTBOX_PK_PREFIX, a as MaintenanceDrain, b as MaintenanceDrainOptions, c as createCdcEmulator, d as createMaintenanceDrain, e as createMaintenanceDrainHandler, p as parseChange } from '../from-change-
|
|
2
|
-
export { B as BatchResult, C as CdcEmulatorOptions, a as CdcMode, b as ChangeBatch, c as ChangeEvent, d as ChangeEventName, e as ChangeHandler, f as ClockMode, g as ConcurrentRecomputeRef, E as EventLog, F as FaultSpec, R as ReplayOptions, S as ShardId, h as StartingPosition, i as StreamViewType, j as SubscribeHandler, k as SubscribeHandlers, U as Unsubscribe, l as buildSubscribeHandler } from '../maintenance-view-adapter-
|
|
1
|
+
export { C as CdcEmulator, M as MAINT_OUTBOX_PK_PREFIX, a as MaintenanceDrain, b as MaintenanceDrainOptions, c as createCdcEmulator, d as createMaintenanceDrain, e as createMaintenanceDrainHandler, p as parseChange } from '../from-change-bwwGGQDB.js';
|
|
2
|
+
export { B as BatchResult, C as CdcEmulatorOptions, a as CdcMode, b as ChangeBatch, c as ChangeEvent, d as ChangeEventName, e as ChangeHandler, f as ClockMode, g as ConcurrentRecomputeRef, E as EventLog, F as FaultSpec, R as ReplayOptions, S as ShardId, h as StartingPosition, i as StreamViewType, j as SubscribeHandler, k as SubscribeHandlers, U as Unsubscribe, l as buildSubscribeHandler } from '../maintenance-view-adapter-B4oU6udW.js';
|
|
3
3
|
import '@aws-sdk/client-dynamodb';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -7918,9 +7918,8 @@ function buildOperations(queries = {}, commands = {}, transactions = {}, contrac
|
|
|
7918
7918
|
};
|
|
7919
7919
|
}
|
|
7920
7920
|
|
|
7921
|
-
// src/spec/prepared.ts
|
|
7922
|
-
|
|
7923
|
-
var PREPARED_FORMAT_VERSION = "1";
|
|
7921
|
+
// src/spec/prepared-artifact.ts
|
|
7922
|
+
var PREPARED_FORMAT_VERSION = "2";
|
|
7924
7923
|
function canonicalJson(value) {
|
|
7925
7924
|
return JSON.stringify(value, (_k, v) => {
|
|
7926
7925
|
if (v !== null && typeof v === "object" && !Array.isArray(v)) {
|
|
@@ -7933,12 +7932,28 @@ function canonicalJson(value) {
|
|
|
7933
7932
|
return v;
|
|
7934
7933
|
});
|
|
7935
7934
|
}
|
|
7935
|
+
var FNV64_OFFSET_BASIS = 0xcbf29ce484222325n;
|
|
7936
|
+
var FNV64_PRIME = 0x100000001b3n;
|
|
7937
|
+
var U64_MASK = 0xffffffffffffffffn;
|
|
7938
|
+
function fnv1a64Hex(input) {
|
|
7939
|
+
let hash = FNV64_OFFSET_BASIS;
|
|
7940
|
+
for (let i = 0; i < input.length; i++) {
|
|
7941
|
+
const unit = input.charCodeAt(i);
|
|
7942
|
+
hash ^= BigInt(unit & 255);
|
|
7943
|
+
hash = hash * FNV64_PRIME & U64_MASK;
|
|
7944
|
+
hash ^= BigInt(unit >>> 8);
|
|
7945
|
+
hash = hash * FNV64_PRIME & U64_MASK;
|
|
7946
|
+
}
|
|
7947
|
+
return hash.toString(16).padStart(16, "0");
|
|
7948
|
+
}
|
|
7936
7949
|
function entityFingerprint(metadata) {
|
|
7937
|
-
return
|
|
7950
|
+
return fnv1a64Hex(canonicalJson(buildManifestEntity(metadata)));
|
|
7938
7951
|
}
|
|
7939
7952
|
function planFingerprint(plan2) {
|
|
7940
|
-
return
|
|
7953
|
+
return fnv1a64Hex(canonicalJson(plan2));
|
|
7941
7954
|
}
|
|
7955
|
+
|
|
7956
|
+
// src/spec/prepared.ts
|
|
7942
7957
|
function bindOfSlot(slot, where) {
|
|
7943
7958
|
if (slot.kind === "param") return { param: slot.name };
|
|
7944
7959
|
const v = slot.value;
|
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CdcEmulatorOptions, e as ChangeHandler, U as Unsubscribe, F as FaultSpec, g as ConcurrentRecomputeRef, c as ChangeEvent, E as EventLog, R as ReplayOptions, S as ShardId, V as ViewDefinition, m as EntityMetadata } from './maintenance-view-adapter-
|
|
1
|
+
import { C as CdcEmulatorOptions, e as ChangeHandler, U as Unsubscribe, F as FaultSpec, g as ConcurrentRecomputeRef, c as ChangeEvent, E as EventLog, R as ReplayOptions, S as ShardId, V as ViewDefinition, m as EntityMetadata } from './maintenance-view-adapter-B4oU6udW.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* CDC emulator (issue #72). Subscribes to the core write-capture seam
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Q as QueryModelContract, x as QueryMethodSpec, y as CommandModelContract, z as CommandMethodSpec, A as ContractSpec, G as QuerySpec, H as CommandSpec, I as TransactionSpec, J as ContextSpec, K as SPEC_VERSION, L as ParamSpec,
|
|
2
|
-
import { M as MetadataRegistry } from './registry-
|
|
1
|
+
import { Q as QueryModelContract, x as QueryMethodSpec, y as CommandModelContract, z as CommandMethodSpec, A as ContractSpec, G as QuerySpec, H as CommandSpec, I as TransactionSpec, J as ContextSpec, K as SPEC_VERSION, L as ParamSpec, m as EntityMetadata, N as ParamDescriptor, O as EntityRef, X as ConditionInput, Y as Param, M as ModelStatic, w as DDBModel, Z as DefinitionMap, _ as OperationsDocument, $ as AnyOperationDefinition, a0 as Manifest, a1 as BridgeBundle, a2 as ConditionSpec, a3 as PreparedBody } from './maintenance-view-adapter-B4oU6udW.js';
|
|
2
|
+
import { M as MetadataRegistry } from './registry-uYUbg3If.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Contract-layer serialization (issue #59, CQRS Contract layer, Epic #57;
|
|
@@ -111,48 +111,50 @@ declare function buildContracts(contracts?: ContractMap): BuiltContracts;
|
|
|
111
111
|
declare function buildContexts(contexts?: ContextOwnershipMap): Record<string, ContextSpec>;
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
|
-
* Static prepared-plan artifact — the
|
|
115
|
-
*
|
|
116
|
-
* runtime and the #206 compile-time hoist).
|
|
114
|
+
* Static prepared-plan artifact — the SHARED, dependency-minimal half of the
|
|
115
|
+
* AOT pipeline (issue #208; layering fixed by #223).
|
|
117
116
|
*
|
|
118
|
-
*
|
|
119
|
-
* body at BUILD time (the #206 lint proves build-time evaluability) and this
|
|
120
|
-
* module compiles the evaluated routes into a JSON-serializable
|
|
121
|
-
* {@link PreparedPlanDocument}:
|
|
117
|
+
* This module carries everything BOTH sides of the pipeline need:
|
|
122
118
|
*
|
|
123
|
-
* -
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
* ({@link serializePreparedWriteFragment} → one declarative
|
|
128
|
-
* {@link TransactionSpec} per op: base write + edges / counters / uniqueness
|
|
129
|
-
* guards / outbox / idempotency / maintenance / ConditionChecks) — so the
|
|
130
|
-
* runtime never invokes the mutation compiler again, **including the first
|
|
131
|
-
* call** (the #206 audit's cold-start gap);
|
|
132
|
-
* - a **read** plan serializes the analyzed route products (entity name, select
|
|
133
|
-
* template, per-field param binds, static/dynamic options) plus the
|
|
134
|
-
* {@link QuerySpec} the spec planner derives for it — the same
|
|
135
|
-
* `operations.json` vocabulary the Python runtime consumes (templated
|
|
136
|
-
* `{param}` key conditions, physical ops, execution plan), so a broken read
|
|
137
|
-
* plan fails the BUILD, not the first request.
|
|
119
|
+
* - the artifact shapes ({@link PreparedPlanDocument} and friends),
|
|
120
|
+
* - the format version ({@link PREPARED_FORMAT_VERSION}),
|
|
121
|
+
* - canonical JSON ({@link canonicalJson}) and the drift-detection
|
|
122
|
+
* fingerprints ({@link entityFingerprint} / {@link planFingerprint}).
|
|
138
123
|
*
|
|
139
|
-
* ##
|
|
124
|
+
* ## Layering (#223)
|
|
140
125
|
*
|
|
141
|
-
* The
|
|
142
|
-
* touches plus a **fingerprint** of each entity's canonical manifest entry
|
|
143
|
-
* ({@link entityFingerprint}). The TS loader (`src/runtime/prepared-loader.ts`)
|
|
144
|
-
* re-binds names against the live {@link MetadataRegistry} and recomputes the
|
|
145
|
-
* fingerprints — a mismatch (model declaration / TableMapping drift since the
|
|
146
|
-
* artifact was generated) is a LOUD reject, never a stale-plan execution.
|
|
126
|
+
* The dependency direction is strictly one-way:
|
|
147
127
|
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
*
|
|
128
|
+
* ```
|
|
129
|
+
* emitter (src/spec/prepared.ts, build-time) ──▶ THIS MODULE
|
|
130
|
+
* loader (src/runtime/prepared-loader.ts) ──▶ THIS MODULE
|
|
131
|
+
* ```
|
|
132
|
+
*
|
|
133
|
+
* The loader must NEVER import the emitter: the emitter drags the whole
|
|
134
|
+
* build-time spec machinery into the runtime bundle (`dist/index.js`), which
|
|
135
|
+
* is exactly the leak the size-limit CI gate caught in #223. This module's
|
|
136
|
+
* only value-level dependencies are ones the loader already carries
|
|
137
|
+
* (`buildManifestEntity` / spec types).
|
|
138
|
+
*
|
|
139
|
+
* ## Fingerprints are checksums, not cryptography
|
|
140
|
+
*
|
|
141
|
+
* The fingerprint exists to detect DRIFT (model declarations changed since
|
|
142
|
+
* the artifact was generated). It is not a security boundary, so it uses a
|
|
143
|
+
* pure-TypeScript FNV-1a 64-bit hash — no `node:crypto`, no platform builtin,
|
|
144
|
+
* bundles everywhere. Switching the algorithm (sha-256 → FNV-1a) is what
|
|
145
|
+
* bumped {@link PREPARED_FORMAT_VERSION} '1' → '2': a format-'1' artifact's
|
|
146
|
+
* fingerprints can never match, so the loader rejects the version loudly
|
|
147
|
+
* instead of failing the comparison confusingly.
|
|
152
148
|
*/
|
|
153
149
|
|
|
154
|
-
/**
|
|
155
|
-
|
|
150
|
+
/**
|
|
151
|
+
* The prepared-plan artifact format version (independent of {@link SPEC_VERSION}).
|
|
152
|
+
*
|
|
153
|
+
* '2' (#223): fingerprints are FNV-1a 64-bit over canonical JSON (16 hex
|
|
154
|
+
* chars). '1' (#208, graphddb ≤ 0.7.2) used sha-256 via `node:crypto`; the
|
|
155
|
+
* loader rejects '1' artifacts with a regeneration instruction.
|
|
156
|
+
*/
|
|
157
|
+
declare const PREPARED_FORMAT_VERSION: "2";
|
|
156
158
|
/**
|
|
157
159
|
* One serialized value bind: a `$`-param slot (bound from the caller's
|
|
158
160
|
* `execute(params)` by name) or a static literal recorded at build time. `Date`
|
|
@@ -274,18 +276,6 @@ declare function canonicalJson(value: unknown): string;
|
|
|
274
276
|
declare function entityFingerprint(metadata: EntityMetadata): string;
|
|
275
277
|
/** Stable content hash of a compiled plan (drift-check convenience). */
|
|
276
278
|
declare function planFingerprint(plan: PreparedPlanSpec): string;
|
|
277
|
-
/**
|
|
278
|
-
* Compile ONE `DDBModel.prepare` body into its static {@link PreparedPlanSpec}
|
|
279
|
-
* (build-time). The body is evaluated once with the recording `$` proxy — the
|
|
280
|
-
* #206 no-capture lint has already proven this is side-effect-free and
|
|
281
|
-
* params-independent — then each route is analyzed and serialized.
|
|
282
|
-
*
|
|
283
|
-
* @param body The prepare body function (as extracted by the transform).
|
|
284
|
-
* @param planLabel A human-readable label woven into build errors (the plan id).
|
|
285
|
-
*/
|
|
286
|
-
declare function compilePreparedPlan(body: PreparedBody, planLabel?: string): PreparedPlanSpec;
|
|
287
|
-
/** Assemble the full artifact document from compiled plans. */
|
|
288
|
-
declare function buildPreparedPlanDocument(plans: Readonly<Record<string, PreparedPlanSpec>>): PreparedPlanDocument;
|
|
289
279
|
|
|
290
280
|
/**
|
|
291
281
|
* Declarative transaction definition DSL (issue #46, Python-bridge Phase 4).
|
|
@@ -848,6 +838,70 @@ declare function assertJsonSerializable(value: unknown, path?: string): void;
|
|
|
848
838
|
/** Convenience: assert an entire {@link BridgeBundle} is JSON-serializable. */
|
|
849
839
|
declare function assertBundleSerializable(bundle: BridgeBundle): void;
|
|
850
840
|
|
|
841
|
+
/**
|
|
842
|
+
* Static prepared-plan artifact — the **build-time** (AOT) compilation of
|
|
843
|
+
* `DDBModel.prepare` bodies (issue #208; design #203 phase 4, on top of the #205
|
|
844
|
+
* runtime and the #206 compile-time hoist).
|
|
845
|
+
*
|
|
846
|
+
* `graphddb transform prepared --aot` evaluates each no-capture-verified prepare
|
|
847
|
+
* body at BUILD time (the #206 lint proves build-time evaluability) and this
|
|
848
|
+
* module compiles the evaluated routes into a JSON-serializable
|
|
849
|
+
* {@link PreparedPlanDocument}:
|
|
850
|
+
*
|
|
851
|
+
* - a **write** plan runs the SAME mutation compiler the runtime `prepare` uses
|
|
852
|
+
* (`compileWriteFragment` → lifecycle resolution → derived-effect derivation)
|
|
853
|
+
* and serializes the result through the SAME contract-SSoT path a
|
|
854
|
+
* `.plan(mutation)` command method uses
|
|
855
|
+
* ({@link serializePreparedWriteFragment} → one declarative
|
|
856
|
+
* {@link TransactionSpec} per op: base write + edges / counters / uniqueness
|
|
857
|
+
* guards / outbox / idempotency / maintenance / ConditionChecks) — so the
|
|
858
|
+
* runtime never invokes the mutation compiler again, **including the first
|
|
859
|
+
* call** (the #206 audit's cold-start gap);
|
|
860
|
+
* - a **read** plan serializes the analyzed route products (entity name, select
|
|
861
|
+
* template, per-field param binds, static/dynamic options) plus the
|
|
862
|
+
* {@link QuerySpec} the spec planner derives for it — the same
|
|
863
|
+
* `operations.json` vocabulary the Python runtime consumes (templated
|
|
864
|
+
* `{param}` key conditions, physical ops, execution plan), so a broken read
|
|
865
|
+
* plan fails the BUILD, not the first request.
|
|
866
|
+
*
|
|
867
|
+
* ## Model references are entity NAMES
|
|
868
|
+
*
|
|
869
|
+
* The artifact never carries a class: each plan records the entity names it
|
|
870
|
+
* touches plus a **fingerprint** of each entity's canonical manifest entry
|
|
871
|
+
* ({@link entityFingerprint}). The TS loader (`src/runtime/prepared-loader.ts`)
|
|
872
|
+
* re-binds names against the live {@link MetadataRegistry} and recomputes the
|
|
873
|
+
* fingerprints — a mismatch (model declaration / TableMapping drift since the
|
|
874
|
+
* artifact was generated) is a LOUD reject, never a stale-plan execution.
|
|
875
|
+
*
|
|
876
|
+
* Everything emitted is JSON-serializable by construction (the #206 no-capture
|
|
877
|
+
* lint guarantees the body's templates are static data; the only non-JSON
|
|
878
|
+
* scalars a template may carry — `Date` / `bigint` literals — are encoded
|
|
879
|
+
* explicitly in {@link PreparedBindSpec}).
|
|
880
|
+
*
|
|
881
|
+
* ## Layering (#223)
|
|
882
|
+
*
|
|
883
|
+
* This module is BUILD-TIME ONLY. The artifact shapes, the format version, and
|
|
884
|
+
* the fingerprint/canonical-JSON helpers the runtime loader also needs live in
|
|
885
|
+
* the shared, dependency-minimal `./prepared-artifact.ts` — both this emitter
|
|
886
|
+
* and the loader (`src/runtime/prepared-loader.ts`) depend on that module, and
|
|
887
|
+
* the loader NEVER imports this one (a loader→emitter import leaks the whole
|
|
888
|
+
* build-time spec machinery into the runtime bundle — the #223 size-limit
|
|
889
|
+
* failure). The shared symbols are re-exported here for API continuity.
|
|
890
|
+
*/
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
* Compile ONE `DDBModel.prepare` body into its static {@link PreparedPlanSpec}
|
|
894
|
+
* (build-time). The body is evaluated once with the recording `$` proxy — the
|
|
895
|
+
* #206 no-capture lint has already proven this is side-effect-free and
|
|
896
|
+
* params-independent — then each route is analyzed and serialized.
|
|
897
|
+
*
|
|
898
|
+
* @param body The prepare body function (as extracted by the transform).
|
|
899
|
+
* @param planLabel A human-readable label woven into build errors (the plan id).
|
|
900
|
+
*/
|
|
901
|
+
declare function compilePreparedPlan(body: PreparedBody, planLabel?: string): PreparedPlanSpec;
|
|
902
|
+
/** Assemble the full artifact document from compiled plans. */
|
|
903
|
+
declare function buildPreparedPlanDocument(plans: Readonly<Record<string, PreparedPlanSpec>>): PreparedPlanDocument;
|
|
904
|
+
|
|
851
905
|
/**
|
|
852
906
|
* Static parameterized planner: serializable OperationSpec + manifest + bridge
|
|
853
907
|
* guard (issue #42, Python-bridge Phase 0b). Public surface.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { a as LintResult, L as LintRule, b as Linter, M as MetadataRegistry } from './registry-
|
|
2
|
-
import { aO as SelectableOf, aP as PrimaryKeyOf, aQ as RequestContext, aR as Middleware, aS as ReadRequestKind, aT as CtxModel, aU as ReadParams, aV as ReadRequestCtx, D as DynamoDBOperation, aW as Item, n as Executor, aX as RetryPolicy, ap as ExecutionPlanSpec, aY as KeyDefinition, aZ as GsiDefinition, a_ as ModelKind, a$ as FieldOptions, b0 as DynamoType, b1 as ProjectionTransform, b2 as MaintainEvent, b3 as MembershipPredicate, b4 as MaintainConsistency, b5 as MaintainUpdateMode, b6 as MembershipPredicateOp, b7 as RelationOptions, b8 as AggregateOptions, b9 as AggregateValue, ba as SelectBuilderSpec, bb as RawCondition, m as EntityMetadata, I as TransactionSpec,
|
|
3
|
-
export { bu as AggregateMetadata,
|
|
1
|
+
export { a as LintResult, L as LintRule, b as Linter, M as MetadataRegistry } from './registry-uYUbg3If.js';
|
|
2
|
+
import { aO as SelectableOf, aP as PrimaryKeyOf, aQ as RequestContext, aR as Middleware, aS as ReadRequestKind, aT as CtxModel, aU as ReadParams, aV as ReadRequestCtx, D as DynamoDBOperation, aW as Item, n as Executor, aX as RetryPolicy, ap as ExecutionPlanSpec, aY as KeyDefinition, aZ as GsiDefinition, a_ as ModelKind, a$ as FieldOptions, b0 as DynamoType, b1 as ProjectionTransform, b2 as MaintainEvent, b3 as MembershipPredicate, b4 as MaintainConsistency, b5 as MaintainUpdateMode, b6 as MembershipPredicateOp, b7 as RelationOptions, b8 as AggregateOptions, b9 as AggregateValue, ba as SelectBuilderSpec, bb as RawCondition, m as EntityMetadata, I as TransactionSpec, a0 as Manifest, bc as RetryOverride, bd as ExecutionPlan, be as FieldMetadata, bf as ResolvedKey, 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, bg as Slot, bh as PreparedWriteExecOptions, bi as CommandReturn, bj as ParallelOpResult, a3 as PreparedBody, bk as PreparedStatement, bl as RelationMetadata, aD as TransactionItemSpec, bm as MaintainEffect, V as ViewDefinition, Y as Param, N as ParamDescriptor, Z as DefinitionMap, bn as OperationDefinition, bo as WriteDefinitionOptions, bp as PartialQueryKeyOf, bq as StrictSelectSpec, br as ReadDefinitionOptions, bs as EntityInput, bt as UniqueQueryKeyOf } from './maintenance-view-adapter-B4oU6udW.js';
|
|
3
|
+
export { bu as AggregateMetadata, $ as AnyOperationDefinition, bv as BatchDeleteRequest, bw as BatchGetOptions, bx as BatchGetRequest, by as BatchGetResult, bz as BatchPutRequest, B as BatchResult, bA as BatchWriteRequest, a1 as BridgeBundle, bB as CONTRACT_RANGE_FANOUT_CONCURRENCY, C as CdcEmulatorOptions, a as CdcMode, bC as CdcModelRegistry, bD as CdcSubscribeHandlers, bE as Change, b as ChangeBatch, c as ChangeEvent, d as ChangeEventName, e as ChangeHandler, f as ClockMode, bF as CollectionEffect, bG as CollectionOptions, bH as Column, bI as ColumnMap, a4 as CommandContractMethodSpec, bJ as CommandInputShape, bK as CommandMethod, z as CommandMethodSpec, y as CommandModelContract, bL as CommandPlan, a5 as CommandResolutionTarget, bM as CommandResultKind, bN as CommandSelectShape, H as CommandSpec, a6 as CompiledFragment, a8 as ComposeSpec, g as ConcurrentRecomputeRef, bO as CondSlot, bP as ConditionCheckInput, X as ConditionInput, a2 as ConditionSpec, bQ as Connection, J as ContextSpec, bR as ContractCallSignature, aa as ContractCardinality, bS as ContractCommandParams, ab as ContractCommandResult, bT as ContractComposeNode, bU as ContractFromRef, ac as ContractInputArity, bV as ContractItem, bW as ContractKeyFieldRef, bX as ContractKeyInput, bY as ContractKeyRef, ad as ContractKeySpec, ae as ContractKind, bZ as ContractMethodOp, b_ as ContractParamRef, b$ as ContractQueryParams, af as ContractResolution, A as ContractSpec, c0 as CounterAggregate, c1 as CounterEffect, c2 as CtxBase, c3 as DEFAULT_MAX_ATTEMPTS, c4 as DEFAULT_RETRY_POLICY, c5 as DeleteOptions, c6 as DeriveEffect, ah as DerivedEdgeWrite, an as DerivedUpdate, c7 as DescriptorBinding, c8 as ENTITY_WRITES_MARKER, c9 as EdgeEffect, ca as EffectPath, cb as EmbeddedMetadata, cc as EmitEffect, O as EntityRef, cd as EntityWritesDefinition, ce as EntityWritesShape, E as EventLog, cf as ExecutableCommandContract, cg as ExecutableQueryContract, F as FaultSpec, ch as FilterInput, aq as FilterSpec, ci as FragmentInput, cj as GsiDefinitionMarker, ck as GsiOptions, cl as IdempotencyEffect, cm as InProcessWriteDescriptor, cn as InlineSnapshotSpec, co as InputArity, cp as KeyDefinitionMarker, cq as KeySegment, cr as KeySlot, cs as KeyStructure, ct as KeyedResult, cu as LIFECYCLE_CONTRACT_MARKER, cv as LifecycleContract, cw as LifecycleEffects, cx as LiteralParam, cy as MaintainItem, cz as MaintainTrigger, cA as MaintenanceGraph, as as ManifestEntity, at as ManifestField, au as ManifestFieldType, av as ManifestGsi, aw as ManifestKey, ax as ManifestRelation, ay as ManifestTable, cB as MembershipEffect, cC as ModelRef, cD as MutateMode, cE as MutateOptions, cF as MutateParallelResult, cG as MutateTransactionResult, cH as MutationBody, cI as MutationDescriptorMap, cJ as MutationFragment, cK as MutationInputProxy, cL as MutationInputRef, cM as MutationIntent, cN as NumberParam, cO as OperationKind, az as OperationSpec, _ as OperationsDocument, cP as PREPARE_CACHE_MAX, cQ as ParamKind, L as ParamSpec, cR as ParamStructure, cS as PersistCtx, cT as PersistOrigin, cU as PlannedCommandMethod, cV as PreparedInputProxy, cW as PreparedParamRef, cX as PreparedReadExecOptions, cY as PreparedReadRoute, cZ as PreparedReadStatement, c_ as PreparedWriteRoute, c$ as PreparedWriteStatement, d0 as ProjectionMap, d1 as ProjectionTransformOp, d2 as PutOptions, aA as QueryContractMethodSpec, d3 as QueryEnvelopeResult, d4 as QueryKeyOf, d5 as QueryMethod, x as QueryMethodSpec, Q as QueryModelContract, d6 as QueryResult, G as QuerySpec, aB as RangeConditionSpec, d7 as ReadEnvelope, d8 as ReadOpCtx, d9 as ReadOpKind, aC as ReadOperationType, da as ReadRouteDescriptor, db as ReadRouteOptions, dc as ReadRouteResult, dd as RecordedCompose, de as RelationBuilder, df as RelationConsistency, dg as RelationLimitOptions, dh as RelationPattern, di as RelationProjection, dj as RelationReadOptions, dk as RelationSelect, dl as RelationSpec, dm as RelationUpdateMode, dn as RelationWriteOptions, R as ReplayOptions, dp as RequiresEffect, dq as Resolution, dr as RetryInfo, ds as RetryOperationKind, K as SPEC_VERSION, dt as SegmentSpec, du as SegmentedKey, dv as SelectBuilder, dw as SelectOf, S as ShardId, dx as SnapshotEffect, h as StartingPosition, i as StreamViewType, dy as StringParam, j as SubscribeHandler, k as SubscribeHandlers, dz as TransactionContext, aE as TransactionItemType, dA as UniqueEffect, dB as Updatable, dC as UpdateOptions, dD as ViewSourceSlice, aF as WhenSpec, dE as WriteCtx, dF as WriteDescriptor, dG as WriteEnvelope, dH as WriteInput, dI as WriteKind, dJ as WriteLifecyclePhase, dK as WriteMiddleware, aG as WriteOperationType, dL as WriteRecorder, dM as WriteResultProjection, dN as attachModelClass, dO as buildDeleteInput, dP as buildMaintenanceGraph, dQ as buildPutInput, l as buildSubscribeHandler, dR as buildUpdateInput, dS as collectViewDefinitions, aI as compileFragment, aJ as compileMutationPlan, aK as compileSingleFragmentPlan, dT as cond, dU as contractOfMethodSpec, dV as definePlan, dW as entityWrites, dX as executeBatchGet, dY as executeBatchWrite, dZ as executeCommandMethod, d_ as executeDelete, d$ as executeKeyedBatchGet, e0 as executePut, e1 as executeQueryMethod, e2 as executeRangeFanout, e3 as executeTransaction, e4 as executeUpdate, e5 as from, e6 as getEntityWrites, e7 as gsi, e8 as identity, e9 as isColumn, ea as isCommandModelContract, eb as isCommandPlan, ec as isContractComposeNode, ed as isContractFromRef, ee as isContractKeyFieldRef, ef as isContractKeyRef, eg as isContractParamRef, eh as isEntityWritesDefinition, ei as isKeySegment, ej as isLifecycleContract, ek as isMaintainTrigger, el as isMutationFragment, em as isMutationInputRef, en as isParam, eo as isPlannedCommandMethod, ep as isPreparedParamRef, eq as isQueryModelContract, er as isRetryableError, es as isRetryableTransactionCancellation, et as k, eu as key, ev as lifecyclePhaseForIntent, ew as maintainTrigger, ex as mintContractKeyFieldRef, ey as mintContractParamRef, ez as mutation, eA as param, eB as prepare, eC as preview, eD as publicCommandModel, eE as publicQueryModel, eF as query, aM as resolveLifecycle, eG as wholeKeysSentinel } from './maintenance-view-adapter-B4oU6udW.js';
|
|
4
4
|
import { DynamoDBClient } from '@aws-sdk/client-dynamodb';
|
|
5
5
|
import { DynamoDBDocumentClient } from '@aws-sdk/lib-dynamodb';
|
|
6
|
-
export { C as CdcEmulator, M as MAINT_OUTBOX_PK_PREFIX, a as MaintenanceDrain, b as MaintenanceDrainOptions, c as createCdcEmulator, d as createMaintenanceDrain, e as createMaintenanceDrainHandler, p as parseChange } from './from-change-
|
|
7
|
-
import { P as PreparedWriteOpSpec, a as PreparedPlanDocument } from './index-
|
|
8
|
-
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, g as PreparedBindSpec, h as PreparedPlanSpec, i as PreparedReadRouteSpec, T as TransactionDefinition, j as TransactionParamShape, k as TransactionRef, l as TxConditionCheckOptions, m as TxForEachInstruction, n as TxForEachOptions, o as TxInstruction, p as TxRecorder, q as TxWriteInstruction, r as TxWriteOptions, W as WhenComparison, 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, F as buildQuerySpec, G as buildTransactionSpec, H as buildTransactions, I as collectContractBoundaryViolations, J as collectContractN1Violations, K as defineTransaction, L as defineTransactions, M as isTransactionRef, N as when } from './index-
|
|
9
|
-
export { c as createDefaultLinter, g as gsiAmbiguityRule, m as missingGsiRule, n as noScanRule, q as queryBoundaryRule, r as relationDepthRule, a as requireLimitRule } from './relation-depth-
|
|
6
|
+
export { C as CdcEmulator, M as MAINT_OUTBOX_PK_PREFIX, a as MaintenanceDrain, b as MaintenanceDrainOptions, c as createCdcEmulator, d as createMaintenanceDrain, e as createMaintenanceDrainHandler, p as parseChange } from './from-change-bwwGGQDB.js';
|
|
7
|
+
import { P as PreparedWriteOpSpec, a as PreparedPlanDocument } from './index-CFySSIg4.js';
|
|
8
|
+
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, g as PreparedBindSpec, h as PreparedPlanSpec, i as PreparedReadRouteSpec, T as TransactionDefinition, j as TransactionParamShape, k as TransactionRef, l as TxConditionCheckOptions, m as TxForEachInstruction, n as TxForEachOptions, o as TxInstruction, p as TxRecorder, q as TxWriteInstruction, r as TxWriteOptions, W as WhenComparison, 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, F as buildQuerySpec, G as buildTransactionSpec, H as buildTransactions, I as collectContractBoundaryViolations, J as collectContractN1Violations, K as defineTransaction, L as defineTransactions, M as isTransactionRef, N as when } from './index-CFySSIg4.js';
|
|
9
|
+
export { c as createDefaultLinter, g as gsiAmbiguityRule, m as missingGsiRule, n as noScanRule, q as queryBoundaryRule, r as relationDepthRule, a as requireLimitRule } from './relation-depth-JFdnwU7k.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Query options with conditional `consistentRead` availability.
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
queryBoundaryRule
|
|
3
3
|
} from "./chunk-MMVHOUM4.js";
|
|
4
|
+
import {
|
|
5
|
+
CdcEmulator,
|
|
6
|
+
MAINT_OUTBOX_PK_PREFIX,
|
|
7
|
+
MaintenanceDrain,
|
|
8
|
+
compareDesc,
|
|
9
|
+
createCdcEmulator,
|
|
10
|
+
createMaintenanceDrain,
|
|
11
|
+
createMaintenanceDrainHandler,
|
|
12
|
+
orderAndTrimCollection,
|
|
13
|
+
pathField,
|
|
14
|
+
projectFrom
|
|
15
|
+
} from "./chunk-5NXNEW43.js";
|
|
4
16
|
import {
|
|
5
17
|
BatchGetResult,
|
|
6
18
|
DDBModel,
|
|
@@ -90,19 +102,7 @@ import {
|
|
|
90
102
|
validateDepth,
|
|
91
103
|
when,
|
|
92
104
|
wholeKeysSentinel
|
|
93
|
-
} from "./chunk-
|
|
94
|
-
import {
|
|
95
|
-
CdcEmulator,
|
|
96
|
-
MAINT_OUTBOX_PK_PREFIX,
|
|
97
|
-
MaintenanceDrain,
|
|
98
|
-
compareDesc,
|
|
99
|
-
createCdcEmulator,
|
|
100
|
-
createMaintenanceDrain,
|
|
101
|
-
createMaintenanceDrainHandler,
|
|
102
|
-
orderAndTrimCollection,
|
|
103
|
-
pathField,
|
|
104
|
-
projectFrom
|
|
105
|
-
} from "./chunk-5NXNEW43.js";
|
|
105
|
+
} from "./chunk-QOA5MSMD.js";
|
|
106
106
|
import {
|
|
107
107
|
BATCH_GET_MAX_KEYS,
|
|
108
108
|
BATCH_WRITE_MAX_ITEMS,
|
|
@@ -1327,7 +1327,7 @@ function bindEntities(plan2, planId) {
|
|
|
1327
1327
|
const actual = entityFingerprint(metadata);
|
|
1328
1328
|
if (actual !== expected) {
|
|
1329
1329
|
throw new Error(
|
|
1330
|
-
`${LOAD_LABEL}: static plan '${planId}' is STALE \u2014 entity '${name}' has changed since the plan artifact was generated (declaration fingerprint mismatch: expected ${expected
|
|
1330
|
+
`${LOAD_LABEL}: static plan '${planId}' is STALE \u2014 entity '${name}' has changed since the plan artifact was generated (declaration fingerprint mismatch: expected ${expected}, live ${actual}). A stale static plan never executes. Regenerate the artifact: \`graphddb transform prepared --aot <artifact> --write\` (CI: run the check mode to catch this at build time).`
|
|
1331
1331
|
);
|
|
1332
1332
|
}
|
|
1333
1333
|
classes.set(name, modelClass);
|
|
@@ -1480,8 +1480,13 @@ function bindPlan(doc, planId) {
|
|
|
1480
1480
|
throw new Error(`${LOAD_LABEL}: not a prepared-plan document.`);
|
|
1481
1481
|
}
|
|
1482
1482
|
if (doc.formatVersion !== PREPARED_FORMAT_VERSION) {
|
|
1483
|
+
if (doc.formatVersion === "1") {
|
|
1484
|
+
throw new Error(
|
|
1485
|
+
`${LOAD_LABEL}: this artifact uses prepared-plan format version '1' (generated by graphddb <= 0.7.2). This runtime speaks format '${PREPARED_FORMAT_VERSION}' (the entity fingerprints changed algorithm), so the artifact must be regenerated with the transform: \`graphddb transform prepared --aot <artifact> --write\`.`
|
|
1486
|
+
);
|
|
1487
|
+
}
|
|
1483
1488
|
throw new Error(
|
|
1484
|
-
`${LOAD_LABEL}: unsupported artifact format version '${String(doc.formatVersion)}' (this runtime supports '${PREPARED_FORMAT_VERSION}'). Regenerate the artifact
|
|
1489
|
+
`${LOAD_LABEL}: unsupported artifact format version '${String(doc.formatVersion)}' (this runtime supports '${PREPARED_FORMAT_VERSION}'). Regenerate the artifact: \`graphddb transform prepared --aot <artifact> --write\`.`
|
|
1485
1490
|
);
|
|
1486
1491
|
}
|
|
1487
1492
|
if (doc.specVersion !== SPEC_VERSION) {
|
package/dist/linter/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { L as LintRule } from '../registry-
|
|
2
|
-
export { a as LintResult, b as Linter } from '../registry-
|
|
3
|
-
export { c as createDefaultLinter, g as gsiAmbiguityRule, m as missingGsiRule, n as noScanRule, q as queryBoundaryRule, r as relationDepthRule, a as requireLimitRule } from '../relation-depth-
|
|
4
|
-
import '../maintenance-view-adapter-
|
|
1
|
+
import { L as LintRule } from '../registry-uYUbg3If.js';
|
|
2
|
+
export { a as LintResult, b as Linter } from '../registry-uYUbg3If.js';
|
|
3
|
+
export { c as createDefaultLinter, g as gsiAmbiguityRule, m as missingGsiRule, n as noScanRule, q as queryBoundaryRule, r as relationDepthRule, a as requireLimitRule } from '../relation-depth-JFdnwU7k.js';
|
|
4
|
+
import '../maintenance-view-adapter-B4oU6udW.js';
|
|
5
5
|
import '@aws-sdk/client-dynamodb';
|
|
6
6
|
|
|
7
7
|
/**
|
package/dist/{maintenance-view-adapter-NBTZbE8-.d.ts → maintenance-view-adapter-B4oU6udW.d.ts}
RENAMED
|
@@ -7369,4 +7369,4 @@ interface ViewDefinition {
|
|
|
7369
7369
|
*/
|
|
7370
7370
|
declare function collectViewDefinitions(registry?: ReadonlyMap<Function, EntityMetadata>): ViewDefinition[];
|
|
7371
7371
|
|
|
7372
|
-
export { type
|
|
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, PreparedWriteStatement 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 MaintenanceGraph as cA, type MembershipEffect as cB, type ModelRef as cC, type MutateMode as cD, type MutateOptions as cE, type MutateParallelResult as cF, type MutateTransactionResult as cG, type MutationBody as cH, type MutationDescriptorMap as cI, type MutationFragment as cJ, type MutationInputProxy as cK, type MutationInputRef as cL, type MutationIntent as cM, type NumberParam as cN, type OperationKind as cO, PREPARE_CACHE_MAX as cP, type ParamKind as cQ, type ParamStructure as cR, type PersistCtx as cS, type PersistOrigin as cT, type PlannedCommandMethod as cU, type PreparedInputProxy as cV, type PreparedParamRef as cW, type PreparedReadExecOptions as cX, type PreparedReadRoute as cY, PreparedReadStatement as cZ, type PreparedWriteRoute 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 FragmentInput as ci, type GsiDefinitionMarker as cj, type GsiOptions as ck, type IdempotencyEffect as cl, type InProcessWriteDescriptor as cm, type InlineSnapshotSpec as cn, type InputArity as co, type KeyDefinitionMarker as cp, type KeySegment as cq, type KeySlot as cr, type KeyStructure as cs, type KeyedResult as ct, LIFECYCLE_CONTRACT_MARKER as cu, type LifecycleContract as cv, type LifecycleEffects as cw, type LiteralParam as cx, type MaintainItem as cy, type MaintainTrigger as cz, type ChangeEventName as d, executeKeyedBatchGet as d$, type ProjectionMap as d0, type ProjectionTransformOp as d1, type PutOptions as d2, type QueryEnvelopeResult as d3, type QueryKeyOf as d4, type QueryMethod as d5, type QueryResult as d6, type ReadEnvelope as d7, type ReadOpCtx as d8, type ReadOpKind as d9, type UniqueEffect as dA, type Updatable as dB, type UpdateOptions as dC, type ViewSourceSlice as dD, type WriteCtx as dE, type WriteDescriptor as dF, type WriteEnvelope as dG, type WriteInput as dH, type WriteKind as dI, type WriteLifecyclePhase as dJ, type WriteMiddleware as dK, type WriteRecorder as dL, type WriteResultProjection as dM, attachModelClass as dN, buildDeleteInput as dO, buildMaintenanceGraph as dP, buildPutInput as dQ, buildUpdateInput as dR, collectViewDefinitions as dS, cond as dT, contractOfMethodSpec as dU, definePlan as dV, entityWrites as dW, executeBatchGet as dX, executeBatchWrite as dY, executeCommandMethod as dZ, executeDelete as d_, type ReadRouteDescriptor as da, type ReadRouteOptions as db, type ReadRouteResult as dc, type RecordedCompose as dd, type RelationBuilder as de, type RelationConsistency as df, type RelationLimitOptions as dg, type RelationPattern as dh, type RelationProjection as di, type RelationReadOptions as dj, type RelationSelect as dk, type RelationSpec as dl, type RelationUpdateMode as dm, type RelationWriteOptions as dn, type RequiresEffect as dp, type Resolution as dq, type RetryInfo as dr, type RetryOperationKind as ds, type SegmentSpec as dt, type SegmentedKey as du, type SelectBuilder as dv, type SelectOf as dw, type SnapshotEffect as dx, type StringParam as dy, TransactionContext as dz, type ChangeHandler as e, executePut as e0, executeQueryMethod as e1, executeRangeFanout as e2, executeTransaction as e3, executeUpdate as e4, from as e5, getEntityWrites as e6, gsi as e7, identity as e8, isColumn as e9, param as eA, prepare as eB, preview as eC, publicCommandModel as eD, publicQueryModel as eE, query as eF, wholeKeysSentinel as eG, isCommandModelContract as ea, isCommandPlan as eb, isContractComposeNode as ec, isContractFromRef as ed, isContractKeyFieldRef as ee, isContractKeyRef as ef, isContractParamRef as eg, isEntityWritesDefinition as eh, isKeySegment as ei, isLifecycleContract as ej, isMaintainTrigger as ek, isMutationFragment as el, isMutationInputRef as em, isParam as en, isPlannedCommandMethod as eo, isPreparedParamRef as ep, isQueryModelContract as eq, isRetryableError as er, isRetryableTransactionCancellation as es, k as et, key as eu, lifecyclePhaseForIntent as ev, maintainTrigger as ew, mintContractKeyFieldRef as ex, mintContractParamRef as ey, mutation 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 {
|
|
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-B4oU6udW.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-CFySSIg4.js';
|
|
3
|
+
import '../registry-uYUbg3If.js';
|
|
4
4
|
import '@aws-sdk/client-dynamodb';
|
package/dist/spec/index.js
CHANGED
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-B4oU6udW.js';
|
|
2
2
|
import '@aws-sdk/client-dynamodb';
|
|
3
3
|
|
|
4
4
|
/**
|