@prisma/orm-family-mongo 8.0.0-rc.22-dev.7 → 8.0.0-rc.22-dev.8

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 (116) hide show
  1. package/dist/{authoring-entity-types-J_patbMZ-CADuWYyG.mjs → authoring-entity-types-J_patbMZ-C509nMfw.mjs} +3 -3
  2. package/dist/{authoring-entity-types-J_patbMZ-CADuWYyG.mjs.map → authoring-entity-types-J_patbMZ-C509nMfw.mjs.map} +1 -1
  3. package/dist/codec.d.mts +2 -2
  4. package/dist/codec.mjs +2 -2
  5. package/dist/{config-types-DYTCUpAs.mjs → config-types-D4SnQaTy.mjs} +2 -2
  6. package/dist/{config-types-DYTCUpAs.mjs.map → config-types-D4SnQaTy.mjs.map} +1 -1
  7. package/dist/{contract-builder-Dg6WHTeR.mjs → contract-builder-CZlnxywD.mjs} +5 -5
  8. package/dist/{contract-builder-Dg6WHTeR.mjs.map → contract-builder-CZlnxywD.mjs.map} +1 -1
  9. package/dist/{contract-builder-DnbJB8eD.d.mts → contract-builder-DurxXsaj.d.mts} +2 -2
  10. package/dist/{contract-builder-DnbJB8eD.d.mts.map → contract-builder-DurxXsaj.d.mts.map} +1 -1
  11. package/dist/contract-prisma6__provider.mjs +5 -5
  12. package/dist/contract-psl.mjs +1 -1
  13. package/dist/contract-psl__provider.mjs +2 -2
  14. package/dist/contract-ts.d.mts +1 -1
  15. package/dist/contract-ts.mjs +2 -2
  16. package/dist/contract-ts__config-types.mjs +1 -1
  17. package/dist/contract-ts__contract-builder.d.mts +1 -1
  18. package/dist/contract-ts__contract-builder.mjs +1 -1
  19. package/dist/contract.d.mts +1 -1
  20. package/dist/contract.mjs +2 -2
  21. package/dist/contract__entity-kinds.mjs +1 -1
  22. package/dist/{control-DVHcBUoh.d.mts → control-0YmjHGNw.d.mts} +2 -2
  23. package/dist/{control-DVHcBUoh.d.mts.map → control-0YmjHGNw.d.mts.map} +1 -1
  24. package/dist/{control-AQF6tvbv.mjs → control-Ba7xgf0y.mjs} +9 -9
  25. package/dist/{control-AQF6tvbv.mjs.map → control-Ba7xgf0y.mjs.map} +1 -1
  26. package/dist/{control-Cpgdr11Q.d.mts → control-DMkn0GMN.d.mts} +5 -5
  27. package/dist/{control-Cpgdr11Q.d.mts.map → control-DMkn0GMN.d.mts.map} +1 -1
  28. package/dist/{control-adapter-BheElqfe-BVp5aOMr.d.mts → control-adapter-BheElqfe-iFCyJUfP.d.mts} +4 -4
  29. package/dist/{control-adapter-BheElqfe-BVp5aOMr.d.mts.map → control-adapter-BheElqfe-iFCyJUfP.d.mts.map} +1 -1
  30. package/dist/control-adapter-lmZYICe8.d.mts +1 -0
  31. package/dist/dist-1lgitHtv.mjs +92 -0
  32. package/dist/dist-1lgitHtv.mjs.map +1 -0
  33. package/dist/{dist-BwYedu6-.mjs → dist-CQ1Di6Ei.mjs} +5 -5
  34. package/dist/{dist-BwYedu6-.mjs.map → dist-CQ1Di6Ei.mjs.map} +1 -1
  35. package/dist/{dist-BPlVwyAb.mjs → dist-TDWqXC1F.mjs} +4 -4
  36. package/dist/{dist-BPlVwyAb.mjs.map → dist-TDWqXC1F.mjs.map} +1 -1
  37. package/dist/{entity-kinds-CoJfiouk-DMiKGW0u.mjs → entity-kinds-BI-PWX8L-DRxc2Flr.mjs} +3 -3
  38. package/dist/entity-kinds-BI-PWX8L-DRxc2Flr.mjs.map +1 -0
  39. package/dist/{execution-BoVPgPvR.mjs → execution-CE-CNrFY.mjs} +2 -2
  40. package/dist/{execution-BoVPgPvR.mjs.map → execution-CE-CNrFY.mjs.map} +1 -1
  41. package/dist/{execution-CZhOXkot.d.mts → execution-CGierEKK.d.mts} +3 -3
  42. package/dist/{execution-CZhOXkot.d.mts.map → execution-CGierEKK.d.mts.map} +1 -1
  43. package/dist/family.d.mts +9 -9
  44. package/dist/family.mjs +8 -8
  45. package/dist/family__control-adapter.d.mts +2 -2
  46. package/dist/family__control.d.mts +1 -1
  47. package/dist/family__control.mjs +2 -2
  48. package/dist/family__ir.d.mts +2 -2
  49. package/dist/family__ir.mjs +3 -3
  50. package/dist/family__migration.d.mts +1 -1
  51. package/dist/family__migration.mjs +1 -1
  52. package/dist/family__pack.mjs +2 -2
  53. package/dist/family__runtime.d.mts +2 -2
  54. package/dist/family__runtime.mjs +1 -1
  55. package/dist/family__schema-verify.d.mts +1 -1
  56. package/dist/family__schema-verify.mjs +1 -1
  57. package/dist/{field-accessor-0oUt6RZC-BjNwSinZ.mjs → field-accessor-0oUt6RZC-D2x7hCuJ.mjs} +2 -2
  58. package/dist/{field-accessor-0oUt6RZC-BjNwSinZ.mjs.map → field-accessor-0oUt6RZC-D2x7hCuJ.mjs.map} +1 -1
  59. package/dist/{field-accessor-CqKt9hxI-Co64FQ3V.d.mts → field-accessor-CqKt9hxI-AngsT5mI.d.mts} +3 -3
  60. package/dist/{field-accessor-CqKt9hxI-Co64FQ3V.d.mts.map → field-accessor-CqKt9hxI-AngsT5mI.d.mts.map} +1 -1
  61. package/dist/{index-CQG5l2o9.d.mts → index-Cfv3XKXM.d.mts} +29 -3
  62. package/dist/{index-CQG5l2o9.d.mts.map → index-Cfv3XKXM.d.mts.map} +1 -1
  63. package/dist/{index-BonKbeyU.d.mts → index-D21Pb9vL.d.mts} +2 -2
  64. package/dist/{index-BonKbeyU.d.mts.map → index-D21Pb9vL.d.mts.map} +1 -1
  65. package/dist/{index-D9TThYU9.d.mts → index-DXhwK4nr.d.mts} +3 -3
  66. package/dist/{index-D9TThYU9.d.mts.map → index-DXhwK4nr.d.mts.map} +1 -1
  67. package/dist/{index-B3o8NFNH.d.mts → index-DcQFfwkK.d.mts} +2 -2
  68. package/dist/{index-B3o8NFNH.d.mts.map → index-DcQFfwkK.d.mts.map} +1 -1
  69. package/dist/{index-Bh6a8q-2.d.mts → index-TNRD-MRI.d.mts} +4 -4
  70. package/dist/{index-Bh6a8q-2.d.mts.map → index-TNRD-MRI.d.mts.map} +1 -1
  71. package/dist/{interpreter-BX0gy2Yu-DfsnMHjO.mjs → interpreter-BX0gy2Yu-vTz2kU_w.mjs} +4 -4
  72. package/dist/{interpreter-BX0gy2Yu-DfsnMHjO.mjs.map → interpreter-BX0gy2Yu-vTz2kU_w.mjs.map} +1 -1
  73. package/dist/{ir-C7oVYJg2.mjs → ir-C-tQIDYD.mjs} +2 -2
  74. package/dist/{ir-C7oVYJg2.mjs.map → ir-C-tQIDYD.mjs.map} +1 -1
  75. package/dist/{ir-ZONNL1YV.d.mts → ir-DH1ciHWj.d.mts} +3 -3
  76. package/dist/{ir-ZONNL1YV.d.mts.map → ir-DH1ciHWj.d.mts.map} +1 -1
  77. package/dist/lowering.d.mts +1 -1
  78. package/dist/{migration-C0N4Uamo.mjs → migration-C0MoM7dG.mjs} +2 -2
  79. package/dist/{migration-C0N4Uamo.mjs.map → migration-C0MoM7dG.mjs.map} +1 -1
  80. package/dist/{migration-RzYuoweU.d.mts → migration-fjq98toS.d.mts} +4 -4
  81. package/dist/{migration-RzYuoweU.d.mts.map → migration-fjq98toS.d.mts.map} +1 -1
  82. package/dist/{mongo-contract-serializer-BBknnHWy-CZOnQGdR.mjs → mongo-contract-serializer-BBknnHWy-C0r2Kcjr.mjs} +4 -4
  83. package/dist/{mongo-contract-serializer-BBknnHWy-CZOnQGdR.mjs.map → mongo-contract-serializer-BBknnHWy-C0r2Kcjr.mjs.map} +1 -1
  84. package/dist/{mongo-contract-view-AnejqfrQ-k0FbFieN.d.mts → mongo-contract-view-AnejqfrQ-CPjNHMFu.d.mts} +2 -2
  85. package/dist/{mongo-contract-view-AnejqfrQ-k0FbFieN.d.mts.map → mongo-contract-view-AnejqfrQ-CPjNHMFu.d.mts.map} +1 -1
  86. package/dist/{mongo-contract-view-CF5trX6R-BCPkEgiL.mjs → mongo-contract-view-CF5trX6R-Ci7aGNQk.mjs} +3 -3
  87. package/dist/{mongo-contract-view-CF5trX6R-BCPkEgiL.mjs.map → mongo-contract-view-CF5trX6R-Ci7aGNQk.mjs.map} +1 -1
  88. package/dist/orm.d.mts +3 -3
  89. package/dist/orm.mjs +6 -6
  90. package/dist/query-ast.d.mts +2 -2
  91. package/dist/query-ast.mjs +1 -1
  92. package/dist/query-ast__control.d.mts +1 -1
  93. package/dist/query-ast__execution.d.mts +1 -1
  94. package/dist/query-ast__execution.mjs +1 -1
  95. package/dist/query-builder.d.mts +3 -3
  96. package/dist/query-builder.mjs +2 -2
  97. package/dist/query-builder__contract-free.d.mts +3 -3
  98. package/dist/query-builder__contract-free.mjs +2 -2
  99. package/dist/{runtime-D_E5N6Ii.d.mts → runtime-ZGXLjqEe.d.mts} +2 -2
  100. package/dist/runtime-ZGXLjqEe.d.mts.map +1 -0
  101. package/dist/runtime.d.mts +6 -11
  102. package/dist/runtime.d.mts.map +1 -1
  103. package/dist/runtime.mjs +30 -21
  104. package/dist/runtime.mjs.map +1 -1
  105. package/dist/schema-ir.d.mts +1 -1
  106. package/dist/{schema-verify-BTRGeQWE.d.mts → schema-verify-CpWcSHyM.d.mts} +3 -3
  107. package/dist/{schema-verify-BTRGeQWE.d.mts.map → schema-verify-CpWcSHyM.d.mts.map} +1 -1
  108. package/dist/{verify-mongo-schema-CyvUewwP-Dl3QC2wh.mjs → verify-mongo-schema-CyvUewwP-LjL7ZtTU.mjs} +3 -3
  109. package/dist/{verify-mongo-schema-CyvUewwP-Dl3QC2wh.mjs.map → verify-mongo-schema-CyvUewwP-LjL7ZtTU.mjs.map} +1 -1
  110. package/dist/wire.d.mts +2 -2
  111. package/package.json +20 -20
  112. package/dist/control-adapter-CGIKt9Hq.d.mts +0 -1
  113. package/dist/dist-Bgk36iLI.mjs +0 -53
  114. package/dist/dist-Bgk36iLI.mjs.map +0 -1
  115. package/dist/entity-kinds-CoJfiouk-DMiKGW0u.mjs.map +0 -1
  116. package/dist/runtime-D_E5N6Ii.d.mts.map +0 -1
@@ -1,6 +1,7 @@
1
+ import "@prisma/orm-framework/utils/casts";
2
+ import "@prisma/orm-framework/utils/defined";
1
3
  import "@prisma/orm-framework/utils/structured-error";
2
4
  import { enumRefusalOf } from "@prisma/orm-framework/components/codec";
3
- import "@prisma/orm-framework/utils/casts";
4
5
  import "@prisma/orm-framework/components/ir";
5
6
  import "@prisma/orm-framework/contract/types";
6
7
  import "@prisma/orm-framework/contract/hashing";
@@ -9,7 +10,6 @@ import "@prisma/orm-framework/utils/result";
9
10
  import { enumType } from "@prisma/orm-framework/contract-authoring";
10
11
  import { readEnumBlockMembers, resolveEnumCodecId } from "@prisma/orm-framework/components/authoring";
11
12
  import "@prisma/orm-framework/components/components";
12
- import "@prisma/orm-framework/utils/defined";
13
13
  import "@prisma/orm-framework/utils/canonical-stringify";
14
14
  import "@prisma/orm-framework/components/control";
15
15
  import { blockAttribute, enumMemberValue, mapBlock, str } from "@prisma/orm-framework/psl-parser";
@@ -87,4 +87,4 @@ const mongoFamilyPslBlockDescriptors = { enum: {
87
87
  //#endregion
88
88
  export { mongoFamilyPslBlockDescriptors as n, mongoFamilyEntityTypes as t };
89
89
 
90
- //# sourceMappingURL=authoring-entity-types-J_patbMZ-CADuWYyG.mjs.map
90
+ //# sourceMappingURL=authoring-entity-types-J_patbMZ-C509nMfw.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"authoring-entity-types-J_patbMZ-CADuWYyG.mjs","names":[],"sources":["../../../../2-mongo-family/9-family/dist/authoring-entity-types-J_patbMZ.mjs"],"sourcesContent":["import \"@internal/utils/defined\";\nimport { readEnumBlockMembers, resolveEnumCodecId } from \"@internal/framework-components/authoring\";\nimport { enumRefusalOf } from \"@internal/framework-components/codec\";\nimport \"@internal/utils/structured-error\";\nimport \"@internal/contract/hashing\";\nimport \"@internal/framework-components/components\";\nimport \"@internal/mongo-contract\";\nimport \"@internal/utils/result\";\nimport \"@internal/utils/canonical-stringify\";\nimport \"@internal/utils/casts\";\nimport \"@internal/contract/types\";\nimport { enumType } from \"@internal/contract-authoring\";\nimport \"@internal/mongo-contract/data-type\";\nimport \"@internal/framework-components/control\";\nimport \"@internal/framework-components/ir\";\nimport \"@internal/utils/assertions\";\nimport { blockAttribute, enumMemberValue, mapBlock, str } from \"@internal/psl-parser\";\n//#region src/core/authoring-entity-types.ts\nfunction mongoFamilyEnumSpec() {\n\treturn mapBlock({\n\t\tvalue: {\n\t\t\ttype: enumMemberValue(),\n\t\t\tdocumentation: \"The member's value, written as a value of the enum's data type; a bare member stores its own name.\"\n\t\t},\n\t\tallowBare: true\n\t});\n}\nconst mongoFamilyEntityTypes = { enum: {\n\tkind: \"entity\",\n\tdiscriminator: \"enum\",\n\toutput: { factory: (block, ctx) => {\n\t\tconst sourceId = ctx.sourceId ?? \"unknown\";\n\t\tconst diagnostics = ctx.diagnostics;\n\t\tconst resolved = resolveEnumCodecId(block, ctx);\n\t\tif (resolved === void 0) return;\n\t\tconst { codecId, codecSpan } = resolved;\n\t\tconst descriptor = ctx.codecLookup.descriptorFor(codecId);\n\t\tif (descriptor === void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" @@type references unknown codec \"${codecId}\"`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: codecSpan\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst enumRefusal = enumRefusalOf(descriptor);\n\t\tif (enumRefusal !== void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" cannot use the codec \"${codecId}\". ${enumRefusal}`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: codecSpan\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst codec = ctx.codecLookup.get(codecId);\n\t\tif (codec === void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" @@type codec \"${codecId}\" is registered but codecLookup.get has no codec for it`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: codecSpan\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst members = readEnumBlockMembers(block, codecId, codec, ctx);\n\t\tif (members === void 0) return void 0;\n\t\treturn enumType(block.name, { codecId }, ...members);\n\t} }\n} };\nconst enumTypeBlockAttribute = blockAttribute(\"type\", {\n\tdocumentation: \"Selects the storage codec for this enum.\",\n\tpositional: [{\n\t\tkey: \"codecId\",\n\t\ttype: str(),\n\t\tdocumentation: \"The fully qualified codec identifier used to store enum values.\"\n\t}]\n});\nconst mongoFamilyPslBlockDescriptors = { enum: {\n\tkind: \"pslBlock\",\n\tkeyword: \"enum\",\n\tdocumentation: \"Defines an enum with named values and an inferred or explicitly selected storage codec.\",\n\tdiscriminator: \"enum\",\n\tname: { required: true },\n\tspec: mongoFamilyEnumSpec,\n\tattributes: { type: () => enumTypeBlockAttribute }\n} };\n//#endregion\nexport { mongoFamilyPslBlockDescriptors as n, mongoFamilyEntityTypes as t };\n\n//# sourceMappingURL=authoring-entity-types-J_patbMZ.mjs.map"],"mappings":";;;;;;;;;;;;;;;;AAkBA,SAAS,sBAAsB;CAC9B,OAAO,SAAS;EACf,OAAO;GACN,MAAM,gBAAgB;GACtB,eAAe;EAChB;EACA,WAAW;CACZ,CAAC;AACF;AACA,MAAM,yBAAyB,EAAE,MAAM;CACtC,MAAM;CACN,eAAe;CACf,QAAQ,EAAE,UAAU,OAAO,QAAQ;EAClC,MAAM,WAAW,IAAI,YAAY;EACjC,MAAM,cAAc,IAAI;EACxB,MAAM,WAAW,mBAAmB,OAAO,GAAG;EAC9C,IAAI,aAAa,KAAK,GAAG;EACzB,MAAM,EAAE,SAAS,cAAc;EAC/B,MAAM,aAAa,IAAI,YAAY,cAAc,OAAO;EACxD,IAAI,eAAe,KAAK,GAAG;GAC1B,aAAa,KAAK;IACjB,MAAM;IACN,SAAS,SAAS,MAAM,KAAK,qCAAqC,QAAQ;IAC1E;IACA,MAAM;GACP,CAAC;GACD;EACD;EACA,MAAM,cAAc,cAAc,UAAU;EAC5C,IAAI,gBAAgB,KAAK,GAAG;GAC3B,aAAa,KAAK;IACjB,MAAM;IACN,SAAS,SAAS,MAAM,KAAK,0BAA0B,QAAQ,KAAK;IACpE;IACA,MAAM;GACP,CAAC;GACD;EACD;EACA,MAAM,QAAQ,IAAI,YAAY,IAAI,OAAO;EACzC,IAAI,UAAU,KAAK,GAAG;GACrB,aAAa,KAAK;IACjB,MAAM;IACN,SAAS,SAAS,MAAM,KAAK,kBAAkB,QAAQ;IACvD;IACA,MAAM;GACP,CAAC;GACD;EACD;EACA,MAAM,UAAU,qBAAqB,OAAO,SAAS,OAAO,GAAG;EAC/D,IAAI,YAAY,KAAK,GAAG,OAAO,KAAK;EACpC,OAAO,SAAS,MAAM,MAAM,EAAE,QAAQ,GAAG,GAAG,OAAO;CACpD,EAAE;AACH,EAAE;AACF,MAAM,yBAAyB,eAAe,QAAQ;CACrD,eAAe;CACf,YAAY,CAAC;EACZ,KAAK;EACL,MAAM,IAAI;EACV,eAAe;CAChB,CAAC;AACF,CAAC;AACD,MAAM,iCAAiC,EAAE,MAAM;CAC9C,MAAM;CACN,SAAS;CACT,eAAe;CACf,eAAe;CACf,MAAM,EAAE,UAAU,KAAK;CACvB,MAAM;CACN,YAAY,EAAE,YAAY,uBAAuB;AAClD,EAAE"}
1
+ {"version":3,"file":"authoring-entity-types-J_patbMZ-C509nMfw.mjs","names":[],"sources":["../../../../2-mongo-family/9-family/dist/authoring-entity-types-J_patbMZ.mjs"],"sourcesContent":["import \"@internal/utils/defined\";\nimport { readEnumBlockMembers, resolveEnumCodecId } from \"@internal/framework-components/authoring\";\nimport { enumRefusalOf } from \"@internal/framework-components/codec\";\nimport \"@internal/utils/structured-error\";\nimport \"@internal/contract/hashing\";\nimport \"@internal/framework-components/components\";\nimport \"@internal/mongo-contract\";\nimport \"@internal/utils/result\";\nimport \"@internal/utils/canonical-stringify\";\nimport \"@internal/utils/casts\";\nimport \"@internal/contract/types\";\nimport { enumType } from \"@internal/contract-authoring\";\nimport \"@internal/mongo-contract/data-type\";\nimport \"@internal/framework-components/control\";\nimport \"@internal/framework-components/ir\";\nimport \"@internal/utils/assertions\";\nimport { blockAttribute, enumMemberValue, mapBlock, str } from \"@internal/psl-parser\";\n//#region src/core/authoring-entity-types.ts\nfunction mongoFamilyEnumSpec() {\n\treturn mapBlock({\n\t\tvalue: {\n\t\t\ttype: enumMemberValue(),\n\t\t\tdocumentation: \"The member's value, written as a value of the enum's data type; a bare member stores its own name.\"\n\t\t},\n\t\tallowBare: true\n\t});\n}\nconst mongoFamilyEntityTypes = { enum: {\n\tkind: \"entity\",\n\tdiscriminator: \"enum\",\n\toutput: { factory: (block, ctx) => {\n\t\tconst sourceId = ctx.sourceId ?? \"unknown\";\n\t\tconst diagnostics = ctx.diagnostics;\n\t\tconst resolved = resolveEnumCodecId(block, ctx);\n\t\tif (resolved === void 0) return;\n\t\tconst { codecId, codecSpan } = resolved;\n\t\tconst descriptor = ctx.codecLookup.descriptorFor(codecId);\n\t\tif (descriptor === void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" @@type references unknown codec \"${codecId}\"`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: codecSpan\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst enumRefusal = enumRefusalOf(descriptor);\n\t\tif (enumRefusal !== void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" cannot use the codec \"${codecId}\". ${enumRefusal}`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: codecSpan\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst codec = ctx.codecLookup.get(codecId);\n\t\tif (codec === void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" @@type codec \"${codecId}\" is registered but codecLookup.get has no codec for it`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: codecSpan\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst members = readEnumBlockMembers(block, codecId, codec, ctx);\n\t\tif (members === void 0) return void 0;\n\t\treturn enumType(block.name, { codecId }, ...members);\n\t} }\n} };\nconst enumTypeBlockAttribute = blockAttribute(\"type\", {\n\tdocumentation: \"Selects the storage codec for this enum.\",\n\tpositional: [{\n\t\tkey: \"codecId\",\n\t\ttype: str(),\n\t\tdocumentation: \"The fully qualified codec identifier used to store enum values.\"\n\t}]\n});\nconst mongoFamilyPslBlockDescriptors = { enum: {\n\tkind: \"pslBlock\",\n\tkeyword: \"enum\",\n\tdocumentation: \"Defines an enum with named values and an inferred or explicitly selected storage codec.\",\n\tdiscriminator: \"enum\",\n\tname: { required: true },\n\tspec: mongoFamilyEnumSpec,\n\tattributes: { type: () => enumTypeBlockAttribute }\n} };\n//#endregion\nexport { mongoFamilyPslBlockDescriptors as n, mongoFamilyEntityTypes as t };\n\n//# sourceMappingURL=authoring-entity-types-J_patbMZ.mjs.map"],"mappings":";;;;;;;;;;;;;;;;AAkBA,SAAS,sBAAsB;CAC9B,OAAO,SAAS;EACf,OAAO;GACN,MAAM,gBAAgB;GACtB,eAAe;EAChB;EACA,WAAW;CACZ,CAAC;AACF;AACA,MAAM,yBAAyB,EAAE,MAAM;CACtC,MAAM;CACN,eAAe;CACf,QAAQ,EAAE,UAAU,OAAO,QAAQ;EAClC,MAAM,WAAW,IAAI,YAAY;EACjC,MAAM,cAAc,IAAI;EACxB,MAAM,WAAW,mBAAmB,OAAO,GAAG;EAC9C,IAAI,aAAa,KAAK,GAAG;EACzB,MAAM,EAAE,SAAS,cAAc;EAC/B,MAAM,aAAa,IAAI,YAAY,cAAc,OAAO;EACxD,IAAI,eAAe,KAAK,GAAG;GAC1B,aAAa,KAAK;IACjB,MAAM;IACN,SAAS,SAAS,MAAM,KAAK,qCAAqC,QAAQ;IAC1E;IACA,MAAM;GACP,CAAC;GACD;EACD;EACA,MAAM,cAAc,cAAc,UAAU;EAC5C,IAAI,gBAAgB,KAAK,GAAG;GAC3B,aAAa,KAAK;IACjB,MAAM;IACN,SAAS,SAAS,MAAM,KAAK,0BAA0B,QAAQ,KAAK;IACpE;IACA,MAAM;GACP,CAAC;GACD;EACD;EACA,MAAM,QAAQ,IAAI,YAAY,IAAI,OAAO;EACzC,IAAI,UAAU,KAAK,GAAG;GACrB,aAAa,KAAK;IACjB,MAAM;IACN,SAAS,SAAS,MAAM,KAAK,kBAAkB,QAAQ;IACvD;IACA,MAAM;GACP,CAAC;GACD;EACD;EACA,MAAM,UAAU,qBAAqB,OAAO,SAAS,OAAO,GAAG;EAC/D,IAAI,YAAY,KAAK,GAAG,OAAO,KAAK;EACpC,OAAO,SAAS,MAAM,MAAM,EAAE,QAAQ,GAAG,GAAG,OAAO;CACpD,EAAE;AACH,EAAE;AACF,MAAM,yBAAyB,eAAe,QAAQ;CACrD,eAAe;CACf,YAAY,CAAC;EACZ,KAAK;EACL,MAAM,IAAI;EACV,eAAe;CAChB,CAAC;AACF,CAAC;AACD,MAAM,iCAAiC,EAAE,MAAM;CAC9C,MAAM;CACN,SAAS;CACT,eAAe;CACf,eAAe;CACf,MAAM,EAAE,UAAU,KAAK;CACvB,MAAM;CACN,YAAY,EAAE,YAAY,uBAAuB;AAClD,EAAE"}
package/dist/codec.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as mongoCodec, i as MongoCodecTrait, n as MongoCodecInput, o as newMongoCodecRegistry, r as MongoCodecRegistry, t as MongoCodec } from "./index-CQG5l2o9.mjs";
2
- export { type MongoCodec, type MongoCodecInput, type MongoCodecRegistry, type MongoCodecTrait, mongoCodec, newMongoCodecRegistry };
1
+ import { a as MongoCodecRegistry, c as mongoCodec, i as MongoCodecInput, l as mongoCodecDescriptor, n as MongoCodecContributor, o as MongoCodecTrait, r as MongoCodecDescriptorMetadata, s as assembleMongoCodecRegistry, t as MongoCodec, u as newMongoCodecRegistry } from "./index-Cfv3XKXM.mjs";
2
+ export { type MongoCodec, type MongoCodecContributor, type MongoCodecDescriptorMetadata, type MongoCodecInput, type MongoCodecRegistry, type MongoCodecTrait, assembleMongoCodecRegistry, mongoCodec, mongoCodecDescriptor, newMongoCodecRegistry };
package/dist/codec.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { n as newMongoCodecRegistry, t as mongoCodec } from "./dist-Bgk36iLI.mjs";
2
- export { mongoCodec, newMongoCodecRegistry };
1
+ import { i as newMongoCodecRegistry, n as mongoCodec, r as mongoCodecDescriptor, t as assembleMongoCodecRegistry } from "./dist-1lgitHtv.mjs";
2
+ export { assembleMongoCodecRegistry, mongoCodec, mongoCodecDescriptor, newMongoCodecRegistry };
@@ -1,8 +1,8 @@
1
1
  import { t as contractError } from "./contract-errors-BCN6RVI5-kMurtAbI.mjs";
2
+ import { ifDefined } from "@prisma/orm-framework/utils/defined";
2
3
  import { InternalError } from "@prisma/orm-framework/utils/internal-error";
3
4
  import { applySpecifierDefaultControlPolicy } from "@prisma/orm-framework/contract/apply-specifier-default-control-policy";
4
5
  import { ok } from "@prisma/orm-framework/utils/result";
5
- import { ifDefined } from "@prisma/orm-framework/utils/defined";
6
6
  import { pathToFileURL } from "node:url";
7
7
  //#region ../../../2-mongo-family/2-authoring/contract-ts/dist/config-types.mjs
8
8
  function typescriptContract(contract, output, options) {
@@ -34,4 +34,4 @@ function typescriptContractFromPath(contractPath, output, options) {
34
34
  //#endregion
35
35
  export { typescriptContractFromPath as n, typescriptContract as t };
36
36
 
37
- //# sourceMappingURL=config-types-DYTCUpAs.mjs.map
37
+ //# sourceMappingURL=config-types-D4SnQaTy.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-types-DYTCUpAs.mjs","names":[],"sources":["../../../../2-mongo-family/2-authoring/contract-ts/dist/config-types.mjs"],"sourcesContent":["import { t as contractError } from \"./contract-errors-BCN6RVI5.mjs\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { ok } from \"@internal/utils/result\";\nimport { pathToFileURL } from \"node:url\";\nimport { applySpecifierDefaultControlPolicy } from \"@internal/contract/apply-specifier-default-control-policy\";\nimport { InternalError } from \"@internal/utils/internal-error\";\n//#region src/config-types.ts\nfunction typescriptContract(contract, output, options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"typescript\",\n\t\t\tload: async () => ok(applySpecifierDefaultControlPolicy(contract, options?.defaultControlPolicy))\n\t\t},\n\t\t...ifDefined(\"output\", output)\n\t};\n}\nfunction typescriptContractFromPath(contractPath, output, options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"typescript\",\n\t\t\tinputs: [contractPath],\n\t\t\tload: async (context) => {\n\t\t\t\tconst [absolutePath] = context.resolvedInputs;\n\t\t\t\tif (absolutePath === void 0) throw new InternalError(\"typescriptContractFromPath: context.resolvedInputs is empty. The CLI config loader should populate it from source.inputs.\");\n\t\t\t\tconst mod = await import(pathToFileURL(absolutePath).href);\n\t\t\t\tconst contract = mod.default ?? mod.contract;\n\t\t\t\tif (contract === void 0) throw contractError(\"CONTRACT.MODULE_EXPORT_MISSING\", `typescriptContractFromPath: module at \"${absolutePath}\" has no \"default\" or \"contract\" export.`, { meta: { path: absolutePath } });\n\t\t\t\treturn ok(applySpecifierDefaultControlPolicy(contract, options?.defaultControlPolicy));\n\t\t\t}\n\t\t},\n\t\t...ifDefined(\"output\", output)\n\t};\n}\n//#endregion\nexport { typescriptContract, typescriptContractFromPath };\n\n//# sourceMappingURL=config-types.mjs.map"],"mappings":";;;;;;;AAOA,SAAS,mBAAmB,UAAU,QAAQ,SAAS;CACtD,OAAO;EACN,QAAQ;GACP,QAAQ;GACR,MAAM,YAAY,GAAG,mCAAmC,UAAU,SAAS,oBAAoB,CAAC;EACjG;EACA,GAAG,UAAU,UAAU,MAAM;CAC9B;AACD;AACA,SAAS,2BAA2B,cAAc,QAAQ,SAAS;CAClE,OAAO;EACN,QAAQ;GACP,QAAQ;GACR,QAAQ,CAAC,YAAY;GACrB,MAAM,OAAO,YAAY;IACxB,MAAM,CAAC,gBAAgB,QAAQ;IAC/B,IAAI,iBAAiB,KAAK,GAAG,MAAM,IAAI,cAAc,2HAA2H;IAChL,MAAM,MAAM,MAAM,OAAO,cAAc,YAAY,CAAC,CAAC;IACrD,MAAM,WAAW,IAAI,WAAW,IAAI;IACpC,IAAI,aAAa,KAAK,GAAG,MAAM,cAAc,kCAAkC,0CAA0C,aAAa,2CAA2C,EAAE,MAAM,EAAE,MAAM,aAAa,EAAE,CAAC;IACjN,OAAO,GAAG,mCAAmC,UAAU,SAAS,oBAAoB,CAAC;GACtF;EACD;EACA,GAAG,UAAU,UAAU,MAAM;CAC9B;AACD"}
1
+ {"version":3,"file":"config-types-D4SnQaTy.mjs","names":[],"sources":["../../../../2-mongo-family/2-authoring/contract-ts/dist/config-types.mjs"],"sourcesContent":["import { t as contractError } from \"./contract-errors-BCN6RVI5.mjs\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { ok } from \"@internal/utils/result\";\nimport { pathToFileURL } from \"node:url\";\nimport { applySpecifierDefaultControlPolicy } from \"@internal/contract/apply-specifier-default-control-policy\";\nimport { InternalError } from \"@internal/utils/internal-error\";\n//#region src/config-types.ts\nfunction typescriptContract(contract, output, options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"typescript\",\n\t\t\tload: async () => ok(applySpecifierDefaultControlPolicy(contract, options?.defaultControlPolicy))\n\t\t},\n\t\t...ifDefined(\"output\", output)\n\t};\n}\nfunction typescriptContractFromPath(contractPath, output, options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"typescript\",\n\t\t\tinputs: [contractPath],\n\t\t\tload: async (context) => {\n\t\t\t\tconst [absolutePath] = context.resolvedInputs;\n\t\t\t\tif (absolutePath === void 0) throw new InternalError(\"typescriptContractFromPath: context.resolvedInputs is empty. The CLI config loader should populate it from source.inputs.\");\n\t\t\t\tconst mod = await import(pathToFileURL(absolutePath).href);\n\t\t\t\tconst contract = mod.default ?? mod.contract;\n\t\t\t\tif (contract === void 0) throw contractError(\"CONTRACT.MODULE_EXPORT_MISSING\", `typescriptContractFromPath: module at \"${absolutePath}\" has no \"default\" or \"contract\" export.`, { meta: { path: absolutePath } });\n\t\t\t\treturn ok(applySpecifierDefaultControlPolicy(contract, options?.defaultControlPolicy));\n\t\t\t}\n\t\t},\n\t\t...ifDefined(\"output\", output)\n\t};\n}\n//#endregion\nexport { typescriptContract, typescriptContractFromPath };\n\n//# sourceMappingURL=config-types.mjs.map"],"mappings":";;;;;;;AAOA,SAAS,mBAAmB,UAAU,QAAQ,SAAS;CACtD,OAAO;EACN,QAAQ;GACP,QAAQ;GACR,MAAM,YAAY,GAAG,mCAAmC,UAAU,SAAS,oBAAoB,CAAC;EACjG;EACA,GAAG,UAAU,UAAU,MAAM;CAC9B;AACD;AACA,SAAS,2BAA2B,cAAc,QAAQ,SAAS;CAClE,OAAO;EACN,QAAQ;GACP,QAAQ;GACR,QAAQ,CAAC,YAAY;GACrB,MAAM,OAAO,YAAY;IACxB,MAAM,CAAC,gBAAgB,QAAQ;IAC/B,IAAI,iBAAiB,KAAK,GAAG,MAAM,IAAI,cAAc,2HAA2H;IAChL,MAAM,MAAM,MAAM,OAAO,cAAc,YAAY,CAAC,CAAC;IACrD,MAAM,WAAW,IAAI,WAAW,IAAI;IACpC,IAAI,aAAa,KAAK,GAAG,MAAM,cAAc,kCAAkC,0CAA0C,aAAa,2CAA2C,EAAE,MAAM,EAAE,MAAM,aAAa,EAAE,CAAC;IACjN,OAAO,GAAG,mCAAmC,UAAU,SAAS,oBAAoB,CAAC;GACtF;EACD;EACA,GAAG,UAAU,UAAU,MAAM;CAC9B;AACD"}
@@ -1,9 +1,10 @@
1
- import { i as MongoCollectionOptions, o as MongoIndex } from "./entity-kinds-CoJfiouk-DMiKGW0u.mjs";
1
+ import { i as MongoCollectionOptions, o as MongoIndex } from "./entity-kinds-BI-PWX8L-DRxc2Flr.mjs";
2
2
  import { n as codecTypeParamsProblem } from "./mongo-data-type-Bv8Bd0zu-cnTiyyP0.mjs";
3
- import { D as mongoValueSetsOf, F as unsupportedStoredNameReason, S as indexLookupKey, T as mongoContractRefusalsOf, c as applyPolymorphicScopeToMongoIndex, d as buildMongoStorage, v as deriveCollectionValidators } from "./dist-BPlVwyAb.mjs";
3
+ import { D as mongoValueSetsOf, F as unsupportedStoredNameReason, S as indexLookupKey, T as mongoContractRefusalsOf, c as applyPolymorphicScopeToMongoIndex, d as buildMongoStorage, v as deriveCollectionValidators } from "./dist-TDWqXC1F.mjs";
4
4
  import { t as contractError } from "./contract-errors-BCN6RVI5-kMurtAbI.mjs";
5
- import { structuredError } from "@prisma/orm-framework/utils/structured-error";
6
5
  import { blindCast } from "@prisma/orm-framework/utils/casts";
6
+ import { ifDefined } from "@prisma/orm-framework/utils/defined";
7
+ import { structuredError } from "@prisma/orm-framework/utils/structured-error";
7
8
  import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
8
9
  import { crossRef } from "@prisma/orm-framework/contract/types";
9
10
  import { buildExecutionSection, computeProfileHash } from "@prisma/orm-framework/contract/hashing";
@@ -12,7 +13,6 @@ import { notOk, ok } from "@prisma/orm-framework/utils/result";
12
13
  import { answerMissingPropertyReads, bindEnumType, composePackAuthoringNamespace, createEntityHelpersFromNamespace, enumMemberError, enumType as enumType$1, isEnumTypeHandle, member, resolveToOneRelationNullable } from "@prisma/orm-framework/contract-authoring";
13
14
  import { applyDiscriminatorRule, assembleDataTypeSupport, assertNoCrossRegistryCollisions, assertTypeAliasesValid, encodeEnumMembers, flushAuthoringWarnings } from "@prisma/orm-framework/components/authoring";
14
15
  import { assembleGeneratorFunctions, createGeneratorHelpers } from "@prisma/orm-framework/components/components";
15
- import { ifDefined } from "@prisma/orm-framework/utils/defined";
16
16
  import { canonicalStringify } from "@prisma/orm-framework/utils/canonical-stringify";
17
17
  import { extractCodecLookup } from "@prisma/orm-framework/components/control";
18
18
  //#region ../../../2-mongo-family/2-authoring/contract-ts/dist/contract-builder.mjs
@@ -1892,4 +1892,4 @@ function defineContract(definition, factory) {
1892
1892
  //#endregion
1893
1893
  export { enumType$1 as a, isEnumTypeHandle as c, model as d, rel as f, defineContract as i, member as l, buildBoundContract as n, field as o, valueObject as p, buildMongoContractFromDefinition as r, index as s, bindEnumType as t, mergeRedundantIndexes as u };
1894
1894
 
1895
- //# sourceMappingURL=contract-builder-Dg6WHTeR.mjs.map
1895
+ //# sourceMappingURL=contract-builder-CZlnxywD.mjs.map