@effect-dynamodb/schema 1.39.0 → 1.41.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 +11 -4
- package/dist/Aggregate.d.ts.map +1 -1
- package/dist/Aggregate.js +12 -2
- package/dist/Aggregate.js.map +1 -1
- package/dist/DynamoModel.d.ts +48 -7
- package/dist/DynamoModel.d.ts.map +1 -1
- package/dist/DynamoModel.js +34 -16
- package/dist/DynamoModel.js.map +1 -1
- package/dist/DynamoSchema.d.ts +25 -0
- package/dist/DynamoSchema.d.ts.map +1 -1
- package/dist/DynamoSchema.js.map +1 -1
- package/dist/Entity.d.ts +66 -11
- package/dist/Entity.d.ts.map +1 -1
- package/dist/Entity.js +261 -34
- package/dist/Entity.js.map +1 -1
- package/dist/Errors.d.ts +61 -4
- package/dist/Errors.d.ts.map +1 -1
- package/dist/Errors.js +83 -6
- package/dist/Errors.js.map +1 -1
- package/dist/KeyComposer.d.ts +196 -5
- package/dist/KeyComposer.d.ts.map +1 -1
- package/dist/KeyComposer.js +490 -54
- package/dist/KeyComposer.js.map +1 -1
- package/dist/VectorIndex.d.ts.map +1 -1
- package/dist/VectorIndex.js +5 -4
- package/dist/VectorIndex.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/internal/AggregateEdges.d.ts +3 -3
- package/dist/internal/AggregateSchemas.d.ts +306 -14
- package/dist/internal/AggregateSchemas.d.ts.map +1 -1
- package/dist/internal/AggregateSchemas.js +733 -54
- package/dist/internal/AggregateSchemas.js.map +1 -1
- package/dist/internal/AggregateTypes.d.ts +396 -36
- package/dist/internal/AggregateTypes.d.ts.map +1 -1
- package/dist/internal/CompositeCodec.d.ts +298 -8
- package/dist/internal/CompositeCodec.d.ts.map +1 -1
- package/dist/internal/CompositeCodec.js +940 -34
- package/dist/internal/CompositeCodec.js.map +1 -1
- package/dist/internal/EffectInstances.d.ts +87 -0
- package/dist/internal/EffectInstances.d.ts.map +1 -0
- package/dist/internal/EffectInstances.js +662 -0
- package/dist/internal/EffectInstances.js.map +1 -0
- package/dist/internal/EntityPacked.d.ts.map +1 -1
- package/dist/internal/EntityPacked.js +5 -4
- package/dist/internal/EntityPacked.js.map +1 -1
- package/dist/internal/EntitySchemas.d.ts +239 -30
- package/dist/internal/EntitySchemas.d.ts.map +1 -1
- package/dist/internal/EntitySchemas.js +1600 -197
- package/dist/internal/EntitySchemas.js.map +1 -1
- package/dist/internal/EntityTypes.d.ts +114 -25
- package/dist/internal/EntityTypes.d.ts.map +1 -1
- package/dist/internal/FailingAsBefore.d.ts +25 -0
- package/dist/internal/FailingAsBefore.d.ts.map +1 -0
- package/dist/internal/FailingAsBefore.js +42 -0
- package/dist/internal/FailingAsBefore.js.map +1 -0
- package/dist/internal/InstanceReads.d.ts +40 -0
- package/dist/internal/InstanceReads.d.ts.map +1 -0
- package/dist/internal/InstanceReads.js +183 -0
- package/dist/internal/InstanceReads.js.map +1 -0
- package/dist/internal/KeyReadings.d.ts +30 -0
- package/dist/internal/KeyReadings.d.ts.map +1 -0
- package/dist/internal/KeyReadings.js +99 -0
- package/dist/internal/KeyReadings.js.map +1 -0
- package/dist/internal/KeyText136.d.ts +4 -2
- package/dist/internal/KeyText136.d.ts.map +1 -1
- package/dist/internal/KeyText136.js +46 -13
- package/dist/internal/KeyText136.js.map +1 -1
- package/dist/internal/LostValues.d.ts +50 -0
- package/dist/internal/LostValues.d.ts.map +1 -0
- package/dist/internal/LostValues.js +465 -0
- package/dist/internal/LostValues.js.map +1 -0
- package/dist/internal/NumericKey.d.ts +21 -2
- package/dist/internal/NumericKey.d.ts.map +1 -1
- package/dist/internal/NumericKey.js +19 -1
- package/dist/internal/NumericKey.js.map +1 -1
- package/dist/internal/ObjectKeyText.d.ts +29 -0
- package/dist/internal/ObjectKeyText.d.ts.map +1 -0
- package/dist/internal/ObjectKeyText.js +50 -0
- package/dist/internal/ObjectKeyText.js.map +1 -0
- package/dist/internal/OwnNames.d.ts +205 -0
- package/dist/internal/OwnNames.d.ts.map +1 -0
- package/dist/internal/OwnNames.js +415 -0
- package/dist/internal/OwnNames.js.map +1 -0
- package/dist/internal/PackedCodec.d.ts +7 -1
- package/dist/internal/PackedCodec.d.ts.map +1 -1
- package/dist/internal/PackedCodec.js +83 -21
- package/dist/internal/PackedCodec.js.map +1 -1
- package/dist/internal/RestoredKeyText.d.ts +10 -0
- package/dist/internal/RestoredKeyText.d.ts.map +1 -0
- package/dist/internal/RestoredKeyText.js +50 -0
- package/dist/internal/RestoredKeyText.js.map +1 -0
- package/dist/internal/SchemaAccessors.d.ts +280 -1
- package/dist/internal/SchemaAccessors.d.ts.map +1 -1
- package/dist/internal/SchemaAccessors.js +1717 -1
- package/dist/internal/SchemaAccessors.js.map +1 -1
- package/dist/internal/SchemaIssue.d.ts +21 -0
- package/dist/internal/SchemaIssue.d.ts.map +1 -0
- package/dist/internal/SchemaIssue.js +34 -0
- package/dist/internal/SchemaIssue.js.map +1 -0
- package/dist/internal/SharedKeyAttribute.d.ts +60 -6
- package/dist/internal/SharedKeyAttribute.d.ts.map +1 -1
- package/dist/internal/SharedKeyAttribute.js +129 -13
- package/dist/internal/SharedKeyAttribute.js.map +1 -1
- package/dist/internal/SparseKey.d.ts +46 -0
- package/dist/internal/SparseKey.d.ts.map +1 -0
- package/dist/internal/SparseKey.js +69 -0
- package/dist/internal/SparseKey.js.map +1 -0
- package/dist/internal/StoredForm.d.ts +139 -0
- package/dist/internal/StoredForm.d.ts.map +1 -0
- package/dist/internal/StoredForm.js +503 -0
- package/dist/internal/StoredForm.js.map +1 -0
- package/dist/internal/ZOrderCurve.d.ts.map +1 -1
- package/dist/internal/ZOrderCurve.js +2 -1
- package/dist/internal/ZOrderCurve.js.map +1 -1
- package/dist/internal/ZoneKeyText.d.ts +55 -0
- package/dist/internal/ZoneKeyText.d.ts.map +1 -0
- package/dist/internal/ZoneKeyText.js +264 -0
- package/dist/internal/ZoneKeyText.js.map +1 -0
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackedCodec.js","sourceRoot":"","sources":["../../src/internal/PackedCodec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAGlD,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAEvE,8EAA8E;AAC9E,gBAAgB;AAChB,8EAA8E;AAE9E,oEAAoE;AACpE,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAA;AAEtC,+BAA+B;AAC/B,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAA;AAC/B,wFAAwF;AACxF,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAA;AAEjC,8BAA8B;AAC9B,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAA;AAC/B,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAA;AAC/B,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAA;AACjC,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAA;AAE/B,MAAM,UAAU,GAA+C;IAC7D,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,YAAY;IACpB,IAAI,EAAE,UAAU;CACjB,CAAA;AAED,MAAM,WAAW,GAAyD;IACxE,MAAM;IACN,MAAM;IACN,QAAQ;IACR,MAAM;CACP,CAAA;AAED,yEAAyE;AACzE,MAAM,CAAC,MAAM,UAAU,GAAG,CACxB,KAAgC,EAChC,SAAiB,WAAW,EACpB,EAAE,CACV,CAAC,iBAAiB,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,C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CAAC,CAAC,MAAM,EAAE,IAAI,GAAG,EAAE,CAAC,CAAA;AAEpE,gFAAgF;AAChF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAkC,EAAW,EAAE,CAC3E,WAAW,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,SAAS,CAAA;AAExC;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAAkC,EAAW,EAAE,CAChF,WAAW,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,YAAY,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The row's key-form record `keyForm` with each composite whose stored value (`stored`, the row's
|
|
3
|
+
* values as read) is a map composing `[object Object]`, and which the key form takes to a value of
|
|
4
|
+
* other text, under the map's text: the key text 1.39.0's and 1.40.0's `restore` composed for it.
|
|
5
|
+
* Only the attributes `reads` names are looked at, when it's given: those a key is composed from.
|
|
6
|
+
* `undefined` when no composite reads so, which is any row whose key form keeps what's stored (text,
|
|
7
|
+
* a number, a date, a struct, a value of no schema), so such a row has no other reading.
|
|
8
|
+
*/
|
|
9
|
+
export declare const restoredObjectReading: (keyForm: Record<string, unknown>, stored: Record<string, unknown>, reads?: (attr: string) => boolean) => Record<string, unknown> | undefined;
|
|
10
|
+
//# sourceMappingURL=RestoredKeyText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RestoredKeyText.d.ts","sourceRoot":"","sources":["../../src/internal/RestoredKeyText.ts"],"names":[],"mappings":"AAiBA;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,GAChC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,KAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAmB5B,CAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @internal The key text 1.39.0's and 1.40.0's `restore` composed for a composite the key form makes
|
|
3
|
+
* an instance of, for `rekey` alone (#242).
|
|
4
|
+
*
|
|
5
|
+
* DynamoDB hands one of Effect's look-alikes (a `Duration`, a zone, an address, a date in an
|
|
6
|
+
* `Option`, ...) back as a map. Those releases composed `put`'s key from the value given (its text,
|
|
7
|
+
* `1500 millis`), but `restore` composed the key again from the tombstone read back, which held the
|
|
8
|
+
* map, so the item went back under the map's text, `[object object]`, with every index key and unique
|
|
9
|
+
* sentinel `restore` composed. The key form now takes the map back to the instance, so nothing in
|
|
10
|
+
* normal operation looks there. `rekey` has the row in hand: {@link restoredObjectReading} is the
|
|
11
|
+
* row's key-form record with each such composite under its map's text, a reading whose key text is
|
|
12
|
+
* the one `restore` composed, which `rekey` recognises as an earlier position of the row and moves
|
|
13
|
+
* it from.
|
|
14
|
+
*/
|
|
15
|
+
import { serializeValue } from "../KeyComposer.js";
|
|
16
|
+
import { defaultObjectText } from "./CompositeCodec.js";
|
|
17
|
+
/**
|
|
18
|
+
* The row's key-form record `keyForm` with each composite whose stored value (`stored`, the row's
|
|
19
|
+
* values as read) is a map composing `[object Object]`, and which the key form takes to a value of
|
|
20
|
+
* other text, under the map's text: the key text 1.39.0's and 1.40.0's `restore` composed for it.
|
|
21
|
+
* Only the attributes `reads` names are looked at, when it's given: those a key is composed from.
|
|
22
|
+
* `undefined` when no composite reads so, which is any row whose key form keeps what's stored (text,
|
|
23
|
+
* a number, a date, a struct, a value of no schema), so such a row has no other reading.
|
|
24
|
+
*/
|
|
25
|
+
export const restoredObjectReading = (keyForm, stored, reads) => {
|
|
26
|
+
let reading;
|
|
27
|
+
for (const attr of Object.keys(keyForm)) {
|
|
28
|
+
if (reads !== undefined && !reads(attr))
|
|
29
|
+
continue;
|
|
30
|
+
if (!Object.hasOwn(stored, attr))
|
|
31
|
+
continue;
|
|
32
|
+
const held = stored[attr];
|
|
33
|
+
if (typeof held !== "object" || held === null)
|
|
34
|
+
continue;
|
|
35
|
+
let text;
|
|
36
|
+
try {
|
|
37
|
+
text = defaultObjectText(held, String(held));
|
|
38
|
+
}
|
|
39
|
+
catch {
|
|
40
|
+
// A map holding a `toString` attribute has no text: no release composed a key from it.
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
if (text === undefined || serializeValue(keyForm[attr]) === text)
|
|
44
|
+
continue;
|
|
45
|
+
reading ??= { ...keyForm };
|
|
46
|
+
reading[attr] = text;
|
|
47
|
+
}
|
|
48
|
+
return reading;
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=RestoredKeyText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RestoredKeyText.js","sourceRoot":"","sources":["../../src/internal/RestoredKeyText.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,OAAgC,EAChC,MAA+B,EAC/B,KAAiC,EACI,EAAE;IACvC,IAAI,OAA4C,CAAA;IAChD,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QACxC,IAAI,KAAK,KAAK,SAAS,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;YAAE,SAAQ;QACjD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC;YAAE,SAAQ;QAC1C,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;QACzB,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI;YAAE,SAAQ;QACvD,IAAI,IAAwB,CAAA;QAC5B,IAAI,CAAC;YACH,IAAI,GAAG,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAA;QAC9C,CAAC;QAAC,MAAM,CAAC;YACP,uFAAuF;YACvF,SAAQ;QACV,CAAC;QACD,IAAI,IAAI,KAAK,SAAS,IAAI,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,IAAI;YAAE,SAAQ;QAC1E,OAAO,KAAK,EAAE,GAAG,OAAO,EAAE,CAAA;QAC1B,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IACtB,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* Not part of the public API.
|
|
14
14
|
*/
|
|
15
|
-
import {
|
|
15
|
+
import { Schema, SchemaAST } from "effect";
|
|
16
16
|
/**
|
|
17
17
|
* Read `.fields` from a `Schema.Struct` or `Schema.Class`.
|
|
18
18
|
*
|
|
@@ -51,6 +51,11 @@ export declare const isFieldOptional: (fieldSchema: Schema.Top) => boolean;
|
|
|
51
51
|
* the `Arrays` member whose element is `.value`.
|
|
52
52
|
*/
|
|
53
53
|
export declare const extractArrayElement: (fieldSchema: Schema.Top) => Schema.Top | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* The value schema of a keyed collection a custom `decompose` takes apart: `Schema.Record(K, T)`,
|
|
56
|
+
* under `optional` / `optionalKey` too. Returns `T`.
|
|
57
|
+
*/
|
|
58
|
+
export declare const extractKeyedValue: (fieldSchema: Schema.Top) => Schema.Top | undefined;
|
|
54
59
|
/**
|
|
55
60
|
* A schema is any object or function (class constructor) carrying `.ast`.
|
|
56
61
|
*
|
|
@@ -126,4 +131,278 @@ export declare const hasEncodingTransformation: (schema: Schema.Top) => boolean;
|
|
|
126
131
|
* `SchemaAST.test.ts` canary pins the tags this reads.
|
|
127
132
|
*/
|
|
128
133
|
export declare const numericTypeWithStringEncoding: (schema: Schema.Top) => boolean;
|
|
134
|
+
/**
|
|
135
|
+
* What an absent attribute reads back as, on a field whose stored side includes
|
|
136
|
+
* a value DynamoDB has no form for.
|
|
137
|
+
*/
|
|
138
|
+
export interface AbsentReading {
|
|
139
|
+
/** The value on the field's stored side: `undefined`, or an empty set. */
|
|
140
|
+
readonly stored: unknown;
|
|
141
|
+
/** That value decoded through the field: what a reader gets. */
|
|
142
|
+
readonly value: unknown;
|
|
143
|
+
}
|
|
144
|
+
/** Whether an AST is a `Schema.ReadonlySet`, by the id Effect gives its representation. */
|
|
145
|
+
export declare const isSetDeclaration: (ast: SchemaAST.AST) => boolean;
|
|
146
|
+
/**
|
|
147
|
+
* What stores a schema. An entity's or an aggregate's fields are substituted before they're
|
|
148
|
+
* marshalled, so a date and a redacted value read back there; a stream, a snapshot and an outbox
|
|
149
|
+
* encode through the schema alone, and a read lifts a date. Every owner lifts a bigint.
|
|
150
|
+
*/
|
|
151
|
+
export type StoredBy = "entity" | "aggregate" | "schema";
|
|
152
|
+
/** Whether a stored side holds a plain bigint anywhere. */
|
|
153
|
+
export declare const holdsPlainBigint: (ast: SchemaAST.AST, seen?: ReadonlySet<SchemaAST.AST>) => boolean;
|
|
154
|
+
/**
|
|
155
|
+
* Whether a step onto `to` is a decoding default: the stored side may be absent, it's the same type
|
|
156
|
+
* on both sides, where `Schema.OptionFromOptionalKey` is a different one, and nothing else changes
|
|
157
|
+
* it on the way, as a transformation beneath the default would.
|
|
158
|
+
*/
|
|
159
|
+
export declare const isDecodingDefault: (ast: SchemaAST.AST, to: SchemaAST.AST) => boolean;
|
|
160
|
+
/** The list a step's stored side is, if it's one: `Schema.UndefinedOr(Schema.Array(X))` is that array. */
|
|
161
|
+
export declare const storedList: (to: SchemaAST.AST) => SchemaAST.Arrays | undefined;
|
|
162
|
+
/**
|
|
163
|
+
* `[EDD-9125]`: a model whose stored side holds something its owner can't read back, at any depth.
|
|
164
|
+
* Either the write fails in a way nothing can recover, or it succeeds and the row no longer decodes,
|
|
165
|
+
* so a definition holding one can't work and fails at load. The stored side is what's read: a map
|
|
166
|
+
* decoded from a record, or under `Schema.toCodecJson`, is stored as that and reads back, and the
|
|
167
|
+
* collection a `many` edge is declared as is rows, of which only the rows are stored.
|
|
168
|
+
*
|
|
169
|
+
* Only Effect's own declarations can be judged here. A `Schema.instanceOf` and a duck-typed
|
|
170
|
+
* `Schema.declare` have the same AST, and one reads back where the other doesn't, so those are
|
|
171
|
+
* judged by value at write ({@link holdsCustomDeclaration}, `EDD-9126`).
|
|
172
|
+
*/
|
|
173
|
+
export declare const refuseUnreadable: (owner: string, by: StoredBy, model: Schema.Top, options?: {
|
|
174
|
+
readonly whole?: string | undefined;
|
|
175
|
+
readonly manyEdges?: ReadonlySet<string> | undefined;
|
|
176
|
+
}) => void;
|
|
177
|
+
/**
|
|
178
|
+
* Whether a stored side holds a declaration Effect didn't make, such as a `Schema.instanceOf` or a
|
|
179
|
+
* duck-typed `Schema.declare`. Only a value can say whether one reads back (`internal/RoundTrip.ts`
|
|
180
|
+
* in `effect-dynamodb`), and this says which schemas have such values. A `Schema.Class`, and a struct
|
|
181
|
+
* decoded to a class, have an encoding: what's stored is the struct, and only what's in it counts.
|
|
182
|
+
* Effect's own address and DNS record declarations carry no `representation` id, and read back as
|
|
183
|
+
* the instances they were (`internal/InstanceReads.ts`), so they're not custom: recognised by their
|
|
184
|
+
* parser, never by a name, so a `Schema.declare` of your own under the same identifier still is.
|
|
185
|
+
*/
|
|
186
|
+
export declare const holdsCustomDeclaration: (ast: SchemaAST.AST, seen?: Set<SchemaAST.AST>) => boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Whether a stored side holds a position no schema types (`Schema.Unknown`, `Schema.Any`), at any
|
|
189
|
+
* depth: what's written there is the caller's value as given, so only a value can say whether
|
|
190
|
+
* DynamoDB stores it (`internal/LostValues.ts`, `EDD-9161`). A declaration's type parameters count,
|
|
191
|
+
* as `Schema.Option(Schema.Unknown)` holds its value as given.
|
|
192
|
+
*/
|
|
193
|
+
export declare const holdsUntyped: (ast: SchemaAST.AST, seen?: Set<SchemaAST.AST>) => boolean;
|
|
194
|
+
/**
|
|
195
|
+
* Whether a value of this type can be `undefined` and be stored as one: an `undefined` that
|
|
196
|
+
* encodes to something else has a stored form.
|
|
197
|
+
*/
|
|
198
|
+
export declare const holdsUndefined: (ast: SchemaAST.AST) => boolean;
|
|
199
|
+
/**
|
|
200
|
+
* The value a field's absent attribute stands for, from its schema alone: DynamoDB can't
|
|
201
|
+
* store `undefined` or an empty set, so on a field whose stored side includes one the value
|
|
202
|
+
* is an absent attribute. `undefined` when the rule doesn't apply: the field's key is
|
|
203
|
+
* optional, so absent reads as absent (or as its decoding default), or its stored side holds
|
|
204
|
+
* no such value. Nothing the schema runs is run, so a `.check()` that refuses the value isn't
|
|
205
|
+
* seen here: {@link absentReading} asks it, at a write.
|
|
206
|
+
*/
|
|
207
|
+
export declare const absentStored: (field: Schema.Top) => {
|
|
208
|
+
readonly stored: unknown;
|
|
209
|
+
} | undefined;
|
|
210
|
+
/**
|
|
211
|
+
* The one rule for values with no stored form. DynamoDB can't store `undefined`
|
|
212
|
+
* or an empty set, so on a field whose stored side includes one the value is an
|
|
213
|
+
* absent attribute, and an absent attribute reads back as that value. Returns
|
|
214
|
+
* what it reads back as, or `undefined` when the rule doesn't apply: the field's
|
|
215
|
+
* key is optional, so absent reads as absent (or as its decoding default); or
|
|
216
|
+
* its schema refuses the value, as a `.check()` for a non-empty set does, so no
|
|
217
|
+
* row may be without it.
|
|
218
|
+
*
|
|
219
|
+
* The check decodes for real, running the field's checks and transformations on the value,
|
|
220
|
+
* so it's asked by the write that leaves the attribute out and never while an entity is
|
|
221
|
+
* defined ({@link absentStored} answers there). A transformation that can't run
|
|
222
|
+
* synchronously is taken at its word, reading back as the stored value.
|
|
223
|
+
*/
|
|
224
|
+
export declare const absentReading: (field: Schema.Top) => AbsentReading | undefined;
|
|
225
|
+
/**
|
|
226
|
+
* How it's decided whether a stored row can be without a field and still be read.
|
|
227
|
+
*
|
|
228
|
+
* - `"allow"` and `"refuse"`: the schema says, and nothing it runs takes part. A required
|
|
229
|
+
* field can't be lacked. A field whose read side is an optional key can (`Schema.optional`,
|
|
230
|
+
* `Schema.optionalKey`, however its stored side is declared: a missing key reaches the read
|
|
231
|
+
* side as missing through every step that only maps a value), and so can a field whose
|
|
232
|
+
* absent attribute is one of its values (a `Schema.UndefinedOr`, a set) when reading it
|
|
233
|
+
* runs no check or transformation.
|
|
234
|
+
* - `"decode"`: the model's own code takes part in reading the absence, so only reading it
|
|
235
|
+
* says. A decoding default, a step of one's own handed the absent key, a middleware or a
|
|
236
|
+
* suspension ({@link mayReadMissingKey}), any of which may fill the key, fail, or be
|
|
237
|
+
* refused by the field's check; or a check or transformation on the value an absent
|
|
238
|
+
* attribute stands for. The write that leaves the attribute out reads the absence once,
|
|
239
|
+
* as the next read would ({@link rowOmits}, {@link absentReading}).
|
|
240
|
+
*
|
|
241
|
+
* Answered from the schema alone, so defining an entity runs none of a model's code.
|
|
242
|
+
*/
|
|
243
|
+
export type LackDecision = "allow" | "refuse" | "decode";
|
|
244
|
+
export declare const lackDecision: (field: Schema.Top) => LackDecision;
|
|
245
|
+
/**
|
|
246
|
+
* Whether the field's key is one a stored row may leave out: optional fields
|
|
247
|
+
* (`Schema.optional`, `Schema.optionalKey`, the `OptionFromOptional` family) and
|
|
248
|
+
* a decoding default, whose value a read fills in.
|
|
249
|
+
*
|
|
250
|
+
* The schema answers where nothing it runs takes part: the missing key reaches the read
|
|
251
|
+
* side as missing, so the read side's key says. Where the model's code may take part in
|
|
252
|
+
* reading the missing key ({@link mayReadMissingKey}), the key is read for real, so this
|
|
253
|
+
* belongs to a write and is never asked while an entity is defined.
|
|
254
|
+
*/
|
|
255
|
+
export declare const rowOmits: (field: Schema.Top) => boolean;
|
|
256
|
+
/**
|
|
257
|
+
* Whether what's stored for this can leave out a value that reads back all the same: a struct's
|
|
258
|
+
* field ({@link absentStored}), or the set an `Option` holds as its value. An `undefined` there
|
|
259
|
+
* reads as what it is without anything being done about it.
|
|
260
|
+
*/
|
|
261
|
+
export declare const holdsAbsentValue: (ast: SchemaAST.AST, seen?: ReadonlySet<SchemaAST.AST>) => boolean;
|
|
262
|
+
/**
|
|
263
|
+
* Whether a stored row can be without this field and still be read: its key may
|
|
264
|
+
* be left out ({@link rowOmits}), or an absent attribute is one of its values
|
|
265
|
+
* ({@link absentReading}). A required field cannot, nor can a `NullOr`, whose key
|
|
266
|
+
* is required even though its value may be empty.
|
|
267
|
+
*
|
|
268
|
+
* Reads the absence where the model's code takes part in it ({@link lackDecision}), so
|
|
269
|
+
* this belongs to a write and is never asked while an entity is defined.
|
|
270
|
+
*/
|
|
271
|
+
export declare const rowCanLack: (field: Schema.Top) => boolean;
|
|
272
|
+
/**
|
|
273
|
+
* A struct that renames its keys as it's stored (`Schema.encodeKeys`): each property's stored
|
|
274
|
+
* name, by its own, and the property each stored name holds.
|
|
275
|
+
*
|
|
276
|
+
* @internal
|
|
277
|
+
*/
|
|
278
|
+
export interface KeyRenames {
|
|
279
|
+
readonly storedName: ReadonlyMap<string, string>;
|
|
280
|
+
readonly holding: ReadonlyMap<string, SchemaAST.PropertySignature>;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* The key renames of a struct `Schema.encodeKeys` built, seen by its shape alone: the struct's one
|
|
284
|
+
* encoding step is a transformation of two plain functions, to a bare struct of as many
|
|
285
|
+
* properties, whose `i`-th property holds `SchemaAST.toEncoded` of the struct's `i`-th (the very
|
|
286
|
+
* node `encodeKeys` stores, optionality included), under the name it's stored by. `encodeKeys`
|
|
287
|
+
* builds the stored struct property by property in the struct's own order, so the `i`-th stored
|
|
288
|
+
* name is the `i`-th property's; a name JavaScript orders first as an array index (`"0"`) could
|
|
289
|
+
* break that order, so a struct naming one isn't taken.
|
|
290
|
+
*
|
|
291
|
+
* Nothing the model wrote is run: the step's functions are never called. A struct of any other
|
|
292
|
+
* shape (a transformation that defaults, drops or adds a key, stores a key optional the struct
|
|
293
|
+
* requires, or anything else) is `undefined`, a node whose stored names aren't known, so a path
|
|
294
|
+
* below it is sent as written and a removal below it isn't judged (#238). A transformation of
|
|
295
|
+
* exactly that shape is read as the rename it has the shape of: a stored property is then the
|
|
296
|
+
* encoded form of its own, so a removal of a key the stored struct requires leaves a row no read
|
|
297
|
+
* decodes, whatever the functions do.
|
|
298
|
+
*
|
|
299
|
+
* @internal
|
|
300
|
+
*/
|
|
301
|
+
export declare const keyRenamesOf: (ast: SchemaAST.Objects) => KeyRenames | undefined;
|
|
302
|
+
/**
|
|
303
|
+
* Whether the nodes a value at one place may be read by (a union's members) name every path
|
|
304
|
+
* segment alike (#238): each name any of them takes is stored under one name by every one that
|
|
305
|
+
* takes it, and each stored name is reached by the same names in every one that stores it. Where
|
|
306
|
+
* none renames its keys, they do. Where they don't (members storing one property under different
|
|
307
|
+
* names, or one name holding a different property in each), no one name is right for every row,
|
|
308
|
+
* so a path through them is named as written, as 1.40.0 named it.
|
|
309
|
+
*
|
|
310
|
+
* @internal
|
|
311
|
+
*/
|
|
312
|
+
export declare const unionNamedExactly: (nodes: ReadonlyArray<SchemaAST.AST>) => boolean;
|
|
313
|
+
/** {@link unionNamedExactly} for a union's members as schemas: each read by its own members, in turn. */
|
|
314
|
+
export declare const membersNamedExactly: (members: ReadonlyArray<{
|
|
315
|
+
readonly ast: SchemaAST.AST;
|
|
316
|
+
}>) => boolean;
|
|
317
|
+
/**
|
|
318
|
+
* The path below a field as it's stored (#238): each segment that is a property's own name, in a
|
|
319
|
+
* struct that renames its keys as it's stored (`Schema.encodeKeys`), becomes the name it's stored
|
|
320
|
+
* under, so a path names what `put` stored and a read takes. This is the one place that says how
|
|
321
|
+
* a path below a field is named, for an update's path operations, a condition, a filter and a
|
|
322
|
+
* projection alike.
|
|
323
|
+
*
|
|
324
|
+
* A segment that is a name a property is stored under is kept as it is, even where it's also
|
|
325
|
+
* another property's own name: `encodeKeys({ a: "b", b: "a" })` stores property `b` under `a`, and
|
|
326
|
+
* the segment `a` names what's stored under `a`, property `b`, as 1.40.0 named it. Every name that
|
|
327
|
+
* reached a stored attribute before is unchanged.
|
|
328
|
+
*
|
|
329
|
+
* The walk follows unions (every member that holds the segment must name it alike), suspensions,
|
|
330
|
+
* `Schema.Class` structs, records and lists. From a node it doesn't know the stored names of (any
|
|
331
|
+
* other transformation, a declaration, `Schema.Unknown`), and from a union whose members don't
|
|
332
|
+
* name every segment alike ({@link unionNamedExactly}), the rest of the path is kept as it is, as
|
|
333
|
+
* it was before.
|
|
334
|
+
*/
|
|
335
|
+
export declare const storedSegments: (field: Schema.Top, segments: ReadonlyArray<string | number>) => ReadonlyArray<string | number>;
|
|
336
|
+
/**
|
|
337
|
+
* The segments below a path's first, as a model of these fields stores them (#238): through the
|
|
338
|
+
* schema of the field the first segment names ({@link storedSegments}), as written below a name
|
|
339
|
+
* that is no field. The one way a model's path below its field is named: an entity's (beside its
|
|
340
|
+
* sparse maps' entries) and an aggregate's root rows' alike.
|
|
341
|
+
*/
|
|
342
|
+
export declare const storedBelowFields: (fields: Readonly<Record<string, Schema.Top>> | undefined) => (segments: ReadonlyArray<string | number>) => ReadonlyArray<string | number>;
|
|
343
|
+
/**
|
|
344
|
+
* The annotation on a field a read takes an absent attribute of as the value that absence stands
|
|
345
|
+
* for (a `Schema.UndefinedOr`'s `undefined`, `EntitySchemas`' `readingAbsent`): the field as it reads
|
|
346
|
+
* a stored value. The default the read adds runs only where the attribute is absent, so a value
|
|
347
|
+
* written there is read as this field alone.
|
|
348
|
+
*/
|
|
349
|
+
export declare const ReadsAbsentAs: unique symbol;
|
|
350
|
+
/**
|
|
351
|
+
* Whether removing `segments`, a path inside this field, leaves a value the field's schema
|
|
352
|
+
* refuses, for every value it reads that holds the path, while none that holds what's above it
|
|
353
|
+
* is without it. Refused only when the walk from the field passes through nodes it models exactly
|
|
354
|
+
* as a read decodes them ({@link Modelled}); `false` for anything else, and the removal is sent
|
|
355
|
+
* as 1.39.0 sent it.
|
|
356
|
+
*
|
|
357
|
+
* The walk takes every way through the schema to the path, through unions at every level and
|
|
358
|
+
* every index signature a key matches, so a value one member holds is judged against every
|
|
359
|
+
* member: a struct member without a property on the way doesn't read what a value holds under it,
|
|
360
|
+
* so it may read what's left, and the removal is sent. A property is required when a row can't be
|
|
361
|
+
* without it ({@link rowCanLack}): a required key nothing fills, whose absent attribute isn't one
|
|
362
|
+
* of its values. A list position is required when no list on any way reads what's left
|
|
363
|
+
* ({@link positionRemoval}): removing any position of a `[string, string]`; `f[0]` of a
|
|
364
|
+
* `[string, number?]`, which leaves the number where the string was; and `p[0]` where a tag
|
|
365
|
+
* beside the list names the member holding it, `{ kind: "a", p: [string, string] }` against
|
|
366
|
+
* `{ kind: "b", p: [string] }`. `f[0]` of a `[string, string?]`, either position of
|
|
367
|
+
* `Union([[string, string], [string]])` and an array's element aren't.
|
|
368
|
+
*
|
|
369
|
+
* The removal is judged against the update as a whole. A list position's judgement reads the
|
|
370
|
+
* row's list and what's beside the path, which the update's other clauses (`update.beside`) may
|
|
371
|
+
* write or remove in the same request: `f.kind = "b"` beside the removal of `f.p[0]` above makes
|
|
372
|
+
* what's left the other member's, and `f.p[2] = "third"` (DynamoDB appends past the end) leaves a
|
|
373
|
+
* list as long as before. Where another clause changes what it reads ({@link touches}), the
|
|
374
|
+
* position is judged as 1.40.0 judged it ({@link lengthsAlone}), and below a sparse map's entry,
|
|
375
|
+
* which 1.40.0 didn't judge, not at all. A property's judgement reads nothing of the row, so
|
|
376
|
+
* another clause leaves it as it is.
|
|
377
|
+
*
|
|
378
|
+
* `false` means the schema can't say every such row breaks: a record's keys, a list's elements,
|
|
379
|
+
* a path no value holds (DynamoDB refuses it, as on 1.39.0), and anything the walk doesn't model.
|
|
380
|
+
*/
|
|
381
|
+
export declare const pathIsRequired: (field: Schema.Top, segments: ReadonlyArray<string | number>, update?: {
|
|
382
|
+
/**
|
|
383
|
+
* What the update's other clauses write or remove inside the same field, each a path inside
|
|
384
|
+
* it (`[]` for all of it).
|
|
385
|
+
*/
|
|
386
|
+
readonly beside?: ReadonlyArray<ReadonlyArray<string | number>> | undefined;
|
|
387
|
+
/** Whether 1.40.0 judged this path at all: not below a sparse map's entry. */
|
|
388
|
+
readonly judgedBefore?: boolean | undefined;
|
|
389
|
+
}) => boolean;
|
|
390
|
+
/**
|
|
391
|
+
* What an update writes an operand of at a path below a field: a value (`pathSet`,
|
|
392
|
+
* `pathIfNotExists`), or elements added to a list (`pathAppend`, `pathPrepend`, `.append()`).
|
|
393
|
+
*/
|
|
394
|
+
export type OperandKind = "value" | "elements";
|
|
395
|
+
/**
|
|
396
|
+
* What reads an operand an update writes at `segments` below a field whose READ schema is
|
|
397
|
+
* `field`: for a value, the node at that position, one for each way the schema has to it; for
|
|
398
|
+
* elements, each array's element there. `undefined` when the walk can't say exactly, or no value
|
|
399
|
+
* holds the position (DynamoDB refuses such a write): the operand is then judged as 1.39.0
|
|
400
|
+
* judged it.
|
|
401
|
+
*
|
|
402
|
+
* A row reads only where a reader reads what's written, so an operand none of them reads is one
|
|
403
|
+
* no row holding it reads ({@link modelled} lists what the walk passes through; the rest is
|
|
404
|
+
* `undefined`). An operand one of them reads may still be wrong for the member a row holds, as
|
|
405
|
+
* it always was.
|
|
406
|
+
*/
|
|
407
|
+
export declare const readersAt: (field: Schema.Top, segments: ReadonlyArray<string | number>, kind: OperandKind) => ReadonlyArray<SchemaAST.AST> | undefined;
|
|
129
408
|
//# sourceMappingURL=SchemaAccessors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaAccessors.d.ts","sourceRoot":"","sources":["../../src/internal/SchemaAccessors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"SchemaAccessors.d.ts","sourceRoot":"","sources":["../../src/internal/SchemaAccessors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAQ,MAAM,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAGhD;;;;;;;GAO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