@prisma/orm-family-mongo 8.0.0-rc.20-dev.2 → 8.0.0-rc.20-dev.4

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 (123) hide show
  1. package/dist/{authoring-entity-types-UA5sY_Xm-DeYf_cYq.mjs → authoring-entity-types-BEwwEsFI-J0WF36SE.mjs} +8 -6
  2. package/dist/authoring-entity-types-BEwwEsFI-J0WF36SE.mjs.map +1 -0
  3. package/dist/config-types-DYTCUpAs.mjs.map +1 -1
  4. package/dist/contract-builder-d5cf-u9p.mjs +1832 -0
  5. package/dist/contract-builder-d5cf-u9p.mjs.map +1 -0
  6. package/dist/{contract-builder-ClL-xMK2.d.mts → contract-builder-lqaM5w74.d.mts} +489 -94
  7. package/dist/contract-builder-lqaM5w74.d.mts.map +1 -0
  8. package/dist/contract-prisma6__provider.mjs +168 -107
  9. package/dist/contract-prisma6__provider.mjs.map +1 -1
  10. package/dist/contract-psl.d.mts +7 -4
  11. package/dist/contract-psl.d.mts.map +1 -1
  12. package/dist/contract-psl.mjs +1 -1
  13. package/dist/contract-psl__provider.d.mts +5 -1
  14. package/dist/contract-psl__provider.d.mts.map +1 -1
  15. package/dist/contract-psl__provider.mjs +17 -4
  16. package/dist/contract-psl__provider.mjs.map +1 -1
  17. package/dist/contract-ts.d.mts +2 -2
  18. package/dist/contract-ts.mjs +2 -2
  19. package/dist/contract-ts__contract-builder.d.mts +2 -2
  20. package/dist/contract-ts__contract-builder.mjs +2 -2
  21. package/dist/contract.d.mts +3 -3
  22. package/dist/contract.mjs +1 -1
  23. package/dist/contract__data-type.d.mts +2 -15
  24. package/dist/contract__data-type.d.mts.map +1 -1
  25. package/dist/contract__data-type.mjs +2 -2
  26. package/dist/contract__entity-kinds.d.mts +1 -1
  27. package/dist/{control-CvQSMuxa.d.mts → control-B5MQg_2b.d.mts} +5 -5
  28. package/dist/{control-CvQSMuxa.d.mts.map → control-B5MQg_2b.d.mts.map} +1 -1
  29. package/dist/{control-B_pPN58L.mjs → control-Bo6DU4E_.mjs} +71 -13
  30. package/dist/control-Bo6DU4E_.mjs.map +1 -0
  31. package/dist/{control-4pC8N2Rb.d.mts → control-DS-Fx1NE.d.mts} +3 -3
  32. package/dist/{control-4pC8N2Rb.d.mts.map → control-DS-Fx1NE.d.mts.map} +1 -1
  33. package/dist/{control-adapter-Bh_ZraGM--5JDb99k.d.mts → control-adapter-Bh_ZraGM-B4cpVawQ.d.mts} +4 -4
  34. package/dist/{control-adapter-Bh_ZraGM--5JDb99k.d.mts.map → control-adapter-Bh_ZraGM-B4cpVawQ.d.mts.map} +1 -1
  35. package/dist/control-adapter-CbqlnOk6.d.mts +1 -0
  36. package/dist/{dist-B8f-pfcT.mjs → dist-DgMGRQkm.mjs} +7 -7
  37. package/dist/dist-DgMGRQkm.mjs.map +1 -0
  38. package/dist/{dist-gmGbjhmk.mjs → dist-DmE6N0B3.mjs} +2 -2
  39. package/dist/{dist-gmGbjhmk.mjs.map → dist-DmE6N0B3.mjs.map} +1 -1
  40. package/dist/dist-xk_0xOR-.mjs.map +1 -1
  41. package/dist/family.d.mts +10 -10
  42. package/dist/family.mjs +8 -8
  43. package/dist/family__control-adapter.d.mts +2 -2
  44. package/dist/family__control.d.mts +1 -1
  45. package/dist/family__control.mjs +2 -2
  46. package/dist/family__ir.d.mts +2 -2
  47. package/dist/family__ir.mjs +3 -3
  48. package/dist/family__migration.d.mts +1 -1
  49. package/dist/family__migration.mjs +1 -1
  50. package/dist/family__pack.d.mts +1 -1
  51. package/dist/family__pack.mjs +2 -2
  52. package/dist/family__pack.mjs.map +1 -1
  53. package/dist/family__runtime.d.mts +2 -2
  54. package/dist/family__runtime.mjs +1 -1
  55. package/dist/family__schema-verify.d.mts +1 -1
  56. package/dist/family__schema-verify.mjs +1 -1
  57. package/dist/{field-accessor-CmxCw9xP-C6jMngbK.d.mts → field-accessor-CmxCw9xP-C7wBU7aM.d.mts} +3 -3
  58. package/dist/{field-accessor-CmxCw9xP-C6jMngbK.d.mts.map → field-accessor-CmxCw9xP-C7wBU7aM.d.mts.map} +1 -1
  59. package/dist/{index-FeVOOdZ0.d.mts → index-8ml_NVS_.d.mts} +3 -3
  60. package/dist/{index-FeVOOdZ0.d.mts.map → index-8ml_NVS_.d.mts.map} +1 -1
  61. package/dist/{index-BdXzdXGE.d.mts → index-BEE0UxUA.d.mts} +3 -3
  62. package/dist/{index-BdXzdXGE.d.mts.map → index-BEE0UxUA.d.mts.map} +1 -1
  63. package/dist/{index-YY1SU_7o.d.mts → index-CQ1JuHm5.d.mts} +13 -12
  64. package/dist/index-CQ1JuHm5.d.mts.map +1 -0
  65. package/dist/{index-rANtsIZG.d.mts → index-D62lu0tO.d.mts} +3 -3
  66. package/dist/{index-rANtsIZG.d.mts.map → index-D62lu0tO.d.mts.map} +1 -1
  67. package/dist/{index-BhIiYIXu.d.mts → index-Dfilr1Os.d.mts} +6 -6
  68. package/dist/{index-BhIiYIXu.d.mts.map → index-Dfilr1Os.d.mts.map} +1 -1
  69. package/dist/{interpreter-BfHdPd7T-DGqi2_Um.mjs → interpreter-DFYQNoyO--j8HG0mg.mjs} +620 -905
  70. package/dist/interpreter-DFYQNoyO--j8HG0mg.mjs.map +1 -0
  71. package/dist/{ir-DGm0HXbP.mjs → ir-DrSbC_hc.mjs} +2 -2
  72. package/dist/{ir-DGm0HXbP.mjs.map → ir-DrSbC_hc.mjs.map} +1 -1
  73. package/dist/{ir-BLC0t6_x.d.mts → ir-SLc3mVHt.d.mts} +4 -4
  74. package/dist/{ir-BLC0t6_x.d.mts.map → ir-SLc3mVHt.d.mts.map} +1 -1
  75. package/dist/lowering.d.mts +1 -1
  76. package/dist/{migration-YQVmgFU8.d.mts → migration-C9enejJh.d.mts} +5 -5
  77. package/dist/{migration-YQVmgFU8.d.mts.map → migration-C9enejJh.d.mts.map} +1 -1
  78. package/dist/{migration-DnQ7_A_B.mjs → migration-CKa85PF4.mjs} +2 -2
  79. package/dist/{migration-DnQ7_A_B.mjs.map → migration-CKa85PF4.mjs.map} +1 -1
  80. package/dist/{mongo-contract-serializer-Zx1rvil3-BywiKCpn.mjs → mongo-contract-serializer-DAPHJOHU-BjEbQIgp.mjs} +3 -3
  81. package/dist/{mongo-contract-serializer-Zx1rvil3-BywiKCpn.mjs.map → mongo-contract-serializer-DAPHJOHU-BjEbQIgp.mjs.map} +1 -1
  82. package/dist/{mongo-contract-view-AnejqfrQ-Wj_ulq2L.d.mts → mongo-contract-view-AnejqfrQ-DJJ6PwWt.d.mts} +3 -3
  83. package/dist/{mongo-contract-view-AnejqfrQ-Wj_ulq2L.d.mts.map → mongo-contract-view-AnejqfrQ-DJJ6PwWt.d.mts.map} +1 -1
  84. package/dist/{mongo-contract-view-D5yu2LrY-DCAZYJ4q.mjs → mongo-contract-view-x3OCGAk1-DvEhwf_e.mjs} +4 -4
  85. package/dist/{mongo-contract-view-D5yu2LrY-DCAZYJ4q.mjs.map → mongo-contract-view-x3OCGAk1-DvEhwf_e.mjs.map} +1 -1
  86. package/dist/mongo-data-type-Bv8Bd0zu-cnTiyyP0.mjs +33 -0
  87. package/dist/mongo-data-type-Bv8Bd0zu-cnTiyyP0.mjs.map +1 -0
  88. package/dist/{mongo-value-set-DEd7WLCT-B2Ar2GkJ.d.mts → mongo-value-set-BkGaKhbE-86TPJ91m.d.mts} +4 -5
  89. package/dist/mongo-value-set-BkGaKhbE-86TPJ91m.d.mts.map +1 -0
  90. package/dist/orm.d.mts +6 -6
  91. package/dist/orm.d.mts.map +1 -1
  92. package/dist/orm.mjs +2 -2
  93. package/dist/{pack-qw77Jt2G.d.mts → pack-WQox6nGF.d.mts} +4 -2
  94. package/dist/pack-WQox6nGF.d.mts.map +1 -0
  95. package/dist/query-ast.d.mts +2 -2
  96. package/dist/query-ast__control.d.mts +2 -2
  97. package/dist/query-builder.d.mts +2 -2
  98. package/dist/query-builder.mjs +1 -1
  99. package/dist/query-builder__contract-free.d.mts +3 -3
  100. package/dist/{runtime-yZA30qM2.d.mts → runtime-B1uT8PuG.d.mts} +2 -2
  101. package/dist/runtime-B1uT8PuG.d.mts.map +1 -0
  102. package/dist/runtime.d.mts +2 -2
  103. package/dist/schema-ir.d.mts +1 -1
  104. package/dist/{schema-verify-CVOG6EZx.d.mts → schema-verify-BiwnOU7s.d.mts} +4 -4
  105. package/dist/{schema-verify-CVOG6EZx.d.mts.map → schema-verify-BiwnOU7s.d.mts.map} +1 -1
  106. package/dist/{verify-mongo-schema-CeQP5N4k-CNOctppM.mjs → verify-mongo-schema-nsnAhPm8-BgFC6Aop.mjs} +3 -3
  107. package/dist/{verify-mongo-schema-CeQP5N4k-CNOctppM.mjs.map → verify-mongo-schema-nsnAhPm8-BgFC6Aop.mjs.map} +1 -1
  108. package/dist/wire.d.mts +1 -1
  109. package/package.json +20 -20
  110. package/dist/authoring-entity-types-UA5sY_Xm-DeYf_cYq.mjs.map +0 -1
  111. package/dist/contract-builder-BHzQQk70.mjs +0 -965
  112. package/dist/contract-builder-BHzQQk70.mjs.map +0 -1
  113. package/dist/contract-builder-ClL-xMK2.d.mts.map +0 -1
  114. package/dist/control-B_pPN58L.mjs.map +0 -1
  115. package/dist/control-adapter-CndDiTXW.d.mts +0 -1
  116. package/dist/dist-B8f-pfcT.mjs.map +0 -1
  117. package/dist/index-YY1SU_7o.d.mts.map +0 -1
  118. package/dist/interpreter-BfHdPd7T-DGqi2_Um.mjs.map +0 -1
  119. package/dist/mongo-data-type-DzyzU4LF-C1ydFXgE.mjs +0 -53
  120. package/dist/mongo-data-type-DzyzU4LF-C1ydFXgE.mjs.map +0 -1
  121. package/dist/mongo-value-set-DEd7WLCT-B2Ar2GkJ.d.mts.map +0 -1
  122. package/dist/pack-qw77Jt2G.d.mts.map +0 -1
  123. package/dist/runtime-yZA30qM2.d.mts.map +0 -1
@@ -1,101 +1,410 @@
1
- import { E as MongoIndexAuthoringInput, F as MongoIndexOptionsInput, G as MongoStorageShape, O as MongoIndexFields, Y as MongoTypeMaps, v as MongoCollection, w as MongoContractWithTypeMaps, x as MongoCollectionOptionsAuthoringInput } from "./mongo-value-set-DEd7WLCT-B2Ar2GkJ.mjs";
2
- import "./index-YY1SU_7o.mjs";
1
+ import { C as MongoContract, D as MongoIndexFieldValue, E as MongoIndexAuthoringInput, F as MongoIndexOptionsInput, J as MongoTypeMaps, O as MongoIndexFields, W as MongoStorageShape, v as MongoCollection, w as MongoContractWithTypeMaps, x as MongoCollectionOptionsAuthoringInput } from "./mongo-value-set-BkGaKhbE-86TPJ91m.mjs";
2
+ import { l as MongoContractRefusal, o as FieldOwner } from "./index-CQ1JuHm5.mjs";
3
3
  import { r as BsonValue, t as BsonInputValue } from "./index-9DDQlC5U.mjs";
4
+ import { CodecLookupWithDescriptors, DataTypeParamsProblem } from "@prisma/orm-framework/components/codec";
4
5
  import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
5
- import { ContractExecutionSection, ContractFieldType, ControlPolicy, CrossReference, EnumMemberValueType, ExecutionHashBase, ExecutionMutationDefault, ExecutionMutationDefaultPhases, ExecutionMutationDefaultValue, FieldTypesFromDomain, JsonValue, ProfileHashBase, StorageHashBase } from "@prisma/orm-framework/contract/types";
6
+ import { ContractExecutionSection, ContractField, ContractFieldType, ControlPolicy, CrossReference, EnumMemberValueType, ExecutionHashBase, ExecutionMutationDefault, ExecutionMutationDefaultPhases, ExecutionMutationDefaultValue, FieldTypesFromDomain, JsonValue, ProfileHashBase, StorageHashBase } from "@prisma/orm-framework/contract/types";
7
+ import { Result } from "@prisma/orm-framework/utils/result";
6
8
  import { BoundEnumType, CodecTypeMap, EntityHelpersFromNamespace, EnumMember, EnumTypeHandle, ExtractAuthoringNamespaceFromPack, ExtractParameterizedOutputTypesFromPack, MergeExtensionAuthoringNamespaces, ResolveTemplateValue, TupleFromArgumentDescriptors, bindEnumType, enumType as enumType$1, isEnumTypeHandle, member } from "@prisma/orm-framework/contract-authoring";
7
- import { AuthoringArgumentDescriptor, AuthoringFieldPresetDescriptor } from "@prisma/orm-framework/components/authoring";
9
+ import { AuthoringArgumentDescriptor, AuthoringFieldPresetDescriptor, AuthoringWarning, DataTypeSupport, DiscriminatorFieldRefusal, DiscriminatorVariantRefusal, EnumMemberProblem, WrittenValue } from "@prisma/orm-framework/components/authoring";
8
10
  import { ExtensionPackRef, ExtensionPackValues, FamilyPackRef, GeneratorFunctionCall, GeneratorHelpersOf, GeneratorPhase, TargetPackRef } from "@prisma/orm-framework/components/components";
9
11
  //#region ../../../2-mongo-family/2-authoring/contract-ts/dist/contract-builder.d.mts
10
- //#region src/contract-builder.d.ts
12
+ //#region src/build-refusals.d.ts
13
+ /** The part of a definition a refusal is about, by names and positions the definition carries. */
14
+ type RefusalKey = {
15
+ readonly kind: 'model';
16
+ readonly model: string;
17
+ } | {
18
+ readonly kind: 'valueObject';
19
+ readonly valueObject: string;
20
+ } | {
21
+ readonly kind: 'field';
22
+ readonly owner: FieldOwner;
23
+ readonly field: string;
24
+ } | {
25
+ readonly kind: 'enum';
26
+ readonly enumName: string;
27
+ } | {
28
+ readonly kind: 'enumMember';
29
+ readonly enumName: string;
30
+ readonly member: string;
31
+ } |
32
+ /** `position` counts the model's own indexes, in the order the definition lists them. */
33
+ {
34
+ readonly kind: 'index';
35
+ readonly model: string;
36
+ readonly position: number;
37
+ } | {
38
+ readonly kind: 'relation';
39
+ readonly model: string;
40
+ readonly relation: string;
41
+ } |
42
+ /** The base model's discriminator. */
43
+ {
44
+ readonly kind: 'discriminator';
45
+ readonly model: string;
46
+ } |
47
+ /** The variant's base and its discriminator value. */
48
+ {
49
+ readonly kind: 'base';
50
+ readonly variant: string;
51
+ } |
52
+ /** The collection settings of the model that declares them. */
53
+ {
54
+ readonly kind: 'collectionSettings';
55
+ readonly model: string;
56
+ };
57
+ type ModelKey$1 = Extract<RefusalKey, {
58
+ readonly kind: 'model';
59
+ }>;
60
+ type ValueObjectKey = Extract<RefusalKey, {
61
+ readonly kind: 'valueObject';
62
+ }>;
63
+ type FieldKey = Extract<RefusalKey, {
64
+ readonly kind: 'field';
65
+ }>;
66
+ type EnumKey = Extract<RefusalKey, {
67
+ readonly kind: 'enum';
68
+ }>;
69
+ type IndexKey = Extract<RefusalKey, {
70
+ readonly kind: 'index';
71
+ }>;
72
+ type RelationKey = Extract<RefusalKey, {
73
+ readonly kind: 'relation';
74
+ }>;
75
+ type DiscriminatorKey = Extract<RefusalKey, {
76
+ readonly kind: 'discriminator';
77
+ }>;
78
+ type BaseKey = Extract<RefusalKey, {
79
+ readonly kind: 'base';
80
+ }>;
81
+ type CollectionSettingsKey = Extract<RefusalKey, {
82
+ readonly kind: 'collectionSettings';
83
+ }>;
84
+ /** What a variant's restatement of a base field changes, which the collection's validator, written from the base, would refuse. */
85
+ type RestatedFieldDifference = 'storedName' | 'type' | 'nullable' | 'many';
86
+ type CollectionSetting = 'indexes' | 'collectionOptions' | 'controlPolicy';
87
+ type IndexShapeRule = 'unique-wildcard' | 'wildcard-with-type' | 'hashed-several-fields' | 'ttl-with-wildcard' | 'projection-without-wildcard' | 'collation-without-locale' | 'second-text-index';
88
+ /** Why the builder refuses part of a definition, keyed by the part. Each source words the refusal itself. */
89
+ type BuildRefusal = {
90
+ readonly kind: 'duplicateModel';
91
+ readonly key: ModelKey$1;
92
+ } | {
93
+ readonly kind: 'duplicateValueObject';
94
+ readonly key: ValueObjectKey;
95
+ } | {
96
+ readonly kind: 'storedNameUnsupported';
97
+ readonly key: FieldKey;
98
+ readonly reason: string;
99
+ } | {
100
+ readonly kind: 'storedNameDuplicate';
101
+ readonly key: FieldKey;
102
+ readonly storedName: string;
103
+ readonly firstField: string;
104
+ } | {
105
+ readonly kind: 'storedNameSharedWithBase';
106
+ readonly key: FieldKey;
107
+ readonly storedName: string;
108
+ readonly baseModel: string;
109
+ readonly baseField: string;
110
+ } | {
111
+ readonly kind: 'restatedBaseFieldDiffers';
112
+ readonly key: FieldKey;
113
+ readonly baseModel: string;
114
+ readonly differences: readonly RestatedFieldDifference[];
115
+ } | {
116
+ readonly kind: 'valueObjectFieldStoredName';
117
+ readonly key: FieldKey;
118
+ } | {
119
+ readonly kind: 'relationLocalFieldUnknown';
120
+ readonly key: RelationKey;
121
+ readonly fieldName: string;
122
+ } | {
123
+ readonly kind: 'relationNullability';
124
+ readonly key: RelationKey;
125
+ readonly ownsForeignKey: boolean;
126
+ readonly contradiction: 'declared-optional' | 'declared-required';
127
+ } | {
128
+ readonly kind: 'collectionSettingWithoutCollection';
129
+ readonly key: CollectionSettingsKey;
130
+ readonly setting: CollectionSetting;
131
+ } | {
132
+ readonly kind: 'collectionSettingTwice';
133
+ readonly key: CollectionSettingsKey;
134
+ readonly setting: Exclude<CollectionSetting, 'indexes'>;
135
+ readonly collection: string;
136
+ } | {
137
+ readonly kind: 'variantCollectionDiffers';
138
+ readonly key: CollectionSettingsKey;
139
+ readonly collection: string;
140
+ readonly baseModel: string;
141
+ readonly baseCollection: string;
142
+ } | {
143
+ readonly kind: 'indexFieldUnknown';
144
+ readonly key: IndexKey;
145
+ readonly fieldName: string;
146
+ readonly signature: string;
147
+ } | {
148
+ readonly kind: 'indexShape';
149
+ readonly key: IndexKey;
150
+ readonly rule: IndexShapeRule;
151
+ readonly signature: string;
152
+ } | {
153
+ readonly kind: 'indexScopeConflict';
154
+ readonly key: IndexKey;
155
+ readonly reason: string;
156
+ readonly signature: string;
157
+ } | {
158
+ readonly kind: 'indexDuplicate';
159
+ readonly key: IndexKey;
160
+ readonly collection: string;
161
+ readonly firstModel: string;
162
+ readonly signature: string;
163
+ } | {
164
+ readonly kind: 'generatedOnValueObject';
165
+ readonly key: FieldKey;
166
+ } | {
167
+ readonly kind: 'generatorUnknown';
168
+ readonly key: FieldKey;
169
+ readonly phase: GeneratorPhase;
170
+ readonly functionName: string;
171
+ readonly codecId: string | undefined;
172
+ } | {
173
+ readonly kind: 'generatorNotApplicable';
174
+ readonly key: FieldKey;
175
+ readonly phase: GeneratorPhase;
176
+ readonly functionName: string;
177
+ readonly codecId: string | undefined;
178
+ /** The generator's own reason, when it refuses the field rather than not applying to its codec. */
179
+ readonly message: string | undefined;
180
+ } | {
181
+ readonly kind: 'generatorPhaseSetTwice';
182
+ readonly key: FieldKey;
183
+ readonly phase: GeneratorPhase;
184
+ } | {
185
+ readonly kind: 'generatedList';
186
+ readonly key: FieldKey;
187
+ } | {
188
+ readonly kind: 'generatedOnVariant';
189
+ readonly key: FieldKey;
190
+ readonly baseModel: string;
191
+ readonly collection: string | undefined;
192
+ } | {
193
+ readonly kind: 'generatedWithoutCollection';
194
+ readonly key: FieldKey;
195
+ } | {
196
+ readonly kind: 'generatedConflict';
197
+ readonly key: FieldKey;
198
+ readonly otherModel: string;
199
+ readonly otherField: string;
200
+ readonly collection: string;
201
+ } | {
202
+ readonly kind: 'typeParamsInvalid';
203
+ readonly key: FieldKey;
204
+ readonly problem: DataTypeParamsProblem;
205
+ } | {
206
+ readonly kind: 'enumKeyMismatch';
207
+ readonly key: EnumKey;
208
+ readonly enumName: string;
209
+ } | {
210
+ readonly kind: 'enumMemberProblem';
211
+ readonly key: EnumKey | Extract<RefusalKey, {
212
+ readonly kind: 'enumMember';
213
+ }>;
214
+ readonly enumName: string;
215
+ readonly codecId: string;
216
+ readonly problem: EnumMemberProblem;
217
+ } | {
218
+ readonly kind: 'enumUnknown';
219
+ readonly key: FieldKey;
220
+ readonly enumName: string;
221
+ } | {
222
+ readonly kind: 'discriminatorValueDuplicate';
223
+ readonly key: BaseKey;
224
+ readonly baseModel: string;
225
+ readonly value: string;
226
+ readonly firstVariant: string;
227
+ } | {
228
+ readonly kind: 'discriminatorFieldUnknown';
229
+ readonly key: DiscriminatorKey;
230
+ readonly fieldName: string;
231
+ } | {
232
+ readonly kind: 'discriminatorField';
233
+ readonly key: DiscriminatorKey;
234
+ readonly fieldName: string;
235
+ readonly refusal: DiscriminatorFieldRefusal;
236
+ } | {
237
+ readonly kind: 'discriminatorValue';
238
+ readonly key: BaseKey;
239
+ readonly baseModel: string;
240
+ readonly fieldName: string;
241
+ readonly enumName: string | undefined;
242
+ readonly refusal: DiscriminatorVariantRefusal<string>;
243
+ } | {
244
+ readonly kind: 'discriminatorAndBase';
245
+ readonly key: DiscriminatorKey;
246
+ } | {
247
+ readonly kind: 'discriminatorWithoutVariants';
248
+ readonly key: DiscriminatorKey;
249
+ } | {
250
+ readonly kind: 'listedVariantMissing';
251
+ readonly key: DiscriminatorKey;
252
+ readonly variant: string;
253
+ } | {
254
+ readonly kind: 'baseWithoutDiscriminator';
255
+ readonly key: BaseKey;
256
+ readonly baseModel: string;
257
+ } | {
258
+ readonly kind: 'baseUnknown';
259
+ readonly key: BaseKey;
260
+ readonly baseModel: string;
261
+ } | {
262
+ readonly kind: 'variantWithoutValue';
263
+ readonly key: BaseKey;
264
+ readonly baseModel: string;
265
+ } | {
266
+ readonly kind: 'validator';
267
+ readonly key: RefusalKey;
268
+ readonly refusal: MongoContractRefusal;
269
+ };
270
+ /** Something the builder accepts but the author probably did not mean, or a warning the source collected. */
271
+ type BuildWarning = {
272
+ readonly kind: 'presetWithoutEffect';
273
+ readonly key: FieldKey;
274
+ readonly preset: string;
275
+ readonly codecId: string;
276
+ } | {
277
+ readonly kind: 'source';
278
+ readonly warning: AuthoringWarning;
279
+ };
280
+ //#endregion
281
+ //#region src/contract-definition.d.ts
282
+ /** The generator calls a source writes for a field, resolved for the field's codec when the contract is built. */
283
+ interface GeneratorCallsNode {
284
+ readonly onCreate?: GeneratorFunctionCall;
285
+ readonly onUpdate?: GeneratorFunctionCall;
286
+ }
287
+ /** What a field preset contributed to a field. */
288
+ interface PresetContributionNode {
289
+ /** The preset's helper path, as in `temporal.createdAt`. */
290
+ readonly preset: string;
291
+ readonly executionDefaults: ExecutionMutationDefaultPhases | undefined;
292
+ }
293
+ interface FieldNode {
294
+ readonly fieldName: string;
295
+ /** The name documents store the field under, when the source gives one other than the field's own. */
296
+ readonly storedName?: string;
297
+ readonly type: ContractFieldType;
298
+ readonly nullable: boolean;
299
+ readonly many: NonNullable<ContractField['many']>;
300
+ /** The name of the enum that types the field. */
301
+ readonly enumName?: string;
302
+ /** Defaults the field generates, already resolved from presets and type aliases. */
303
+ readonly executionDefaults?: ExecutionMutationDefaultPhases;
304
+ readonly generatorCalls?: GeneratorCallsNode;
305
+ /** Generators the field's own attributes set, which the source has already resolved for the field's codec. */
306
+ readonly generatedValues?: ExecutionMutationDefaultPhases;
307
+ /** Present when a field preset made the field. */
308
+ readonly presetContribution?: PresetContributionNode;
309
+ }
310
+ /** An index as the source wrote it. */
311
+ interface IndexNode {
312
+ /** Field name to its direction or index kind, in key order. */
313
+ readonly fields: Readonly<Record<string, MongoIndexFieldValue>>;
314
+ readonly options?: MongoIndexOptionsInput;
315
+ }
316
+ interface RelationNodeBase {
317
+ readonly relationName: string;
318
+ readonly toModel: string;
319
+ /** Whether a to-one related document may be absent, as the source states it. */
320
+ readonly nullable: boolean | undefined;
321
+ }
322
+ /** A relation to a model stored inside this model's documents. */
323
+ interface EmbedRelationNode extends RelationNodeBase {
324
+ readonly cardinality: '1:1' | '1:N';
325
+ readonly on?: never;
326
+ }
327
+ /** A relation to documents joined on fields. */
328
+ interface ReferenceRelationNode extends RelationNodeBase {
329
+ readonly cardinality: '1:1' | '1:N' | 'N:1';
330
+ readonly on: {
331
+ readonly localFields: readonly string[];
332
+ readonly targetFields: readonly string[];
333
+ };
334
+ }
335
+ type RelationNode = EmbedRelationNode | ReferenceRelationNode;
336
+ /** A variant's base model and the discriminator value that selects the variant, as the source wrote it. */
337
+ interface VariantBaseNode {
338
+ readonly model: string;
339
+ /** Undefined when the base does not name a value for the variant. */
340
+ readonly value: WrittenValue | undefined;
341
+ }
342
+ /** The field that tells the variants of a base apart. */
343
+ interface DiscriminatorNode {
344
+ readonly field: string;
345
+ /** The variant models the source lists on the base, when it lists them there; each must name this model as its base. */
346
+ readonly listedVariants?: readonly string[];
347
+ }
348
+ interface ModelNode {
349
+ readonly modelName: string;
350
+ /** The collection the model is stored in; absent for a model stored only inside another. */
351
+ readonly collection?: string;
352
+ readonly owner?: string;
353
+ readonly storageRelations?: Readonly<Record<string, {
354
+ readonly field: string;
355
+ }>>;
356
+ readonly controlPolicy?: ControlPolicy;
357
+ readonly collectionOptions?: MongoCollectionOptionsAuthoringInput;
358
+ /** In the order the source wrote them. */
359
+ readonly indexes?: readonly IndexNode[];
360
+ readonly fields: readonly FieldNode[];
361
+ readonly relations?: readonly RelationNode[];
362
+ readonly discriminator?: DiscriminatorNode;
363
+ readonly base?: VariantBaseNode;
364
+ }
365
+ interface ValueObjectNode {
366
+ readonly name: string;
367
+ readonly fields: readonly FieldNode[];
368
+ }
369
+ /** A MongoDB contract as plain data, with every name resolved, which `buildMongoContractFromDefinition` builds into a contract. */
370
+ interface ContractDefinition {
371
+ readonly target: TargetPackRef<'mongo', string>;
372
+ readonly extensions?: Readonly<Record<string, ExtensionPackRef<string, string>>>;
373
+ readonly defaultControlPolicy?: ControlPolicy;
374
+ readonly models: readonly ModelNode[];
375
+ readonly valueObjects?: readonly ValueObjectNode[];
376
+ readonly enums?: Readonly<Record<string, EnumTypeHandle>>;
377
+ /** Root name to model name. Derived from the models when absent. */
378
+ readonly roots?: Readonly<Record<string, string>>;
379
+ /** Whether each collection gets a validator derived from its models. Without validators, an enum a validator could not list is not refused. */
380
+ readonly writesCollectionValidators: boolean;
381
+ /** Warnings the source collected before the build, reported with the build's own. */
382
+ readonly warnings: readonly AuthoringWarning[] | undefined;
383
+ }
384
+ //#endregion
385
+ //#region src/build-contract.d.ts
386
+ /** A contract the builder built, with the warnings to report about it. */
387
+ interface BuiltContract {
388
+ readonly contract: MongoContract;
389
+ readonly warnings: readonly BuildWarning[];
390
+ }
391
+ /** Why the builder refused a definition, with the warnings to report about it all the same. */
392
+ interface BuildFailure {
393
+ readonly refusals: readonly BuildRefusal[];
394
+ readonly warnings: readonly BuildWarning[];
395
+ }
396
+ /**
397
+ * Builds a MongoDB contract from its plain-data definition, with the stack's codecs and data types. Every MongoDB family rule is checked here, and each refusal comes back as data keyed by the part of the definition it is about, for the source to report in its own terms.
398
+ */
399
+ declare function buildMongoContractFromDefinition(definition: ContractDefinition, codecLookup: CodecLookupWithDescriptors, dataTypes: DataTypeSupport): Result<BuiltContract, BuildFailure>;
400
+ //#endregion
401
+ //#region src/contract-dsl.d.ts
11
402
  type VariantSpec = {
12
403
  readonly value: string;
13
404
  };
14
405
  type StorageRelationSpec = {
15
406
  readonly field: string;
16
407
  };
17
- type StringListInput = string | readonly string[];
18
- type Present<T> = Exclude<T, undefined>;
19
- type EmptyObject = Record<never, never>;
20
- type Simplify<T> = { [K in keyof T]: T[K]; } & EmptyObject;
21
- type Flatten<T> = { [K in keyof T]: T[K]; };
22
- type StrictShape<Actual, Shape> = Actual & Shape & Record<Exclude<keyof Actual, keyof Shape>, never>;
23
- type UnionToIntersection<Union> = (Union extends unknown ? (value: Union) => void : never) extends ((value: infer Intersection) => void) ? Intersection : never;
24
- type ExtractCodecTypesFromPack<P> = P extends {
25
- __codecTypes?: infer CodecTypes;
26
- } ? CodecTypes extends Record<string, {
27
- output: unknown;
28
- }> ? CodecTypes : Record<string, never> : Record<string, never>;
29
- type MongoCodecTypes = {
30
- readonly 'mongo/objectId@1': {
31
- readonly input: string;
32
- readonly output: string;
33
- readonly traits: 'equality';
34
- };
35
- readonly 'mongo/string@1': {
36
- readonly input: string;
37
- readonly output: string;
38
- readonly traits: 'equality' | 'order' | 'textual';
39
- };
40
- readonly 'mongo/double@1': {
41
- readonly input: number;
42
- readonly output: number;
43
- readonly traits: 'equality' | 'order' | 'numeric';
44
- };
45
- readonly 'mongo/int32@1': {
46
- readonly input: number;
47
- readonly output: number;
48
- readonly traits: 'equality' | 'order' | 'numeric';
49
- };
50
- readonly 'mongo/bool@1': {
51
- readonly input: boolean;
52
- readonly output: boolean;
53
- readonly traits: 'equality' | 'boolean';
54
- };
55
- readonly 'mongo/date@1': {
56
- readonly input: Date;
57
- readonly output: Date;
58
- readonly traits: 'equality' | 'order';
59
- };
60
- readonly 'mongo/vector@1': {
61
- readonly input: readonly number[];
62
- readonly output: readonly number[];
63
- readonly traits: 'equality';
64
- };
65
- readonly 'mongo/int64@1': {
66
- readonly input: bigint;
67
- readonly output: bigint;
68
- readonly traits: 'equality' | 'order' | 'numeric';
69
- };
70
- readonly 'mongo/int64Number@1': {
71
- readonly input: number;
72
- readonly output: number;
73
- readonly traits: 'equality' | 'order' | 'numeric';
74
- };
75
- readonly 'mongo/decimal128@1': {
76
- readonly input: string;
77
- readonly output: string;
78
- readonly traits: 'equality' | 'order' | 'numeric';
79
- readonly keepsWrittenForm: true;
80
- };
81
- readonly 'mongo/binary@1': {
82
- readonly input: Uint8Array;
83
- readonly output: Uint8Array;
84
- readonly traits: 'equality';
85
- };
86
- readonly 'mongo/json@1': {
87
- readonly input: JsonValue;
88
- readonly output: JsonValue;
89
- readonly traits: never;
90
- };
91
- readonly 'mongo/bson@1': {
92
- readonly input: BsonInputValue;
93
- readonly output: BsonValue;
94
- readonly traits: never;
95
- };
96
- };
97
- type MergeExtensionCodecTypes<Packs extends Record<string, unknown>> = UnionToIntersection<{ [K in keyof Packs]: ExtractCodecTypesFromPack<Packs[K]>; }[keyof Packs]>;
98
- type MergeExtensionCodecTypesSafe<Packs> = Packs extends Record<string, unknown> ? keyof Packs extends never ? Record<never, never> : MergeExtensionCodecTypes<Packs> : Record<never, never>;
99
408
  interface FieldBuilder<Type extends ContractFieldType = ContractFieldType, Nullable extends boolean = boolean, Many extends false | {
100
409
  readonly elementNullable: boolean;
101
410
  } = false | {
@@ -110,11 +419,13 @@ interface FieldBuilder<Type extends ContractFieldType = ContractFieldType, Nulla
110
419
  readonly __storedName: StoredName;
111
420
  /** The generator function calls `.onCreate(...)` and `.onUpdate(...)` give, resolved by the field's codec when the contract is built. */
112
421
  readonly __generatorCalls?: FieldGeneratorCalls;
422
+ /** What the field preset that made the field contributed. */
423
+ readonly __presetContribution?: PresetContributionNode;
113
424
  /** Generates the field's value in the client when a document is created without one, with a call from `gen`, such as `gen.now()`. */
114
425
  onCreate(call: GeneratorFunctionCall): FieldBuilder<Type, Nullable, Many, Handle, WithGeneratedPhase<ExecutionDefaults, 'onCreate'>, StoredName>;
115
426
  /** Generates the field's value in the client every time a document is updated, with a call from `gen`, such as `gen.now()`. */
116
427
  onUpdate(call: GeneratorFunctionCall): FieldBuilder<Type, Nullable, Many, Handle, WithGeneratedPhase<ExecutionDefaults, 'onUpdate'>, StoredName>;
117
- readonly optional: FilledOnWrite<ExecutionDefaults> extends true ? (this: 'This field generates a value on write, so it cannot be optional') => never : () => FieldBuilder<Type, true, Many, Handle, ExecutionDefaults, StoredName>;
428
+ readonly optional: () => FieldBuilder<Type, true, Many, Handle, ExecutionDefaults, StoredName>;
118
429
  readonly many: FilledOnWrite<ExecutionDefaults> extends true ? (this: 'This field generates a value on write, so it cannot be a list') => never : {
119
430
  (): FieldBuilder<Type, Nullable, {
120
431
  readonly elementNullable: false;
@@ -205,6 +516,91 @@ type NamedModelBuilder<Name extends string = string, Fields extends Record<strin
205
516
  readonly field: string;
206
517
  } | undefined, Variants extends Record<string, VariantSpec> | undefined = Record<string, VariantSpec> | undefined> = ModelBuilder<Name, Fields, Relations, Collection, Owner, Base, StorageRelations, Discriminator, Variants>;
207
518
  type AnyModelBuilder = NamedModelBuilder;
519
+ type ModelNameInput = string | AnyModelBuilder;
520
+ //#endregion
521
+ //#region src/contract-builder.d.ts
522
+ type StringListInput = string | readonly string[];
523
+ type Present<T> = Exclude<T, undefined>;
524
+ type EmptyObject = Record<never, never>;
525
+ type Simplify<T> = { [K in keyof T]: T[K]; } & EmptyObject;
526
+ type Flatten<T> = { [K in keyof T]: T[K]; };
527
+ type StrictShape<Actual, Shape> = Actual & Shape & Record<Exclude<keyof Actual, keyof Shape>, never>;
528
+ type UnionToIntersection<Union> = (Union extends unknown ? (value: Union) => void : never) extends ((value: infer Intersection) => void) ? Intersection : never;
529
+ type ExtractCodecTypesFromPack<P> = P extends {
530
+ __codecTypes?: infer CodecTypes;
531
+ } ? CodecTypes extends Record<string, {
532
+ output: unknown;
533
+ }> ? CodecTypes : Record<string, never> : Record<string, never>;
534
+ type MongoCodecTypes = {
535
+ readonly 'mongo/objectId@1': {
536
+ readonly input: string;
537
+ readonly output: string;
538
+ readonly traits: 'equality';
539
+ };
540
+ readonly 'mongo/string@1': {
541
+ readonly input: string;
542
+ readonly output: string;
543
+ readonly traits: 'equality' | 'order' | 'textual';
544
+ };
545
+ readonly 'mongo/double@1': {
546
+ readonly input: number;
547
+ readonly output: number;
548
+ readonly traits: 'equality' | 'order' | 'numeric';
549
+ };
550
+ readonly 'mongo/int32@1': {
551
+ readonly input: number;
552
+ readonly output: number;
553
+ readonly traits: 'equality' | 'order' | 'numeric';
554
+ };
555
+ readonly 'mongo/bool@1': {
556
+ readonly input: boolean;
557
+ readonly output: boolean;
558
+ readonly traits: 'equality' | 'boolean';
559
+ };
560
+ readonly 'mongo/date@1': {
561
+ readonly input: Date;
562
+ readonly output: Date;
563
+ readonly traits: 'equality' | 'order';
564
+ };
565
+ readonly 'mongo/vector@1': {
566
+ readonly input: readonly number[];
567
+ readonly output: readonly number[];
568
+ readonly traits: 'equality';
569
+ };
570
+ readonly 'mongo/int64@1': {
571
+ readonly input: bigint;
572
+ readonly output: bigint;
573
+ readonly traits: 'equality' | 'order' | 'numeric';
574
+ };
575
+ readonly 'mongo/int64Number@1': {
576
+ readonly input: number;
577
+ readonly output: number;
578
+ readonly traits: 'equality' | 'order' | 'numeric';
579
+ };
580
+ readonly 'mongo/decimal128@1': {
581
+ readonly input: string;
582
+ readonly output: string;
583
+ readonly traits: 'equality' | 'order' | 'numeric';
584
+ readonly keepsWrittenForm: true;
585
+ };
586
+ readonly 'mongo/binary@1': {
587
+ readonly input: Uint8Array;
588
+ readonly output: Uint8Array;
589
+ readonly traits: 'equality';
590
+ };
591
+ readonly 'mongo/json@1': {
592
+ readonly input: JsonValue;
593
+ readonly output: JsonValue;
594
+ readonly traits: never;
595
+ };
596
+ readonly 'mongo/bson@1': {
597
+ readonly input: BsonInputValue;
598
+ readonly output: BsonValue;
599
+ readonly traits: never;
600
+ };
601
+ };
602
+ type MergeExtensionCodecTypes<Packs extends Record<string, unknown>> = UnionToIntersection<{ [K in keyof Packs]: ExtractCodecTypesFromPack<Packs[K]>; }[keyof Packs]>;
603
+ type MergeExtensionCodecTypesSafe<Packs> = Packs extends Record<string, unknown> ? keyof Packs extends never ? Record<never, never> : MergeExtensionCodecTypes<Packs> : Record<never, never>;
208
604
  type ExtractFieldReferenceName<T> = T extends FieldReference<string, infer FieldName extends string> ? FieldName : never;
209
605
  type ExtractModelName<T> = T extends NamedModelBuilder<infer Name> ? Name : never;
210
606
  type ExtractValueObjectName<T> = T extends NamedValueObjectBuilder<infer Name> ? Name : never;
@@ -221,7 +617,6 @@ type ModelStorageRelationsSection<T> = ExtractModelStorageRelations<T> extends R
221
617
  type RootModelCollection<T> = ExtractModelCollection<T> extends string ? ExtractModelOwner<T> extends undefined ? ExtractModelBase<T> extends undefined ? ExtractModelCollection<T> : never : never : never;
222
618
  type RootModelName<T> = RootModelCollection<T> extends never ? never : ExtractModelName<T>;
223
619
  type CollectionName<T> = ExtractModelCollection<T> extends string ? ExtractModelCollection<T> : never;
224
- type ModelNameInput = string | AnyModelBuilder;
225
620
  type ValueObjectNameInput = string | AnyValueObjectBuilder;
226
621
  type RelationTargetFieldsInput<TargetName extends string> = StringListInput | FieldReference<TargetName, string> | readonly FieldReference<TargetName, string>[];
227
622
  type NormalizeModelName<T> = T extends string ? T : ExtractModelName<T>;
@@ -439,7 +834,7 @@ type ContractScaffold<Family extends FamilyPackRef<string>, Target extends Targe
439
834
  readonly roots?: Roots;
440
835
  readonly defaultControlPolicy?: ControlPolicy;
441
836
  };
442
- type ContractDefinition<Family extends FamilyPackRef<string>, Target extends TargetPackRef<string, string>, Models extends Record<string, AnyModelBuilder> = Record<never, never>, ValueObjects extends Record<string, AnyValueObjectBuilder> = Record<never, never>, Extensions extends Record<string, ExtensionPackRef<string, string>> | undefined = undefined, Roots extends Record<string, ModelNameInput> | undefined = undefined> = ContractScaffold<Family, Target, Extensions, Roots> & {
837
+ type ContractInput<Family extends FamilyPackRef<string>, Target extends TargetPackRef<string, string>, Models extends Record<string, AnyModelBuilder> = Record<never, never>, ValueObjects extends Record<string, AnyValueObjectBuilder> = Record<never, never>, Extensions extends Record<string, ExtensionPackRef<string, string>> | undefined = undefined, Roots extends Record<string, ModelNameInput> | undefined = undefined> = ContractScaffold<Family, Target, Extensions, Roots> & {
443
838
  readonly models?: Models;
444
839
  readonly valueObjects?: ValueObjects;
445
840
  readonly enums?: Record<string, EnumTypeHandle>;
@@ -605,7 +1000,7 @@ type WithFamilyTarget<Input, F extends FamilyPackRef<string>, T extends TargetPa
605
1000
  * this is a plain overloaded function (not a factory returning an overloaded function)
606
1001
  * so no overloaded-function-return cast is needed.
607
1002
  *
608
- * Overload 1: definition form (no factory).
1003
+ * Overload 1: input form (no factory).
609
1004
  */
610
1005
  declare function buildBoundContract<const F extends FamilyPackRef<string>, const T extends TargetPackRef<string, string>, const Definition extends BoundDefinitionInput<Record<string, AnyModelBuilder>, Record<string, AnyValueObjectBuilder>, Record<string, ExtensionPackRef<string, string>> | undefined, Record<string, ModelNameInput> | undefined>>(family: F, target: T, definition: Definition, factory?: undefined): MongoContractResult<WithFamilyTarget<Definition, F, T>>;
611
1006
  /**
@@ -616,12 +1011,12 @@ declare function buildBoundContract<const F extends FamilyPackRef<string>, const
616
1011
  readonly valueObjects?: Record<string, AnyValueObjectBuilder>;
617
1012
  readonly roots?: Record<string, ModelNameInput> | undefined;
618
1013
  }>(family: F, target: T, definition: Definition, factory: (helpers: ContractAuthoringHelpers<F, T, NonNullable<Definition['extensions']>>) => Built): MongoContractResult<WithFamilyTarget<Definition & Built, F, T>>;
619
- declare function defineContract<const Definition extends ContractDefinition<FamilyPackRef<string>, TargetPackRef<string, string>, Record<string, AnyModelBuilder>, Record<string, AnyValueObjectBuilder>, Record<string, ExtensionPackRef<string, string>> | undefined, Record<string, ModelNameInput> | undefined>>(definition: Definition): MongoContractResult<Definition>;
1014
+ declare function defineContract<const Definition extends ContractInput<FamilyPackRef<string>, TargetPackRef<string, string>, Record<string, AnyModelBuilder>, Record<string, AnyValueObjectBuilder>, Record<string, ExtensionPackRef<string, string>> | undefined, Record<string, ModelNameInput> | undefined>>(definition: Definition): MongoContractResult<Definition>;
620
1015
  declare function defineContract<const Definition extends ContractScaffold<FamilyPackRef<string>, TargetPackRef<string, string>, Record<string, ExtensionPackRef<string, string>> | undefined, Record<string, ModelNameInput> | undefined>, const Built extends {
621
1016
  readonly models?: Record<string, AnyModelBuilder>;
622
1017
  readonly valueObjects?: Record<string, AnyValueObjectBuilder>;
623
1018
  readonly roots?: Record<string, ModelNameInput> | undefined;
624
1019
  }>(definition: Definition, factory: (helpers: ContractAuthoringHelpers<Definition['family'], Definition['target'], ScaffoldExtensions<Definition>>) => Built): MongoContractResult<Definition & Built>;
625
1020
  //#endregion
626
- export { member as C, valueObject as E, isEnumTypeHandle as S, rel as T, buildBoundContract as _, ContractFactory as a, field as b, EnumTypeHandle as c, FieldReference as d, ModelBuilder as f, bindEnumType as g, ValueObjectBuilder as h, ContractDefinition as i, ExtractCodecTypesFromPack as l, RelationBuilder as m, CodecTypeMap as n, ContractScaffold as o, MongoContractResult as p, ContractAuthoringHelpers as r, EnumMember as s, BoundEnumType as t, FieldBuilder as u, defineContract as v, model as w, index as x, enumType$1 as y };
627
- //# sourceMappingURL=contract-builder-ClL-xMK2.d.mts.map
1021
+ export { RelationNode as A, field as B, ModelBuilder as C, ReferenceRelationNode as D, PresetContributionNode as E, bindEnumType as F, rel as G, isEnumTypeHandle as H, buildBoundContract as I, valueObject as K, buildMongoContractFromDefinition as L, ValueObjectBuilder as M, ValueObjectNode as N, RefusalKey as O, VariantBaseNode as P, defineContract as R, IndexShapeRule as S, MongoContractResult as T, member as U, index as V, model as W, FieldBuilder as _, BuiltContract as a, FieldReference as b, ContractDefinition as c, ContractScaffold as d, DiscriminatorNode as f, ExtractCodecTypesFromPack as g, EnumTypeHandle as h, BuildWarning as i, RestatedFieldDifference as j, RelationBuilder as k, ContractFactory as l, EnumMember as m, BuildFailure as n, CodecTypeMap as o, EmbedRelationNode as p, BuildRefusal as r, ContractAuthoringHelpers as s, BoundEnumType as t, ContractInput as u, FieldKey as v, ModelNode as w, IndexNode as x, FieldNode as y, enumType$1 as z };
1022
+ //# sourceMappingURL=contract-builder-lqaM5w74.d.mts.map