@prisma/orm-family-mongo 8.0.0-rc.23-dev.6 → 8.0.0-rc.23-dev.7
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-DmreXzbK.d.mts → contract-builder-Rr0e9YnQ.d.mts} +4 -4
- package/dist/{contract-builder-DmreXzbK.d.mts.map → contract-builder-Rr0e9YnQ.d.mts.map} +1 -1
- package/dist/contract-ts.d.mts +1 -1
- package/dist/contract-ts__contract-builder.d.mts +1 -1
- package/dist/contract.d.mts +3 -3
- package/dist/contract__entity-kinds.d.mts +1 -1
- package/dist/{control-RY2G6cin.mjs → control-Bhya-_wl.mjs} +2 -2
- package/dist/{control-RY2G6cin.mjs.map → control-Bhya-_wl.mjs.map} +1 -1
- package/dist/{control-CJLG6g2G.d.mts → control-BsOZ6I-N.d.mts} +4 -4
- package/dist/{control-CJLG6g2G.d.mts.map → control-BsOZ6I-N.d.mts.map} +1 -1
- package/dist/{control-CvUovwse.d.mts → control-CKsiMx4D.d.mts} +7 -7
- package/dist/{control-CvUovwse.d.mts.map → control-CKsiMx4D.d.mts.map} +1 -1
- package/dist/{control-adapter-BheElqfe-DxUxWoeq.d.mts → control-adapter-BheElqfe-38zaUL-r.d.mts} +4 -4
- package/dist/{control-adapter-BheElqfe-DxUxWoeq.d.mts.map → control-adapter-BheElqfe-38zaUL-r.d.mts.map} +1 -1
- package/dist/control-adapter-CPwhJ0SM.d.mts +1 -0
- package/dist/dist-Ch5-hxEN.mjs +37 -0
- package/dist/dist-Ch5-hxEN.mjs.map +1 -0
- package/dist/{dist-BXMjjRsI.mjs → dist-DJzrbVGM.mjs} +3 -3
- package/dist/{dist-BXMjjRsI.mjs.map → dist-DJzrbVGM.mjs.map} +1 -1
- package/dist/{execution-CE-CNrFY.mjs → execution-BFjGtmf9.mjs} +7 -3
- package/dist/execution-BFjGtmf9.mjs.map +1 -0
- package/dist/{execution-B3Fogex9.d.mts → execution-CuluvtwX.d.mts} +12 -6
- package/dist/execution-CuluvtwX.d.mts.map +1 -0
- package/dist/family.d.mts +9 -9
- package/dist/family.mjs +1 -1
- package/dist/family__control-adapter.d.mts +2 -2
- package/dist/family__control.d.mts +1 -1
- package/dist/family__control.mjs +1 -1
- package/dist/family__ir.d.mts +2 -2
- package/dist/family__migration.d.mts +1 -1
- package/dist/family__runtime.d.mts +2 -2
- package/dist/family__schema-verify.d.mts +1 -1
- package/dist/{field-accessor-0oUt6RZC-D2x7hCuJ.mjs → field-accessor-0oUt6RZC-D2rZeXb8.mjs} +2 -2
- package/dist/{field-accessor-0oUt6RZC-D2x7hCuJ.mjs.map → field-accessor-0oUt6RZC-D2rZeXb8.mjs.map} +1 -1
- package/dist/{field-accessor-CqKt9hxI-CI_pUKZN.d.mts → field-accessor-27PyGcu4-OcIwmL34.d.mts} +11 -8
- package/dist/field-accessor-27PyGcu4-OcIwmL34.d.mts.map +1 -0
- package/dist/{index-D6MtleDl.d.mts → index-CZ-tX2cL.d.mts} +3 -3
- package/dist/{index-D6MtleDl.d.mts.map → index-CZ-tX2cL.d.mts.map} +1 -1
- package/dist/{index-BrDXnKtf.d.mts → index-CgKJfbIP.d.mts} +7 -13
- package/dist/index-CgKJfbIP.d.mts.map +1 -0
- package/dist/{index-9DDQlC5U.d.mts → index-Cvd8czxA.d.mts} +14 -3
- package/dist/index-Cvd8czxA.d.mts.map +1 -0
- package/dist/{index-BK3HyX9U.d.mts → index-fnk4bdbx.d.mts} +5 -5
- package/dist/{index-BK3HyX9U.d.mts.map → index-fnk4bdbx.d.mts.map} +1 -1
- package/dist/{index-JpsaTpKi.d.mts → index-hugPlQ5w.d.mts} +2 -2
- package/dist/{index-JpsaTpKi.d.mts.map → index-hugPlQ5w.d.mts.map} +1 -1
- package/dist/{ir-BzKq60Lv.d.mts → ir-B_tAgqIO.d.mts} +4 -4
- package/dist/{ir-BzKq60Lv.d.mts.map → ir-B_tAgqIO.d.mts.map} +1 -1
- package/dist/lowering.d.mts +1 -1
- package/dist/{migration-VHZaMXZ5.d.mts → migration-C8VlQx5N.d.mts} +5 -5
- package/dist/{migration-VHZaMXZ5.d.mts.map → migration-C8VlQx5N.d.mts.map} +1 -1
- package/dist/{mongo-contract-view-AnejqfrQ-CIb7qlMp.d.mts → mongo-contract-view-AnejqfrQ-DmXEDnxi.d.mts} +3 -3
- package/dist/{mongo-contract-view-AnejqfrQ-CIb7qlMp.d.mts.map → mongo-contract-view-AnejqfrQ-DmXEDnxi.d.mts.map} +1 -1
- package/dist/{mongo-value-set-bK4eBlxO-BCGb8sSL.d.mts → mongo-value-set-ChzpEiPK-BVtp7f-a.d.mts} +11 -3
- package/dist/mongo-value-set-ChzpEiPK-BVtp7f-a.d.mts.map +1 -0
- package/dist/orm.d.mts +17 -23
- package/dist/orm.d.mts.map +1 -1
- package/dist/orm.mjs +44 -23
- package/dist/orm.mjs.map +1 -1
- package/dist/query-ast.d.mts +5 -5
- package/dist/query-ast.mjs +1 -1
- package/dist/query-ast__control.d.mts +3 -3
- package/dist/query-ast__execution.d.mts +3 -3
- package/dist/query-ast__execution.mjs +1 -1
- package/dist/query-builder.d.mts +12 -8
- package/dist/query-builder.d.mts.map +1 -1
- package/dist/query-builder.mjs +2 -2
- package/dist/query-builder__contract-free.d.mts +6 -6
- package/dist/query-builder__contract-free.mjs +2 -2
- package/dist/{query-plan-C7sSU3Al-wzsJKtml.d.mts → query-plan-Dtyaa2z2-BD60dwyV.d.mts} +7 -7
- package/dist/query-plan-Dtyaa2z2-BD60dwyV.d.mts.map +1 -0
- package/dist/{runtime-Bf-SFBMj.d.mts → runtime-Cx_Sw9eY.d.mts} +2 -2
- package/dist/runtime-Cx_Sw9eY.d.mts.map +1 -0
- package/dist/runtime.d.mts +51 -18
- package/dist/runtime.d.mts.map +1 -1
- package/dist/runtime.mjs +292 -167
- package/dist/runtime.mjs.map +1 -1
- package/dist/schema-ir.d.mts +1 -1
- package/dist/{schema-verify-BJAMkVFt.d.mts → schema-verify-BMTEmTLS.d.mts} +4 -4
- package/dist/{schema-verify-BJAMkVFt.d.mts.map → schema-verify-BMTEmTLS.d.mts.map} +1 -1
- package/dist/value.d.mts +2 -2
- package/dist/value.mjs +2 -2
- package/dist/wire.d.mts +2 -2
- package/package.json +20 -20
- package/dist/control-adapter-DfRH_2nl.d.mts +0 -1
- package/dist/dist-CO2arS1K.mjs +0 -21
- package/dist/dist-CO2arS1K.mjs.map +0 -1
- package/dist/execution-B3Fogex9.d.mts.map +0 -1
- package/dist/execution-CE-CNrFY.mjs.map +0 -1
- package/dist/field-accessor-CqKt9hxI-CI_pUKZN.d.mts.map +0 -1
- package/dist/index-9DDQlC5U.d.mts.map +0 -1
- package/dist/index-BrDXnKtf.d.mts.map +0 -1
- package/dist/mongo-value-set-bK4eBlxO-BCGb8sSL.d.mts.map +0 -1
- package/dist/query-plan-C7sSU3Al-wzsJKtml.d.mts.map +0 -1
- package/dist/runtime-Bf-SFBMj.d.mts.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as MongoCodec } from "./index-Cfv3XKXM.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./query-plan-
|
|
5
|
-
import { MutationDefaults } from "@prisma/orm-framework/components/runtime";
|
|
2
|
+
import { T as MongoContract } from "./mongo-value-set-ChzpEiPK-BVtp7f-a.mjs";
|
|
3
|
+
import "./index-hugPlQ5w.mjs";
|
|
4
|
+
import { rt as MongoQueryPlan } from "./query-plan-Dtyaa2z2-BD60dwyV.mjs";
|
|
5
|
+
import { AsyncIterableResult, MutationDefaults, RuntimeStatementStats } from "@prisma/orm-framework/components/runtime";
|
|
6
6
|
import { EnumMemberCodecFor } from "@prisma/orm-framework/contract/enum-accessor";
|
|
7
7
|
//#region ../../../2-mongo-family/4-query/query-ast/dist/exports/execution.d.mts
|
|
8
8
|
//#region src/execution-context.d.ts
|
|
@@ -27,6 +27,12 @@ interface MongoExecutionContext<TContract extends MongoContract = MongoContract>
|
|
|
27
27
|
readonly codecs: MongoCodecLookup;
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
30
|
+
//#region src/query-executor.d.ts
|
|
31
|
+
interface MongoQueryExecutor {
|
|
32
|
+
query<Row>(plan: MongoQueryPlan<Row>): AsyncIterableResult<Row>;
|
|
33
|
+
execute(plan: MongoQueryPlan): Promise<RuntimeStatementStats>;
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
30
36
|
//#region src/result-types.d.ts
|
|
31
37
|
/**
|
|
32
38
|
* Canonical command result types for the MongoDB primitive language.
|
|
@@ -75,5 +81,5 @@ type DeleteOneResult = DeleteResult;
|
|
|
75
81
|
/** Alias — `deleteMany` yields the same shape as `deleteOne`. */
|
|
76
82
|
type DeleteManyResult = DeleteResult;
|
|
77
83
|
//#endregion
|
|
78
|
-
export { InsertOneResult as a,
|
|
79
|
-
//# sourceMappingURL=execution-
|
|
84
|
+
export { InsertOneResult as a, MongoQueryExecutor as c, UpdateResult as d, enumMemberCodecFor as f, InsertManyResult as i, UpdateManyResult as l, DeleteOneResult as n, MongoCodecLookup as o, DeleteResult as r, MongoExecutionContext as s, DeleteManyResult as t, UpdateOneResult as u };
|
|
85
|
+
//# sourceMappingURL=execution-CuluvtwX.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-CuluvtwX.d.mts","names":[],"sources":["../../../../2-mongo-family/4-query/query-ast/dist/exports/execution.d.mts"],"mappings":";;;;;;;;;;;;;UAWU;EACR,IAAI,aAAa;EACjB,IAAI;;;iBAGW,mBAAmB,QAAQ,mBAAmB;;;;;;UAMrD,sBAAsB,kBAAkB,gBAAgB,uBAAuB;WAC9E,UAAU;WACV,QAAQ;;;;UAIT;EACR,MAAM,KAAK,MAAM,eAAe,OAAO,oBAAoB;EAC3D,QAAQ,MAAM,iBAAiB,QAAQ;;;;;;;;;;;;;UAa/B;WACC;;WAEA;;UAED;WACC,aAAa;WACb;;WAEA,WAAW;;;;;;;;UAQZ;WACC;WACA;WACA;WACA;;;KAGN,kBAAkB;;KAElB,mBAAmB;;;;UAId;WACC;;;KAGN,kBAAkB;;KAElB,mBAAmB"}
|
package/dist/family.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { U as defaultMongoStorageNamespaceId, V as defaultMongoDomainNamespaceId } from "./index-
|
|
2
|
-
import { i as MongoRunnerDependencies, n as MongoControlAdapter, r as MongoControlAdapterDescriptor, t as MarkerOperations } from "./control-adapter-BheElqfe-
|
|
3
|
-
import { a as canonicalizeSchemasForVerification, c as diffMongoSchemas, d as mongoFamilyDescriptor, f as mongoOperationsToPreview, i as MongoControlTargetDescriptor, l as fieldRewriteOf, n as MongoControlExtensionDescriptor, o as contractToMongoSchemaIR, r as MongoControlFamilyInstance, s as createMongoFamilyInstance, t as FieldRewrite, u as formatMongoOperations } from "./control-
|
|
4
|
-
import "./control-adapter-
|
|
5
|
-
import { t as MongoContractView$1 } from "./mongo-contract-view-AnejqfrQ-
|
|
6
|
-
import { n as MongoContractSerializerBase, r as MongoSchemaVerifierBase, t as MongoContractSerializer } from "./ir-
|
|
7
|
-
import { t as MongoMigration } from "./migration-
|
|
1
|
+
import { U as defaultMongoStorageNamespaceId, V as defaultMongoDomainNamespaceId } from "./index-hugPlQ5w.mjs";
|
|
2
|
+
import { i as MongoRunnerDependencies, n as MongoControlAdapter, r as MongoControlAdapterDescriptor, t as MarkerOperations } from "./control-adapter-BheElqfe-38zaUL-r.mjs";
|
|
3
|
+
import { a as canonicalizeSchemasForVerification, c as diffMongoSchemas, d as mongoFamilyDescriptor, f as mongoOperationsToPreview, i as MongoControlTargetDescriptor, l as fieldRewriteOf, n as MongoControlExtensionDescriptor, o as contractToMongoSchemaIR, r as MongoControlFamilyInstance, s as createMongoFamilyInstance, t as FieldRewrite, u as formatMongoOperations } from "./control-CKsiMx4D.mjs";
|
|
4
|
+
import "./control-adapter-CPwhJ0SM.mjs";
|
|
5
|
+
import { t as MongoContractView$1 } from "./mongo-contract-view-AnejqfrQ-DmXEDnxi.mjs";
|
|
6
|
+
import { n as MongoContractSerializerBase, r as MongoSchemaVerifierBase, t as MongoContractSerializer } from "./ir-B_tAgqIO.mjs";
|
|
7
|
+
import { t as MongoMigration } from "./migration-C8VlQx5N.mjs";
|
|
8
8
|
import { r as mongoFamilyPslBlockDescriptors, t as mongoFamilyEntityTypes } from "./pack-WQox6nGF.mjs";
|
|
9
|
-
import { t as timestampNowRuntimeGenerator } from "./runtime-
|
|
10
|
-
import { n as verifyMongoSchema, t as VerifyMongoSchemaOptions } from "./schema-verify-
|
|
9
|
+
import { t as timestampNowRuntimeGenerator } from "./runtime-Cx_Sw9eY.mjs";
|
|
10
|
+
import { n as verifyMongoSchema, t as VerifyMongoSchemaOptions } from "./schema-verify-BMTEmTLS.mjs";
|
|
11
11
|
export { type FieldRewrite, type MarkerOperations, MongoMigration as Migration, MongoContractSerializer, MongoContractSerializerBase, MongoContractView$1 as MongoContractView, type MongoControlAdapter, type MongoControlAdapterDescriptor, type MongoControlExtensionDescriptor, type MongoControlFamilyInstance, type MongoControlTargetDescriptor, type MongoRunnerDependencies, MongoSchemaVerifierBase, type VerifyMongoSchemaOptions, canonicalizeSchemasForVerification, contractToMongoSchemaIR, createMongoFamilyInstance, defaultMongoDomainNamespaceId, defaultMongoStorageNamespaceId, diffMongoSchemas, fieldRewriteOf, formatMongoOperations, mongoFamilyDescriptor, mongoFamilyEntityTypes, mongoFamilyPslBlockDescriptors, mongoOperationsToPreview, timestampNowRuntimeGenerator, verifyMongoSchema };
|
package/dist/family.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { g as defaultMongoDomainNamespaceId, v as defaultMongoStorageNamespaceId
|
|
|
2
2
|
import { i as verifyMongoSchema, n as contractToMongoSchemaIR, r as diffMongoSchemas, t as canonicalizeSchemasForVerification } from "./verify-mongo-schema-D8rznxzZ-CjYf39zu.mjs";
|
|
3
3
|
import { n as mongoFamilyPslBlockDescriptors, t as mongoFamilyEntityTypes } from "./authoring-entity-types-qeRu8r5L-kYG8jSMg.mjs";
|
|
4
4
|
import { n as MongoContractSerializerBase, t as MongoContractSerializer } from "./mongo-contract-serializer-BBknnHWy-DAzm09wB.mjs";
|
|
5
|
-
import { a as mongoOperationsToPreview, i as mongoFamilyDescriptor, n as fieldRewriteOf, r as formatMongoOperations, t as createMongoFamilyInstance } from "./control-
|
|
5
|
+
import { a as mongoOperationsToPreview, i as mongoFamilyDescriptor, n as fieldRewriteOf, r as formatMongoOperations, t as createMongoFamilyInstance } from "./control-Bhya-_wl.mjs";
|
|
6
6
|
import { t as MongoContractView$1 } from "./mongo-contract-view-CF5trX6R-BIF8ciuY.mjs";
|
|
7
7
|
import { t as MongoSchemaVerifierBase } from "./ir-Bm8xm1eu.mjs";
|
|
8
8
|
import { t as MongoMigration } from "./migration-LHRzvIrb.mjs";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as MongoRunnerDependencies, n as MongoControlAdapter, r as MongoControlAdapterDescriptor, t as MarkerOperations } from "./control-adapter-BheElqfe-
|
|
2
|
-
import "./control-adapter-
|
|
1
|
+
import { i as MongoRunnerDependencies, n as MongoControlAdapter, r as MongoControlAdapterDescriptor, t as MarkerOperations } from "./control-adapter-BheElqfe-38zaUL-r.mjs";
|
|
2
|
+
import "./control-adapter-CPwhJ0SM.mjs";
|
|
3
3
|
export type { MarkerOperations, MongoControlAdapter, MongoControlAdapterDescriptor, MongoRunnerDependencies };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as canonicalizeSchemasForVerification, c as diffMongoSchemas, d as mongoFamilyDescriptor, f as mongoOperationsToPreview, i as MongoControlTargetDescriptor, l as fieldRewriteOf, n as MongoControlExtensionDescriptor, o as contractToMongoSchemaIR, r as MongoControlFamilyInstance, s as createMongoFamilyInstance, t as FieldRewrite, u as formatMongoOperations } from "./control-
|
|
1
|
+
import { a as canonicalizeSchemasForVerification, c as diffMongoSchemas, d as mongoFamilyDescriptor, f as mongoOperationsToPreview, i as MongoControlTargetDescriptor, l as fieldRewriteOf, n as MongoControlExtensionDescriptor, o as contractToMongoSchemaIR, r as MongoControlFamilyInstance, s as createMongoFamilyInstance, t as FieldRewrite, u as formatMongoOperations } from "./control-CKsiMx4D.mjs";
|
|
2
2
|
export { type FieldRewrite, type MongoControlExtensionDescriptor, type MongoControlFamilyInstance, type MongoControlTargetDescriptor, canonicalizeSchemasForVerification, contractToMongoSchemaIR, createMongoFamilyInstance, diffMongoSchemas, fieldRewriteOf, formatMongoOperations, mongoFamilyDescriptor, mongoOperationsToPreview };
|
package/dist/family__control.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as contractToMongoSchemaIR, r as diffMongoSchemas, t as canonicalizeSchemasForVerification } from "./verify-mongo-schema-D8rznxzZ-CjYf39zu.mjs";
|
|
2
|
-
import { a as mongoOperationsToPreview, i as mongoFamilyDescriptor, n as fieldRewriteOf, r as formatMongoOperations, t as createMongoFamilyInstance } from "./control-
|
|
2
|
+
import { a as mongoOperationsToPreview, i as mongoFamilyDescriptor, n as fieldRewriteOf, r as formatMongoOperations, t as createMongoFamilyInstance } from "./control-Bhya-_wl.mjs";
|
|
3
3
|
export { canonicalizeSchemasForVerification, contractToMongoSchemaIR, createMongoFamilyInstance, diffMongoSchemas, fieldRewriteOf, formatMongoOperations, mongoFamilyDescriptor, mongoOperationsToPreview };
|
package/dist/family__ir.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as MongoContractView$1 } from "./mongo-contract-view-AnejqfrQ-
|
|
2
|
-
import { n as MongoContractSerializerBase, r as MongoSchemaVerifierBase, t as MongoContractSerializer } from "./ir-
|
|
1
|
+
import { t as MongoContractView$1 } from "./mongo-contract-view-AnejqfrQ-DmXEDnxi.mjs";
|
|
2
|
+
import { n as MongoContractSerializerBase, r as MongoSchemaVerifierBase, t as MongoContractSerializer } from "./ir-B_tAgqIO.mjs";
|
|
3
3
|
export { MongoContractSerializer, MongoContractSerializerBase, MongoContractView$1 as MongoContractView, MongoSchemaVerifierBase };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MongoMigration } from "./migration-
|
|
1
|
+
import { t as MongoMigration } from "./migration-C8VlQx5N.mjs";
|
|
2
2
|
export { MongoMigration as Migration };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { U as defaultMongoStorageNamespaceId, V as defaultMongoDomainNamespaceId } from "./index-
|
|
2
|
-
import { t as timestampNowRuntimeGenerator } from "./runtime-
|
|
1
|
+
import { U as defaultMongoStorageNamespaceId, V as defaultMongoDomainNamespaceId } from "./index-hugPlQ5w.mjs";
|
|
2
|
+
import { t as timestampNowRuntimeGenerator } from "./runtime-Cx_Sw9eY.mjs";
|
|
3
3
|
export { defaultMongoDomainNamespaceId, defaultMongoStorageNamespaceId, timestampNowRuntimeGenerator };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as verifyMongoSchema, t as VerifyMongoSchemaOptions } from "./schema-verify-
|
|
1
|
+
import { n as verifyMongoSchema, t as VerifyMongoSchemaOptions } from "./schema-verify-BMTEmTLS.mjs";
|
|
2
2
|
export { type VerifyMongoSchemaOptions, verifyMongoSchema };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as MongoFieldFilter, i as MongoExprFilter, r as MongoExistsExpr } from "./filter-expressions-Uo8ZdzwB-53qnqceS.mjs";
|
|
2
|
-
import { I as MongoReplaceRootStage, P as MongoProjectStage, c as MongoAddFieldsStage, f as MongoAggFieldRef } from "./execution-
|
|
2
|
+
import { I as MongoReplaceRootStage, P as MongoProjectStage, c as MongoAddFieldsStage, f as MongoAggFieldRef } from "./execution-BFjGtmf9.mjs";
|
|
3
3
|
import { structuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
4
4
|
import { InternalError } from "@prisma/orm-framework/utils/internal-error";
|
|
5
5
|
//#region ../../../2-mongo-family/5-query-builders/query-builder/dist/field-accessor-0oUt6RZC.mjs
|
|
@@ -231,4 +231,4 @@ function createFieldAccessor() {
|
|
|
231
231
|
//#endregion
|
|
232
232
|
export { resolveUpdaterResult as i, expr as n, ormError as r, createFieldAccessor as t };
|
|
233
233
|
|
|
234
|
-
//# sourceMappingURL=field-accessor-0oUt6RZC-
|
|
234
|
+
//# sourceMappingURL=field-accessor-0oUt6RZC-D2rZeXb8.mjs.map
|
package/dist/{field-accessor-0oUt6RZC-D2x7hCuJ.mjs.map → field-accessor-0oUt6RZC-D2rZeXb8.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-accessor-0oUt6RZC-D2x7hCuJ.mjs","names":[],"sources":["../../../../2-mongo-family/5-query-builders/query-builder/dist/field-accessor-0oUt6RZC.mjs"],"sourcesContent":["import { MongoAddFieldsStage, MongoAggFieldRef, MongoExistsExpr, MongoExprFilter, MongoFieldFilter, MongoProjectStage, MongoReplaceRootStage } from \"@internal/mongo-query-ast/execution\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/orm-errors.ts\nfunction ormError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/update-ops.ts\nconst setOp = (path, value) => ({\n\top: \"$set\",\n\tpath,\n\tvalue\n});\nconst unsetOp = (path) => ({\n\top: \"$unset\",\n\tpath\n});\nconst renameOp = (path, newName) => ({\n\top: \"$rename\",\n\tpath,\n\tnewName\n});\nconst incOp = (path, amount) => ({\n\top: \"$inc\",\n\tpath,\n\tamount\n});\nconst mulOp = (path, factor) => ({\n\top: \"$mul\",\n\tpath,\n\tfactor\n});\nconst minOp = (path, value) => ({\n\top: \"$min\",\n\tpath,\n\tvalue\n});\nconst maxOp = (path, value) => ({\n\top: \"$max\",\n\tpath,\n\tvalue\n});\nconst pushOp = (path, value) => ({\n\top: \"$push\",\n\tpath,\n\tvalue\n});\nconst addToSetOp = (path, value) => ({\n\top: \"$addToSet\",\n\tpath,\n\tvalue\n});\nconst popOp = (path, direction) => ({\n\top: \"$pop\",\n\tpath,\n\tdirection\n});\nconst pullOp = (path, value) => ({\n\top: \"$pull\",\n\tpath,\n\tvalue\n});\nconst pullAllOp = (path, values) => ({\n\top: \"$pullAll\",\n\tpath,\n\tvalues\n});\nconst currentDateOp = (path) => ({\n\top: \"$currentDate\",\n\tpath\n});\nconst setOnInsertOp = (path, value) => ({\n\top: \"$setOnInsert\",\n\tpath,\n\tvalue\n});\n/**\n* Fold an array of `TypedUpdateOp` into the non-pipeline variant of\n* `MongoUpdateSpec` (`{ $set: { … }, $inc: { … }, … }`).\n*\n* Throws if the same operator targets the same path twice — a clear authoring\n* error that Mongo would otherwise silently coalesce.\n*/\nfunction foldUpdateOps(ops) {\n\tconst buckets = {};\n\tconst seen = /* @__PURE__ */ new Set();\n\tconst ensure = (key) => {\n\t\tlet bucket = buckets[key];\n\t\tif (!bucket) {\n\t\t\tbucket = {};\n\t\t\tbuckets[key] = bucket;\n\t\t}\n\t\treturn bucket;\n\t};\n\tconst claim = (op, path) => {\n\t\tconst k = `${op}::${path}`;\n\t\tif (seen.has(k)) throw ormError(\"ORM.ARGUMENT_INVALID\", `Update spec collision: ${op} on '${path}' was specified more than once. Combine the operations into a single call site.`);\n\t\tseen.add(k);\n\t};\n\tfor (const entry of ops) {\n\t\tclaim(entry.op, entry.path);\n\t\tswitch (entry.op) {\n\t\t\tcase \"$set\":\n\t\t\tcase \"$min\":\n\t\t\tcase \"$max\":\n\t\t\tcase \"$push\":\n\t\t\tcase \"$addToSet\":\n\t\t\tcase \"$pull\":\n\t\t\tcase \"$setOnInsert\":\n\t\t\t\tensure(entry.op)[entry.path] = entry.value;\n\t\t\t\tbreak;\n\t\t\tcase \"$unset\":\n\t\t\t\tensure(\"$unset\")[entry.path] = \"\";\n\t\t\t\tbreak;\n\t\t\tcase \"$rename\":\n\t\t\t\tensure(\"$rename\")[entry.path] = entry.newName;\n\t\t\t\tbreak;\n\t\t\tcase \"$inc\":\n\t\t\t\tensure(\"$inc\")[entry.path] = entry.amount;\n\t\t\t\tbreak;\n\t\t\tcase \"$mul\":\n\t\t\t\tensure(\"$mul\")[entry.path] = entry.factor;\n\t\t\t\tbreak;\n\t\t\tcase \"$pop\":\n\t\t\t\tensure(\"$pop\")[entry.path] = entry.direction;\n\t\t\t\tbreak;\n\t\t\tcase \"$pullAll\":\n\t\t\t\tensure(\"$pullAll\")[entry.path] = entry.values;\n\t\t\t\tbreak;\n\t\t\tcase \"$currentDate\":\n\t\t\t\tensure(\"$currentDate\")[entry.path] = true;\n\t\t\t\tbreak;\n\t\t}\n\t}\n\treturn buckets;\n}\n/**\n* Classify an array of updater items and produce a `MongoUpdateSpec`.\n*\n* - All `TypedUpdateOp` → fold via `foldUpdateOps` (classic `{ $set, $inc, … }`)\n* - All `MongoUpdatePipelineStage` → return as-is (pipeline-style update)\n* - Mixed → throw (also a type error at the call site via the union shape)\n*/\nfunction resolveUpdaterResult(items) {\n\tif (items.length === 0) throw ormError(\"ORM.MUTATION_DATA_MISSING\", \"Updater returned no operations. Return at least one update from the callback (e.g. `[f.amount.set(0)]`).\");\n\tconst isOp = (item) => \"op\" in item && typeof item.op === \"string\";\n\tconst first = items[0];\n\tif (first === void 0) throw new InternalError(\"Unreachable: items.length > 0 but first is undefined\");\n\tconst firstIsOp = isOp(first);\n\tfor (let i = 1; i < items.length; i++) {\n\t\tconst item = items[i];\n\t\tif (item === void 0) continue;\n\t\tif (isOp(item) !== firstIsOp) throw ormError(\"ORM.ARGUMENT_INVALID\", \"Cannot mix TypedUpdateOp values and pipeline stages in a single updater. Use either `[f.amount.set(0)]` (operator form) or `[f.stage.set({...})]` (pipeline form), not both.\");\n\t}\n\tif (firstIsOp) return foldUpdateOps(items);\n\treturn items;\n}\n//#endregion\n//#region src/field-accessor.ts\nfunction buildStageEmitters() {\n\treturn {\n\t\tset: (fields) => new MongoAddFieldsStage(fields),\n\t\tunset: (...paths) => {\n\t\t\tconst spec = {};\n\t\t\tfor (const p of paths) spec[p] = 0;\n\t\t\treturn new MongoProjectStage(spec);\n\t\t},\n\t\treplaceRoot: (newRoot) => new MongoReplaceRootStage(newRoot),\n\t\treplaceWith: (newRoot) => new MongoReplaceRootStage(newRoot)\n\t};\n}\n/**\n* Wrap a boolean aggregation expression as an `$expr` filter\n* (`MongoExprFilter`). Lets a `$match` express an aggregation-expression\n* predicate — e.g. comparing two field references via `fn.eq(a, b)` — in\n* the typed AST rather than via a raw escape hatch. Pairs with `.type()`\n* to express filters like `{ _id: { $type: 'string' }, $expr: { $eq: ['$_id', '$space'] } }`.\n*/\nfunction expr(predicate) {\n\treturn MongoExprFilter.of(predicate.node);\n}\nfunction buildExpression(path) {\n\treturn {\n\t\t_field: void 0,\n\t\t_path: path,\n\t\tnode: MongoAggFieldRef.of(path),\n\t\teq: (value) => MongoFieldFilter.eq(path, value),\n\t\tne: (value) => MongoFieldFilter.neq(path, value),\n\t\tgt: (value) => MongoFieldFilter.gt(path, value),\n\t\tgte: (value) => MongoFieldFilter.gte(path, value),\n\t\tlt: (value) => MongoFieldFilter.lt(path, value),\n\t\tlte: (value) => MongoFieldFilter.lte(path, value),\n\t\tin: (values) => MongoFieldFilter.in(path, values),\n\t\tnin: (values) => MongoFieldFilter.nin(path, values),\n\t\texists: (flag) => flag === false ? MongoExistsExpr.notExists(path) : MongoExistsExpr.exists(path),\n\t\ttype: (bsonType) => MongoFieldFilter.of(path, \"$type\", bsonType),\n\t\tset: (value) => setOp(path, value),\n\t\tunset: () => unsetOp(path),\n\t\trename: (newName) => renameOp(path, newName),\n\t\tinc: (amount) => incOp(path, amount),\n\t\tmul: (factor) => mulOp(path, factor),\n\t\tmin: (value) => minOp(path, value),\n\t\tmax: (value) => maxOp(path, value),\n\t\tpush: (value) => pushOp(path, value),\n\t\taddToSet: (value) => addToSetOp(path, value),\n\t\tpop: (direction = 1) => popOp(path, direction),\n\t\tpull: (value) => pullOp(path, value),\n\t\tpullAll: (values) => pullAllOp(path, values),\n\t\tcurrentDate: () => currentDateOp(path),\n\t\tsetOnInsert: (value) => setOnInsertOp(path, value)\n\t};\n}\n/**\n* Construct a unified `FieldAccessor<S, N>` proxy. Property access creates\n* an `Expression` using the property name as the field path; callable\n* form accepts a dot-path string validated against `N` at compile time.\n*\n* The proxy target is a function so the resulting object is both callable\n* and indexable. Symbol-keyed accesses (e.g. `Symbol.toPrimitive`) return\n* `undefined` to keep accidental coercion behaviour unsurprising —\n* matching the previous `FieldProxy` / `FilterProxy` semantics.\n*/\nfunction createFieldAccessor() {\n\tconst stageInstance = buildStageEmitters();\n\tconst callable = ((path) => buildExpression(path));\n\treturn new Proxy(callable, { get(target, prop, receiver) {\n\t\tif (typeof prop === \"symbol\") return Reflect.get(target, prop, receiver);\n\t\tif (prop === \"stage\") return stageInstance;\n\t\tif (prop === \"rawPath\") return (path) => buildExpression(path);\n\t\treturn buildExpression(prop);\n\t} });\n}\n//#endregion\nexport { ormError as i, expr as n, resolveUpdaterResult as r, createFieldAccessor as t };\n\n//# sourceMappingURL=field-accessor-0oUt6RZC.mjs.map"],"mappings":";;;;;AAIA,SAAS,SAAS,MAAM,SAAS,SAAS;CACzC,OAAO,gBAAgB,MAAM,SAAS,OAAO;AAC9C;AAGA,MAAM,SAAS,MAAM,WAAW;CAC/B,IAAI;CACJ;CACA;AACD;AACA,MAAM,WAAW,UAAU;CAC1B,IAAI;CACJ;AACD;AACA,MAAM,YAAY,MAAM,aAAa;CACpC,IAAI;CACJ;CACA;AACD;AACA,MAAM,SAAS,MAAM,YAAY;CAChC,IAAI;CACJ;CACA;AACD;AACA,MAAM,SAAS,MAAM,YAAY;CAChC,IAAI;CACJ;CACA;AACD;AACA,MAAM,SAAS,MAAM,WAAW;CAC/B,IAAI;CACJ;CACA;AACD;AACA,MAAM,SAAS,MAAM,WAAW;CAC/B,IAAI;CACJ;CACA;AACD;AACA,MAAM,UAAU,MAAM,WAAW;CAChC,IAAI;CACJ;CACA;AACD;AACA,MAAM,cAAc,MAAM,WAAW;CACpC,IAAI;CACJ;CACA;AACD;AAC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AI;CAC5B,EAAE,CAAC;AACJ"}
|
|
1
|
+
{"version":3,"file":"field-accessor-0oUt6RZC-D2rZeXb8.mjs","names":[],"sources":["../../../../2-mongo-family/5-query-builders/query-builder/dist/field-accessor-0oUt6RZC.mjs"],"sourcesContent":["import { MongoAddFieldsStage, MongoAggFieldRef, MongoExistsExpr, MongoExprFilter, MongoFieldFilter, MongoProjectStage, MongoReplaceRootStage } from \"@internal/mongo-query-ast/execution\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/orm-errors.ts\nfunction ormError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/update-ops.ts\nconst setOp = (path, value) => ({\n\top: \"$set\",\n\tpath,\n\tvalue\n});\nconst unsetOp = (path) => ({\n\top: \"$unset\",\n\tpath\n});\nconst renameOp = (path, newName) => ({\n\top: \"$rename\",\n\tpath,\n\tnewName\n});\nconst incOp = (path, amount) => ({\n\top: \"$inc\",\n\tpath,\n\tamount\n});\nconst mulOp = (path, factor) => ({\n\top: \"$mul\",\n\tpath,\n\tfactor\n});\nconst minOp = (path, value) => ({\n\top: \"$min\",\n\tpath,\n\tvalue\n});\nconst maxOp = (path, value) => ({\n\top: \"$max\",\n\tpath,\n\tvalue\n});\nconst pushOp = (path, value) => ({\n\top: \"$push\",\n\tpath,\n\tvalue\n});\nconst addToSetOp = (path, value) => ({\n\top: \"$addToSet\",\n\tpath,\n\tvalue\n});\nconst popOp = (path, direction) => ({\n\top: \"$pop\",\n\tpath,\n\tdirection\n});\nconst pullOp = (path, value) => ({\n\top: \"$pull\",\n\tpath,\n\tvalue\n});\nconst pullAllOp = (path, values) => ({\n\top: \"$pullAll\",\n\tpath,\n\tvalues\n});\nconst currentDateOp = (path) => ({\n\top: \"$currentDate\",\n\tpath\n});\nconst setOnInsertOp = (path, value) => ({\n\top: \"$setOnInsert\",\n\tpath,\n\tvalue\n});\n/**\n* Fold an array of `TypedUpdateOp` into the non-pipeline variant of\n* `MongoUpdateSpec` (`{ $set: { … }, $inc: { … }, … }`).\n*\n* Throws if the same operator targets the same path twice — a clear authoring\n* error that Mongo would otherwise silently coalesce.\n*/\nfunction foldUpdateOps(ops) {\n\tconst buckets = {};\n\tconst seen = /* @__PURE__ */ new Set();\n\tconst ensure = (key) => {\n\t\tlet bucket = buckets[key];\n\t\tif (!bucket) {\n\t\t\tbucket = {};\n\t\t\tbuckets[key] = bucket;\n\t\t}\n\t\treturn bucket;\n\t};\n\tconst claim = (op, path) => {\n\t\tconst k = `${op}::${path}`;\n\t\tif (seen.has(k)) throw ormError(\"ORM.ARGUMENT_INVALID\", `Update spec collision: ${op} on '${path}' was specified more than once. Combine the operations into a single call site.`);\n\t\tseen.add(k);\n\t};\n\tfor (const entry of ops) {\n\t\tclaim(entry.op, entry.path);\n\t\tswitch (entry.op) {\n\t\t\tcase \"$set\":\n\t\t\tcase \"$min\":\n\t\t\tcase \"$max\":\n\t\t\tcase \"$push\":\n\t\t\tcase \"$addToSet\":\n\t\t\tcase \"$pull\":\n\t\t\tcase \"$setOnInsert\":\n\t\t\t\tensure(entry.op)[entry.path] = entry.value;\n\t\t\t\tbreak;\n\t\t\tcase \"$unset\":\n\t\t\t\tensure(\"$unset\")[entry.path] = \"\";\n\t\t\t\tbreak;\n\t\t\tcase \"$rename\":\n\t\t\t\tensure(\"$rename\")[entry.path] = entry.newName;\n\t\t\t\tbreak;\n\t\t\tcase \"$inc\":\n\t\t\t\tensure(\"$inc\")[entry.path] = entry.amount;\n\t\t\t\tbreak;\n\t\t\tcase \"$mul\":\n\t\t\t\tensure(\"$mul\")[entry.path] = entry.factor;\n\t\t\t\tbreak;\n\t\t\tcase \"$pop\":\n\t\t\t\tensure(\"$pop\")[entry.path] = entry.direction;\n\t\t\t\tbreak;\n\t\t\tcase \"$pullAll\":\n\t\t\t\tensure(\"$pullAll\")[entry.path] = entry.values;\n\t\t\t\tbreak;\n\t\t\tcase \"$currentDate\":\n\t\t\t\tensure(\"$currentDate\")[entry.path] = true;\n\t\t\t\tbreak;\n\t\t}\n\t}\n\treturn buckets;\n}\n/**\n* Classify an array of updater items and produce a `MongoUpdateSpec`.\n*\n* - All `TypedUpdateOp` → fold via `foldUpdateOps` (classic `{ $set, $inc, … }`)\n* - All `MongoUpdatePipelineStage` → return as-is (pipeline-style update)\n* - Mixed → throw (also a type error at the call site via the union shape)\n*/\nfunction resolveUpdaterResult(items) {\n\tif (items.length === 0) throw ormError(\"ORM.MUTATION_DATA_MISSING\", \"Updater returned no operations. Return at least one update from the callback (e.g. `[f.amount.set(0)]`).\");\n\tconst isOp = (item) => \"op\" in item && typeof item.op === \"string\";\n\tconst first = items[0];\n\tif (first === void 0) throw new InternalError(\"Unreachable: items.length > 0 but first is undefined\");\n\tconst firstIsOp = isOp(first);\n\tfor (let i = 1; i < items.length; i++) {\n\t\tconst item = items[i];\n\t\tif (item === void 0) continue;\n\t\tif (isOp(item) !== firstIsOp) throw ormError(\"ORM.ARGUMENT_INVALID\", \"Cannot mix TypedUpdateOp values and pipeline stages in a single updater. Use either `[f.amount.set(0)]` (operator form) or `[f.stage.set({...})]` (pipeline form), not both.\");\n\t}\n\tif (firstIsOp) return foldUpdateOps(items);\n\treturn items;\n}\n//#endregion\n//#region src/field-accessor.ts\nfunction buildStageEmitters() {\n\treturn {\n\t\tset: (fields) => new MongoAddFieldsStage(fields),\n\t\tunset: (...paths) => {\n\t\t\tconst spec = {};\n\t\t\tfor (const p of paths) spec[p] = 0;\n\t\t\treturn new MongoProjectStage(spec);\n\t\t},\n\t\treplaceRoot: (newRoot) => new MongoReplaceRootStage(newRoot),\n\t\treplaceWith: (newRoot) => new MongoReplaceRootStage(newRoot)\n\t};\n}\n/**\n* Wrap a boolean aggregation expression as an `$expr` filter\n* (`MongoExprFilter`). Lets a `$match` express an aggregation-expression\n* predicate — e.g. comparing two field references via `fn.eq(a, b)` — in\n* the typed AST rather than via a raw escape hatch. Pairs with `.type()`\n* to express filters like `{ _id: { $type: 'string' }, $expr: { $eq: ['$_id', '$space'] } }`.\n*/\nfunction expr(predicate) {\n\treturn MongoExprFilter.of(predicate.node);\n}\nfunction buildExpression(path) {\n\treturn {\n\t\t_field: void 0,\n\t\t_path: path,\n\t\tnode: MongoAggFieldRef.of(path),\n\t\teq: (value) => MongoFieldFilter.eq(path, value),\n\t\tne: (value) => MongoFieldFilter.neq(path, value),\n\t\tgt: (value) => MongoFieldFilter.gt(path, value),\n\t\tgte: (value) => MongoFieldFilter.gte(path, value),\n\t\tlt: (value) => MongoFieldFilter.lt(path, value),\n\t\tlte: (value) => MongoFieldFilter.lte(path, value),\n\t\tin: (values) => MongoFieldFilter.in(path, values),\n\t\tnin: (values) => MongoFieldFilter.nin(path, values),\n\t\texists: (flag) => flag === false ? MongoExistsExpr.notExists(path) : MongoExistsExpr.exists(path),\n\t\ttype: (bsonType) => MongoFieldFilter.of(path, \"$type\", bsonType),\n\t\tset: (value) => setOp(path, value),\n\t\tunset: () => unsetOp(path),\n\t\trename: (newName) => renameOp(path, newName),\n\t\tinc: (amount) => incOp(path, amount),\n\t\tmul: (factor) => mulOp(path, factor),\n\t\tmin: (value) => minOp(path, value),\n\t\tmax: (value) => maxOp(path, value),\n\t\tpush: (value) => pushOp(path, value),\n\t\taddToSet: (value) => addToSetOp(path, value),\n\t\tpop: (direction = 1) => popOp(path, direction),\n\t\tpull: (value) => pullOp(path, value),\n\t\tpullAll: (values) => pullAllOp(path, values),\n\t\tcurrentDate: () => currentDateOp(path),\n\t\tsetOnInsert: (value) => setOnInsertOp(path, value)\n\t};\n}\n/**\n* Construct a unified `FieldAccessor<S, N>` proxy. Property access creates\n* an `Expression` using the property name as the field path; callable\n* form accepts a dot-path string validated against `N` at compile time.\n*\n* The proxy target is a function so the resulting object is both callable\n* and indexable. Symbol-keyed accesses (e.g. `Symbol.toPrimitive`) return\n* `undefined` to keep accidental coercion behaviour unsurprising —\n* matching the previous `FieldProxy` / `FilterProxy` semantics.\n*/\nfunction createFieldAccessor() {\n\tconst stageInstance = buildStageEmitters();\n\tconst callable = ((path) => buildExpression(path));\n\treturn new Proxy(callable, { get(target, prop, receiver) {\n\t\tif (typeof prop === \"symbol\") return Reflect.get(target, prop, receiver);\n\t\tif (prop === \"stage\") return stageInstance;\n\t\tif (prop === \"rawPath\") return (path) => buildExpression(path);\n\t\treturn buildExpression(prop);\n\t} });\n}\n//#endregion\nexport { ormError as i, expr as n, resolveUpdaterResult as r, createFieldAccessor as t };\n\n//# sourceMappingURL=field-accessor-0oUt6RZC.mjs.map"],"mappings":";;;;;AAIA,SAAS,SAAS,MAAM,SAAS,SAAS;CACzC,OAAO,gBAAgB,MAAM,SAAS,OAAO;AAC9C;AAGA,MAAM,SAAS,MAAM,WAAW;CAC/B,IAAI;CACJ;CACA;AACD;AACA,MAAM,WAAW,UAAU;CAC1B,IAAI;CACJ;AACD;AACA,MAAM,YAAY,MAAM,aAAa;CACpC,IAAI;CACJ;CACA;AACD;AACA,MAAM,SAAS,MAAM,YAAY;CAChC,IAAI;CACJ;CACA;AACD;AACA,MAAM,SAAS,MAAM,YAAY;CAChC,IAAI;CACJ;CACA;AACD;AACA,MAAM,SAAS,MAAM,WAAW;CAC/B,IAAI;CACJ;CACA;AACD;AACA,MAAM,SAAS,MAAM,WAAW;CAC/B,IAAI;CACJ;CACA;AACD;AACA,MAAM,UAAU,MAAM,WAAW;CAChC,IAAI;CACJ;CACA;AACD;AACA,MAAM,cAAc,MAAM,WAAW;CACpC,IAAI;CACJ;CACA;AACD;AACA,MAAM,SAAS,MAAM,eAAe;CACnC,IAAI;CACJ;CACA;AACD;AACA,MAAM,UAAU,MAAM,WAAW;CAChC,IAAI;CACJ;CACA;AACD;AACA,MAAM,aAAa,MAAM,YAAY;CACpC,IAAI;CACJ;CACA;AACD;AACA,MAAM,iBAAiB,UAAU;CAChC,IAAI;CACJ;AACD;AACA,MAAM,iBAAiB,MAAM,WAAW;CACvC,IAAI;CACJ;CACA;AACD;;;;;;;;AAQA,SAAS,cAA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U,IAAI,IAAI,gBAAgB,OAAO,IAAI;EAChG,OAAO,aAAa,iBAAiB,GAAG,MAAM,SAAS,QAAQ;EAC/D,MAAM,UAAU,MAAM,MAAM,KAAK;EACjC,aAAa,QAAQ,IAAI;EACzB,SAAS,YAAY,SAAS,MAAM,OAAO;EAC3C,MAAM,WAAW,MAAM,MAAM,MAAM;EACnC,MAAM,WAAW,MAAM,MAAM,MAAM;EACnC,MAAM,UAAU,MAAM,MAAM,KAAK;EACjC,MAAM,UAAU,MAAM,MAAM,KAAK;EACjC,OAAO,UAAU,OAAO,MAAM,KAAK;EACnC,WAAW,UAAU,WAAW,MAAM,KAAK;EAC3C,MAAM,YAAY,MAAM,MAAM,MAAM,SAAS;EAC7C,OAAO,UAAU,OAAO,MAAM,KAAK;EACnC,UAAU,WAAW,UAAU,MAAM,MAAM;EAC3C,mBAAmB,cAAc,IAAI;EACrC,cAAc,UAAU,cAAc,MAAM,KAAK;CAClD;AACD;;;;;;;;;;;AAWA,SAAS,sBAAsB;CAC9B,MAAM,gBAAgB,mBAAmB;CACzC,MAAM,aAAa,SAAS,gBAAgB,IAAI;CAChD,OAAO,IAAI,MAAM,UAAU,EAAE,IAAI,QAAQ,MAAM,UAAU;EACxD,IAAI,OAAO,SAAS,UAAU,OAAO,QAAQ,IAAI,QAAQ,MAAM,QAAQ;EACvE,IAAI,SAAS,SAAS,OAAO;EAC7B,IAAI,SAAS,WAAW,QAAQ,SAAS,gBAAgB,IAAI;EAC7D,OAAO,gBAAgB,IAAI;CAC5B,EAAE,CAAC;AACJ"}
|
package/dist/{field-accessor-CqKt9hxI-CI_pUKZN.d.mts → field-accessor-27PyGcu4-OcIwmL34.d.mts}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import {
|
|
4
|
-
import { B as MongoFilterExpr, d as MongoAggAccumulator, m as MongoAggExpr, vt as MongoUpdatePipelineStage } from "./query-plan-
|
|
5
|
-
import "./execution-
|
|
1
|
+
import { E as MongoContractWithTypeMaps, T as MongoContract, U as MongoModelsMap, a as ExtractMongoTypeMaps, f as MongoCodecInput, n as ExtractMongoCodecTypes, o as InferModelRow, t as AnyMongoTypeMaps, ut as OwnStoredNameOf } from "./mongo-value-set-ChzpEiPK-BVtp7f-a.mjs";
|
|
2
|
+
import "./index-hugPlQ5w.mjs";
|
|
3
|
+
import { d as MongoPreparedParamRef, p as MongoValue } from "./index-Cvd8czxA.mjs";
|
|
4
|
+
import { B as MongoFilterExpr, d as MongoAggAccumulator, m as MongoAggExpr, vt as MongoUpdatePipelineStage } from "./query-plan-Dtyaa2z2-BD60dwyV.mjs";
|
|
5
|
+
import "./execution-CuluvtwX.mjs";
|
|
6
6
|
import { ContractValueObjectAt, ValueObjectReference } from "@prisma/orm-framework/contract/types";
|
|
7
|
-
//#region ../../../2-mongo-family/5-query-builders/query-builder/dist/field-accessor-
|
|
7
|
+
//#region ../../../2-mongo-family/5-query-builders/query-builder/dist/field-accessor-27PyGcu4.d.mts
|
|
8
8
|
//#region src/types.d.ts
|
|
9
9
|
interface DocField {
|
|
10
10
|
readonly codecId: string;
|
|
@@ -40,6 +40,9 @@ type NullableDocField = {
|
|
|
40
40
|
};
|
|
41
41
|
type LiteralValue<F extends DocField> = F extends StringField ? string : F extends NumericField ? number : F extends BooleanField ? boolean : F extends DateField ? Date : unknown;
|
|
42
42
|
type DocShape = Record<string, DocField>;
|
|
43
|
+
type NumericInputCodecId<CT> = { [K in keyof CT & string]: [MongoCodecInput<CT, K>] extends [number] ? K : never; }[keyof CT & string];
|
|
44
|
+
/** A `limit` or `skip` count: a number, or a non-nullable placeholder whose codec takes a number. */
|
|
45
|
+
type PagingCount<TContract> = number | MongoPreparedParamRef<NumericInputCodecId<ExtractMongoCodecTypes<TContract>>, false>;
|
|
43
46
|
type ExtractCodecId<F> = F extends {
|
|
44
47
|
type: {
|
|
45
48
|
kind: 'scalar';
|
|
@@ -597,5 +600,5 @@ declare function expr(predicate: TypedAggExpr<DocField>): MongoFilterExpr;
|
|
|
597
600
|
*/
|
|
598
601
|
declare function createFieldAccessor<S extends DocShape, N extends NestedDocShape = Record<string, never>>(): FieldAccessor<S, N>;
|
|
599
602
|
//#endregion
|
|
600
|
-
export {
|
|
601
|
-
//# sourceMappingURL=field-accessor-
|
|
603
|
+
export { TypedAggExpr as A, PathCompletions as C, SortSpec as D, ResolveRow as E, createFieldAccessor as F, expr as I, UnwoundShape as M, UpdaterResult as N, StringField as O, ValidPaths as P, PagingCount as S, ResolvePath as T, NullableDocField as _, DocShape as a, ObjectExpression as b, FieldAccessor as c, LeafExpression as d, LiteralValue as f, NestedDocShape as g, ModelToDocShape as h, DocField as i, TypedUpdateOp as j, TypedAccumulatorExpr as k, GroupSpec as l, ModelNestedShape as m, BooleanField as n, Expression as o, ModelArrayField as p, DateField as r, ExtractDocShape as s, ArrayField as t, GroupedDocShape as u, NullableNumericField as v, ProjectedShape as w, ObjectField as x, NumericField as y };
|
|
604
|
+
//# sourceMappingURL=field-accessor-27PyGcu4-OcIwmL34.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-accessor-27PyGcu4-OcIwmL34.d.mts","names":[],"sources":["../../../../2-mongo-family/5-query-builders/query-builder/dist/field-accessor-27PyGcu4.d.mts"],"mappings":";;;;;;;;UAKU;WACC;WACA;;KAEN;WACM;WACA;;KAEN;WACM;WACA;;KAEN;WACM;WACA;;KAEN;WACM;WACA;;KAEN;WACM;WACA;;KAEN;WACM;WACA;;KAEN;WACM;WACA;;KAEN,aAAa,UAAU,YAAY,UAAU,uBAAuB,UAAU,wBAAwB,UAAU,yBAAyB,UAAU,YAAY;KAC/J,WAAW,eAAe;KAC1B,oBAAoB,SAAS,WAAW,eAAe,gBAAgB,IAAI,uBAAuB,mBAAmB;;KAErH,YAAY,sBAAsB,sBAAsB,oBAAoB,uBAAuB;KACnG,eAAe,KAAK;EACvB;IACE;IACA,eAAe;;IAEf,IAAI;EACN,eA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|
|
2
|
+
import { M as MongoIndexKey } from "./mongo-value-set-ChzpEiPK-BVtp7f-a.mjs";
|
|
3
|
+
import "./index-hugPlQ5w.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
|
|
@@ -178,4 +178,4 @@ declare class MongoSchemaCollection extends MongoSchemaIRNode {
|
|
|
178
178
|
type AnyMongoSchemaNode = MongoSchemaIR | MongoSchemaCollection | MongoSchemaCollectionOptions | MongoSchemaIndex | MongoSchemaValidator;
|
|
179
179
|
//#endregion
|
|
180
180
|
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 };
|
|
181
|
-
//# sourceMappingURL=index-
|
|
181
|
+
//# sourceMappingURL=index-CZ-tX2cL.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-CZ-tX2cL.d.mts","names":[],"sources":["../../../../2-mongo-family/3-tooling/mongo-schema-ir/dist/exports/index.d.mts"],"mappings":";;;;;;;;;;;iBASiB,UAAU,YAAY;;;UAG7B;WACC;WACA,MAAM,cAAc;WACpB;WACA;WACA;WACA,0BAA0B;WAC1B,qBAAqB;WACrB,YAAY;WACZ,UAAU;WACV;WACA;;cAEG,yBAAyB;WAC5B;;WAEA;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;;WAEjB;mBACQ;EACjB,YAAY,aAAa,cAAc,wBAAwB;aACpD;;EAEX,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,22 +1,16 @@
|
|
|
1
|
-
import { rt as MongoQueryPlan } from "./query-plan-
|
|
2
|
-
import { t as AnyMongoDdlCommand } from "./control-
|
|
3
|
-
import "./execution-
|
|
4
|
-
import { i as AnyMongoWireCommand, n as AnyMongoDdlWireCommand, r as AnyMongoDmlWireCommand } from "./index-
|
|
1
|
+
import { rt as MongoQueryPlan } from "./query-plan-Dtyaa2z2-BD60dwyV.mjs";
|
|
2
|
+
import { t as AnyMongoDdlCommand } from "./control-BsOZ6I-N.mjs";
|
|
3
|
+
import "./execution-CuluvtwX.mjs";
|
|
4
|
+
import { i as AnyMongoWireCommand, n as AnyMongoDdlWireCommand, r as AnyMongoDmlWireCommand } from "./index-fnk4bdbx.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";
|
|
8
8
|
//#region ../../../2-mongo-family/6-transport/mongo-lowering/dist/index.d.mts
|
|
9
9
|
//#region src/adapter-types.d.ts
|
|
10
10
|
/**
|
|
11
|
-
* Intermediate state produced by structural lowering. `MongoParamRef` leaves
|
|
12
|
-
* remain in place — they have not yet been resolved through codecs. The
|
|
13
|
-
* runtime defers value resolution past the `beforeEncode` middleware chain
|
|
14
|
-
* so middleware can walk and rewrite `MongoParamRef` nodes before encoding.
|
|
11
|
+
* Intermediate state produced by structural lowering. `MongoParamRef` and `MongoPreparedParamRef` leaves remain in place; codecs have not run yet. A prepared run replaces each `MongoPreparedParamRef` with a `MongoParamRef` holding the run's value. The runtime resolves values after the `beforeEncode` middleware chain, so middleware can read and replace `MongoParamRef` values before encoding.
|
|
15
12
|
*
|
|
16
|
-
*
|
|
17
|
-
* typed as `Record<string, unknown>` to allow heterogeneous values. Raw
|
|
18
|
-
* command variants carry already-resolved `Record<string, unknown>` values
|
|
19
|
-
* and pass through unchanged.
|
|
13
|
+
* Document, filter and update slots are typed `Record<string, unknown>` to allow mixed values. Raw command variants hold the user's documents; `resolveParams` sends them to the driver without encoding, but the runtime still walks them, for example to refuse a placeholder in a raw command.
|
|
20
14
|
*/
|
|
21
15
|
type MongoLoweredDraft = {
|
|
22
16
|
readonly kind: 'insertOne';
|
|
@@ -152,4 +146,4 @@ interface MongoControlDriverInstance extends ControlDriverInstance<'mongo', 'mon
|
|
|
152
146
|
}
|
|
153
147
|
//#endregion
|
|
154
148
|
export { MongoLoweredDraft as a, MongoDriver as i, MongoControlDriverInstance as n, MongoQueryable as o, MongoDdlPlan as r, MongoAdapter as t };
|
|
155
|
-
//# sourceMappingURL=index-
|
|
149
|
+
//# sourceMappingURL=index-CgKJfbIP.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CgKJfbIP.d.mts","names":[],"sources":["../../../../2-mongo-family/6-transport/mongo-lowering/dist/index.d.mts"],"mappings":";;;;;;;;;;;;;;KAYK;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"}
|
|
@@ -61,19 +61,30 @@ interface MongoParamRefOptions {
|
|
|
61
61
|
readonly name?: string;
|
|
62
62
|
readonly codecId?: string;
|
|
63
63
|
readonly collection?: string;
|
|
64
|
+
readonly nullable?: boolean;
|
|
64
65
|
}
|
|
65
66
|
declare class MongoParamRef {
|
|
66
67
|
readonly value: unknown;
|
|
67
68
|
readonly name: string | undefined;
|
|
68
69
|
readonly codecId: string | undefined;
|
|
69
70
|
readonly collection: string | undefined;
|
|
71
|
+
readonly nullable: boolean | undefined;
|
|
70
72
|
constructor(value: unknown, options?: MongoParamRefOptions);
|
|
71
73
|
static of(value: unknown, options?: MongoParamRefOptions): MongoParamRef;
|
|
72
74
|
}
|
|
73
75
|
//#endregion
|
|
76
|
+
//#region src/prepared-param-ref.d.ts
|
|
77
|
+
declare class MongoPreparedParamRef<CodecId extends string = string, Nullable extends boolean = boolean> {
|
|
78
|
+
readonly name: string;
|
|
79
|
+
readonly codecId: CodecId;
|
|
80
|
+
readonly nullable: Nullable;
|
|
81
|
+
constructor(name: string, codecId: CodecId, nullable: Nullable);
|
|
82
|
+
}
|
|
83
|
+
declare function isMongoPreparedParamRef(value: unknown): value is MongoPreparedParamRef;
|
|
84
|
+
//#endregion
|
|
74
85
|
//#region src/values.d.ts
|
|
75
86
|
type LiteralValue = string | number | boolean | null | Date;
|
|
76
|
-
type MongoValue = MongoParamRef | LiteralValue | MongoDocument | MongoArray;
|
|
87
|
+
type MongoValue = MongoParamRef | MongoPreparedParamRef | LiteralValue | MongoDocument | MongoArray;
|
|
77
88
|
interface MongoDocument {
|
|
78
89
|
readonly [key: string]: MongoValue;
|
|
79
90
|
}
|
|
@@ -83,5 +94,5 @@ type MongoUpdateDocument = Record<string, MongoValue>;
|
|
|
83
94
|
type RawPipeline = ReadonlyArray<Record<string, unknown>>;
|
|
84
95
|
type Document = Record<string, unknown>;
|
|
85
96
|
//#endregion
|
|
86
|
-
export { LiteralValue as a, MongoExpr as c,
|
|
87
|
-
//# sourceMappingURL=index-
|
|
97
|
+
export { LiteralValue as a, MongoExpr as c, MongoPreparedParamRef as d, MongoUpdateDocument as f, isMongoPreparedParamRef as h, Document as i, MongoParamRef as l, RawPipeline as m, BsonScalar as n, MongoArray as o, MongoValue as p, BsonValue as r, MongoDocument as s, BsonInputValue as t, MongoParamRefOptions as u };
|
|
98
|
+
//# sourceMappingURL=index-Cvd8czxA.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-Cvd8czxA.d.mts","names":[],"sources":["../../../../2-mongo-family/1-foundation/mongo-value/dist/index.d.mts"],"mappings":";;;;;KAIK,gDAAgD,OAAO;WACjD;EACT;;WAES;EACT;;WAES;EACT;;WAES;EACT,SAAS;WACA;;WAEA;WACA;WACA;;WAEA;EACT;;WAES;EACT;;WAES;EACT;;WAES;WACA;WACA;cACG,cAAc;;;WAGjB;;WAEA;;WAEA;EACT;;;;;KAKG,YAAY,aAAa,cAAc;YAChC,cAAc;;;;;KAKrB,iBAAiB,aAAa,aAAa,cAAc;YAClD,cAAc;;;;UAIhB;WACC;WACA;WACA;WACA;;cAEG;WACH;WACA;WACA;WACA;WACA;EACT,YAAY,gBAAgB,UAAU;SAC/B,GAAG,gBAAgB,UAAU,uBAAuB;;;;cAI/C,sBAAsB,iCAAiC;WAC1D;WACA,SAAS;WACT,UAAU;EACnB,YAAY,cAAc,SAAS,SAAS,UAAU;;iBAEvC,wBAAwB,iBAAiB,SAAS;;;KAG9D,kDAAkD;KAClD,aAAa,gBAAgB,wBAAwB,eAAe,gBAAgB;UAC/E;YACE,cAAc;;UAEhB,mBAAmB,cAAc;KACtC,YAAY;KACZ,sBAAsB,eAAe;KACrC,cAAc,cAAc;KAC5B,WAAW"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as CreateCollectionOptions, r as CreateIndexesOptions, t as CollationOptions } from "./mongodb-types-B4HmhF1S.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { i as Document,
|
|
4
|
-
import { a as CollModOptions, l as CreateIndexOptions, s as CreateCollectionOptions$1 } from "./control-
|
|
5
|
-
import "./execution-
|
|
2
|
+
import { N as MongoIndexKeyDirection } from "./mongo-value-set-ChzpEiPK-BVtp7f-a.mjs";
|
|
3
|
+
import { i as Document, m as RawPipeline } from "./index-Cvd8czxA.mjs";
|
|
4
|
+
import { a as CollModOptions, l as CreateIndexOptions, s as CreateCollectionOptions$1 } from "./control-BsOZ6I-N.mjs";
|
|
5
|
+
import "./execution-CuluvtwX.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-fnk4bdbx.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-fnk4bdbx.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;WACA,WAAW,cAAc;EAClC,YAAY,oBAAoB,WAAW,cAAc;;cAE7C,8BAA8B;WACjC;WACA,QAAQ;WACR,QAAQ,WAAW,cAAc;WACjC;WACA;EACT,YAAY,oBAAoB,QAAQ,UAAU,QAAQ,WAAW,cAAc,WAAW,kBAAkB;;cAEpG,8BAA8B;WACjC;WACA,QAAQ;EACjB,YAAY,oBAAoB,QAAQ;;cAE5B,oCAAoC;WACvC;WACA,QAAQ;WACR,QAAQ,WAAW,cAAc;WACjC;WACA,MAAM;;;;;WAKN;EACT,YAAY,oBAAoB,QAAQ,UAAU,QAAQ,WAAW,cAAc,WAAW,kBAAkB,OAAO,wBAAwB;;cAEnI,oCAAoC;WACvC;WACA,QAAQ;WACR,MAAM;EACf,YAAY,oBAAoB,QAAQ,UAAU,OAAO;;cAE7C,6BAA6B;WAChC;WACA,UAAU;EACnB,YAAY,oBAAoB,UAAU;;cAE9B,oCAAoC,4BAA4B;WACnE;WACA,YAAY;WACZ;WACA;WACA;WACA;WACA;WACA;IACP;IACA;IACA;;WAEO,YAAY;WACZ;IACP;;WAEO;IACP,KAAK;IACL;IACA;;EAEF,YAAY,oBAAoB,SAAS;;cAE7B,+BAA+B,4BAA4B;WAC9D;WACA,KAAK,eAAe;WACpB;WACA;WACA;WACA,0BAA0B;WAC1B;WACA,qBAAqB;WACrB,YAAY;WACZ,UAAU;WACV;WACA;EACT,YAAY,oBAAoB,KAAK,eAAe,yBAAyB,SAAS;;cAE1E,kCAAkC;WACrC;EACT,YAAY;;cAEA,oCAAoC;WACvC;WACA;EACT,YAAY,oBAAoB;;cAEpB,6BAA6B;WAChC;WACA;EACT,YAAY,oBAAoB;;cAEpB,2BAA2B;WAC9B;WACA,YAAY;WACZ;WACA;WACA;IACP;;EAEF,YAAY,oBAAoB,SAAS;;KAEtC,yBAAyB,uBAAuB,wBAAwB,uBAAuB,wBAAwB,uBAAuB,wBAAwB,8BAA8B,8BAA8B;KAClO,yBAAyB,8BAA8B,yBAAyB,4BAA4B,8BAA8B,uBAAuB;KACjK,sBAAsB,yBAAyB;iBACnC,iBAAiB,KAAK,sBAAsB,OAAO"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as MongoIndex, H as MongoModelStorage, M as MongoIndexKey, T as MongoContract, at as MongoValueObjectInput, b as MongoCollection, et as MongoValidator, it as MongoValueObject, j as MongoIndexInput, ot as MongoValueSet, st as MongoValueSetInput, x as MongoCollectionInput } from "./mongo-value-set-ChzpEiPK-BVtp7f-a.mjs";
|
|
2
2
|
import { RelationKeys, RelationNamesOf, Scalars, Shape, ShapeSpec } from "@prisma/orm-framework/components/runtime";
|
|
3
3
|
import { TypeLookups } from "@prisma/orm-framework/components/codec";
|
|
4
4
|
import { DefaultNamespaceEntries, IRNodeBase, Namespace, NamespaceBase, NamespacedEntities, SingleNamespaceView, Storage } from "@prisma/orm-framework/components/ir";
|
|
@@ -386,4 +386,4 @@ declare function validatorRootShapesOf(jsonSchema: unknown): readonly ValidatorR
|
|
|
386
386
|
declare function validatorFieldNamesOf(jsonSchema: unknown): ReadonlySet<string>;
|
|
387
387
|
//#endregion
|
|
388
388
|
export { mongoValueSetsOf as $, ValidatorShape as A, createMongoNamespaceEnvelopeSchema as B, RelationKeys as C, ShapeSpec as D, Shape as E, canonicalize as F, documentIdRefusalReason as G, defaultMongoIndexName as H, collectionControlPoliciesOf as I, indexLookupKey as J, fieldBsonTypeRefusalOf as K, collectionControlPolicyOf as L, buildMongoContractView as M, buildMongoNamespace as N, StorageValueSetSchema as O, buildMongoStorage as P, mongoModelsOf as Q, collectionRootModelsOf as R, PolymorphicIndexScope as S, Scalars as T, defaultMongoStorageNamespaceId as U, defaultMongoDomainNamespaceId as V, deriveCollectionValidators as W, modelAndBasesOf as X, isEmbedRelation as Y, mongoContractRefusalsOf as Z, MongoNamespaceEntries as _, FieldBsonTypeRefusal as a, resolveMongoToOneRelationFields as at, MongoToOneRelationFields as b, MONGO_INDEX_OPTION_KEYS as c, validateMongoStorage as ct, MongoContractRefusalsInput as d, validatorFieldNamesOf as dt, ownDocumentIdFieldOf as et, MongoContractSchema as f, validatorRootShapesOf as ft, MongoNamespace as g, MongoIndexOptionKey as h, DOCUMENT_ID as i, ownStoredNamesOf as it, applyPolymorphicScopeToMongoIndex as j, ValidatorRootShape as k, MongoContractAccessors as l, validatorEnumMemberRefusalOf as lt, MongoIndexLookupInput as m, CollectionControlPolicies as n, ownFieldStoredAs as nt, FieldOwner as o, storedNamesOf as ot, MongoContractView as p, valueObjectStoredNamesOf as pt, hasOwnFieldStoredAs as q, CollectionValidatorsInput as r, ownStoredNameOf as rt, FieldValueSets as s, unsupportedStoredNameReason as st, ApplyScopeResult as t, ownEmbedStoredNamesOf as tt, MongoContractRefusal as u, validatorEnumRefusalOf as ut, MongoStorage as v, RelationNamesOf as w, MongoUnboundNamespace as x, MongoStorageInput as y, createMongoContractSchema as z };
|
|
389
|
-
//# sourceMappingURL=index-
|
|
389
|
+
//# sourceMappingURL=index-hugPlQ5w.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-hugPlQ5w.d.mts","names":[],"sources":["../../../../2-mongo-family/1-foundation/mongo-contract/dist/index.d.mts"],"mappings":";;;;;;;;KAOK,wBAAwB,SAAS,eAAe,SAAS;WACnD,aAAa,SAAS,eAAe;WACrC,WAAW,SAAS,eAAe;WACnC,cAAc,SAAS,eAAe;;UAEvC;WACC;WACA,SAAS,SAAS,eAAe,SAAS;aACxC,aAAa,SAAS,eAAe;aACrC,WAAW,SAAS,eAAe;aACnC,cAAc,SAAS,eAAe;;;KAG9C,iBAAiB;WACX,SAAS;;UAEV,kBAAkB;WACjB,aAAa,gBAAgB;WAC7B,YAAY,SAAS,eAAe;;cAEjC,aAAa,uCAAuC,sBAAsB;WAC7E;WACA,aAAa,gBAAgB;WAC7B,YAAY,SAAS,eAAe;EAC7C,YAAY,OAAO,kBAAkB;;;;;;;iBAOtB,kBAAkB;WACxB;WACA,aAAa,SAAS,eAAe;WACrC,WAAW,SAAS,eAAe;WACnC,eAAe,SAAS,eAAe;IAC9C;;;iBAGa,aAAa;;;;UAIpB;WACC,aAAa,SAAS,eAAe;WACrC,sBAAsB;;;iBAGhB,4BAA4B;WAClC;aACE,YAAY,SAAS;eACnB;iBACE,aAAa,SAAS;mBACpB,UAAU;;;;;WAKlB,uBAAuB;IAC9B;;iBAEa,0BAA0B,oBAAoB,UAAU,4BAA4B;;;KAGhG,cAAc,KAAK;;;;iBAIP,uBAAuB,QAAQ,eAAe,eAAe;;;;;;KAMzE;WACM;WACA;;WAEA;WACA;WACA;;;;;iBAKM,uBAAuB,iBAAiB,SAAS,cAAc;;;KAG3E;WACM;WACA;;WAEA;WACA;;;;;KAKN;WACM;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;WACA,SAAS;;WAET;WACA;WACA;WACA;;WAEA;WACA;WACA;WACA;WACA;;WAEA;W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AAQ,mBAAmB,sBAAsB,SAAS,eAAe,cAAc;;iBAErG,gBAAgB,cAAc,KAAK,cAAc,6BAA6B,QAAQ,SAAS,eAAe,SAAS,6BAA6B;;;KAGhK;WACM;WACA;;KAEN;WACM;WACA,OAAO;;WAEP;WACA;;iBAEM,kCAAkC,OAAO,YAAY,OAAO,wBAAwB;;;KAGhG;;WAEM;;WAEA;aACE;aACA;;;;;;;iBAOI,gCAAgC,OAAO,cAAc,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,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { v as MongoStorage } from "./index-
|
|
3
|
-
import "./mongo-contract-view-AnejqfrQ-
|
|
1
|
+
import { T as MongoContract } from "./mongo-value-set-ChzpEiPK-BVtp7f-a.mjs";
|
|
2
|
+
import { v as MongoStorage } from "./index-hugPlQ5w.mjs";
|
|
3
|
+
import "./mongo-contract-view-AnejqfrQ-DmXEDnxi.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-B_tAgqIO.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ir-
|
|
1
|
+
{"version":3,"file":"ir-B_tAgqIO.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"}
|
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-CgKJfbIP.mjs";
|
|
2
2
|
export type { MongoAdapter, MongoControlDriverInstance, MongoDdlPlan, MongoDriver, MongoLoweredDraft, MongoQueryable };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { r as AnyMongoMigrationOperation } from "./control-
|
|
4
|
-
import { t as MongoContractView$1 } from "./mongo-contract-view-AnejqfrQ-
|
|
1
|
+
import { T as MongoContract } from "./mongo-value-set-ChzpEiPK-BVtp7f-a.mjs";
|
|
2
|
+
import "./index-hugPlQ5w.mjs";
|
|
3
|
+
import { r as AnyMongoMigrationOperation } from "./control-BsOZ6I-N.mjs";
|
|
4
|
+
import { t as MongoContractView$1 } from "./mongo-contract-view-AnejqfrQ-DmXEDnxi.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-C8VlQx5N.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration-
|
|
1
|
+
{"version":3,"file":"migration-C8VlQx5N.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,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { p as MongoContractView } from "./index-
|
|
1
|
+
import { T as MongoContract } from "./mongo-value-set-ChzpEiPK-BVtp7f-a.mjs";
|
|
2
|
+
import { p as MongoContractView } from "./index-hugPlQ5w.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-DmXEDnxi.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mongo-contract-view-AnejqfrQ-
|
|
1
|
+
{"version":3,"file":"mongo-contract-view-AnejqfrQ-DmXEDnxi.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-value-set-bK4eBlxO-BCGb8sSL.d.mts → mongo-value-set-ChzpEiPK-BVtp7f-a.d.mts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as CollationOptions } from "./mongodb-types-B4HmhF1S.mjs";
|
|
2
2
|
import { IRNodeBase, Namespace, UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
|
|
3
3
|
import { Contract, ContractValueObjectField, ControlPolicy, JsonValue, StorageBase } from "@prisma/orm-framework/contract/types";
|
|
4
|
-
//#region ../../../2-mongo-family/1-foundation/mongo-contract/dist/mongo-value-set-
|
|
4
|
+
//#region ../../../2-mongo-family/1-foundation/mongo-contract/dist/mongo-value-set-ChzpEiPK.d.mts
|
|
5
5
|
//#region src/ir/mongo-collation-options.d.ts
|
|
6
6
|
type MongoCollationCaseFirst = 'off' | 'upper' | 'lower';
|
|
7
7
|
type MongoCollationStrength = 1 | 2 | 3 | 4 | 5;
|
|
@@ -183,6 +183,14 @@ type ExtractMongoCodecTypes<T> = ExtractMongoTypeMaps<T> extends {
|
|
|
183
183
|
} ? C extends Record<string, {
|
|
184
184
|
output: unknown;
|
|
185
185
|
}> ? C : Record<string, never> : Record<string, never>;
|
|
186
|
+
/** The shape every contract's codec types have: each codec id maps to at least its `output` type. */
|
|
187
|
+
type MongoCodecTypesBase = Record<string, {
|
|
188
|
+
readonly output: unknown;
|
|
189
|
+
}>;
|
|
190
|
+
/** The type a codec accepts as a value: its `input` type, or `unknown` when the codec types do not declare one. */
|
|
191
|
+
type MongoCodecInput<CT, Id extends keyof CT> = CT[Id] extends {
|
|
192
|
+
readonly input: infer I;
|
|
193
|
+
} ? I : unknown;
|
|
186
194
|
type ExtractMongoFieldOutputTypes<T> = ExtractMongoTypeMaps<T> extends {
|
|
187
195
|
fieldOutputTypes: infer F;
|
|
188
196
|
} ? F extends Record<string, Record<string, unknown>> ? F : Record<string, never> : Record<string, never>;
|
|
@@ -564,5 +572,5 @@ declare class MongoValueSet extends IRNodeBase {
|
|
|
564
572
|
constructor(input: MongoValueSetInput);
|
|
565
573
|
}
|
|
566
574
|
//#endregion
|
|
567
|
-
export {
|
|
568
|
-
//# sourceMappingURL=mongo-value-set-
|
|
575
|
+
export { MongoUnboundFieldOutputTypes as $, MongoIndexFields as A, MongoJsonValue as B, MongoCollectionOptionsAuthoringInput as C, MongoIndex as D, MongoContractWithTypeMaps as E, MongoIndexOptionDefaultsInput as F, MongoStorageClusteredIndexShape as G, MongoModelStorage as H, MongoIndexOptions as I, MongoTimeSeriesCollectionOptionsInput as J, MongoStorageShape as K, MongoIndexOptionsInput as L, MongoIndexKey as M, MongoIndexKeyDirection as N, MongoIndexAuthoringInput as O, MongoIndexOptionDefaults as P, MongoUnboundFieldInputTypes as Q, MongoJsonObject as R, MongoCollectionOptions as S, MongoContract as T, MongoModelsMap as U, MongoModelFieldStorage as V, MongoStorageCappedShape as W, MongoTypeMaps as X, MongoTimeSeriesGranularity as Y, MongoTypeMapsPhantomKey as Z, MongoCollationOptions as _, ExtractMongoTypeMaps as a, MongoValueObjectInput as at, MongoCollection as b, MongoChangeStreamPreAndPostImagesOptionsInput as c, MongoWildcardProjection as ct, MongoClusteredCollectionOptionsInput as d, RootModelName as dt, MongoValidator as et, MongoCodecInput as f, MongoCollationMaxVariable as g, MongoCollationCaseFirst as h, ExtractMongoFieldOutputTypes as i, MongoValueObject as it, MongoIndexInput as j, MongoIndexFieldValue as k, MongoClusteredCollectionKey as l, OwnFieldStoredAs as lt, MongoCollationAlternate as m, ExtractMongoCodecTypes as n, MongoValidatorValidationAction as nt, InferModelRow as o, MongoValueSet as ot, MongoCodecTypesBase as p, MongoTimeSeriesCollectionOptions as q, ExtractMongoFieldInputTypes as r, MongoValidatorValidationLevel as rt, MongoChangeStreamPreAndPostImagesOptions as s, MongoValueSetInput as st, AnyMongoTypeMaps as t, MongoValidatorInput as tt, MongoClusteredCollectionOptions as u, OwnStoredNameOf as ut, MongoCollationOptionsInput as v, MongoCollectionOptionsInput as w, MongoCollectionInput as x, MongoCollationStrength as y, MongoJsonPrimitive as z };
|
|
576
|
+
//# sourceMappingURL=mongo-value-set-ChzpEiPK-BVtp7f-a.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongo-value-set-ChzpEiPK-BVtp7f-a.d.mts","names":[],"sources":["../../../../2-mongo-family/1-foundation/mongo-contract/dist/mongo-value-set-ChzpEiPK.d.mts"],"mappings":";;;;;KAIK;KACA;KACA;KACA;;;;;;;;UAQK;WACC;WACA;WACA,YAAY;WACZ,WAAW;WACX;WACA,YAAY;WACZ,cAAc;WACd;WACA;;;;;;;;;;;;;;;;cAgBG,8BAA8B;WACjC;WACA;WACA;WACA,YAAY;WACZ,WAAW;WACX;WACA,YAAY;WACZ,cAAc;WACd;WACA;EACT,YAAY,SAAS;;;;;;;;;;UAUb;WACC;WACA;WACA,0BAA0B;WAC1B;WACA;WACA,UAAU,SAAS;WACnB;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,YAAY,wBAAwB;WACpC,qBAAqB;;;;;;;;;;;;cAYlB,0BAA0B;WAC7B;WACA;WACA;WACA,0BAA0B;WAC1B;WACA;WACA,UAAU,SAAS;WACnB;WACA;WACA;;WAEA;WACA;WACA;WACA;WACA;WACA,YAAY;WACZ,qBAAqB;EAC9B,YAAY,UAAU;;;;KAInB;KACA,mBAAmB,eAAe;KAClC;KACA,iBAAiB,8BAA8B,mBAAmB;KAClE;YACO,cAAc;;KAErB,0BAA0B,SAAS;;;;;;;KAOnC;WACM,QAAQ;WACR,UAAU;;KAEhB;UACK;WACC;WACA,WAAW;;KAEjB;WACM;;KAEN;WACM;WACA,QAAQ,SAAS,eAAe;WAChC,YAAY;aACV;;;KAGR,wBAAwB,SAAS,eAAe,SAAS;WACnD,aAAa,SAAS,eAAe;;KAE3C,kBAAkB,iCAAiC,YAAY;WACzD,YAAY,eAAe;aACzB,SAAS;;;KAGjB,cAAc,UAAU,oBAAoB,qBAAqB,SAAS;;;;;;;;KAQ1E,eAAe,kBAAkB,iBAAiB,yCAAyC;KAC3F,cAAc,kBAAkB,eAAe,uBAAuB,+BAA+B,mBAAmB;WAClH,aAAa;IACpB,UAAU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