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

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 (40) hide show
  1. package/dist/{canonicalization-hooks-CRVM-Kqh-Qi-VmEVg.mjs → canonicalization-hooks-4XyGmYqQ-Fk14vQW2.mjs} +36 -16
  2. package/dist/canonicalization-hooks-4XyGmYqQ-Fk14vQW2.mjs.map +1 -0
  3. package/dist/{contract-builder-CZlnxywD.mjs → contract-builder-Cr65NhJk.mjs} +2 -2
  4. package/dist/{contract-builder-CZlnxywD.mjs.map → contract-builder-Cr65NhJk.mjs.map} +1 -1
  5. package/dist/contract-prisma6__provider.mjs +3 -3
  6. package/dist/contract-psl.mjs +1 -1
  7. package/dist/contract-psl__provider.mjs +1 -1
  8. package/dist/contract-ts.mjs +1 -1
  9. package/dist/contract-ts__contract-builder.mjs +1 -1
  10. package/dist/contract.mjs +1 -1
  11. package/dist/contract__canonicalization-hooks.mjs +1 -1
  12. package/dist/{control-Ba7xgf0y.mjs → control-DzA3bjX-.mjs} +6 -6
  13. package/dist/{control-Ba7xgf0y.mjs.map → control-DzA3bjX-.mjs.map} +1 -1
  14. package/dist/{dist-TDWqXC1F.mjs → dist-B-Ml8wpa.mjs} +2 -2
  15. package/dist/{dist-TDWqXC1F.mjs.map → dist-B-Ml8wpa.mjs.map} +1 -1
  16. package/dist/{dist-CQ1Di6Ei.mjs → dist-BbJV26vR.mjs} +2 -2
  17. package/dist/{dist-CQ1Di6Ei.mjs.map → dist-BbJV26vR.mjs.map} +1 -1
  18. package/dist/family.mjs +7 -7
  19. package/dist/family__control.mjs +2 -2
  20. package/dist/family__ir.mjs +3 -3
  21. package/dist/family__migration.mjs +1 -1
  22. package/dist/family__pack.mjs +1 -1
  23. package/dist/family__runtime.mjs +1 -1
  24. package/dist/family__schema-verify.mjs +1 -1
  25. package/dist/{interpreter-BX0gy2Yu-vTz2kU_w.mjs → interpreter-BX0gy2Yu-Byy8LdrE.mjs} +3 -3
  26. package/dist/{interpreter-BX0gy2Yu-vTz2kU_w.mjs.map → interpreter-BX0gy2Yu-Byy8LdrE.mjs.map} +1 -1
  27. package/dist/{ir-C-tQIDYD.mjs → ir-BGD9W6Cu.mjs} +2 -2
  28. package/dist/{ir-C-tQIDYD.mjs.map → ir-BGD9W6Cu.mjs.map} +1 -1
  29. package/dist/{migration-C0MoM7dG.mjs → migration-DDXXsPCK.mjs} +2 -2
  30. package/dist/{migration-C0MoM7dG.mjs.map → migration-DDXXsPCK.mjs.map} +1 -1
  31. package/dist/{mongo-contract-serializer-BBknnHWy-C0r2Kcjr.mjs → mongo-contract-serializer-BBknnHWy-BYVYfFCj.mjs} +3 -3
  32. package/dist/{mongo-contract-serializer-BBknnHWy-C0r2Kcjr.mjs.map → mongo-contract-serializer-BBknnHWy-BYVYfFCj.mjs.map} +1 -1
  33. package/dist/{mongo-contract-view-CF5trX6R-Ci7aGNQk.mjs → mongo-contract-view-CF5trX6R-D-7KBBF2.mjs} +3 -3
  34. package/dist/{mongo-contract-view-CF5trX6R-Ci7aGNQk.mjs.map → mongo-contract-view-CF5trX6R-D-7KBBF2.mjs.map} +1 -1
  35. package/dist/orm.mjs +2 -2
  36. package/dist/query-builder.mjs +1 -1
  37. package/dist/{verify-mongo-schema-CyvUewwP-LjL7ZtTU.mjs → verify-mongo-schema-CyvUewwP-DwSUNc5f.mjs} +2 -2
  38. package/dist/{verify-mongo-schema-CyvUewwP-LjL7ZtTU.mjs.map → verify-mongo-schema-CyvUewwP-DwSUNc5f.mjs.map} +1 -1
  39. package/package.json +20 -20
  40. package/dist/canonicalization-hooks-CRVM-Kqh-Qi-VmEVg.mjs.map +0 -1
@@ -1,23 +1,43 @@
1
1
  import { createPreserveEmptyPredicate } from "@prisma/orm-framework/contract/hashing-utils";
2
- //#region ../../../2-mongo-family/1-foundation/mongo-contract/dist/canonicalization-hooks-CRVM-Kqh.mjs
3
- const matchesPreserveEmptyPattern = createPreserveEmptyPredicate([[
4
- "storage",
5
- "namespaces",
6
- "*",
7
- "entries",
8
- "collection"
9
- ], [
10
- "storage",
11
- "namespaces",
12
- "*",
13
- "entries",
14
- "collection",
15
- "*"
16
- ]]);
2
+ //#region ../../../2-mongo-family/1-foundation/mongo-contract/dist/canonicalization-hooks-4XyGmYqQ.mjs
3
+ const matchesPreserveEmptyPattern = createPreserveEmptyPredicate([
4
+ [
5
+ "storage",
6
+ "namespaces",
7
+ "*",
8
+ "entries",
9
+ "collection"
10
+ ],
11
+ [
12
+ "storage",
13
+ "namespaces",
14
+ "*",
15
+ "entries",
16
+ "collection",
17
+ "*"
18
+ ],
19
+ [
20
+ "domain",
21
+ "namespaces",
22
+ "*",
23
+ "models",
24
+ "*",
25
+ "fields"
26
+ ],
27
+ [
28
+ "domain",
29
+ "namespaces",
30
+ "*",
31
+ "models",
32
+ "*",
33
+ "storage",
34
+ "fields"
35
+ ]
36
+ ]);
17
37
  const isUnconstrainedFieldSchema = (path) => path.includes("jsonSchema") && (path[path.length - 2] === "properties" || path[path.length - 1] === "items");
18
38
  const shouldPreserveEmpty = (path) => path[path.length - 1] === "additionalProperties" || isUnconstrainedFieldSchema(path) || matchesPreserveEmptyPattern(path);
19
39
  const mongoContractCanonicalizationHooks = { shouldPreserveEmpty };
20
40
  //#endregion
21
41
  export { mongoContractCanonicalizationHooks as t };
22
42
 
23
- //# sourceMappingURL=canonicalization-hooks-CRVM-Kqh-Qi-VmEVg.mjs.map
43
+ //# sourceMappingURL=canonicalization-hooks-4XyGmYqQ-Fk14vQW2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"canonicalization-hooks-4XyGmYqQ-Fk14vQW2.mjs","names":[],"sources":["../../../../2-mongo-family/1-foundation/mongo-contract/dist/canonicalization-hooks-4XyGmYqQ.mjs"],"sourcesContent":["import { createPreserveEmptyPredicate } from \"@internal/contract/hashing-utils\";\n//#region src/canonicalization-hooks.ts\nconst matchesPreserveEmptyPattern = createPreserveEmptyPredicate([\n\t[\n\t\t\"storage\",\n\t\t\"namespaces\",\n\t\t\"*\",\n\t\t\"entries\",\n\t\t\"collection\"\n\t],\n\t[\n\t\t\"storage\",\n\t\t\"namespaces\",\n\t\t\"*\",\n\t\t\"entries\",\n\t\t\"collection\",\n\t\t\"*\"\n\t],\n\t[\n\t\t\"domain\",\n\t\t\"namespaces\",\n\t\t\"*\",\n\t\t\"models\",\n\t\t\"*\",\n\t\t\"fields\"\n\t],\n\t[\n\t\t\"domain\",\n\t\t\"namespaces\",\n\t\t\"*\",\n\t\t\"models\",\n\t\t\"*\",\n\t\t\"storage\",\n\t\t\"fields\"\n\t]\n]);\nconst isUnconstrainedFieldSchema = (path) => path.includes(\"jsonSchema\") && (path[path.length - 2] === \"properties\" || path[path.length - 1] === \"items\");\nconst shouldPreserveEmpty = (path) => path[path.length - 1] === \"additionalProperties\" || isUnconstrainedFieldSchema(path) || matchesPreserveEmptyPattern(path);\nconst mongoContractCanonicalizationHooks = { shouldPreserveEmpty };\n//#endregion\nexport { mongoContractCanonicalizationHooks as t };\n\n//# sourceMappingURL=canonicalization-hooks-4XyGmYqQ.mjs.map"],"mappings":";;AAEA,MAAM,8BAA8B,6BAA6B;CAChE;EACC;EACA;EACA;EACA;EACA;CACD;CACA;EACC;EACA;EACA;EACA;EACA;EACA;CACD;CACA;EACC;EACA;EACA;EACA;EACA;EACA;CACD;CACA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;CACD;AACD,CAAC;AACD,MAAM,8BAA8B,SAAS,KAAK,SAAS,YAAY,MAAM,KAAK,KAAK,SAAS,OAAO,gBAAgB,KAAK,KAAK,SAAS,OAAO;AACjJ,MAAM,uBAAuB,SAAS,KAAK,KAAK,SAAS,OAAO,0BAA0B,2BAA2B,IAAI,KAAK,4BAA4B,IAAI;AAC9J,MAAM,qCAAqC,EAAE,oBAAoB"}
@@ -1,6 +1,6 @@
1
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-TDWqXC1F.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-B-Ml8wpa.mjs";
4
4
  import { t as contractError } from "./contract-errors-BCN6RVI5-kMurtAbI.mjs";
5
5
  import { blindCast } from "@prisma/orm-framework/utils/casts";
6
6
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
@@ -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-CZlnxywD.mjs.map
1895
+ //# sourceMappingURL=contract-builder-Cr65NhJk.mjs.map