@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.
Files changed (122) hide show
  1. package/dist/Aggregate.d.ts +11 -4
  2. package/dist/Aggregate.d.ts.map +1 -1
  3. package/dist/Aggregate.js +12 -2
  4. package/dist/Aggregate.js.map +1 -1
  5. package/dist/DynamoModel.d.ts +48 -7
  6. package/dist/DynamoModel.d.ts.map +1 -1
  7. package/dist/DynamoModel.js +34 -16
  8. package/dist/DynamoModel.js.map +1 -1
  9. package/dist/DynamoSchema.d.ts +25 -0
  10. package/dist/DynamoSchema.d.ts.map +1 -1
  11. package/dist/DynamoSchema.js.map +1 -1
  12. package/dist/Entity.d.ts +66 -11
  13. package/dist/Entity.d.ts.map +1 -1
  14. package/dist/Entity.js +261 -34
  15. package/dist/Entity.js.map +1 -1
  16. package/dist/Errors.d.ts +61 -4
  17. package/dist/Errors.d.ts.map +1 -1
  18. package/dist/Errors.js +83 -6
  19. package/dist/Errors.js.map +1 -1
  20. package/dist/KeyComposer.d.ts +196 -5
  21. package/dist/KeyComposer.d.ts.map +1 -1
  22. package/dist/KeyComposer.js +490 -54
  23. package/dist/KeyComposer.js.map +1 -1
  24. package/dist/VectorIndex.d.ts.map +1 -1
  25. package/dist/VectorIndex.js +5 -4
  26. package/dist/VectorIndex.js.map +1 -1
  27. package/dist/index.d.ts +1 -1
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +1 -1
  30. package/dist/index.js.map +1 -1
  31. package/dist/internal/AggregateEdges.d.ts +3 -3
  32. package/dist/internal/AggregateSchemas.d.ts +306 -14
  33. package/dist/internal/AggregateSchemas.d.ts.map +1 -1
  34. package/dist/internal/AggregateSchemas.js +733 -54
  35. package/dist/internal/AggregateSchemas.js.map +1 -1
  36. package/dist/internal/AggregateTypes.d.ts +396 -36
  37. package/dist/internal/AggregateTypes.d.ts.map +1 -1
  38. package/dist/internal/CompositeCodec.d.ts +298 -8
  39. package/dist/internal/CompositeCodec.d.ts.map +1 -1
  40. package/dist/internal/CompositeCodec.js +940 -34
  41. package/dist/internal/CompositeCodec.js.map +1 -1
  42. package/dist/internal/EffectInstances.d.ts +87 -0
  43. package/dist/internal/EffectInstances.d.ts.map +1 -0
  44. package/dist/internal/EffectInstances.js +662 -0
  45. package/dist/internal/EffectInstances.js.map +1 -0
  46. package/dist/internal/EntityPacked.d.ts.map +1 -1
  47. package/dist/internal/EntityPacked.js +5 -4
  48. package/dist/internal/EntityPacked.js.map +1 -1
  49. package/dist/internal/EntitySchemas.d.ts +239 -30
  50. package/dist/internal/EntitySchemas.d.ts.map +1 -1
  51. package/dist/internal/EntitySchemas.js +1600 -197
  52. package/dist/internal/EntitySchemas.js.map +1 -1
  53. package/dist/internal/EntityTypes.d.ts +114 -25
  54. package/dist/internal/EntityTypes.d.ts.map +1 -1
  55. package/dist/internal/FailingAsBefore.d.ts +25 -0
  56. package/dist/internal/FailingAsBefore.d.ts.map +1 -0
  57. package/dist/internal/FailingAsBefore.js +42 -0
  58. package/dist/internal/FailingAsBefore.js.map +1 -0
  59. package/dist/internal/InstanceReads.d.ts +40 -0
  60. package/dist/internal/InstanceReads.d.ts.map +1 -0
  61. package/dist/internal/InstanceReads.js +183 -0
  62. package/dist/internal/InstanceReads.js.map +1 -0
  63. package/dist/internal/KeyReadings.d.ts +30 -0
  64. package/dist/internal/KeyReadings.d.ts.map +1 -0
  65. package/dist/internal/KeyReadings.js +99 -0
  66. package/dist/internal/KeyReadings.js.map +1 -0
  67. package/dist/internal/KeyText136.d.ts +4 -2
  68. package/dist/internal/KeyText136.d.ts.map +1 -1
  69. package/dist/internal/KeyText136.js +46 -13
  70. package/dist/internal/KeyText136.js.map +1 -1
  71. package/dist/internal/LostValues.d.ts +50 -0
  72. package/dist/internal/LostValues.d.ts.map +1 -0
  73. package/dist/internal/LostValues.js +465 -0
  74. package/dist/internal/LostValues.js.map +1 -0
  75. package/dist/internal/NumericKey.d.ts +21 -2
  76. package/dist/internal/NumericKey.d.ts.map +1 -1
  77. package/dist/internal/NumericKey.js +19 -1
  78. package/dist/internal/NumericKey.js.map +1 -1
  79. package/dist/internal/ObjectKeyText.d.ts +29 -0
  80. package/dist/internal/ObjectKeyText.d.ts.map +1 -0
  81. package/dist/internal/ObjectKeyText.js +50 -0
  82. package/dist/internal/ObjectKeyText.js.map +1 -0
  83. package/dist/internal/OwnNames.d.ts +205 -0
  84. package/dist/internal/OwnNames.d.ts.map +1 -0
  85. package/dist/internal/OwnNames.js +415 -0
  86. package/dist/internal/OwnNames.js.map +1 -0
  87. package/dist/internal/PackedCodec.d.ts +7 -1
  88. package/dist/internal/PackedCodec.d.ts.map +1 -1
  89. package/dist/internal/PackedCodec.js +83 -21
  90. package/dist/internal/PackedCodec.js.map +1 -1
  91. package/dist/internal/RestoredKeyText.d.ts +10 -0
  92. package/dist/internal/RestoredKeyText.d.ts.map +1 -0
  93. package/dist/internal/RestoredKeyText.js +50 -0
  94. package/dist/internal/RestoredKeyText.js.map +1 -0
  95. package/dist/internal/SchemaAccessors.d.ts +280 -1
  96. package/dist/internal/SchemaAccessors.d.ts.map +1 -1
  97. package/dist/internal/SchemaAccessors.js +1717 -1
  98. package/dist/internal/SchemaAccessors.js.map +1 -1
  99. package/dist/internal/SchemaIssue.d.ts +21 -0
  100. package/dist/internal/SchemaIssue.d.ts.map +1 -0
  101. package/dist/internal/SchemaIssue.js +34 -0
  102. package/dist/internal/SchemaIssue.js.map +1 -0
  103. package/dist/internal/SharedKeyAttribute.d.ts +60 -6
  104. package/dist/internal/SharedKeyAttribute.d.ts.map +1 -1
  105. package/dist/internal/SharedKeyAttribute.js +129 -13
  106. package/dist/internal/SharedKeyAttribute.js.map +1 -1
  107. package/dist/internal/SparseKey.d.ts +46 -0
  108. package/dist/internal/SparseKey.d.ts.map +1 -0
  109. package/dist/internal/SparseKey.js +69 -0
  110. package/dist/internal/SparseKey.js.map +1 -0
  111. package/dist/internal/StoredForm.d.ts +139 -0
  112. package/dist/internal/StoredForm.d.ts.map +1 -0
  113. package/dist/internal/StoredForm.js +503 -0
  114. package/dist/internal/StoredForm.js.map +1 -0
  115. package/dist/internal/ZOrderCurve.d.ts.map +1 -1
  116. package/dist/internal/ZOrderCurve.js +2 -1
  117. package/dist/internal/ZOrderCurve.js.map +1 -1
  118. package/dist/internal/ZoneKeyText.d.ts +55 -0
  119. package/dist/internal/ZoneKeyText.d.ts.map +1 -0
  120. package/dist/internal/ZoneKeyText.js +264 -0
  121. package/dist/internal/ZoneKeyText.js.map +1 -0
  122. package/package.json +4 -4
@@ -3,17 +3,181 @@
3
3
  *
4
4
  * Extracted from Aggregate.ts for decomposition. Not part of the public API.
5
5
  */
6
- import { Schema } from "effect";
6
+ import { Option, Schema } from "effect";
7
7
  import type { AggregateEdge, RefEntity } from "./AggregateEdges.js";
8
- import type { AggregateInputType, BoundSubAggregate } from "./AggregateTypes.js";
8
+ import type { AggregateInputType, AggregateStampNames, BoundSubAggregate, SchemaFieldsOf } from "./AggregateTypes.js";
9
+ import type { TimestampsConfig } from "./EntityConfig.js";
10
+ import { type ResolvedSystemFields } from "./EntitySchemas.js";
11
+ /**
12
+ * What a caller's aggregate input gives under `name` where `create` reads it for an id, a `many` list
13
+ * or a sub-aggregate: read as 1.40.0 read it (`payload[name]`), and never a function, as 1.40.0 took
14
+ * none there ({@link givenData}).
15
+ */
16
+ export declare const given: (payload: object, name: PropertyKey) => unknown;
17
+ /**
18
+ * `timestamps` resolved over a value's fields, by the entity's rules: `Schema.optional` wraps the
19
+ * value that's read, a date is the library's, and any other field of that name is the caller's.
20
+ */
21
+ export declare const resolveAggregateStamps: (timestamps: TimestampsConfig | undefined, fields: Record<string, Schema.Top> | undefined, owner: string) => ResolvedSystemFields;
22
+ /**
23
+ * `[EDD-9121]`: a partition key the library would move on every write. An aggregate's rows all live
24
+ * under its partition key and a write only ever `Put`s rows under it, so the key would stop matching
25
+ * the value at the first update, and nothing could find the aggregate by what it holds.
26
+ */
27
+ export declare const refuseAggregateKeyOverMovingValue: (aggregate: string, timestamps: TimestampsConfig | undefined, fields: Record<string, Schema.Top> | undefined, composite: ReadonlyArray<string>) => void;
28
+ /**
29
+ * The fields of a `many` edge's ELEMENT, read off the parent model's field: the array's element
30
+ * (`players: Schema.Array(PlayerSheet)` → `PlayerSheet`'s), or a keyed collection's value, the
31
+ * elements of a custom `decompose` over it. `undefined` when the field says nothing about what its
32
+ * `decompose` returns, or the element exposes no fields (a scalar, or an opaque ref).
33
+ */
34
+ export declare const manyElementFields: (parentFields: Record<string, Schema.Top> | undefined, edgeName: string) => Record<string, Schema.Top> | undefined;
35
+ /**
36
+ * `[EDD-9121]`: a `many` edge's sort key the library would move on every write, on the root's edges
37
+ * and those of the sub-aggregates under it. Whose `updatedAt` it is, is the row's: a field of that
38
+ * name of another type is the caller's, and a root's turns the stamp off on every row.
39
+ */
40
+ export declare const refuseManySortKeysOverMovingValue: (aggregate: string, timestamps: TimestampsConfig | undefined, rootFields: Record<string, Schema.Top> | undefined, rootEdges: Record<string, AggregateEdge | BoundSubAggregate<any, any>>) => void;
41
+ /**
42
+ * The names a stored value of `schema` declares: the fields of its stored side, through optionality,
43
+ * classes, unions and suspensions. A record's keys are taken, not declared, and a declaration
44
+ * (`Schema.declare`) declares nothing that can be seen, so neither gives a name.
45
+ */
46
+ export declare const storedFieldNames: (schema: Schema.Top) => ReadonlySet<string>;
47
+ /** The kinds of row an aggregate writes, by how a read hands back the value one holds. */
48
+ export type RowKind = "root" | "subAggregate" | "edge";
49
+ /**
50
+ * Whether a read up to 1.40.0 took the attribute `name` off a row of `kind` before handing back the
51
+ * value it holds, whatever the value declared: `__edd_e__`, `pk` and `sk` everywhere; on the root's
52
+ * row the index keys `gsi1pk` … `gsi5sk`, `lsi1sk` and `lsi2sk`; on a sub-aggregate's root row any
53
+ * name starting `pk`, `sk`, `gsi` or `lsi`; on an edge's row any name starting `gsi` or `lsi`.
54
+ * {@link readTakesOff} applies it to a name the value doesn't declare (#241).
55
+ */
56
+ export declare const takenOffThrough140: (kind: RowKind, name: string) => boolean;
57
+ /**
58
+ * What a read knows of a row an aggregate writes (#241): its kind, the names its value declares at
59
+ * that position (`declaredValueNames`, by stored name; none where its schema can't be seen into)
60
+ * and the key attributes the library writes on a row of that kind ({@link rowKeysOn}).
61
+ */
62
+ export type ReadRow = {
63
+ readonly kind: RowKind;
64
+ readonly declared: ReadonlySet<string>;
65
+ readonly keys: ReadonlySet<string>;
66
+ };
67
+ /** A row's {@link ReadRow}: `declared` is what `declaredValueNames` gives for its value. */
68
+ export declare const readRowOf: (kind: RowKind, config: RowKeyConfig, declared: Iterable<string> | undefined) => ReadRow;
69
+ /**
70
+ * Whether a read takes the attribute `name` off a row before handing back the value it holds
71
+ * (#241): `__edd_e__`, `pk` and `sk` always; a name 1.40.0 took off ({@link takenOffThrough140})
72
+ * unless the row's value declares it at that position and the library writes no key attribute of
73
+ * that name there. A name the value doesn't declare is taken off as on 1.40.0, another writer's
74
+ * index key included. The one statement of the rule: every read asks it, and `create`'s refusal
75
+ * of a value given where the library writes another (`EDD-9159`) names the attributes it writes on
76
+ * a row by its write-side twin ({@link rowKeysOn}).
77
+ */
78
+ export declare const readTakesOff: (row: ReadRow, name: string) => boolean;
79
+ /**
80
+ * How a sub-aggregate's root row is read (#241): with an edge of its own, as a sub-aggregate's root
81
+ * (`"subAggregate"`); without one, as a `one` edge's row (`"edge"`), since assembly reads a
82
+ * sub-aggregate with no edges as it reads a `one` edge.
83
+ */
84
+ export declare const subAggregateRowKind: (edges: Record<string, unknown>) => RowKind;
85
+ /** A key attribute the library writes on a row, with what it holds, to name it in an error. */
86
+ export type RowKeyAttribute = readonly [attribute: string, what: string];
87
+ /** The parts of an aggregate's config naming the key attributes its rows are written with. */
88
+ export type RowKeyConfig = {
89
+ readonly pk: {
90
+ readonly field: string;
91
+ };
92
+ readonly collection: {
93
+ readonly index?: string | undefined;
94
+ readonly sk?: {
95
+ readonly field: string;
96
+ } | undefined;
97
+ };
98
+ readonly list?: {
99
+ readonly pk: {
100
+ readonly field: string;
101
+ };
102
+ readonly sk: {
103
+ readonly field: string;
104
+ };
105
+ } | undefined;
106
+ };
107
+ /**
108
+ * The key attributes the library writes on every row an aggregate writes, over a value's field of
109
+ * the same name (#241): `__edd_e__`, the partition key attribute, `sk` and, with a collection index,
110
+ * the collection sort key's copy.
111
+ */
112
+ export declare const rowKeyAttributes: (config: RowKeyConfig) => ReadonlyArray<RowKeyAttribute>;
113
+ /**
114
+ * The root's list keys, written on its row only when every list composite has a value (they're
115
+ * sparse), over a field of the same name (#241).
116
+ */
117
+ export declare const listKeyAttributes: (config: RowKeyConfig) => ReadonlyArray<RowKeyAttribute>;
118
+ /**
119
+ * The key attributes the library writes on a row of `kind` (#241): those of every row
120
+ * ({@link rowKeyAttributes}) and, on the root's, its list keys (sparse, but named whether or not a
121
+ * write composes them).
122
+ */
123
+ export declare const rowKeysOn: (kind: RowKind, config: RowKeyConfig) => ReadonlyArray<RowKeyAttribute>;
124
+ /**
125
+ * The field names the value of each kind of row declares, for {@link readTakesOff}: the root's and
126
+ * a sub-aggregate's own fields (`own`, those no edge claims), a `one` edge's value (the field
127
+ * holding it), a `many` edge's element (none with a custom `decompose`). `undefined` where nothing
128
+ * is declared.
129
+ */
130
+ export declare const declaredValueNames: {
131
+ own: (fields: Record<string, Schema.Top> | undefined, edges: Record<string, unknown>) => ReadonlyArray<string>;
132
+ one: (fields: Record<string, Schema.Top> | undefined, edgeName: string) => ReadonlySet<string> | undefined;
133
+ many: (fields: Record<string, Schema.Top> | undefined, edgeName: string, edge: {
134
+ readonly decompose?: unknown;
135
+ }) => ReadonlySet<string> | undefined;
136
+ };
137
+ /**
138
+ * `[EDD-9128]`: a key an aggregate composes from a field storing both numeric kinds
139
+ * (`bothKindsKeyRefusal`): its partition key, its collection and list keys, and a `many` edge's sort
140
+ * key, on the root's edges and those of the sub-aggregates under it. A sort-key composite that's a
141
+ * path into a value (`player.id`) is followed to the field a row stores there, through an optional,
142
+ * nullable, suspended or class value on the way (`storedFieldAtPath`): a value transformed on the
143
+ * way is judged by what it's stored as, so a struct storing a number at `n` and decoding it to a
144
+ * union of both kinds loads, and one storing either kind there doesn't.
145
+ */
146
+ export declare const refuseAggregateKeysOverBothKinds: (aggregate: string, rootFields: Record<string, Schema.Top> | undefined, config: {
147
+ readonly pk: {
148
+ readonly composite: ReadonlyArray<string>;
149
+ };
150
+ readonly collection?: {
151
+ readonly sk?: {
152
+ readonly composite?: ReadonlyArray<string>;
153
+ };
154
+ };
155
+ readonly list?: {
156
+ readonly pk: {
157
+ readonly composite: ReadonlyArray<string>;
158
+ };
159
+ readonly sk: {
160
+ readonly composite: ReadonlyArray<string>;
161
+ };
162
+ };
163
+ }, rootEdges: Record<string, AggregateEdge | BoundSubAggregate<any, any>>) => void;
164
+ /** `timestamps`, and the names it stamps on this aggregate's rows. */
165
+ interface AggregateStamps {
166
+ readonly config: TimestampsConfig | undefined;
167
+ readonly names: ReadonlySet<string>;
168
+ }
9
169
  /**
10
170
  * Derive an input schema from an aggregate definition.
11
171
  *
12
172
  * Edge-driven: walks edges to determine field transformations.
13
- * - OneEdge / RefEdge fields → `${field}Id: Schema.String`
173
+ * - RefEdge, and OneEdge with an entity, fields → `${field}Id`, a value of the entity's key
174
+ * composite (`refIdInput`): `create` fetches it
175
+ * - OneEdge without one, or with an entity no single id names → the value itself, which is all
176
+ * `create` can take
14
177
  * - Sub-aggregate edges are recursed
15
178
  * - Many-edge array elements are recursed for ref replacement
16
179
  * - PK composite fields are omitted (auto-generated)
180
+ * - A date `timestamps` stamps is optional, at any level
17
181
  * - `Schema.toCodecJson` is applied at the end so Date fields accept ISO strings
18
182
  */
19
183
  /**
@@ -30,7 +194,7 @@ export interface DerivedAggregateSchemas<TInput = unknown> {
30
194
  readonly createSchema: Schema.Codec<TInput>;
31
195
  readonly updateSchema: Schema.Codec<Partial<TInput>>;
32
196
  }
33
- export declare const deriveAggregateSchemas: <TSchema extends Schema.Top, const TEdges extends Record<string, AggregateEdge | BoundSubAggregate<any, any>>, const TPK extends ReadonlyArray<string>>(schema: TSchema, edges: TEdges, pkComposites: TPK) => DerivedAggregateSchemas<AggregateInputType<Schema.Schema.Type<TSchema>, TEdges, TPK>>;
197
+ export declare const deriveAggregateSchemas: <TSchema extends Schema.Top, const TEdges extends Record<string, AggregateEdge | BoundSubAggregate<any, any>>, const TPK extends ReadonlyArray<string>, const TTimestamps extends TimestampsConfig | undefined = undefined>(schema: TSchema, edges: TEdges, pkComposites: TPK, timestamps?: TTimestamps) => DerivedAggregateSchemas<AggregateInputType<Schema.Schema.Type<TSchema>, TEdges, TPK, AggregateStampNames<Schema.Schema.Type<TSchema>, TTimestamps>, SchemaFieldsOf<TSchema>>>;
34
198
  /**
35
199
  * Check if a field schema represents an optional field.
36
200
  *
@@ -45,13 +209,138 @@ export declare const isFieldOptional: (fieldSchema: Schema.Top) => boolean;
45
209
  */
46
210
  export declare const deriveEntityFieldName: (entity: RefEntity) => string;
47
211
  /**
48
- * Derive input schema for a many-edge array element.
49
- * Extracts the element type from the field schema (which may be an Array
50
- * or optional(Array)). If the element IS the entity (matches the entity model),
51
- * transforms to Schema.String. Otherwise, finds the entity-derived field within
52
- * the element and transforms it.
212
+ * The distinct attributes an entity's primary key is composed from, its partition key's first. An
213
+ * attribute in both halves (`pk: ["lineId"]`, `sk: ["lineId"]`) is one attribute: one value of it
214
+ * names one item.
215
+ */
216
+ export declare const refKeyComposites: (entity: RefEntity) => ReadonlyArray<string>;
217
+ /**
218
+ * The one attribute an id of `entity` is a value of: its primary key's only distinct composite.
219
+ * `undefined` for a key composed from more than one attribute, or none: no one id names one item.
53
220
  */
54
- export declare const deriveElementInputSchema: (arrayFieldSchema: Schema.Top, entity?: RefEntity) => Schema.Top | undefined;
221
+ export declare const refKeyComposite: (entity: RefEntity) => string | undefined;
222
+ /**
223
+ * The attribute of `entity` an entity-level ref id (`Entity.make({ refs })`'s `${field}Id`) names:
224
+ * its {@link refKeyComposite}, as an aggregate edge's id (#214, #241). It's fetched under that, read
225
+ * back from the stored ref under that (`putValuesOf`, a row check), and a cascade from `entity` is
226
+ * keyed by it. An entity keyed by more than one composite has none: its identifier, as up to
227
+ * 1.40.0. `undefined` with neither.
228
+ */
229
+ export declare const refIdAttribute: (entity: RefEntity) => string | undefined;
230
+ /**
231
+ * The model field an id of `entity` is a value of (its {@link refKeyComposite}), `undefined` when
232
+ * its key has no one composite or its model's fields can't be read.
233
+ */
234
+ export declare const refIdField: (entity: RefEntity) => Schema.Top | undefined;
235
+ /**
236
+ * An id given for `entity`, as a value of its key composite ({@link refIdField}): the value itself
237
+ * when it is one (`5` of a number, `5n` of a bigint, a `Date`), or what it decodes to from its JSON
238
+ * or stored form (`"5"` of a `NumberFromString` or a bigint, an ISO string of a date). `None` when it
239
+ * is neither: it names no item. Without a key field to read, a string is taken as given and nothing
240
+ * else, as it always was.
241
+ */
242
+ export declare const refIdValue: (entity: RefEntity, value: unknown) => Option.Option<unknown>;
243
+ /**
244
+ * A value given for a key composite whose field is `field`, as a value of that field: the value
245
+ * itself when it is one, or what it decodes to from its JSON or stored form. `None` when it is
246
+ * neither. What an aggregate edge's id ({@link refIdValue}) and an entity-level ref's
247
+ * `${field}Id` name are both read through it (#214, #241).
248
+ */
249
+ export declare const keyValueOf: (field: Schema.Top, value: unknown) => Option.Option<unknown>;
250
+ /**
251
+ * Whether a schema is the entity's own model: the schema its definition declares (its
252
+ * `DynamoModel.configure` wrapper taken off), or a copy of it that changes only its annotations, its
253
+ * checks or its brand (`isSameSchemaNode`), compared by reference. An identifier is never identity:
254
+ * a class of the entity's identifier is another schema, as is a struct declared again with the
255
+ * entity's fields. Every question of whether a schema is the entity is asked of this.
256
+ */
257
+ export declare const isEntityModel: (schema: Schema.Top, entity: RefEntity) => boolean;
258
+ /**
259
+ * Whether a `many` element is the entity itself (`Array<Umpire>`): the entity's own model
260
+ * ({@link isEntityModel}). Its values are the entity whole, or an id.
261
+ */
262
+ export declare const isEntityElement: (element: Schema.Top | undefined, entity: RefEntity) => boolean;
263
+ /**
264
+ * The field of a `many` element that holds the entity, where the element's definition says so,
265
+ * `undefined` where it doesn't. All of these hold:
266
+ *
267
+ * 1. The element is a plain `Schema.Struct` or `Schema.Class`: one with fields of its own. A
268
+ * transformation, a union, a `suspend` or a declaration has none.
269
+ * 2. Its field of the entity's name (`deriveEntityFieldName`) holds the entity's own model
270
+ * (`holdsEntityModel`).
271
+ * 3. It doesn't declare `${field}Id` itself: a declared one is the element's own data.
272
+ *
273
+ * Such an element's input takes an id of the entity's key composite under `${field}Id`.
274
+ */
275
+ export declare const entityFieldOf: (element: Schema.Top | undefined, entity: RefEntity) => string | undefined;
276
+ /**
277
+ * Whether `create` fetches `entity` for `value`'s `${field}Id`, `value` a value of a definition
278
+ * declaring `fields` (`undefined` where it declares none: a union, a transformation): the parent
279
+ * model's, its `field` the edge's name, for a `one` or `ref` edge; a `many` element's, its `field`
280
+ * the entity's name (`deriveEntityFieldName`). One rule for every edge:
281
+ *
282
+ * 1. `null` and `undefined` give no id.
283
+ * 2. A string is fetched, exactly as on 1.39.0, whatever the definition declares: it replaces a
284
+ * record given whole in `field` with the one fetched, and a `${field}Id` the definition declares
285
+ * is taken out of the value, as 1.39.0 took it.
286
+ * 3. Any other id (a number, a bigint, a date: a value of the entity's key composite) is fetched only
287
+ * where the definition's `field` holds the entity's own model (`holdsEntityModel`), the definition
288
+ * doesn't declare `${field}Id`, which is then its own data, and `field` isn't given whole: a
289
+ * record given is never replaced or read again. 1.39.0 fetched none of these.
290
+ */
291
+ export declare const holdsRefId: (fields: Record<string, Schema.Top> | undefined, field: string, entity: RefEntity, value: Record<string, unknown>) => boolean;
292
+ /**
293
+ * {@link holdsRefId} for a `many` element given as an object, of the element's schema. An element
294
+ * that is the entity ({@link isEntityElement}), given whole, holds no id in its own key: where the
295
+ * entity is keyed by `${field}Id` (`lineId` of a `Line`), that is the entity's own value, which
296
+ * 1.39.0 took for an id to fetch and failed on. It is left unfetched exactly where 1.39.0 failed:
297
+ * where 1.39.0 fetched it and completed ({@link fetchedByOwnKey139}), it is fetched.
298
+ */
299
+ export declare const elementHoldsRef: (element: Schema.Top | undefined, entity: RefEntity, value: Record<string, unknown>) => boolean;
300
+ /**
301
+ * The element schema of a `many` edge, read off the parent model's field: the array's element, or a
302
+ * keyed collection's value. `undefined` when the field says nothing of it.
303
+ */
304
+ export declare const manyElementSchema: (parentFields: Record<string, Schema.Top> | undefined, edgeName: string) => Schema.Top | undefined;
305
+ /**
306
+ * Derive input schema for a many-edge array element, as `create` takes it, for an edge whose entity
307
+ * one id names:
308
+ *
309
+ * - **An element that is the entity** ({@link isEntityElement}): an id of the entity's key composite
310
+ * (`refIdInput`), or the entity whole.
311
+ * - **An element whose definition names the field holding the entity** ({@link entityFieldOf}): the
312
+ * element whole, `${field}Id` beside it or not, or with `${field}Id`, an id of the entity's key
313
+ * composite, in place of that field. Neither refuses the other's key: given both, both are kept,
314
+ * and `create` judges them as it judges a value given to it directly (`elementHoldsRef`).
315
+ * - **Any other element**, as on 1.39.0: the field of the entity's name, if it has one, taken as
316
+ * `${field}Id: Schema.String`. An element with no fields of its own (a union among them) is taken
317
+ * as declared.
318
+ *
319
+ * An entity no single id names is given whole, never by id (`EDD-9129`), so its elements are taken as
320
+ * declared. A date the library stamps is optional throughout.
321
+ */
322
+ export declare const deriveElementInputSchema: (arrayFieldSchema: Schema.Top, entity?: RefEntity, stamps?: AggregateStamps) => Schema.Top | undefined;
323
+ /**
324
+ * The paths of an aggregate's `many` edges, sub-aggregates included. The collection such a field is
325
+ * declared as is taken apart by `decompose` and put back by `assemble`, so it's never stored itself.
326
+ */
327
+ export declare const manyEdgePaths: (edges: Readonly<Record<string, unknown>> | undefined, at?: string) => ReadonlySet<string>;
328
+ /**
329
+ * `[EDD-9153]`: an aggregate naming `__proto__` where every row it writes would hold it. A
330
+ * required sub-aggregate's discriminator is an attribute of each of its rows. A root's or a
331
+ * sub-aggregate root's required field is an attribute of its row, and so is a required `ref` edge
332
+ * (its entity is stored inline, under the edge's name); a required property of a required `one`
333
+ * edge's value is an attribute of the edge's row; and a required property of any of those, reached
334
+ * through containers each certain to hold a map, is a property of a stored map
335
+ * (`requiredProtoPropertyIn`). A JavaScript object can't take that name by assignment and the AWS
336
+ * SDK's marshaller drops an attribute or an entry so named, so 1.40.0 failed on such a value, or
337
+ * stored the row without it and then couldn't read it (#239). Wherever a container on the way may be
338
+ * left out or hold no map (an optional or nullable sub-aggregate, edge value or field, a union, a
339
+ * list, a record, an `Option`), the definition loads: a write that gives the name is refused when
340
+ * it's sent (`EDD-9165`). An edge's own name (a `one`, `many` or sub-aggregate edge) is no
341
+ * attribute: it may be `__proto__`. Nothing stored as JSON text is looked into. Thrown at `make`.
342
+ */
343
+ export declare const refuseAggregateProtoName: (entityType: string, model: Schema.Top, edges: Readonly<Record<string, unknown>> | undefined) => void;
55
344
  /**
56
345
  * Unwrap a ConfiguredModel to get the raw Schema.Class model.
57
346
  * ConfiguredModel wraps the original model with DynamoDB-specific overrides
@@ -59,10 +348,12 @@ export declare const deriveElementInputSchema: (arrayFieldSchema: Schema.Top, en
59
348
  */
60
349
  export declare const unwrapModel: (model: Schema.Top) => Schema.Top;
61
350
  /**
62
- * Check if a schema matches an entity model (same Schema.Class identifier).
63
- * This is used to detect when an array element IS the entity (e.g., Array<Umpire>),
64
- * as opposed to wrapping the entity (e.g., Array<{ umpire: Umpire, role: string }>).
65
- * Unwraps ConfiguredModel if the entity uses DynamoModel.configure.
351
+ * Check if a schema has the same Schema.Class identifier as an entity model,
352
+ * unwrapping ConfiguredModel if the entity uses DynamoModel.configure.
353
+ *
354
+ * An identifier is not identity: two classes can share one. Nothing in the
355
+ * library decides by this any more; whether an element IS the entity (e.g.,
356
+ * Array<Umpire>) is decided by comparing the schema itself (`isEntityModel`).
66
357
  */
67
358
  export declare const isSchemaMatchingEntity: (schema: Schema.Top, entity: RefEntity) => boolean;
68
359
  /**
@@ -83,4 +374,5 @@ export declare const extractArrayElement: (fieldSchema: Schema.Top) => Schema.To
83
374
  * Re-exported here (and from `Aggregate.ts`) for backwards-compatible access.
84
375
  */
85
376
  export declare const getSchemaFields: (schema: Schema.Top) => Record<string, Schema.Top> | undefined;
377
+ export {};
86
378
  //# sourceMappingURL=AggregateSchemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AggregateSchemas.d.ts","sourceRoot":"","sources":["../../src/internal/AggregateSchemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAY,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC7E,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAWhF;;;;;;;;;GASG;AACH;;;;;;;GAOG;AACH,MAAM,WAAW,uBAAuB,CAAC,MAAM,GAAG,OAAO;IACvD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC1C,qFAAqF;IACrF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC3C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAA;CACrD;AAED,eAAO,MAAM,sBAAsB,GACjC,OAAO,SAAS,MAAM,CAAC,GAAG,EAC1B,KAAK,CAAC,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,GAAG,iBAAiB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAChF,KAAK,CAAC,GAAG,SAAS,aAAa,CAAC,MAAM,CAAC,EAEvC,QAAQ,OAAO,EACf,OAAO,MAAM,EACb,cAAc,GAAG,KAChB,uBAAuB,CAAC,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,CA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