@prisma/orm-target-mongo 8.0.0-rc.18-dev.29 → 8.0.0-rc.18-dev.30

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-_5ZHrJDP-LGH7Kem3.mjs} +3 -3
  14. package/dist/{mongo-driver-Bqompjve-D7hiX2sT.mjs.map → mongo-driver-_5ZHrJDP-LGH7Kem3.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,8 +1,8 @@
1
1
  import { i as MONGO_DATE_CODEC_ID } from "./codec-ids-WdrumsYA-BkQfspmL.mjs";
2
2
  import { t as mongoTargetDescriptorMetaRuntime } from "./descriptor-meta-runtime-D0YxXi85-CjeTEg7T.mjs";
3
- import { timestampNowControlDescriptor } from "@prisma/orm-framework/components/control";
4
- import { temporalAuthoringPresets, temporalCodecPreset } from "@prisma/orm-framework/components/authoring";
5
- //#region ../../../3-mongo-target/1-mongo-target/dist/descriptor-meta-CYXIYjq7.mjs
3
+ import { TIMESTAMP_NOW_GENERATOR_ID, temporalAuthoringPresets, temporalCodecPreset } from "@prisma/orm-framework/components/authoring";
4
+ import { singleGeneratorBinding } from "@prisma/orm-framework/components/components";
5
+ //#region ../../../3-mongo-target/1-mongo-target/dist/descriptor-meta-BQBreSNF.mjs
6
6
  const mongoDateStorage = { codecId: MONGO_DATE_CODEC_ID };
7
7
  const mongoAuthoringFieldPresets = { temporal: {
8
8
  ...temporalAuthoringPresets(mongoDateStorage),
@@ -13,10 +13,18 @@ const mongoTargetDescriptorMeta = {
13
13
  authoring: { field: mongoAuthoringFieldPresets },
14
14
  controlMutationDefaults: {
15
15
  defaultFunctionRegistry: /* @__PURE__ */ new Map(),
16
- generatorDescriptors: [timestampNowControlDescriptor()]
17
- }
16
+ generatorDescriptors: [{ id: TIMESTAMP_NOW_GENERATOR_ID }]
17
+ },
18
+ generatorFunctions: [{
19
+ name: "now",
20
+ signature: { documentation: "Writes the current time." },
21
+ bindings: [singleGeneratorBinding({
22
+ codecIds: [MONGO_DATE_CODEC_ID],
23
+ generatorId: TIMESTAMP_NOW_GENERATOR_ID
24
+ })]
25
+ }]
18
26
  };
19
27
  //#endregion
20
28
  export { mongoTargetDescriptorMeta as t };
21
29
 
22
- //# sourceMappingURL=descriptor-meta-CYXIYjq7-DpMc5Tnm.mjs.map
30
+ //# sourceMappingURL=descriptor-meta-BQBreSNF-CZ9uOPwO.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"descriptor-meta-BQBreSNF-CZ9uOPwO.mjs","names":[],"sources":["../../../../3-mongo-target/1-mongo-target/dist/descriptor-meta-BQBreSNF.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 { TIMESTAMP_NOW_GENERATOR_ID, temporalAuthoringPresets, temporalCodecPreset } from \"@internal/framework-components/authoring\";\nimport { singleGeneratorBinding } from \"@internal/framework-components/components\";\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: [{ id: TIMESTAMP_NOW_GENERATOR_ID }]\n\t},\n\tgeneratorFunctions: [{\n\t\tname: \"now\",\n\t\tsignature: { documentation: \"Writes the current time.\" },\n\t\tbindings: [singleGeneratorBinding({\n\t\t\tcodecIds: [MONGO_DATE_CODEC_ID],\n\t\t\tgeneratorId: TIMESTAMP_NOW_GENERATOR_ID\n\t\t})]\n\t}]\n};\n//#endregion\nexport { mongoTargetDescriptorMeta as t };\n\n//# sourceMappingURL=descriptor-meta-BQBreSNF.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,EAAE,IAAI,2BAA2B,CAAC;CAC1D;CACA,oBAAoB,CAAC;EACpB,MAAM;EACN,WAAW,EAAE,eAAe,2BAA2B;EACvD,UAAU,CAAC,uBAAuB;GACjC,UAAU,CAAC,mBAAmB;GAC9B,aAAa;EACd,CAAC,CAAC;CACH,CAAC;AACF"}
package/dist/driver.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { n as MongoDriverImpl, r as createMongoDriver } from "./mongo-driver-Bqompjve-D7hiX2sT.mjs";
1
+ import { n as MongoDriverImpl, r as createMongoDriver } from "./mongo-driver-_5ZHrJDP-LGH7Kem3.mjs";
2
2
  export { MongoDriverImpl, createMongoDriver };
@@ -1,4 +1,4 @@
1
- import { n as MongoDriverImpl, t as DRIVER_INFO } from "./mongo-driver-Bqompjve-D7hiX2sT.mjs";
1
+ import { n as MongoDriverImpl, t as DRIVER_INFO } from "./mongo-driver-_5ZHrJDP-LGH7Kem3.mjs";
2
2
  import { errorRuntime } from "@prisma/orm-framework/errors/execution";
3
3
  import { MongoClient } from "mongodb";
4
4
  import { redactDatabaseUrl } from "@prisma/orm-framework/utils/redact-db-url";
@@ -1 +1 @@
1
- {"version":3,"file":"driver__control.mjs","names":[],"sources":["../../../../3-mongo-target/3-mongo-driver/dist/control.mjs"],"sourcesContent":["import { r as DRIVER_INFO, t as MongoDriverImpl } from \"./mongo-driver-Bqompjve.mjs\";\nimport { MongoClient } from \"mongodb\";\nimport { errorRuntime } from \"@internal/errors/execution\";\nimport { redactDatabaseUrl } from \"@internal/utils/redact-db-url\";\n//#region src/exports/control.ts\nvar MongoControlDriver = class extends MongoDriverImpl {\n\tfamilyId = \"mongo\";\n\ttargetId = \"mongo\";\n\tdb;\n\tconstructor(db, mongoClient) {\n\t\tsuper(db, mongoClient);\n\t\tthis.db = db;\n\t}\n\tasync databaseName() {\n\t\treturn this.db.databaseName;\n\t}\n};\nconst mongoControlDriverDescriptor = {\n\tkind: \"driver\",\n\tfamilyId: \"mongo\",\n\ttargetId: \"mongo\",\n\tid: \"mongo\",\n\tversion: DRIVER_INFO.version,\n\tcapabilities: {},\n\tasync create(url) {\n\t\tconst client = new MongoClient(url, {\n\t\t\tserverSelectionTimeoutMS: 5e3,\n\t\t\tconnectTimeoutMS: 5e3,\n\t\t\tdriverInfo: DRIVER_INFO\n\t\t});\n\t\ttry {\n\t\t\tawait client.connect();\n\t\t\treturn new MongoControlDriver(client.db(), client);\n\t\t} catch (error) {\n\t\t\ttry {\n\t\t\t\tawait client.close();\n\t\t\t} catch {}\n\t\t\tthrow errorRuntime(\"DRIVER.CONNECTION_FAILED\", \"Database connection failed\", {\n\t\t\t\twhy: error instanceof Error ? error.message : String(error),\n\t\t\t\tfix: \"Verify the MongoDB URL, ensure the database is reachable, and confirm credentials/permissions\",\n\t\t\t\tmeta: { ...redactDatabaseUrl(url) },\n\t\t\t\tcause: error\n\t\t\t});\n\t\t}\n\t}\n};\n//#endregion\nexport { MongoControlDriver, mongoControlDriverDescriptor as default };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;;;AAKA,IAAI,qBAAqB,cAAc,gBAAgB;CACtD,WAAW;CACX,WAAW;CACX;CACA,YAAY,IAAI,aAAa;EAC5B,MAAM,IAAI,WAAW;EACrB,KAAK,KAAK;CACX;CACA,MAAM,eAAe;EACpB,OAAO,KAAK,GAAG;CAChB;AACD;AACA,MAAM,+BAA+B;CACpC,MAAM;CACN,UAAU;CACV,UAAU;CACV,IAAI;CACJ,SAAS,YAAY;CACrB,cAAc,CAAC;CACf,MAAM,OAAO,KAAK;EACjB,MAAM,SAAS,IAAI,YAAY,KAAK;GACnC,0BAA0B;GAC1B,kBAAkB;GAClB,YAAY;EACb,CAAC;EACD,IAAI;GACH,MAAM,OAAO,QAAQ;GACrB,OAAO,IAAI,mBAAmB,OAAO,GAAG,GAAG,MAAM;EAClD,SAAS,OAAO;GACf,IAAI;IACH,MAAM,OAAO,MAAM;GACpB,QAAQ,CAAC;GACT,MAAM,aAAa,4BAA4B,8BAA8B;IAC5E,KAAK,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;IAC1D,KAAK;IACL,MAAM,EAAE,GAAG,kBAAkB,GAAG,EAAE;IAClC,OAAO;GACR,CAAC;EACF;CACD;AACD"}
1
+ {"version":3,"file":"driver__control.mjs","names":[],"sources":["../../../../3-mongo-target/3-mongo-driver/dist/control.mjs"],"sourcesContent":["import { r as DRIVER_INFO, t as MongoDriverImpl } from \"./mongo-driver-_5ZHrJDP.mjs\";\nimport { MongoClient } from \"mongodb\";\nimport { errorRuntime } from \"@internal/errors/execution\";\nimport { redactDatabaseUrl } from \"@internal/utils/redact-db-url\";\n//#region src/exports/control.ts\nvar MongoControlDriver = class extends MongoDriverImpl {\n\tfamilyId = \"mongo\";\n\ttargetId = \"mongo\";\n\tdb;\n\tconstructor(db, mongoClient) {\n\t\tsuper(db, mongoClient);\n\t\tthis.db = db;\n\t}\n\tasync databaseName() {\n\t\treturn this.db.databaseName;\n\t}\n};\nconst mongoControlDriverDescriptor = {\n\tkind: \"driver\",\n\tfamilyId: \"mongo\",\n\ttargetId: \"mongo\",\n\tid: \"mongo\",\n\tversion: DRIVER_INFO.version,\n\tcapabilities: {},\n\tasync create(url) {\n\t\tconst client = new MongoClient(url, {\n\t\t\tserverSelectionTimeoutMS: 5e3,\n\t\t\tconnectTimeoutMS: 5e3,\n\t\t\tdriverInfo: DRIVER_INFO\n\t\t});\n\t\ttry {\n\t\t\tawait client.connect();\n\t\t\treturn new MongoControlDriver(client.db(), client);\n\t\t} catch (error) {\n\t\t\ttry {\n\t\t\t\tawait client.close();\n\t\t\t} catch {}\n\t\t\tthrow errorRuntime(\"DRIVER.CONNECTION_FAILED\", \"Database connection failed\", {\n\t\t\t\twhy: error instanceof Error ? error.message : String(error),\n\t\t\t\tfix: \"Verify the MongoDB URL, ensure the database is reachable, and confirm credentials/permissions\",\n\t\t\t\tmeta: { ...redactDatabaseUrl(url) },\n\t\t\t\tcause: error\n\t\t\t});\n\t\t}\n\t}\n};\n//#endregion\nexport { MongoControlDriver, mongoControlDriverDescriptor as default };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;;;AAKA,IAAI,qBAAqB,cAAc,gBAAgB;CACtD,WAAW;CACX,WAAW;CACX;CACA,YAAY,IAAI,aAAa;EAC5B,MAAM,IAAI,WAAW;EACrB,KAAK,KAAK;CACX;CACA,MAAM,eAAe;EACpB,OAAO,KAAK,GAAG;CAChB;AACD;AACA,MAAM,+BAA+B;CACpC,MAAM;CACN,UAAU;CACV,UAAU;CACV,IAAI;CACJ,SAAS,YAAY;CACrB,cAAc,CAAC;CACf,MAAM,OAAO,KAAK;EACjB,MAAM,SAAS,IAAI,YAAY,KAAK;GACnC,0BAA0B;GAC1B,kBAAkB;GAClB,YAAY;EACb,CAAC;EACD,IAAI;GACH,MAAM,OAAO,QAAQ;GACrB,OAAO,IAAI,mBAAmB,OAAO,GAAG,GAAG,MAAM;EAClD,SAAS,OAAO;GACf,IAAI;IACH,MAAM,OAAO,MAAM;GACpB,QAAQ,CAAC;GACT,MAAM,aAAa,4BAA4B,8BAA8B;IAC5E,KAAK,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;IAC1D,KAAK;IACL,MAAM,EAAE,GAAG,kBAAkB,GAAG,EAAE;IAClC,OAAO;GACR,CAAC;EACF;CACD;AACD"}
@@ -1,4 +1,4 @@
1
- import { n as CollModMeta } from "./op-factory-call-BoYr7vvM-CNpt7COE.mjs";
1
+ import { n as CollModMeta } from "./op-factory-call-BoYr7vvM-PXfT4zvm.mjs";
2
2
  import "@prisma/orm-family-mongo/schema-ir";
3
3
  import { CollModOptions, CreateCollectionOptions, CreateIndexOptions, MongoDmlOperation, MongoFilterExpr, MongoIndexKey, MongoMigrationPlanOperation } from "@prisma/orm-family-mongo/query-ast/control";
4
4
  import { MongoQueryPlan } from "@prisma/orm-family-mongo/query-ast/execution";
@@ -47,4 +47,4 @@ declare function validatedCollection(name: string, schema: Record<string, unknow
47
47
  }>): MongoMigrationPlanOperation[];
48
48
  //#endregion
49
49
  export { createIndex as a, dropIndex as c, renameField as d, setValidation as f, createCollection as i, placeholder as l, validatedCollection as m, MigrationCLI as n, dataTransform as o, unsetField as p, collMod as r, dropCollection as s, Migration as t, renameCollection as u };
50
- //# sourceMappingURL=migration-D_hZnT_B.d.mts.map
50
+ //# sourceMappingURL=migration-DKoUk2CF.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"migration-D_hZnT_B.d.mts","names":[],"sources":["../../../../3-mongo-target/1-mongo-target/dist/migration.d.mts"],"mappings":";;;;;;;;;;UASU;EACR,SAAS;;iBAEM,cAAc,cAAc;;;;;;EAM3C;EACA;IACE,cAAc,iBAAiB;IAC/B,SAAS;IACT;IACA;;EAEF,WAAW,iBAAiB;IAC1B;UACM;WACC,SAAS;;iBAEH,YAAY,wBAAwB,cAAc,YAAY,UAAU,sBAAsB;iBAC9F,WAAW,wBAAwB,eAAe,UAAU,sBAAsB;iBAClF,YAAY,wBAAwB,MAAM,cAAc,gBAAgB,UAAU,qBAAqB;iBACvG,UAAU,wBAAwB,MAAM,cAAc,iBAAiB;iBACvE,iBAAiB,wBAAwB,UAAU,0BAA0B;iBAC7E,eAAe,yBAAyB;iBACxC,iBAAiB,cAAc,aAAa;iBAC5C,cAAc,wBAAwB,QAAQ,yBAAyB;EACtF;EACA;IACE;iBACa,QAAQ,wBAAwB,SAAS,gBAAgB,OAAO,cAAc;iBAC9E,oBAAoB,cAAc,QAAQ,yBAAyB,SAAS;EAC3F,MAAM;EACN;KACG"}
1
+ {"version":3,"file":"migration-DKoUk2CF.d.mts","names":[],"sources":["../../../../3-mongo-target/1-mongo-target/dist/migration.d.mts"],"mappings":";;;;;;;;;;UASU;EACR,SAAS;;iBAEM,cAAc,cAAc;;;;;;EAM3C;EACA;IACE,cAAc,iBAAiB;IAC/B,SAAS;IACT;IACA;;EAEF,WAAW,iBAAiB;IAC1B;UACM;WACC,SAAS;;iBAEH,YAAY,wBAAwB,cAAc,YAAY,UAAU,sBAAsB;iBAC9F,WAAW,wBAAwB,eAAe,UAAU,sBAAsB;iBAClF,YAAY,wBAAwB,MAAM,cAAc,gBAAgB,UAAU,qBAAqB;iBACvG,UAAU,wBAAwB,MAAM,cAAc,iBAAiB;iBACvE,iBAAiB,wBAAwB,UAAU,0BAA0B;iBAC7E,eAAe,yBAAyB;iBACxC,iBAAiB,cAAc,aAAa;iBAC5C,cAAc,wBAAwB,QAAQ,yBAAyB;EACtF;EACA;IACE;iBACa,QAAQ,wBAAwB,SAAS,gBAAgB,OAAO,cAAc;iBAC9E,oBAAoB,cAAc,QAAQ,yBAAyB,SAAS;EAC3F,MAAM;EACN;KACG"}
@@ -1,9 +1,9 @@
1
1
  import { assertNever } from "@prisma/orm-framework/utils/internal-error";
2
2
  import { BSON, MongoClient } from "mongodb";
3
- //#region ../../../3-mongo-target/3-mongo-driver/dist/mongo-driver-Bqompjve.mjs
3
+ //#region ../../../3-mongo-target/3-mongo-driver/dist/mongo-driver-_5ZHrJDP.mjs
4
4
  const DRIVER_INFO = {
5
5
  name: "Prisma",
6
- version: "8.0.0-rc.18-dev.29"
6
+ version: "8.0.0-rc.18-dev.30"
7
7
  };
8
8
  /* v8 ignore start */
9
9
  function unreachableKind(value) {
@@ -184,4 +184,4 @@ async function createMongoDriver(uri, dbName) {
184
184
  //#endregion
185
185
  export { MongoDriverImpl as n, createMongoDriver as r, DRIVER_INFO as t };
186
186
 
187
- //# sourceMappingURL=mongo-driver-Bqompjve-D7hiX2sT.mjs.map
187
+ //# sourceMappingURL=mongo-driver-_5ZHrJDP-LGH7Kem3.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"mongo-driver-Bqompjve-D7hiX2sT.mjs","names":[],"sources":["../../../../3-mongo-target/3-mongo-driver/dist/mongo-driver-Bqompjve.mjs"],"sourcesContent":["import { assertNever } from \"@internal/utils/internal-error\";\nimport { BSON, MongoClient } from \"mongodb\";\n//#endregion\n//#region src/core/driver-info.ts\nconst DRIVER_INFO = {\n\tname: \"Prisma\",\n\tversion: \"8.0.0-rc.18-dev.29\"\n};\n//#endregion\n//#region src/mongo-driver.ts\n/* v8 ignore start */\nfunction unreachableKind(value) {\n\tconst candidate = value;\n\tif (typeof candidate === \"object\" && candidate !== null && \"kind\" in candidate && typeof candidate.kind === \"string\") return candidate.kind;\n\treturn \"unknown\";\n}\n/* v8 ignore stop */\nvar MongoDriverImpl = class MongoDriverImpl {\n\tdb;\n\tclient;\n\tconstructor(db, client) {\n\t\tthis.db = db;\n\t\tthis.client = client;\n\t}\n\tstatic async fromConnection(uri, dbName) {\n\t\tconst client = new MongoClient(uri, { driverInfo: DRIVER_INFO });\n\t\tawait client.connect();\n\t\treturn new MongoDriverImpl(client.db(dbName), client);\n\t}\n\tstatic fromDb(db) {\n\t\treturn new MongoDriverImpl(db, void 0);\n\t}\n\texecute(wireCommand) {\n\t\tswitch (wireCommand.kind) {\n\t\t\tcase \"insertOne\": return this.executeInsertOneCommand(wireCommand);\n\t\t\tcase \"updateOne\": return this.executeUpdateOneCommand(wireCommand);\n\t\t\tcase \"insertMany\": return this.executeInsertManyCommand(wireCommand);\n\t\t\tcase \"updateMany\": return this.executeUpdateManyCommand(wireCommand);\n\t\t\tcase \"deleteOne\": return this.executeDeleteOneCommand(wireCommand);\n\t\t\tcase \"deleteMany\": return this.executeDeleteManyCommand(wireCommand);\n\t\t\tcase \"findOneAndUpdate\": return this.executeFindOneAndUpdateCommand(wireCommand);\n\t\t\tcase \"findOneAndDelete\": return this.executeFindOneAndDeleteCommand(wireCommand);\n\t\t\tcase \"aggregate\": return this.executeAggregateCommand(wireCommand);\n\t\t\t// v8 ignore next 4\n\t\t\tdefault: return assertNever(wireCommand, `Unknown wire command kind: ${unreachableKind(wireCommand)}`);\n\t\t}\n\t}\n\tasync run(wireCommand) {\n\t\tswitch (wireCommand.kind) {\n\t\t\tcase \"createCollection\": return this.executeCreateCollectionCommand(wireCommand);\n\t\t\tcase \"createIndex\": return this.executeCreateIndexCommand(wireCommand);\n\t\t\tcase \"dropCollection\": return this.executeDropCollectionCommand(wireCommand);\n\t\t\tcase \"renameCollection\": return this.executeRenameCollectionCommand(wireCommand);\n\t\t\tcase \"dropIndex\": return this.executeDropIndexCommand(wireCommand);\n\t\t\tcase \"collMod\": return this.executeCollModCommand(wireCommand);\n\t\t\t// v8 ignore next 4\n\t\t\tdefault: return assertNever(wireCommand, `Unknown DDL wire command kind: ${unreachableKind(wireCommand)}`);\n\t\t}\n\t}\n\tasync close() {\n\t\tawait this.client?.close();\n\t}\n\tasync *executeInsertOneCommand(cmd) {\n\t\tconst result = await this.db.collection(cmd.collection).insertOne(cmd.document);\n\t\tyield {\n\t\t\tinsertedId: result.insertedId,\n\t\t\tdocument: this.asRead({\n\t\t\t\t_id: result.insertedId,\n\t\t\t\t...cmd.document\n\t\t\t})\n\t\t};\n\t}\n\t/**\n\t* The server stores an inserted document as the driver wrote it, apart from moving `_id` first, so writing it to BSON and reading it back with the client's options gives what a read returns, without a query.\n\t*/\n\tasRead(document) {\n\t\tconst { raw: _raw, ...options } = this.db.bsonOptions;\n\t\treturn BSON.deserialize(BSON.serialize(document, options), options);\n\t}\n\tasync *executeUpdateOneCommand(cmd) {\n\t\tconst result = await this.db.collection(cmd.collection).updateOne(cmd.filter, cmd.update, { upsert: cmd.upsert });\n\t\tyield {\n\t\t\tmatchedCount: result.matchedCount,\n\t\t\tmodifiedCount: result.modifiedCount,\n\t\t\tupsertedCount: result.upsertedCount,\n\t\t\tupsertedId: result.upsertedId ?? void 0\n\t\t};\n\t}\n\tasync *executeInsertManyCommand(cmd) {\n\t\tconst result = await this.db.collection(cmd.collection).insertMany(cmd.documents);\n\t\tconst insertedIds = Object.values(result.insertedIds);\n\t\tyield {\n\t\t\tinsertedIds,\n\t\t\tinsertedCount: result.insertedCount,\n\t\t\tdocuments: cmd.documents.map((document, index) => this.asRead({\n\t\t\t\t_id: insertedIds[index],\n\t\t\t\t...document\n\t\t\t}))\n\t\t};\n\t}\n\tasync *executeUpdateManyCommand(cmd) {\n\t\tconst result = await this.db.collection(cmd.collection).updateMany(cmd.filter, cmd.update, {\n\t\t\tupsert: cmd.upsert,\n\t\t\t...cmd.bypassDocumentValidation ? { bypassDocumentValidation: true } : {}\n\t\t});\n\t\tyield {\n\t\t\tmatchedCount: result.matchedCount,\n\t\t\tmodifiedCount: result.modifiedCount,\n\t\t\tupsertedCount: result.upsertedCount,\n\t\t\tupsertedId: result.upsertedId ?? void 0\n\t\t};\n\t}\n\tasync *executeDeleteOneCommand(cmd) {\n\t\tyield { deletedCount: (await this.db.collection(cmd.collection).deleteOne(cmd.filter)).deletedCount };\n\t}\n\tasync *executeDeleteManyCommand(cmd) {\n\t\tyield { deletedCount: (await this.db.collection(cmd.collection).deleteMany(cmd.filter)).deletedCount };\n\t}\n\tasync *executeFindOneAndUpdateCommand(cmd) {\n\t\tconst result = await this.db.collection(cmd.collection).findOneAndUpdate(cmd.filter, cmd.update, {\n\t\t\tupsert: cmd.upsert,\n\t\t\t...cmd.returnDocument != null ? { returnDocument: cmd.returnDocument } : {},\n\t\t\t...cmd.sort != null ? { sort: cmd.sort } : {}\n\t\t});\n\t\tif (result) yield result;\n\t}\n\tasync *executeFindOneAndDeleteCommand(cmd) {\n\t\tconst result = await this.db.collection(cmd.collection).findOneAndDelete(cmd.filter, { ...cmd.sort != null ? { sort: cmd.sort } : {} });\n\t\tif (result) yield result;\n\t}\n\tasync *executeAggregateCommand(cmd) {\n\t\tyield* this.db.collection(cmd.collection).aggregate(cmd.pipeline);\n\t}\n\tasync executeCreateCollectionCommand(cmd) {\n\t\tconst { validator, validationLevel, validationAction, capped, size, max, timeseries, collation, changeStreamPreAndPostImages, clusteredIndex } = cmd;\n\t\tawait this.db.createCollection(cmd.collection, {\n\t\t\t...validator !== void 0 ? { validator } : {},\n\t\t\t...validationLevel !== void 0 ? { validationLevel } : {},\n\t\t\t...validationAction !== void 0 ? { validationAction } : {},\n\t\t\t...capped !== void 0 ? { capped } : {},\n\t\t\t...size !== void 0 ? { size } : {},\n\t\t\t...max !== void 0 ? { max } : {},\n\t\t\t...timeseries !== void 0 ? { timeseries } : {},\n\t\t\t...collation !== void 0 ? { collation } : {},\n\t\t\t...changeStreamPreAndPostImages !== void 0 ? { changeStreamPreAndPostImages } : {},\n\t\t\t...clusteredIndex !== void 0 ? { clusteredIndex } : {}\n\t\t});\n\t}\n\tasync executeCreateIndexCommand(cmd) {\n\t\tconst { unique, sparse, expireAfterSeconds, partialFilterExpression, name, wildcardProjection, collation, weights, default_language, language_override } = cmd;\n\t\tawait this.db.collection(cmd.collection).createIndex(cmd.key, {\n\t\t\t...unique !== void 0 ? { unique } : {},\n\t\t\t...sparse !== void 0 ? { sparse } : {},\n\t\t\t...expireAfterSeconds !== void 0 ? { expireAfterSeconds } : {},\n\t\t\t...partialFilterExpression !== void 0 ? { partialFilterExpression } : {},\n\t\t\t...name !== void 0 ? { name } : {},\n\t\t\t...wildcardProjection !== void 0 ? { wildcardProjection } : {},\n\t\t\t...collation !== void 0 ? { collation } : {},\n\t\t\t...weights !== void 0 ? { weights } : {},\n\t\t\t...default_language !== void 0 ? { default_language } : {},\n\t\t\t...language_override !== void 0 ? { language_override } : {}\n\t\t});\n\t}\n\tasync executeDropCollectionCommand(cmd) {\n\t\tawait this.db.collection(cmd.collection).drop();\n\t}\n\tasync executeRenameCollectionCommand(cmd) {\n\t\tawait this.db.renameCollection(cmd.collection, cmd.to);\n\t}\n\tasync executeDropIndexCommand(cmd) {\n\t\tawait this.db.collection(cmd.collection).dropIndex(cmd.name);\n\t}\n\tasync executeCollModCommand(cmd) {\n\t\tconst { validator, validationLevel, validationAction, changeStreamPreAndPostImages } = cmd;\n\t\tawait this.db.command({\n\t\t\tcollMod: cmd.collection,\n\t\t\t...validator !== void 0 ? { validator } : {},\n\t\t\t...validationLevel !== void 0 ? { validationLevel } : {},\n\t\t\t...validationAction !== void 0 ? { validationAction } : {},\n\t\t\t...changeStreamPreAndPostImages !== void 0 ? { changeStreamPreAndPostImages } : {}\n\t\t});\n\t}\n};\nasync function createMongoDriver(uri, dbName) {\n\treturn MongoDriverImpl.fromConnection(uri, dbName);\n}\n//#endregion\nexport { createMongoDriver as n, DRIVER_INFO as r, MongoDriverImpl as t };\n\n//# sourceMappingURL=mongo-driver-Bqompjve.mjs.map"],"mappings":";;;AAIA,MAAM,cAAc;CACnB,MAAM;CACN,SAAS;AACV;;AAIA,SAAS,gBAAgB,OAAO;CAC/B,MAAM,YAAY;CAClB,IAAI,OAAO,cAAc,YAAY,cAAc,QAAQ,UAAU,aAAa,OAAO,UAAU,SAAS,UAAU,OAAO,UAAU;CACvI,OAAO;AACR;;AAEA,IAAI,kBAAkB,MAAM,gBAAgB;CAC3C;CACA;CACA,YAAY,IAAI,QAAQ;EACvB,KAAK,KAAK;EACV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CAAC;EAC5D,CAAC;CACF;CACA,MAAM,6BAA6B,KAAK;EACvC,MAAM,KAAK,GAAG,WAAW,IAAI,UAAU,CAAC,CAAC,KAAK;CAC/C;CACA,MAAM,+BAA+B,KAAK;EACzC,MAAM,KAAK,GAAG,iBAAiB,IAAI,YAAY,IAAI,EAAE;CACtD;CACA,MAAM,wBAAwB,KAAK;EAClC,MAAM,KAAK,GAAG,WAAW,IAAI,UAAU,CAAC,CAAC,UAAU,IAAI,IAAI;CAC5D;CACA,MAAM,sBAAsB,KAAK;EAChC,MAAM,EAAE,WAAW,iBAAiB,kBAAkB,iCAAiC;EACvF,MAAM,KAAK,GAAG,QAAQ;GACrB,SAAS,IAAI;GACb,GAAG,cAAc,KAAK,IAAI,EAAE,UAAU,IAAI,CAAC;GAC3C,GAAG,oBAAoB,KAAK,IAAI,EAAE,gBAAgB,IAAI,CAAC;GACvD,GAAG,qBAAqB,KAAK,IAAI,EAAE,iBAAiB,IAAI,CAAC;GACzD,GAAG,iCAAiC,KAAK,IAAI,EAAE,6BAA6B,IAAI,CAAC;EAClF,CAAC;CACF;AACD;AACA,eAAe,kBAAkB,KAAK,QAAQ;CAC7C,OAAO,gBAAgB,eAAe,KAAK,MAAM;AAClD"}
1
+ {"version":3,"file":"mongo-driver-_5ZHrJDP-LGH7Kem3.mjs","names":[],"sources":["../../../../3-mongo-target/3-mongo-driver/dist/mongo-driver-_5ZHrJDP.mjs"],"sourcesContent":["import { assertNever } from \"@internal/utils/internal-error\";\nimport { BSON, MongoClient } from \"mongodb\";\n//#endregion\n//#region src/core/driver-info.ts\nconst DRIVER_INFO = {\n\tname: \"Prisma\",\n\tversion: \"8.0.0-rc.18-dev.30\"\n};\n//#endregion\n//#region src/mongo-driver.ts\n/* v8 ignore start */\nfunction unreachableKind(value) {\n\tconst candidate = value;\n\tif (typeof candidate === \"object\" && candidate !== null && \"kind\" in candidate && typeof candidate.kind === \"string\") return candidate.kind;\n\treturn \"unknown\";\n}\n/* v8 ignore stop */\nvar MongoDriverImpl = class MongoDriverImpl {\n\tdb;\n\tclient;\n\tconstructor(db, client) {\n\t\tthis.db = db;\n\t\tthis.client = client;\n\t}\n\tstatic async fromConnection(uri, dbName) {\n\t\tconst client = new MongoClient(uri, { driverInfo: DRIVER_INFO });\n\t\tawait client.connect();\n\t\treturn new MongoDriverImpl(client.db(dbName), client);\n\t}\n\tstatic fromDb(db) {\n\t\treturn new MongoDriverImpl(db, void 0);\n\t}\n\texecute(wireCommand) {\n\t\tswitch (wireCommand.kind) {\n\t\t\tcase \"insertOne\": return this.executeInsertOneCommand(wireCommand);\n\t\t\tcase \"updateOne\": return this.executeUpdateOneCommand(wireCommand);\n\t\t\tcase \"insertMany\": return this.executeInsertManyCommand(wireCommand);\n\t\t\tcase \"updateMany\": return this.executeUpdateManyCommand(wireCommand);\n\t\t\tcase \"deleteOne\": return this.executeDeleteOneCommand(wireCommand);\n\t\t\tcase \"deleteMany\": return this.executeDeleteManyCommand(wireCommand);\n\t\t\tcase \"findOneAndUpdate\": return this.executeFindOneAndUpdateCommand(wireCommand);\n\t\t\tcase \"findOneAndDelete\": return this.executeFindOneAndDeleteCommand(wireCommand);\n\t\t\tcase \"aggregate\": return this.executeAggregateCommand(wireCommand);\n\t\t\t// v8 ignore next 4\n\t\t\tdefault: return assertNever(wireCommand, `Unknown wire command kind: ${unreachableKind(wireCommand)}`);\n\t\t}\n\t}\n\tasync run(wireCommand) {\n\t\tswitch (wireCommand.kind) {\n\t\t\tcase \"createCollection\": return this.executeCreateCollectionCommand(wireCommand);\n\t\t\tcase \"createIndex\": return this.executeCreateIndexCommand(wireCommand);\n\t\t\tcase \"dropCollection\": return this.executeDropCollectionCommand(wireCommand);\n\t\t\tcase \"renameCollection\": return this.executeRenameCollectionCommand(wireCommand);\n\t\t\tcase \"dropIndex\": return this.executeDropIndexCommand(wireCommand);\n\t\t\tcase \"collMod\": return this.executeCollModCommand(wireCommand);\n\t\t\t// v8 ignore next 4\n\t\t\tdefault: return assertNever(wireCommand, `Unknown DDL wire command kind: ${unreachableKind(wireCommand)}`);\n\t\t}\n\t}\n\tasync close() {\n\t\tawait this.client?.close();\n\t}\n\tasync *executeInsertOneCommand(cmd) {\n\t\tconst result = await this.db.collection(cmd.collection).insertOne(cmd.document);\n\t\tyield {\n\t\t\tinsertedId: result.insertedId,\n\t\t\tdocument: this.asRead({\n\t\t\t\t_id: result.insertedId,\n\t\t\t\t...cmd.document\n\t\t\t})\n\t\t};\n\t}\n\t/**\n\t* The server stores an inserted document as the driver wrote it, apart from moving `_id` first, so writing it to BSON and reading it back with the client's options gives what a read returns, without a query.\n\t*/\n\tasRead(document) {\n\t\tconst { raw: _raw, ...options } = this.db.bsonOptions;\n\t\treturn BSON.deserialize(BSON.serialize(document, options), options);\n\t}\n\tasync *executeUpdateOneCommand(cmd) {\n\t\tconst result = await this.db.collection(cmd.collection).updateOne(cmd.filter, cmd.update, { upsert: cmd.upsert });\n\t\tyield {\n\t\t\tmatchedCount: result.matchedCount,\n\t\t\tmodifiedCount: result.modifiedCount,\n\t\t\tupsertedCount: result.upsertedCount,\n\t\t\tupsertedId: result.upsertedId ?? void 0\n\t\t};\n\t}\n\tasync *executeInsertManyCommand(cmd) {\n\t\tconst result = await this.db.collection(cmd.collection).insertMany(cmd.documents);\n\t\tconst insertedIds = Object.values(result.insertedIds);\n\t\tyield {\n\t\t\tinsertedIds,\n\t\t\tinsertedCount: result.insertedCount,\n\t\t\tdocuments: cmd.documents.map((document, index) => this.asRead({\n\t\t\t\t_id: insertedIds[index],\n\t\t\t\t...document\n\t\t\t}))\n\t\t};\n\t}\n\tasync *executeUpdateManyCommand(cmd) {\n\t\tconst result = await this.db.collection(cmd.collection).updateMany(cmd.filter, cmd.update, {\n\t\t\tupsert: cmd.upsert,\n\t\t\t...cmd.bypassDocumentValidation ? { bypassDocumentValidation: true } : {}\n\t\t});\n\t\tyield {\n\t\t\tmatchedCount: result.matchedCount,\n\t\t\tmodifiedCount: result.modifiedCount,\n\t\t\tupsertedCount: result.upsertedCount,\n\t\t\tupsertedId: result.upsertedId ?? void 0\n\t\t};\n\t}\n\tasync *executeDeleteOneCommand(cmd) {\n\t\tyield { deletedCount: (await this.db.collection(cmd.collection).deleteOne(cmd.filter)).deletedCount };\n\t}\n\tasync *executeDeleteManyCommand(cmd) {\n\t\tyield { deletedCount: (await this.db.collection(cmd.collection).deleteMany(cmd.filter)).deletedCount };\n\t}\n\tasync *executeFindOneAndUpdateCommand(cmd) {\n\t\tconst result = await this.db.collection(cmd.collection).findOneAndUpdate(cmd.filter, cmd.update, {\n\t\t\tupsert: cmd.upsert,\n\t\t\t...cmd.returnDocument != null ? { returnDocument: cmd.returnDocument } : {},\n\t\t\t...cmd.sort != null ? { sort: cmd.sort } : {}\n\t\t});\n\t\tif (result) yield result;\n\t}\n\tasync *executeFindOneAndDeleteCommand(cmd) {\n\t\tconst result = await this.db.collection(cmd.collection).findOneAndDelete(cmd.filter, { ...cmd.sort != null ? { sort: cmd.sort } : {} });\n\t\tif (result) yield result;\n\t}\n\tasync *executeAggregateCommand(cmd) {\n\t\tyield* this.db.collection(cmd.collection).aggregate(cmd.pipeline);\n\t}\n\tasync executeCreateCollectionCommand(cmd) {\n\t\tconst { validator, validationLevel, validationAction, capped, size, max, timeseries, collation, changeStreamPreAndPostImages, clusteredIndex } = cmd;\n\t\tawait this.db.createCollection(cmd.collection, {\n\t\t\t...validator !== void 0 ? { validator } : {},\n\t\t\t...validationLevel !== void 0 ? { validationLevel } : {},\n\t\t\t...validationAction !== void 0 ? { validationAction } : {},\n\t\t\t...capped !== void 0 ? { capped } : {},\n\t\t\t...size !== void 0 ? { size } : {},\n\t\t\t...max !== void 0 ? { max } : {},\n\t\t\t...timeseries !== void 0 ? { timeseries } : {},\n\t\t\t...collation !== void 0 ? { collation } : {},\n\t\t\t...changeStreamPreAndPostImages !== void 0 ? { changeStreamPreAndPostImages } : {},\n\t\t\t...clusteredIndex !== void 0 ? { clusteredIndex } : {}\n\t\t});\n\t}\n\tasync executeCreateIndexCommand(cmd) {\n\t\tconst { unique, sparse, expireAfterSeconds, partialFilterExpression, name, wildcardProjection, collation, weights, default_language, language_override } = cmd;\n\t\tawait this.db.collection(cmd.collection).createIndex(cmd.key, {\n\t\t\t...unique !== void 0 ? { unique } : {},\n\t\t\t...sparse !== void 0 ? { sparse } : {},\n\t\t\t...expireAfterSeconds !== void 0 ? { expireAfterSeconds } : {},\n\t\t\t...partialFilterExpression !== void 0 ? { partialFilterExpression } : {},\n\t\t\t...name !== void 0 ? { name } : {},\n\t\t\t...wildcardProjection !== void 0 ? { wildcardProjection } : {},\n\t\t\t...collation !== void 0 ? { collation } : {},\n\t\t\t...weights !== void 0 ? { weights } : {},\n\t\t\t...default_language !== void 0 ? { default_language } : {},\n\t\t\t...language_override !== void 0 ? { language_override } : {}\n\t\t});\n\t}\n\tasync executeDropCollectionCommand(cmd) {\n\t\tawait this.db.collection(cmd.collection).drop();\n\t}\n\tasync executeRenameCollectionCommand(cmd) {\n\t\tawait this.db.renameCollection(cmd.collection, cmd.to);\n\t}\n\tasync executeDropIndexCommand(cmd) {\n\t\tawait this.db.collection(cmd.collection).dropIndex(cmd.name);\n\t}\n\tasync executeCollModCommand(cmd) {\n\t\tconst { validator, validationLevel, validationAction, changeStreamPreAndPostImages } = cmd;\n\t\tawait this.db.command({\n\t\t\tcollMod: cmd.collection,\n\t\t\t...validator !== void 0 ? { validator } : {},\n\t\t\t...validationLevel !== void 0 ? { validationLevel } : {},\n\t\t\t...validationAction !== void 0 ? { validationAction } : {},\n\t\t\t...changeStreamPreAndPostImages !== void 0 ? { changeStreamPreAndPostImages } : {}\n\t\t});\n\t}\n};\nasync function createMongoDriver(uri, dbName) {\n\treturn MongoDriverImpl.fromConnection(uri, dbName);\n}\n//#endregion\nexport { createMongoDriver as n, DRIVER_INFO as r, MongoDriverImpl as t };\n\n//# sourceMappingURL=mongo-driver-_5ZHrJDP.mjs.map"],"mappings":";;;AAIA,MAAM,cAAc;CACnB,MAAM;CACN,S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K,IAAI,EAAE,mBAAmB,IAAI,CAAC;GAC7D,GAAG,cAAc,KAAK,IAAI,EAAE,UAAU,IAAI,CAAC;GAC3C,GAAG,YAAY,KAAK,IAAI,EAAE,QAAQ,IAAI,CAAC;GACvC,GAAG,qBAAqB,KAAK,IAAI,EAAE,iBAAiB,IAAI,CAAC;GACzD,GAAG,sBAAsB,KAAK,IAAI,EAAE,kBAAkB,IAAI,CAAC;EAC5D,CAAC;CACF;CACA,MAAM,6BAA6B,KAAK;EACvC,MAAM,KAAK,GAAG,WAAW,IAAI,UAAU,CAAC,CAAC,KAAK;CAC/C;CACA,MAAM,+BAA+B,KAAK;EACzC,MAAM,KAAK,GAAG,iBAAiB,IAAI,YAAY,IAAI,EAAE;CACtD;CACA,MAAM,wBAAwB,KAAK;EAClC,MAAM,KAAK,GAAG,WAAW,IAAI,UAAU,CAAC,CAAC,UAAU,IAAI,IAAI;CAC5D;CACA,MAAM,sBAAsB,KAAK;EAChC,MAAM,EAAE,WAAW,iBAAiB,kBAAkB,iCAAiC;EACvF,MAAM,KAAK,GAAG,QAAQ;GACrB,SAAS,IAAI;GACb,GAAG,cAAc,KAAK,IAAI,EAAE,UAAU,IAAI,CAAC;GAC3C,GAAG,oBAAoB,KAAK,IAAI,EAAE,gBAAgB,IAAI,CAAC;GACvD,GAAG,qBAAqB,KAAK,IAAI,EAAE,iBAAiB,IAAI,CAAC;GACzD,GAAG,iCAAiC,KAAK,IAAI,EAAE,6BAA6B,IAAI,CAAC;EAClF,CAAC;CACF;AACD;AACA,eAAe,kBAAkB,KAAK,QAAQ;CAC7C,OAAO,gBAAgB,eAAe,KAAK,MAAM;AAClD"}
@@ -1,6 +1,6 @@
1
- import { MigrationOperationClass, OpFactoryCall } from "@prisma/orm-framework/components/control";
2
1
  import { MongoSchemaCollection, MongoSchemaIndex } from "@prisma/orm-family-mongo/schema-ir";
3
2
  import { AnyMongoMigrationOperation, CollModOptions, CreateCollectionOptions, CreateIndexOptions, MongoIndexKey, MongoMigrationPlanOperation } from "@prisma/orm-family-mongo/query-ast/control";
3
+ import { MigrationOperationClass, OpFactoryCall } from "@prisma/orm-framework/components/control";
4
4
  import { ImportRequirement, TsExpression } from "@prisma/orm-framework/ts-render";
5
5
  import { Document } from "@prisma/orm-family-mongo/value";
6
6
  //#region ../../../3-mongo-target/1-mongo-target/dist/op-factory-call-BoYr7vvM.d.mts
@@ -107,4 +107,4 @@ declare function schemaIndexToCreateIndexOptions(index: MongoSchemaIndex): Creat
107
107
  declare function schemaCollectionToCreateCollectionOptions(coll: MongoSchemaCollection): CreateCollectionOptions | undefined;
108
108
  //#endregion
109
109
  export { DropCollectionCall as a, RenameCollectionCall as c, schemaCollectionToCreateCollectionOptions as d, schemaIndexToCreateIndexOptions as f, CreateIndexCall as i, RenameFieldCall as l, CollModMeta as n, DropIndexCall as o, CreateCollectionCall as r, OpFactoryCall$1 as s, CollModCall as t, UnsetFieldCall as u };
110
- //# sourceMappingURL=op-factory-call-BoYr7vvM-CNpt7COE.d.mts.map
110
+ //# sourceMappingURL=op-factory-call-BoYr7vvM-PXfT4zvm.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"op-factory-call-BoYr7vvM-CNpt7COE.d.mts","names":[],"sources":["../../../../3-mongo-target/1-mongo-target/dist/op-factory-call-BoYr7vvM.d.mts"],"mappings":";;;;;;;UAMU;WACC;WACA;WACA,iBAAiB;;uBAEL,0BAA0B,wBAAwB;oBACrD;oBACA,gBAAgB;oBAChB;WACT,QAAQ;EACjB,+BAA+B;YACrB;;cAEE,wBAAwB;WAC3B;WACA;WACA;WACA,MAAM,cAAc;WACpB,SAAS;WACT;EACT,YAAY,oBAAoB,MAAM,cAAc,gBAAgB,UAAU;EAC9E,QAAQ;EACR;;cAEY,sBAAsB;WACzB;WACA;WACA;WACA,MAAM,cAAc;WACpB;EACT,YAAY,oBAAoB,MAAM,cAAc;EACpD,QAAQ;EACR;;cAEY,6BAA6B;WAChC;WACA;WACA;WACA,SAAS;WACT;EACT,YAAY,oBAAoB,UAAU;EAC1C,QAAQ;EACR;;cAEY,2BAA2B;WAC9B;WACA;WACA;WACA;EACT,YAAY;EACZ,QAAQ;EACR;;cAEY,6BAA6B;WAChC;WACA;WACA;WACA;WACA;EACT,YAAY,cAAc;EAC1B,QAAQ;EACR;;cAEY,wBAAwB;WAC3B;WACA;WACA;WACA;WACA;WACA,QAAQ;WACR;EACT,YAAY,oBAAoB,cAAc,YAAY,SAAS;EACnE,QAAQ;EACR;;cAEY,uBAAuB;WAC1B;WACA;WACA;WACA;WACA,QAAQ;WACR;EACT,YAAY,oBAAoB,eAAe,SAAS;EACxD,QAAQ;EACR;;cAEY,oBAAoB;WACvB;WACA;WACA,SAAS;WACT,MAAM;WACN,gBAAgB;WAChB;EACT,YAAY,oBAAoB,SAAS,gBAAgB,OAAO;EAChE,QAAQ;EACR;;KAEG,kBAAkB,kBAAkB,gBAAgB,uBAAuB,qBAAqB,uBAAuB,kBAAkB,iBAAiB;iBAC9I,gCAAgC,OAAO,mBAAmB;iBAC1D,0CAA0C,MAAM,wBAAwB"}
1
+ {"version":3,"file":"op-factory-call-BoYr7vvM-PXfT4zvm.d.mts","names":[],"sources":["../../../../3-mongo-target/1-mongo-target/dist/op-factory-call-BoYr7vvM.d.mts"],"mappings":";;;;;;;UAMU;WACC;WACA;WACA,iBAAiB;;uBAEL,0BAA0B,wBAAwB;oBACrD;oBACA,gBAAgB;oBAChB;WACT,QAAQ;EACjB,+BAA+B;YACrB;;cAEE,wBAAwB;WAC3B;WACA;WACA;WACA,MAAM,cAAc;WACpB,SAAS;WACT;EACT,YAAY,oBAAoB,MAAM,cAAc,gBAAgB,UAAU;EAC9E,QAAQ;EACR;;cAEY,sBAAsB;WACzB;WACA;WACA;WACA,MAAM,cAAc;WACpB;EACT,YAAY,oBAAoB,MAAM,cAAc;EACpD,QAAQ;EACR;;cAEY,6BAA6B;WAChC;WACA;WACA;WACA,SAAS;WACT;EACT,YAAY,oBAAoB,UAAU;EAC1C,QAAQ;EACR;;cAEY,2BAA2B;WAC9B;WACA;WACA;WACA;EACT,YAAY;EACZ,QAAQ;EACR;;cAEY,6BAA6B;WAChC;WACA;WACA;WACA;WACA;EACT,YAAY,cAAc;EAC1B,QAAQ;EACR;;cAEY,wBAAwB;WAC3B;WACA;WACA;WACA;WACA;WACA,QAAQ;WACR;EACT,YAAY,oBAAoB,cAAc,YAAY,SAAS;EACnE,QAAQ;EACR;;cAEY,uBAAuB;WAC1B;WACA;WACA;WACA;WACA,QAAQ;WACR;EACT,YAAY,oBAAoB,eAAe,SAAS;EACxD,QAAQ;EACR;;cAEY,oBAAoB;WACvB;WACA;WACA,SAAS;WACT,MAAM;WACN,gBAAgB;WAChB;EACT,YAAY,oBAAoB,SAAS,gBAAgB,OAAO;EAChE,QAAQ;EACR;;KAEG,kBAAkB,kBAAkB,gBAAgB,uBAAuB,qBAAqB,uBAAuB,kBAAkB,iBAAiB;iBAC9I,gCAAgC,OAAO,mBAAmB;iBAC1D,0CAA0C,MAAM,wBAAwB"}
@@ -0,0 +1,230 @@
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/core/descriptor-meta.d.ts
88
+ declare const mongoTargetDescriptorMetaBase: {
89
+ readonly authoring: {
90
+ readonly field: {
91
+ readonly temporal: {
92
+ readonly timestamp: {
93
+ readonly kind: "fieldPreset";
94
+ readonly args: readonly [{
95
+ readonly name: "onCreate";
96
+ readonly kind: "option";
97
+ readonly values: readonly ["now"];
98
+ readonly optional: true;
99
+ }, {
100
+ readonly name: "onUpdate";
101
+ readonly kind: "option";
102
+ readonly values: readonly ["now"];
103
+ readonly optional: true;
104
+ }];
105
+ readonly output: Omit<{
106
+ readonly codecId: "mongo/date@1";
107
+ } & {
108
+ readonly generatorId?: "timestampNow";
109
+ }, "generatorId"> & {
110
+ readonly executionDefaults: {
111
+ readonly onCreate: {
112
+ readonly kind: "select";
113
+ readonly index: 0;
114
+ readonly cases: {
115
+ readonly now: {
116
+ readonly kind: "generator";
117
+ readonly id: "timestampNow";
118
+ };
119
+ };
120
+ };
121
+ readonly onUpdate: {
122
+ readonly kind: "select";
123
+ readonly index: 1;
124
+ readonly cases: {
125
+ readonly now: {
126
+ readonly kind: "generator";
127
+ readonly id: "timestampNow";
128
+ };
129
+ };
130
+ };
131
+ };
132
+ };
133
+ };
134
+ readonly createdAt: {
135
+ readonly kind: "fieldPreset";
136
+ readonly output: Omit<{
137
+ readonly codecId: "mongo/date@1";
138
+ } & {
139
+ readonly generatorId?: "timestampNow";
140
+ }, "generatorId"> & {
141
+ readonly executionDefaults: {
142
+ readonly onCreate: {
143
+ readonly kind: "generator";
144
+ readonly id: "timestampNow";
145
+ };
146
+ };
147
+ };
148
+ };
149
+ readonly updatedAt: {
150
+ readonly kind: "fieldPreset";
151
+ readonly output: Omit<{
152
+ readonly codecId: "mongo/date@1";
153
+ } & {
154
+ readonly generatorId?: "timestampNow";
155
+ }, "generatorId"> & {
156
+ readonly executionDefaults: {
157
+ readonly onCreate: {
158
+ readonly kind: "generator";
159
+ readonly id: "timestampNow";
160
+ };
161
+ readonly onUpdate: {
162
+ readonly kind: "generator";
163
+ readonly id: "timestampNow";
164
+ };
165
+ };
166
+ };
167
+ };
168
+ };
169
+ };
170
+ };
171
+ readonly controlMutationDefaults: {
172
+ readonly defaultFunctionRegistry: Map<any, any>;
173
+ readonly generatorDescriptors: readonly [{
174
+ readonly id: "timestampNow";
175
+ }];
176
+ };
177
+ readonly generatorFunctions: readonly [{
178
+ readonly name: "now";
179
+ readonly signature: {
180
+ readonly documentation: "Writes the current time.";
181
+ };
182
+ readonly bindings: readonly [import("@prisma/orm-framework/components/components").GeneratorFunctionBinding];
183
+ }];
184
+ readonly kind: "target";
185
+ readonly familyId: "mongo";
186
+ readonly targetId: "mongo";
187
+ readonly id: "mongo";
188
+ readonly version: "0.0.1";
189
+ readonly capabilities: {};
190
+ readonly defaultNamespaceId: "__unbound__";
191
+ readonly supportsNamespaces: true;
192
+ readonly dataTypes: readonly import("@prisma/orm-framework/components/codec").DataType[];
193
+ readonly types: {
194
+ readonly codecTypes: {
195
+ readonly codecDescriptors: readonly import("@prisma/orm-framework/components/codec").CodecDescriptor<void>[];
196
+ };
197
+ };
198
+ readonly __codecTypes?: CodecTypes;
199
+ readonly __parameterizedOutputTypes?: ParameterizedOutputTypesForTypeParams;
200
+ };
201
+ declare const mongoTargetDescriptorMeta: typeof mongoTargetDescriptorMetaBase & {
202
+ readonly __codecTypes?: CodecTypes;
203
+ readonly __parameterizedOutputTypes?: ParameterizedOutputTypesForTypeParams;
204
+ };
205
+ //#endregion
206
+ //#region src/exports/pack.d.ts
207
+ declare const mongoTargetPack: {
208
+ readonly kind: 'target';
209
+ readonly familyId: 'mongo';
210
+ readonly targetId: 'mongo';
211
+ readonly id: 'mongo';
212
+ readonly version: '0.0.1';
213
+ readonly capabilities: Record<string, never>;
214
+ readonly defaultNamespaceId: '__unbound__';
215
+ readonly types: {
216
+ readonly codecTypes: {
217
+ readonly codecDescriptors: ReadonlyArray<AnyCodecDescriptor>;
218
+ };
219
+ };
220
+ readonly authoring: {
221
+ readonly field: typeof mongoAuthoringFieldPresets;
222
+ };
223
+ readonly controlMutationDefaults: ControlMutationDefaults;
224
+ readonly generatorFunctions: typeof mongoTargetDescriptorMeta.generatorFunctions;
225
+ readonly __codecTypes?: CodecTypes;
226
+ readonly __parameterizedOutputTypes?: ParameterizedOutputTypesForTypeParams;
227
+ };
228
+ //#endregion
229
+ export { mongoTargetPack as t };
230
+ //# sourceMappingURL=pack-BuZ5LBMg.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pack-BuZ5LBMg.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;aACE;eACE;iBACE;mBACE;mBACA;qBACE;qBACA;qBACA;qBACA;;qBAEA;qBACA;qBACA;qBACA;;mBAEF,QAAQ;qBACN;;qBAEA;;qBAEA;uBACE;yBACE;yBACA;yBACA;2BACE;6BACE;6BACA;;;;uBAIN;yBACE;yBACA;yBACA;2BACE;6BACE;6BACA;;;;;;;iBAOZ;mBACE;mBACA,QAAQ;qBACN;;qBAEA;;qBAEA;uBACE;yBACE;yBACA;;;;;iBAKR;mBACE;mBACA,QAAQ;qBACN;;qBAEA;;qBAEA;uBACE;yBACE;yBACA;;uBAEF;yBACE;yBACA;;;;;;;;WAQd;aACE,yBAAyB;aACzB;eACE;;;WAGJ;aACE;aACA;eACE;;aAEF,wEAAwE;;WAE1E;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,mEAAmE;WACnE;aACE;eACE,0EAA0E;;;WAG9E,eAAe;WACf,6BAA6B;;cAE1B,kCAAkC;WACrC,eAAe;WACf,6BAA6B;;;;cAI1B;WACH;WACA;WACA;WACA;WACA;WACA,cAAc;WACd;WACA;aACE;eACE,kBAAkB,cAAc;;;WAGpC;aACE,cAAc;;WAEhB,yBAAyB;WACzB,2BAA2B,0BAA0B;WACrD,eAAe;WACf,6BAA6B"}
@@ -1,6 +1,5 @@
1
1
  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-BkQfspmL.mjs";
2
2
  import { t as mongoTargetDescriptorMetaRuntime } from "./descriptor-meta-runtime-D0YxXi85-CjeTEg7T.mjs";
3
- import { TIMESTAMP_NOW_GENERATOR_ID } from "@prisma/orm-framework/components/authoring";
4
3
  //#region ../../../3-mongo-target/1-mongo-target/dist/prisma6-binding.mjs
5
4
  /**
6
5
  * 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`.
@@ -38,10 +37,9 @@ const prisma6MongoBinding = {
38
37
  },
39
38
  Json: { "db.Json": MONGO_JSON_CODEC_ID }
40
39
  },
41
- objectIdCodecId: MONGO_OBJECTID_CODEC_ID,
42
- timestampGeneratorId: TIMESTAMP_NOW_GENERATOR_ID
40
+ objectIdCodecId: MONGO_OBJECTID_CODEC_ID
43
41
  };
44
42
  //#endregion
45
43
  export { prisma6MongoBinding as t };
46
44
 
47
- //# sourceMappingURL=prisma6-binding-DUUKAo0Q.mjs.map
45
+ //# sourceMappingURL=prisma6-binding-DKZXqEL5.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prisma6-binding-DKZXqEL5.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\";\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};\n//#endregion\nexport { prisma6MongoBinding };\n\n//# sourceMappingURL=prisma6-binding.mjs.map"],"mappings":";;;;;;AAKA,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;AAClB"}
@@ -48,8 +48,7 @@ declare const prisma6MongoBinding: {
48
48
  };
49
49
  };
50
50
  readonly objectIdCodecId: "mongo/objectId@1";
51
- readonly timestampGeneratorId: "timestampNow";
52
51
  };
53
52
  //#endregion
54
53
  export { prisma6MongoBinding as t };
55
- //# sourceMappingURL=prisma6-binding-DppqC9Jo.d.mts.map
54
+ //# sourceMappingURL=prisma6-binding-DRM8QnmA.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prisma6-binding-DppqC9Jo.d.mts","names":[],"sources":["../../../../3-mongo-target/1-mongo-target/dist/prisma6-binding.d.mts"],"mappings":";;;;;;cAKc;WACH,QAAQ;WACR;WACA;aACE;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;;WAEF;aACE;eACE;eACA;;aAEF;eACE;;aAEF;eACE;eACA;;aAEF;eACE;;aAEF;eACE;;aAEF;eACE;;aAEF;eACE;eACA;;aAEF;eACE;;;WAGJ;WACA"}
1
+ {"version":3,"file":"prisma6-binding-DRM8QnmA.d.mts","names":[],"sources":["../../../../3-mongo-target/1-mongo-target/dist/prisma6-binding.d.mts"],"mappings":";;;;;;cAKc;WACH,QAAQ;WACR;WACA;aACE;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;;WAEF;aACE;eACE;eACA;;aAEF;eACE;;aAEF;eACE;eACA;;aAEF;eACE;;aAEF;eACE;;aAEF;eACE;;aAEF;eACE;eACA;;aAEF;eACE;;;WAGJ"}
package/dist/target.d.mts CHANGED
@@ -1,11 +1,11 @@
1
1
  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, p as MONGO_VECTOR_CODEC_ID, r as MONGO_BSON_CODEC_ID, s as MONGO_INT32_CODEC_ID, t as MONGO_BINARY_CODEC_ID, u as MONGO_JSON_CODEC_ID } from "./codec-ids-PSU05uwH.mjs";
2
2
  import { a as ParameterizedOutputTypesForTypeParams, i as CodecTypes, n as BsonScalar, o as Vector, r as BsonValue, t as BsonInputValue } from "./codec-types-DHjpzMTv.mjs";
3
3
  import { i as mongoStandardCodecs, n as mongoCodecDescriptors, r as mongoDescriptorById, t as buildStandardCodecRegistry } from "./codecs-DBvHcdHp.mjs";
4
- import { a as DropCollectionCall, c as RenameCollectionCall, d as schemaCollectionToCreateCollectionOptions, f as schemaIndexToCreateIndexOptions, i as CreateIndexCall, l as RenameFieldCall, n as CollModMeta, o as DropIndexCall, r as CreateCollectionCall, s as OpFactoryCall$1, t as CollModCall, u as UnsetFieldCall } from "./op-factory-call-BoYr7vvM-CNpt7COE.mjs";
5
- import { _ as renderOps, a as MongoTargetContract, c as MongoTargetSchemaVerifier, d as PlannerProducedMongoMigration, f as RenderMigrationMeta, g as renderCallsToTypeScript, h as mongoTargetDescriptor, i as MongoMigrationRunnerExecuteOptions, l as MongoTargetUnboundDatabase, m as deserializeMongoOps, n as MongoMigrationPlanner, o as MongoTargetContractSerializer, p as deserializeMongoOp, r as MongoMigrationRunner, s as MongoTargetDatabase, t as FilterEvaluator, u as PlanCallsResult, v as serializeMongoOps } from "./control-DPT2hXVf.mjs";
4
+ import { a as DropCollectionCall, c as RenameCollectionCall, d as schemaCollectionToCreateCollectionOptions, f as schemaIndexToCreateIndexOptions, i as CreateIndexCall, l as RenameFieldCall, n as CollModMeta, o as DropIndexCall, r as CreateCollectionCall, s as OpFactoryCall$1, t as CollModCall, u as UnsetFieldCall } from "./op-factory-call-BoYr7vvM-PXfT4zvm.mjs";
5
+ import { _ as renderOps, a as MongoTargetContract, c as MongoTargetSchemaVerifier, d as PlannerProducedMongoMigration, f as RenderMigrationMeta, g as renderCallsToTypeScript, h as mongoTargetDescriptor, i as MongoMigrationRunnerExecuteOptions, l as MongoTargetUnboundDatabase, m as deserializeMongoOps, n as MongoMigrationPlanner, o as MongoTargetContractSerializer, p as deserializeMongoOp, r as MongoMigrationRunner, s as MongoTargetDatabase, t as FilterEvaluator, u as PlanCallsResult, v as serializeMongoOps } from "./control-DpeYOTlN.mjs";
6
6
  import { a as mongoDate, c as mongoInt32, d as mongoObjectId, f as mongoString, i as mongoDataTypes, l as mongoInt64, m as mongoVectorParams, n as mongoBool, o as mongoDecimal128, p as mongoVector, r as mongoBson, s as mongoDouble, t as mongoBinary, u as mongoJson } from "./data-types-BS2Wy4k-.mjs";
7
- import { a as createIndex, c as dropIndex, d as renameField, f as setValidation, i as createCollection, l as placeholder, m as validatedCollection, n as MigrationCLI, o as dataTransform, p as unsetField, r as collMod, s as dropCollection, t as Migration, u as renameCollection } from "./migration-D_hZnT_B.mjs";
8
- import "./pack-DEK1QhCx.mjs";
9
- import { t as prisma6MongoBinding } from "./prisma6-binding-DppqC9Jo.mjs";
7
+ import { a as createIndex, c as dropIndex, d as renameField, f as setValidation, i as createCollection, l as placeholder, m as validatedCollection, n as MigrationCLI, o as dataTransform, p as unsetField, r as collMod, s as dropCollection, t as Migration, u as renameCollection } from "./migration-DKoUk2CF.mjs";
8
+ import "./pack-BuZ5LBMg.mjs";
9
+ import { t as prisma6MongoBinding } from "./prisma6-binding-DRM8QnmA.mjs";
10
10
  import { t as MongoRuntimeTargetInstance } from "./runtime-B9_-kjBX.mjs";
11
11
  export { type BsonInputValue, type BsonScalar, type BsonValue, CodecTypes, CollModCall, type CollModMeta, CreateCollectionCall, CreateIndexCall, DropCollectionCall, DropIndexCall, FilterEvaluator, MONGO_BINARY_CODEC_ID, MONGO_BOOLEAN_CODEC_ID, MONGO_BSON_CODEC_ID, MONGO_DATE_CODEC_ID, MONGO_DECIMAL128_CODEC_ID, MONGO_DOUBLE_CODEC_ID, MONGO_INT32_CODEC_ID, MONGO_INT64_CODEC_ID, MONGO_INT64_NUMBER_CODEC_ID, MONGO_JSON_CODEC_ID, MONGO_OBJECTID_CODEC_ID, MONGO_STRING_CODEC_ID, MONGO_VECTOR_CODEC_ID, Migration, MigrationCLI, MongoMigrationPlanner, MongoMigrationRunner, type MongoMigrationRunnerExecuteOptions, MongoRuntimeTargetInstance, type MongoTargetContract, MongoTargetContractSerializer, MongoTargetDatabase, MongoTargetSchemaVerifier, MongoTargetUnboundDatabase, type OpFactoryCall$1 as OpFactoryCall, ParameterizedOutputTypesForTypeParams, type PlanCallsResult, PlannerProducedMongoMigration, RenameCollectionCall, RenameFieldCall, type RenderMigrationMeta, UnsetFieldCall, Vector, buildStandardCodecRegistry, collMod, createCollection, createIndex, dataTransform, deserializeMongoOp, deserializeMongoOps, dropCollection, dropIndex, mongoBinary, mongoBool, mongoBson, mongoCodecDescriptors, mongoDataTypes, mongoDate, mongoDecimal128, mongoDescriptorById, mongoDouble, mongoInt32, mongoInt64, mongoJson, mongoObjectId, mongoStandardCodecs, mongoString, mongoTargetDescriptor, mongoVector, mongoVectorParams, placeholder, prisma6MongoBinding, renameCollection, renameField, renderCallsToTypeScript, renderOps, schemaCollectionToCreateCollectionOptions, schemaIndexToCreateIndexOptions, serializeMongoOps, setValidation, unsetField, validatedCollection };
package/dist/target.mjs CHANGED
@@ -2,7 +2,7 @@ import { a as MONGO_DECIMAL128_CODEC_ID, c as MONGO_INT64_CODEC_ID, d as MONGO_O
2
2
  import { B as mongoInt32, F as mongoBson, G as mongoVector, H as mongoJson, I as mongoDataTypes, K as mongoVectorParams, L as mongoDate, N as mongoBinary, P as mongoBool, R as mongoDecimal128, U as mongoObjectId, V as mongoInt64, W as mongoString, z as mongoDouble } from "./data-types-vptiHFHC-LUJwNRIq.mjs";
3
3
  import { i as mongoStandardCodecs, n as mongoCodecDescriptors, r as mongoDescriptorById, t as buildStandardCodecRegistry } from "./codecs-BVrMDhha-DBl_TLS8.mjs";
4
4
  import { a as dropCollection, c as renameField, d as unsetField, f as validatedCollection, i as dataTransform, l as setValidation, n as createCollection, o as dropIndex, r as createIndex, s as renameCollection, t as collMod } from "./migration-factories-jwrORVMV-BGqJk_WT.mjs";
5
- import { C as schemaIndexToCreateIndexOptions, S as schemaCollectionToCreateCollectionOptions, _ as deserializeMongoOp, a as DropIndexCall, b as renderCallsToTypeScript, c as MongoMigrationRunner, d as MongoTargetSchemaVerifier, f as MongoTargetUnboundDatabase, g as UnsetFieldCall, h as RenameFieldCall, i as DropCollectionCall, l as MongoTargetContractSerializer, m as RenameCollectionCall, n as CreateCollectionCall, o as FilterEvaluator, p as PlannerProducedMongoMigration, r as CreateIndexCall, s as MongoMigrationPlanner, t as CollModCall, u as MongoTargetDatabase, v as deserializeMongoOps, w as serializeMongoOps, x as renderOps, y as mongoTargetDescriptor } from "./control-8KJTXiJ_.mjs";
5
+ import { C as schemaIndexToCreateIndexOptions, S as schemaCollectionToCreateCollectionOptions, _ as deserializeMongoOp, a as DropIndexCall, b as renderCallsToTypeScript, c as MongoMigrationRunner, d as MongoTargetSchemaVerifier, f as MongoTargetUnboundDatabase, g as UnsetFieldCall, h as RenameFieldCall, i as DropCollectionCall, l as MongoTargetContractSerializer, m as RenameCollectionCall, n as CreateCollectionCall, o as FilterEvaluator, p as PlannerProducedMongoMigration, r as CreateIndexCall, s as MongoMigrationPlanner, t as CollModCall, u as MongoTargetDatabase, v as deserializeMongoOps, w as serializeMongoOps, x as renderOps, y as mongoTargetDescriptor } from "./control-lAuWLUE_.mjs";
6
6
  import { n as MigrationCLI, r as placeholder, t as Migration } from "./migration-C-jfTsGU.mjs";
7
- import { t as prisma6MongoBinding } from "./prisma6-binding-DUUKAo0Q.mjs";
7
+ import { t as prisma6MongoBinding } from "./prisma6-binding-DKZXqEL5.mjs";
8
8
  export { CollModCall, CreateCollectionCall, CreateIndexCall, DropCollectionCall, DropIndexCall, FilterEvaluator, MONGO_BINARY_CODEC_ID, MONGO_BOOLEAN_CODEC_ID, MONGO_BSON_CODEC_ID, MONGO_DATE_CODEC_ID, MONGO_DECIMAL128_CODEC_ID, MONGO_DOUBLE_CODEC_ID, MONGO_INT32_CODEC_ID, MONGO_INT64_CODEC_ID, MONGO_INT64_NUMBER_CODEC_ID, MONGO_JSON_CODEC_ID, MONGO_OBJECTID_CODEC_ID, MONGO_STRING_CODEC_ID, MONGO_VECTOR_CODEC_ID, Migration, MigrationCLI, MongoMigrationPlanner, MongoMigrationRunner, MongoTargetContractSerializer, MongoTargetDatabase, MongoTargetSchemaVerifier, MongoTargetUnboundDatabase, PlannerProducedMongoMigration, RenameCollectionCall, RenameFieldCall, UnsetFieldCall, buildStandardCodecRegistry, collMod, createCollection, createIndex, dataTransform, deserializeMongoOp, deserializeMongoOps, dropCollection, dropIndex, mongoBinary, mongoBool, mongoBson, mongoCodecDescriptors, mongoDataTypes, mongoDate, mongoDecimal128, mongoDescriptorById, mongoDouble, mongoInt32, mongoInt64, mongoJson, mongoObjectId, mongoStandardCodecs, mongoString, mongoTargetDescriptor, mongoVector, mongoVectorParams, placeholder, prisma6MongoBinding, renameCollection, renameField, renderCallsToTypeScript, renderOps, schemaCollectionToCreateCollectionOptions, schemaIndexToCreateIndexOptions, serializeMongoOps, setValidation, unsetField, validatedCollection };
@@ -1,3 +1,3 @@
1
- import { a as DropCollectionCall, c as RenameCollectionCall, d as schemaCollectionToCreateCollectionOptions, f as schemaIndexToCreateIndexOptions, i as CreateIndexCall, l as RenameFieldCall, n as CollModMeta, o as DropIndexCall, r as CreateCollectionCall, s as OpFactoryCall$1, t as CollModCall, u as UnsetFieldCall } from "./op-factory-call-BoYr7vvM-CNpt7COE.mjs";
2
- import { _ as renderOps, a as MongoTargetContract, c as MongoTargetSchemaVerifier, d as PlannerProducedMongoMigration, f as RenderMigrationMeta, g as renderCallsToTypeScript, h as mongoTargetDescriptor, i as MongoMigrationRunnerExecuteOptions, l as MongoTargetUnboundDatabase, m as deserializeMongoOps, n as MongoMigrationPlanner, o as MongoTargetContractSerializer, p as deserializeMongoOp, r as MongoMigrationRunner, s as MongoTargetDatabase, t as FilterEvaluator, u as PlanCallsResult, v as serializeMongoOps } from "./control-DPT2hXVf.mjs";
1
+ import { a as DropCollectionCall, c as RenameCollectionCall, d as schemaCollectionToCreateCollectionOptions, f as schemaIndexToCreateIndexOptions, i as CreateIndexCall, l as RenameFieldCall, n as CollModMeta, o as DropIndexCall, r as CreateCollectionCall, s as OpFactoryCall$1, t as CollModCall, u as UnsetFieldCall } from "./op-factory-call-BoYr7vvM-PXfT4zvm.mjs";
2
+ import { _ as renderOps, a as MongoTargetContract, c as MongoTargetSchemaVerifier, d as PlannerProducedMongoMigration, f as RenderMigrationMeta, g as renderCallsToTypeScript, h as mongoTargetDescriptor, i as MongoMigrationRunnerExecuteOptions, l as MongoTargetUnboundDatabase, m as deserializeMongoOps, n as MongoMigrationPlanner, o as MongoTargetContractSerializer, p as deserializeMongoOp, r as MongoMigrationRunner, s as MongoTargetDatabase, t as FilterEvaluator, u as PlanCallsResult, v as serializeMongoOps } from "./control-DpeYOTlN.mjs";
3
3
  export { CollModCall, type CollModMeta, CreateCollectionCall, CreateIndexCall, DropCollectionCall, DropIndexCall, FilterEvaluator, MongoMigrationPlanner, MongoMigrationRunner, type MongoMigrationRunnerExecuteOptions, type MongoTargetContract, MongoTargetContractSerializer, MongoTargetDatabase, MongoTargetSchemaVerifier, MongoTargetUnboundDatabase, type OpFactoryCall$1 as OpFactoryCall, type PlanCallsResult, PlannerProducedMongoMigration, RenameCollectionCall, RenameFieldCall, type RenderMigrationMeta, UnsetFieldCall, deserializeMongoOp, deserializeMongoOps, mongoTargetDescriptor, renderCallsToTypeScript, renderOps, schemaCollectionToCreateCollectionOptions, schemaIndexToCreateIndexOptions, serializeMongoOps };
@@ -1,2 +1,2 @@
1
- import { C as schemaIndexToCreateIndexOptions, S as schemaCollectionToCreateCollectionOptions, _ as deserializeMongoOp, a as DropIndexCall, b as renderCallsToTypeScript, c as MongoMigrationRunner, d as MongoTargetSchemaVerifier, f as MongoTargetUnboundDatabase, g as UnsetFieldCall, h as RenameFieldCall, i as DropCollectionCall, l as MongoTargetContractSerializer, m as RenameCollectionCall, n as CreateCollectionCall, o as FilterEvaluator, p as PlannerProducedMongoMigration, r as CreateIndexCall, s as MongoMigrationPlanner, t as CollModCall, u as MongoTargetDatabase, v as deserializeMongoOps, w as serializeMongoOps, x as renderOps, y as mongoTargetDescriptor } from "./control-8KJTXiJ_.mjs";
1
+ import { C as schemaIndexToCreateIndexOptions, S as schemaCollectionToCreateCollectionOptions, _ as deserializeMongoOp, a as DropIndexCall, b as renderCallsToTypeScript, c as MongoMigrationRunner, d as MongoTargetSchemaVerifier, f as MongoTargetUnboundDatabase, g as UnsetFieldCall, h as RenameFieldCall, i as DropCollectionCall, l as MongoTargetContractSerializer, m as RenameCollectionCall, n as CreateCollectionCall, o as FilterEvaluator, p as PlannerProducedMongoMigration, r as CreateIndexCall, s as MongoMigrationPlanner, t as CollModCall, u as MongoTargetDatabase, v as deserializeMongoOps, w as serializeMongoOps, x as renderOps, y as mongoTargetDescriptor } from "./control-lAuWLUE_.mjs";
2
2
  export { CollModCall, CreateCollectionCall, CreateIndexCall, DropCollectionCall, DropIndexCall, FilterEvaluator, MongoMigrationPlanner, MongoMigrationRunner, MongoTargetContractSerializer, MongoTargetDatabase, MongoTargetSchemaVerifier, MongoTargetUnboundDatabase, PlannerProducedMongoMigration, RenameCollectionCall, RenameFieldCall, UnsetFieldCall, deserializeMongoOp, deserializeMongoOps, mongoTargetDescriptor, renderCallsToTypeScript, renderOps, schemaCollectionToCreateCollectionOptions, schemaIndexToCreateIndexOptions, serializeMongoOps };
@@ -1,2 +1,2 @@
1
- import { a as createIndex, c as dropIndex, d as renameField, f as setValidation, i as createCollection, l as placeholder, m as validatedCollection, n as MigrationCLI, o as dataTransform, p as unsetField, r as collMod, s as dropCollection, t as Migration, u as renameCollection } from "./migration-D_hZnT_B.mjs";
1
+ import { a as createIndex, c as dropIndex, d as renameField, f as setValidation, i as createCollection, l as placeholder, m as validatedCollection, n as MigrationCLI, o as dataTransform, p as unsetField, r as collMod, s as dropCollection, t as Migration, u as renameCollection } from "./migration-DKoUk2CF.mjs";
2
2
  export { Migration, MigrationCLI, collMod, createCollection, createIndex, dataTransform, dropCollection, dropIndex, placeholder, renameCollection, renameField, setValidation, unsetField, validatedCollection };
@@ -1,3 +1,3 @@
1
1
  import { a as ParameterizedOutputTypesForTypeParams, i as CodecTypes, o as Vector } from "./codec-types-DHjpzMTv.mjs";
2
- import { t as mongoTargetPack } from "./pack-DEK1QhCx.mjs";
2
+ import { t as mongoTargetPack } from "./pack-BuZ5LBMg.mjs";
3
3
  export { type CodecTypes, type ParameterizedOutputTypesForTypeParams, type Vector, mongoTargetPack as default };
@@ -1,4 +1,4 @@
1
- import { t as mongoTargetDescriptorMeta } from "./descriptor-meta-CYXIYjq7-DpMc5Tnm.mjs";
1
+ import { t as mongoTargetDescriptorMeta } from "./descriptor-meta-BQBreSNF-CZ9uOPwO.mjs";
2
2
  //#region ../../../3-mongo-target/1-mongo-target/dist/pack.mjs
3
3
  const mongoTargetPack = mongoTargetDescriptorMeta;
4
4
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"target__pack.mjs","names":[],"sources":["../../../../3-mongo-target/1-mongo-target/dist/pack.mjs"],"sourcesContent":["import { t as mongoTargetDescriptorMeta } from \"./descriptor-meta-CYXIYjq7.mjs\";\n//#region src/exports/pack.ts\nconst mongoTargetPack = mongoTargetDescriptorMeta;\n//#endregion\nexport { mongoTargetPack as default };\n\n//# sourceMappingURL=pack.mjs.map"],"mappings":";;AAEA,MAAM,kBAAkB"}
1
+ {"version":3,"file":"target__pack.mjs","names":[],"sources":["../../../../3-mongo-target/1-mongo-target/dist/pack.mjs"],"sourcesContent":["import { t as mongoTargetDescriptorMeta } from \"./descriptor-meta-BQBreSNF.mjs\";\n//#region src/exports/pack.ts\nconst mongoTargetPack = mongoTargetDescriptorMeta;\n//#endregion\nexport { mongoTargetPack as default };\n\n//# sourceMappingURL=pack.mjs.map"],"mappings":";;AAEA,MAAM,kBAAkB"}
@@ -1,2 +1,2 @@
1
- import { t as prisma6MongoBinding } from "./prisma6-binding-DppqC9Jo.mjs";
1
+ import { t as prisma6MongoBinding } from "./prisma6-binding-DRM8QnmA.mjs";
2
2
  export { prisma6MongoBinding };
@@ -1,2 +1,2 @@
1
- import { t as prisma6MongoBinding } from "./prisma6-binding-DUUKAo0Q.mjs";
1
+ import { t as prisma6MongoBinding } from "./prisma6-binding-DKZXqEL5.mjs";
2
2
  export { prisma6MongoBinding };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/orm-target-mongo",
3
- "version": "8.0.0-rc.18-dev.29",
3
+ "version": "8.0.0-rc.18-dev.30",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -9,18 +9,18 @@
9
9
  "dist"
10
10
  ],
11
11
  "dependencies": {
12
- "@prisma/orm-family-mongo": "8.0.0-rc.18-dev.29",
13
- "@prisma/orm-framework": "8.0.0-rc.18-dev.29",
14
- "@prisma/orm-toolchain": "8.0.0-rc.18-dev.29",
12
+ "@prisma/orm-family-mongo": "8.0.0-rc.18-dev.30",
13
+ "@prisma/orm-framework": "8.0.0-rc.18-dev.30",
14
+ "@prisma/orm-toolchain": "8.0.0-rc.18-dev.30",
15
15
  "arktype": "^2.2.2",
16
16
  "bson": "^7.2.0"
17
17
  },
18
18
  "devDependencies": {
19
- "@internal/adapter-mongo": "8.0.0-rc.18-dev.29",
20
- "@internal/driver-mongo": "8.0.0-rc.18-dev.29",
21
- "@internal/target-mongo": "8.0.0-rc.18-dev.29",
22
- "@repo/tsconfig": "8.0.0-rc.18-dev.29",
23
- "@repo/tsdown": "8.0.0-rc.18-dev.29",
19
+ "@internal/adapter-mongo": "8.0.0-rc.18-dev.30",
20
+ "@internal/driver-mongo": "8.0.0-rc.18-dev.30",
21
+ "@internal/target-mongo": "8.0.0-rc.18-dev.30",
22
+ "@repo/tsconfig": "8.0.0-rc.18-dev.30",
23
+ "@repo/tsdown": "8.0.0-rc.18-dev.30",
24
24
  "tsdown": "0.22.14",
25
25
  "typescript": "5.9.3"
26
26
  },