@prisma/orm-family-mongo 8.0.0-rc.23-dev.13 → 8.0.0-rc.23-dev.14
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.
- package/dist/{contract-builder-BsGubaBl.d.mts → contract-builder-CnON_Yzr.d.mts} +2 -2
- package/dist/{contract-builder-BsGubaBl.d.mts.map → contract-builder-CnON_Yzr.d.mts.map} +1 -1
- package/dist/{contract-builder-ClNv0uzB.mjs → contract-builder-DMWgsRpK.mjs} +3 -3
- package/dist/{contract-builder-ClNv0uzB.mjs.map → contract-builder-DMWgsRpK.mjs.map} +1 -1
- package/dist/contract-prisma6__provider.mjs +3 -3
- package/dist/contract-psl.mjs +1 -1
- package/dist/contract-psl__provider.mjs +1 -1
- package/dist/contract-ts.d.mts +1 -1
- package/dist/contract-ts.mjs +1 -1
- package/dist/contract-ts__contract-builder.d.mts +1 -1
- package/dist/contract-ts__contract-builder.mjs +1 -1
- package/dist/contract.d.mts +2 -2
- package/dist/contract.mjs +2 -2
- package/dist/contract__data-type.d.mts +14 -1
- package/dist/contract__data-type.d.mts.map +1 -1
- package/dist/contract__data-type.mjs +2 -2
- package/dist/{control-BsOZ6I-N.d.mts → control-BNH5e5av.d.mts} +31 -4
- package/dist/{control-BsOZ6I-N.d.mts.map → control-BNH5e5av.d.mts.map} +1 -1
- package/dist/{control-c3gViWlG.mjs → control-C4YSpUJX.mjs} +19 -10
- package/dist/control-C4YSpUJX.mjs.map +1 -0
- package/dist/{control-CKsiMx4D.d.mts → control-Cxe4huYd.d.mts} +10 -9
- package/dist/{control-CKsiMx4D.d.mts.map → control-Cxe4huYd.d.mts.map} +1 -1
- package/dist/{control-ywVRqK1i.mjs → control-DJf8Ct2M.mjs} +6 -2
- package/dist/{control-ywVRqK1i.mjs.map → control-DJf8Ct2M.mjs.map} +1 -1
- package/dist/{control-adapter-BheElqfe-38zaUL-r.d.mts → control-adapter-BheElqfe-Z1rEl51r.d.mts} +4 -4
- package/dist/{control-adapter-BheElqfe-38zaUL-r.d.mts.map → control-adapter-BheElqfe-Z1rEl51r.d.mts.map} +1 -1
- package/dist/control-adapter-Cj8JmiQV.d.mts +1 -0
- package/dist/{dist-By5gbTEW.mjs → dist-DTFnQk-s.mjs} +171 -4
- package/dist/dist-DTFnQk-s.mjs.map +1 -0
- package/dist/{dist-DJzrbVGM.mjs → dist-Dyj5B2n7.mjs} +2 -2
- package/dist/{dist-DJzrbVGM.mjs.map → dist-Dyj5B2n7.mjs.map} +1 -1
- package/dist/{execution-CuluvtwX.d.mts → execution-CD6EeX3b.d.mts} +2 -2
- package/dist/{execution-CuluvtwX.d.mts.map → execution-CD6EeX3b.d.mts.map} +1 -1
- package/dist/family.d.mts +9 -9
- package/dist/family.mjs +7 -7
- package/dist/family__control-adapter.d.mts +2 -2
- package/dist/family__control.d.mts +1 -1
- package/dist/family__control.mjs +2 -2
- package/dist/family__ir.d.mts +2 -2
- package/dist/family__ir.mjs +3 -3
- package/dist/family__migration.d.mts +1 -1
- package/dist/family__migration.mjs +1 -1
- package/dist/family__pack.mjs +1 -1
- package/dist/family__runtime.d.mts +2 -2
- package/dist/family__runtime.mjs +1 -1
- package/dist/family__schema-verify.d.mts +1 -1
- package/dist/family__schema-verify.mjs +1 -1
- package/dist/{field-accessor-DJzCZm0f-zDz2llV-.d.mts → field-accessor-DJzCZm0f-ZGjGQy0_.d.mts} +3 -3
- package/dist/{field-accessor-DJzCZm0f-zDz2llV-.d.mts.map → field-accessor-DJzCZm0f-ZGjGQy0_.d.mts.map} +1 -1
- package/dist/{index-fnk4bdbx.d.mts → index-B2yjvk4C.d.mts} +3 -3
- package/dist/{index-fnk4bdbx.d.mts.map → index-B2yjvk4C.d.mts.map} +1 -1
- package/dist/{index-hugPlQ5w.d.mts → index-BHEoA-q8.d.mts} +77 -2
- package/dist/{index-hugPlQ5w.d.mts.map → index-BHEoA-q8.d.mts.map} +1 -1
- package/dist/{index-CZ-tX2cL.d.mts → index-Bw1gxp0Q.d.mts} +2 -2
- package/dist/{index-CZ-tX2cL.d.mts.map → index-Bw1gxp0Q.d.mts.map} +1 -1
- package/dist/{index-CgKJfbIP.d.mts → index-By9G6gWh.d.mts} +4 -4
- package/dist/{index-CgKJfbIP.d.mts.map → index-By9G6gWh.d.mts.map} +1 -1
- package/dist/{interpreter-v8GWMscU-DmijqboH.mjs → interpreter-v8GWMscU-BFP58so-.mjs} +3 -3
- package/dist/{interpreter-v8GWMscU-DmijqboH.mjs.map → interpreter-v8GWMscU-BFP58so-.mjs.map} +1 -1
- package/dist/{ir-B_tAgqIO.d.mts → ir-CeQg097e.d.mts} +3 -3
- package/dist/{ir-B_tAgqIO.d.mts.map → ir-CeQg097e.d.mts.map} +1 -1
- package/dist/{ir-Bm8xm1eu.mjs → ir-DvWO1xE7.mjs} +2 -2
- package/dist/{ir-Bm8xm1eu.mjs.map → ir-DvWO1xE7.mjs.map} +1 -1
- package/dist/lowering.d.mts +1 -1
- package/dist/{migration-LHRzvIrb.mjs → migration-8enuY81P.mjs} +2 -2
- package/dist/{migration-LHRzvIrb.mjs.map → migration-8enuY81P.mjs.map} +1 -1
- package/dist/{migration-C8VlQx5N.d.mts → migration-B7PcbeNg.d.mts} +4 -4
- package/dist/{migration-C8VlQx5N.d.mts.map → migration-B7PcbeNg.d.mts.map} +1 -1
- package/dist/{mongo-contract-serializer-BBknnHWy-DAzm09wB.mjs → mongo-contract-serializer-BBknnHWy-UNgq5T2h.mjs} +2 -2
- package/dist/{mongo-contract-serializer-BBknnHWy-DAzm09wB.mjs.map → mongo-contract-serializer-BBknnHWy-UNgq5T2h.mjs.map} +1 -1
- package/dist/{mongo-contract-view-AnejqfrQ-DmXEDnxi.d.mts → mongo-contract-view-AnejqfrQ-DLviCLRM.d.mts} +2 -2
- package/dist/{mongo-contract-view-AnejqfrQ-DmXEDnxi.d.mts.map → mongo-contract-view-AnejqfrQ-DLviCLRM.d.mts.map} +1 -1
- package/dist/{mongo-contract-view-CF5trX6R-BIF8ciuY.mjs → mongo-contract-view-CF5trX6R-_k8QTG5C.mjs} +3 -3
- package/dist/{mongo-contract-view-CF5trX6R-BIF8ciuY.mjs.map → mongo-contract-view-CF5trX6R-_k8QTG5C.mjs.map} +1 -1
- package/dist/{mongo-data-type-Bv8Bd0zu-cnTiyyP0.mjs → mongo-data-type-DPJy_m2a-CROT8T5j.mjs} +14 -5
- package/dist/mongo-data-type-DPJy_m2a-CROT8T5j.mjs.map +1 -0
- package/dist/orm.d.mts +2 -2
- package/dist/orm.mjs +2 -2
- package/dist/query-ast.d.mts +3 -3
- package/dist/query-ast.mjs +2 -2
- package/dist/query-ast__control.d.mts +2 -2
- package/dist/query-ast__control.mjs +2 -2
- package/dist/query-ast__execution.d.mts +1 -1
- package/dist/query-builder.d.mts +3 -3
- package/dist/query-builder.mjs +1 -1
- package/dist/query-builder__contract-free.d.mts +3 -3
- package/dist/query-builder__contract-free.mjs +1 -1
- package/dist/{runtime-Cx_Sw9eY.d.mts → runtime-C2G5v1Bk.d.mts} +2 -2
- package/dist/runtime-C2G5v1Bk.d.mts.map +1 -0
- package/dist/runtime.d.mts +4 -4
- package/dist/schema-ir.d.mts +1 -1
- package/dist/{schema-verify-BMTEmTLS.d.mts → schema-verify-DJyHpYGy.d.mts} +3 -3
- package/dist/{schema-verify-BMTEmTLS.d.mts.map → schema-verify-DJyHpYGy.d.mts.map} +1 -1
- package/dist/{verify-mongo-schema-D8rznxzZ-CjYf39zu.mjs → verify-mongo-schema-D8rznxzZ-Dg51Lhnp.mjs} +2 -2
- package/dist/{verify-mongo-schema-D8rznxzZ-CjYf39zu.mjs.map → verify-mongo-schema-D8rznxzZ-Dg51Lhnp.mjs.map} +1 -1
- package/dist/wire.d.mts +2 -2
- package/package.json +20 -20
- package/dist/control-adapter-CPwhJ0SM.d.mts +0 -1
- package/dist/control-c3gViWlG.mjs.map +0 -1
- package/dist/dist-By5gbTEW.mjs.map +0 -1
- package/dist/mongo-data-type-Bv8Bd0zu-cnTiyyP0.mjs.map +0 -1
- package/dist/runtime-Cx_Sw9eY.d.mts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as MongoContract } from "./mongo-value-set-ChzpEiPK-BVtp7f-a.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import "./mongo-contract-view-AnejqfrQ-
|
|
2
|
+
import { y as MongoStorage } from "./index-BHEoA-q8.mjs";
|
|
3
|
+
import "./mongo-contract-view-AnejqfrQ-DLviCLRM.mjs";
|
|
4
4
|
import { AnyEntityKindDescriptor, Namespace } from "@prisma/orm-framework/components/ir";
|
|
5
5
|
import { ControlPolicy } from "@prisma/orm-framework/contract/types";
|
|
6
6
|
import { Type } from "arktype";
|
|
@@ -122,4 +122,4 @@ declare abstract class MongoSchemaVerifierBase<TContract extends {
|
|
|
122
122
|
}
|
|
123
123
|
//#endregion
|
|
124
124
|
export { MongoContractSerializerBase as n, MongoSchemaVerifierBase as r, MongoContractSerializer as t };
|
|
125
|
-
//# sourceMappingURL=ir-
|
|
125
|
+
//# sourceMappingURL=ir-CeQg097e.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ir-
|
|
1
|
+
{"version":3,"file":"ir-CeQg097e.d.mts","names":[],"sources":["../../../../2-mongo-family/9-family/dist/ir.d.mts"],"mappings":";;;;;;;;;;uBAQuB,4BAA4B,sBAAsB,mBAAmB;mBACzE;mBACA;EACjB,YAAY,qBAAqB,oBAAoB,gBAAgB,2BAA2B;EAChG,oBAAoB,UAAU,YAAY,WAAW,gBAAgB;EACrE,kBAAkB,UAAU,YAAY;;;;;;;EAOxC,0DAA0D;;;;;;;;;;;;;;;;;YAiBhD,4BAA4B,gBAAgB;;;;;;YAM5C,qBAAqB,UAAU,gBAAgB;;;;;;;;;qBAStC,wBAAwB,WAAW,gBAAgB;;;;;;;;;;;;;;cAc1D,gCAAgC,4BAA4B;YAC9D,wBAAwB,WAAW,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;uBAyBxC,wBAAwB;WACpC,SAAS;WACT,uBAAuB;GAC/B,oBAAoB,eAAe,WAAW;EAC/C,aAAa,SAAS,oBAAoB,WAAW,WAAW;YACtD,+BAA+B,UAAU,WAAW,yBAAyB;YAC7E,wBAAwB,SAAS,oBAAoB,WAAW,oBAAoB;;;;;;;;;qBAS3E,gBAAgB;aACxB,UAAU;aACV,QAAQ;aACR;aACA,WAAW;eACT;;;;;;qBAMM,uBAAuB,SAAS,oBAAoB,WAAW,oBAAoB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as collectionControlPolicyOf, p as collectionControlPoliciesOf } from "./dist-
|
|
1
|
+
import { m as collectionControlPolicyOf, p as collectionControlPoliciesOf } from "./dist-DTFnQk-s.mjs";
|
|
2
2
|
//#region ../../../2-mongo-family/9-family/dist/ir.mjs
|
|
3
3
|
/**
|
|
4
4
|
* Mongo family `SchemaVerifier` abstract base. Commits the Mongo family
|
|
@@ -54,4 +54,4 @@ var MongoSchemaVerifierBase = class {
|
|
|
54
54
|
//#endregion
|
|
55
55
|
export { MongoSchemaVerifierBase as t };
|
|
56
56
|
|
|
57
|
-
//# sourceMappingURL=ir-
|
|
57
|
+
//# sourceMappingURL=ir-DvWO1xE7.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ir-
|
|
1
|
+
{"version":3,"file":"ir-DvWO1xE7.mjs","names":[],"sources":["../../../../2-mongo-family/9-family/dist/ir.mjs"],"sourcesContent":["import { n as MongoContractSerializerBase, t as MongoContractSerializer } from \"./mongo-contract-serializer-BBknnHWy.mjs\";\nimport { t as MongoContractView } from \"./mongo-contract-view-CF5trX6R.mjs\";\nimport { collectionControlPoliciesOf, collectionControlPolicyOf } from \"@internal/mongo-contract\";\n//#region src/core/ir/mongo-schema-verifier-base.ts\n/**\n* Mongo family `SchemaVerifier` abstract base. Commits the Mongo family\n* to namespace-keyed verification: the family-shared walk iterates\n* `storage.namespaces` in sorted order and dispatches per-namespace\n* through the protected `verifyNamespace` hook, then aggregates\n* target-extension issues from `verifyTargetExtensions`.\n*\n* Per-element diff work (collection / index / validator comparisons)\n* lives on the target inside `verifyNamespace`. The family's structural\n* commitment is \"verification is namespaced\"; the target's commitment is\n* \"verification of a given namespace's collections is the existing\n* diff/canonicalize pipeline\". The split keeps target-mongo's\n* introspection-side helpers (`contractToMongoSchemaIR`,\n* `canonicalizeSchemasForVerification`, `diffMongoSchemas`) in the target\n* layer where they belong, while the family base owns the iteration\n* scaffolding that makes namespaces a first-class verifier concept.\n*\n* Target-specific issue kinds (Atlas-only, future RLS-equivalents)\n* surface through `verifyTargetExtensions`; that hook returns the empty\n* list when no extensions exist over the Mongo family alphabet.\n*/\nvar MongoSchemaVerifierBase = class {\n\tverifySchema(options) {\n\t\tconst issues = [];\n\t\tissues.push(...this.verifyCommonMongoSchema(options));\n\t\tissues.push(...this.verifyTargetExtensions(options));\n\t\treturn {\n\t\t\tok: issues.length === 0,\n\t\t\tissues\n\t\t};\n\t}\n\tcollectionControlPolicyForName(contract, collectionName) {\n\t\treturn collectionControlPolicyOf(collectionName, collectionControlPoliciesOf(contract));\n\t}\n\tverifyCommonMongoSchema(options) {\n\t\tconst issues = [];\n\t\tconst { namespaces } = options.contract.storage;\n\t\tconst namespaceIds = Object.keys(namespaces).sort();\n\t\tfor (const namespaceId of namespaceIds) {\n\t\t\tconst namespace = namespaces[namespaceId];\n\t\t\tif (!namespace) continue;\n\t\t\tissues.push(...this.verifyNamespace({\n\t\t\t\tcontract: options.contract,\n\t\t\t\tschema: options.schema,\n\t\t\t\tnamespaceId,\n\t\t\t\tnamespace\n\t\t\t}));\n\t\t}\n\t\treturn issues;\n\t}\n};\n//#endregion\nexport { MongoContractSerializer, MongoContractSerializerBase, MongoContractView, MongoSchemaVerifierBase };\n\n//# sourceMappingURL=ir.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAyBA,IAAI,0BAA0B,MAAM;CACnC,aAAa,SAAS;EACrB,MAAM,SAAS,CAAC;EAChB,OAAO,KAAK,GAAG,KAAK,wBAAwB,OAAO,CAAC;EACpD,OAAO,KAAK,GAAG,KAAK,uBAAuB,OAAO,CAAC;EACnD,OAAO;GACN,IAAI,OAAO,WAAW;GACtB;EACD;CACD;CACA,+BAA+B,UAAU,gBAAgB;EACxD,OAAO,0BAA0B,gBAAgB,4BAA4B,QAAQ,CAAC;CACvF;CACA,wBAAwB,SAAS;EAChC,MAAM,SAAS,CAAC;EAChB,MAAM,EAAE,eAAe,QAAQ,SAAS;EACxC,MAAM,eAAe,OAAO,KAAK,UAAU,CAAC,CAAC,KAAK;EAClD,KAAK,MAAM,eAAe,cAAc;GACvC,MAAM,YAAY,WAAW;GAC7B,IAAI,CAAC,WAAW;GAChB,OAAO,KAAK,GAAG,KAAK,gBAAgB;IACnC,UAAU,QAAQ;IAClB,QAAQ,QAAQ;IAChB;IACA;GACD,CAAC,CAAC;EACH;EACA,OAAO;CACR;AACD"}
|
package/dist/lowering.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MongoLoweredDraft, i as MongoDriver, n as MongoControlDriverInstance, o as MongoQueryable, r as MongoDdlPlan, t as MongoAdapter } from "./index-
|
|
1
|
+
import { a as MongoLoweredDraft, i as MongoDriver, n as MongoControlDriverInstance, o as MongoQueryable, r as MongoDdlPlan, t as MongoAdapter } from "./index-By9G6gWh.mjs";
|
|
2
2
|
export type { MongoAdapter, MongoControlDriverInstance, MongoDdlPlan, MongoDriver, MongoLoweredDraft, MongoQueryable };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as MongoContractView$1 } from "./mongo-contract-view-CF5trX6R-
|
|
1
|
+
import { t as MongoContractView$1 } from "./mongo-contract-view-CF5trX6R-_k8QTG5C.mjs";
|
|
2
2
|
import { Migration, MigrationContractViews } from "@prisma/orm-toolchain/migration-tools/migration";
|
|
3
3
|
//#region ../../../2-mongo-family/9-family/dist/migration.mjs
|
|
4
4
|
/**
|
|
@@ -49,4 +49,4 @@ var MongoMigration = class extends Migration {
|
|
|
49
49
|
//#endregion
|
|
50
50
|
export { MongoMigration as t };
|
|
51
51
|
|
|
52
|
-
//# sourceMappingURL=migration-
|
|
52
|
+
//# sourceMappingURL=migration-8enuY81P.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration-
|
|
1
|
+
{"version":3,"file":"migration-8enuY81P.mjs","names":["MongoContractView","#endView","#startView"],"sources":["../../../../2-mongo-family/9-family/dist/migration.mjs"],"sourcesContent":["import { t as MongoContractView } from \"./mongo-contract-view-CF5trX6R.mjs\";\nimport { Migration, MigrationContractViews } from \"@internal/migration-tools/migration\";\n//#region src/core/mongo-migration.ts\n/**\n* Family-owned base class for Mongo migrations.\n*\n* Provides the fixed `targetId = 'mongo'` so that user-authored migrations\n* and renderer-generated scaffolds (e.g. the output of\n* `renderCallsToTypeScript`) inherit it directly and don't have to re-declare\n* the abstract `targetId` member from `Migration`.\n*\n* The operation type parameter is `AnyMongoMigrationOperation` — the union\n* of DDL-shaped `MongoMigrationPlanOperation` and `MongoDmlOperation` —\n* so subclasses can return a mix of schema operations (e.g. `createIndex`,\n* `setValidation`) and DML operations (e.g. `dataTransform`, `renameField`).\n* Mirrors the generic parameter used by `PlannerProducedMongoMigration`.\n*\n* Binds the framework base's `Start` / `End` contract generics so a subclass\n* that assigns its snapshot-store `contract.json` imports to\n* `startContractJson` / `endContractJson` gets fully-typed view accessors:\n* `this.endContract` is a `MongoContractView<End>`\n* (and `this.startContract` a `MongoContractView<Start> | null`), built lazily\n* from those JSON fields via the shared `MigrationContractViews` helper. The\n* framework base derives `describe()` from the same JSON. View getters live on\n* the family base (not the framework base) because `MongoContractView`'s shape\n* is Mongo-specific.\n*/\nvar MongoMigration = class extends Migration {\n\ttargetId = \"mongo\";\n\t#endView = new MigrationContractViews(this, \"MongoMigration\", (json) => MongoContractView.fromJson(json));\n\t#startView = new MigrationContractViews(this, \"MongoMigration\", (json) => MongoContractView.fromJson(json));\n\t/**\n\t* The typed, namespace-unwrapped view over this migration's end-state\n\t* contract — `this.endContract.collection.<name>.validator`, etc. Throws if\n\t* no `endContractJson` was provided (a `describe()`-overriding migration\n\t* with no contract has no view to expose).\n\t*/\n\tget endContract() {\n\t\treturn this.#endView.endContract;\n\t}\n\t/**\n\t* The typed view over this migration's start-state contract, or `null` for\n\t* a baseline migration (no `startContractJson`).\n\t*/\n\tget startContract() {\n\t\treturn this.#startView.startContract;\n\t}\n};\n//#endregion\nexport { MongoMigration as Migration };\n\n//# sourceMappingURL=migration.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,IAAI,iBAAiB,cAAc,UAAU;CAC5C,WAAW;CACX,WAAW,IAAI,uBAAuB,MAAM,mBAAmB,SAASA,oBAAkB,SAAS,IAAI,CAAC;CACxG,aAAa,IAAI,uBAAuB,MAAM,mBAAmB,SAASA,oBAAkB,SAAS,IAAI,CAAC;;;;;;;CAO1G,IAAI,cAAc;EACjB,OAAO,KAAKC,SAAS;CACtB;;;;;CAKA,IAAI,gBAAgB;EACnB,OAAO,KAAKC,WAAW;CACxB;AACD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { T as MongoContract } from "./mongo-value-set-ChzpEiPK-BVtp7f-a.mjs";
|
|
2
|
-
import "./index-
|
|
3
|
-
import { r as AnyMongoMigrationOperation } from "./control-
|
|
4
|
-
import { t as MongoContractView$1 } from "./mongo-contract-view-AnejqfrQ-
|
|
2
|
+
import "./index-BHEoA-q8.mjs";
|
|
3
|
+
import { r as AnyMongoMigrationOperation } from "./control-BNH5e5av.mjs";
|
|
4
|
+
import { t as MongoContractView$1 } from "./mongo-contract-view-AnejqfrQ-DLviCLRM.mjs";
|
|
5
5
|
import { Migration } from "@prisma/orm-toolchain/migration-tools/migration";
|
|
6
6
|
//#region ../../../2-mongo-family/9-family/dist/migration.d.mts
|
|
7
7
|
//#region src/core/mongo-migration.d.ts
|
|
@@ -47,4 +47,4 @@ declare abstract class MongoMigration<Start extends MongoContract = MongoContrac
|
|
|
47
47
|
}
|
|
48
48
|
//#endregion
|
|
49
49
|
export { MongoMigration as t };
|
|
50
|
-
//# sourceMappingURL=migration-
|
|
50
|
+
//# sourceMappingURL=migration-B7PcbeNg.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration-
|
|
1
|
+
{"version":3,"file":"migration-B7PcbeNg.d.mts","names":[],"sources":["../../../../2-mongo-family/9-family/dist/migration.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA6BuB,eAAe,cAAc,gBAAgB,eAAe,YAAY,gBAAgB,uBAAuB,UAAU,4CAA4C,OAAO;;WAExL;;;;;;;MAOL,eAAe,oBAAoB;;;;;MAKnC,iBAAiB,oBAAoB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as mongoContractCanonicalizationHooks } from "./canonicalization-hooks-4XyGmYqQ-Fk14vQW2.mjs";
|
|
2
2
|
import { a as MongoContractSchema, h as createMongoContractSchema, m as composeMongoEntityKinds } from "./entity-kinds-D5mTQzuZ-BY1vGgFk.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { H as validateMongoStorage, z as resolveMongoToOneRelationFields } from "./dist-DTFnQk-s.mjs";
|
|
4
4
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
5
5
|
import { structuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
6
6
|
import { hydrateNamespaceEntities } from "@prisma/orm-framework/components/ir";
|
|
@@ -137,4 +137,4 @@ var MongoContractSerializer = class extends MongoContractSerializerBase {
|
|
|
137
137
|
//#endregion
|
|
138
138
|
export { MongoContractSerializerBase as n, MongoContractSerializer as t };
|
|
139
139
|
|
|
140
|
-
//# sourceMappingURL=mongo-contract-serializer-BBknnHWy-
|
|
140
|
+
//# sourceMappingURL=mongo-contract-serializer-BBknnHWy-UNgq5T2h.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mongo-contract-serializer-BBknnHWy-
|
|
1
|
+
{"version":3,"file":"mongo-contract-serializer-BBknnHWy-UNgq5T2h.mjs","names":[],"sources":["../../../../2-mongo-family/9-family/dist/mongo-contract-serializer-BBknnHWy.mjs"],"sourcesContent":["import { structuredError } from \"@internal/utils/structured-error\";\nimport { MongoContractSchema, createMongoContractSchema, resolveMongoToOneRelationFields, validateMongoStorage } from \"@internal/mongo-contract\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { withDerivedToOneRelationNullability } from \"@internal/contract-authoring\";\nimport { hydrateNamespaceEntities } from \"@internal/framework-components/ir\";\nimport { mongoContractCanonicalizationHooks } from \"@internal/mongo-contract/canonicalization-hooks\";\nimport { removedDomainKeyProblems, validateContractDomain } from \"@internal/contract/validate-domain\";\nimport { composeMongoEntityKinds } from \"@internal/mongo-contract/entity-kinds\";\nimport { type } from \"arktype\";\n//#region src/core/ir/mongo-contract-serializer-base.ts\n/**\n* Mongo family `ContractSerializer` abstract base. Owns the family-shared\n* deserialization pipeline:\n*\n* 1. Structural validation against the Mongo contract arktype schema\n* (`MongoContractSchema`).\n* 2. Framework-shared domain validation (`validateContractDomain`).\n* 3. Family-shared storage validation (`validateMongoStorage`).\n*\n* The validated value is handed to the target via the\n* `constructTargetContract` hook, which wraps the plain-JSON shape in\n* the family-layer `MongoStorage` class instance (carrying the\n* target-supplied `namespaces` map). Targets that need to add\n* structural checks beyond the family default can override\n* `parseMongoContractStructure`.\n*\n* Default `serializeContract` is identity over the contract — Mongo\n* target classes carry JSON-clean fields by construction, so the value\n* can be `JSON.stringify`'d directly. Targets that need on-the-way-out\n* canonicalization override `serializeContract`.\n*/\n/**\n* A `contract.json` written before to-one relations recorded `nullable` (rc.9 and earlier)\n* loads with the flag derived from the model: nullable when any local field is nullable or is\n* not declared.\n*/\nfunction withMongoToOneRelationNullability(contract) {\n\tconst domain = withDerivedToOneRelationNullability(contract.domain, ({ model, relation }) => {\n\t\tconst { ownsForeignKey, fields } = resolveMongoToOneRelationFields(blindCast(model), relation);\n\t\treturn {\n\t\t\townsReference: ownsForeignKey,\n\t\t\tlocalFieldNullability: fields.map((field) => field.nullable)\n\t\t};\n\t});\n\treturn {\n\t\t...contract,\n\t\tdomain\n\t};\n}\nvar MongoContractSerializerBase = class {\n\tcontractSchema;\n\tentryKinds;\n\tconstructor(validatorFragments, packEntityKinds = []) {\n\t\tthis.entryKinds = composeMongoEntityKinds(packEntityKinds);\n\t\tthis.contractSchema = validatorFragments !== void 0 && validatorFragments.size > 0 ? createMongoContractSchema(validatorFragments) : void 0;\n\t}\n\tdeserializeContract(json) {\n\t\tconst validated = this.parseMongoContractStructure(json);\n\t\treturn this.constructTargetContract(validated);\n\t}\n\tserializeContract(contract) {\n\t\treturn contract;\n\t}\n\t/**\n\t* Preserve empty `collections` maps and per-collection payloads. Mongo\n\t* collections legitimately serialize empty (a declared collection with no\n\t* schema is valid); SQL tables never do — that asymmetry lives here rather\n\t* than in the family-agnostic canonicalizer.\n\t*/\n\tshouldPreserveEmpty = mongoContractCanonicalizationHooks.shouldPreserveEmpty;\n\t/**\n\t* Family-shared structural validation: parse against the Mongo\n\t* contract arktype schema, then run framework-shared domain + Mongo\n\t* family storage checks, then hydrate the validated tree into Mongo\n\t* Contract IR class instances. Targets can override to add\n\t* target-specific structural checks; most targets accept the family\n\t* default.\n\t*\n\t* The returned `MongoContract` carries class instances under\n\t* `storage.namespaces[namespaceId].entries.collection[collectionName]` (each value is a\n\t* `MongoCollection`, with nested `MongoIndex` / `MongoValidator` /\n\t* `MongoCollectionOptions` constructed by the `MongoCollection` constructor).\n\t* The rest of the contract envelope (models, capabilities, …)\n\t* remains in plain-JSON form; those IR layers are handled by sibling\n\t* subsystems and don't sit behind this SPI.\n\t*/\n\tparseMongoContractStructure(json) {\n\t\tconst removedKeys = removedDomainKeyProblems(json);\n\t\tif (removedKeys.length > 0) throw structuredError(\"CONTRACT.VALIDATION_FAILED\", `Contract structural validation failed: ${removedKeys.join(\"; \")}`);\n\t\tconst parsed = (this.contractSchema ?? MongoContractSchema)(json);\n\t\tif (parsed instanceof type.errors) throw structuredError(\"CONTRACT.VALIDATION_FAILED\", `Contract structural validation failed: ${parsed.summary}`);\n\t\tconst validatedShape = parsed;\n\t\tconst hydratedContract = this.hydrateMongoContract(withMongoToOneRelationNullability(validatedShape));\n\t\tvalidateContractDomain(hydratedContract);\n\t\tvalidateMongoStorage(hydratedContract);\n\t\treturn hydratedContract;\n\t}\n\t/**\n\t* Walk a structurally-validated Mongo contract and hydrate each namespace's\n\t* entries via the registered entity-kind descriptors. Unknown kinds throw (fail-closed),\n\t* preserving the existing Mongo serializer semantics.\n\t*/\n\thydrateMongoContract(contract) {\n\t\tconst rawNamespaces = contract.storage.namespaces;\n\t\tconst hydratedNamespaces = Object.fromEntries(Object.entries(rawNamespaces).map(([nsId, nsEnvelope]) => {\n\t\t\tconst hydratedEntries = hydrateNamespaceEntities(blindCast(nsEnvelope.entries), this.entryKinds, \"fail\", nsId);\n\t\t\treturn [nsId, {\n\t\t\t\t...nsEnvelope,\n\t\t\t\tid: nsEnvelope.id,\n\t\t\t\tentries: blindCast(hydratedEntries)\n\t\t\t}];\n\t\t}));\n\t\treturn {\n\t\t\t...contract,\n\t\t\tstorage: {\n\t\t\t\t...contract.storage,\n\t\t\t\tnamespaces: hydratedNamespaces\n\t\t\t}\n\t\t};\n\t}\n};\n//#endregion\n//#region src/core/ir/mongo-contract-serializer.ts\n/**\n* Default Mongo family `ContractSerializer` concretion. Inherits the\n* Mongo-shared deserialization pipeline (structural validation +\n* collection-level hydration) and falls through `constructTargetContract`\n* with the validated `MongoContract` shape. Family-level call sites\n* (family-instance methods, family-layer tests that don't reach into\n* a target descriptor) instantiate this directly; targets with their\n* own storage concretion (`target-mongo`'s `MongoTargetContractSerializer`)\n* override `constructTargetContract` to wrap the storage shape.\n*/\nvar MongoContractSerializer = class extends MongoContractSerializerBase {\n\tconstructTargetContract(validated) {\n\t\treturn validated;\n\t}\n};\n//#endregion\nexport { MongoContractSerializerBase as n, MongoContractSerializer as t };\n\n//# sourceMappingURL=mongo-contract-serializer-BBknnHWy.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAS,kCAAkC,UAAU;CACpD,MAAM,SAAS,oCAAoC,SAAS,SAAS,EAAE,OAAO,eAAe;EAC5F,MAAM,EAAE,gBAAgB,WAAW,gCAAgC,UAAU,KAAK,GAAG,QAAQ;EAC7F,OAAO;GACN,eAAe;GACf,uBAAuB,OAAO,KAAK,UAAU,MAAM,QAAQ;EAC5D;CACD,CAAC;CACD,OAAO;EACN,GAAG;EACH;CACD;AACD;AACA,IAAI,8BAA8B,MAAM;CACvC;CACA;CACA,YAAY,oBAAoB,kBAAkB,CAAC,GAAG;EACrD,KAAK,aAAa,wBAAwB,eAAe;EACzD,KAAK,iBAAiB,uBAAuB,KAAK,KAAK,mBAAmB,OAAO,IAAI,0BAA0B,kBAAkB,IAAI,KAAK;CAC3I;CACA,oBAAoB,MAAM;EACzB,MAAM,YAAY,KAAK,4BAA4B,IAAI;EACvD,OAAO,KAAK,wBAAwB,SAAS;CAC9C;CACA,kBAAkB,UAAU;EAC3B,OAAO;CACR;;;;;;;CAOA,sBAAsB,mCAAmC;;;;;;;;;;;;;;;;;CAiBzD,4BAA4B,MAAM;EACjC,MAAM,cAAc,yBAAyB,IAAI;EACjD,IAAI,YAAY,SAAS,GAAG,MAAM,gBAAgB,8BAA8B,0CAA0C,YAAY,KAAK,IAAI,GAAG;EAClJ,MAAM,UAAU,KAAK,kBAAkB,oBAAA,CAAqB,IAAI;EAChE,IAAI,kBAAkB,KAAK,QAAQ,MAAM,gBAAgB,8BAA8B,0CAA0C,OAAO,SAAS;EACjJ,MAAM,iBAAiB;EACvB,MAAM,mBAAmB,KAAK,qBAAqB,kCAAkC,cAAc,CAAC;EACpG,uBAAuB,gBAAgB;EACvC,qBAAqB,gBAAgB;EACrC,OAAO;CACR;;;;;;CAMA,qBAAqB,UAAU;EAC9B,MAAM,gBAAgB,SAAS,QAAQ;EACvC,MAAM,qBAAqB,OAAO,YAAY,OAAO,QAAQ,aAAa,CAAC,CAAC,KAAK,CAAC,MAAM,gBAAgB;GACvG,MAAM,kBAAkB,yBAAyB,UAAU,WAAW,OAAO,GAAG,KAAK,YAAY,QAAQ,IAAI;GAC7G,OAAO,CAAC,MAAM;IACb,GAAG;IACH,IAAI,WAAW;IACf,SAAS,UAAU,eAAe;GACnC,CAAC;EACF,CAAC,CAAC;EACF,OAAO;GACN,GAAG;GACH,SAAS;IACR,GAAG,SAAS;IACZ,YAAY;GACb;EACD;CACD;AACD;;;;;;;;;;;AAaA,IAAI,0BAA0B,cAAc,4BAA4B;CACvE,wBAAwB,WAAW;EAClC,OAAO;CACR;AACD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { T as MongoContract } from "./mongo-value-set-ChzpEiPK-BVtp7f-a.mjs";
|
|
2
|
-
import { p as MongoContractView } from "./index-
|
|
2
|
+
import { p as MongoContractView } from "./index-BHEoA-q8.mjs";
|
|
3
3
|
//#region ../../../2-mongo-family/9-family/dist/mongo-contract-view-AnejqfrQ.d.mts
|
|
4
4
|
//#region src/core/ir/mongo-contract-view.d.ts
|
|
5
5
|
/**
|
|
@@ -24,4 +24,4 @@ declare const MongoContractView$1: {
|
|
|
24
24
|
};
|
|
25
25
|
//#endregion
|
|
26
26
|
export { MongoContractView$1 as t };
|
|
27
|
-
//# sourceMappingURL=mongo-contract-view-AnejqfrQ-
|
|
27
|
+
//# sourceMappingURL=mongo-contract-view-AnejqfrQ-DLviCLRM.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mongo-contract-view-AnejqfrQ-
|
|
1
|
+
{"version":3,"file":"mongo-contract-view-AnejqfrQ-DLviCLRM.d.mts","names":[],"sources":["../../../../2-mongo-family/9-family/dist/mongo-contract-view-AnejqfrQ.d.mts"],"mappings":";;;;;;;;;;;;;;;;;KAeK,oBAAoB,kBAAkB,gBAAgB,iBAAiB,kBAAkB;cAChF;;EAEZ,KAAK,kBAAkB,eAAe,UAAU,YAAY,oBAAoB;;EAEhF,SAAS,kBAAkB,gBAAgB,eAAe,gBAAgB,oBAAoB"}
|
package/dist/{mongo-contract-view-CF5trX6R-BIF8ciuY.mjs → mongo-contract-view-CF5trX6R-_k8QTG5C.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as buildMongoContractView } from "./dist-
|
|
2
|
-
import { t as MongoContractSerializer } from "./mongo-contract-serializer-BBknnHWy-
|
|
1
|
+
import { l as buildMongoContractView } from "./dist-DTFnQk-s.mjs";
|
|
2
|
+
import { t as MongoContractSerializer } from "./mongo-contract-serializer-BBknnHWy-UNgq5T2h.mjs";
|
|
3
3
|
//#region ../../../2-mongo-family/9-family/dist/mongo-contract-view-CF5trX6R.mjs
|
|
4
4
|
const MongoContractView$1 = {
|
|
5
5
|
/** Wrap an already-deserialized Mongo contract in a view. */
|
|
@@ -14,4 +14,4 @@ const MongoContractView$1 = {
|
|
|
14
14
|
//#endregion
|
|
15
15
|
export { MongoContractView$1 as t };
|
|
16
16
|
|
|
17
|
-
//# sourceMappingURL=mongo-contract-view-CF5trX6R-
|
|
17
|
+
//# sourceMappingURL=mongo-contract-view-CF5trX6R-_k8QTG5C.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mongo-contract-view-CF5trX6R-
|
|
1
|
+
{"version":3,"file":"mongo-contract-view-CF5trX6R-_k8QTG5C.mjs","names":[],"sources":["../../../../2-mongo-family/9-family/dist/mongo-contract-view-CF5trX6R.mjs"],"sourcesContent":["import { t as MongoContractSerializer } from \"./mongo-contract-serializer-BBknnHWy.mjs\";\nimport { buildMongoContractView } from \"@internal/mongo-contract\";\n//#region src/core/ir/mongo-contract-view.ts\nconst MongoContractView$1 = {\n\t/** Wrap an already-deserialized Mongo contract in a view. */\n\tfrom(contract) {\n\t\treturn buildMongoContractView(contract);\n\t},\n\t/** Deserialize a Mongo contract JSON envelope and wrap it in a view. */\n\tfromJson(json) {\n\t\treturn buildMongoContractView(new MongoContractSerializer().deserializeContract(json));\n\t}\n};\n//#endregion\nexport { MongoContractView$1 as t };\n\n//# sourceMappingURL=mongo-contract-view-CF5trX6R.mjs.map"],"mappings":";;;AAGA,MAAM,sBAAsB;;CAE3B,KAAK,UAAU;EACd,OAAO,uBAAuB,QAAQ;CACvC;;CAEA,SAAS,MAAM;EACd,OAAO,uBAAuB,IAAI,wBAAwB,CAAC,CAAC,oBAAoB,IAAI,CAAC;CACtF;AACD"}
|
package/dist/{mongo-data-type-Bv8Bd0zu-cnTiyyP0.mjs → mongo-data-type-DPJy_m2a-CROT8T5j.mjs}
RENAMED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
1
2
|
import { dataType, dataTypeParamsProblem } from "@prisma/orm-framework/components/codec";
|
|
2
|
-
//#region ../../../2-mongo-family/1-foundation/mongo-contract/dist/mongo-data-type-
|
|
3
|
+
//#region ../../../2-mongo-family/1-foundation/mongo-contract/dist/mongo-data-type-DPJy_m2a.mjs
|
|
3
4
|
function mongoDataType(id, spec) {
|
|
4
|
-
const { bsonTypes, ...frameworkSpec } = spec;
|
|
5
|
+
const { bsonTypes, temporaryValue, ...frameworkSpec } = spec;
|
|
5
6
|
return {
|
|
6
7
|
...dataType(id, frameworkSpec),
|
|
7
|
-
mongo: {
|
|
8
|
+
mongo: {
|
|
9
|
+
bsonTypes: [...bsonTypes],
|
|
10
|
+
...ifDefined("temporaryValue", temporaryValue)
|
|
11
|
+
}
|
|
8
12
|
};
|
|
9
13
|
}
|
|
10
14
|
function isMongoDataType(type) {
|
|
@@ -18,6 +22,11 @@ function bsonTypesOfCodec(codecId, lookups) {
|
|
|
18
22
|
const type = dataTypeOfCodec(codecId, lookups);
|
|
19
23
|
return type !== void 0 && isMongoDataType(type) ? type.mongo.bsonTypes : void 0;
|
|
20
24
|
}
|
|
25
|
+
/** The temporary value of the data type the codec `codecId` represents, when it has one. */
|
|
26
|
+
function temporaryValueOfCodec(codecId, lookups) {
|
|
27
|
+
const type = dataTypeOfCodec(codecId, lookups);
|
|
28
|
+
return type !== void 0 && isMongoDataType(type) ? type.mongo.temporaryValue : void 0;
|
|
29
|
+
}
|
|
21
30
|
/** What is wrong with the type parameters `typeParams` for the data type the codec `codecId` represents, or undefined when it accepts them or the stack registers no such codec or data type. The Mongo contract builder checks each field with it: the type parameters a field carries reach only the TypeScript types and the emitted `contract.d.ts`, so nothing later checks them. */
|
|
22
31
|
function codecTypeParamsProblem(codecId, typeParams, lookups) {
|
|
23
32
|
const type = dataTypeOfCodec(codecId, lookups);
|
|
@@ -28,6 +37,6 @@ function dataTypeOfCodec(codecId, lookups) {
|
|
|
28
37
|
return descriptor === void 0 ? void 0 : lookups.dataTypeLookup.get(descriptor.dataType);
|
|
29
38
|
}
|
|
30
39
|
//#endregion
|
|
31
|
-
export { mongoDataType as i, codecTypeParamsProblem as n, isMongoDataType as r, bsonTypesOfCodec as t };
|
|
40
|
+
export { temporaryValueOfCodec as a, mongoDataType as i, codecTypeParamsProblem as n, isMongoDataType as r, bsonTypesOfCodec as t };
|
|
32
41
|
|
|
33
|
-
//# sourceMappingURL=mongo-data-type-
|
|
42
|
+
//# sourceMappingURL=mongo-data-type-DPJy_m2a-CROT8T5j.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongo-data-type-DPJy_m2a-CROT8T5j.mjs","names":[],"sources":["../../../../2-mongo-family/1-foundation/mongo-contract/dist/mongo-data-type-DPJy_m2a.mjs"],"sourcesContent":["import { dataType, dataTypeParamsProblem } from \"@internal/framework-components/codec\";\nimport { ifDefined } from \"@internal/utils/defined\";\n//#region src/mongo-data-type.ts\nfunction mongoDataType(id, spec) {\n\tconst { bsonTypes, temporaryValue, ...frameworkSpec } = spec;\n\treturn {\n\t\t...dataType(id, frameworkSpec),\n\t\tmongo: {\n\t\t\tbsonTypes: [...bsonTypes],\n\t\t\t...ifDefined(\"temporaryValue\", temporaryValue)\n\t\t}\n\t};\n}\nfunction isMongoDataType(type) {\n\treturn \"mongo\" in type;\n}\n/**\n* The BSON types a value of the codec `codecId` is stored as, read from the data type the codec\n* represents; undefined when the stack registers no such codec or Mongo data type.\n*/\nfunction bsonTypesOfCodec(codecId, lookups) {\n\tconst type = dataTypeOfCodec(codecId, lookups);\n\treturn type !== void 0 && isMongoDataType(type) ? type.mongo.bsonTypes : void 0;\n}\n/** The temporary value of the data type the codec `codecId` represents, when it has one. */\nfunction temporaryValueOfCodec(codecId, lookups) {\n\tconst type = dataTypeOfCodec(codecId, lookups);\n\treturn type !== void 0 && isMongoDataType(type) ? type.mongo.temporaryValue : void 0;\n}\n/** What is wrong with the type parameters `typeParams` for the data type the codec `codecId` represents, or undefined when it accepts them or the stack registers no such codec or data type. The Mongo contract builder checks each field with it: the type parameters a field carries reach only the TypeScript types and the emitted `contract.d.ts`, so nothing later checks them. */\nfunction codecTypeParamsProblem(codecId, typeParams, lookups) {\n\tconst type = dataTypeOfCodec(codecId, lookups);\n\treturn type === void 0 ? void 0 : dataTypeParamsProblem(type, typeParams);\n}\nfunction dataTypeOfCodec(codecId, lookups) {\n\tconst descriptor = lookups.codecLookup.descriptorFor(codecId);\n\treturn descriptor === void 0 ? void 0 : lookups.dataTypeLookup.get(descriptor.dataType);\n}\n//#endregion\nexport { temporaryValueOfCodec as a, mongoDataType as i, codecTypeParamsProblem as n, isMongoDataType as r, bsonTypesOfCodec as t };\n\n//# sourceMappingURL=mongo-data-type-DPJy_m2a.mjs.map"],"mappings":";;;AAGA,SAAS,cAAc,IAAI,MAAM;CAChC,MAAM,EAAE,WAAW,gBAAgB,GAAG,kBAAkB;CACxD,OAAO;EACN,GAAG,SAAS,IAAI,aAAa;EAC7B,OAAO;GACN,WAAW,CAAC,GAAG,SAAS;GACxB,GAAG,UAAU,kBAAkB,cAAc;EAC9C;CACD;AACD;AACA,SAAS,gBAAgB,MAAM;CAC9B,OAAO,WAAW;AACnB;;;;;AAKA,SAAS,iBAAiB,SAAS,SAAS;CAC3C,MAAM,OAAO,gBAAgB,SAAS,OAAO;CAC7C,OAAO,SAAS,KAAK,KAAK,gBAAgB,IAAI,IAAI,KAAK,MAAM,YAAY,KAAK;AAC/E;;AAEA,SAAS,sBAAsB,SAAS,SAAS;CAChD,MAAM,OAAO,gBAAgB,SAAS,OAAO;CAC7C,OAAO,SAAS,KAAK,KAAK,gBAAgB,IAAI,IAAI,KAAK,MAAM,iBAAiB,KAAK;AACpF;;AAEA,SAAS,uBAAuB,SAAS,YAAY,SAAS;CAC7D,MAAM,OAAO,gBAAgB,SAAS,OAAO;CAC7C,OAAO,SAAS,KAAK,IAAI,KAAK,IAAI,sBAAsB,MAAM,UAAU;AACzE;AACA,SAAS,gBAAgB,SAAS,SAAS;CAC1C,MAAM,aAAa,QAAQ,YAAY,cAAc,OAAO;CAC5D,OAAO,eAAe,KAAK,IAAI,KAAK,IAAI,QAAQ,eAAe,IAAI,WAAW,QAAQ;AACvF"}
|
package/dist/orm.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { $ as MongoUnboundFieldOutputTypes, E as MongoContractWithTypeMaps, H as MongoModelStorage, Q as MongoUnboundFieldInputTypes, T as MongoContract, U as MongoModelsMap, dt as RootModelName, lt as OwnFieldStoredAs, n as ExtractMongoCodecTypes, o as InferModelRow, t as AnyMongoTypeMaps } from "./mongo-value-set-ChzpEiPK-BVtp7f-a.mjs";
|
|
2
|
-
import "./index-
|
|
2
|
+
import "./index-BHEoA-q8.mjs";
|
|
3
3
|
import { i as Document, p as MongoValue } from "./index-Cvd8czxA.mjs";
|
|
4
4
|
import { At as RawUpdateManyCommand, B as MongoFilterExpr, Ct as RawDeleteManyCommand, Dt as RawInsertManyCommand, Et as RawFindOneAndUpdateCommand, Ot as RawInsertOneCommand, St as RawAggregateCommand, Tt as RawFindOneAndDeleteCommand, jt as RawUpdateOneCommand, rt as MongoQueryPlan, wt as RawDeleteOneCommand } from "./query-plan-Dtyaa2z2-BD60dwyV.mjs";
|
|
5
|
-
import { c as MongoQueryExecutor, s as MongoExecutionContext } from "./execution-
|
|
5
|
+
import { c as MongoQueryExecutor, s as MongoExecutionContext } from "./execution-CD6EeX3b.mjs";
|
|
6
6
|
import { AsyncIterableResult } from "@prisma/orm-framework/components/runtime";
|
|
7
7
|
import { ContractField, ContractModel, ContractReferenceRelation, ContractValueObjectAt, StorageBase, ValueObjectReference } from "@prisma/orm-framework/contract/types";
|
|
8
8
|
import "@prisma/orm-framework/contract/enum-accessor";
|
package/dist/orm.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as mongoModelsOf, B as storedNamesOf, L as ownStoredNamesOf, N as ownDocumentIdFieldOf, P as ownEmbedStoredNamesOf, _ as defaultMongoDomainNamespaceId } from "./dist-DTFnQk-s.mjs";
|
|
2
2
|
import { r as isMongoPreparedParamRef, t as MongoParamRef } from "./dist-Ch5-hxEN.mjs";
|
|
3
3
|
import { a as MongoFieldFilter, c as isMongoFilterExpr, i as MongoExprFilter, r as MongoExistsExpr, t as MongoAndExpr } from "./filter-expressions-Uo8ZdzwB-53qnqceS.mjs";
|
|
4
4
|
import { $ as RawInsertOneCommand, A as MongoLookupStage, G as MongoUnwindStage, J as RawDeleteManyCommand, P as MongoProjectStage, Q as RawInsertManyCommand, U as MongoSortStage, V as MongoSkipStage, X as RawFindOneAndDeleteCommand, Y as RawDeleteOneCommand, Z as RawFindOneAndUpdateCommand, _ as MongoAggOperator, a as FindOneAndUpdateCommand, c as MongoAddFieldsStage, d as MongoAggCond, et as RawUpdateManyCommand, f as MongoAggFieldRef, h as MongoAggMap, i as FindOneAndDeleteCommand, it as enumMemberCodecFor, j as MongoMatchStage, k as MongoLimitStage, m as MongoAggLiteral, n as DeleteManyCommand, nt as UpdateManyCommand, o as InsertManyCommand, ot as freezeMongoResultShape, q as RawAggregateCommand, s as InsertOneCommand, t as AggregateCommand, tt as RawUpdateOneCommand, u as MongoAggArrayFilter } from "./execution-BFjGtmf9.mjs";
|
|
5
|
-
import { a as contractFieldToMongoFieldShape, o as contractModelToMongoResultShape } from "./dist-
|
|
5
|
+
import { a as contractFieldToMongoFieldShape, o as contractModelToMongoResultShape } from "./dist-Dyj5B2n7.mjs";
|
|
6
6
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
7
7
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
8
8
|
import { AsyncIterableResult, runtimeError } from "@prisma/orm-framework/components/runtime";
|
package/dist/query-ast.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { M as MongoIndexKey, N as MongoIndexKeyDirection } from "./mongo-value-set-ChzpEiPK-BVtp7f-a.mjs";
|
|
2
2
|
import { $ as MongoOutStage, A as MongoCountStage, At as RawUpdateManyCommand, B as MongoFilterExpr, C as MongoAggReduce, Ct as RawDeleteManyCommand, Dt as RawInsertManyCommand, E as MongoAndExpr, Et as RawFindOneAndUpdateCommand, F as MongoFacetStage, Ft as freezeMongoResultShape, G as MongoGroupId, H as MongoFilterVisitor, I as MongoFieldFilter, It as isExprArray, J as MongoLookupStage, K as MongoGroupStage, L as MongoFieldShape, Lt as isMongoFilterExpr, M as MongoDensifyStage, Mt as UpdateManyCommand, N as MongoExistsExpr, Nt as UpdateOneCommand, O as MongoBucketAutoStage, Ot as RawInsertOneCommand, P as MongoExprFilter, Pt as freezeMongoFieldShape, Q as MongoOrExpr, R as MongoFillOutput, Rt as isRecordArgs, S as MongoAggOperator, St as RawAggregateCommand, T as MongoAggSwitchBranch, Tt as RawFindOneAndDeleteCommand, U as MongoGeoNearStage, V as MongoFilterRewriter, W as MongoGraphLookupStage, X as MongoMergeStage, Y as MongoMatchStage, Z as MongoNotExpr, _ as MongoAggFieldRef, _t as MongoUnwindStage, a as DeleteOneCommand, at as MongoReplaceRootStage, b as MongoAggMap, bt as MongoVectorSearchStage, c as InsertManyCommand, ct as MongoSearchMetaStage, d as MongoAggAccumulator, dt as MongoSkipStage, et as MongoPipelineStage, f as MongoAggArrayFilter, ft as MongoSortByCountStage, g as MongoAggExprVisitor, gt as MongoUnionWithStage, h as MongoAggExprRewriter, ht as MongoStageVisitor, i as DeleteManyCommand, it as MongoRedactStage, j as MongoDensifyRange, jt as RawUpdateOneCommand, k as MongoBucketStage, kt as RawMongoCommand, l as InsertOneCommand, lt as MongoSearchStage, m as MongoAggExpr, mt as MongoStageRewriterContext, n as AggregateCommand, nt as MongoProjectionValue, o as FindOneAndDeleteCommand, ot as MongoResultShape, p as MongoAggCond, pt as MongoSortStage, q as MongoLimitStage, r as AnyMongoCommand, rt as MongoQueryPlan, s as FindOneAndUpdateCommand, st as MongoSampleStage, t as AggRecordArgs, tt as MongoProjectStage, u as MongoAddFieldsStage, ut as MongoSetWindowFieldsStage, v as MongoAggLet, vt as MongoUpdatePipelineStage, w as MongoAggSwitch, wt as RawDeleteOneCommand, x as MongoAggMergeObjects, xt as MongoWindowField, y as MongoAggLiteral, yt as MongoUpdateSpec, z as MongoFillStage } from "./query-plan-Dtyaa2z2-BD60dwyV.mjs";
|
|
3
|
-
import { C as isMongoDmlOperation, S as buildIndexOpId, _ as
|
|
4
|
-
import { a as InsertOneResult, c as MongoQueryExecutor, d as UpdateResult, f as enumMemberCodecFor, i as InsertManyResult, l as UpdateManyResult, n as DeleteOneResult, o as MongoCodecLookup, r as DeleteResult, s as MongoExecutionContext, t as DeleteManyResult, u as UpdateOneResult } from "./execution-
|
|
5
|
-
export { type AggRecordArgs, AggregateCommand, type AnyMongoCommand, type AnyMongoDdlCommand, type AnyMongoInspectionCommand, type AnyMongoMigrationOperation, CollModCommand, type CollModOptions, CreateCollectionCommand, type CreateCollectionOptions, CreateIndexCommand, type CreateIndexOptions, DeleteManyCommand, type DeleteManyResult, DeleteOneCommand, type DeleteOneResult, type DeleteResult, DropCollectionCommand, DropIndexCommand, FindOneAndDeleteCommand, FindOneAndUpdateCommand, InsertManyCommand, type InsertManyResult, InsertOneCommand, type InsertOneResult, ListCollectionsCommand, ListIndexesCommand, MongoAddFieldsStage, MongoAggAccumulator, MongoAggArrayFilter, MongoAggCond, type MongoAggExpr, type MongoAggExprRewriter, type MongoAggExprVisitor, MongoAggFieldRef, MongoAggLet, MongoAggLiteral, MongoAggMap, MongoAggMergeObjects, MongoAggOperator, MongoAggReduce, MongoAggSwitch, type MongoAggSwitchBranch, MongoAndExpr, MongoBucketAutoStage, MongoBucketStage, type MongoCodecLookup, MongoCountStage, type MongoDdlCommandVisitor, type MongoDensifyRange, MongoDensifyStage, type MongoDmlCheck, type MongoDmlOperation, type MongoExecutionContext, MongoExistsExpr, MongoExprFilter, MongoFacetStage, MongoFieldFilter, type MongoFieldShape, type MongoFillOutput, MongoFillStage, type MongoFilterExpr, type MongoFilterRewriter, type MongoFilterVisitor, MongoGeoNearStage, MongoGraphLookupStage, type MongoGroupId, MongoGroupStage, type MongoIndexKey, type MongoIndexKeyDirection, type MongoInspectionCommandVisitor, MongoLimitStage, MongoLookupStage, MongoMatchStage, MongoMergeStage, type MongoMigrationCheck, type MongoMigrationPlanOperation, type MongoMigrationStep, MongoNotExpr, MongoOrExpr, MongoOutStage, type MongoPipelineStage, MongoProjectStage, type MongoProjectionValue, type MongoQueryExecutor, type MongoQueryPlan, MongoRedactStage, MongoReplaceRootStage, type MongoResultShape, MongoSampleStage, MongoSearchMetaStage, MongoSearchStage, MongoSetWindowFieldsStage, MongoSkipStage, MongoSortByCountStage, MongoSortStage, type MongoStageRewriterContext, type MongoStageVisitor, MongoUnionWithStage, MongoUnwindStage, type MongoUpdatePipelineStage, type MongoUpdateSpec, MongoVectorSearchStage, type MongoWindowField, RawAggregateCommand, RawDeleteManyCommand, RawDeleteOneCommand, RawFindOneAndDeleteCommand, RawFindOneAndUpdateCommand, RawInsertManyCommand, RawInsertOneCommand, type RawMongoCommand, RawUpdateManyCommand, RawUpdateOneCommand, RenameCollectionCommand, UpdateManyCommand, type UpdateManyResult, UpdateOneCommand, type UpdateOneResult, type UpdateResult, buildIndexOpId, enumMemberCodecFor, freezeMongoFieldShape, freezeMongoResultShape, isExprArray, isMongoDmlOperation, isMongoFilterExpr, isRecordArgs, keysToKeySpec };
|
|
3
|
+
import { C as MongoOperationMeta, D as isMongoDmlOperation, E as isInspectionCheckSource, O as keysToKeySpec, S as MongoMigrationStep, T as buildIndexOpId, _ as MongoFieldRewriteMeta, a as CollModOptions, b as MongoMigrationCheckSource, c as CreateIndexCommand, d as DropIndexCommand, f as ListCollectionsCommand, g as MongoDmlOperation, h as MongoDmlCheck, i as CollModCommand, l as CreateIndexOptions, m as MongoDdlCommandVisitor, n as AnyMongoInspectionCommand, o as CreateCollectionCommand, p as ListIndexesCommand, r as AnyMongoMigrationOperation, s as CreateCollectionOptions, t as AnyMongoDdlCommand, u as DropCollectionCommand, v as MongoInspectionCommandVisitor, w as RenameCollectionCommand, x as MongoMigrationPlanOperation, y as MongoMigrationCheck } from "./control-BNH5e5av.mjs";
|
|
4
|
+
import { a as InsertOneResult, c as MongoQueryExecutor, d as UpdateResult, f as enumMemberCodecFor, i as InsertManyResult, l as UpdateManyResult, n as DeleteOneResult, o as MongoCodecLookup, r as DeleteResult, s as MongoExecutionContext, t as DeleteManyResult, u as UpdateOneResult } from "./execution-CD6EeX3b.mjs";
|
|
5
|
+
export { type AggRecordArgs, AggregateCommand, type AnyMongoCommand, type AnyMongoDdlCommand, type AnyMongoInspectionCommand, type AnyMongoMigrationOperation, CollModCommand, type CollModOptions, CreateCollectionCommand, type CreateCollectionOptions, CreateIndexCommand, type CreateIndexOptions, DeleteManyCommand, type DeleteManyResult, DeleteOneCommand, type DeleteOneResult, type DeleteResult, DropCollectionCommand, DropIndexCommand, FindOneAndDeleteCommand, FindOneAndUpdateCommand, InsertManyCommand, type InsertManyResult, InsertOneCommand, type InsertOneResult, ListCollectionsCommand, ListIndexesCommand, MongoAddFieldsStage, MongoAggAccumulator, MongoAggArrayFilter, MongoAggCond, type MongoAggExpr, type MongoAggExprRewriter, type MongoAggExprVisitor, MongoAggFieldRef, MongoAggLet, MongoAggLiteral, MongoAggMap, MongoAggMergeObjects, MongoAggOperator, MongoAggReduce, MongoAggSwitch, type MongoAggSwitchBranch, MongoAndExpr, MongoBucketAutoStage, MongoBucketStage, type MongoCodecLookup, MongoCountStage, type MongoDdlCommandVisitor, type MongoDensifyRange, MongoDensifyStage, type MongoDmlCheck, type MongoDmlOperation, type MongoExecutionContext, MongoExistsExpr, MongoExprFilter, MongoFacetStage, MongoFieldFilter, type MongoFieldRewriteMeta, type MongoFieldShape, type MongoFillOutput, MongoFillStage, type MongoFilterExpr, type MongoFilterRewriter, type MongoFilterVisitor, MongoGeoNearStage, MongoGraphLookupStage, type MongoGroupId, MongoGroupStage, type MongoIndexKey, type MongoIndexKeyDirection, type MongoInspectionCommandVisitor, MongoLimitStage, MongoLookupStage, MongoMatchStage, MongoMergeStage, type MongoMigrationCheck, type MongoMigrationCheckSource, type MongoMigrationPlanOperation, type MongoMigrationStep, MongoNotExpr, type MongoOperationMeta, MongoOrExpr, MongoOutStage, type MongoPipelineStage, MongoProjectStage, type MongoProjectionValue, type MongoQueryExecutor, type MongoQueryPlan, MongoRedactStage, MongoReplaceRootStage, type MongoResultShape, MongoSampleStage, MongoSearchMetaStage, MongoSearchStage, MongoSetWindowFieldsStage, MongoSkipStage, MongoSortByCountStage, MongoSortStage, type MongoStageRewriterContext, type MongoStageVisitor, MongoUnionWithStage, MongoUnwindStage, type MongoUpdatePipelineStage, type MongoUpdateSpec, MongoVectorSearchStage, type MongoWindowField, RawAggregateCommand, RawDeleteManyCommand, RawDeleteOneCommand, RawFindOneAndDeleteCommand, RawFindOneAndUpdateCommand, RawInsertManyCommand, RawInsertOneCommand, type RawMongoCommand, RawUpdateManyCommand, RawUpdateOneCommand, RenameCollectionCommand, UpdateManyCommand, type UpdateManyResult, UpdateOneCommand, type UpdateOneResult, type UpdateResult, buildIndexOpId, enumMemberCodecFor, freezeMongoFieldShape, freezeMongoResultShape, isExprArray, isInspectionCheckSource, isMongoDmlOperation, isMongoFilterExpr, isRecordArgs, keysToKeySpec };
|
package/dist/query-ast.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as MongoFieldFilter, c as isMongoFilterExpr, i as MongoExprFilter, o as MongoNotExpr, r as MongoExistsExpr, s as MongoOrExpr, t as MongoAndExpr } from "./filter-expressions-Uo8ZdzwB-53qnqceS.mjs";
|
|
2
2
|
import { $ as RawInsertOneCommand, A as MongoLookupStage, B as MongoSetWindowFieldsStage, C as MongoDensifyStage, D as MongoGraphLookupStage, E as MongoGeoNearStage, F as MongoRedactStage, G as MongoUnwindStage, H as MongoSortByCountStage, I as MongoReplaceRootStage, J as RawDeleteManyCommand, K as MongoVectorSearchStage, L as MongoSampleStage, M as MongoMergeStage, N as MongoOutStage, O as MongoGroupStage, P as MongoProjectStage, Q as RawInsertManyCommand, R as MongoSearchMetaStage, S as MongoCountStage, T as MongoFillStage, U as MongoSortStage, V as MongoSkipStage, W as MongoUnionWithStage, X as RawFindOneAndDeleteCommand, Y as RawDeleteOneCommand, Z as RawFindOneAndUpdateCommand, _ as MongoAggOperator, a as FindOneAndUpdateCommand, at as freezeMongoFieldShape, b as MongoBucketAutoStage, c as MongoAddFieldsStage, ct as isRecordArgs, d as MongoAggCond, et as RawUpdateManyCommand, f as MongoAggFieldRef, g as MongoAggMergeObjects, h as MongoAggMap, i as FindOneAndDeleteCommand, it as enumMemberCodecFor, j as MongoMatchStage, k as MongoLimitStage, l as MongoAggAccumulator, m as MongoAggLiteral, n as DeleteManyCommand, nt as UpdateManyCommand, o as InsertManyCommand, ot as freezeMongoResultShape, p as MongoAggLet, q as RawAggregateCommand, r as DeleteOneCommand, rt as UpdateOneCommand, s as InsertOneCommand, st as isExprArray, t as AggregateCommand, tt as RawUpdateOneCommand, u as MongoAggArrayFilter, v as MongoAggReduce, w as MongoFacetStage, x as MongoBucketStage, y as MongoAggSwitch, z as MongoSearchStage } from "./execution-BFjGtmf9.mjs";
|
|
3
|
-
import { a as DropIndexCommand, c as RenameCollectionCommand, d as keysToKeySpec, i as DropCollectionCommand, l as buildIndexOpId, n as CreateCollectionCommand, o as ListCollectionsCommand, r as CreateIndexCommand, s as ListIndexesCommand, t as CollModCommand, u as
|
|
4
|
-
export { AggregateCommand, CollModCommand, CreateCollectionCommand, CreateIndexCommand, DeleteManyCommand, DeleteOneCommand, DropCollectionCommand, DropIndexCommand, FindOneAndDeleteCommand, FindOneAndUpdateCommand, InsertManyCommand, InsertOneCommand, ListCollectionsCommand, ListIndexesCommand, MongoAddFieldsStage, MongoAggAccumulator, MongoAggArrayFilter, MongoAggCond, MongoAggFieldRef, MongoAggLet, MongoAggLiteral, MongoAggMap, MongoAggMergeObjects, MongoAggOperator, MongoAggReduce, MongoAggSwitch, MongoAndExpr, MongoBucketAutoStage, MongoBucketStage, MongoCountStage, MongoDensifyStage, MongoExistsExpr, MongoExprFilter, MongoFacetStage, MongoFieldFilter, MongoFillStage, MongoGeoNearStage, MongoGraphLookupStage, MongoGroupStage, MongoLimitStage, MongoLookupStage, MongoMatchStage, MongoMergeStage, MongoNotExpr, MongoOrExpr, MongoOutStage, MongoProjectStage, MongoRedactStage, MongoReplaceRootStage, MongoSampleStage, MongoSearchMetaStage, MongoSearchStage, MongoSetWindowFieldsStage, MongoSkipStage, MongoSortByCountStage, MongoSortStage, MongoUnionWithStage, MongoUnwindStage, MongoVectorSearchStage, RawAggregateCommand, RawDeleteManyCommand, RawDeleteOneCommand, RawFindOneAndDeleteCommand, RawFindOneAndUpdateCommand, RawInsertManyCommand, RawInsertOneCommand, RawUpdateManyCommand, RawUpdateOneCommand, RenameCollectionCommand, UpdateManyCommand, UpdateOneCommand, buildIndexOpId, enumMemberCodecFor, freezeMongoFieldShape, freezeMongoResultShape, isExprArray, isMongoDmlOperation, isMongoFilterExpr, isRecordArgs, keysToKeySpec };
|
|
3
|
+
import { a as DropIndexCommand, c as RenameCollectionCommand, d as isMongoDmlOperation, f as keysToKeySpec, i as DropCollectionCommand, l as buildIndexOpId, n as CreateCollectionCommand, o as ListCollectionsCommand, r as CreateIndexCommand, s as ListIndexesCommand, t as CollModCommand, u as isInspectionCheckSource } from "./control-DJf8Ct2M.mjs";
|
|
4
|
+
export { AggregateCommand, CollModCommand, CreateCollectionCommand, CreateIndexCommand, DeleteManyCommand, DeleteOneCommand, DropCollectionCommand, DropIndexCommand, FindOneAndDeleteCommand, FindOneAndUpdateCommand, InsertManyCommand, InsertOneCommand, ListCollectionsCommand, ListIndexesCommand, MongoAddFieldsStage, MongoAggAccumulator, MongoAggArrayFilter, MongoAggCond, MongoAggFieldRef, MongoAggLet, MongoAggLiteral, MongoAggMap, MongoAggMergeObjects, MongoAggOperator, MongoAggReduce, MongoAggSwitch, MongoAndExpr, MongoBucketAutoStage, MongoBucketStage, MongoCountStage, MongoDensifyStage, MongoExistsExpr, MongoExprFilter, MongoFacetStage, MongoFieldFilter, MongoFillStage, MongoGeoNearStage, MongoGraphLookupStage, MongoGroupStage, MongoLimitStage, MongoLookupStage, MongoMatchStage, MongoMergeStage, MongoNotExpr, MongoOrExpr, MongoOutStage, MongoProjectStage, MongoRedactStage, MongoReplaceRootStage, MongoSampleStage, MongoSearchMetaStage, MongoSearchStage, MongoSetWindowFieldsStage, MongoSkipStage, MongoSortByCountStage, MongoSortStage, MongoUnionWithStage, MongoUnwindStage, MongoVectorSearchStage, RawAggregateCommand, RawDeleteManyCommand, RawDeleteOneCommand, RawFindOneAndDeleteCommand, RawFindOneAndUpdateCommand, RawInsertManyCommand, RawInsertOneCommand, RawUpdateManyCommand, RawUpdateOneCommand, RenameCollectionCommand, UpdateManyCommand, UpdateOneCommand, buildIndexOpId, enumMemberCodecFor, freezeMongoFieldShape, freezeMongoResultShape, isExprArray, isInspectionCheckSource, isMongoDmlOperation, isMongoFilterExpr, isRecordArgs, keysToKeySpec };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { M as MongoIndexKey, N as MongoIndexKeyDirection } from "./mongo-value-set-ChzpEiPK-BVtp7f-a.mjs";
|
|
2
2
|
import { B as MongoFilterExpr, E as MongoAndExpr, H as MongoFilterVisitor, I as MongoFieldFilter, N as MongoExistsExpr, P as MongoExprFilter, Q as MongoOrExpr, Z as MongoNotExpr } from "./query-plan-Dtyaa2z2-BD60dwyV.mjs";
|
|
3
|
-
import { C as isMongoDmlOperation, S as buildIndexOpId, _ as
|
|
4
|
-
export { type AnyMongoDdlCommand, type AnyMongoInspectionCommand, type AnyMongoMigrationOperation, CollModCommand, type CollModOptions, CreateCollectionCommand, type CreateCollectionOptions, CreateIndexCommand, type CreateIndexOptions, DropCollectionCommand, DropIndexCommand, ListCollectionsCommand, ListIndexesCommand, MongoAndExpr, type MongoDdlCommandVisitor, type MongoDmlCheck, type MongoDmlOperation, MongoExistsExpr, MongoExprFilter, MongoFieldFilter, type MongoFilterExpr, type MongoFilterVisitor, type MongoIndexKey, type MongoIndexKeyDirection, type MongoInspectionCommandVisitor, type MongoMigrationCheck, type MongoMigrationPlanOperation, type MongoMigrationStep, MongoNotExpr, MongoOrExpr, RenameCollectionCommand, buildIndexOpId, isMongoDmlOperation, keysToKeySpec };
|
|
3
|
+
import { C as MongoOperationMeta, D as isMongoDmlOperation, E as isInspectionCheckSource, O as keysToKeySpec, S as MongoMigrationStep, T as buildIndexOpId, _ as MongoFieldRewriteMeta, a as CollModOptions, b as MongoMigrationCheckSource, c as CreateIndexCommand, d as DropIndexCommand, f as ListCollectionsCommand, g as MongoDmlOperation, h as MongoDmlCheck, i as CollModCommand, l as CreateIndexOptions, m as MongoDdlCommandVisitor, n as AnyMongoInspectionCommand, o as CreateCollectionCommand, p as ListIndexesCommand, r as AnyMongoMigrationOperation, s as CreateCollectionOptions, t as AnyMongoDdlCommand, u as DropCollectionCommand, v as MongoInspectionCommandVisitor, w as RenameCollectionCommand, x as MongoMigrationPlanOperation, y as MongoMigrationCheck } from "./control-BNH5e5av.mjs";
|
|
4
|
+
export { type AnyMongoDdlCommand, type AnyMongoInspectionCommand, type AnyMongoMigrationOperation, CollModCommand, type CollModOptions, CreateCollectionCommand, type CreateCollectionOptions, CreateIndexCommand, type CreateIndexOptions, DropCollectionCommand, DropIndexCommand, ListCollectionsCommand, ListIndexesCommand, MongoAndExpr, type MongoDdlCommandVisitor, type MongoDmlCheck, type MongoDmlOperation, MongoExistsExpr, MongoExprFilter, MongoFieldFilter, type MongoFieldRewriteMeta, type MongoFilterExpr, type MongoFilterVisitor, type MongoIndexKey, type MongoIndexKeyDirection, type MongoInspectionCommandVisitor, type MongoMigrationCheck, type MongoMigrationCheckSource, type MongoMigrationPlanOperation, type MongoMigrationStep, MongoNotExpr, type MongoOperationMeta, MongoOrExpr, RenameCollectionCommand, buildIndexOpId, isInspectionCheckSource, isMongoDmlOperation, keysToKeySpec };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as MongoFieldFilter, i as MongoExprFilter, o as MongoNotExpr, r as MongoExistsExpr, s as MongoOrExpr, t as MongoAndExpr } from "./filter-expressions-Uo8ZdzwB-53qnqceS.mjs";
|
|
2
|
-
import { a as DropIndexCommand, c as RenameCollectionCommand, d as keysToKeySpec, i as DropCollectionCommand, l as buildIndexOpId, n as CreateCollectionCommand, o as ListCollectionsCommand, r as CreateIndexCommand, s as ListIndexesCommand, t as CollModCommand, u as
|
|
3
|
-
export { CollModCommand, CreateCollectionCommand, CreateIndexCommand, DropCollectionCommand, DropIndexCommand, ListCollectionsCommand, ListIndexesCommand, MongoAndExpr, MongoExistsExpr, MongoExprFilter, MongoFieldFilter, MongoNotExpr, MongoOrExpr, RenameCollectionCommand, buildIndexOpId, isMongoDmlOperation, keysToKeySpec };
|
|
2
|
+
import { a as DropIndexCommand, c as RenameCollectionCommand, d as isMongoDmlOperation, f as keysToKeySpec, i as DropCollectionCommand, l as buildIndexOpId, n as CreateCollectionCommand, o as ListCollectionsCommand, r as CreateIndexCommand, s as ListIndexesCommand, t as CollModCommand, u as isInspectionCheckSource } from "./control-DJf8Ct2M.mjs";
|
|
3
|
+
export { CollModCommand, CreateCollectionCommand, CreateIndexCommand, DropCollectionCommand, DropIndexCommand, ListCollectionsCommand, ListIndexesCommand, MongoAndExpr, MongoExistsExpr, MongoExprFilter, MongoFieldFilter, MongoNotExpr, MongoOrExpr, RenameCollectionCommand, buildIndexOpId, isInspectionCheckSource, isMongoDmlOperation, keysToKeySpec };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { $ as MongoOutStage, A as MongoCountStage, At as RawUpdateManyCommand, B as MongoFilterExpr, C as MongoAggReduce, Ct as RawDeleteManyCommand, Dt as RawInsertManyCommand, E as MongoAndExpr, Et as RawFindOneAndUpdateCommand, F as MongoFacetStage, Ft as freezeMongoResultShape, G as MongoGroupId, H as MongoFilterVisitor, I as MongoFieldFilter, It as isExprArray, J as MongoLookupStage, K as MongoGroupStage, L as MongoFieldShape, Lt as isMongoFilterExpr, M as MongoDensifyStage, Mt as UpdateManyCommand, N as MongoExistsExpr, Nt as UpdateOneCommand, O as MongoBucketAutoStage, Ot as RawInsertOneCommand, P as MongoExprFilter, Pt as freezeMongoFieldShape, Q as MongoOrExpr, R as MongoFillOutput, Rt as isRecordArgs, S as MongoAggOperator, St as RawAggregateCommand, T as MongoAggSwitchBranch, Tt as RawFindOneAndDeleteCommand, U as MongoGeoNearStage, V as MongoFilterRewriter, W as MongoGraphLookupStage, X as MongoMergeStage, Y as MongoMatchStage, Z as MongoNotExpr, _ as MongoAggFieldRef, _t as MongoUnwindStage, a as DeleteOneCommand, at as MongoReplaceRootStage, b as MongoAggMap, bt as MongoVectorSearchStage, c as InsertManyCommand, ct as MongoSearchMetaStage, d as MongoAggAccumulator, dt as MongoSkipStage, et as MongoPipelineStage, f as MongoAggArrayFilter, ft as MongoSortByCountStage, g as MongoAggExprVisitor, gt as MongoUnionWithStage, h as MongoAggExprRewriter, ht as MongoStageVisitor, i as DeleteManyCommand, it as MongoRedactStage, j as MongoDensifyRange, jt as RawUpdateOneCommand, k as MongoBucketStage, kt as RawMongoCommand, l as InsertOneCommand, lt as MongoSearchStage, m as MongoAggExpr, mt as MongoStageRewriterContext, n as AggregateCommand, nt as MongoProjectionValue, o as FindOneAndDeleteCommand, ot as MongoResultShape, p as MongoAggCond, pt as MongoSortStage, q as MongoLimitStage, r as AnyMongoCommand, rt as MongoQueryPlan, s as FindOneAndUpdateCommand, st as MongoSampleStage, t as AggRecordArgs, tt as MongoProjectStage, u as MongoAddFieldsStage, ut as MongoSetWindowFieldsStage, v as MongoAggLet, vt as MongoUpdatePipelineStage, w as MongoAggSwitch, wt as RawDeleteOneCommand, x as MongoAggMergeObjects, xt as MongoWindowField, y as MongoAggLiteral, yt as MongoUpdateSpec, z as MongoFillStage } from "./query-plan-Dtyaa2z2-BD60dwyV.mjs";
|
|
2
|
-
import { a as InsertOneResult, c as MongoQueryExecutor, d as UpdateResult, f as enumMemberCodecFor, i as InsertManyResult, l as UpdateManyResult, n as DeleteOneResult, o as MongoCodecLookup, r as DeleteResult, s as MongoExecutionContext, t as DeleteManyResult, u as UpdateOneResult } from "./execution-
|
|
2
|
+
import { a as InsertOneResult, c as MongoQueryExecutor, d as UpdateResult, f as enumMemberCodecFor, i as InsertManyResult, l as UpdateManyResult, n as DeleteOneResult, o as MongoCodecLookup, r as DeleteResult, s as MongoExecutionContext, t as DeleteManyResult, u as UpdateOneResult } from "./execution-CD6EeX3b.mjs";
|
|
3
3
|
export { type AggRecordArgs, AggregateCommand, type AnyMongoCommand, DeleteManyCommand, type DeleteManyResult, DeleteOneCommand, type DeleteOneResult, type DeleteResult, FindOneAndDeleteCommand, FindOneAndUpdateCommand, InsertManyCommand, type InsertManyResult, InsertOneCommand, type InsertOneResult, MongoAddFieldsStage, MongoAggAccumulator, MongoAggArrayFilter, MongoAggCond, type MongoAggExpr, type MongoAggExprRewriter, type MongoAggExprVisitor, MongoAggFieldRef, MongoAggLet, MongoAggLiteral, MongoAggMap, MongoAggMergeObjects, MongoAggOperator, MongoAggReduce, MongoAggSwitch, type MongoAggSwitchBranch, MongoAndExpr, MongoBucketAutoStage, MongoBucketStage, type MongoCodecLookup, MongoCountStage, type MongoDensifyRange, MongoDensifyStage, type MongoExecutionContext, MongoExistsExpr, MongoExprFilter, MongoFacetStage, MongoFieldFilter, type MongoFieldShape, type MongoFillOutput, MongoFillStage, type MongoFilterExpr, type MongoFilterRewriter, type MongoFilterVisitor, MongoGeoNearStage, MongoGraphLookupStage, type MongoGroupId, MongoGroupStage, MongoLimitStage, MongoLookupStage, MongoMatchStage, MongoMergeStage, MongoNotExpr, MongoOrExpr, MongoOutStage, type MongoPipelineStage, MongoProjectStage, type MongoProjectionValue, type MongoQueryExecutor, type MongoQueryPlan, MongoRedactStage, MongoReplaceRootStage, type MongoResultShape, MongoSampleStage, MongoSearchMetaStage, MongoSearchStage, MongoSetWindowFieldsStage, MongoSkipStage, MongoSortByCountStage, MongoSortStage, type MongoStageRewriterContext, type MongoStageVisitor, MongoUnionWithStage, MongoUnwindStage, type MongoUpdatePipelineStage, type MongoUpdateSpec, MongoVectorSearchStage, type MongoWindowField, RawAggregateCommand, RawDeleteManyCommand, RawDeleteOneCommand, RawFindOneAndDeleteCommand, RawFindOneAndUpdateCommand, RawInsertManyCommand, RawInsertOneCommand, type RawMongoCommand, RawUpdateManyCommand, RawUpdateOneCommand, UpdateManyCommand, type UpdateManyResult, UpdateOneCommand, type UpdateOneResult, type UpdateResult, enumMemberCodecFor, freezeMongoFieldShape, freezeMongoResultShape, isExprArray, isMongoFilterExpr, isRecordArgs };
|
package/dist/query-builder.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { E as MongoContractWithTypeMaps, H as MongoModelStorage, T as MongoContract, U as MongoModelsMap, dt as RootModelName, n as ExtractMongoCodecTypes, t as AnyMongoTypeMaps } from "./mongo-value-set-ChzpEiPK-BVtp7f-a.mjs";
|
|
2
|
-
import "./index-
|
|
2
|
+
import "./index-BHEoA-q8.mjs";
|
|
3
3
|
import { d as MongoPreparedParamRef, p as MongoValue } from "./index-Cvd8czxA.mjs";
|
|
4
4
|
import { B as MongoFilterExpr, L as MongoFieldShape, Mt as UpdateManyCommand, Nt as UpdateOneCommand, R as MongoFillOutput, a as DeleteOneCommand, c as InsertManyCommand, d as MongoAggAccumulator, et as MongoPipelineStage, i as DeleteManyCommand, j as MongoDensifyRange, l as InsertOneCommand, m as MongoAggExpr, n as AggregateCommand, o as FindOneAndDeleteCommand, ot as MongoResultShape, r as AnyMongoCommand, rt as MongoQueryPlan, s as FindOneAndUpdateCommand, vt as MongoUpdatePipelineStage, xt as MongoWindowField } from "./query-plan-Dtyaa2z2-BD60dwyV.mjs";
|
|
5
|
-
import { a as InsertOneResult, d as UpdateResult, i as InsertManyResult, r as DeleteResult, s as MongoExecutionContext } from "./execution-
|
|
6
|
-
import { A as TypedAccumulatorExpr, C as PagingCount, D as ResolveRow, E as ResolvePath, F as ValidPaths, I as createFieldAccessor, L as expr, M as TypedUpdateOp, N as UnwoundShape, O as SortSpec, P as UpdaterResult, S as ObjectField, T as ProjectedShape, _ as NestedDocShape, a as DocField, b as NumericField, c as ExtractDocShape, d as GroupedDocShape, f as LeafExpression, g as ModelToDocShape, h as ModelNestedShape, i as DateField, j as TypedAggExpr, k as StringField, l as FieldAccessor, m as ModelArrayField, n as BooleanField, o as DocShape, p as LiteralValue, r as BsonDateField, s as Expression, t as ArrayField, u as GroupSpec, v as NullableDocField, w as PathCompletions, x as ObjectExpression, y as NullableNumericField } from "./field-accessor-DJzCZm0f-
|
|
5
|
+
import { a as InsertOneResult, d as UpdateResult, i as InsertManyResult, r as DeleteResult, s as MongoExecutionContext } from "./execution-CD6EeX3b.mjs";
|
|
6
|
+
import { A as TypedAccumulatorExpr, C as PagingCount, D as ResolveRow, E as ResolvePath, F as ValidPaths, I as createFieldAccessor, L as expr, M as TypedUpdateOp, N as UnwoundShape, O as SortSpec, P as UpdaterResult, S as ObjectField, T as ProjectedShape, _ as NestedDocShape, a as DocField, b as NumericField, c as ExtractDocShape, d as GroupedDocShape, f as LeafExpression, g as ModelToDocShape, h as ModelNestedShape, i as DateField, j as TypedAggExpr, k as StringField, l as FieldAccessor, m as ModelArrayField, n as BooleanField, o as DocShape, p as LiteralValue, r as BsonDateField, s as Expression, t as ArrayField, u as GroupSpec, v as NullableDocField, w as PathCompletions, x as ObjectExpression, y as NullableNumericField } from "./field-accessor-DJzCZm0f-ZGjGQy0_.mjs";
|
|
7
7
|
import { ContractField, ContractModel, StorageBase } from "@prisma/orm-framework/contract/types";
|
|
8
8
|
//#region ../../../2-mongo-family/5-query-builders/query-builder/dist/index.d.mts
|
|
9
9
|
//#region src/accumulator-helpers.d.ts
|
package/dist/query-builder.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as expr, t as createFieldAccessor } from "./field-accessor-0oUt6RZC-D2rZeXb8.mjs";
|
|
2
|
-
import { a as contractFieldToMongoFieldShape, c as mongoQuery, i as acc, n as FilteredCollection, o as contractModelToMongoResultShape, r as PipelineChain, s as fn, t as CollectionHandle } from "./dist-
|
|
2
|
+
import { a as contractFieldToMongoFieldShape, c as mongoQuery, i as acc, n as FilteredCollection, o as contractModelToMongoResultShape, r as PipelineChain, s as fn, t as CollectionHandle } from "./dist-Dyj5B2n7.mjs";
|
|
3
3
|
export { CollectionHandle, FilteredCollection, PipelineChain, acc, contractFieldToMongoFieldShape, contractModelToMongoResultShape, createFieldAccessor, expr, fn, mongoQuery };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { M as MongoIndexKey } from "./mongo-value-set-ChzpEiPK-BVtp7f-a.mjs";
|
|
2
2
|
import { p as MongoValue } from "./index-Cvd8czxA.mjs";
|
|
3
3
|
import { B as MongoFilterExpr, et as MongoPipelineStage, l as InsertOneCommand, n as AggregateCommand, s as FindOneAndUpdateCommand } from "./query-plan-Dtyaa2z2-BD60dwyV.mjs";
|
|
4
|
-
import { c as CreateIndexCommand, l as CreateIndexOptions, o as CreateCollectionCommand, s as CreateCollectionOptions } from "./control-
|
|
5
|
-
import "./execution-
|
|
6
|
-
import { P as UpdaterResult, l as FieldAccessor, o as DocShape } from "./field-accessor-DJzCZm0f-
|
|
4
|
+
import { c as CreateIndexCommand, l as CreateIndexOptions, o as CreateCollectionCommand, s as CreateCollectionOptions } from "./control-BNH5e5av.mjs";
|
|
5
|
+
import "./execution-CD6EeX3b.mjs";
|
|
6
|
+
import { P as UpdaterResult, l as FieldAccessor, o as DocShape } from "./field-accessor-DJzCZm0f-ZGjGQy0_.mjs";
|
|
7
7
|
//#region ../../../2-mongo-family/5-query-builders/query-builder/dist/exports/contract-free.d.mts
|
|
8
8
|
//#region src/contract-free/collection.d.ts
|
|
9
9
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as MongoAndExpr } from "./filter-expressions-Uo8ZdzwB-53qnqceS.mjs";
|
|
2
2
|
import { U as MongoSortStage, a as FindOneAndUpdateCommand, j as MongoMatchStage, k as MongoLimitStage, s as InsertOneCommand, t as AggregateCommand } from "./execution-BFjGtmf9.mjs";
|
|
3
|
-
import { n as CreateCollectionCommand, r as CreateIndexCommand } from "./control-
|
|
3
|
+
import { n as CreateCollectionCommand, r as CreateIndexCommand } from "./control-DJf8Ct2M.mjs";
|
|
4
4
|
import { i as resolveUpdaterResult, t as createFieldAccessor } from "./field-accessor-0oUt6RZC-D2rZeXb8.mjs";
|
|
5
5
|
import { InternalError } from "@prisma/orm-framework/utils/internal-error";
|
|
6
6
|
//#region ../../../2-mongo-family/5-query-builders/query-builder/dist/exports/contract-free.mjs
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./index-
|
|
1
|
+
import "./index-BHEoA-q8.mjs";
|
|
2
2
|
import { RuntimeMutationDefaultGenerator } from "@prisma/orm-framework/components/runtime";
|
|
3
3
|
//#region ../../../2-mongo-family/9-family/dist/runtime.d.mts
|
|
4
4
|
//#region src/core/timestamp-now-runtime-generator.d.ts
|
|
@@ -8,4 +8,4 @@ import { RuntimeMutationDefaultGenerator } from "@prisma/orm-framework/component
|
|
|
8
8
|
declare function timestampNowRuntimeGenerator(): RuntimeMutationDefaultGenerator;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { timestampNowRuntimeGenerator as t };
|
|
11
|
-
//# sourceMappingURL=runtime-
|
|
11
|
+
//# sourceMappingURL=runtime-C2G5v1Bk.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-C2G5v1Bk.d.mts","names":[],"sources":["../../../../2-mongo-family/9-family/dist/runtime.d.mts"],"mappings":";;;;;;;iBAMiB,gCAAgC"}
|
package/dist/runtime.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { T as MongoContract, f as MongoCodecInput, p as MongoCodecTypesBase } from "./mongo-value-set-ChzpEiPK-BVtp7f-a.mjs";
|
|
2
|
-
import "./index-
|
|
2
|
+
import "./index-BHEoA-q8.mjs";
|
|
3
3
|
import { d as MongoPreparedParamRef, l as MongoParamRef } from "./index-Cvd8czxA.mjs";
|
|
4
4
|
import { At as RawUpdateManyCommand, Ct as RawDeleteManyCommand, Mt as UpdateManyCommand, Nt as UpdateOneCommand, a as DeleteOneCommand, i as DeleteManyCommand, jt as RawUpdateOneCommand, ot as MongoResultShape, r as AnyMongoCommand, rt as MongoQueryPlan, wt as RawDeleteOneCommand } from "./query-plan-Dtyaa2z2-BD60dwyV.mjs";
|
|
5
|
-
import { c as MongoQueryExecutor, f as enumMemberCodecFor, o as MongoCodecLookup, s as MongoExecutionContext } from "./execution-
|
|
6
|
-
import { r as AnyMongoDmlWireCommand } from "./index-
|
|
7
|
-
import { a as MongoLoweredDraft, i as MongoDriver, t as MongoAdapter } from "./index-
|
|
5
|
+
import { c as MongoQueryExecutor, f as enumMemberCodecFor, o as MongoCodecLookup, s as MongoExecutionContext } from "./execution-CD6EeX3b.mjs";
|
|
6
|
+
import { r as AnyMongoDmlWireCommand } from "./index-B2yjvk4C.mjs";
|
|
7
|
+
import { a as MongoLoweredDraft, i as MongoDriver, t as MongoAdapter } from "./index-By9G6gWh.mjs";
|
|
8
8
|
import { Activity, ActivityContext, ActivityEndedResult, ActivityFinalizedResult, AsyncIterableResult, ExecuteInterceptResult, ExecutionPlan, MutationDefaultGeneratorContributor, ParamRefMutator, QueryInterceptResult, RuntimeExecuteOptions, RuntimeMiddleware, RuntimeMode, RuntimeStatementStats } from "@prisma/orm-framework/components/runtime";
|
|
9
9
|
import { PlanMeta } from "@prisma/orm-framework/contract/types";
|
|
10
10
|
import { RuntimeAdapterDescriptor, RuntimeAdapterInstance, RuntimeDriverDescriptor, RuntimeDriverInstance, RuntimeExtensionDescriptor, RuntimeExtensionInstance, RuntimeTargetDescriptor, RuntimeTargetInstance, RuntimeTargetInstance as RuntimeTargetInstance$1 } from "@prisma/orm-framework/components/execution";
|
package/dist/schema-ir.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MongoSchemaCollectionOptionsInput, c as MongoSchemaIndex, d as MongoSchemaValidatorOptions, f as MongoSchemaVisitor, i as MongoSchemaCollectionOptions, l as MongoSchemaIndexOptions, n as MongoSchemaCollection, o as MongoSchemaIR, p as deepEqual, r as MongoSchemaCollectionCtorOptions, s as MongoSchemaIRNode, t as AnyMongoSchemaNode, u as MongoSchemaValidator } from "./index-
|
|
1
|
+
import { a as MongoSchemaCollectionOptionsInput, c as MongoSchemaIndex, d as MongoSchemaValidatorOptions, f as MongoSchemaVisitor, i as MongoSchemaCollectionOptions, l as MongoSchemaIndexOptions, n as MongoSchemaCollection, o as MongoSchemaIR, p as deepEqual, r as MongoSchemaCollectionCtorOptions, s as MongoSchemaIRNode, t as AnyMongoSchemaNode, u as MongoSchemaValidator } from "./index-Bw1gxp0Q.mjs";
|
|
2
2
|
export { type AnyMongoSchemaNode, MongoSchemaCollection, type MongoSchemaCollectionCtorOptions, MongoSchemaCollectionOptions, type MongoSchemaCollectionOptionsInput, MongoSchemaIR, MongoSchemaIRNode, MongoSchemaIndex, type MongoSchemaIndexOptions, MongoSchemaValidator, type MongoSchemaValidatorOptions, type MongoSchemaVisitor, deepEqual };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as MongoContract } from "./mongo-value-set-ChzpEiPK-BVtp7f-a.mjs";
|
|
2
|
-
import "./index-
|
|
3
|
-
import { o as MongoSchemaIR } from "./index-
|
|
2
|
+
import "./index-BHEoA-q8.mjs";
|
|
3
|
+
import { o as MongoSchemaIR } from "./index-Bw1gxp0Q.mjs";
|
|
4
4
|
import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
|
|
5
5
|
import { OperationContext, VerifyDatabaseSchemaResult } from "@prisma/orm-framework/components/control";
|
|
6
6
|
//#region ../../../2-mongo-family/9-family/dist/schema-verify.d.mts
|
|
@@ -20,4 +20,4 @@ interface VerifyMongoSchemaOptions {
|
|
|
20
20
|
declare function verifyMongoSchema(options: VerifyMongoSchemaOptions): VerifyDatabaseSchemaResult;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { verifyMongoSchema as n, VerifyMongoSchemaOptions as t };
|
|
23
|
-
//# sourceMappingURL=schema-verify-
|
|
23
|
+
//# sourceMappingURL=schema-verify-DJyHpYGy.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-verify-
|
|
1
|
+
{"version":3,"file":"schema-verify-DJyHpYGy.d.mts","names":[],"sources":["../../../../2-mongo-family/9-family/dist/schema-verify.d.mts"],"mappings":";;;;;;;UAKU;WACC,UAAU;WACV,QAAQ;WACR;WACA,UAAU;;;;;;WAMV,qBAAqB,cAAc;;iBAE7B,kBAAkB,SAAS,2BAA2B"}
|
package/dist/{verify-mongo-schema-D8rznxzZ-CjYf39zu.mjs → verify-mongo-schema-D8rznxzZ-Dg51Lhnp.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as indexLookupKey, f as canonicalize, m as collectionControlPolicyOf, p as collectionControlPoliciesOf } from "./dist-DTFnQk-s.mjs";
|
|
2
2
|
import { a as MongoSchemaIndex, n as MongoSchemaCollectionOptions, o as MongoSchemaValidator, r as MongoSchemaIR, s as deepEqual, t as MongoSchemaCollection } from "./exports-BRIh38XT.mjs";
|
|
3
3
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
4
4
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
@@ -456,4 +456,4 @@ function resolveMongoCollectionControlPolicy(contract) {
|
|
|
456
456
|
//#endregion
|
|
457
457
|
export { verifyMongoSchema as i, contractToMongoSchemaIR as n, diffMongoSchemas as r, canonicalizeSchemasForVerification as t };
|
|
458
458
|
|
|
459
|
-
//# sourceMappingURL=verify-mongo-schema-D8rznxzZ-
|
|
459
|
+
//# sourceMappingURL=verify-mongo-schema-D8rznxzZ-Dg51Lhnp.mjs.map
|