@prisma/orm-family-sql 8.0.0-rc.18-dev.29 → 8.0.0-rc.18-dev.31

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 (164) hide show
  1. package/dist/{ast-CBO3PEJF.mjs → ast-BJs2669T.mjs} +47 -12
  2. package/dist/ast-BJs2669T.mjs.map +1 -0
  3. package/dist/{ast-Cq7uhA86.d.mts → ast-DB7g9Mh2.d.mts} +29 -2
  4. package/dist/ast-DB7g9Mh2.d.mts.map +1 -0
  5. package/dist/{attribute-specs-D9QcPJpj.d.mts → attribute-specs-BzBk62Jx.d.mts} +10 -4
  6. package/dist/{attribute-specs-D9QcPJpj.d.mts.map → attribute-specs-BzBk62Jx.d.mts.map} +1 -1
  7. package/dist/{authoring-entity-types-CZ-vdwYS-CSU65LVs.d.mts → authoring-entity-types-CZ-vdwYS-DzxLL9BC.d.mts} +2 -2
  8. package/dist/{authoring-entity-types-CZ-vdwYS-CSU65LVs.d.mts.map → authoring-entity-types-CZ-vdwYS-DzxLL9BC.d.mts.map} +1 -1
  9. package/dist/builder.d.mts +1 -1
  10. package/dist/builder__runtime.d.mts +1 -1
  11. package/dist/builder__runtime.mjs +1 -1
  12. package/dist/builder__types.d.mts +1 -1
  13. package/dist/{config-types-BJxHMPGt.mjs → config-types-BkcCqeAg.mjs} +2 -2
  14. package/dist/{config-types-BJxHMPGt.mjs.map → config-types-BkcCqeAg.mjs.map} +1 -1
  15. package/dist/{contract-builder-CrWbrtE4.mjs → contract-builder-D3XaKpyw.mjs} +96 -11
  16. package/dist/contract-builder-D3XaKpyw.mjs.map +1 -0
  17. package/dist/{contract-builder-D-RSOsnc.d.mts → contract-builder-GH-eCIpl.d.mts} +18 -2
  18. package/dist/contract-builder-GH-eCIpl.d.mts.map +1 -0
  19. package/dist/contract-prisma7__provider.d.mts +1 -3
  20. package/dist/contract-prisma7__provider.d.mts.map +1 -1
  21. package/dist/contract-prisma7__provider.mjs +41 -12
  22. package/dist/contract-prisma7__provider.mjs.map +1 -1
  23. package/dist/contract-psl.d.mts +5 -3
  24. package/dist/contract-psl.d.mts.map +1 -1
  25. package/dist/contract-psl.mjs +1 -1
  26. package/dist/contract-psl__attribute-specs.d.mts +1 -1
  27. package/dist/contract-psl__attribute-specs.mjs +1 -1
  28. package/dist/contract-psl__diagnostics.mjs +1 -1
  29. package/dist/contract-psl__provider.mjs +3 -2
  30. package/dist/contract-psl__provider.mjs.map +1 -1
  31. package/dist/contract-ts.d.mts +1 -1
  32. package/dist/contract-ts.mjs +3 -3
  33. package/dist/contract-ts__config-types.mjs +1 -1
  34. package/dist/contract-ts__contract-builder.d.mts +1 -1
  35. package/dist/contract-ts__contract-builder.mjs +2 -2
  36. package/dist/contract.d.mts +3 -3
  37. package/dist/contract.mjs +6 -6
  38. package/dist/contract__data-type.d.mts +2 -2
  39. package/dist/contract__data-type.mjs +3 -3
  40. package/dist/contract__foreign-key-materialization.d.mts +1 -1
  41. package/dist/contract__foreign-key-materialization.mjs +2 -2
  42. package/dist/contract__validators.mjs +1 -1
  43. package/dist/{control-C56VTBHJ.d.mts → control-Db07JiRl.d.mts} +93 -16
  44. package/dist/control-Db07JiRl.d.mts.map +1 -0
  45. package/dist/{control-CnKhMUQJ.mjs → control-DbHnaxDE.mjs} +17 -12
  46. package/dist/control-DbHnaxDE.mjs.map +1 -0
  47. package/dist/{control-adapter-DhX77V61.mjs → control-adapter-BX5COBWO.mjs} +2 -2
  48. package/dist/{control-adapter-DhX77V61.mjs.map → control-adapter-BX5COBWO.mjs.map} +1 -1
  49. package/dist/{control-adapter-BCopdpsT-BPHa2Frw.d.mts → control-adapter-Bn0uhplA-BnsQY8_q.d.mts} +5 -5
  50. package/dist/{control-adapter-BCopdpsT-BPHa2Frw.d.mts.map → control-adapter-Bn0uhplA-BnsQY8_q.d.mts.map} +1 -1
  51. package/dist/{control-adapter-ChJhp5vV.d.mts → control-adapter-DgxEVzhZ.d.mts} +4 -4
  52. package/dist/{control-adapter-ChJhp5vV.d.mts.map → control-adapter-DgxEVzhZ.d.mts.map} +1 -1
  53. package/dist/{data-type-C84xngfv.d.mts → data-type-DMk-fLAZ.d.mts} +38 -8
  54. package/dist/data-type-DMk-fLAZ.d.mts.map +1 -0
  55. package/dist/data-type-HNhSslwG.mjs +67 -0
  56. package/dist/data-type-HNhSslwG.mjs.map +1 -0
  57. package/dist/{db-BmrN9nRS-BzK96yVh.d.mts → db-BmrN9nRS-BGnRxI7X.d.mts} +2 -2
  58. package/dist/{db-BmrN9nRS-BzK96yVh.d.mts.map → db-BmrN9nRS-BGnRxI7X.d.mts.map} +1 -1
  59. package/dist/{derived-checks-sRZp_gTF-ermwhVGQ.mjs → derived-checks-B1qNxwBL-DFoGexId.mjs} +17 -5
  60. package/dist/derived-checks-B1qNxwBL-DFoGexId.mjs.map +1 -0
  61. package/dist/{diagnostics-C8YevjSU.mjs → diagnostics-xqFRhSin.mjs} +2 -2
  62. package/dist/{diagnostics-C8YevjSU.mjs.map → diagnostics-xqFRhSin.mjs.map} +1 -1
  63. package/dist/{diff-ClZvIVOl.d.mts → diff-BN_3K9lv.d.mts} +5 -5
  64. package/dist/{diff-ClZvIVOl.d.mts.map → diff-BN_3K9lv.d.mts.map} +1 -1
  65. package/dist/family.d.mts +11 -11
  66. package/dist/family.mjs +9 -8
  67. package/dist/family__control-adapter.d.mts +2 -2
  68. package/dist/family__control-adapter.mjs +1 -1
  69. package/dist/family__control.d.mts +3 -3
  70. package/dist/family__control.mjs +3 -3
  71. package/dist/family__diff.d.mts +1 -1
  72. package/dist/family__diff.mjs +1 -1
  73. package/dist/family__ir.mjs +1 -1
  74. package/dist/family__migration.d.mts +1 -1
  75. package/dist/family__pack.d.mts +2 -2
  76. package/dist/family__pack.mjs +8 -3
  77. package/dist/family__pack.mjs.map +1 -1
  78. package/dist/family__psl-build.d.mts +2 -2
  79. package/dist/family__psl-build.mjs +2 -2
  80. package/dist/family__psl-infer.d.mts +1 -1
  81. package/dist/family__psl-infer.mjs +1 -1
  82. package/dist/{foreign-key-materialization-C_FPLzj3.mjs → foreign-key-materialization-BPQqd0qF.mjs} +2 -2
  83. package/dist/{foreign-key-materialization-C_FPLzj3.mjs.map → foreign-key-materialization-BPQqd0qF.mjs.map} +1 -1
  84. package/dist/{foreign-key-materialization-3vQnPT_D.d.mts → foreign-key-materialization-bL-t2oPB.d.mts} +3 -3
  85. package/dist/{foreign-key-materialization-3vQnPT_D.d.mts.map → foreign-key-materialization-bL-t2oPB.d.mts.map} +1 -1
  86. package/dist/generator-functions-BoE7Lc9d-MgcgdnPZ.mjs +483 -0
  87. package/dist/generator-functions-BoE7Lc9d-MgcgdnPZ.mjs.map +1 -0
  88. package/dist/{index-B0hZw3uT.d.mts → index-Bw9Y19Js.d.mts} +3 -3
  89. package/dist/{index-B0hZw3uT.d.mts.map → index-Bw9Y19Js.d.mts.map} +1 -1
  90. package/dist/{index-equivalence-DswCiq5l-C6SAs-Yz.mjs → index-equivalence-DswCiq5l-D5VK0qTy.mjs} +2 -2
  91. package/dist/{index-equivalence-DswCiq5l-C6SAs-Yz.mjs.map → index-equivalence-DswCiq5l-D5VK0qTy.mjs.map} +1 -1
  92. package/dist/{interpreter-kQuqdyeP-B-rzJDWE.mjs → interpreter-Bk0xpelv-4laiO5dH.mjs} +10 -10
  93. package/dist/interpreter-Bk0xpelv-4laiO5dH.mjs.map +1 -0
  94. package/dist/{migration-RrhpTP1o.d.mts → migration-go6YP7-v.d.mts} +2 -2
  95. package/dist/{migration-RrhpTP1o.d.mts.map → migration-go6YP7-v.d.mts.map} +1 -1
  96. package/dist/orm-client.d.mts +3 -3
  97. package/dist/orm-client.mjs +1 -1
  98. package/dist/{pack-DNdZwm5w.d.mts → pack-DXEOdHaM.d.mts} +91 -4
  99. package/dist/pack-DXEOdHaM.d.mts.map +1 -0
  100. package/dist/{psl-build-BT8Ue6gd.mjs → psl-build-BYqCjsqi.mjs} +47 -138
  101. package/dist/psl-build-BYqCjsqi.mjs.map +1 -0
  102. package/dist/psl-build-C41KHJL_.d.mts +108 -0
  103. package/dist/psl-build-C41KHJL_.d.mts.map +1 -0
  104. package/dist/{psl-column-resolution-BCkhNzOK-DyfXnB-9.d.mts → psl-column-resolution-DNdqpUxt-C8BST0uW.d.mts} +3 -3
  105. package/dist/psl-column-resolution-DNdqpUxt-C8BST0uW.d.mts.map +1 -0
  106. package/dist/{psl-field-resolution-C1E-_fQq-VUYD8cnS.mjs → psl-field-resolution-BET6wtHZ-C_hO6YE1.mjs} +111 -47
  107. package/dist/psl-field-resolution-BET6wtHZ-C_hO6YE1.mjs.map +1 -0
  108. package/dist/{psl-infer-I75woGr4.d.mts → psl-infer-CALmBIqX.d.mts} +3 -3
  109. package/dist/{psl-infer-I75woGr4.d.mts.map → psl-infer-CALmBIqX.d.mts.map} +1 -1
  110. package/dist/{psl-infer-Bz34csvN.mjs → psl-infer-CaEnF_x3.mjs} +2 -2
  111. package/dist/{psl-infer-Bz34csvN.mjs.map → psl-infer-CaEnF_x3.mjs.map} +1 -1
  112. package/dist/relational-core.d.mts +2 -2
  113. package/dist/relational-core.mjs +2 -2
  114. package/dist/relational-core__ast.d.mts +2 -2
  115. package/dist/relational-core__ast.mjs +2 -2
  116. package/dist/runtime.d.mts +3 -3
  117. package/dist/runtime__internal__prepared-query.d.mts +1 -1
  118. package/dist/{schema-differ-DmP74bB8-CIQ17HTk.d.mts → schema-differ-DmP74bB8-BfEQ_9cY.d.mts} +3 -3
  119. package/dist/{schema-differ-DmP74bB8-CIQ17HTk.d.mts.map → schema-differ-DmP74bB8-BfEQ_9cY.d.mts.map} +1 -1
  120. package/dist/schema-ir.d.mts +1 -1
  121. package/dist/schema-ir.mjs +1 -1
  122. package/dist/schema-ir__types.d.mts +2 -2
  123. package/dist/schema-ir__types.mjs +1 -1
  124. package/dist/{schema-verify-BwRdzbHb-nDeE75xa.mjs → schema-verify-BwRdzbHb-BzdgK4xv.mjs} +2 -2
  125. package/dist/{schema-verify-BwRdzbHb-nDeE75xa.mjs.map → schema-verify-BwRdzbHb-BzdgK4xv.mjs.map} +1 -1
  126. package/dist/{sql-contract-serializer-sMY3prTx-BT6HdXAE.mjs → sql-contract-serializer-sMY3prTx-D-xfnqyD.mjs} +2 -2
  127. package/dist/{sql-contract-serializer-sMY3prTx-BT6HdXAE.mjs.map → sql-contract-serializer-sMY3prTx-D-xfnqyD.mjs.map} +1 -1
  128. package/dist/{sql-data-type-BSi0X331-OXbBFXDh.mjs → sql-data-type-D5cI3M07-DIcPP8s1.mjs} +26 -9
  129. package/dist/sql-data-type-D5cI3M07-DIcPP8s1.mjs.map +1 -0
  130. package/dist/{transaction-state-DR3nKTmH-DbyhuL-z.d.mts → transaction-state-DR3nKTmH-D_pb9QgR.d.mts} +2 -2
  131. package/dist/{transaction-state-DR3nKTmH-DbyhuL-z.d.mts.map → transaction-state-DR3nKTmH-D_pb9QgR.d.mts.map} +1 -1
  132. package/dist/types-D_nlUp-1.d.mts +1 -0
  133. package/dist/{types-B3AHHPDh-BHh-89fY.d.mts → types-DiD6BqoN-ZF53hwPp.d.mts} +11 -3
  134. package/dist/types-DiD6BqoN-ZF53hwPp.d.mts.map +1 -0
  135. package/dist/{types-DKU4GeqD-CUClXCme.d.mts → types-DlFdMaDJ-BEDwj-Qv.d.mts} +5 -5
  136. package/dist/{types-DKU4GeqD-CUClXCme.d.mts.map → types-DlFdMaDJ-BEDwj-Qv.d.mts.map} +1 -1
  137. package/dist/{types-egs_vme1-DRhYFwIT.mjs → types-DoyiTsjg-DDTmYyNY.mjs} +22 -2
  138. package/dist/types-DoyiTsjg-DDTmYyNY.mjs.map +1 -0
  139. package/dist/{validators-BCRydDG7.mjs → validators-BlONfdFH.mjs} +3 -3
  140. package/dist/{validators-BCRydDG7.mjs.map → validators-BlONfdFH.mjs.map} +1 -1
  141. package/package.json +18 -18
  142. package/dist/ast-CBO3PEJF.mjs.map +0 -1
  143. package/dist/ast-Cq7uhA86.d.mts.map +0 -1
  144. package/dist/authoring-type-constructors-0Iv2zdwS-D4LlP1q2.mjs +0 -266
  145. package/dist/authoring-type-constructors-0Iv2zdwS-D4LlP1q2.mjs.map +0 -1
  146. package/dist/contract-builder-CrWbrtE4.mjs.map +0 -1
  147. package/dist/contract-builder-D-RSOsnc.d.mts.map +0 -1
  148. package/dist/control-C56VTBHJ.d.mts.map +0 -1
  149. package/dist/control-CnKhMUQJ.mjs.map +0 -1
  150. package/dist/data-type-C84xngfv.d.mts.map +0 -1
  151. package/dist/data-type-DKk8Unnz.mjs +0 -20
  152. package/dist/data-type-DKk8Unnz.mjs.map +0 -1
  153. package/dist/derived-checks-sRZp_gTF-ermwhVGQ.mjs.map +0 -1
  154. package/dist/interpreter-kQuqdyeP-B-rzJDWE.mjs.map +0 -1
  155. package/dist/pack-DNdZwm5w.d.mts.map +0 -1
  156. package/dist/psl-build-BT8Ue6gd.mjs.map +0 -1
  157. package/dist/psl-build-DU55bjfu.d.mts +0 -157
  158. package/dist/psl-build-DU55bjfu.d.mts.map +0 -1
  159. package/dist/psl-column-resolution-BCkhNzOK-DyfXnB-9.d.mts.map +0 -1
  160. package/dist/psl-field-resolution-C1E-_fQq-VUYD8cnS.mjs.map +0 -1
  161. package/dist/sql-data-type-BSi0X331-OXbBFXDh.mjs.map +0 -1
  162. package/dist/types-B3AHHPDh-BHh-89fY.d.mts.map +0 -1
  163. package/dist/types-BGERR8XF.d.mts +0 -1
  164. package/dist/types-egs_vme1-DRhYFwIT.mjs.map +0 -1
@@ -1,16 +1,16 @@
1
1
  import { a as SqlNamespaceBase, c as SqlNamespaceInput } from "./sql-storage-tZhB8nS5-8NSWT0TW.mjs";
2
2
  import "./types-B2Dee96w.mjs";
3
- import { t as ColumnDescriptor } from "./psl-column-resolution-BCkhNzOK-DyfXnB-9.mjs";
3
+ import { t as ColumnDescriptor } from "./psl-column-resolution-DNdqpUxt-C8BST0uW.mjs";
4
4
  import { AuthoringContributions, DataTypeSupport } from "@prisma/orm-framework/components/authoring";
5
5
  import { CodecLookupWithDescriptors } from "@prisma/orm-framework/components/codec";
6
6
  import { Contract } from "@prisma/orm-framework/contract/types";
7
- import { CapabilityMatrix, ExtensionPackRef, TargetPackRef } from "@prisma/orm-framework/components/components";
7
+ import { CapabilityMatrix, ExtensionPackRef, GeneratorFunctionRegistry, TargetPackRef } from "@prisma/orm-framework/components/components";
8
8
  import { DocumentAst, PslSources } from "@prisma/orm-framework/psl-parser/syntax";
9
9
  import { Result } from "@prisma/orm-framework/utils/result";
10
10
  import { Binder, SymbolTable } from "@prisma/orm-framework/psl-parser";
11
11
  import { ControlMutationDefaults, ControlMutationDefaults as ControlMutationDefaults$1, DefaultFunctionLoweringContext, MutationDefaultGeneratorDescriptor } from "@prisma/orm-framework/components/control";
12
12
  import { ContractSourceDiagnostic, ContractSourceDiagnostics } from "@prisma/orm-framework/config/config-types";
13
- //#region ../../../2-sql/2-authoring/contract-psl/dist/interpreter-DuGgWoC5.d.mts
13
+ //#region ../../../2-sql/2-authoring/contract-psl/dist/interpreter-CdBGK6hi.d.mts
14
14
  //#region src/interpreter.d.ts
15
15
  interface InterpretPslDocumentToSqlContractInput {
16
16
  readonly documents: readonly DocumentAst[];
@@ -22,6 +22,8 @@ interface InterpretPslDocumentToSqlContractInput {
22
22
  readonly composedExtensions?: readonly string[];
23
23
  readonly composedExtensionPackRefs?: readonly ExtensionPackRef<'sql', string>[];
24
24
  readonly controlMutationDefaults?: ControlMutationDefaults$1;
25
+ /** The stack's generator functions, which `@onCreate(fn())` and `@onUpdate(fn())` resolve through. */
26
+ readonly generatorFunctions: GeneratorFunctionRegistry;
25
27
  /** The stack's data types with their authoring entries. ADR 254. */
26
28
  readonly dataTypes: DataTypeSupport;
27
29
  readonly authoringContributions?: AuthoringContributions;
@@ -1 +1 @@
1
- {"version":3,"file":"contract-psl.d.mts","names":[],"sources":["../../../../2-sql/2-authoring/contract-psl/dist/interpreter-DuGgWoC5.d.mts"],"mappings":";;;;;;;;;;;;;;UAYU;WACC,oBAAoB;WACpB,aAAa;WACb,SAAS;WACT,QAAQ;WACR,QAAQ;WACR,yBAAyB,oBAAoB;WAC7C;WACA,qCAAqC;WACrC,0BAA0B;;WAE1B,WAAW;WACX,yBAAyB;;;;;;;;;;WAUzB,4BAA4B,oBAAoB;;WAEhD,kBAAkB,OAAO,sBAAsB;WAC/C,aAAa;WACb,2BAA2B;;WAE3B;aACE;aACA;;WAEF,cAAc;;iBASR,kCAAkC,OAAO,yCAAyC,OAAO,UAAU"}
1
+ {"version":3,"file":"contract-psl.d.mts","names":[],"sources":["../../../../2-sql/2-authoring/contract-psl/dist/interpreter-CdBGK6hi.d.mts"],"mappings":";;;;;;;;;;;;;;UAYU;WACC,oBAAoB;WACpB,aAAa;WACb,SAAS;WACT,QAAQ;WACR,QAAQ;WACR,yBAAyB,oBAAoB;WAC7C;WACA,qCAAqC;WACrC,0BAA0B;;WAE1B,oBAAoB;;WAEpB,WAAW;WACX,yBAAyB;;;;;;;;;;WAUzB,4BAA4B,oBAAoB;;WAEhD,kBAAkB,OAAO,sBAAsB;WAC/C,aAAa;WACb,2BAA2B;;WAE3B;aACE;aACA;;WAEF,cAAc;;iBASR,kCAAkC,OAAO,yCAAyC,OAAO,UAAU"}
@@ -1,2 +1,2 @@
1
- import { i as interpretPslDocumentToSqlContract } from "./interpreter-kQuqdyeP-B-rzJDWE.mjs";
1
+ import { i as interpretPslDocumentToSqlContract } from "./interpreter-Bk0xpelv-4laiO5dH.mjs";
2
2
  export { interpretPslDocumentToSqlContract };
@@ -1,2 +1,2 @@
1
- import { a as ParsedNullLiteral, i as EnumMemberListDefault, n as DefaultFunctionCall, o as sqlAttributeSpecs, r as EnumMemberDefault, t as describeUnsupportedSqlAttribute } from "./attribute-specs-D9QcPJpj.mjs";
1
+ import { a as ParsedNullLiteral, i as EnumMemberListDefault, n as DefaultFunctionCall, o as sqlAttributeSpecs, r as EnumMemberDefault, t as describeUnsupportedSqlAttribute } from "./attribute-specs-BzBk62Jx.mjs";
2
2
  export { type DefaultFunctionCall, type EnumMemberDefault, type EnumMemberListDefault, type ParsedNullLiteral, describeUnsupportedSqlAttribute, sqlAttributeSpecs };
@@ -1,2 +1,2 @@
1
- import { a as describeUnsupportedSqlAttribute, v as sqlAttributeSpecs } from "./psl-field-resolution-C1E-_fQq-VUYD8cnS.mjs";
1
+ import { a as describeUnsupportedSqlAttribute, v as sqlAttributeSpecs } from "./psl-field-resolution-BET6wtHZ-C_hO6YE1.mjs";
2
2
  export { describeUnsupportedSqlAttribute, sqlAttributeSpecs };
@@ -1,2 +1,2 @@
1
- import { t as describeUnresolvedSqlType } from "./diagnostics-C8YevjSU.mjs";
1
+ import { t as describeUnresolvedSqlType } from "./diagnostics-xqFRhSin.mjs";
2
2
  export { describeUnresolvedSqlType };
@@ -1,5 +1,5 @@
1
- import { t as applySqlSpecifierControlPolicy } from "./derived-checks-sRZp_gTF-ermwhVGQ.mjs";
2
- import { i as interpretPslDocumentToSqlContract } from "./interpreter-kQuqdyeP-B-rzJDWE.mjs";
1
+ import { t as applySqlSpecifierControlPolicy } from "./derived-checks-B1qNxwBL-DFoGexId.mjs";
2
+ import { i as interpretPslDocumentToSqlContract } from "./interpreter-Bk0xpelv-4laiO5dH.mjs";
3
3
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
4
4
  import { collectScalarTypeConstructors } from "@prisma/orm-framework/components/authoring";
5
5
  import { readFile } from "node:fs/promises";
@@ -65,6 +65,7 @@ function prismaContract(schemaPath, options) {
65
65
  composedExtensionContracts: context.composedExtensionContracts,
66
66
  ...ifDefined("composedExtensionPackRefs", options.composedExtensionPackRefs?.length ? options.composedExtensionPackRefs : void 0),
67
67
  controlMutationDefaults: context.controlMutationDefaults,
68
+ generatorFunctions: context.generatorFunctions,
68
69
  createNamespace: options.createNamespace,
69
70
  capabilities: context.capabilities,
70
71
  codecLookup: context.codecLookup,
@@ -1 +1 @@
1
- {"version":3,"file":"contract-psl__provider.mjs","names":[],"sources":["../../../../2-sql/2-authoring/contract-psl/dist/provider.mjs"],"sourcesContent":["import { n as interpretPslDocumentToSqlContract } from \"./interpreter-kQuqdyeP.mjs\";\nimport { buildSymbolTable, createBinder, isPrismaNextSchema, mapPslDiagnostics } from \"@internal/psl-parser\";\nimport { applySqlSpecifierControlPolicy } from \"@internal/sql-contract-ts/contract-builder\";\nimport { assertDefined } from \"@internal/utils/assertions\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { collectScalarTypeConstructors } from \"@internal/framework-components/authoring\";\nimport { withSeedDiagnostics } from \"@internal/psl-parser/interpret\";\nimport { parse } from \"@internal/psl-parser/syntax\";\nimport { notOk, ok } from \"@internal/utils/result\";\nimport { readFile } from \"node:fs/promises\";\nimport { basename, extname } from \"pathe\";\nimport { isDynamicPattern } from \"tinyglobby\";\n//#region src/provider.ts\n/**\n* The directory portion of `pattern` before its first glob-magic segment,\n* joined back with `/` (e.g. a `prisma` directory holding a recursive\n* `.prisma` glob derives `./prisma`). A rootless pattern with no static\n* segments yields `''`.\n*/\nfunction staticPrefixDirectory(pattern) {\n\tconst staticSegments = [];\n\tfor (const segment of pattern.replaceAll(\"\\\\\", \"/\").split(\"/\")) {\n\t\tif (isDynamicPattern(segment)) break;\n\t\tstaticSegments.push(segment);\n\t}\n\treturn staticSegments.join(\"/\");\n}\n/**\n* Derives the emit output path from the schema input path so artefacts land\n* colocated with the source (e.g. `src/contract/schema.prisma` →\n* `src/contract/contract.json`). A glob-shaped path derives from its static\n* prefix directory instead (a recursive glob under `prisma` derives\n* `./prisma/contract.json`). The provider owns this because it is the only\n* layer that knows the input path; the upstream `normalizeContractConfig`\n* default is a last-resort fallback for providers that don't carry one.\n*/\nfunction defaultOutputFromSchemaPath(schemaPath) {\n\tif (isDynamicPattern(schemaPath)) {\n\t\tconst prefix = staticPrefixDirectory(schemaPath);\n\t\treturn prefix.length === 0 ? \"contract.json\" : `${prefix}/contract.json`;\n\t}\n\tconst ext = extname(schemaPath);\n\tif (ext.length === 0) return `${schemaPath}.json`;\n\tconst base = schemaPath.slice(0, -ext.length);\n\tif (basename(base) === \"schema\") return `${base.slice(0, -6)}contract.json`;\n\treturn `${base}.json`;\n}\nfunction prismaContract(schemaPath, options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"psl\",\n\t\t\tinputs: [schemaPath],\n\t\t\tinterpret(input, context) {\n\t\t\t\tconst scalarColumnDescriptors = collectScalarTypeConstructors(context.authoringContributions.type);\n\t\t\t\treturn interpretPslDocumentToSqlContract({\n\t\t\t\t\tdocuments: input.documents,\n\t\t\t\t\tsymbolTable: input.symbolTable,\n\t\t\t\t\tsources: input.sources,\n\t\t\t\t\tbinder: input.binder,\n\t\t\t\t\tseedDiagnostics: [],\n\t\t\t\t\ttarget: options.target,\n\t\t\t\t\tauthoringContributions: context.authoringContributions,\n\t\t\t\t\tscalarColumnDescriptors,\n\t\t\t\t\t...ifDefined(\"composedExtensions\", context.composedExtensions.length > 0 ? [...context.composedExtensions] : void 0),\n\t\t\t\t\tcomposedExtensionContracts: context.composedExtensionContracts,\n\t\t\t\t\t...ifDefined(\"composedExtensionPackRefs\", options.composedExtensionPackRefs?.length ? options.composedExtensionPackRefs : void 0),\n\t\t\t\t\tcontrolMutationDefaults: context.controlMutationDefaults,\n\t\t\t\t\tcreateNamespace: options.createNamespace,\n\t\t\t\t\tcapabilities: context.capabilities,\n\t\t\t\t\tcodecLookup: context.codecLookup,\n\t\t\t\t\tdataTypes: context.dataTypes,\n\t\t\t\t\t...ifDefined(\"enumInferenceCodecs\", options.enumInferenceCodecs)\n\t\t\t\t});\n\t\t\t},\n\t\t\tasync load(context) {\n\t\t\t\tconst candidates = [...new Set(context.resolvedInputs)].sort();\n\t\t\t\tif (candidates.length === 0) return notOk({\n\t\t\t\t\tsummary: \"No schema files matched the configured contract source\",\n\t\t\t\t\tdiagnostics: [{\n\t\t\t\t\t\tcode: \"PSL_NO_SCHEMA_FILES_MATCHED\",\n\t\t\t\t\t\tmessage: `No files matched the configured pattern \"${schemaPath}\"`,\n\t\t\t\t\t\tsourceId: schemaPath\n\t\t\t\t\t}]\n\t\t\t\t});\n\t\t\t\tconst readDiagnostics = [];\n\t\t\t\tconst members = [];\n\t\t\t\tconst undirected = [];\n\t\t\t\tfor (const path of candidates) {\n\t\t\t\t\tlet text;\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttext = await readFile(path, \"utf-8\");\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tconst message = String(error);\n\t\t\t\t\t\treadDiagnostics.push({\n\t\t\t\t\t\t\tcode: \"PSL_SCHEMA_READ_FAILED\",\n\t\t\t\t\t\t\tmessage,\n\t\t\t\t\t\t\tsourceId: path\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (isPrismaNextSchema(text)) members.push({\n\t\t\t\t\t\tpath,\n\t\t\t\t\t\ttext\n\t\t\t\t\t});\n\t\t\t\t\telse undirected.push(path);\n\t\t\t\t}\n\t\t\t\tif (members.length === 0) {\n\t\t\t\t\tif (undirected.length === 0) return notOk({\n\t\t\t\t\t\tsummary: \"Failed to read Prisma schema files\",\n\t\t\t\t\t\tdiagnostics: readDiagnostics\n\t\t\t\t\t});\n\t\t\t\t\treturn notOk({\n\t\t\t\t\t\tsummary: \"No schema file carries the \\\"// use prisma-8\\\" directive\",\n\t\t\t\t\t\tdiagnostics: [...readDiagnostics, {\n\t\t\t\t\t\t\tcode: \"PSL_NO_OPTED_IN_SCHEMA_FILES\",\n\t\t\t\t\t\t\tmessage: `None of the matched files carry the \"// use prisma-8\" directive: ${undirected.join(\", \")}`,\n\t\t\t\t\t\t\tsourceId: schemaPath\n\t\t\t\t\t\t}]\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tconst parsed = members.map(({ path, text }) => parse(text, path));\n\t\t\t\tconst documents = parsed.map(({ document }) => document);\n\t\t\t\tconst [firstSources, ...restSources] = parsed.map(({ sources }) => sources);\n\t\t\t\tassertDefined(firstSources, \"prismaContract requires at least one parsed schema file\");\n\t\t\t\tconst sources = firstSources.merge(...restSources);\n\t\t\t\tconst seedDiagnostics = [...readDiagnostics, ...mapPslDiagnostics(parsed.flatMap(({ diagnostics }) => diagnostics), sources)];\n\t\t\t\tconst { symbolTable, diagnostics: symbolTableDiagnostics } = buildSymbolTable({\n\t\t\t\t\tdocuments,\n\t\t\t\t\tsources,\n\t\t\t\t\tdefaultNamespaceId: context.defaultNamespaceId\n\t\t\t\t});\n\t\t\t\tconst { binder, diagnostics: binderDiagnostics } = createBinder({\n\t\t\t\t\tsymbolTable,\n\t\t\t\t\tsources,\n\t\t\t\t\tcontext\n\t\t\t\t});\n\t\t\t\tconst interpreted = withSeedDiagnostics(this.interpret({\n\t\t\t\t\tdocuments,\n\t\t\t\t\tsources,\n\t\t\t\t\tsymbolTable,\n\t\t\t\t\tbinder\n\t\t\t\t}, context), [...seedDiagnostics, ...mapPslDiagnostics([...symbolTableDiagnostics, ...binderDiagnostics], sources)]);\n\t\t\t\tif (!interpreted.ok) return interpreted;\n\t\t\t\treturn ok(applySqlSpecifierControlPolicy(interpreted.value, options.defaultControlPolicy, options.createNamespace));\n\t\t\t}\n\t\t},\n\t\toutput: options.output ?? defaultOutputFromSchemaPath(schemaPath)\n\t};\n}\n//#endregion\nexport { prismaContract };\n\n//# sourceMappingURL=provider.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAmBA,SAAS,sBAAsB,SAAS;CACvC,MAAM,iBAAiB,CAAC;CACxB,KAAK,MAAM,WAAW,QAAQ,WAAW,MAAM,GAAG,CAAC,CAAC,MAAM,GAAG,GAAG;EAC/D,IAAI,iBAAiB,OAAO,GAAG;EAC/B,eAAe,KAAK,OAAO;CAC5B;CACA,OAAO,eAAe,KAAK,GAAG;AAC/B;;;;;;;;;;AAUA,SAAS,4BAA4B,YAAY;CAChD,IAAI,iBAAiB,UAAU,GAAG;EACjC,MAAM,SAAS,sBAAsB,UAAU;EAC/C,OAAO,OAAO,WAAW,IAAI,kBAAkB,GAAG,OAAO;CAC1D;CACA,MAAM,MA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AAiB,GAAG,OAAO,CAAC,CAAC;IACnH,IAAI,CAAC,YAAY,IAAI,OAAO;IAC5B,OAAO,GAAG,+BAA+B,YAAY,OAAO,QAAQ,sBAAsB,QAAQ,eAAe,CAAC;GACnH;EACD;EACA,QAAQ,QAAQ,UAAU,4BAA4B,UAAU;CACjE;AACD"}
1
+ {"version":3,"file":"contract-psl__provider.mjs","names":[],"sources":["../../../../2-sql/2-authoring/contract-psl/dist/provider.mjs"],"sourcesContent":["import { n as interpretPslDocumentToSqlContract } from \"./interpreter-Bk0xpelv.mjs\";\nimport { buildSymbolTable, createBinder, isPrismaNextSchema, mapPslDiagnostics } from \"@internal/psl-parser\";\nimport { applySqlSpecifierControlPolicy } from \"@internal/sql-contract-ts/contract-builder\";\nimport { assertDefined } from \"@internal/utils/assertions\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { collectScalarTypeConstructors } from \"@internal/framework-components/authoring\";\nimport { withSeedDiagnostics } from \"@internal/psl-parser/interpret\";\nimport { parse } from \"@internal/psl-parser/syntax\";\nimport { notOk, ok } from \"@internal/utils/result\";\nimport { readFile } from \"node:fs/promises\";\nimport { basename, extname } from \"pathe\";\nimport { isDynamicPattern } from \"tinyglobby\";\n//#region src/provider.ts\n/**\n* The directory portion of `pattern` before its first glob-magic segment,\n* joined back with `/` (e.g. a `prisma` directory holding a recursive\n* `.prisma` glob derives `./prisma`). A rootless pattern with no static\n* segments yields `''`.\n*/\nfunction staticPrefixDirectory(pattern) {\n\tconst staticSegments = [];\n\tfor (const segment of pattern.replaceAll(\"\\\\\", \"/\").split(\"/\")) {\n\t\tif (isDynamicPattern(segment)) break;\n\t\tstaticSegments.push(segment);\n\t}\n\treturn staticSegments.join(\"/\");\n}\n/**\n* Derives the emit output path from the schema input path so artefacts land\n* colocated with the source (e.g. `src/contract/schema.prisma` →\n* `src/contract/contract.json`). A glob-shaped path derives from its static\n* prefix directory instead (a recursive glob under `prisma` derives\n* `./prisma/contract.json`). The provider owns this because it is the only\n* layer that knows the input path; the upstream `normalizeContractConfig`\n* default is a last-resort fallback for providers that don't carry one.\n*/\nfunction defaultOutputFromSchemaPath(schemaPath) {\n\tif (isDynamicPattern(schemaPath)) {\n\t\tconst prefix = staticPrefixDirectory(schemaPath);\n\t\treturn prefix.length === 0 ? \"contract.json\" : `${prefix}/contract.json`;\n\t}\n\tconst ext = extname(schemaPath);\n\tif (ext.length === 0) return `${schemaPath}.json`;\n\tconst base = schemaPath.slice(0, -ext.length);\n\tif (basename(base) === \"schema\") return `${base.slice(0, -6)}contract.json`;\n\treturn `${base}.json`;\n}\nfunction prismaContract(schemaPath, options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"psl\",\n\t\t\tinputs: [schemaPath],\n\t\t\tinterpret(input, context) {\n\t\t\t\tconst scalarColumnDescriptors = collectScalarTypeConstructors(context.authoringContributions.type);\n\t\t\t\treturn interpretPslDocumentToSqlContract({\n\t\t\t\t\tdocuments: input.documents,\n\t\t\t\t\tsymbolTable: input.symbolTable,\n\t\t\t\t\tsources: input.sources,\n\t\t\t\t\tbinder: input.binder,\n\t\t\t\t\tseedDiagnostics: [],\n\t\t\t\t\ttarget: options.target,\n\t\t\t\t\tauthoringContributions: context.authoringContributions,\n\t\t\t\t\tscalarColumnDescriptors,\n\t\t\t\t\t...ifDefined(\"composedExtensions\", context.composedExtensions.length > 0 ? [...context.composedExtensions] : void 0),\n\t\t\t\t\tcomposedExtensionContracts: context.composedExtensionContracts,\n\t\t\t\t\t...ifDefined(\"composedExtensionPackRefs\", options.composedExtensionPackRefs?.length ? options.composedExtensionPackRefs : void 0),\n\t\t\t\t\tcontrolMutationDefaults: context.controlMutationDefaults,\n\t\t\t\t\tgeneratorFunctions: context.generatorFunctions,\n\t\t\t\t\tcreateNamespace: options.createNamespace,\n\t\t\t\t\tcapabilities: context.capabilities,\n\t\t\t\t\tcodecLookup: context.codecLookup,\n\t\t\t\t\tdataTypes: context.dataTypes,\n\t\t\t\t\t...ifDefined(\"enumInferenceCodecs\", options.enumInferenceCodecs)\n\t\t\t\t});\n\t\t\t},\n\t\t\tasync load(context) {\n\t\t\t\tconst candidates = [...new Set(context.resolvedInputs)].sort();\n\t\t\t\tif (candidates.length === 0) return notOk({\n\t\t\t\t\tsummary: \"No schema files matched the configured contract source\",\n\t\t\t\t\tdiagnostics: [{\n\t\t\t\t\t\tcode: \"PSL_NO_SCHEMA_FILES_MATCHED\",\n\t\t\t\t\t\tmessage: `No files matched the configured pattern \"${schemaPath}\"`,\n\t\t\t\t\t\tsourceId: schemaPath\n\t\t\t\t\t}]\n\t\t\t\t});\n\t\t\t\tconst readDiagnostics = [];\n\t\t\t\tconst members = [];\n\t\t\t\tconst undirected = [];\n\t\t\t\tfor (const path of candidates) {\n\t\t\t\t\tlet text;\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttext = await readFile(path, \"utf-8\");\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tconst message = String(error);\n\t\t\t\t\t\treadDiagnostics.push({\n\t\t\t\t\t\t\tcode: \"PSL_SCHEMA_READ_FAILED\",\n\t\t\t\t\t\t\tmessage,\n\t\t\t\t\t\t\tsourceId: path\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (isPrismaNextSchema(text)) members.push({\n\t\t\t\t\t\tpath,\n\t\t\t\t\t\ttext\n\t\t\t\t\t});\n\t\t\t\t\telse undirected.push(path);\n\t\t\t\t}\n\t\t\t\tif (members.length === 0) {\n\t\t\t\t\tif (undirected.length === 0) return notOk({\n\t\t\t\t\t\tsummary: \"Failed to read Prisma schema files\",\n\t\t\t\t\t\tdiagnostics: readDiagnostics\n\t\t\t\t\t});\n\t\t\t\t\treturn notOk({\n\t\t\t\t\t\tsummary: \"No schema file carries the \\\"// use prisma-8\\\" directive\",\n\t\t\t\t\t\tdiagnostics: [...readDiagnostics, {\n\t\t\t\t\t\t\tcode: \"PSL_NO_OPTED_IN_SCHEMA_FILES\",\n\t\t\t\t\t\t\tmessage: `None of the matched files carry the \"// use prisma-8\" directive: ${undirected.join(\", \")}`,\n\t\t\t\t\t\t\tsourceId: schemaPath\n\t\t\t\t\t\t}]\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tconst parsed = members.map(({ path, text }) => parse(text, path));\n\t\t\t\tconst documents = parsed.map(({ document }) => document);\n\t\t\t\tconst [firstSources, ...restSources] = parsed.map(({ sources }) => sources);\n\t\t\t\tassertDefined(firstSources, \"prismaContract requires at least one parsed schema file\");\n\t\t\t\tconst sources = firstSources.merge(...restSources);\n\t\t\t\tconst seedDiagnostics = [...readDiagnostics, ...mapPslDiagnostics(parsed.flatMap(({ diagnostics }) => diagnostics), sources)];\n\t\t\t\tconst { symbolTable, diagnostics: symbolTableDiagnostics } = buildSymbolTable({\n\t\t\t\t\tdocuments,\n\t\t\t\t\tsources,\n\t\t\t\t\tdefaultNamespaceId: context.defaultNamespaceId\n\t\t\t\t});\n\t\t\t\tconst { binder, diagnostics: binderDiagnostics } = createBinder({\n\t\t\t\t\tsymbolTable,\n\t\t\t\t\tsources,\n\t\t\t\t\tcontext\n\t\t\t\t});\n\t\t\t\tconst interpreted = withSeedDiagnostics(this.interpret({\n\t\t\t\t\tdocuments,\n\t\t\t\t\tsources,\n\t\t\t\t\tsymbolTable,\n\t\t\t\t\tbinder\n\t\t\t\t}, context), [...seedDiagnostics, ...mapPslDiagnostics([...symbolTableDiagnostics, ...binderDiagnostics], sources)]);\n\t\t\t\tif (!interpreted.ok) return interpreted;\n\t\t\t\treturn ok(applySqlSpecifierControlPolicy(interpreted.value, options.defaultControlPolicy, options.createNamespace));\n\t\t\t}\n\t\t},\n\t\toutput: options.output ?? defaultOutputFromSchemaPath(schemaPath)\n\t};\n}\n//#endregion\nexport { prismaContract };\n\n//# sourceMappingURL=provider.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAmBA,SAAS,sBAAsB,SAAS;CACvC,MAAM,iBAAiB,CAAC;CACxB,KAAK,MAAM,WAA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O,SAAS,EAAE,kBAAkB,WAAW,GAAG,OAAO,CAAC;IAC5H,MAAM,EAAE,aAAa,aAAa,2BAA2B,iBAAiB;KAC7E;KACA;KACA,oBAAoB,QAAQ;IAC7B,CAAC;IACD,MAAM,EAAE,QAAQ,aAAa,sBAAsB,aAAa;KAC/D;KACA;KACA;IACD,CAAC;IACD,MAAM,cAAc,oBAAoB,KAAK,UAAU;KACtD;KACA;KACA;KACA;IACD,GAAG,OAAO,GAAG,CAAC,GAAG,iBAAiB,GAAG,kBAAkB,CAAC,GAAG,wBAAwB,GAAG,iBAAiB,GAAG,OAAO,CAAC,CAAC;IACnH,IAAI,CAAC,YAAY,IAAI,OAAO;IAC5B,OAAO,GAAG,+BAA+B,YAAY,OAAO,QAAQ,sBAAsB,QAAQ,eAAe,CAAC;GACnH;EACD;EACA,QAAQ,QAAQ,UAAU,4BAA4B,UAAU;CACjE;AACD"}
@@ -1,5 +1,5 @@
1
1
  import { n as applySqlSpecifierControlPolicy, t as SqlNamespaceFactory } from "./derived-checks-DpPkO6Dt-D-vp9vY3.mjs";
2
2
  import { r as SqlExpression, u as sql } from "./sql-expression-BAtH-2UU.mjs";
3
- import { $ as extensionModel, A as MergeEnums, B as UniqueConstraintNode, C as ForeignKeyTableReference, D as IndexOptionsFunction, E as IndexNode, F as ScalarFieldBuilder, G as bindEnumType, H as ValueObjectMemberNode, I as ScalarMemberNode, J as buildSqlContractFromDefinition, K as buildBoundContract, L as TableNode, M as ModelNode, N as PrimaryKeyNode, O as IndexOptionsInput, P as RelationNode, Q as enumType, R as TableProperties, S as ForeignKeyNode, T as IndexExpressionInput, U as ValueObjectNode, V as ValueObjectFieldNode, W as autoincrement, X as createComposedAuthoringHelpers, Y as check, Z as defineContract, _ as EnumMember, a as CheckNode, at as rel, b as FieldNode, c as ColumnNode, d as ContractDefinition, et as field, f as ContractInput, g as DeferredIndexOptions, h as DeferredIndexExpression, i as BoundEnumType, it as now, j as ModelLike, k as ManyOptions, l as ColumnRef, m as DeferredIndexColumn, n as AuthoredColumnDefault, nt as member, o as CodecInput, ot as storedAsListColumn, p as ContractModelBuilder, q as buildContractDefinition, r as AuthoredColumnDefaultLiteralValue, rt as model, s as CodecTypeMap, t as AttachedEntities, tt as isValueObjectMember, u as ComposedAuthoringHelpers, v as EnumTypeHandle, w as IndexConstraint, x as ForeignKeyModelReference, y as ExtractCodecTypesFromPack, z as TargetFieldRef } from "./contract-builder-D-RSOsnc.mjs";
3
+ import { $ as extensionModel, A as MergeEnums, B as UniqueConstraintNode, C as ForeignKeyTableReference, D as IndexOptionsFunction, E as IndexNode, F as ScalarFieldBuilder, G as bindEnumType, H as ValueObjectMemberNode, I as ScalarMemberNode, J as buildSqlContractFromDefinition, K as buildBoundContract, L as TableNode, M as ModelNode, N as PrimaryKeyNode, O as IndexOptionsInput, P as RelationNode, Q as enumType, R as TableProperties, S as ForeignKeyNode, T as IndexExpressionInput, U as ValueObjectNode, V as ValueObjectFieldNode, W as autoincrement, X as createComposedAuthoringHelpers, Y as check, Z as defineContract, _ as EnumMember, a as CheckNode, at as rel, b as FieldNode, c as ColumnNode, d as ContractDefinition, et as field, f as ContractInput, g as DeferredIndexOptions, h as DeferredIndexExpression, i as BoundEnumType, it as now, j as ModelLike, k as ManyOptions, l as ColumnRef, m as DeferredIndexColumn, n as AuthoredColumnDefault, nt as member, o as CodecInput, ot as storedAsListColumn, p as ContractModelBuilder, q as buildContractDefinition, r as AuthoredColumnDefaultLiteralValue, rt as model, s as CodecTypeMap, t as AttachedEntities, tt as isValueObjectMember, u as ComposedAuthoringHelpers, v as EnumTypeHandle, w as IndexConstraint, x as ForeignKeyModelReference, y as ExtractCodecTypesFromPack, z as TargetFieldRef } from "./contract-builder-GH-eCIpl.mjs";
4
4
  import { i as typescriptContractFromPath, n as emptyContract, r as typescriptContract, t as ContractConfig } from "./config-types-DN0IueHY.mjs";
5
5
  export { type AttachedEntities, type AuthoredColumnDefault, type AuthoredColumnDefaultLiteralValue, type BoundEnumType, type CheckNode, type CodecInput, type CodecTypeMap, type ColumnNode, type ColumnRef, type ComposedAuthoringHelpers, type ContractConfig, type ContractDefinition, type ContractInput, type ContractModelBuilder, type DeferredIndexColumn, type DeferredIndexExpression, type DeferredIndexOptions, type EnumMember, type EnumTypeHandle, type ExtractCodecTypesFromPack, type FieldNode, type ForeignKeyModelReference, type ForeignKeyNode, type ForeignKeyTableReference, type IndexConstraint, type IndexExpressionInput, type IndexNode, type IndexOptionsFunction, type IndexOptionsInput, type ManyOptions, type MergeEnums, type ModelLike, type ModelNode, type PrimaryKeyNode, type RelationNode, type ScalarFieldBuilder, type ScalarMemberNode, type SqlExpression, type SqlNamespaceFactory, type TableNode, type TableProperties, type TargetFieldRef, type UniqueConstraintNode, type ValueObjectFieldNode, type ValueObjectMemberNode, type ValueObjectNode, applySqlSpecifierControlPolicy, autoincrement, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, createComposedAuthoringHelpers, defineContract, emptyContract, enumType, extensionModel, field, isValueObjectMember, member, model, now, rel, sql, storedAsListColumn, typescriptContract, typescriptContractFromPath };
@@ -1,5 +1,5 @@
1
1
  import { l as sql } from "./sql-expression-BJCuy-WI.mjs";
2
- import { a as storedAsListColumn, i as isValueObjectMember, n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from "./derived-checks-sRZp_gTF-ermwhVGQ.mjs";
3
- import { a as check, c as enumType, d as member, f as model, i as buildContractDefinition, l as extensionModel, m as rel, n as bindEnumType, o as createComposedAuthoringHelpers, p as now, r as buildBoundContract, s as defineContract, t as autoincrement, u as field } from "./contract-builder-CrWbrtE4.mjs";
4
- import { n as typescriptContract, r as typescriptContractFromPath, t as emptyContract } from "./config-types-BJxHMPGt.mjs";
2
+ import { a as storedAsListColumn, i as isValueObjectMember, n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from "./derived-checks-B1qNxwBL-DFoGexId.mjs";
3
+ import { a as check, c as enumType, d as member, f as model, i as buildContractDefinition, l as extensionModel, m as rel, n as bindEnumType, o as createComposedAuthoringHelpers, p as now, r as buildBoundContract, s as defineContract, t as autoincrement, u as field } from "./contract-builder-D3XaKpyw.mjs";
4
+ import { n as typescriptContract, r as typescriptContractFromPath, t as emptyContract } from "./config-types-BkcCqeAg.mjs";
5
5
  export { applySqlSpecifierControlPolicy, autoincrement, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, createComposedAuthoringHelpers, defineContract, emptyContract, enumType, extensionModel, field, isValueObjectMember, member, model, now, rel, sql, storedAsListColumn, typescriptContract, typescriptContractFromPath };
@@ -1,2 +1,2 @@
1
- import { n as typescriptContract, r as typescriptContractFromPath, t as emptyContract } from "./config-types-BJxHMPGt.mjs";
1
+ import { n as typescriptContract, r as typescriptContractFromPath, t as emptyContract } from "./config-types-BkcCqeAg.mjs";
2
2
  export { emptyContract, typescriptContract, typescriptContractFromPath };
@@ -1,4 +1,4 @@
1
1
  import { n as applySqlSpecifierControlPolicy, t as SqlNamespaceFactory } from "./derived-checks-DpPkO6Dt-D-vp9vY3.mjs";
2
2
  import { r as SqlExpression, u as sql } from "./sql-expression-BAtH-2UU.mjs";
3
- import { $ as extensionModel, A as MergeEnums, B as UniqueConstraintNode, C as ForeignKeyTableReference, D as IndexOptionsFunction, E as IndexNode, F as ScalarFieldBuilder, G as bindEnumType, H as ValueObjectMemberNode, I as ScalarMemberNode, J as buildSqlContractFromDefinition, K as buildBoundContract, L as TableNode, M as ModelNode, N as PrimaryKeyNode, O as IndexOptionsInput, P as RelationNode, Q as enumType, R as TableProperties, S as ForeignKeyNode, T as IndexExpressionInput, U as ValueObjectNode, V as ValueObjectFieldNode, W as autoincrement, X as createComposedAuthoringHelpers, Y as check, Z as defineContract, _ as EnumMember, a as CheckNode, at as rel, b as FieldNode, c as ColumnNode, d as ContractDefinition, et as field, f as ContractInput, g as DeferredIndexOptions, h as DeferredIndexExpression, i as BoundEnumType, it as now, j as ModelLike, k as ManyOptions, l as ColumnRef, m as DeferredIndexColumn, n as AuthoredColumnDefault, nt as member, o as CodecInput, ot as storedAsListColumn, p as ContractModelBuilder, q as buildContractDefinition, r as AuthoredColumnDefaultLiteralValue, rt as model, s as CodecTypeMap, t as AttachedEntities, tt as isValueObjectMember, u as ComposedAuthoringHelpers, v as EnumTypeHandle, w as IndexConstraint, x as ForeignKeyModelReference, y as ExtractCodecTypesFromPack, z as TargetFieldRef } from "./contract-builder-D-RSOsnc.mjs";
3
+ import { $ as extensionModel, A as MergeEnums, B as UniqueConstraintNode, C as ForeignKeyTableReference, D as IndexOptionsFunction, E as IndexNode, F as ScalarFieldBuilder, G as bindEnumType, H as ValueObjectMemberNode, I as ScalarMemberNode, J as buildSqlContractFromDefinition, K as buildBoundContract, L as TableNode, M as ModelNode, N as PrimaryKeyNode, O as IndexOptionsInput, P as RelationNode, Q as enumType, R as TableProperties, S as ForeignKeyNode, T as IndexExpressionInput, U as ValueObjectNode, V as ValueObjectFieldNode, W as autoincrement, X as createComposedAuthoringHelpers, Y as check, Z as defineContract, _ as EnumMember, a as CheckNode, at as rel, b as FieldNode, c as ColumnNode, d as ContractDefinition, et as field, f as ContractInput, g as DeferredIndexOptions, h as DeferredIndexExpression, i as BoundEnumType, it as now, j as ModelLike, k as ManyOptions, l as ColumnRef, m as DeferredIndexColumn, n as AuthoredColumnDefault, nt as member, o as CodecInput, ot as storedAsListColumn, p as ContractModelBuilder, q as buildContractDefinition, r as AuthoredColumnDefaultLiteralValue, rt as model, s as CodecTypeMap, t as AttachedEntities, tt as isValueObjectMember, u as ComposedAuthoringHelpers, v as EnumTypeHandle, w as IndexConstraint, x as ForeignKeyModelReference, y as ExtractCodecTypesFromPack, z as TargetFieldRef } from "./contract-builder-GH-eCIpl.mjs";
4
4
  export { type AttachedEntities, type AuthoredColumnDefault, type AuthoredColumnDefaultLiteralValue, type BoundEnumType, type CheckNode, type CodecInput, type CodecTypeMap, type ColumnNode, type ColumnRef, type ComposedAuthoringHelpers, type ContractDefinition, type ContractInput, type ContractModelBuilder, type DeferredIndexColumn, type DeferredIndexExpression, type DeferredIndexOptions, type EnumMember, type EnumTypeHandle, type ExtractCodecTypesFromPack, type FieldNode, type ForeignKeyModelReference, type ForeignKeyNode, type ForeignKeyTableReference, type IndexConstraint, type IndexExpressionInput, type IndexNode, type IndexOptionsFunction, type IndexOptionsInput, type ManyOptions, type MergeEnums, type ModelLike, type ModelNode, type PrimaryKeyNode, type RelationNode, type ScalarFieldBuilder, type ScalarMemberNode, type SqlExpression, type SqlNamespaceFactory, type TableNode, type TableProperties, type TargetFieldRef, type UniqueConstraintNode, type ValueObjectFieldNode, type ValueObjectMemberNode, type ValueObjectNode, applySqlSpecifierControlPolicy, autoincrement, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, createComposedAuthoringHelpers, defineContract, enumType, extensionModel, field, isValueObjectMember, member, model, now, rel, sql, storedAsListColumn };
@@ -1,4 +1,4 @@
1
1
  import { l as sql } from "./sql-expression-BJCuy-WI.mjs";
2
- import { a as storedAsListColumn, i as isValueObjectMember, n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from "./derived-checks-sRZp_gTF-ermwhVGQ.mjs";
3
- import { a as check, c as enumType, d as member, f as model, i as buildContractDefinition, l as extensionModel, m as rel, n as bindEnumType, o as createComposedAuthoringHelpers, p as now, r as buildBoundContract, s as defineContract, t as autoincrement, u as field } from "./contract-builder-CrWbrtE4.mjs";
2
+ import { a as storedAsListColumn, i as isValueObjectMember, n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from "./derived-checks-B1qNxwBL-DFoGexId.mjs";
3
+ import { a as check, c as enumType, d as member, f as model, i as buildContractDefinition, l as extensionModel, m as rel, n as bindEnumType, o as createComposedAuthoringHelpers, p as now, r as buildBoundContract, s as defineContract, t as autoincrement, u as field } from "./contract-builder-D3XaKpyw.mjs";
4
4
  export { applySqlSpecifierControlPolicy, autoincrement, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, createComposedAuthoringHelpers, defineContract, enumType, extensionModel, field, isValueObjectMember, member, model, now, rel, sql, storedAsListColumn };
@@ -17,14 +17,14 @@ import { a as lowerAuthoredIndex, i as isAuthoredIndexInput, n as AuthoredIndexM
17
17
  import { n as lowerAuthoredCheck, t as AuthoredCheckInput } from "./authored-check-naming-CK6T_Dfh.mjs";
18
18
  import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-CYnW_sGn.mjs";
19
19
  import { a as SqlSingleNamespaceView, i as SqlSingleNamespaceAccessors, n as SqlBuiltinKind, o as buildSqlSchemaQualifiedView, r as SqlSchemaQualifiedView, s as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-BAbRgQMW.mjs";
20
- import { C as unquotedSqlBaseName, S as sqlStorageTypeOfCodec, T as validateSqlTypeParams, _ as sqlBaseName, a as SqlDataTypeFacts, b as sqlStorageType, c as SqlTypeText, d as numeralText, f as renderSqlCatalogText, g as sameSqlColumnType, h as resolveWrittenSqlTypes, i as SqlDataTypeCollision, l as findSqlDataTypeCollision, m as resolveReportedSqlType, n as SqlColumnTypeFields, o as SqlDataTypeSpec, p as renderSqlTypeName, r as SqlDataType, s as SqlTypeParams, t as ResolvedSqlType, u as isSqlDataType, v as sqlDataType, w as unquotedSqlBaseNameOfCodec, x as sqlStorageTypeId, y as sqlDataTypeOfCodec } from "./data-type-C84xngfv.mjs";
20
+ import { A as validateSqlTypeParams, C as sqlDataTypeOfCodec, D as sqlStorageTypeOfCodec, E as sqlStorageTypeId, O as unquotedSqlBaseName, S as sqlDataType, T as sqlStorageType, _ as renderSqlTypeName, a as SqlDataTypeCollision, b as sameSqlColumnType, c as SqlRawTypeParams, d as checkRawTypeText, f as findSqlDataTypeCollision, g as renderSqlCatalogText, h as numeralText, i as SqlDataType, k as unquotedSqlBaseNameOfCodec, l as SqlTypeParams, m as nameIsCatalogText, n as SQL_RAW_DATA_TYPE_ID, o as SqlDataTypeFacts, p as isSqlDataType, r as SqlColumnTypeFields, s as SqlDataTypeSpec, t as ResolvedSqlType, u as SqlTypeText, v as resolveReportedSqlType, w as sqlRawDataType, x as sqlBaseName, y as resolveWrittenSqlTypes } from "./data-type-DMk-fLAZ.mjs";
21
21
  import { a as NumberClassifierSpec, c as escapePslString, d as printJsonText, f as signedRange, i as NumberClassification, l as isNumeralText, n as DateTimeStoredTextOptions, o as createNumberClassifier, p as storedNumeralText, r as IntegerStep, s as dateTimeStoredText, t as DateTimeShape, u as parseJsonText } from "./data-type-support-CBcYhSkD.mjs";
22
22
  import { n as tableEntityKind, r as valueSetEntityKind, t as composeSqlEntityKinds } from "./entity-kinds-BCMNbwxO.mjs";
23
23
  import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-B4AMRt6O.mjs";
24
- import { a as declaredBackingObjectName, c as derivedBackingIndexIsRedundant, i as MaterializedTableConstraints, l as leadingBackingObjectName, n as ForeignKeyAuthoringInput, o as declaredIndexesServeForeignKey, r as IndexCandidate, s as defaultForeignKeyIndex, t as FOREIGN_KEY_INDEX_UNRESOLVED, u as materializeForeignKeysAndIndexes } from "./foreign-key-materialization-3vQnPT_D.mjs";
24
+ import { a as declaredBackingObjectName, c as derivedBackingIndexIsRedundant, i as MaterializedTableConstraints, l as leadingBackingObjectName, n as ForeignKeyAuthoringInput, o as declaredIndexesServeForeignKey, r as IndexCandidate, s as defaultForeignKeyIndex, t as FOREIGN_KEY_INDEX_UNRESOLVED, u as materializeForeignKeysAndIndexes } from "./foreign-key-materialization-bL-t2oPB.mjs";
25
25
  import { n as validateIndexTypes, t as CodecTraitsLookup } from "./index-type-validation-Cz2T3FJn.mjs";
26
26
  import { t as REFERENTIAL_ACTION_SQL } from "./referential-action-sql-Cw1Q0YSd.mjs";
27
27
  import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-8N2xelSh.mjs";
28
28
  import { C as validateModelStorageReferences, D as validateStorage, E as validateSqlStorageConsistency, O as validateStorageSemantics, S as validateModel, T as validateSqlContractFully, _ as createSqlContractSchema, a as ContractEnumSchema, b as resolveSqlToOneRelationStorage, c as ForeignKeySourceSchema, d as SqlToOneRelationStorage, f as StorageTableSchema, g as createNamespaceEntrySchema, h as checkSqlDefaultText, i as ColumnDefaultSchema, k as valueObjectStorageTypeMissingMessage, l as IndexSchema, m as ValidateSqlContractFullyOptions, n as ColumnDefaultFunctionSchema, o as ForeignKeyReferenceSchema, p as StorageValueSetSchema, r as ColumnDefaultLiteralSchema, s as ForeignKeySchema, t as CheckConstraintSchema, u as ReferentialActionSchema, v as createSqlStorageSchema, w as validateRelationJoinFields, x as validateExecutionDefaultsTargetMappedColumns, y as reservedSqlDefaultText } from "./validators-CTZ-hU2l.mjs";
29
29
  import { n as deriveValueSetFromEntity, r as providesValueSetDerivation, t as SqlValueSetDerivingEntityTypeOutput } from "./value-set-derivation-hook-BhgGVtw0.mjs";
30
- export { type AggregateOperationTypes, type AggregateResultType, type AggregateTypesBase, type AggregateTypesFromDescriptors, type AggregateTypesOf, type ApplyQueryOperationTypes, type AuthoredCheckInput, type AuthoredIndexInput, type AuthoredIndexMethod, type AuthoredStorageTypeInstance, CODEC_INSTANCE_KIND, CheckConstraint, type CheckConstraintInput, CheckConstraintSchema, CodecTraitsLookup, type CodecTypesOf, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, type ColumnTypesFromStorage, ContractEnumSchema, type ContractWithTypeMaps, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, DateTimeShape, DateTimeStoredTextOptions, type EntityHandleLoweringInput, type ExtractAggregateTypes, type ExtractCodecTypes, type ExtractFieldInputTypes, type ExtractFieldOutputTypes, type ExtractQueryOperationTypes, type ExtractStorageColumnInputTypes, type ExtractStorageColumnTypes, type ExtractTypeMapsFromContract, FOREIGN_KEY_INDEX_UNRESOLVED, type FieldInputTypesOf, type FieldOutputTypesOf, ForeignKey, type ForeignKeyAuthoringInput, type ForeignKeyIndex, type ForeignKeyInput, type ForeignKeyOptions, ForeignKeyReference, type ForeignKeyReferenceInput, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, Index, type IndexCandidate, type IndexInput, IndexSchema, type IndexTypeBuilder, type IndexTypeEntry, type IndexTypeMap, type IndexTypeRegistration, type IndexTypeRegistry, IntegerStep, type LoweredPackEntity, type MaterializedTableConstraints, type NamespacedFieldTypeMap, type NamespacedStorageColumnTypeMap, NumberClassification, NumberClassifierSpec, type PackEntityHandle, PrimaryKey, type PrimaryKeyInput, type QueryOperationReturn, type QueryOperationSelfSpec, type QueryOperationTypeEntry, type QueryOperationTypesBase, type QueryOperationTypesFunction, type QueryOperationTypesOf, REFERENTIAL_ACTION_SQL, type ReferentialAction, ReferentialActionSchema, RelationKeys, type RelationNamesOf, type ResolveCodecTypes, type ResolvedEntityHandleRef, type ResolvedPackEntityHandle, type ResolvedPslModelRefs, type ResolvedSqlType, type ResolvedStorageTable, SQL_BUILTIN_KINDS, SQL_EXPRESSION_DATA_TYPE_ID, SQL_EXPRESSION_TAG, type Scalars, type SerializedCheckConstraint, type SerializedIndex, type Shape, type ShapeSpec, type SqlAuthoringContributions, type SqlBuiltinKind, type SqlColumnTypeFields, type SqlControlDriverInstance, type SqlDataType, type SqlDataTypeCollision, type SqlDataTypeFacts, type SqlDataTypeSpec, type SqlEntityHandleLoweringContribution, SqlExpression, SqlExpressionRegistration, type SqlModelFieldStorage, type SqlModelStorage, type SqlNamespace, SqlNamespaceBase, type SqlNamespaceEntries, type SqlNamespaceFactory, type SqlNamespaceInput, SqlNode, type SqlPslEntityPlacementOutput, type SqlQueryOperationTypes, type SqlSchemaQualifiedView, type SqlSingleNamespaceAccessors, type SqlSingleNamespaceView, SqlStorage, type SqlStorageInput, type SqlStorageTypeEntry, type SqlToOneRelationStorage, type SqlTypeParams, type SqlTypeText, type SqlValueSetDerivingEntityTypeOutput, StorageColumn, type StorageColumnInput, type StorageColumnInputTypesOf, type StorageColumnMapAt, type StorageColumnTypeAcrossNamespaces, type StorageColumnTypesOf, StorageTable, type StorageTableInput, StorageTableSchema, type StorageTypeInstance, type StorageTypeInstanceInput, StorageValueSet, type StorageValueSetInput, StorageValueSetSchema, type TypeMaps, type TypeMapsPhantomKey, UniqueConstraint, type UniqueConstraintInput, ValidateSqlContractFullyOptions, accessMethodOf, applyFkDefaults, assertNothingCastsFromSqlExpression, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView, checkConstraintInputFromSerialized, checkSqlDefaultText, col, composeSqlEntityKinds, createIndexTypeRegistry, createNamespaceEntrySchema, createNumberClassifier, createSqlContractSchema, createSqlStorageSchema, dateTimeStoredText, declaredBackingObjectName, declaredIndexesServeForeignKey, defaultForeignKeyIndex, defineIndexTypes, deriveValueSetFromEntity, derivedBackingIndexIsRedundant, escapePslString, exactNameBodyWarning, findSqlDataTypeCollision, fk, index, indexInputFromSerialized, indexTypeRegistryOf, isAuthoredIndexInput, isMaterializedSqlNamespace, isNumeralText, isSqlAuthoringContributions, isSqlDataType, isSqlExpression, isStorageTypeInstance, isStorageValueSet, leadingBackingObjectName, lowerAuthoredCheck, lowerAuthoredIndex, materializeForeignKeysAndIndexes, model, numeralText, parseJsonText, pk, printJsonText, printSqlExpressionLiteral, providesEntityHandleLowering, providesPslEntityPlacement, providesValueSetDerivation, readSqlExpression, renderSqlCatalogText, renderSqlTypeName, rendersIndexBody, requireSqlExpression, reservedSqlDefaultText, resolveReportedSqlType, resolveSqlToOneRelationStorage, resolveStorageTable, resolveWrittenSqlTypes, resolvedTypeParams, sameSqlColumnType, signedRange, sql, sqlBaseName, sqlContractCanonicalizationHooks, sqlDataType, sqlDataTypeOfCodec, sqlExpressionAuthoringEntry, sqlExpressionDataType, sqlExpressionRegistration, sqlStorageType, sqlStorageTypeId, sqlStorageTypeOfCodec, sqlTextFromStored, sqlTextsReadBack, storedNumeralText, storedSqlText, table, tableEntityKind, toStorageTypeInstance, unique, unquotedSqlBaseName, unquotedSqlBaseNameOfCodec, validateExecutionDefaultsTargetMappedColumns, validateIndexTypes, validateModel, validateModelStorageReferences, validateRelationJoinFields, validateSqlContractFully, validateSqlStorageConsistency, validateSqlTypeParams, validateStorage, validateStorageSemantics, valueObjectStorageTypeMissingMessage, valueSetEntityKind };
30
+ export { type AggregateOperationTypes, type AggregateResultType, type AggregateTypesBase, type AggregateTypesFromDescriptors, type AggregateTypesOf, type ApplyQueryOperationTypes, type AuthoredCheckInput, type AuthoredIndexInput, type AuthoredIndexMethod, type AuthoredStorageTypeInstance, CODEC_INSTANCE_KIND, CheckConstraint, type CheckConstraintInput, CheckConstraintSchema, CodecTraitsLookup, type CodecTypesOf, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, type ColumnTypesFromStorage, ContractEnumSchema, type ContractWithTypeMaps, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, DateTimeShape, DateTimeStoredTextOptions, type EntityHandleLoweringInput, type ExtractAggregateTypes, type ExtractCodecTypes, type ExtractFieldInputTypes, type ExtractFieldOutputTypes, type ExtractQueryOperationTypes, type ExtractStorageColumnInputTypes, type ExtractStorageColumnTypes, type ExtractTypeMapsFromContract, FOREIGN_KEY_INDEX_UNRESOLVED, type FieldInputTypesOf, type FieldOutputTypesOf, ForeignKey, type ForeignKeyAuthoringInput, type ForeignKeyIndex, type ForeignKeyInput, type ForeignKeyOptions, ForeignKeyReference, type ForeignKeyReferenceInput, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, Index, type IndexCandidate, type IndexInput, IndexSchema, type IndexTypeBuilder, type IndexTypeEntry, type IndexTypeMap, type IndexTypeRegistration, type IndexTypeRegistry, IntegerStep, type LoweredPackEntity, type MaterializedTableConstraints, type NamespacedFieldTypeMap, type NamespacedStorageColumnTypeMap, NumberClassification, NumberClassifierSpec, type PackEntityHandle, PrimaryKey, type PrimaryKeyInput, type QueryOperationReturn, type QueryOperationSelfSpec, type QueryOperationTypeEntry, type QueryOperationTypesBase, type QueryOperationTypesFunction, type QueryOperationTypesOf, REFERENTIAL_ACTION_SQL, type ReferentialAction, ReferentialActionSchema, RelationKeys, type RelationNamesOf, type ResolveCodecTypes, type ResolvedEntityHandleRef, type ResolvedPackEntityHandle, type ResolvedPslModelRefs, type ResolvedSqlType, type ResolvedStorageTable, SQL_BUILTIN_KINDS, SQL_EXPRESSION_DATA_TYPE_ID, SQL_EXPRESSION_TAG, SQL_RAW_DATA_TYPE_ID, type Scalars, type SerializedCheckConstraint, type SerializedIndex, type Shape, type ShapeSpec, type SqlAuthoringContributions, type SqlBuiltinKind, type SqlColumnTypeFields, type SqlControlDriverInstance, type SqlDataType, type SqlDataTypeCollision, type SqlDataTypeFacts, type SqlDataTypeSpec, type SqlEntityHandleLoweringContribution, SqlExpression, SqlExpressionRegistration, type SqlModelFieldStorage, type SqlModelStorage, type SqlNamespace, SqlNamespaceBase, type SqlNamespaceEntries, type SqlNamespaceFactory, type SqlNamespaceInput, SqlNode, type SqlPslEntityPlacementOutput, type SqlQueryOperationTypes, type SqlRawTypeParams, type SqlSchemaQualifiedView, type SqlSingleNamespaceAccessors, type SqlSingleNamespaceView, SqlStorage, type SqlStorageInput, type SqlStorageTypeEntry, type SqlToOneRelationStorage, type SqlTypeParams, type SqlTypeText, type SqlValueSetDerivingEntityTypeOutput, StorageColumn, type StorageColumnInput, type StorageColumnInputTypesOf, type StorageColumnMapAt, type StorageColumnTypeAcrossNamespaces, type StorageColumnTypesOf, StorageTable, type StorageTableInput, StorageTableSchema, type StorageTypeInstance, type StorageTypeInstanceInput, StorageValueSet, type StorageValueSetInput, StorageValueSetSchema, type TypeMaps, type TypeMapsPhantomKey, UniqueConstraint, type UniqueConstraintInput, ValidateSqlContractFullyOptions, accessMethodOf, applyFkDefaults, assertNothingCastsFromSqlExpression, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView, checkConstraintInputFromSerialized, checkRawTypeText, checkSqlDefaultText, col, composeSqlEntityKinds, createIndexTypeRegistry, createNamespaceEntrySchema, createNumberClassifier, createSqlContractSchema, createSqlStorageSchema, dateTimeStoredText, declaredBackingObjectName, declaredIndexesServeForeignKey, defaultForeignKeyIndex, defineIndexTypes, deriveValueSetFromEntity, derivedBackingIndexIsRedundant, escapePslString, exactNameBodyWarning, findSqlDataTypeCollision, fk, index, indexInputFromSerialized, indexTypeRegistryOf, isAuthoredIndexInput, isMaterializedSqlNamespace, isNumeralText, isSqlAuthoringContributions, isSqlDataType, isSqlExpression, isStorageTypeInstance, isStorageValueSet, leadingBackingObjectName, lowerAuthoredCheck, lowerAuthoredIndex, materializeForeignKeysAndIndexes, model, nameIsCatalogText, numeralText, parseJsonText, pk, printJsonText, printSqlExpressionLiteral, providesEntityHandleLowering, providesPslEntityPlacement, providesValueSetDerivation, readSqlExpression, renderSqlCatalogText, renderSqlTypeName, rendersIndexBody, requireSqlExpression, reservedSqlDefaultText, resolveReportedSqlType, resolveSqlToOneRelationStorage, resolveStorageTable, resolveWrittenSqlTypes, resolvedTypeParams, sameSqlColumnType, signedRange, sql, sqlBaseName, sqlContractCanonicalizationHooks, sqlDataType, sqlDataTypeOfCodec, sqlExpressionAuthoringEntry, sqlExpressionDataType, sqlExpressionRegistration, sqlRawDataType, sqlStorageType, sqlStorageTypeId, sqlStorageTypeOfCodec, sqlTextFromStored, sqlTextsReadBack, storedNumeralText, storedSqlText, table, tableEntityKind, toStorageTypeInstance, unique, unquotedSqlBaseName, unquotedSqlBaseNameOfCodec, validateExecutionDefaultsTargetMappedColumns, validateIndexTypes, validateModel, validateModelStorageReferences, validateRelationJoinFields, validateSqlContractFully, validateSqlStorageConsistency, validateSqlTypeParams, validateStorage, validateStorageSemantics, valueObjectStorageTypeMissingMessage, valueSetEntityKind };
package/dist/contract.mjs CHANGED
@@ -3,21 +3,21 @@ import { n as isAuthoredIndexInput, r as lowerAuthoredIndex, t as exactNameBodyW
3
3
  import { t as lowerAuthoredCheck } from "./authored-check-naming-CIX7Bbyh.mjs";
4
4
  import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-dmXkOR4a.mjs";
5
5
  import { n as buildSqlSchemaQualifiedView, r as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-BMR5IWk4.mjs";
6
- import { a as resolveReportedSqlType, c as sqlBaseName, d as sqlStorageType, f as sqlStorageTypeId, g as validateSqlTypeParams, h as unquotedSqlBaseNameOfCodec, i as renderSqlTypeName, l as sqlDataType, m as unquotedSqlBaseName, n as isSqlDataType, o as resolveWrittenSqlTypes, p as sqlStorageTypeOfCodec, r as renderSqlCatalogText, s as sameSqlColumnType, t as findSqlDataTypeCollision, u as sqlDataTypeOfCodec } from "./sql-data-type-BSi0X331-OXbBFXDh.mjs";
7
- import { t as numeralText } from "./data-type-DKk8Unnz.mjs";
6
+ import { _ as validateSqlTypeParams, a as renderSqlTypeName, c as sameSqlColumnType, d as sqlDataTypeOfCodec, f as sqlStorageType, g as unquotedSqlBaseNameOfCodec, h as unquotedSqlBaseName, i as renderSqlCatalogText, l as sqlBaseName, m as sqlStorageTypeOfCodec, n as isSqlDataType, o as resolveReportedSqlType, p as sqlStorageTypeId, r as nameIsCatalogText, s as resolveWrittenSqlTypes, t as findSqlDataTypeCollision, u as sqlDataType } from "./sql-data-type-D5cI3M07-DIcPP8s1.mjs";
7
+ import { i as sqlRawDataType, n as checkRawTypeText, r as numeralText, t as SQL_RAW_DATA_TYPE_ID } from "./data-type-HNhSslwG.mjs";
8
8
  import { a as parseJsonText, c as storedNumeralText, i as isNumeralText, n as dateTimeStoredText, o as printJsonText, r as escapePslString, s as signedRange, t as createNumberClassifier } from "./data-type-support-C5-XxxeB.mjs";
9
9
  import { n as providesPslEntityPlacement, t as providesEntityHandleLowering } from "./entity-handle-lowering-hook-B3atrRKX.mjs";
10
10
  import { a as PrimaryKey, c as StorageTable, i as Index, l as UniqueConstraint, n as ForeignKey, o as SqlNode, r as ForeignKeyReference, s as StorageColumn, t as CheckConstraint } from "./storage-table-DN36E2yE-0ncS821l.mjs";
11
11
  import { i as isStorageValueSet, n as checkConstraintInputFromSerialized, r as indexInputFromSerialized, t as StorageValueSet } from "./serialized-index-52COq1yV-CUJ2F65u.mjs";
12
12
  import { a as ForeignKeyReferenceSchema, c as IndexSchema, d as StorageValueSetSchema, f as composeSqlEntityKinds, i as ColumnDefaultSchema, l as ReferentialActionSchema, m as valueSetEntityKind, n as ColumnDefaultFunctionSchema, o as ForeignKeySchema, p as tableEntityKind, r as ColumnDefaultLiteralSchema, s as ForeignKeySourceSchema, t as CheckConstraintSchema, u as StorageTableSchema } from "./entity-kinds-CQ_jwgYv-DoOBWwvX.mjs";
13
13
  import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-DkD3nMYt.mjs";
14
- import { i as leadingBackingObjectName, t as derivedBackingIndexIsRedundant } from "./index-equivalence-DswCiq5l-C6SAs-Yz.mjs";
15
- import { a as materializeForeignKeysAndIndexes, i as defaultForeignKeyIndex, n as declaredBackingObjectName, r as declaredIndexesServeForeignKey, t as FOREIGN_KEY_INDEX_UNRESOLVED } from "./foreign-key-materialization-C_FPLzj3.mjs";
14
+ import { i as leadingBackingObjectName, t as derivedBackingIndexIsRedundant } from "./index-equivalence-DswCiq5l-D5VK0qTy.mjs";
15
+ import { a as materializeForeignKeysAndIndexes, i as defaultForeignKeyIndex, n as declaredBackingObjectName, r as declaredIndexesServeForeignKey, t as FOREIGN_KEY_INDEX_UNRESOLVED } from "./foreign-key-materialization-BPQqd0qF.mjs";
16
16
  import { t as validateIndexTypes } from "./index-type-validation-Bcme_Ust.mjs";
17
17
  import { t as REFERENTIAL_ACTION_SQL } from "./referential-action-sql-DSqkrySN.mjs";
18
18
  import { t as resolveStorageTable } from "./resolve-storage-table-DZsfnzeW.mjs";
19
19
  import { a as isSqlExpression, c as requireSqlExpression, d as sqlExpressionDataType, f as sqlExpressionRegistration, h as storedSqlText, i as assertNothingCastsFromSqlExpression, l as sql, m as sqlTextsReadBack, n as SQL_EXPRESSION_TAG, o as printSqlExpressionLiteral, p as sqlTextFromStored, r as SqlExpression, s as readSqlExpression, t as SQL_EXPRESSION_DATA_TYPE_ID, u as sqlExpressionAuthoringEntry } from "./sql-expression-BJCuy-WI.mjs";
20
20
  import { a as SqlNamespaceBase, c as isMaterializedSqlNamespace, d as resolvedTypeParams, f as toStorageTypeInstance, i as RelationKeys, l as isSqlAuthoringContributions, n as DEFAULT_FK_CONSTRAINT, o as SqlStorage, r as DEFAULT_FK_INDEX, s as applyFkDefaults, t as CODEC_INSTANCE_KIND, u as isStorageTypeInstance } from "./types-M_FeBD9w.mjs";
21
- import { a as createSqlStorageSchema, c as validateExecutionDefaultsTargetMappedColumns, d as validateRelationJoinFields, f as validateSqlContractFully, g as valueObjectStorageTypeMissingMessage, h as validateStorageSemantics, i as createSqlContractSchema, l as validateModel, m as validateStorage, n as checkSqlDefaultText, o as reservedSqlDefaultText, p as validateSqlStorageConsistency, r as createNamespaceEntrySchema, s as resolveSqlToOneRelationStorage, t as ContractEnumSchema, u as validateModelStorageReferences } from "./validators-BCRydDG7.mjs";
21
+ import { a as createSqlStorageSchema, c as validateExecutionDefaultsTargetMappedColumns, d as validateRelationJoinFields, f as validateSqlContractFully, g as valueObjectStorageTypeMissingMessage, h as validateStorageSemantics, i as createSqlContractSchema, l as validateModel, m as validateStorage, n as checkSqlDefaultText, o as reservedSqlDefaultText, p as validateSqlStorageConsistency, r as createNamespaceEntrySchema, s as resolveSqlToOneRelationStorage, t as ContractEnumSchema, u as validateModelStorageReferences } from "./validators-BlONfdFH.mjs";
22
22
  import { n as providesValueSetDerivation, t as deriveValueSetFromEntity } from "./value-set-derivation-hook-Di9JZ0X7.mjs";
23
- export { CODEC_INSTANCE_KIND, CheckConstraint, CheckConstraintSchema, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, FOREIGN_KEY_INDEX_UNRESOLVED, ForeignKey, ForeignKeyReference, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, Index, IndexSchema, PrimaryKey, REFERENTIAL_ACTION_SQL, ReferentialActionSchema, RelationKeys, SQL_BUILTIN_KINDS, SQL_EXPRESSION_DATA_TYPE_ID, SQL_EXPRESSION_TAG, SqlExpression, SqlNamespaceBase, SqlNode, SqlStorage, StorageColumn, StorageTable, StorageTableSchema, StorageValueSet, StorageValueSetSchema, UniqueConstraint, accessMethodOf, applyFkDefaults, assertNothingCastsFromSqlExpression, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView, checkConstraintInputFromSerialized, checkSqlDefaultText, col, composeSqlEntityKinds, createIndexTypeRegistry, createNamespaceEntrySchema, createNumberClassifier, createSqlContractSchema, createSqlStorageSchema, dateTimeStoredText, declaredBackingObjectName, declaredIndexesServeForeignKey, defaultForeignKeyIndex, defineIndexTypes, deriveValueSetFromEntity, derivedBackingIndexIsRedundant, escapePslString, exactNameBodyWarning, findSqlDataTypeCollision, fk, index, indexInputFromSerialized, indexTypeRegistryOf, isAuthoredIndexInput, isMaterializedSqlNamespace, isNumeralText, isSqlAuthoringContributions, isSqlDataType, isSqlExpression, isStorageTypeInstance, isStorageValueSet, leadingBackingObjectName, lowerAuthoredCheck, lowerAuthoredIndex, materializeForeignKeysAndIndexes, model, numeralText, parseJsonText, pk, printJsonText, printSqlExpressionLiteral, providesEntityHandleLowering, providesPslEntityPlacement, providesValueSetDerivation, readSqlExpression, renderSqlCatalogText, renderSqlTypeName, rendersIndexBody, requireSqlExpression, reservedSqlDefaultText, resolveReportedSqlType, resolveSqlToOneRelationStorage, resolveStorageTable, resolveWrittenSqlTypes, resolvedTypeParams, sameSqlColumnType, signedRange, sql, sqlBaseName, sqlContractCanonicalizationHooks, sqlDataType, sqlDataTypeOfCodec, sqlExpressionAuthoringEntry, sqlExpressionDataType, sqlExpressionRegistration, sqlStorageType, sqlStorageTypeId, sqlStorageTypeOfCodec, sqlTextFromStored, sqlTextsReadBack, storedNumeralText, storedSqlText, table, tableEntityKind, toStorageTypeInstance, unique, unquotedSqlBaseName, unquotedSqlBaseNameOfCodec, validateExecutionDefaultsTargetMappedColumns, validateIndexTypes, validateModel, validateModelStorageReferences, validateRelationJoinFields, validateSqlContractFully, validateSqlStorageConsistency, validateSqlTypeParams, validateStorage, validateStorageSemantics, valueObjectStorageTypeMissingMessage, valueSetEntityKind };
23
+ export { CODEC_INSTANCE_KIND, CheckConstraint, CheckConstraintSchema, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, FOREIGN_KEY_INDEX_UNRESOLVED, ForeignKey, ForeignKeyReference, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, Index, IndexSchema, PrimaryKey, REFERENTIAL_ACTION_SQL, ReferentialActionSchema, RelationKeys, SQL_BUILTIN_KINDS, SQL_EXPRESSION_DATA_TYPE_ID, SQL_EXPRESSION_TAG, SQL_RAW_DATA_TYPE_ID, SqlExpression, SqlNamespaceBase, SqlNode, SqlStorage, StorageColumn, StorageTable, StorageTableSchema, StorageValueSet, StorageValueSetSchema, UniqueConstraint, accessMethodOf, applyFkDefaults, assertNothingCastsFromSqlExpression, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView, checkConstraintInputFromSerialized, checkRawTypeText, checkSqlDefaultText, col, composeSqlEntityKinds, createIndexTypeRegistry, createNamespaceEntrySchema, createNumberClassifier, createSqlContractSchema, createSqlStorageSchema, dateTimeStoredText, declaredBackingObjectName, declaredIndexesServeForeignKey, defaultForeignKeyIndex, defineIndexTypes, deriveValueSetFromEntity, derivedBackingIndexIsRedundant, escapePslString, exactNameBodyWarning, findSqlDataTypeCollision, fk, index, indexInputFromSerialized, indexTypeRegistryOf, isAuthoredIndexInput, isMaterializedSqlNamespace, isNumeralText, isSqlAuthoringContributions, isSqlDataType, isSqlExpression, isStorageTypeInstance, isStorageValueSet, leadingBackingObjectName, lowerAuthoredCheck, lowerAuthoredIndex, materializeForeignKeysAndIndexes, model, nameIsCatalogText, numeralText, parseJsonText, pk, printJsonText, printSqlExpressionLiteral, providesEntityHandleLowering, providesPslEntityPlacement, providesValueSetDerivation, readSqlExpression, renderSqlCatalogText, renderSqlTypeName, rendersIndexBody, requireSqlExpression, reservedSqlDefaultText, resolveReportedSqlType, resolveSqlToOneRelationStorage, resolveStorageTable, resolveWrittenSqlTypes, resolvedTypeParams, sameSqlColumnType, signedRange, sql, sqlBaseName, sqlContractCanonicalizationHooks, sqlDataType, sqlDataTypeOfCodec, sqlExpressionAuthoringEntry, sqlExpressionDataType, sqlExpressionRegistration, sqlRawDataType, sqlStorageType, sqlStorageTypeId, sqlStorageTypeOfCodec, sqlTextFromStored, sqlTextsReadBack, storedNumeralText, storedSqlText, table, tableEntityKind, toStorageTypeInstance, unique, unquotedSqlBaseName, unquotedSqlBaseNameOfCodec, validateExecutionDefaultsTargetMappedColumns, validateIndexTypes, validateModel, validateModelStorageReferences, validateRelationJoinFields, validateSqlContractFully, validateSqlStorageConsistency, validateSqlTypeParams, validateStorage, validateStorageSemantics, valueObjectStorageTypeMissingMessage, valueSetEntityKind };
@@ -1,2 +1,2 @@
1
- import { C as unquotedSqlBaseName, S as sqlStorageTypeOfCodec, T as validateSqlTypeParams, _ as sqlBaseName, a as SqlDataTypeFacts, b as sqlStorageType, c as SqlTypeText, d as numeralText, f as renderSqlCatalogText, g as sameSqlColumnType, h as resolveWrittenSqlTypes, i as SqlDataTypeCollision, l as findSqlDataTypeCollision, m as resolveReportedSqlType, n as SqlColumnTypeFields, o as SqlDataTypeSpec, p as renderSqlTypeName, r as SqlDataType, s as SqlTypeParams, t as ResolvedSqlType, u as isSqlDataType, v as sqlDataType, w as unquotedSqlBaseNameOfCodec, x as sqlStorageTypeId, y as sqlDataTypeOfCodec } from "./data-type-C84xngfv.mjs";
2
- export { type ResolvedSqlType, type SqlColumnTypeFields, type SqlDataType, type SqlDataTypeCollision, type SqlDataTypeFacts, type SqlDataTypeSpec, type SqlTypeParams, type SqlTypeText, findSqlDataTypeCollision, isSqlDataType, numeralText, renderSqlCatalogText, renderSqlTypeName, resolveReportedSqlType, resolveWrittenSqlTypes, sameSqlColumnType, sqlBaseName, sqlDataType, sqlDataTypeOfCodec, sqlStorageType, sqlStorageTypeId, sqlStorageTypeOfCodec, unquotedSqlBaseName, unquotedSqlBaseNameOfCodec, validateSqlTypeParams };
1
+ import { A as validateSqlTypeParams, C as sqlDataTypeOfCodec, D as sqlStorageTypeOfCodec, E as sqlStorageTypeId, O as unquotedSqlBaseName, S as sqlDataType, T as sqlStorageType, _ as renderSqlTypeName, a as SqlDataTypeCollision, b as sameSqlColumnType, c as SqlRawTypeParams, d as checkRawTypeText, f as findSqlDataTypeCollision, g as renderSqlCatalogText, h as numeralText, i as SqlDataType, k as unquotedSqlBaseNameOfCodec, l as SqlTypeParams, m as nameIsCatalogText, n as SQL_RAW_DATA_TYPE_ID, o as SqlDataTypeFacts, p as isSqlDataType, r as SqlColumnTypeFields, s as SqlDataTypeSpec, t as ResolvedSqlType, u as SqlTypeText, v as resolveReportedSqlType, w as sqlRawDataType, x as sqlBaseName, y as resolveWrittenSqlTypes } from "./data-type-DMk-fLAZ.mjs";
2
+ export { type ResolvedSqlType, SQL_RAW_DATA_TYPE_ID, type SqlColumnTypeFields, type SqlDataType, type SqlDataTypeCollision, type SqlDataTypeFacts, type SqlDataTypeSpec, type SqlRawTypeParams, type SqlTypeParams, type SqlTypeText, checkRawTypeText, findSqlDataTypeCollision, isSqlDataType, nameIsCatalogText, numeralText, renderSqlCatalogText, renderSqlTypeName, resolveReportedSqlType, resolveWrittenSqlTypes, sameSqlColumnType, sqlBaseName, sqlDataType, sqlDataTypeOfCodec, sqlRawDataType, sqlStorageType, sqlStorageTypeId, sqlStorageTypeOfCodec, unquotedSqlBaseName, unquotedSqlBaseNameOfCodec, validateSqlTypeParams };
@@ -1,3 +1,3 @@
1
- import { a as resolveReportedSqlType, c as sqlBaseName, d as sqlStorageType, f as sqlStorageTypeId, g as validateSqlTypeParams, h as unquotedSqlBaseNameOfCodec, i as renderSqlTypeName, l as sqlDataType, m as unquotedSqlBaseName, n as isSqlDataType, o as resolveWrittenSqlTypes, p as sqlStorageTypeOfCodec, r as renderSqlCatalogText, s as sameSqlColumnType, t as findSqlDataTypeCollision, u as sqlDataTypeOfCodec } from "./sql-data-type-BSi0X331-OXbBFXDh.mjs";
2
- import { t as numeralText } from "./data-type-DKk8Unnz.mjs";
3
- export { findSqlDataTypeCollision, isSqlDataType, numeralText, renderSqlCatalogText, renderSqlTypeName, resolveReportedSqlType, resolveWrittenSqlTypes, sameSqlColumnType, sqlBaseName, sqlDataType, sqlDataTypeOfCodec, sqlStorageType, sqlStorageTypeId, sqlStorageTypeOfCodec, unquotedSqlBaseName, unquotedSqlBaseNameOfCodec, validateSqlTypeParams };
1
+ import { _ as validateSqlTypeParams, a as renderSqlTypeName, c as sameSqlColumnType, d as sqlDataTypeOfCodec, f as sqlStorageType, g as unquotedSqlBaseNameOfCodec, h as unquotedSqlBaseName, i as renderSqlCatalogText, l as sqlBaseName, m as sqlStorageTypeOfCodec, n as isSqlDataType, o as resolveReportedSqlType, p as sqlStorageTypeId, r as nameIsCatalogText, s as resolveWrittenSqlTypes, t as findSqlDataTypeCollision, u as sqlDataType } from "./sql-data-type-D5cI3M07-DIcPP8s1.mjs";
2
+ import { i as sqlRawDataType, n as checkRawTypeText, r as numeralText, t as SQL_RAW_DATA_TYPE_ID } from "./data-type-HNhSslwG.mjs";
3
+ export { SQL_RAW_DATA_TYPE_ID, checkRawTypeText, findSqlDataTypeCollision, isSqlDataType, nameIsCatalogText, numeralText, renderSqlCatalogText, renderSqlTypeName, resolveReportedSqlType, resolveWrittenSqlTypes, sameSqlColumnType, sqlBaseName, sqlDataType, sqlDataTypeOfCodec, sqlRawDataType, sqlStorageType, sqlStorageTypeId, sqlStorageTypeOfCodec, unquotedSqlBaseName, unquotedSqlBaseNameOfCodec, validateSqlTypeParams };
@@ -1,2 +1,2 @@
1
- import { a as declaredBackingObjectName, c as derivedBackingIndexIsRedundant, i as MaterializedTableConstraints, l as leadingBackingObjectName, n as ForeignKeyAuthoringInput, o as declaredIndexesServeForeignKey, r as IndexCandidate, s as defaultForeignKeyIndex, t as FOREIGN_KEY_INDEX_UNRESOLVED, u as materializeForeignKeysAndIndexes } from "./foreign-key-materialization-3vQnPT_D.mjs";
1
+ import { a as declaredBackingObjectName, c as derivedBackingIndexIsRedundant, i as MaterializedTableConstraints, l as leadingBackingObjectName, n as ForeignKeyAuthoringInput, o as declaredIndexesServeForeignKey, r as IndexCandidate, s as defaultForeignKeyIndex, t as FOREIGN_KEY_INDEX_UNRESOLVED, u as materializeForeignKeysAndIndexes } from "./foreign-key-materialization-bL-t2oPB.mjs";
2
2
  export { FOREIGN_KEY_INDEX_UNRESOLVED, type ForeignKeyAuthoringInput, type IndexCandidate, type MaterializedTableConstraints, declaredBackingObjectName, declaredIndexesServeForeignKey, defaultForeignKeyIndex, derivedBackingIndexIsRedundant, leadingBackingObjectName, materializeForeignKeysAndIndexes };
@@ -1,3 +1,3 @@
1
- import { i as leadingBackingObjectName, t as derivedBackingIndexIsRedundant } from "./index-equivalence-DswCiq5l-C6SAs-Yz.mjs";
2
- import { a as materializeForeignKeysAndIndexes, i as defaultForeignKeyIndex, n as declaredBackingObjectName, r as declaredIndexesServeForeignKey, t as FOREIGN_KEY_INDEX_UNRESOLVED } from "./foreign-key-materialization-C_FPLzj3.mjs";
1
+ import { i as leadingBackingObjectName, t as derivedBackingIndexIsRedundant } from "./index-equivalence-DswCiq5l-D5VK0qTy.mjs";
2
+ import { a as materializeForeignKeysAndIndexes, i as defaultForeignKeyIndex, n as declaredBackingObjectName, r as declaredIndexesServeForeignKey, t as FOREIGN_KEY_INDEX_UNRESOLVED } from "./foreign-key-materialization-BPQqd0qF.mjs";
3
3
  export { FOREIGN_KEY_INDEX_UNRESOLVED, declaredBackingObjectName, declaredIndexesServeForeignKey, defaultForeignKeyIndex, derivedBackingIndexIsRedundant, leadingBackingObjectName, materializeForeignKeysAndIndexes };
@@ -1,3 +1,3 @@
1
1
  import { a as ForeignKeyReferenceSchema, c as IndexSchema, d as StorageValueSetSchema, i as ColumnDefaultSchema, l as ReferentialActionSchema, n as ColumnDefaultFunctionSchema, o as ForeignKeySchema, r as ColumnDefaultLiteralSchema, s as ForeignKeySourceSchema, t as CheckConstraintSchema, u as StorageTableSchema } from "./entity-kinds-CQ_jwgYv-DoOBWwvX.mjs";
2
- import { a as createSqlStorageSchema, c as validateExecutionDefaultsTargetMappedColumns, d as validateRelationJoinFields, f as validateSqlContractFully, g as valueObjectStorageTypeMissingMessage, h as validateStorageSemantics, i as createSqlContractSchema, l as validateModel, m as validateStorage, n as checkSqlDefaultText, o as reservedSqlDefaultText, p as validateSqlStorageConsistency, r as createNamespaceEntrySchema, s as resolveSqlToOneRelationStorage, t as ContractEnumSchema, u as validateModelStorageReferences } from "./validators-BCRydDG7.mjs";
2
+ import { a as createSqlStorageSchema, c as validateExecutionDefaultsTargetMappedColumns, d as validateRelationJoinFields, f as validateSqlContractFully, g as valueObjectStorageTypeMissingMessage, h as validateStorageSemantics, i as createSqlContractSchema, l as validateModel, m as validateStorage, n as checkSqlDefaultText, o as reservedSqlDefaultText, p as validateSqlStorageConsistency, r as createNamespaceEntrySchema, s as resolveSqlToOneRelationStorage, t as ContractEnumSchema, u as validateModelStorageReferences } from "./validators-BlONfdFH.mjs";
3
3
  export { CheckConstraintSchema, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, IndexSchema, ReferentialActionSchema, StorageTableSchema, StorageValueSetSchema, checkSqlDefaultText, createNamespaceEntrySchema, createSqlContractSchema, createSqlStorageSchema, reservedSqlDefaultText, resolveSqlToOneRelationStorage, validateExecutionDefaultsTargetMappedColumns, validateModel, validateModelStorageReferences, validateRelationJoinFields, validateSqlContractFully, validateSqlStorageConsistency, validateStorage, validateStorageSemantics, valueObjectStorageTypeMissingMessage };
@@ -6,22 +6,22 @@ import { r as SqlOperationDescriptors } from "./index-BRFLss5v.mjs";
6
6
  import { h as AnyQueryAst } from "./types-DVaVM20q-DrinF7w_.mjs";
7
7
  import { o as SqlExecuteRequest } from "./driver-types-DRsYeq3j-X_D6hNMZ.mjs";
8
8
  import { a as DdlNode } from "./ddl-types-CoP6yAw9-Cxc2zvi3.mjs";
9
- import { p as LowererContext } from "./ast-Cq7uhA86.mjs";
10
- import { a as ParsedNullLiteral, i as EnumMemberListDefault, n as DefaultFunctionCall, r as EnumMemberDefault } from "./attribute-specs-D9QcPJpj.mjs";
11
- import { S as SqlSchemaIRNode, b as SqlSchemaIR, p as SqlDefaultValue } from "./types-B3AHHPDh-BHh-89fY.mjs";
12
- import "./types-BGERR8XF.mjs";
9
+ import { p as LowererContext } from "./ast-DB7g9Mh2.mjs";
10
+ import { a as ParsedNullLiteral, i as EnumMemberListDefault, n as DefaultFunctionCall, r as EnumMemberDefault } from "./attribute-specs-BzBk62Jx.mjs";
11
+ import { S as SqlSchemaIRNode, b as SqlSchemaIR, p as SqlDefaultValue } from "./types-DiD6BqoN-ZF53hwPp.mjs";
12
+ import "./types-D_nlUp-1.mjs";
13
13
  import "./validators-CTZ-hU2l.mjs";
14
- import { r as SqlControlAdapter } from "./control-adapter-BCopdpsT-BPHa2Frw.mjs";
15
- import { t as sqlFamilyEnumSpec } from "./authoring-entity-types-CZ-vdwYS-CSU65LVs.mjs";
16
- import { D as SqlPlannerFailureResult, S as SqlMigrationRunnerSuccessValue, _ as SqlMigrationRunnerErrorCode, b as SqlMigrationRunnerFailure, f as SqlMigrationPlanOperationStep, g as SqlMigrationRunner, k as SqlPlannerSuccessResult, l as SqlMigrationPlan, m as SqlMigrationPlanner, n as CodecControlHooks, r as CreateSqlMigrationPlanOptions, t as AnyRecord, w as SqlPlannerConflict } from "./types-DKU4GeqD-CUClXCme.mjs";
17
- import { t as SqlSchemaDiffFn } from "./schema-differ-DmP74bB8-CIQ17HTk.mjs";
14
+ import { r as SqlControlAdapter } from "./control-adapter-Bn0uhplA-BnsQY8_q.mjs";
15
+ import { t as sqlFamilyEnumSpec } from "./authoring-entity-types-CZ-vdwYS-DzxLL9BC.mjs";
16
+ import { D as SqlPlannerFailureResult, S as SqlMigrationRunnerSuccessValue, _ as SqlMigrationRunnerErrorCode, b as SqlMigrationRunnerFailure, f as SqlMigrationPlanOperationStep, g as SqlMigrationRunner, k as SqlPlannerSuccessResult, l as SqlMigrationPlan, m as SqlMigrationPlanner, n as CodecControlHooks, r as CreateSqlMigrationPlanOptions, t as AnyRecord, w as SqlPlannerConflict } from "./types-DlFdMaDJ-BEDwj-Qv.mjs";
17
+ import { t as SqlSchemaDiffFn } from "./schema-differ-DmP74bB8-BfEQ_9cY.mjs";
18
18
  import { StructuredError } from "@prisma/orm-framework/utils/structured-error";
19
- import { DataTypeSupport, FieldPresetsByCodecAndGenerator, PresetStorageTemplate, TIMESTAMP_NOW_GENERATOR_ID } from "@prisma/orm-framework/components/authoring";
19
+ import { DataTypeSupport, PresetStorageTemplate, TIMESTAMP_NOW_GENERATOR_ID } from "@prisma/orm-framework/components/authoring";
20
20
  import { Codec, CodecLookupWithDescriptors, CodecRef, DataType, DataTypeLookup, TypeLookups } from "@prisma/orm-framework/components/codec";
21
21
  import { ColumnDefault, Contract, ContractWithDomain, ControlPolicy } from "@prisma/orm-framework/contract/types";
22
- import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
22
+ import { GeneratorFunctionRegistry, TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
23
23
  import { NotOk, Ok, Result } from "@prisma/orm-framework/utils/result";
24
- import { AppliedMigrationStatement, AssembledAuthoringContributions, ContractSerializer, ControlFamilyDescriptor, ControlFamilyInstance, ControlStack, DefaultFunctionPrinter, DiffSubjectGranularity, FailedCheck, FailedTypeChange, FieldCoordinate, ImportRequirement, MigratableTargetDescriptor, MigrationDataLossKind, MigrationOperationClass, MigrationOperationClass as MigrationOperationClass$1, MigrationOperationPolicy, MigrationOperationPolicy as MigrationOperationPolicy$1, MigrationPlan as MigrationPlan$1, MigrationPlanOperation, MigrationPlanOperation as MigrationPlanOperation$1, MigrationPlanSubjects, MigrationPlanner, MigrationPlannerConflict, MigrationPlannerConflict as MigrationPlannerConflict$1, MigrationPlannerResult, MigrationSubject, ModelCoordinate, OpFactoryCall, OperationPreview, OperationPreviewCapable, PslContractBuildCapable, PslContractInferCapable, ResolvedFieldRenameStatement, ResolvedMigrationStatement, ResolvedModelRenameStatement, ResolvedRenameStatement, RowsWithoutValue, SchemaDiffIssue, SchemaVerifier, SchemaViewCapable, TargetMigrationsCapability, VerifyDatabaseResult, VerifyDatabaseSchemaResult, assembleAuthoringContributions } from "@prisma/orm-framework/components/control";
24
+ import { AppliedMigrationStatement, AssembledAuthoringContributions, ContractSerializer, ControlFamilyDescriptor, ControlFamilyInstance, ControlStack, DiffSubjectGranularity, FailedCheck, FailedTypeChange, FieldCoordinate, ImportRequirement, MigratableTargetDescriptor, MigrationDataLossKind, MigrationOperationClass, MigrationOperationClass as MigrationOperationClass$1, MigrationOperationPolicy, MigrationOperationPolicy as MigrationOperationPolicy$1, MigrationPlan as MigrationPlan$1, MigrationPlanOperation, MigrationPlanOperation as MigrationPlanOperation$1, MigrationPlanSubjects, MigrationPlanner, MigrationPlannerConflict, MigrationPlannerConflict as MigrationPlannerConflict$1, MigrationPlannerResult, MigrationSubject, ModelCoordinate, OpFactoryCall, OperationPreview, OperationPreviewCapable, PslContractBuildCapable, PslContractInferCapable, ResolvedFieldRenameStatement, ResolvedMigrationStatement, ResolvedModelRenameStatement, ResolvedRenameStatement, RowsWithoutValue, SchemaDiffIssue, SchemaVerifier, SchemaViewCapable, TargetMigrationsCapability, VerifyDatabaseResult, VerifyDatabaseSchemaResult, assembleAuthoringContributions } from "@prisma/orm-framework/components/control";
25
25
  import { EmissionSpi, TypesImportSpec } from "@prisma/orm-framework/components/emission";
26
26
  import { PslDocumentAst } from "@prisma/orm-framework/components/psl-ast";
27
27
  //#region ../../../2-sql/9-family/dist/control.d.mts
@@ -334,6 +334,23 @@ declare class SqlFamilyDescriptor implements ControlFamilyDescriptor<'sql', SqlC
334
334
  };
335
335
  };
336
336
  readonly type: {
337
+ readonly Raw: {
338
+ readonly kind: "typeConstructor";
339
+ readonly documentation: "A column of a type no other column type covers, written exactly as the database catalog prints it, such as Raw(\"tsvector\"). Its values are typed unknown, and its default is a sql expression.";
340
+ readonly args: readonly [{
341
+ readonly kind: "string";
342
+ readonly name: "sql";
343
+ }];
344
+ readonly output: {
345
+ readonly codecId: "sql/raw@1";
346
+ readonly typeParams: {
347
+ readonly sql: {
348
+ readonly kind: "arg";
349
+ readonly index: 0;
350
+ };
351
+ };
352
+ };
353
+ };
337
354
  readonly sql: {
338
355
  readonly String: {
339
356
  readonly kind: "typeConstructor";
@@ -434,10 +451,72 @@ declare class SqlFamilyDescriptor implements ControlFamilyDescriptor<'sql', SqlC
434
451
  readonly default: (ctx: import("@prisma/orm-framework/psl-parser").FieldAttributeSpecContext) => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
435
452
  value: import("@prisma/orm-framework/psl-parser").ParsedWrittenScalar | ParsedNullLiteral | import("@prisma/orm-framework/psl-parser").ParsedWrittenList<import("@prisma/orm-framework/psl-parser").ParsedWrittenScalar | ParsedNullLiteral> | DefaultFunctionCall | EnumMemberDefault | EnumMemberListDefault;
436
453
  }, import("@prisma/orm-framework/psl-parser").FieldAttributeCtx>;
454
+ readonly onCreate: (ctx: import("@prisma/orm-framework/psl-parser").FieldAttributeSpecContext) => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
455
+ value: import("@prisma/orm-framework/psl-parser").TypedFuncCall;
456
+ }, import("@prisma/orm-framework/psl-parser").FieldAttributeCtx>;
457
+ readonly onUpdate: (ctx: import("@prisma/orm-framework/psl-parser").FieldAttributeSpecContext) => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
458
+ value: import("@prisma/orm-framework/psl-parser").TypedFuncCall;
459
+ }, import("@prisma/orm-framework/psl-parser").FieldAttributeCtx>;
437
460
  };
438
461
  };
439
462
  readonly dataTypes: Readonly<Record<string, import("@prisma/orm-framework/components/authoring").DataTypeAuthoringEntry>>;
440
463
  };
464
+ readonly generatorFunctions: readonly [{
465
+ readonly name: "now";
466
+ readonly signature: {
467
+ readonly documentation: "Writes the current time, as the column's codec represents it.";
468
+ };
469
+ readonly bindings: readonly [];
470
+ }, {
471
+ readonly name: "uuid";
472
+ readonly signature: {
473
+ readonly documentation: "Generates a UUID when a value is not supplied.";
474
+ readonly positional: readonly [{
475
+ readonly key: "version";
476
+ readonly type: import("@prisma/orm-framework/psl-parser").OptionalArgType<4 | 7, import("@prisma/orm-framework/psl-parser").AttributeCtx, import("@prisma/orm-framework/psl-parser").OneOfArgType<[import("@prisma/orm-framework/psl-parser").FixedNumArgType<4, import("@prisma/orm-framework/psl-parser").AttributeCtx>, import("@prisma/orm-framework/psl-parser").FixedNumArgType<7, import("@prisma/orm-framework/psl-parser").AttributeCtx>], import("@prisma/orm-framework/psl-parser").AttributeCtx>>;
477
+ readonly documentation: "The UUID version: `4` or `7`. Defaults to `4`.";
478
+ }];
479
+ };
480
+ readonly bindings: readonly import("@prisma/orm-framework/components/components").GeneratorFunctionBinding[];
481
+ }, {
482
+ readonly name: "cuid";
483
+ readonly signature: {
484
+ readonly documentation: "Generates a CUID2 identifier when a value is not supplied.";
485
+ readonly positional: readonly [{
486
+ readonly key: "version";
487
+ readonly type: import("@prisma/orm-framework/psl-parser").FixedNumArgType<2, import("@prisma/orm-framework/psl-parser").AttributeCtx>;
488
+ readonly documentation: "The CUID version. Only `2` is supported.";
489
+ }];
490
+ };
491
+ readonly bindings: readonly import("@prisma/orm-framework/components/components").GeneratorFunctionBinding[];
492
+ }, {
493
+ readonly name: "ulid";
494
+ readonly signature: {
495
+ readonly documentation: "Generates a ULID when a value is not supplied.";
496
+ };
497
+ readonly bindings: readonly import("@prisma/orm-framework/components/components").GeneratorFunctionBinding[];
498
+ }, {
499
+ readonly name: "nanoid";
500
+ readonly signature: {
501
+ readonly documentation: "Generates a Nano ID when a value is not supplied.";
502
+ readonly positional: readonly [{
503
+ readonly key: "size";
504
+ readonly type: import("@prisma/orm-framework/psl-parser").OptionalArgType<number, import("@prisma/orm-framework/psl-parser").AttributeCtx, import("@prisma/orm-framework/psl-parser").IntArgType<import("@prisma/orm-framework/psl-parser").AttributeCtx>>;
505
+ readonly documentation: "The identifier length, from `2` through `255`. Defaults to 21.";
506
+ }];
507
+ };
508
+ readonly bindings: readonly import("@prisma/orm-framework/components/components").GeneratorFunctionBinding[];
509
+ }, {
510
+ readonly name: "ksuid";
511
+ readonly signature: {
512
+ readonly documentation: "Generates a KSUID when a value is not supplied.";
513
+ };
514
+ readonly bindings: readonly import("@prisma/orm-framework/components/components").GeneratorFunctionBinding[];
515
+ }];
516
+ readonly controlMutationDefaults: {
517
+ defaultFunctionRegistry: Map<any, any>;
518
+ generatorDescriptors: readonly import("@prisma/orm-framework/components/control").MutationDefaultGeneratorDescriptor[];
519
+ };
441
520
  readonly pslDiagnostics: {
442
521
  readonly describeUnsupportedAttribute: unknown;
443
522
  readonly describeUnresolvedType: unknown;
@@ -470,12 +549,10 @@ interface SqlPslBuildContext {
470
549
  readonly authoringContributions: Pick<AssembledAuthoringContributions, 'type' | 'field'>;
471
550
  readonly codecLookup: CodecLookupWithDescriptors;
472
551
  readonly dataTypes: DataTypeSupport;
473
- /** For each generator id, the default function in the stack whose PSL call produces it. */
474
- readonly defaultFunctionPrintersByGenerator: ReadonlyMap<string, DefaultFunctionPrinter>;
552
+ /** The generator functions of the stack, which write each generator as `@onCreate(fn(...))` or `@onUpdate(fn(...))`. */
553
+ readonly generatorFunctions: GeneratorFunctionRegistry;
475
554
  /** For each generator id the stack registers, the id of the component that registers it, when that component has one. */
476
555
  readonly componentIdsByGenerator: ReadonlyMap<string, string | undefined>;
477
- /** For each codec, the field preset in the stack that writes a column of it with each generator. */
478
- readonly fieldPresetsByCodecAndGenerator: FieldPresetsByCodecAndGenerator;
479
556
  }
480
557
  interface SqlControlTargetDescriptor<TTargetId extends string, TTargetDetails, TContract extends Contract<SqlStorage> = Contract<SqlStorage>> extends MigratableTargetDescriptor<'sql', TTargetId, SqlControlFamilyInstance> {
481
558
  readonly queryOperations?: () => SqlOperationDescriptors;
@@ -1420,4 +1497,4 @@ declare function temporalCodecPresetWithPrecision<const CodecId extends string,
1420
1497
  declare const _default: SqlFamilyDescriptor;
1421
1498
  //#endregion
1422
1499
  export { TableRenameByHand as $, ReadColumnDefault as A, plannerSuccess as At, SqlDescribedContractSpace as B, runnerFailure as Bt, MigrationPlannerConflict$1 as C, modelRenameStorageEffect as Ct, NoTable as D, planFieldEventOperations as Dt, ModelTable as E, planFieldEventCalls as Et, RequiredColumnMark as F, requiredColumnsOfMigration as Ft, SqlTextSources as G, storageNameOfOperation as Gt, SqlQuote as H, slotSource as Ht, SchemaTables as I, resolveColumnRenameAgainst as It, SubjectStorage as J, temporalStringAuthoringPresets as Jt, StatementColumn as K, subjectsOfCalls as Kt, SingleOperationCall as L, resolveTableRenameAgainst as Lt, ReportedBody as M, readReportedDefault as Mt, ReportedLiteralDefault as N, requiredColumnMeta as Nt, PlanFieldEventOperationsOptions as O, planStatements as Ot, RequiredColumn as P, requiredColumnOf as Pt, TableRename as Q, unmatchedTableRename as Qt, SqlControlFamilyInstance as R, rowsWithoutValueFailure as Rt, MigrationPlanner as S, isUnfilledSlot as St, ModelStorageEffect as T, partitionIssuesByControlPolicy as Tt, SqlQuotingRules as U, sqlOfSlot as Ut, SqlPslBuildContext as V, runnerSuccess as Vt, SqlSlot as W, sqlTypeLookupsOf as Wt, TABLE_NAME_CASE_CHANGED_CODE as X, unknownCallNames as Xt, SuppressionRecord as Y, unconvertedFieldOf as Yt, TableNameCaseGuardTable as Z, unmatchedColumnRename as Zt, INIT_ADDITIVE_POLICY as _, extractCodecControlHooks as _t, ColumnRename as a, backfillOfDefaultedField as at, MigrationPlan$1 as b, fieldRenameStorageEffect as bt, ContractColumns as c, contractColumns as ct, ConvertedColumn as d, convertedColumnMeta as dt, TableRenameRequest as et, DefaultResolver as f, convertedColumnOf as ft, FieldStorageEffect as g, detectTableNameCaseChanges as gt, FieldStatementColumns as h, detectDestructiveChanges as ht, ColumnOnOneSide as i, assembleAuthoringContributions as it, ReadReportedDefault as j, readColumnDefault as jt, PlannedStatements as k, plannerFailure as kt, ContractToSchemaIROptions as l, contractNamespaceToSchemaIR as lt, FieldEventCall as m, createSqlTextSources as mt, CallSubjects as n, _default as nt, ColumnRenameRequest as o, checkSqlExpressionText as ot, DefaultResolverColumn as p, createMigrationPlan as pt, StatementPlanningTarget as q, temporalCodecPresetWithPrecision as qt, CallWithCompanions as r, appliedStatementsInOrder as rt, ContractColumn as s, columnTakesTemporaryValue as st, COLUMN_RENAME_UNMATCHED_CODE as t, TargetMigrationsCapability as tt, ControlPolicySubject as u, contractToSchemaIR as ut, MigrationOperationClass$1 as v, fieldEventStorage as vt, MigrationPlannerResult as w, partitionCallsByControlPolicy as wt, MigrationPlanOperation$1 as x, fieldStatementColumns as xt, MigrationOperationPolicy$1 as y, fieldOfColumn as yt, SqlControlTargetDescriptor as z, rowsWithoutValueSummary as zt };
1423
- //# sourceMappingURL=control-C56VTBHJ.d.mts.map
1500
+ //# sourceMappingURL=control-Db07JiRl.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-Db07JiRl.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/control.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;UAmBU;WACC,kBAAkB,cAAc;WAChC,cAAc;;UAEf,iCAAiC,6BAA6B,kBAAkB,kBAAkB,kBAAkB,wBAAwB,kBAAkB,wBAAwB,SAAS,cAAc,yBAAyB;;;;;;;;;EAS9O,oBAAoB,wBAAwB;EAC5C,OAAO;aACI,QAAQ;aACR;aACA;aACA;aACA;MACP,QAAQ;;;;;;;;;;EAUZ,aAAa;aACF;aACA,QAAQ;aACR;aACA,qBAAqB,cAAc;MAC1C;;;;;;;;;;EAUJ,2BAA2B,OAAO,kBAAkB;;;;;;;;EAQpD,mBAAmB,OAAO;EAC1B,WAAW;aACA,QAAQ;aACR;MACP,QAAQ;EACZ,iBAAiB,UAAU,kBAAkB,QAAQ;EACrD,SAAS,KAAK,cAAc,SAAS,SAAS,0BAA0B,QAAQ;;;;;;EAMhF,WAAW;aACA,QAAQ;aACR;aACA;eACE;eACA;eACA;;MAET;;;;;EAKJ,aAAa;aACF,QAAQ;aACR;aACA;aACA;eACE;eACA;eACA;;MAET;;;;;EAKJ,iBAAiB;aACN,QAAQ;aACR;aACA;eACE;eACA;eACA;eACA;eACA;eACA;eACA;;MAET;EACJ,yCAAyC;EACzC,mBAAmB,qBAAqB,2BAA6B;EACrE,cAAc,WAAW;;;;cAIb,+BAA+B,+BAA+B;WACjE;WACA;WACA;WACA;WACA,UAAU;WACV,oBAAoB;WACpB;aACE;eACE;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;uBACA;uBACA;uBACA;;;;iBAIN;mBACE;mBACA;qBACE;uBACE;uBACA;uBACA;uBACA;;;;;eAKR;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;yBACA;yBACA;yBACA;;;;mBAIN;qBACE;qBACA;uBACE;yBAC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