@prisma/orm-family-mongo 8.0.0-rc.22-dev.6 → 8.0.0-rc.22-dev.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{authoring-entity-types-J_patbMZ-CADuWYyG.mjs → authoring-entity-types-J_patbMZ-C509nMfw.mjs} +3 -3
- package/dist/{authoring-entity-types-J_patbMZ-CADuWYyG.mjs.map → authoring-entity-types-J_patbMZ-C509nMfw.mjs.map} +1 -1
- package/dist/codec.d.mts +2 -2
- package/dist/codec.mjs +2 -2
- package/dist/{config-types-DYTCUpAs.mjs → config-types-D4SnQaTy.mjs} +2 -2
- package/dist/{config-types-DYTCUpAs.mjs.map → config-types-D4SnQaTy.mjs.map} +1 -1
- package/dist/{contract-builder-Dg6WHTeR.mjs → contract-builder-CZlnxywD.mjs} +5 -5
- package/dist/{contract-builder-Dg6WHTeR.mjs.map → contract-builder-CZlnxywD.mjs.map} +1 -1
- package/dist/{contract-builder-DnbJB8eD.d.mts → contract-builder-DurxXsaj.d.mts} +2 -2
- package/dist/{contract-builder-DnbJB8eD.d.mts.map → contract-builder-DurxXsaj.d.mts.map} +1 -1
- package/dist/contract-prisma6__provider.mjs +5 -5
- package/dist/contract-psl.mjs +1 -1
- package/dist/contract-psl__provider.mjs +2 -2
- package/dist/contract-ts.d.mts +1 -1
- package/dist/contract-ts.mjs +2 -2
- package/dist/contract-ts__config-types.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 +1 -1
- package/dist/contract.mjs +2 -2
- package/dist/contract__entity-kinds.mjs +1 -1
- package/dist/{control-DVHcBUoh.d.mts → control-0YmjHGNw.d.mts} +2 -2
- package/dist/{control-DVHcBUoh.d.mts.map → control-0YmjHGNw.d.mts.map} +1 -1
- package/dist/{control-AQF6tvbv.mjs → control-Ba7xgf0y.mjs} +9 -9
- package/dist/{control-AQF6tvbv.mjs.map → control-Ba7xgf0y.mjs.map} +1 -1
- package/dist/{control-Cpgdr11Q.d.mts → control-DMkn0GMN.d.mts} +5 -5
- package/dist/{control-Cpgdr11Q.d.mts.map → control-DMkn0GMN.d.mts.map} +1 -1
- package/dist/{control-adapter-BheElqfe-BVp5aOMr.d.mts → control-adapter-BheElqfe-iFCyJUfP.d.mts} +4 -4
- package/dist/{control-adapter-BheElqfe-BVp5aOMr.d.mts.map → control-adapter-BheElqfe-iFCyJUfP.d.mts.map} +1 -1
- package/dist/control-adapter-lmZYICe8.d.mts +1 -0
- package/dist/dist-1lgitHtv.mjs +92 -0
- package/dist/dist-1lgitHtv.mjs.map +1 -0
- package/dist/{dist-BwYedu6-.mjs → dist-CQ1Di6Ei.mjs} +5 -5
- package/dist/{dist-BwYedu6-.mjs.map → dist-CQ1Di6Ei.mjs.map} +1 -1
- package/dist/{dist-BPlVwyAb.mjs → dist-TDWqXC1F.mjs} +4 -4
- package/dist/{dist-BPlVwyAb.mjs.map → dist-TDWqXC1F.mjs.map} +1 -1
- package/dist/{entity-kinds-CoJfiouk-DMiKGW0u.mjs → entity-kinds-BI-PWX8L-DRxc2Flr.mjs} +3 -3
- package/dist/entity-kinds-BI-PWX8L-DRxc2Flr.mjs.map +1 -0
- package/dist/{execution-BoVPgPvR.mjs → execution-CE-CNrFY.mjs} +2 -2
- package/dist/{execution-BoVPgPvR.mjs.map → execution-CE-CNrFY.mjs.map} +1 -1
- package/dist/{execution-CZhOXkot.d.mts → execution-CGierEKK.d.mts} +3 -3
- package/dist/{execution-CZhOXkot.d.mts.map → execution-CGierEKK.d.mts.map} +1 -1
- package/dist/family.d.mts +9 -9
- package/dist/family.mjs +8 -8
- 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 +2 -2
- 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-0oUt6RZC-BjNwSinZ.mjs → field-accessor-0oUt6RZC-D2x7hCuJ.mjs} +2 -2
- package/dist/{field-accessor-0oUt6RZC-BjNwSinZ.mjs.map → field-accessor-0oUt6RZC-D2x7hCuJ.mjs.map} +1 -1
- package/dist/{field-accessor-CqKt9hxI-Co64FQ3V.d.mts → field-accessor-CqKt9hxI-AngsT5mI.d.mts} +3 -3
- package/dist/{field-accessor-CqKt9hxI-Co64FQ3V.d.mts.map → field-accessor-CqKt9hxI-AngsT5mI.d.mts.map} +1 -1
- package/dist/{index-CQG5l2o9.d.mts → index-Cfv3XKXM.d.mts} +29 -3
- package/dist/{index-CQG5l2o9.d.mts.map → index-Cfv3XKXM.d.mts.map} +1 -1
- package/dist/{index-BonKbeyU.d.mts → index-D21Pb9vL.d.mts} +2 -2
- package/dist/{index-BonKbeyU.d.mts.map → index-D21Pb9vL.d.mts.map} +1 -1
- package/dist/{index-D9TThYU9.d.mts → index-DXhwK4nr.d.mts} +3 -3
- package/dist/{index-D9TThYU9.d.mts.map → index-DXhwK4nr.d.mts.map} +1 -1
- package/dist/{index-B3o8NFNH.d.mts → index-DcQFfwkK.d.mts} +2 -2
- package/dist/{index-B3o8NFNH.d.mts.map → index-DcQFfwkK.d.mts.map} +1 -1
- package/dist/{index-Bh6a8q-2.d.mts → index-TNRD-MRI.d.mts} +4 -4
- package/dist/{index-Bh6a8q-2.d.mts.map → index-TNRD-MRI.d.mts.map} +1 -1
- package/dist/{interpreter-BX0gy2Yu-DfsnMHjO.mjs → interpreter-BX0gy2Yu-vTz2kU_w.mjs} +4 -4
- package/dist/{interpreter-BX0gy2Yu-DfsnMHjO.mjs.map → interpreter-BX0gy2Yu-vTz2kU_w.mjs.map} +1 -1
- package/dist/{ir-C7oVYJg2.mjs → ir-C-tQIDYD.mjs} +2 -2
- package/dist/{ir-C7oVYJg2.mjs.map → ir-C-tQIDYD.mjs.map} +1 -1
- package/dist/{ir-ZONNL1YV.d.mts → ir-DH1ciHWj.d.mts} +3 -3
- package/dist/{ir-ZONNL1YV.d.mts.map → ir-DH1ciHWj.d.mts.map} +1 -1
- package/dist/lowering.d.mts +1 -1
- package/dist/{migration-C0N4Uamo.mjs → migration-C0MoM7dG.mjs} +2 -2
- package/dist/{migration-C0N4Uamo.mjs.map → migration-C0MoM7dG.mjs.map} +1 -1
- package/dist/{migration-RzYuoweU.d.mts → migration-fjq98toS.d.mts} +4 -4
- package/dist/{migration-RzYuoweU.d.mts.map → migration-fjq98toS.d.mts.map} +1 -1
- package/dist/{mongo-contract-serializer-BBknnHWy-CZOnQGdR.mjs → mongo-contract-serializer-BBknnHWy-C0r2Kcjr.mjs} +4 -4
- package/dist/{mongo-contract-serializer-BBknnHWy-CZOnQGdR.mjs.map → mongo-contract-serializer-BBknnHWy-C0r2Kcjr.mjs.map} +1 -1
- package/dist/{mongo-contract-view-AnejqfrQ-k0FbFieN.d.mts → mongo-contract-view-AnejqfrQ-CPjNHMFu.d.mts} +2 -2
- package/dist/{mongo-contract-view-AnejqfrQ-k0FbFieN.d.mts.map → mongo-contract-view-AnejqfrQ-CPjNHMFu.d.mts.map} +1 -1
- package/dist/{mongo-contract-view-CF5trX6R-BCPkEgiL.mjs → mongo-contract-view-CF5trX6R-Ci7aGNQk.mjs} +3 -3
- package/dist/{mongo-contract-view-CF5trX6R-BCPkEgiL.mjs.map → mongo-contract-view-CF5trX6R-Ci7aGNQk.mjs.map} +1 -1
- package/dist/orm.d.mts +3 -3
- package/dist/orm.mjs +6 -6
- package/dist/query-ast.d.mts +2 -2
- package/dist/query-ast.mjs +1 -1
- package/dist/query-ast__control.d.mts +1 -1
- package/dist/query-ast__execution.d.mts +1 -1
- package/dist/query-ast__execution.mjs +1 -1
- package/dist/query-builder.d.mts +3 -3
- package/dist/query-builder.mjs +2 -2
- package/dist/query-builder__contract-free.d.mts +3 -3
- package/dist/query-builder__contract-free.mjs +2 -2
- package/dist/{runtime-D_E5N6Ii.d.mts → runtime-ZGXLjqEe.d.mts} +2 -2
- package/dist/runtime-ZGXLjqEe.d.mts.map +1 -0
- package/dist/runtime.d.mts +6 -11
- package/dist/runtime.d.mts.map +1 -1
- package/dist/runtime.mjs +30 -21
- package/dist/runtime.mjs.map +1 -1
- package/dist/schema-ir.d.mts +1 -1
- package/dist/{schema-verify-BTRGeQWE.d.mts → schema-verify-CpWcSHyM.d.mts} +3 -3
- package/dist/{schema-verify-BTRGeQWE.d.mts.map → schema-verify-CpWcSHyM.d.mts.map} +1 -1
- package/dist/{verify-mongo-schema-CyvUewwP-Dl3QC2wh.mjs → verify-mongo-schema-CyvUewwP-LjL7ZtTU.mjs} +3 -3
- package/dist/{verify-mongo-schema-CyvUewwP-Dl3QC2wh.mjs.map → verify-mongo-schema-CyvUewwP-LjL7ZtTU.mjs.map} +1 -1
- package/dist/wire.d.mts +2 -2
- package/package.json +20 -20
- package/dist/control-adapter-CGIKt9Hq.d.mts +0 -1
- package/dist/dist-Bgk36iLI.mjs +0 -53
- package/dist/dist-Bgk36iLI.mjs.map +0 -1
- package/dist/entity-kinds-CoJfiouk-DMiKGW0u.mjs.map +0 -1
- package/dist/runtime-D_E5N6Ii.d.mts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Codec, CodecCallContext, CodecTrait, DataType, DataTypeParams, DataTypeValue } from "@prisma/orm-framework/components/codec";
|
|
1
|
+
import { AnyCodecDescriptor, Codec, CodecCallContext, CodecDescriptor, CodecTrait, DataType, DataTypeParams, DataTypeValue } from "@prisma/orm-framework/components/codec";
|
|
2
2
|
import { JsonValue } from "@prisma/orm-framework/contract/types";
|
|
3
3
|
//#region ../../../2-mongo-family/1-foundation/mongo-codec/dist/index.d.mts
|
|
4
4
|
//#region src/codecs.d.ts
|
|
@@ -50,6 +50,20 @@ declare function mongoCodec<Id extends string, const TTraits extends readonly Mo
|
|
|
50
50
|
/** Extract the JS application type a Mongo codec's `toWire` takes. `fromWire` returns the same type unless the codec declares a separate `TOutput`. */
|
|
51
51
|
type MongoCodecInput<T> = T extends MongoCodec<string, readonly MongoCodecTrait[], unknown, infer TInput, unknown> ? TInput : never;
|
|
52
52
|
//#endregion
|
|
53
|
+
//#region src/codec-descriptor.d.ts
|
|
54
|
+
interface MongoCodecDescriptorMetadata<Id extends string> {
|
|
55
|
+
readonly traits: readonly CodecTrait[];
|
|
56
|
+
/** Builds the codec for a field's parameters, for a codec whose data type has parameters. */
|
|
57
|
+
readonly withParams?: (params: DataTypeParams) => MongoCodec<Id, readonly CodecTrait[]>;
|
|
58
|
+
readonly renderValueLiteral?: CodecDescriptor['renderValueLiteral'];
|
|
59
|
+
readonly enumRefusal?: string;
|
|
60
|
+
readonly keepsWrittenForm?: true;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* The codec descriptor of a MongoDB codec, which a target or an extension lists in `types.codecTypes.codecDescriptors`. Contract authoring reads its metadata, and the runtime and control stacks take the codec from its factory, so a codec is declared once. The factory hands out `codec` itself, or, given parameters, the codec `withParams` builds for them.
|
|
64
|
+
*/
|
|
65
|
+
declare function mongoCodecDescriptor<Id extends string>(codec: MongoCodec<Id, readonly CodecTrait[]>, metadata: MongoCodecDescriptorMetadata<Id>): CodecDescriptor;
|
|
66
|
+
//#endregion
|
|
53
67
|
//#region src/codec-registry.d.ts
|
|
54
68
|
interface MongoCodecRegistry {
|
|
55
69
|
get(id: string): MongoCodec<string> | undefined;
|
|
@@ -62,6 +76,18 @@ interface MongoCodecRegistry {
|
|
|
62
76
|
* Create a new Mongo codec registry. Inline object literal — no class implementation; the registry is just a private `Map` with the documented surface methods.
|
|
63
77
|
*/
|
|
64
78
|
declare function newMongoCodecRegistry(): MongoCodecRegistry;
|
|
79
|
+
interface MongoCodecContributor {
|
|
80
|
+
readonly id: string;
|
|
81
|
+
readonly types?: {
|
|
82
|
+
readonly codecTypes?: {
|
|
83
|
+
readonly codecDescriptors?: ReadonlyArray<AnyCodecDescriptor>;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* One registry holding the codec of every descriptor in each contributor's `types.codecTypes.codecDescriptors`, such as an execution stack's target, adapter and extensions. A codec whose data type has parameters is registered as its descriptor builds it without parameters. Throws `RUNTIME.DUPLICATE_CODEC` naming both contributors when two contribute the same codec id.
|
|
89
|
+
*/
|
|
90
|
+
declare function assembleMongoCodecRegistry(contributors: readonly MongoCodecContributor[]): MongoCodecRegistry;
|
|
65
91
|
//#endregion
|
|
66
|
-
export {
|
|
67
|
-
//# sourceMappingURL=index-
|
|
92
|
+
export { MongoCodecRegistry as a, mongoCodec as c, MongoCodecInput as i, mongoCodecDescriptor as l, MongoCodecContributor as n, MongoCodecTrait as o, MongoCodecDescriptorMetadata as r, assembleMongoCodecRegistry as s, MongoCodec as t, newMongoCodecRegistry as u };
|
|
93
|
+
//# sourceMappingURL=index-Cfv3XKXM.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-Cfv3XKXM.d.mts","names":[],"sources":["../../../../2-mongo-family/1-foundation/mongo-codec/dist/index.d.mts"],"mappings":";;;;KAGK,kBAAkB;;;;;;UAMb,WAAW,4BAA4B,yBAAyB,6BAA6B,mBAAmB,iBAAiB,kBAAkB,UAAU,gBAAgB,KAAK,MAAM,IAAI,SAAS,OAAO;EACpN,SAAS,MAAM,OAAO,KAAK,mBAAmB,QAAQ;;;;;KAKnD,oBAAoB,WAAW,iBAAiB,cAAc,oBAAoB;EACrF,iBAAiB,OAAO,SAAS;EACjC,mBAAmB,OAAO,gBAAgB;;EAE1C,iBAAiB,OAAO,SAAS;EACjC,kBAAkB,OAAO,gBAAgB;;EAEzC,gBAAgB,OAAO,SAAS;EAChC,kBAAkB,OAAO,gBAAgB;;UAEjC,iBAAiB,mBAAmB,OAAO,QAAQ;EAC3D,QAAQ;;EAER,UAAU;;EAEV,SAAS;EACT,SAAS,OAAO,QAAQ,KAAK,qBAAqB,QAAQ,QAAQ;EAClE,WAAW,MAAM,OAAO,KAAK,qBAAqB,UAAU,QAAQ;;;;;;;;;;;iBAWrD,WAAW,yBAAyB,yBAAyB,iCAAiC,iBAAiB,kBAAkB,QAAQ,iBAAiB,IAAI,OAAO,QAAQ,UAAU,oBAAoB,UAAU,WAAW,IAAI,SAAS,OAAO;;;;iBAIpP,WAAW,yBAAyB,yBAAyB,mBAAmB,OAAO,QAAQ,gBAAgB,QAAQ,QAAQ,iBAAiB,IAAI,OAAO,QAAQ,WAAW,oBAAoB,UAAU,WAAW,IAAI,SAAS,OAAO,QAAQ;;KAE/P,gBAAgB,KAAK,UAAU,4BAA4B,kCAAkC,mBAAmB;;;UAG3G,6BAA6B;WAC5B,iBAAiB;;WAEjB,cAAc,QAAQ,mBAAmB,WAAW,aAAa;WACjE,qBAAqB;WACrB;WACA;;;;;iBAKM,qBAAqB,mBAAmB,OAAO,WAAW,aAAa,eAAe,UAAU,6BAA6B,MAAM;;;UAG1I;EACR,IAAI,aAAa;EACjB,IAAI;EACJ,SAAS,OAAO;GACf,OAAO,aAAa,SAAS;EAC9B,UAAU,iBAAiB;;;;;iBAKZ,yBAAyB;UAChC;WACC;WACA;aACE;eACE,mBAAmB,cAAc;;;;;;;iBAO/B,2BAA2B,uBAAuB,0BAA0B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as CollationOptions } from "./mongodb-types-B4HmhF1S.mjs";
|
|
2
2
|
import { A as MongoIndexKey } from "./mongo-value-set-DAGBOegv-B0Vel8d-.mjs";
|
|
3
|
-
import "./index-
|
|
3
|
+
import "./index-DcQFfwkK.mjs";
|
|
4
4
|
import { IRNodeBase } from "@prisma/orm-framework/components/ir";
|
|
5
5
|
import { DiffableNode } from "@prisma/orm-framework/components/control";
|
|
6
6
|
//#region ../../../2-mongo-family/3-tooling/mongo-schema-ir/dist/exports/index.d.mts
|
|
@@ -171,4 +171,4 @@ declare class MongoSchemaCollection extends MongoSchemaIRNode {
|
|
|
171
171
|
type AnyMongoSchemaNode = MongoSchemaIR | MongoSchemaCollection | MongoSchemaCollectionOptions | MongoSchemaIndex | MongoSchemaValidator;
|
|
172
172
|
//#endregion
|
|
173
173
|
export { MongoSchemaCollectionOptionsInput as a, MongoSchemaIndex as c, MongoSchemaValidatorOptions as d, MongoSchemaVisitor as f, MongoSchemaCollectionOptions as i, MongoSchemaIndexOptions as l, MongoSchemaCollection as n, MongoSchemaIR as o, deepEqual as p, MongoSchemaCollectionCtorOptions as r, MongoSchemaIRNode as s, AnyMongoSchemaNode as t, MongoSchemaValidator as u };
|
|
174
|
-
//# sourceMappingURL=index-
|
|
174
|
+
//# sourceMappingURL=index-D21Pb9vL.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-D21Pb9vL.d.mts","names":[],"sources":["../../../../2-mongo-family/3-tooling/mongo-schema-ir/dist/exports/index.d.mts"],"mappings":";;;;;;;;;;;iBASiB,UAAU,YAAY;;;UAG7B;WACC,MAAM,cAAc;WACpB;WACA;WACA;WACA,0BAA0B;WAC1B,qBAAqB;WACrB,YAAY;WACZ,UAAU;WACV;WACA;;cAEG,yBAAyB;WAC5B;WACA;WACA,MAAM,cAAc;WACpB;WACA;WACA;WACA,0BAA0B;WAC1B,qBAAqB;WACrB,YAAY;WACZ,UAAU;WACV;WACA;EACT,YAAY,SAAS;EACrB,OAAO,GAAG,SAAS,mBAAmB,KAAK;;;;cAI/B,sBAAsB;WACzB;;WAEA;WACA,aAAa,cAAc;WAC3B,iBAAiB;mBACT;EACjB,YAAY,aAAa,cAAc;EACvC,OAAO,GAAG,SAAS,mBAAmB,KAAK;EAC3C,WAAW,eAAe;;;;UAIlB;WACC,YAAY;WACZ;WACA;;cAEG,6BAA6B;WAChC;;WAEA;WACA,YAAY;WACZ;WACA;EACT,YAAY,SAAS;EACrB,OAAO,GAAG,SAAS,mBAAmB,KAAK;;;;UAInC,mBAAmB;EAC3B,OAAO,MAAM,gBAAgB;EAC7B,WAAW,MAAM,wBAAwB;EACzC,MAAM,MAAM,mBAAmB;EAC/B,UAAU,MAAM,uBAAuB;EACvC,kBAAkB,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;uBAkBlC,0BAA0B,sBAAsB;WAC5D;oBACS;;oBAEA;WACT,OAAO,GAAG,SAAS,mBAAmB,KAAK;EACpD;EACA,UAAU,OAAO;EACjB,qBAAqB;;;;UAIb;WACC;IACP;IACA;;WAEO;IACP;IACA;IACA;;WAEO,YAAY;WACZ;IACP;;WAEO;IACP;;;cAGU,qCAAqC;WACxC;;WAEA;WACA;IACP;IACA;;WAEO;IACP;IACA;IACA;;WAEO,YAAY;WACZ;IACP;;WAEO;IACP;;EAEF,YAAY,SAAS;EACrB,OAAO,GAAG,SAAS,mBAAmB,KAAK;;;;UAInC;WACC;WACA,UAAU,cAAc;WACxB,YAAY;WACZ,UAAU;;cAEP,8BAA8B;WACjC;WACA;WACA;WACA,SAAS,cAAc;WACvB,YAAY;WACZ,UAAU;EACnB,YAAY,SAAS;EACrB,OAAO,GAAG,SAAS,mBAAmB,KAAK;;;;KAIxC,qBAAqB,gBAAgB,wBAAwB,+BAA+B,mBAAmB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as CreateCollectionOptions, r as CreateIndexesOptions, t as CollationOptions } from "./mongodb-types-B4HmhF1S.mjs";
|
|
2
2
|
import { j as MongoIndexKeyDirection } from "./mongo-value-set-DAGBOegv-B0Vel8d-.mjs";
|
|
3
3
|
import { i as Document, p as RawPipeline } from "./index-9DDQlC5U.mjs";
|
|
4
|
-
import { a as CollModOptions, l as CreateIndexOptions, s as CreateCollectionOptions$1 } from "./control-
|
|
5
|
-
import "./execution-
|
|
4
|
+
import { a as CollModOptions, l as CreateIndexOptions, s as CreateCollectionOptions$1 } from "./control-0YmjHGNw.mjs";
|
|
5
|
+
import "./execution-CGierEKK.mjs";
|
|
6
6
|
//#region ../../../2-mongo-family/6-transport/mongo-wire/dist/index.d.mts
|
|
7
7
|
//#region src/wire-commands.d.ts
|
|
8
8
|
declare abstract class MongoWireCommand {
|
|
@@ -139,4 +139,4 @@ type AnyMongoWireCommand = AnyMongoDmlWireCommand | AnyMongoDdlWireCommand;
|
|
|
139
139
|
declare function isDdlWireCommand(cmd: AnyMongoWireCommand): cmd is AnyMongoDdlWireCommand;
|
|
140
140
|
//#endregion
|
|
141
141
|
export { UpdateManyWireCommand as _, CollModWireCommand as a, DeleteManyWireCommand as c, DropIndexWireCommand as d, FindOneAndDeleteWireCommand as f, RenameCollectionWireCommand as g, InsertOneWireCommand as h, AnyMongoWireCommand as i, DeleteOneWireCommand as l, InsertManyWireCommand as m, AnyMongoDdlWireCommand as n, CreateCollectionWireCommand as o, FindOneAndUpdateWireCommand as p, AnyMongoDmlWireCommand as r, CreateIndexWireCommand as s, AggregateWireCommand as t, DropCollectionWireCommand as u, UpdateOneWireCommand as v, isDdlWireCommand as y };
|
|
142
|
-
//# sourceMappingURL=index-
|
|
142
|
+
//# sourceMappingURL=index-DXhwK4nr.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-DXhwK4nr.d.mts","names":[],"sources":["../../../../2-mongo-family/6-transport/mongo-wire/dist/index.d.mts"],"mappings":";;;;;;;uBAKuB;oBACH;WACT;YACC,YAAY;YACZ;;cAEE,6BAA6B;WAChC;WACA,UAAU;EACnB,YAAY,oBAAoB,UAAU;;cAE9B,6BAA6B;WAChC;WACA,QAAQ;WACR,QAAQ,WAAW,cAAc;WACjC;EACT,YAAY,oBAAoB,QAAQ,UAAU,QAAQ,WAAW,cAAc,WAAW;;cAElF,6BAA6B;WAChC;WACA,QAAQ;EACjB,YAAY,oBAAoB,QAAQ;;cAE5B,8BAA8B;WACjC;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A4B,8BAA8B,uBAAuB;KACjK,sBAAsB,yBAAyB;iBACnC,iBAAiB,KAAK,sBAAsB,OAAO"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { A as MongoIndexKey, B as MongoModelStorage, C as MongoContract, Q as MongoValidator, T as MongoIndex, at as MongoValueSetInput, it as MongoValueSet, k as MongoIndexInput, nt as MongoValueObject, rt as MongoValueObjectInput, v as MongoCollection, y as MongoCollectionInput } from "./mongo-value-set-DAGBOegv-B0Vel8d-.mjs";
|
|
2
|
+
import { RelationKeys, RelationNamesOf, Scalars, Shape, ShapeSpec } from "@prisma/orm-framework/components/runtime";
|
|
2
3
|
import { TypeLookups } from "@prisma/orm-framework/components/codec";
|
|
3
4
|
import { DefaultNamespaceEntries, IRNodeBase, Namespace, NamespaceBase, NamespacedEntities, SingleNamespaceView, Storage } from "@prisma/orm-framework/components/ir";
|
|
4
5
|
import { ApplicationDomain, ContractEmbedRelation, ContractEnum, ContractField, ContractModel, ContractModelBase, ContractRelation, ContractToOneRelation, ContractValueObject, ControlPolicy, JsonValue, StorageBase, StorageHashBase } from "@prisma/orm-framework/contract/types";
|
|
5
6
|
import { Type } from "arktype";
|
|
6
|
-
import { RelationKeys, RelationNamesOf, Scalars, Shape, ShapeSpec } from "@prisma/orm-framework/components/runtime";
|
|
7
7
|
//#region ../../../2-mongo-family/1-foundation/mongo-contract/dist/index.d.mts
|
|
8
8
|
//#region src/ir/mongo-storage.d.ts
|
|
9
9
|
type MongoNamespaceEntries = Readonly<Record<string, Readonly<Record<string, unknown>>>> & {
|
|
@@ -382,4 +382,4 @@ declare function validatorRootShapesOf(jsonSchema: unknown): readonly ValidatorR
|
|
|
382
382
|
declare function validatorFieldNamesOf(jsonSchema: unknown): ReadonlySet<string>;
|
|
383
383
|
//#endregion
|
|
384
384
|
export { ownDocumentIdFieldOf as $, ValidatorShape as A, createMongoNamespaceEnvelopeSchema as B, RelationKeys as C, ShapeSpec as D, Shape as E, canonicalize as F, fieldBsonTypeRefusalOf as G, defaultMongoStorageNamespaceId as H, collectionControlPoliciesOf as I, isEmbedRelation as J, hasOwnFieldStoredAs as K, collectionControlPolicyOf as L, buildMongoContractView as M, buildMongoNamespace as N, StorageValueSetSchema as O, buildMongoStorage as P, mongoValueSetsOf as Q, collectionRootModelsOf as R, PolymorphicIndexScope as S, Scalars as T, deriveCollectionValidators as U, defaultMongoDomainNamespaceId as V, documentIdRefusalReason as W, mongoContractRefusalsOf as X, modelAndBasesOf as Y, mongoModelsOf as Z, MongoNamespaceEntries as _, FieldBsonTypeRefusal as a, storedNamesOf as at, MongoToOneRelationFields as b, MONGO_INDEX_OPTION_KEYS as c, validatorEnumMemberRefusalOf as ct, MongoContractRefusalsInput as d, validatorRootShapesOf as dt, ownEmbedStoredNamesOf as et, MongoContractSchema as f, valueObjectStoredNamesOf as ft, MongoNamespace as g, MongoIndexOptionKey as h, DOCUMENT_ID as i, resolveMongoToOneRelationFields as it, applyPolymorphicScopeToMongoIndex as j, ValidatorRootShape as k, MongoContractAccessors as l, validatorEnumRefusalOf as lt, MongoIndexLookupInput as m, CollectionControlPolicies as n, ownStoredNameOf as nt, FieldOwner as o, unsupportedStoredNameReason as ot, MongoContractView as p, indexLookupKey as q, CollectionValidatorsInput as r, ownStoredNamesOf as rt, FieldValueSets as s, validateMongoStorage as st, ApplyScopeResult as t, ownFieldStoredAs as tt, MongoContractRefusal as u, validatorFieldNamesOf as ut, MongoStorage as v, RelationNamesOf as w, MongoUnboundNamespace as x, MongoStorageInput as y, createMongoContractSchema as z };
|
|
385
|
-
//# sourceMappingURL=index-
|
|
385
|
+
//# sourceMappingURL=index-DcQFfwkK.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-DcQFfwkK.d.mts","names":[],"sources":["../../../../2-mongo-family/1-foundation/mongo-contract/dist/index.d.mts"],"mappings":";;;;;;;;KAOK,wBAAwB,SAAS,eAAe,SAAS;WACnD,aAA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AAc,oBAAoB,UAAU,wBAAwB;;iBAE3G,gBAAgB,UAAU,mBAAmB,YAAY;;;;cAI5D;KACT,mBAAmB,KAAK,cAAc;;iBAE1B,4BAA4B;;iBAE5B,iBAAiB,OAAO,mBAAmB,SAAS;;iBAEpD,yBAAyB,aAAa,KAAK,iCAAiC,SAAS;;iBAErF,gBAAgB,OAAO,kBAAkB;;iBAEzC,iBAAiB,OAAO,kBAAkB;;iBAE1C,oBAAoB,OAAO,kBAAkB;;iBAE7C,qBAAqB,OAAO;WAClC;WACA,OAAO;;;;;iBAKD,sBAAsB,OAAO,KAAK,cAAc,+CAA+C,SAAS;;iBAExG,cAAc,QAAQ,SAAS,eAAe,mBAAmB,KAAK,cAAc,+BAA+B,oBAAoB,SAAS;;;iBAGhJ,qBAAqB,UAAU;;;;;;iBAM/B,uBAAuB;;;;iBAIvB,6BAA6B,8BAA8B;;;;UAIlE;WACC,YAAY,SAAS;WACrB;;;UAGD,2BAA2B;WAC1B,mBAAmB;;;;;iBAKb,sBAAsB,+BAA+B;;iBAErD,sBAAsB,sBAAsB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { rt as MongoQueryPlan } from "./query-plan-C7sSU3Al-wzsJKtml.mjs";
|
|
2
|
-
import { t as AnyMongoDdlCommand } from "./control-
|
|
3
|
-
import "./execution-
|
|
4
|
-
import { i as AnyMongoWireCommand, n as AnyMongoDdlWireCommand, r as AnyMongoDmlWireCommand } from "./index-
|
|
2
|
+
import { t as AnyMongoDdlCommand } from "./control-0YmjHGNw.mjs";
|
|
3
|
+
import "./execution-CGierEKK.mjs";
|
|
4
|
+
import { i as AnyMongoWireCommand, n as AnyMongoDdlWireCommand, r as AnyMongoDmlWireCommand } from "./index-DXhwK4nr.mjs";
|
|
5
5
|
import { CodecCallContext } from "@prisma/orm-framework/components/codec";
|
|
6
6
|
import { ControlDriverInstance } from "@prisma/orm-framework/components/control";
|
|
7
7
|
import { Db } from "mongodb";
|
|
@@ -152,4 +152,4 @@ interface MongoControlDriverInstance extends ControlDriverInstance<'mongo', 'mon
|
|
|
152
152
|
}
|
|
153
153
|
//#endregion
|
|
154
154
|
export { MongoLoweredDraft as a, MongoDriver as i, MongoControlDriverInstance as n, MongoQueryable as o, MongoDdlPlan as r, MongoAdapter as t };
|
|
155
|
-
//# sourceMappingURL=index-
|
|
155
|
+
//# sourceMappingURL=index-TNRD-MRI.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-TNRD-MRI.d.mts","names":[],"sources":["../../../../2-mongo-family/6-transport/mongo-lowering/dist/index.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;KAkBK;WACM;WACA;WACA,UAAU;;WAEV;WACA;WACA,WAAW,cAAc;;WAEzB;WACA;WACA,QAAQ;WACR,QAAQ,0BAA0B,cAAc;WAChD;;WAEA;WACA;WACA,QAAQ;WACR,QAAQ,0BAA0B,cAAc;WAChD;;WAEA;WACA;WACA,QAAQ;;WAER;WACA;WACA,QAAQ;;WAER;WACA;WACA,QAAQ;WACR,QAAQ,0BAA0B,cAAc;WAChD;WACA,MAAM;WACN;;WAEA;WACA;WACA,QAAQ;WACR,MAAM;;WAEN;WACA;WACA,UAAU,cAAc;;WAExB;WACA;WACA,UAAU;;WAEV;WACA;WACA,WAAW,cAAc;;WAEzB;WACA;WACA,QAAQ;WACR,QAAQ,0BAA0B,cAAc;;WAEhD;WACA;WACA,QAAQ;WACR,QAAQ,0BAA0B,cAAc;WAChD;;WAEA;WACA;WACA,QAAQ;;WAER;WACA;WACA,QAAQ;;WAER;WACA;WACA,QAAQ;WACR,QAAQ,0BAA0B,cAAc;WAChD;WACA,MAAM;WACN;;WAEA;WACA;WACA,QAAQ;WACR,MAAM;;WAEN;WACA;WACA,UAAU,cAAc;;;UAGzB;WACC,SAAS;;UAEV;EACR,MAAM,MAAM,cAAc,KAAK,mBAAmB,QAAQ;EAC1D,MAAM,MAAM,gBAAgB,KAAK,mBAAmB,QAAQ;EAC5D,MAAM,MAAM,iBAAiB,cAAc,KAAK,mBAAmB,QAAQ;;;;;;;;;;;EAW3E,gBAAgB,MAAM,iBAAiB;;;;;;;;;EASvC,cAAc,OAAO,mBAAmB,KAAK,mBAAmB,QAAQ;;;;UAIhE;EACR,QAAQ,KAAK,aAAa,yBAAyB,cAAc;EACjE,IAAI,aAAa,yBAAyB;;UAElC,YAAY,yBAAyB;EAC7C,QAAQ,SAAS,WAAW;EAC5B,SAAS;;UAED,mCAAmC,yCAAyC;WAC3E,IAAI"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import "./dist-
|
|
2
|
-
import { r as buildMongoContractFromDefinition, u as mergeRedundantIndexes } from "./contract-builder-
|
|
1
|
+
import "./dist-TDWqXC1F.mjs";
|
|
2
|
+
import { r as buildMongoContractFromDefinition, u as mergeRedundantIndexes } from "./contract-builder-CZlnxywD.mjs";
|
|
3
3
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
4
|
+
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
4
5
|
import { crossRef } from "@prisma/orm-framework/contract/types";
|
|
5
6
|
import { InternalError } from "@prisma/orm-framework/utils/internal-error";
|
|
6
7
|
import { assertDefined, invariant } from "@prisma/orm-framework/utils/assertions";
|
|
@@ -9,7 +10,6 @@ import { notOk, ok } from "@prisma/orm-framework/utils/result";
|
|
|
9
10
|
import { resolveToOneRelationNullable } from "@prisma/orm-framework/contract-authoring";
|
|
10
11
|
import { describeDiscriminatorRefusal, enumMemberProblemDiagnostic, instantiateAuthoringEntityType, instantiateAuthoringTypeAlias, instantiateAuthoringTypeConstructor, isAuthoringEntityTypeDescriptor, resolveTypeAliasGenerators } from "@prisma/orm-framework/components/authoring";
|
|
11
12
|
import { claimedBlockKeywords, consumeInvalidFkPairing, enumMemberAttributeDiagnostics, fkRelationPairKey, instantiatePslTypeChoice, isBareTypeConstructor, reportTypeConstructorNotCalled, requiredOneToOneBackrelationDiagnostic, unsupportedBlockDiagnostic } from "@prisma/orm-framework/psl-parser/interpret";
|
|
12
|
-
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
13
13
|
import { bool, contributedTypeAliasOf, contributedTypeOf, createPslDiagnosticCollector, diagnosticSource, entityRef, fieldAttribute, fieldRef, funcCall, generatorAttributeSpec, identifier, int, interpretAttribute, interpretExtensionBlocks, isContributedTypeChoice, json, list, mapPslDiagnostics, modelAttribute, nodePslSpan, num, oneOf, optional, record, referencedFieldRef, refuseRepeatedTypeAliasAttributes, resolveTypeAliases, str, typeAliasSpecContext, typeAttributeSpecContextOfField, typeAttributeSubjectLabel, typeGeneratorAttributeSpec, typeReferenceNode, writtenScalar } from "@prisma/orm-framework/psl-parser";
|
|
14
14
|
//#region ../../../2-mongo-family/2-authoring/contract-psl/dist/interpreter-BX0gy2Yu.mjs
|
|
15
15
|
function buildModelAttributeCtx(input) {
|
|
@@ -1801,4 +1801,4 @@ function interpretPslDocumentToMongoContract(input) {
|
|
|
1801
1801
|
//#endregion
|
|
1802
1802
|
export { pairMongoBackRelations as i, interpretPslDocumentToMongoContract as n, mongoAttributeSpecs as r, describeUnsupportedMongoAttribute as t };
|
|
1803
1803
|
|
|
1804
|
-
//# sourceMappingURL=interpreter-BX0gy2Yu-
|
|
1804
|
+
//# sourceMappingURL=interpreter-BX0gy2Yu-vTz2kU_w.mjs.map
|