effect-dynamodb 1.39.0 → 1.40.0
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/Aggregate.d.ts +119 -15
- package/dist/Aggregate.d.ts.map +1 -1
- package/dist/Aggregate.js +2021 -379
- package/dist/Aggregate.js.map +1 -1
- package/dist/Batch.d.ts +9 -5
- package/dist/Batch.d.ts.map +1 -1
- package/dist/Batch.js +28 -44
- package/dist/Batch.js.map +1 -1
- package/dist/Collection.d.ts.map +1 -1
- package/dist/Collection.js +12 -5
- package/dist/Collection.js.map +1 -1
- package/dist/ConsumedCapacity.js +1 -1
- package/dist/ConsumedCapacity.js.map +1 -1
- package/dist/DynamoClient.d.ts +22 -8
- package/dist/DynamoClient.d.ts.map +1 -1
- package/dist/DynamoClient.js +243 -87
- package/dist/DynamoClient.js.map +1 -1
- package/dist/Entity.d.ts +87 -22
- package/dist/Entity.d.ts.map +1 -1
- package/dist/Entity.js +2750 -514
- package/dist/Entity.js.map +1 -1
- package/dist/EventStore.d.ts +37 -15
- package/dist/EventStore.d.ts.map +1 -1
- package/dist/EventStore.js +215 -79
- package/dist/EventStore.js.map +1 -1
- package/dist/Marshaller.d.ts +39 -9
- package/dist/Marshaller.d.ts.map +1 -1
- package/dist/Marshaller.js +421 -70
- package/dist/Marshaller.js.map +1 -1
- package/dist/Query.d.ts +23 -0
- package/dist/Query.d.ts.map +1 -1
- package/dist/Query.js +49 -3
- package/dist/Query.js.map +1 -1
- package/dist/StorageEncoding.d.ts +7 -1
- package/dist/StorageEncoding.d.ts.map +1 -1
- package/dist/StorageEncoding.js +8 -2
- package/dist/StorageEncoding.js.map +1 -1
- package/dist/Table.d.ts +69 -8
- package/dist/Table.d.ts.map +1 -1
- package/dist/Transaction.d.ts.map +1 -1
- package/dist/Transaction.js +10 -4
- package/dist/Transaction.js.map +1 -1
- package/dist/change-feed/ChangeFeed.d.ts +8 -3
- package/dist/change-feed/ChangeFeed.d.ts.map +1 -1
- package/dist/change-feed/ChangeFeed.js +76 -9
- package/dist/change-feed/ChangeFeed.js.map +1 -1
- package/dist/change-feed/CheckpointStore.js +1 -1
- package/dist/change-feed/CheckpointStore.js.map +1 -1
- package/dist/change-feed/DynamoStreamsClient.d.ts +12 -5
- package/dist/change-feed/DynamoStreamsClient.d.ts.map +1 -1
- package/dist/change-feed/DynamoStreamsClient.js +15 -9
- package/dist/change-feed/DynamoStreamsClient.js.map +1 -1
- package/dist/internal/BoundCrud.d.ts +40 -32
- package/dist/internal/BoundCrud.d.ts.map +1 -1
- package/dist/internal/BoundCrud.js.map +1 -1
- package/dist/internal/BoundQuery.d.ts +1 -1
- package/dist/internal/BoundQuery.d.ts.map +1 -1
- package/dist/internal/BoundQuery.js +22 -12
- package/dist/internal/BoundQuery.js.map +1 -1
- package/dist/internal/BoundVectorQuery.d.ts.map +1 -1
- package/dist/internal/BoundVectorQuery.js +2 -1
- package/dist/internal/BoundVectorQuery.js.map +1 -1
- package/dist/internal/Capacity.d.ts +44 -4
- package/dist/internal/Capacity.d.ts.map +1 -1
- package/dist/internal/Capacity.js +89 -15
- package/dist/internal/Capacity.js.map +1 -1
- package/dist/internal/ClientOptions.d.ts +72 -0
- package/dist/internal/ClientOptions.d.ts.map +1 -0
- package/dist/internal/ClientOptions.js +79 -0
- package/dist/internal/ClientOptions.js.map +1 -0
- package/dist/internal/Cursor.d.ts +19 -10
- package/dist/internal/Cursor.d.ts.map +1 -1
- package/dist/internal/Cursor.js +25 -10
- package/dist/internal/Cursor.js.map +1 -1
- package/dist/internal/EntityCombinators.d.ts +22 -7
- package/dist/internal/EntityCombinators.d.ts.map +1 -1
- package/dist/internal/EntityCombinators.js +6 -2
- package/dist/internal/EntityCombinators.js.map +1 -1
- package/dist/internal/EntityOps.d.ts +11 -1
- package/dist/internal/EntityOps.d.ts.map +1 -1
- package/dist/internal/EntityOps.js.map +1 -1
- package/dist/internal/EventProjection.d.ts +15 -3
- package/dist/internal/EventProjection.d.ts.map +1 -1
- package/dist/internal/EventProjection.js +27 -8
- package/dist/internal/EventProjection.js.map +1 -1
- package/dist/internal/Expr.d.ts.map +1 -1
- package/dist/internal/Expr.js +53 -2
- package/dist/internal/Expr.js.map +1 -1
- package/dist/internal/ExpressionLimits.d.ts +57 -1
- package/dist/internal/ExpressionLimits.d.ts.map +1 -1
- package/dist/internal/ExpressionLimits.js +90 -1
- package/dist/internal/ExpressionLimits.js.map +1 -1
- package/dist/internal/ItemSize.d.ts +108 -4
- package/dist/internal/ItemSize.d.ts.map +1 -1
- package/dist/internal/ItemSize.js +190 -3
- package/dist/internal/ItemSize.js.map +1 -1
- package/dist/internal/MultiProjection.d.ts +7 -2
- package/dist/internal/MultiProjection.d.ts.map +1 -1
- package/dist/internal/MultiProjection.js +9 -3
- package/dist/internal/MultiProjection.js.map +1 -1
- package/dist/internal/PathBuilder.d.ts +15 -4
- package/dist/internal/PathBuilder.d.ts.map +1 -1
- package/dist/internal/PathBuilder.js +20 -10
- package/dist/internal/PathBuilder.js.map +1 -1
- package/dist/internal/ProjectionEngine.d.ts +76 -2
- package/dist/internal/ProjectionEngine.d.ts.map +1 -1
- package/dist/internal/ProjectionEngine.js +358 -28
- package/dist/internal/ProjectionEngine.js.map +1 -1
- package/dist/internal/Rekey.d.ts +21 -1
- package/dist/internal/Rekey.d.ts.map +1 -1
- package/dist/internal/Rekey.js +67 -0
- package/dist/internal/Rekey.js.map +1 -1
- package/dist/internal/RoundTrip.d.ts +36 -0
- package/dist/internal/RoundTrip.d.ts.map +1 -0
- package/dist/internal/RoundTrip.js +79 -0
- package/dist/internal/RoundTrip.js.map +1 -0
- package/dist/internal/SentRequest.d.ts +14 -0
- package/dist/internal/SentRequest.d.ts.map +1 -0
- package/dist/internal/SentRequest.js +31 -0
- package/dist/internal/SentRequest.js.map +1 -0
- package/dist/internal/TransactWriteOps.d.ts +69 -15
- package/dist/internal/TransactWriteOps.d.ts.map +1 -1
- package/dist/internal/TransactWriteOps.js +144 -107
- package/dist/internal/TransactWriteOps.js.map +1 -1
- package/dist/internal/TransactableOps.d.ts +115 -23
- package/dist/internal/TransactableOps.d.ts.map +1 -1
- package/dist/internal/TransactableOps.js +244 -80
- package/dist/internal/TransactableOps.js.map +1 -1
- package/dist/internal/WriteDiagnosis.d.ts +31 -3
- package/dist/internal/WriteDiagnosis.d.ts.map +1 -1
- package/dist/internal/WriteDiagnosis.js +128 -11
- package/dist/internal/WriteDiagnosis.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether what a write stores reads back, for a value of a custom declaration (`EDD-9126`).
|
|
3
|
+
*
|
|
4
|
+
* A `Schema.instanceOf` and a duck-typed `Schema.declare` have the same AST, and only the second reads
|
|
5
|
+
* back, so a model can't be judged when it loads (`EDD-9125` judges Effect's own declarations). What
|
|
6
|
+
* can be judged is the value: what the marshaller makes of it, unmarshalled, is what a read would
|
|
7
|
+
* hand the schema. The test is whether that decodes, never whether the value is an instance.
|
|
8
|
+
*
|
|
9
|
+
* A schema holding no custom declaration has no check at all, so what it costs is the scan when it's
|
|
10
|
+
* built, and its requests are the ones it always sent.
|
|
11
|
+
*/
|
|
12
|
+
import { holdsCustomDeclaration } from "@effect-dynamodb/schema/internal/SchemaAccessors.js";
|
|
13
|
+
import { Cause, Effect, Schema } from "effect";
|
|
14
|
+
import { fromAttributeMap, toAttributeMap } from "../Marshaller.js";
|
|
15
|
+
/** What a read gets for a value a write stores, marshalled and unmarshalled for real. */
|
|
16
|
+
export const asRead = (encoded) => fromAttributeMap(toAttributeMap({ value: encoded })).value;
|
|
17
|
+
/**
|
|
18
|
+
* The check for a schema's stored values, or `undefined` when it holds no custom declaration. A value
|
|
19
|
+
* the marshaller refuses isn't this check's to judge: the write's own marshalling reports it
|
|
20
|
+
* (`EDD-9124`).
|
|
21
|
+
*/
|
|
22
|
+
export const readBackOf = (stored, read) => {
|
|
23
|
+
if (!holdsCustomDeclaration(stored.ast))
|
|
24
|
+
return undefined;
|
|
25
|
+
const decode = Schema.decodeUnknownEffect(read());
|
|
26
|
+
return (encoded) => {
|
|
27
|
+
let value;
|
|
28
|
+
try {
|
|
29
|
+
value = asRead(encoded);
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
return Effect.void;
|
|
33
|
+
}
|
|
34
|
+
return Effect.asVoid(decode(value));
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
const issueOf = (issue) => Cause.isCause(issue) ? Cause.pretty(issue) : String(issue?.message ?? issue);
|
|
38
|
+
/**
|
|
39
|
+
* The refusal of an aggregate write's value its field's schema can't put in its stored form (`EDD-9127`):
|
|
40
|
+
* stored as given, the rows wouldn't read back. `fields` names each such field as `"field" of "member"`,
|
|
41
|
+
* and `issue` is what the read made of the rows.
|
|
42
|
+
*/
|
|
43
|
+
export const notStoredForm = (fields, issue) => `${fields.length === 1 ? "Field" : "Fields"} ${fields.join(", ")} can't be put in the stored form: ` +
|
|
44
|
+
"the schema can't encode the value, nor decode it and encode the result. Stored as given, the " +
|
|
45
|
+
`aggregate wouldn't read back: ${issueOf(issue)}. Nothing was written. A transformation that ` +
|
|
46
|
+
"encodes what it decodes to reads back. [EDD-9127]";
|
|
47
|
+
/**
|
|
48
|
+
* The refusal of a key composite's value that reads back otherwise (`EDD-9128`): `what` names the
|
|
49
|
+
* field and what composes it, and `readsAs` is what the value reads back as.
|
|
50
|
+
*/
|
|
51
|
+
export const readBackRefusal = (what, value, readsAs) => {
|
|
52
|
+
const given = typeof value === "bigint"
|
|
53
|
+
? `the bigint ${value}n`
|
|
54
|
+
: typeof value === "number"
|
|
55
|
+
? `the number ${Object.is(value, -0) ? "-0" : String(value)}`
|
|
56
|
+
: "the value given";
|
|
57
|
+
let returned = value;
|
|
58
|
+
try {
|
|
59
|
+
returned = asRead(value);
|
|
60
|
+
}
|
|
61
|
+
catch {
|
|
62
|
+
// Described as given.
|
|
63
|
+
}
|
|
64
|
+
const because = (typeof value === "bigint" || typeof value === "number") && typeof returned !== typeof value
|
|
65
|
+
? "DynamoDB stores a number and a bigint alike"
|
|
66
|
+
: Object.is(value, -0)
|
|
67
|
+
? "DynamoDB stores -0 as 0"
|
|
68
|
+
: "DynamoDB doesn't hand it back as it was written";
|
|
69
|
+
return (`${what}, and ${given} would read back as ${readsAs}, whose key text isn't the one ` +
|
|
70
|
+
`written: ${because}. A key composed again from the stored row wouldn't be this one. ` +
|
|
71
|
+
"Nothing was written. Declare the field's kind, such as Schema.Number or Schema.BigInt, " +
|
|
72
|
+
"or store a value that reads back as written. [EDD-9128]");
|
|
73
|
+
};
|
|
74
|
+
/** The refusal in words: `what` is what the value is, and `issue` what a read made of it. */
|
|
75
|
+
export const notReadBack = (what, issue) => `${what} wouldn't read back: a custom declaration's value is stored as the map the marshaller ` +
|
|
76
|
+
`makes of it, and a read fails on that: ${issueOf(issue)}. Nothing was written. A class of your ` +
|
|
77
|
+
"own reads back when it's decoded from what's stored, such as a struct with Schema.decodeTo. " +
|
|
78
|
+
"[EDD-9126]";
|
|
79
|
+
//# sourceMappingURL=RoundTrip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RoundTrip.js","sourceRoot":"","sources":["../../src/internal/RoundTrip.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAA;AAC5F,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC9C,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEnE,yFAAyF;AACzF,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,OAAgB,EAAW,EAAE,CAClD,gBAAgB,CAAC,cAAc,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,KAAK,CAAA;AAK5D;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,MAAkB,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AAK,KAAK,QAAQ;YACzB,CAAC,CAAC,cAAc,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;YAC7D,CAAC,CAAC,iBAAiB,CAAA;IACzB,IAAI,QAAQ,GAAY,KAAK,CAAA;IAC7B,IAAI,CAAC;QACH,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;IAC1B,CAAC;IAAC,MAAM,CAAC;QACP,sBAAsB;IACxB,CAAC;IACD,MAAM,OAAO,GACX,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,CAAC,IAAI,OAAO,QAAQ,KAAK,OAAO,KAAK;QAC1F,CAAC,CAAC,6CAA6C;QAC/C,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;YACpB,CAAC,CAAC,yBAAyB;YAC3B,CAAC,CAAC,iDAAiD,CAAA;IACzD,OAAO,CACL,GAAG,IAAI,SAAS,KAAK,uBAAuB,OAAO,iCAAiC;QACpF,YAAY,OAAO,mEAAmE;QACtF,yFAAyF;QACzF,yDAAyD,CAC1D,CAAA;AACH,CAAC,CAAA;AAED,6FAA6F;AAC7F,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAY,EAAE,KAAc,EAAU,EAAE,CAClE,GAAG,IAAI,wFAAwF;IAC/F,0CAA0C,OAAO,CAAC,KAAK,CAAC,yCAAyC;IACjG,8FAA8F;IAC9F,YAAY,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The input each failed data-plane request was sent with: the object the
|
|
3
|
+
* client (and so the AWS SDK) received, after `Capacity` added
|
|
4
|
+
* `ReturnConsumedCapacity` to it. Recorded by `Capacity`'s instrumented
|
|
5
|
+
* client on failure only, keyed by the error and by that error's cause (a
|
|
6
|
+
* site may wrap the error again, keeping its cause), and read by the
|
|
7
|
+
* failure-time diagnosis (`WriteDiagnosis`), which measures the request as
|
|
8
|
+
* sent rather than as the site built it.
|
|
9
|
+
*/
|
|
10
|
+
/** Record that `error` is the failure of a request sent with `input`. */
|
|
11
|
+
export declare const remember: (error: unknown, input: Readonly<Record<string, unknown>>) => void;
|
|
12
|
+
/** The input the request that failed with `error` was sent with, when recorded. */
|
|
13
|
+
export declare const inputOf: (error: unknown) => Readonly<Record<string, unknown>> | undefined;
|
|
14
|
+
//# sourceMappingURL=SentRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SentRequest.d.ts","sourceRoot":"","sources":["../../src/internal/SentRequest.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,yEAAyE;AACzE,eAAO,MAAM,QAAQ,GAAI,OAAO,OAAO,EAAE,OAAO,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,KAAG,IAKnF,CAAA;AAED,mFAAmF;AACnF,eAAO,MAAM,OAAO,GAAI,OAAO,OAAO,KAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAM5E,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The input each failed data-plane request was sent with: the object the
|
|
3
|
+
* client (and so the AWS SDK) received, after `Capacity` added
|
|
4
|
+
* `ReturnConsumedCapacity` to it. Recorded by `Capacity`'s instrumented
|
|
5
|
+
* client on failure only, keyed by the error and by that error's cause (a
|
|
6
|
+
* site may wrap the error again, keeping its cause), and read by the
|
|
7
|
+
* failure-time diagnosis (`WriteDiagnosis`), which measures the request as
|
|
8
|
+
* sent rather than as the site built it.
|
|
9
|
+
*/
|
|
10
|
+
const sentInputs = new WeakMap();
|
|
11
|
+
const isObject = (value) => value !== null && typeof value === "object";
|
|
12
|
+
/** Record that `error` is the failure of a request sent with `input`. */
|
|
13
|
+
export const remember = (error, input) => {
|
|
14
|
+
if (!isObject(error))
|
|
15
|
+
return;
|
|
16
|
+
sentInputs.set(error, input);
|
|
17
|
+
const cause = error.cause;
|
|
18
|
+
if (isObject(cause))
|
|
19
|
+
sentInputs.set(cause, input);
|
|
20
|
+
};
|
|
21
|
+
/** The input the request that failed with `error` was sent with, when recorded. */
|
|
22
|
+
export const inputOf = (error) => {
|
|
23
|
+
if (!isObject(error))
|
|
24
|
+
return undefined;
|
|
25
|
+
const own = sentInputs.get(error);
|
|
26
|
+
if (own !== undefined)
|
|
27
|
+
return own;
|
|
28
|
+
const cause = error.cause;
|
|
29
|
+
return isObject(cause) ? sentInputs.get(cause) : undefined;
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=SentRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SentRequest.js","sourceRoot":"","sources":["../../src/internal/SentRequest.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,UAAU,GAAG,IAAI,OAAO,EAA6C,CAAA;AAE3E,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAmB,EAAE,CAAC,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,CAAA;AAEjG,yEAAyE;AACzE,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAE,KAAwC,EAAQ,EAAE;IACzF,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAM;IAC5B,UAAU,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;IAC5B,MAAM,KAAK,GAAI,KAAsC,CAAC,KAAK,CAAA;IAC3D,IAAI,QAAQ,CAAC,KAAK,CAAC;QAAE,UAAU,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;AACnD,CAAC,CAAA;AAED,mFAAmF;AACnF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAc,EAAiD,EAAE;IACvF,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,SAAS,CAAA;IACtC,MAAM,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;IACjC,IAAI,GAAG,KAAK,SAAS;QAAE,OAAO,GAAG,CAAA;IACjC,MAAM,KAAK,GAAI,KAAsC,CAAC,KAAK,CAAA;IAC3D,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;AAC5D,CAAC,CAAA"}
|
|
@@ -17,9 +17,11 @@ import { ValidationError } from "@effect-dynamodb/schema/Errors.js";
|
|
|
17
17
|
import { Effect } from "effect";
|
|
18
18
|
import type { DynamoClient, DynamoClientError } from "../DynamoClient.js";
|
|
19
19
|
import type { Entity, EntityDelete, EntityPut, EntityUpdate, PlanDeleteError, PlanUpdateError, PutVerdict, WriteCancellationReason } from "../Entity.js";
|
|
20
|
-
import type { ExpressionResult } from "../Expression.js";
|
|
20
|
+
import type { ConditionInput, ExpressionResult } from "../Expression.js";
|
|
21
21
|
import { type TableConfig } from "../Table.js";
|
|
22
22
|
import type { BoundUpdateOp, BoundWriteOp } from "./BoundCrud.js";
|
|
23
|
+
import { type Expr } from "./Expr.js";
|
|
24
|
+
import { validateAndBuildPutItem } from "./TransactableOps.js";
|
|
23
25
|
import type { TransactPlan } from "./TransactPlan.js";
|
|
24
26
|
import { type KeyAttributes, type TransactItemTarget, transactItemTarget } from "./WriteDiagnosis.js";
|
|
25
27
|
/** @internal */
|
|
@@ -196,22 +198,70 @@ export interface BuiltTransactWriteItems {
|
|
|
196
198
|
*/
|
|
197
199
|
readonly keys: () => KeyAttributes;
|
|
198
200
|
}
|
|
201
|
+
/** A put's item, built and validated (`validateAndBuildPutItem`). */
|
|
202
|
+
type BuiltPut = Effect.Success<ReturnType<typeof validateAndBuildPutItem>>;
|
|
203
|
+
/** One caller op, with everything its items need that takes no read. */
|
|
204
|
+
interface PreparedOp {
|
|
205
|
+
readonly type: "put" | "delete" | "conditionCheck" | "planned";
|
|
206
|
+
readonly putKind?: "put" | "create" | "upsert" | undefined;
|
|
207
|
+
readonly entity: Entity;
|
|
208
|
+
/** Index into the caller's `operations` array — preserved for provenance. */
|
|
209
|
+
readonly opIndex: number;
|
|
210
|
+
readonly input?: Record<string, unknown> | undefined;
|
|
211
|
+
readonly condition?: ExpressionResult | undefined;
|
|
212
|
+
/** The caller's own condition — what a `create` over a tombstone keeps. */
|
|
213
|
+
readonly callerCondition?: Expr | ConditionInput | undefined;
|
|
214
|
+
/** A put's item. */
|
|
215
|
+
readonly built?: BuiltPut | undefined;
|
|
216
|
+
/** A delete's or a check's primary key. */
|
|
217
|
+
readonly primaryKey?: Record<string, unknown> | undefined;
|
|
218
|
+
/** A planned op's plan, from its own read: its key is already encoded and composed. */
|
|
219
|
+
readonly plan?: (() => Effect.Effect<TransactPlan, ValidationError | PlanUpdateError | PlanDeleteError, DynamoClient | TableConfig>) | undefined;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* A transaction's ops checked and composed with nothing read
|
|
223
|
+
* ({@link prepareTransactWriteOps}): every refusal an op's own values decide,
|
|
224
|
+
* its keys and put items included, comes before the first read of any op.
|
|
225
|
+
*/
|
|
226
|
+
export interface PreparedTransactWrite {
|
|
227
|
+
readonly count: number;
|
|
228
|
+
readonly ops: ReadonlyArray<PreparedOp>;
|
|
229
|
+
/** The nested stream appends, built, by caller op index. */
|
|
230
|
+
readonly streamOps: ReadonlyMap<number, BuiltStreamAppend>;
|
|
231
|
+
}
|
|
199
232
|
/**
|
|
200
|
-
*
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
*
|
|
205
|
-
*
|
|
206
|
-
* the standalone op would have — every read, item and guard included.
|
|
233
|
+
* Check and compose every op of a transaction without reading: refuse what an
|
|
234
|
+
* op can't carry, compile its condition, build a put's item, compose a
|
|
235
|
+
* delete's or a check's key and build a nested stream append — so a value
|
|
236
|
+
* with no key text, a put or an event its schema refuses, or an append op
|
|
237
|
+
* with no events, fails the transaction before any op reads, whatever its
|
|
238
|
+
* place in it.
|
|
207
239
|
*
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
240
|
+
* With `plan`, `Transaction.transactWrite` carries the ops the build step
|
|
241
|
+
* cannot: every `update`, and every `delete` of an entity whose delete writes
|
|
242
|
+
* more than its own row (`unique`, `versioned: { retain: true }`,
|
|
243
|
+
* `softDelete` — EDD-9048). Each is planned by the entity's own op
|
|
244
|
+
* (`Entity._planUpdate` / `_planDelete`) in {@link planTransactWriteOps}; here
|
|
245
|
+
* its key is encoded and composed (`Entity._encodeKey`), what it can't carry
|
|
246
|
+
* refused (EDD-9059 – EDD-9061, `rejectUnsupportedOp`), and an update's own
|
|
247
|
+
* operands decided (`Entity._prepareUpdate`: its payload, and the keys the
|
|
248
|
+
* payload composes), which its plan reuses. Without `plan`
|
|
249
|
+
* (`EventStore.append`), such ops are refused.
|
|
250
|
+
*/
|
|
251
|
+
export declare const prepareTransactWriteOps: (operations: ReadonlyArray<AppendWriteOp | TransactWriteUpdateOp>, operation: string, options?: {
|
|
252
|
+
readonly streams?: boolean | undefined;
|
|
253
|
+
readonly plan?: boolean | undefined;
|
|
254
|
+
} | undefined) => Effect.Effect<PreparedTransactWrite, ValidationError | DynamoClientError, TableConfig | DynamoClient>;
|
|
255
|
+
/**
|
|
256
|
+
* The read pass that lets `Transaction.transactWrite` carry its planned ops
|
|
257
|
+
* ({@link prepareTransactWriteOps}): each is the standalone op itself, run
|
|
258
|
+
* with its write recorded instead of sent, so the transaction writes exactly
|
|
259
|
+
* what the standalone op would have — every read, item and guard included.
|
|
260
|
+
* Returns the plans keyed by index into the caller's operations. Run on every
|
|
211
261
|
* attempt, so a transaction cancelled by a lost race is planned again from
|
|
212
262
|
* fresh reads.
|
|
213
263
|
*/
|
|
214
|
-
export declare const planTransactWriteOps: (
|
|
264
|
+
export declare const planTransactWriteOps: (prepared: PreparedTransactWrite) => Effect.Effect<ReadonlyMap<number, TransactPlan>, ValidationError | PlanUpdateError | PlanDeleteError, DynamoClient | TableConfig>;
|
|
215
265
|
/**
|
|
216
266
|
* Compile a list of Entity write ops into marshalled `TransactWriteItems` entries,
|
|
217
267
|
* preserving caller order.
|
|
@@ -238,14 +288,18 @@ export declare const planTransactWriteOps: (operations: ReadonlyArray<TransactWr
|
|
|
238
288
|
* `ValidationError` otherwise. Its items are built by the inner stream
|
|
239
289
|
* (provenance `kind: "stream"`), recorded in `streams`, and left out of
|
|
240
290
|
* `conditioned`.
|
|
291
|
+
*
|
|
292
|
+
* The ops are checked and composed first ({@link prepareTransactWriteOps}), or
|
|
293
|
+
* come so (`prepared`, with `plans`, from `transactWrite`), so nothing is read
|
|
294
|
+
* before every op's own refusals.
|
|
241
295
|
*/
|
|
242
296
|
export declare const buildTransactWriteItems: (operations: ReadonlyArray<AppendWriteOp | TransactWriteUpdateOp>, operation: string, options?: {
|
|
243
297
|
readonly streams?: boolean | undefined;
|
|
244
298
|
/**
|
|
245
|
-
*
|
|
246
|
-
* and
|
|
247
|
-
* (`EventStore.append`) passes none, and such ops are refused.
|
|
299
|
+
* `operations` prepared with `plan` ({@link prepareTransactWriteOps}),
|
|
300
|
+
* and its planned ops' plans ({@link planTransactWriteOps}).
|
|
248
301
|
*/
|
|
302
|
+
readonly prepared?: PreparedTransactWrite | undefined;
|
|
249
303
|
readonly plans?: ReadonlyMap<number, TransactPlan> | undefined;
|
|
250
304
|
} | undefined) => Effect.Effect<BuiltTransactWriteItems, ValidationError | DynamoClientError, TableConfig | DynamoClient>;
|
|
251
305
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactWriteOps.d.ts","sourceRoot":"","sources":["../../src/internal/TransactWriteOps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CA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