@prisma/orm-target-mongo 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 (37) hide show
  1. package/dist/adapter__control.d.mts +1 -1
  2. package/dist/{control-DPT2hXVf.d.mts → control-DpeYOTlN.d.mts} +4 -4
  3. package/dist/{control-DPT2hXVf.d.mts.map → control-DpeYOTlN.d.mts.map} +1 -1
  4. package/dist/{control-8KJTXiJ_.mjs → control-lAuWLUE_.mjs} +3 -3
  5. package/dist/{control-8KJTXiJ_.mjs.map → control-lAuWLUE_.mjs.map} +1 -1
  6. package/dist/{descriptor-meta-CYXIYjq7-DpMc5Tnm.mjs → descriptor-meta-BQBreSNF-CZ9uOPwO.mjs} +14 -6
  7. package/dist/descriptor-meta-BQBreSNF-CZ9uOPwO.mjs.map +1 -0
  8. package/dist/driver.mjs +1 -1
  9. package/dist/driver__control.mjs +1 -1
  10. package/dist/driver__control.mjs.map +1 -1
  11. package/dist/{migration-D_hZnT_B.d.mts → migration-DKoUk2CF.d.mts} +2 -2
  12. package/dist/{migration-D_hZnT_B.d.mts.map → migration-DKoUk2CF.d.mts.map} +1 -1
  13. package/dist/{mongo-driver-Bqompjve-D7hiX2sT.mjs → mongo-driver-CLFI40WY-Bw4u6VrV.mjs} +3 -3
  14. package/dist/{mongo-driver-Bqompjve-D7hiX2sT.mjs.map → mongo-driver-CLFI40WY-Bw4u6VrV.mjs.map} +1 -1
  15. package/dist/{op-factory-call-BoYr7vvM-CNpt7COE.d.mts → op-factory-call-BoYr7vvM-PXfT4zvm.d.mts} +2 -2
  16. package/dist/{op-factory-call-BoYr7vvM-CNpt7COE.d.mts.map → op-factory-call-BoYr7vvM-PXfT4zvm.d.mts.map} +1 -1
  17. package/dist/pack-BuZ5LBMg.d.mts +230 -0
  18. package/dist/pack-BuZ5LBMg.d.mts.map +1 -0
  19. package/dist/{prisma6-binding-DUUKAo0Q.mjs → prisma6-binding-DKZXqEL5.mjs} +2 -4
  20. package/dist/prisma6-binding-DKZXqEL5.mjs.map +1 -0
  21. package/dist/{prisma6-binding-DppqC9Jo.d.mts → prisma6-binding-DRM8QnmA.d.mts} +1 -2
  22. package/dist/{prisma6-binding-DppqC9Jo.d.mts.map → prisma6-binding-DRM8QnmA.d.mts.map} +1 -1
  23. package/dist/target.d.mts +5 -5
  24. package/dist/target.mjs +2 -2
  25. package/dist/target__control.d.mts +2 -2
  26. package/dist/target__control.mjs +1 -1
  27. package/dist/target__migration.d.mts +1 -1
  28. package/dist/target__pack.d.mts +1 -1
  29. package/dist/target__pack.mjs +1 -1
  30. package/dist/target__pack.mjs.map +1 -1
  31. package/dist/target__prisma6-binding.d.mts +1 -1
  32. package/dist/target__prisma6-binding.mjs +1 -1
  33. package/package.json +9 -9
  34. package/dist/descriptor-meta-CYXIYjq7-DpMc5Tnm.mjs.map +0 -1
  35. package/dist/pack-DEK1QhCx.d.mts +0 -110
  36. package/dist/pack-DEK1QhCx.d.mts.map +0 -1
  37. package/dist/prisma6-binding-DUUKAo0Q.mjs.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"descriptor-meta-CYXIYjq7-DpMc5Tnm.mjs","names":[],"sources":["../../../../3-mongo-target/1-mongo-target/dist/descriptor-meta-CYXIYjq7.mjs"],"sourcesContent":["import { i as MONGO_DATE_CODEC_ID } from \"./codec-ids-WdrumsYA.mjs\";\nimport { t as mongoTargetDescriptorMetaRuntime } from \"./descriptor-meta-runtime-D0YxXi85.mjs\";\nimport { timestampNowControlDescriptor } from \"@internal/framework-components/control\";\nimport { temporalAuthoringPresets, temporalCodecPreset } from \"@internal/framework-components/authoring\";\n//#region src/core/authoring.ts\nconst mongoDateStorage = { codecId: MONGO_DATE_CODEC_ID };\nconst mongoAuthoringFieldPresets = { temporal: {\n\t...temporalAuthoringPresets(mongoDateStorage),\n\ttimestamp: temporalCodecPreset(mongoDateStorage)\n} };\nconst mongoTargetDescriptorMeta = {\n\t...mongoTargetDescriptorMetaRuntime,\n\tauthoring: { field: mongoAuthoringFieldPresets },\n\tcontrolMutationDefaults: {\n\t\tdefaultFunctionRegistry: /* @__PURE__ */ new Map(),\n\t\tgeneratorDescriptors: [timestampNowControlDescriptor()]\n\t}\n};\n//#endregion\nexport { mongoTargetDescriptorMeta as t };\n\n//# sourceMappingURL=descriptor-meta-CYXIYjq7.mjs.map"],"mappings":";;;;;AAKA,MAAM,mBAAmB,EAAE,SAAS,oBAAoB;AACxD,MAAM,6BAA6B,EAAE,UAAU;CAC9C,GAAG,yBAAyB,gBAAgB;CAC5C,WAAW,oBAAoB,gBAAgB;AAChD,EAAE;AACF,MAAM,4BAA4B;CACjC,GAAG;CACH,WAAW,EAAE,OAAO,2BAA2B;CAC/C,yBAAyB;EACxB,yCAAyC,IAAI,IAAI;EACjD,sBAAsB,CAAC,8BAA8B,CAAC;CACvD;AACD"}
@@ -1,110 +0,0 @@
1
- import { a as ParameterizedOutputTypesForTypeParams, i as CodecTypes } from "./codec-types-DHjpzMTv.mjs";
2
- import { AnyCodecDescriptor } from "@prisma/orm-framework/components/codec";
3
- import { ControlMutationDefaults } from "@prisma/orm-framework/components/control";
4
- //#region ../../../3-mongo-target/1-mongo-target/dist/pack.d.mts
5
- //#region src/core/authoring.d.ts
6
- declare const mongoAuthoringFieldPresets: {
7
- readonly temporal: {
8
- readonly timestamp: {
9
- readonly kind: "fieldPreset";
10
- readonly args: readonly [{
11
- readonly name: "onCreate";
12
- readonly kind: "option";
13
- readonly values: readonly ["now"];
14
- readonly optional: true;
15
- }, {
16
- readonly name: "onUpdate";
17
- readonly kind: "option";
18
- readonly values: readonly ["now"];
19
- readonly optional: true;
20
- }];
21
- readonly output: Omit<{
22
- readonly codecId: "mongo/date@1";
23
- } & {
24
- readonly generatorId?: "timestampNow";
25
- }, "generatorId"> & {
26
- readonly executionDefaults: {
27
- readonly onCreate: {
28
- readonly kind: "select";
29
- readonly index: 0;
30
- readonly cases: {
31
- readonly now: {
32
- readonly kind: "generator";
33
- readonly id: "timestampNow";
34
- };
35
- };
36
- };
37
- readonly onUpdate: {
38
- readonly kind: "select";
39
- readonly index: 1;
40
- readonly cases: {
41
- readonly now: {
42
- readonly kind: "generator";
43
- readonly id: "timestampNow";
44
- };
45
- };
46
- };
47
- };
48
- };
49
- };
50
- readonly createdAt: {
51
- readonly kind: "fieldPreset";
52
- readonly output: Omit<{
53
- readonly codecId: "mongo/date@1";
54
- } & {
55
- readonly generatorId?: "timestampNow";
56
- }, "generatorId"> & {
57
- readonly executionDefaults: {
58
- readonly onCreate: {
59
- readonly kind: "generator";
60
- readonly id: "timestampNow";
61
- };
62
- };
63
- };
64
- };
65
- readonly updatedAt: {
66
- readonly kind: "fieldPreset";
67
- readonly output: Omit<{
68
- readonly codecId: "mongo/date@1";
69
- } & {
70
- readonly generatorId?: "timestampNow";
71
- }, "generatorId"> & {
72
- readonly executionDefaults: {
73
- readonly onCreate: {
74
- readonly kind: "generator";
75
- readonly id: "timestampNow";
76
- };
77
- readonly onUpdate: {
78
- readonly kind: "generator";
79
- readonly id: "timestampNow";
80
- };
81
- };
82
- };
83
- };
84
- };
85
- };
86
- //#endregion
87
- //#region src/exports/pack.d.ts
88
- declare const mongoTargetPack: {
89
- readonly kind: 'target';
90
- readonly familyId: 'mongo';
91
- readonly targetId: 'mongo';
92
- readonly id: 'mongo';
93
- readonly version: '0.0.1';
94
- readonly capabilities: Record<string, never>;
95
- readonly defaultNamespaceId: '__unbound__';
96
- readonly types: {
97
- readonly codecTypes: {
98
- readonly codecDescriptors: ReadonlyArray<AnyCodecDescriptor>;
99
- };
100
- };
101
- readonly authoring: {
102
- readonly field: typeof mongoAuthoringFieldPresets;
103
- };
104
- readonly controlMutationDefaults: ControlMutationDefaults;
105
- readonly __codecTypes?: CodecTypes;
106
- readonly __parameterizedOutputTypes?: ParameterizedOutputTypesForTypeParams;
107
- };
108
- //#endregion
109
- export { mongoTargetPack as t };
110
- //# sourceMappingURL=pack-DEK1QhCx.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pack-DEK1QhCx.d.mts","names":[],"sources":["../../../../3-mongo-target/1-mongo-target/dist/pack.d.mts"],"mappings":";;;;;cAIc;WACH;aACE;eACE;eACA;iBACE;iBACA;iBACA;iBACA;;iBAEA;iBACA;iBACA;iBACA;;eAEF,QAAQ;iBACN;;iBAEA;;iBAEA;mBACE;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;;;;mBAIN;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;;;;;;;aAOZ;eACE;eACA,QAAQ;iBACN;;iBAEA;;iBAEA;mBACE;qBACE;qBACA;;;;;aAKR;eACE;eACA,QAAQ;iBACN;;iBAEA;;iBAEA;mBACE;qBACE;qBACA;;mBAEF;qBACE;qBACA;;;;;;;;;cASP;WACH;WACA;WACA;WACA;WACA;WACA,cAAc;WACd;WACA;aACE;eACE,kBAAkB,cAAc;;;WAGpC;aACE,cAAc;;WAEhB,yBAAyB;WACzB,eAAe;WACf,6BAA6B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"prisma6-binding-DUUKAo0Q.mjs","names":[],"sources":["../../../../3-mongo-target/1-mongo-target/dist/prisma6-binding.mjs"],"sourcesContent":["import { a as MONGO_DECIMAL128_CODEC_ID, c as MONGO_INT64_CODEC_ID, d as MONGO_OBJECTID_CODEC_ID, f as MONGO_STRING_CODEC_ID, i as MONGO_DATE_CODEC_ID, l as MONGO_INT64_NUMBER_CODEC_ID, n as MONGO_BOOLEAN_CODEC_ID, o as MONGO_DOUBLE_CODEC_ID, s as MONGO_INT32_CODEC_ID, t as MONGO_BINARY_CODEC_ID, u as MONGO_JSON_CODEC_ID } from \"./codec-ids-WdrumsYA.mjs\";\nimport { t as mongoTargetDescriptorMetaRuntime } from \"./descriptor-meta-runtime-D0YxXi85.mjs\";\nimport { TIMESTAMP_NOW_GENERATOR_ID } from \"@internal/framework-components/authoring\";\n/**\n* What the Mongo target supplies to the Prisma 6 schema reader: the datasource provider it reads, the codec each Prisma 6 scalar and native type maps to, the codec an `@id` must have, and the generator `now()` and `@updatedAt` lower to. Each codec is the one for the BSON type Prisma 6 stores (ADR 257), with the application type the Prisma 6 client presents: a plain `Int` is a BSON long read as a `number`.\n*/\nconst prisma6MongoBinding = {\n\ttarget: mongoTargetDescriptorMetaRuntime,\n\tproviders: [\"mongodb\"],\n\tscalarCodecIds: {\n\t\tString: MONGO_STRING_CODEC_ID,\n\t\tInt: MONGO_INT64_NUMBER_CODEC_ID,\n\t\tFloat: MONGO_DOUBLE_CODEC_ID,\n\t\tBoolean: MONGO_BOOLEAN_CODEC_ID,\n\t\tDateTime: MONGO_DATE_CODEC_ID,\n\t\tBigInt: MONGO_INT64_CODEC_ID,\n\t\tDecimal: MONGO_DECIMAL128_CODEC_ID,\n\t\tBytes: MONGO_BINARY_CODEC_ID,\n\t\tJson: MONGO_JSON_CODEC_ID\n\t},\n\tnativeTypeCodecIds: {\n\t\tString: {\n\t\t\t\"db.String\": MONGO_STRING_CODEC_ID,\n\t\t\t\"db.ObjectId\": MONGO_OBJECTID_CODEC_ID\n\t\t},\n\t\tBoolean: { \"db.Bool\": MONGO_BOOLEAN_CODEC_ID },\n\t\tInt: {\n\t\t\t\"db.Int\": MONGO_INT32_CODEC_ID,\n\t\t\t\"db.Long\": MONGO_INT64_NUMBER_CODEC_ID\n\t\t},\n\t\tBigInt: { \"db.Long\": MONGO_INT64_CODEC_ID },\n\t\tFloat: { \"db.Double\": MONGO_DOUBLE_CODEC_ID },\n\t\tDateTime: { \"db.Date\": MONGO_DATE_CODEC_ID },\n\t\tBytes: {\n\t\t\t\"db.BinData\": MONGO_BINARY_CODEC_ID,\n\t\t\t\"db.ObjectId\": MONGO_OBJECTID_CODEC_ID\n\t\t},\n\t\tJson: { \"db.Json\": MONGO_JSON_CODEC_ID }\n\t},\n\tobjectIdCodecId: MONGO_OBJECTID_CODEC_ID,\n\ttimestampGeneratorId: TIMESTAMP_NOW_GENERATOR_ID\n};\n//#endregion\nexport { prisma6MongoBinding };\n\n//# sourceMappingURL=prisma6-binding.mjs.map"],"mappings":";;;;;;;AAMA,MAAM,sBAAsB;CAC3B,QAAQ;CACR,WAAW,CAAC,SAAS;CACrB,gBAAgB;EACf,QAAQ;EACR,KAAK;EACL,OAAO;EACP,SAAS;EACT,UAAU;EACV,QAAQ;EACR,SAAS;EACT,OAAO;EACP,MAAM;CACP;CACA,oBAAoB;EACnB,QAAQ;GACP,aAAa;GACb,eAAe;EAChB;EACA,SAAS,EAAE,WAAW,uBAAuB;EAC7C,KAAK;GACJ,UAAU;GACV,WAAW;EACZ;EACA,QAAQ,EAAE,WAAW,qBAAqB;EAC1C,OAAO,EAAE,aAAa,sBAAsB;EAC5C,UAAU,EAAE,WAAW,oBAAoB;EAC3C,OAAO;GACN,cAAc;GACd,eAAe;EAChB;EACA,MAAM,EAAE,WAAW,oBAAoB;CACxC;CACA,iBAAiB;CACjB,sBAAsB;AACvB"}