@prisma/orm-family-mongo 8.0.0-rc.18-dev.11 → 8.0.0-rc.18-dev.13
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-8yNXQKSJ-COs9oUJY.mjs → authoring-entity-types-ooM-r2td-r5JwBDd-.mjs} +11 -43
- package/dist/authoring-entity-types-ooM-r2td-r5JwBDd-.mjs.map +1 -0
- package/dist/{contract-builder-DWne7sJK.mjs → contract-builder-C_-FfTnK.mjs} +3 -3
- package/dist/{contract-builder-DWne7sJK.mjs.map → contract-builder-C_-FfTnK.mjs.map} +1 -1
- package/dist/{contract-builder-CHodgHxn.d.mts → contract-builder-CyB-7-Eq.d.mts} +2 -2
- package/dist/{contract-builder-CHodgHxn.d.mts.map → contract-builder-CyB-7-Eq.d.mts.map} +1 -1
- package/dist/contract-prisma6__provider.mjs +2 -2
- package/dist/contract-psl.d.mts +2 -21
- package/dist/contract-psl.d.mts.map +1 -1
- package/dist/contract-psl.mjs +2 -2
- package/dist/contract-psl__provider.mjs +2 -2
- package/dist/contract-psl__provider.mjs.map +1 -1
- package/dist/contract-ts.d.mts +1 -1
- package/dist/contract-ts.mjs +1 -1
- package/dist/contract-ts__contract-builder.d.mts +1 -1
- package/dist/contract-ts__contract-builder.mjs +1 -1
- package/dist/contract.d.mts +2 -2
- package/dist/contract.mjs +2 -2
- package/dist/contract__data-type.d.mts +1 -1
- package/dist/contract__data-type.mjs +1 -1
- package/dist/{control-BYbEjuQ5.d.mts → control-4JTCKNgO.d.mts} +2 -2
- package/dist/{control-BYbEjuQ5.d.mts.map → control-4JTCKNgO.d.mts.map} +1 -1
- package/dist/{control-Df3-4ayL.d.mts → control-SoPc-6DA.d.mts} +4 -4
- package/dist/{control-Df3-4ayL.d.mts.map → control-SoPc-6DA.d.mts.map} +1 -1
- package/dist/{control-BYnFmj1v.mjs → control-Yu_IYcIP.mjs} +4 -4
- package/dist/{control-BYnFmj1v.mjs.map → control-Yu_IYcIP.mjs.map} +1 -1
- package/dist/{control-adapter-Bh_ZraGM-Djo--Ygg.d.mts → control-adapter-Bh_ZraGM-D3xSqwxa.d.mts} +4 -4
- package/dist/{control-adapter-Bh_ZraGM-Djo--Ygg.d.mts.map → control-adapter-Bh_ZraGM-D3xSqwxa.d.mts.map} +1 -1
- package/dist/control-adapter-DriGOlGH.d.mts +1 -0
- package/dist/dist-BbfUvuqQ.mjs +629 -0
- package/dist/dist-BbfUvuqQ.mjs.map +1 -0
- package/dist/dist-xk_0xOR-.mjs.map +1 -1
- package/dist/family.d.mts +9 -9
- package/dist/family.mjs +6 -6
- 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__ir.mjs +2 -2
- 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__pack.mjs.map +1 -1
- package/dist/family__runtime.d.mts +2 -2
- package/dist/family__runtime.mjs +1 -1
- package/dist/family__schema-verify.d.mts +1 -1
- package/dist/{field-accessor-CE4JbDIa-CemAdCzH.d.mts → field-accessor-CE4JbDIa-DCI8nD_s.d.mts} +2 -2
- package/dist/{field-accessor-CE4JbDIa-CemAdCzH.d.mts.map → field-accessor-CE4JbDIa-DCI8nD_s.d.mts.map} +1 -1
- package/dist/{index-D8_oAhb-.d.mts → index-B8HcPJrE.d.mts} +3 -3
- package/dist/{index-D8_oAhb-.d.mts.map → index-B8HcPJrE.d.mts.map} +1 -1
- package/dist/{index-XFSLz1g-.d.mts → index-BFhyIsHU.d.mts} +2 -2
- package/dist/{index-XFSLz1g-.d.mts.map → index-BFhyIsHU.d.mts.map} +1 -1
- package/dist/{index-mWfX7vkw.d.mts → index-CMd3fTIb.d.mts} +2 -2
- package/dist/{index-mWfX7vkw.d.mts.map → index-CMd3fTIb.d.mts.map} +1 -1
- package/dist/{index-C9aUMsc0.d.mts → index-hQxjnY-x.d.mts} +3 -3
- package/dist/{index-C9aUMsc0.d.mts.map → index-hQxjnY-x.d.mts.map} +1 -1
- package/dist/{index-Dg5hCMsu.d.mts → index-p1mHGKB5.d.mts} +57 -4
- package/dist/index-p1mHGKB5.d.mts.map +1 -0
- package/dist/{interpreter-Bhe8FSI4-uGNm4vAs.mjs → interpreter-BKBSURkK-B9QVhiLs.mjs} +23 -144
- package/dist/interpreter-BKBSURkK-B9QVhiLs.mjs.map +1 -0
- package/dist/{ir-iCpQRIJM.d.mts → ir-Cs8SNS0n.d.mts} +3 -3
- package/dist/{ir-iCpQRIJM.d.mts.map → ir-Cs8SNS0n.d.mts.map} +1 -1
- package/dist/ir-vZWjElPY.mjs.map +1 -1
- package/dist/lowering.d.mts +1 -1
- package/dist/{migration-BT1gIMTZ.mjs → migration-Bd8GWTeP.mjs} +2 -2
- package/dist/{migration-BT1gIMTZ.mjs.map → migration-Bd8GWTeP.mjs.map} +1 -1
- package/dist/{migration-BDqwISt7.d.mts → migration-DMXCxDu-.d.mts} +4 -4
- package/dist/{migration-BDqwISt7.d.mts.map → migration-DMXCxDu-.d.mts.map} +1 -1
- package/dist/{mongo-contract-serializer-DC_DM9_Y-CVJfr1pm.mjs → mongo-contract-serializer-5OphMWx2-DkWnm3kW.mjs} +3 -3
- package/dist/{mongo-contract-serializer-DC_DM9_Y-CVJfr1pm.mjs.map → mongo-contract-serializer-5OphMWx2-DkWnm3kW.mjs.map} +1 -1
- package/dist/{mongo-contract-view-AnejqfrQ-DYyueW8J.d.mts → mongo-contract-view-AnejqfrQ-CXymmojn.d.mts} +2 -2
- package/dist/{mongo-contract-view-AnejqfrQ-DYyueW8J.d.mts.map → mongo-contract-view-AnejqfrQ-CXymmojn.d.mts.map} +1 -1
- package/dist/{mongo-contract-view-JZOa0Ry--BZ2GUZQB.mjs → mongo-contract-view-OSrxTeL0-IBirxnYy.mjs} +4 -4
- package/dist/{mongo-contract-view-JZOa0Ry--BZ2GUZQB.mjs.map → mongo-contract-view-OSrxTeL0-IBirxnYy.mjs.map} +1 -1
- package/dist/{data-type-DuiFEJxB.d.mts → mongo-data-type-BMIRhoZC-COGrnC0Z.d.mts} +2 -2
- package/dist/mongo-data-type-BMIRhoZC-COGrnC0Z.d.mts.map +1 -0
- package/dist/{data-type-Cl0vtmfh.mjs → mongo-data-type-DJ7W2ota-BnUN7ydW.mjs} +2 -2
- package/dist/mongo-data-type-DJ7W2ota-BnUN7ydW.mjs.map +1 -0
- package/dist/orm.d.mts +2 -2
- package/dist/query-ast.d.mts +1 -1
- package/dist/query-ast__control.d.mts +1 -1
- package/dist/query-builder.d.mts +2 -2
- package/dist/query-builder__contract-free.d.mts +2 -2
- package/dist/{runtime-BIOlGVaz.d.mts → runtime-CQUQkK0P.d.mts} +2 -2
- package/dist/runtime-CQUQkK0P.d.mts.map +1 -0
- package/dist/runtime.d.mts +2 -2
- package/dist/schema-ir.d.mts +1 -1
- package/dist/{schema-verify-BP6zabY1.d.mts → schema-verify-Bzmg6whi.d.mts} +3 -3
- package/dist/{schema-verify-BP6zabY1.d.mts.map → schema-verify-Bzmg6whi.d.mts.map} +1 -1
- package/dist/wire.d.mts +1 -1
- package/package.json +20 -20
- package/dist/authoring-entity-types-8yNXQKSJ-COs9oUJY.mjs.map +0 -1
- package/dist/control-adapter-8uWiylj9.d.mts +0 -1
- package/dist/data-type-Cl0vtmfh.mjs.map +0 -1
- package/dist/data-type-DuiFEJxB.d.mts.map +0 -1
- package/dist/dist-CYYrUE3W.mjs +0 -310
- package/dist/dist-CYYrUE3W.mjs.map +0 -1
- package/dist/index-Dg5hCMsu.d.mts.map +0 -1
- package/dist/interpreter-Bhe8FSI4-uGNm4vAs.mjs.map +0 -1
- package/dist/runtime-BIOlGVaz.d.mts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dist-BbfUvuqQ.mjs","names":[],"sources":["../../../../2-mongo-family/1-foundation/mongo-contract/dist/index.mjs"],"sourcesContent":["import { t as mongoContractCanonicalizationHooks } from \"./canonicalization-hooks-CRVM-Kqh.mjs\";\nimport { a as MongoCollection, c as MongoCollectionOptions, d as MongoCollationOptions, f as MongoChangeStreamPreAndPostImagesOptions, g as createMongoNamespaceEnvelopeSchema, h as createMongoContractSchema, i as MongoValueSet, l as MongoTimeSeriesCollectionOptions, m as StorageValueSetSchema, n as composeMongoEntityKinds, o as MongoValidator, p as MongoContractSchema, s as MongoIndex, u as MongoIndexOptionDefaults } from \"./entity-kinds-RooUvcN8.mjs\";\nimport { t as bsonTypesOfCodec } from \"./mongo-data-type-DJ7W2ota.mjs\";\nimport { RelationKeys } from \"@internal/framework-components/runtime\";\nimport { computeStorageHash } from \"@internal/contract/hashing\";\nimport { IRNodeBase, NamespaceBase, UNBOUND_NAMESPACE_ID, buildNamespacedEntities, buildSingleNamespaceView, freezeNode, hydrateNamespaceEntities } from \"@internal/framework-components/ir\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { UNBOUND_DOMAIN_NAMESPACE_ID } from \"@internal/contract/default-namespace\";\nimport { assertDefined } from \"@internal/utils/assertions\";\n//#region src/ir/mongo-unbound-namespace.ts\nvar MongoUnboundNamespace = class MongoUnboundNamespace extends NamespaceBase {\n\tstatic instance = new MongoUnboundNamespace();\n\tid = UNBOUND_NAMESPACE_ID;\n\tentries = Object.freeze({ collection: Object.freeze({}) });\n\tconstructor() {\n\t\tsuper();\n\t\tObject.defineProperty(this, \"kind\", {\n\t\t\tvalue: \"mongo-namespace\",\n\t\t\twritable: false,\n\t\t\tenumerable: false,\n\t\t\tconfigurable: true\n\t\t});\n\t\tfreezeNode(this);\n\t}\n};\n//#endregion\n//#region src/ir/build-mongo-namespace.ts\nconst MONGO_NAMESPACE_KIND = \"mongo-namespace\";\nvar MongoBoundNamespace = class MongoBoundNamespace extends NamespaceBase {\n\tid;\n\tentries;\n\tstatic fromCollectionsInput(input) {\n\t\tconst collectionMap = input.entries[\"collection\"];\n\t\tconst collectionCount = collectionMap !== void 0 ? Object.keys(collectionMap).length : 0;\n\t\tconst hasUnknownKinds = Object.keys(input.entries).some((kind) => kind !== \"collection\");\n\t\tif (input.id === UNBOUND_NAMESPACE_ID && collectionCount === 0 && !hasUnknownKinds) return MongoUnboundNamespace.instance;\n\t\treturn new MongoBoundNamespace(input);\n\t}\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.id = input.id;\n\t\tconst rawEntries = {\n\t\t\tcollection: {},\n\t\t\t...input.entries\n\t\t};\n\t\tthis.entries = Object.freeze(blindCast(hydrateNamespaceEntities(rawEntries, composeMongoEntityKinds(), \"carry\")));\n\t\tObject.defineProperty(this, \"kind\", {\n\t\t\tvalue: MONGO_NAMESPACE_KIND,\n\t\t\twritable: false,\n\t\t\tenumerable: false,\n\t\t\tconfigurable: true\n\t\t});\n\t\tfreezeNode(this);\n\t}\n\tget collection() {\n\t\treturn this.entries.collection ?? Object.freeze({});\n\t}\n};\nfunction buildMongoNamespace(input) {\n\treturn MongoBoundNamespace.fromCollectionsInput(input);\n}\n//#endregion\n//#region src/ir/mongo-storage.ts\nvar MongoStorage = class extends IRNodeBase {\n\tstorageHash;\n\tnamespaces;\n\tconstructor(input) {\n\t\tsuper();\n\t\tObject.defineProperty(this, \"kind\", {\n\t\t\tvalue: \"mongo-storage\",\n\t\t\twritable: false,\n\t\t\tenumerable: false,\n\t\t\tconfigurable: true\n\t\t});\n\t\tthis.storageHash = input.storageHash;\n\t\tthis.namespaces = Object.freeze(input.namespaces);\n\t\tfreezeNode(this);\n\t}\n};\n//#endregion\n//#region src/build-mongo-storage.ts\n/**\n* Builds a Mongo contract's storage: the unbound namespace holding the collections and value sets, and the storage hash that `db sign` and `db verify` compare. Every Mongo contract source calls this, so they hash storage the same way.\n*/\nfunction buildMongoStorage(input) {\n\tconst hasValueSets = Object.keys(input.valueSets).length > 0;\n\tconst namespace = buildMongoNamespace({\n\t\tid: UNBOUND_NAMESPACE_ID,\n\t\tentries: {\n\t\t\tcollection: input.collections,\n\t\t\t...hasValueSets ? { valueSet: input.valueSets } : {}\n\t\t}\n\t});\n\treturn new MongoStorage({\n\t\tstorageHash: computeStorageHash({\n\t\t\ttarget: \"mongo\",\n\t\t\ttargetFamily: \"mongo\",\n\t\t\tstorage: { namespaces: { [UNBOUND_NAMESPACE_ID]: {\n\t\t\t\tid: UNBOUND_NAMESPACE_ID,\n\t\t\t\tentries: {\n\t\t\t\t\tcollection: namespace.entries.collection,\n\t\t\t\t\t...namespace.entries.valueSet !== void 0 ? { valueSet: namespace.entries.valueSet } : {}\n\t\t\t\t}\n\t\t\t} } },\n\t\t\t...mongoContractCanonicalizationHooks\n\t\t}),\n\t\tnamespaces: { [UNBOUND_NAMESPACE_ID]: namespace }\n\t});\n}\n//#endregion\n//#region src/contract-view.ts\nconst MONGO_BUILTIN_KINDS = [\"collection\"];\n/**\n* Builds the Mongo view: unwraps the sole namespace's built-in `collection` kind\n* to the root, attaches the namespace-keyed `namespace` map, and layers both\n* over the deserialized contract so the result is a structural superset of the\n* contract.\n*/\nfunction buildMongoContractView(contract) {\n\tconst rootAccessors = buildSingleNamespaceView(contract.storage, MONGO_BUILTIN_KINDS);\n\tconst namespace = buildNamespacedEntities(contract.storage, MONGO_BUILTIN_KINDS);\n\treturn {\n\t\t...contract,\n\t\t...rootAccessors,\n\t\tnamespace\n\t};\n}\n//#endregion\n//#region src/default-namespace.ts\n/** Default storage namespace for Mongo-family contracts at runtime. */\nconst defaultMongoStorageNamespaceId = UNBOUND_NAMESPACE_ID;\n/** Default domain namespace for Mongo-family contracts at runtime. */\nconst defaultMongoDomainNamespaceId = UNBOUND_DOMAIN_NAMESPACE_ID;\n//#endregion\n//#region src/relation-fields.ts\nconst DOCUMENT_ID_FIELD = \"_id\";\n/**\n* The model facts behind a same-space to-one relation's nullability: which side owns the\n* foreign key, and whether each local field is nullable.\n*/\nfunction resolveMongoToOneRelationFields(model, relation) {\n\tconst fields = relation.on.localFields.map((name) => ({\n\t\tname,\n\t\tnullable: model.fields[name]?.nullable ?? true\n\t}));\n\treturn {\n\t\townsForeignKey: !(relation.cardinality === \"1:1\" && fields.every((field) => field.name === DOCUMENT_ID_FIELD)),\n\t\tfields\n\t};\n}\n/** Whether `relation` stores the related model inside the document, rather than referring to documents elsewhere. */\nfunction isEmbedRelation(relation) {\n\treturn !(\"on\" in relation) && !(\"through\" in relation);\n}\n//#endregion\n//#region src/recursive-groups.ts\nfunction typeKey(kind, name) {\n\treturn `${kind}:${name}`;\n}\nfunction referencesOf(fields) {\n\treturn Object.values(fields).flatMap((field) => field.type.kind === \"valueObject\" ? [typeKey(\"valueObject\", field.type.name)] : []);\n}\n/**\n* The recursive groups of value objects and embedded models: each set of types that can reach each other through value-object fields and embed relations (a strongly connected component of that graph), and each type that refers to itself. Maps the {@link typeKey} of every type in such a group to the group's number; a type in no recursive group is absent.\n*/\nfunction recursiveGroupsOf(valueObjects, models) {\n\tconst edges = /* @__PURE__ */ new Map();\n\tfor (const [name, valueObject] of Object.entries(valueObjects)) edges.set(typeKey(\"valueObject\", name), referencesOf(valueObject.fields));\n\tfor (const [name, model] of Object.entries(models)) {\n\t\tconst embeds = Object.values(model.relations).flatMap((relation) => isEmbedRelation(relation) ? [typeKey(\"model\", relation.to.model)] : []);\n\t\tedges.set(typeKey(\"model\", name), [...referencesOf(model.fields), ...embeds]);\n\t}\n\tconst groups = /* @__PURE__ */ new Map();\n\tconst index = /* @__PURE__ */ new Map();\n\tconst lowLink = /* @__PURE__ */ new Map();\n\tconst stack = [];\n\tconst onStack = /* @__PURE__ */ new Set();\n\tlet nextIndex = 0;\n\tlet nextGroup = 0;\n\tconst visit = (node) => {\n\t\tindex.set(node, nextIndex);\n\t\tlowLink.set(node, nextIndex);\n\t\tnextIndex++;\n\t\tstack.push(node);\n\t\tonStack.add(node);\n\t\tfor (const target of edges.get(node) ?? []) {\n\t\t\tif (!edges.has(target)) continue;\n\t\t\tif (!index.has(target)) {\n\t\t\t\tvisit(target);\n\t\t\t\tlowLink.set(node, Math.min(lowLink.get(node) ?? 0, lowLink.get(target) ?? 0));\n\t\t\t} else if (onStack.has(target)) lowLink.set(node, Math.min(lowLink.get(node) ?? 0, index.get(target) ?? 0));\n\t\t}\n\t\tif (lowLink.get(node) !== index.get(node)) return;\n\t\tconst members = [];\n\t\tlet member;\n\t\tdo {\n\t\t\tmember = stack.pop();\n\t\t\tif (member === void 0) break;\n\t\t\tonStack.delete(member);\n\t\t\tmembers.push(member);\n\t\t} while (member !== node);\n\t\tconst refersToItself = (edges.get(node) ?? []).includes(node);\n\t\tif (members.length > 1 || refersToItself) {\n\t\t\tfor (const each of members) groups.set(each, nextGroup);\n\t\t\tnextGroup++;\n\t\t}\n\t};\n\tfor (const node of edges.keys()) if (!index.has(node)) visit(node);\n\treturn groups;\n}\n//#endregion\n//#region src/derive-json-schema.ts\n/**\n* `$jsonSchema` has no references, so a type that contains itself, directly or through other types, cannot be described at every depth. The validator describes the type through which a path enters a recursive group in full, and accepts any object for each field below it that refers back into that group. So each group is written out once for each place a document enters it, and no valid document is refused.\n*/\nconst OPEN_OBJECT = { bsonType: \"object\" };\nfunction sourcesFor(input, rootKey) {\n\tconst groups = recursiveGroupsOf(input.valueObjects, input.models);\n\tconst rootGroup = groups.get(rootKey);\n\treturn {\n\t\t...input,\n\t\tgroups,\n\t\tenteredGroups: new Set(rootGroup === void 0 ? [] : [rootGroup])\n\t};\n}\nfunction objectSchemaOf(kind, name, shape, sources) {\n\tconst key = typeKey(kind, name);\n\tconst group = sources.groups.get(key);\n\tif (group !== void 0 && sources.enteredGroups.has(group)) return OPEN_OBJECT;\n\treturn deriveObjectSchema(shape, entering(key, sources));\n}\n/** `sources` with the recursive group of the type `key` entered, if it has one. */\nfunction entering(key, sources) {\n\tconst group = sources.groups.get(key);\n\tif (group === void 0 || sources.enteredGroups.has(group)) return sources;\n\treturn {\n\t\t...sources,\n\t\tenteredGroups: /* @__PURE__ */ new Set([...sources.enteredGroups, group])\n\t};\n}\nconst NO_RELATIONS = {};\nconst NOTHING_INHERITED = {\n\tfields: {},\n\trelations: NO_RELATIONS\n};\n/**\n* The `bsonType` keyword for a list of BSON type names: the name itself for one entry, the list for several.\n*/\nfunction bsonTypeKeyword(bsonTypes) {\n\tconst [only, ...rest] = bsonTypes;\n\treturn only !== void 0 && rest.length === 0 ? only : [...bsonTypes];\n}\nfunction withNull(bsonTypes) {\n\treturn bsonTypes.includes(\"null\") ? bsonTypes : [\"null\", ...bsonTypes];\n}\nfunction anyValueSchema(field) {\n\tif (\"many\" in field && field.many) return {\n\t\tbsonType: field.nullable ? [\"null\", \"array\"] : \"array\",\n\t\titems: {}\n\t};\n\treturn {};\n}\nfunction fieldToBsonSchema(field, sources) {\n\tconst { lookups, valueObjects, valueSets } = sources;\n\tif (field.type.kind === \"scalar\") {\n\t\tconst bsonTypes = bsonTypesOfCodec(field.type.codecId, lookups);\n\t\tif (bsonTypes === void 0) return void 0;\n\t\tif (bsonTypes.length === 0) return anyValueSchema(field);\n\t\tconst bsonType = bsonTypeKeyword(bsonTypes);\n\t\tconst enumValues = field.valueSet !== void 0 ? valueSets[field.valueSet.entityName]?.values ?? null : null;\n\t\tif (field.many) {\n\t\t\tconst items = { bsonType: field.many.elementNullable ? [\"null\", bsonType] : bsonType };\n\t\t\tif (enumValues) items[\"enum\"] = field.many.elementNullable ? [...enumValues, null] : enumValues;\n\t\t\treturn {\n\t\t\t\tbsonType: field.nullable ? [\"null\", \"array\"] : \"array\",\n\t\t\t\titems\n\t\t\t};\n\t\t}\n\t\tif (field.nullable) {\n\t\t\tconst s = { bsonType: bsonTypeKeyword(withNull(bsonTypes)) };\n\t\t\tif (enumValues) s[\"enum\"] = [...enumValues, null];\n\t\t\treturn s;\n\t\t}\n\t\tconst s = { bsonType };\n\t\tif (enumValues) s[\"enum\"] = enumValues;\n\t\treturn s;\n\t}\n\tif (field.type.kind === \"valueObject\") {\n\t\tconst vo = valueObjects[field.type.name];\n\t\tif (!vo) return void 0;\n\t\tconst voSchema = objectSchemaOf(\"valueObject\", field.type.name, {\n\t\t\tfields: vo.fields,\n\t\t\trelations: NO_RELATIONS\n\t\t}, sources);\n\t\tif (field.many) return {\n\t\t\tbsonType: field.nullable ? [\"null\", \"array\"] : \"array\",\n\t\t\titems: field.many.elementNullable ? { oneOf: [{ bsonType: \"null\" }, voSchema] } : voSchema\n\t\t};\n\t\tif (field.nullable) return { oneOf: [{ bsonType: \"null\" }, voSchema] };\n\t\treturn voSchema;\n\t}\n}\n/**\n* An embedded model is stored inside its owner's document as a closed object (a list of them for `1:N`). The contract does not say whether one must be present, and the ORM creates documents without them, so the property is never required.\n*/\nfunction embedToBsonSchema(relation, sources) {\n\tconst embeddedName = relation.to.model;\n\tconst embedded = sources.models[embeddedName];\n\tassertDefined(embedded, `Embedded model \"${embeddedName}\" is missing`);\n\tconst schema = objectSchemaOf(\"model\", embeddedName, embedded, sources);\n\treturn relation.cardinality === \"1:N\" ? {\n\t\tbsonType: \"array\",\n\t\titems: schema\n\t} : schema;\n}\n/**\n* The properties of `shape`, leaving out the fields and relations `inherited` already describes.\n*/\nfunction propertiesOf(shape, sources, inherited) {\n\tconst properties = {};\n\tconst required = [];\n\tfor (const [fieldName, field] of Object.entries(shape.fields)) {\n\t\tif (Object.hasOwn(inherited.fields, fieldName)) continue;\n\t\tconst schema = fieldToBsonSchema(field, sources);\n\t\tif (schema) {\n\t\t\tproperties[fieldName] = schema;\n\t\t\tif (!field.nullable) required.push(fieldName);\n\t\t}\n\t}\n\tfor (const [relationName, relation] of Object.entries(shape.relations)) {\n\t\tif (Object.hasOwn(inherited.relations, relationName) || !isEmbedRelation(relation)) continue;\n\t\tproperties[relationName] = embedToBsonSchema(relation, sources);\n\t}\n\treturn {\n\t\tproperties,\n\t\trequired\n\t};\n}\nfunction deriveObjectSchema(shape, sources) {\n\tconst { properties, required } = propertiesOf(shape, sources, NOTHING_INHERITED);\n\tconst result = {\n\t\tbsonType: \"object\",\n\t\tproperties,\n\t\tadditionalProperties: false\n\t};\n\tif (required.length > 0) result[\"required\"] = required.sort();\n\treturn result;\n}\nfunction isRecord(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\nfunction validatorOf(jsonSchema) {\n\treturn new MongoValidator({\n\t\tjsonSchema,\n\t\tvalidationLevel: \"strict\",\n\t\tvalidationAction: \"error\"\n\t});\n}\nfunction polymorphicSchema(base, discriminatorField, variants, sources) {\n\tconst baseSchema = deriveObjectSchema(base, sources);\n\tconst baseProperties = isRecord(baseSchema[\"properties\"]) ? baseSchema[\"properties\"] : {};\n\tconst oneOf = [];\n\tfor (const variant of variants) {\n\t\tconst { properties: variantProperties, required } = propertiesOf(variant, entering(typeKey(\"model\", variant.modelName), sources), base);\n\t\toneOf.push({\n\t\t\tproperties: {\n\t\t\t\t...baseProperties,\n\t\t\t\t[discriminatorField]: { enum: [variant.discriminatorValue] },\n\t\t\t\t...variantProperties\n\t\t\t},\n\t\t\trequired: [discriminatorField, ...required].sort(),\n\t\t\tadditionalProperties: false\n\t\t});\n\t}\n\tconst jsonSchema = { ...baseSchema };\n\tdelete jsonSchema[\"additionalProperties\"];\n\tif (oneOf.length > 0) jsonSchema[\"oneOf\"] = oneOf;\n\treturn jsonSchema;\n}\n/**\n* The validator of a root model's collection: the model's fields and embedded models, and for a model with variants one `oneOf` branch per variant.\n*/\nfunction deriveModelValidator(modelName, model, sources) {\n\tconst schemaSources = sourcesFor(sources, typeKey(\"model\", modelName));\n\tif (!model.discriminator || !model.variants) return validatorOf(deriveObjectSchema(model, schemaSources));\n\tconst variants = Object.entries(model.variants).map(([discriminatorValue, variant]) => {\n\t\tconst variantModel = sources.models[variant.model];\n\t\tassertDefined(variantModel, `Variant model \"${variant.model}\" of \"${modelName}\" is missing`);\n\t\treturn {\n\t\t\tdiscriminatorValue,\n\t\t\tmodelName: variant.model,\n\t\t\t...variantModel\n\t\t};\n\t});\n\treturn validatorOf(polymorphicSchema(model, model.discriminator.field, variants, schemaSources));\n}\n//#endregion\n//#region src/derive-collection-validators.ts\n/**\n* The validator of each collection in `roots`, keyed by collection name, derived from the collection's root model. A root model with variants gets one polymorphic validator covering every variant.\n*/\nfunction deriveCollectionValidators(input) {\n\tconst validators = {};\n\tfor (const [collectionName, root] of Object.entries(input.roots)) {\n\t\tconst model = input.models[root.model];\n\t\tassertDefined(model, `Root model \"${root.model}\" of collection \"${collectionName}\" is missing`);\n\t\tvalidators[collectionName] = deriveModelValidator(root.model, model, input);\n\t}\n\treturn validators;\n}\n//#endregion\n//#region src/document-id-refusal.ts\nconst notObjectId = {\n\tkind: \"notObjectId\",\n\treason: \"has no _id field stored as BSON type objectId. MongoDB adds an objectId _id to every document it inserts without one, so a collection validator without it rejects every insert.\"\n};\n/**\n* Why a root model with `fields` cannot be stored in a collection with a validator, or undefined when it can. The reason leaves out its subject so each authoring surface can lead with its own, as in `Model \"User\" has no _id field ...`.\n*/\nfunction documentIdRefusalOf(fields, lookups) {\n\tconst id = Object.hasOwn(fields, \"_id\") ? fields[\"_id\"] : void 0;\n\tif (id?.type.kind !== \"scalar\") return notObjectId;\n\tconst bsonTypes = bsonTypesOfCodec(id.type.codecId, lookups);\n\tif (bsonTypes === void 0) return {\n\t\tkind: \"unknownCodec\",\n\t\treason: `has an _id field whose codec \"${id.type.codecId}\" has no MongoDB data type, so its BSON type is unknown.`\n\t};\n\treturn bsonTypes.length === 1 && bsonTypes[0] === \"objectId\" ? void 0 : notObjectId;\n}\n//#endregion\n//#region src/ir/mongo-clustered-collection-options.ts\n/**\n* Clustered-collection options (the `clusteredIndex` collection-creation\n* field). Lifted from a `type =` data shape to an AST class extending\n* `IRNodeBase` per FR18.\n*\n* MongoDB requires `key` and `unique` for any clustered collection; the\n* constructor enforces presence by type signature.\n*/\nvar MongoClusteredCollectionOptions = class extends IRNodeBase {\n\tkind = \"mongo-clustered-collection-options\";\n\tkey;\n\tunique;\n\tconstructor(options) {\n\t\tsuper();\n\t\tif (options.name !== void 0) this.name = options.name;\n\t\tthis.key = options.key;\n\t\tthis.unique = options.unique;\n\t\tfreezeNode(this);\n\t}\n};\n//#endregion\n//#region src/ir/mongo-index-options.ts\n/**\n* Mongo Contract IR node for the per-index option vocabulary (the second\n* argument to `db.collection.createIndex(keys, options)` minus the keys\n* themselves). Lifted from a `type =` data shape to an AST class\n* extending `IRNodeBase` per FR18.\n*\n* Nested `collation` is itself an IR class (`MongoCollationOptions`); the\n* constructor accepts either a class instance or a data literal and\n* normalises to the class form so downstream walks see a uniform IR tree.\n*/\nvar MongoIndexOptions = class extends IRNodeBase {\n\tkind = \"mongo-index-options\";\n\tconstructor(options = {}) {\n\t\tsuper();\n\t\tif (options.unique !== void 0) this.unique = options.unique;\n\t\tif (options.name !== void 0) this.name = options.name;\n\t\tif (options.partialFilterExpression !== void 0) this.partialFilterExpression = options.partialFilterExpression;\n\t\tif (options.sparse !== void 0) this.sparse = options.sparse;\n\t\tif (options.expireAfterSeconds !== void 0) this.expireAfterSeconds = options.expireAfterSeconds;\n\t\tif (options.weights !== void 0) this.weights = options.weights;\n\t\tif (options.default_language !== void 0) this.default_language = options.default_language;\n\t\tif (options.language_override !== void 0) this.language_override = options.language_override;\n\t\tif (options.textIndexVersion !== void 0) this.textIndexVersion = options.textIndexVersion;\n\t\tif (options[\"2dsphereIndexVersion\"] !== void 0) this[\"2dsphereIndexVersion\"] = options[\"2dsphereIndexVersion\"];\n\t\tif (options.bits !== void 0) this.bits = options.bits;\n\t\tif (options.min !== void 0) this.min = options.min;\n\t\tif (options.max !== void 0) this.max = options.max;\n\t\tif (options.bucketSize !== void 0) this.bucketSize = options.bucketSize;\n\t\tif (options.hidden !== void 0) this.hidden = options.hidden;\n\t\tif (options.collation !== void 0) this.collation = options.collation instanceof MongoCollationOptions ? options.collation : new MongoCollationOptions(options.collation);\n\t\tif (options.wildcardProjection !== void 0) this.wildcardProjection = options.wildcardProjection;\n\t\tfreezeNode(this);\n\t}\n};\n//#endregion\n//#region src/mongo-enum.ts\n/**\n* The storage value set of each enum: its members as the contract holds them, in the form their codec stores.\n*/\nfunction mongoValueSetsOf(enums) {\n\tconst valueSets = {};\n\tfor (const [enumName, { members }] of Object.entries(enums)) valueSets[enumName] = {\n\t\tkind: \"valueSet\",\n\t\tvalues: members.map((member) => member.value)\n\t};\n\treturn valueSets;\n}\n//#endregion\n//#region src/polymorphic-index-scope.ts\nfunction isScalarDiscriminatorValue(value) {\n\tconst t = typeof value;\n\treturn t === \"string\" || t === \"number\" || t === \"boolean\";\n}\nfunction formatValue(value) {\n\tif (typeof value === \"string\") return JSON.stringify(value);\n\tif (value === null) return \"null\";\n\tif (Array.isArray(value)) return JSON.stringify(value);\n\tif (typeof value === \"object\") return JSON.stringify(value);\n\treturn String(value);\n}\nfunction applyPolymorphicScopeToMongoIndex(index, scope) {\n\tif (!isScalarDiscriminatorValue(scope.discriminatorValue)) return {\n\t\tkind: \"conflict\",\n\t\treason: `Variant-scoped indexes require a scalar (string, number, or boolean) discriminator value for field \"${scope.discriminatorField}\", but received ${formatValue(scope.discriminatorValue)}.`\n\t};\n\tconst existing = index.partialFilterExpression;\n\tif (existing && Object.hasOwn(existing, scope.discriminatorField)) {\n\t\tconst existingValue = existing[scope.discriminatorField];\n\t\tif (existingValue === scope.discriminatorValue) return {\n\t\t\tkind: \"ok\",\n\t\t\tindex\n\t\t};\n\t\treturn {\n\t\t\tkind: \"conflict\",\n\t\t\treason: `Index partialFilterExpression sets \"${scope.discriminatorField}\" to ${formatValue(existingValue)}, which conflicts with the variant's discriminator value ${formatValue(scope.discriminatorValue)}.`\n\t\t};\n\t}\n\tconst merged = {\n\t\t...existing ?? {},\n\t\t[scope.discriminatorField]: scope.discriminatorValue\n\t};\n\treturn {\n\t\tkind: \"ok\",\n\t\tindex: new MongoIndex({\n\t\t\tkeys: index.keys,\n\t\t\t...index.unique !== void 0 && { unique: index.unique },\n\t\t\t...index.sparse !== void 0 && { sparse: index.sparse },\n\t\t\t...index.expireAfterSeconds !== void 0 && { expireAfterSeconds: index.expireAfterSeconds },\n\t\t\tpartialFilterExpression: merged,\n\t\t\t...index.wildcardProjection !== void 0 && { wildcardProjection: index.wildcardProjection },\n\t\t\t...index.collation !== void 0 && { collation: index.collation },\n\t\t\t...index.weights !== void 0 && { weights: index.weights },\n\t\t\t...index.default_language !== void 0 && { default_language: index.default_language },\n\t\t\t...index.language_override !== void 0 && { language_override: index.language_override }\n\t\t})\n\t};\n}\n//#endregion\n//#region src/validate-storage.ts\nfunction formatCrossRef(crossRef) {\n\treturn `${crossRef.namespace}.${crossRef.model}`;\n}\nfunction storageDeclaresCollection(storage, collectionName) {\n\tfor (const ns of Object.values(storage.namespaces)) if (Object.hasOwn(ns.entries[\"collection\"] ?? {}, collectionName)) return true;\n\treturn false;\n}\nfunction validateMongoStorage(contract) {\n\tconst errors = [];\n\tfor (const [namespaceId, namespace] of Object.entries(contract.domain.namespaces)) {\n\t\tconst models = namespace.models;\n\t\tfor (const [modelName, model] of Object.entries(models)) {\n\t\t\tconst qualifiedName = `${namespaceId}:${modelName}`;\n\t\t\tif (model.storage.collection && !storageDeclaresCollection(contract.storage, model.storage.collection)) errors.push(`Model \"${qualifiedName}\" references collection \"${model.storage.collection}\" which is not declared under any namespace's collections map`);\n\t\t\tif (model.base) {\n\t\t\t\tconst baseModel = models[model.base.model];\n\t\t\t\tif (baseModel) {\n\t\t\t\t\tconst variantCollection = model.storage.collection;\n\t\t\t\t\tconst baseCollection = baseModel.storage.collection;\n\t\t\t\t\tif (variantCollection !== baseCollection) errors.push(`Mongo does not support multi-table inheritance; variant \"${qualifiedName}\" must share its base's collection (\"${baseCollection ?? \"(none)\"}\"), but has \"${variantCollection ?? \"(none)\"}\"`);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (const [relName, relation] of Object.entries(model.relations ?? {})) {\n\t\t\t\tconst targetModel = models[relation.to.model];\n\t\t\t\tconst targetLabel = formatCrossRef(relation.to);\n\t\t\t\tif (targetModel?.owner) {\n\t\t\t\t\tif (targetModel.owner !== modelName) errors.push(`Embed relation \"${relName}\" targets \"${targetLabel}\" which is owned by \"${targetModel.owner}\", not \"${qualifiedName}\"`);\n\t\t\t\t\tif (targetModel.storage.collection) errors.push(`Embed relation \"${relName}\" targets \"${targetLabel}\" which must not have a collection`);\n\t\t\t\t} else if (\"on\" in relation && relation.on) {\n\t\t\t\t\tfor (const localField of relation.on.localFields) if (!(localField in model.fields)) errors.push(`Reference relation \"${relName}\": localField \"${localField}\" is not a field on model \"${qualifiedName}\"`);\n\t\t\t\t\tif (targetModel) {\n\t\t\t\t\t\tfor (const targetField of relation.on.targetFields) if (!(targetField in targetModel.fields)) errors.push(`Reference relation \"${relName}\": targetField \"${targetField}\" is not a field on model \"${targetLabel}\"`);\n\t\t\t\t\t}\n\t\t\t\t\tconst nullabilityError = toOneRelationNullabilityError(qualifiedName, relName, relation, model);\n\t\t\t\t\tif (nullabilityError !== void 0) errors.push(nullabilityError);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif (errors.length > 0) throw structuredError(\"CONTRACT.VALIDATION_FAILED\", `Contract storage validation failed:\\n- ${errors.join(\"\\n- \")}`);\n}\n/**\n* A same-space to-one relation that states `nullable` must agree with its local fields: nullable\n* exactly when one of them is nullable (a field that is not declared counts as nullable). A\n* relation without the flag is left to hydration, which derives it the same way.\n*/\nfunction toOneRelationNullabilityError(qualifiedName, relationName, relation, model) {\n\tif (!(\"on\" in relation && (relation.cardinality === \"1:1\" || relation.cardinality === \"N:1\") && relation.to.space === void 0) || relation.nullable === void 0) return void 0;\n\tconst location = `Relation \"${relationName}\" on model \"${qualifiedName}\"`;\n\tconst { ownsForeignKey, fields } = resolveMongoToOneRelationFields(model, relation);\n\tif (!ownsForeignKey) return relation.nullable ? void 0 : `${location} is required but does not own the foreign key, so nothing in storage guarantees the related document exists`;\n\tconst anyNullable = fields.some((field) => field.nullable);\n\tif (relation.nullable === anyNullable) return void 0;\n\tconst fieldList = fields.filter((field) => field.nullable !== relation.nullable).map((field) => `\"${field.name}\"`).join(\", \");\n\treturn relation.nullable ? `${location} is nullable but every local field is required (fields ${fieldList})` : `${location} is required but a local field is nullable (fields ${fieldList})`;\n}\n//#endregion\n//#region src/validator-enum-refusal.ts\nconst STORED_JSON_TYPE_NAMES = {\n\tstring: \"a string\",\n\tnumber: \"a finite number\",\n\tboolean: \"a boolean\",\n\tobject: \"a JSON object\",\n\tarray: \"a JSON array\"\n};\n/**\n* A collection validator lists an enum's members in their stored forms, so an enum's BSON type must be one whose values JSON holds. Maps each such type to the JSON type of a member's stored form.\n*/\nconst VALIDATOR_LISTABLE_BSON_TYPES = {\n\tstring: \"string\",\n\tint: \"number\",\n\tdouble: \"number\",\n\tbool: \"boolean\",\n\tobject: \"object\",\n\tarray: \"array\"\n};\nfunction storedJsonTypeOf(stored) {\n\tif (stored === null) return \"null\";\n\tif (Array.isArray(stored)) return \"array\";\n\tif (typeof stored === \"number\" && !Number.isFinite(stored)) return \"non-finite number\";\n\treturn typeof stored;\n}\nfunction storedText(stored) {\n\treturn typeof stored === \"number\" || typeof stored === \"bigint\" ? String(stored) : JSON.stringify(stored);\n}\n/**\n* Why a collection validator cannot list the members of an enum whose codec stores `bsonTypes`, or undefined when it can. Like {@link validatorEnumMemberRefusalOf}, the reason leaves out its subject so each authoring surface can lead with its own, as in `enum \"Role\" @@type codec \"mongo/int64@1\" stores BSON type long, ...`.\n*/\nfunction validatorEnumRefusalOf(bsonTypes) {\n\tconst [bsonType, ...otherBsonTypes] = bsonTypes;\n\tif (bsonType === void 0 || otherBsonTypes.length > 0) return `declares ${bsonTypes.length} BSON types; an enum needs exactly one. Use a codec with one BSON type, such as mongo/string@1.`;\n\tif (VALIDATOR_LISTABLE_BSON_TYPES[bsonType] === void 0) return `stores BSON type ${bsonType}, which a collection validator cannot list as an enum value. Use a codec whose BSON type is string, int, double, bool, object or array.`;\n}\n/**\n* Why a collection validator cannot list an enum member stored as `stored`, for an enum whose codec stores `bsonTypes`, or undefined when it can. The reason leaves out its subject, as in `enum \"Role\" member \"Admin\" is stored as ...`.\n*/\nfunction validatorEnumMemberRefusalOf(bsonTypes, stored) {\n\tconst enumRefusal = validatorEnumRefusalOf(bsonTypes);\n\tif (enumRefusal !== void 0) return enumRefusal;\n\tconst [bsonType] = bsonTypes;\n\tconst storedJsonType = bsonType === void 0 ? void 0 : VALIDATOR_LISTABLE_BSON_TYPES[bsonType];\n\tif (storedJsonType === void 0 || storedJsonTypeOf(stored) === storedJsonType) return void 0;\n\treturn `is stored as ${storedText(stored)}, which a collection validator cannot list as a ${bsonType}. A member of a ${bsonType} enum must be ${STORED_JSON_TYPE_NAMES[storedJsonType]}.`;\n}\n//#endregion\nexport { MongoChangeStreamPreAndPostImagesOptions, MongoClusteredCollectionOptions, MongoCollationOptions, MongoCollection, MongoCollectionOptions, MongoContractSchema, MongoIndex, MongoIndexOptionDefaults, MongoIndexOptions, MongoStorage, MongoTimeSeriesCollectionOptions, MongoUnboundNamespace, MongoValidator, MongoValueSet, RelationKeys, StorageValueSetSchema, applyPolymorphicScopeToMongoIndex, buildMongoContractView, buildMongoNamespace, buildMongoStorage, createMongoContractSchema, createMongoNamespaceEnvelopeSchema, defaultMongoDomainNamespaceId, defaultMongoStorageNamespaceId, deriveCollectionValidators, documentIdRefusalOf, mongoValueSetsOf, resolveMongoToOneRelationFields, validateMongoStorage, validatorEnumMemberRefusalOf, validatorEnumRefusalOf };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;;;;AAWA,IAAI,wBAAwB,MAAM,8BAA8B,cAAc;CAC7E,OAAO,WAAW,IAAI,sBAAsB;CAC5C,KAAK;CACL,UAAU,OAAO,OAAO,EAAE,YAAY,OAAO,OAAO,CAAC,CAAC,EAAE,CAAC;CACzD,cAAc;EACb,MAAM;EACN,OAAO,eAAe,MAAM,QAAQ;GACnC,OAAO;GACP,UAAU;GACV,YAAY;GACZ,cAAc;EACf,CAAC;EACD,WAAW,IAAI;CAChB;AACD;AAGA,MAAM,uBAAuB;AAC7B,IAAI,sBAAsB,MAAM,4B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I,KAAK,UAAU,MAAM;AACzG;;;;AAIA,SAAS,uBAAuB,WAAW;CAC1C,MAAM,CAAC,UAAU,GAAG,kBAAkB;CACtC,IAAI,aAAa,KAAK,KAAK,eAAe,SAAS,GAAG,OAAO,YAAY,UAAU,OAAO;CAC1F,IAAI,8BAA8B,cAAc,KAAK,GAAG,OAAO,oBAAoB,SAAS;AAC7F;;;;AAIA,SAAS,6BAA6B,WAAW,QAAQ;CACxD,MAAM,cAAc,uBAAuB,SAAS;CACpD,IAAI,gBAAgB,KAAK,GAAG,OAAO;CACnC,MAAM,CAAC,YAAY;CACnB,MAAM,iBAAiB,aAAa,KAAK,IAAI,KAAK,IAAI,8BAA8B;CACpF,IAAI,mBAAmB,KAAK,KAAK,iBAAiB,MAAM,MAAM,gBAAgB,OAAO,KAAK;CAC1F,OAAO,gBAAgB,WAAW,MAAM,EAAE,kDAAkD,SAAS,kBAAkB,SAAS,gBAAgB,uBAAuB,gBAAgB;AACxL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dist-xk_0xOR-.mjs","names":[],"sources":["../../../../2-mongo-family/2-authoring/contract-psl/dist/index.mjs"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"dist-xk_0xOR-.mjs","names":[],"sources":["../../../../2-mongo-family/2-authoring/contract-psl/dist/index.mjs"],"sourcesContent":["import { i as mongoAttributeSpecs, n as pairMongoBackRelations, r as describeUnsupportedMongoAttribute, t as interpretPslDocumentToMongoContract } from \"./interpreter-BKBSURkK.mjs\";\nimport { collectScalarTypeConstructors, isAuthoringTypeConstructorDescriptor } from \"@internal/framework-components/authoring\";\n//#region src/describe-unresolved-type.ts\nconst EARLIER_MONGO_SCALAR_NAMES = {\n\tBigInt: \"Int64\",\n\tBytes: \"Binary\",\n\tDecimal: \"Decimal128\"\n};\nfunction scalarTypesSentence(types) {\n\tconst current = [...collectScalarTypeConstructors(types).keys()].filter((name) => {\n\t\tconst descriptor = types[name];\n\t\treturn !(descriptor !== void 0 && isAuthoringTypeConstructorDescriptor(descriptor) && descriptor.deprecated !== void 0);\n\t});\n\treturn current.length === 0 ? \"No Mongo scalar types are registered.\" : `The Mongo scalar types are ${current.length === 1 ? current.join(\"\") : `${current.slice(0, -1).join(\", \")} and ${current.at(-1)}`}.`;\n}\nfunction describeUnresolvedMongoType(contributions) {\n\tconst types = contributions.type;\n\tconst scalars = collectScalarTypeConstructors(types);\n\treturn ({ field, owner, written }) => {\n\t\tif (field.typeNamespaceId !== void 0 || field.typeConstructor !== void 0) return;\n\t\tconst replacement = EARLIER_MONGO_SCALAR_NAMES[written];\n\t\tif (replacement === void 0 || !scalars.has(replacement)) return `Field \"${owner.name}.${field.name}\" has type \"${written}\", which is not a scalar type, an enum, a composite type or a model. ${scalarTypesSentence(types)}`;\n\t\treturn `Field \"${owner.name}.${field.name}\" has type \"${written}\", which is not a Mongo scalar type; use \"${replacement}\".`;\n\t};\n}\n//#endregion\nexport { describeUnresolvedMongoType, describeUnsupportedMongoAttribute, interpretPslDocumentToMongoContract, mongoAttributeSpecs, pairMongoBackRelations };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":";;AAGA,MAAM,6BAA6B;CAClC,QAAQ;CACR,OAAO;CACP,SAAS;AACV;AACA,SAAS,oBAAoB,OAAO;CACnC,MAAM,UAAU,CAAC,GAAG,8BAA8B,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,SAAS;EACjF,MAAM,aAAa,MAAM;EACzB,OAAO,EAAE,eAAe,KAAK,KAAK,qCAAqC,UAAU,KAAK,WAAW,eAAe,KAAK;CACtH,CAAC;CACD,OAAO,QAAQ,WAAW,IAAI,0CAA0C,8BAA8B,QAAQ,WAAW,IAAI,QAAQ,KAAK,EAAE,IAAI,GAAG,QAAQ,MAAM,GAAG,EAAE,CAAC,CAAC,KAAK,IAAI,EAAE,OAAO,QAAQ,GAAG,EAAE,IAAI;AAC5M;AACA,SAAS,4BAA4B,eAAe;CACnD,MAAM,QAAQ,cAAc;CAC5B,MAAM,UAAU,8BAA8B,KAAK;CACnD,QAAQ,EAAE,OAAO,OAAO,cAAc;EACrC,IAAI,MAAM,oBAAoB,KAAK,KAAK,MAAM,oBAAoB,KAAK,GAAG;EAC1E,MAAM,cAAc,2BAA2B;EAC/C,IAAI,gBAAgB,KAAK,KAAK,CAAC,QAAQ,IAAI,WAAW,GAAG,OAAO,UAAU,MAAM,KAAK,GAAG,MAAM,KAAK,cAAc,QAAQ,uEAAuE,oBAAoB,KAAK;EACzN,OAAO,UAAU,MAAM,KAAK,GAAG,MAAM,KAAK,cAAc,QAAQ,4CAA4C,YAAY;CACzH;AACD"}
|
package/dist/family.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as MongoRunnerDependencies, n as MongoControlAdapter, r as MongoControlAdapterDescriptor, t as MarkerOperations } from "./control-adapter-Bh_ZraGM-
|
|
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 { D as defaultMongoDomainNamespaceId, O as defaultMongoStorageNamespaceId } from "./index-p1mHGKB5.mjs";
|
|
2
|
+
import { i as MongoRunnerDependencies, n as MongoControlAdapter, r as MongoControlAdapterDescriptor, t as MarkerOperations } from "./control-adapter-Bh_ZraGM-D3xSqwxa.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-SoPc-6DA.mjs";
|
|
4
|
+
import "./control-adapter-DriGOlGH.mjs";
|
|
5
|
+
import { t as MongoContractView$1 } from "./mongo-contract-view-AnejqfrQ-CXymmojn.mjs";
|
|
6
|
+
import { n as MongoContractSerializerBase, r as MongoSchemaVerifierBase, t as MongoContractSerializer } from "./ir-Cs8SNS0n.mjs";
|
|
7
|
+
import { t as MongoMigration } from "./migration-DMXCxDu-.mjs";
|
|
8
8
|
import { r as mongoFamilyPslBlockDescriptors, t as mongoFamilyEntityTypes } from "./pack-CgZhQ0_G.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-CQUQkK0P.mjs";
|
|
10
|
+
import { n as verifyMongoSchema, t as VerifyMongoSchemaOptions } from "./schema-verify-Bzmg6whi.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
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as defaultMongoStorageNamespaceId, u as defaultMongoDomainNamespaceId } from "./dist-
|
|
1
|
+
import { d as defaultMongoStorageNamespaceId, u as defaultMongoDomainNamespaceId } from "./dist-BbfUvuqQ.mjs";
|
|
2
2
|
import { i as verifyMongoSchema, n as contractToMongoSchemaIR, r as diffMongoSchemas, t as canonicalizeSchemasForVerification } from "./verify-mongo-schema-B0bMHQW0-BuK0Jv5S.mjs";
|
|
3
|
-
import { n as mongoFamilyPslBlockDescriptors, t as mongoFamilyEntityTypes } from "./authoring-entity-types-
|
|
4
|
-
import { n as MongoContractSerializerBase, t as MongoContractSerializer } from "./mongo-contract-serializer-
|
|
5
|
-
import { a as mongoOperationsToPreview, i as mongoFamilyDescriptor, n as fieldRewriteOf, r as formatMongoOperations, t as createMongoFamilyInstance } from "./control-
|
|
6
|
-
import { t as MongoContractView$1 } from "./mongo-contract-view-
|
|
3
|
+
import { n as mongoFamilyPslBlockDescriptors, t as mongoFamilyEntityTypes } from "./authoring-entity-types-ooM-r2td-r5JwBDd-.mjs";
|
|
4
|
+
import { n as MongoContractSerializerBase, t as MongoContractSerializer } from "./mongo-contract-serializer-5OphMWx2-DkWnm3kW.mjs";
|
|
5
|
+
import { a as mongoOperationsToPreview, i as mongoFamilyDescriptor, n as fieldRewriteOf, r as formatMongoOperations, t as createMongoFamilyInstance } from "./control-Yu_IYcIP.mjs";
|
|
6
|
+
import { t as MongoContractView$1 } from "./mongo-contract-view-OSrxTeL0-IBirxnYy.mjs";
|
|
7
7
|
import { t as MongoSchemaVerifierBase } from "./ir-vZWjElPY.mjs";
|
|
8
|
-
import { t as MongoMigration } from "./migration-
|
|
8
|
+
import { t as MongoMigration } from "./migration-Bd8GWTeP.mjs";
|
|
9
9
|
import { t as timestampNowRuntimeGenerator } from "./runtime-B5fNQHQZ.mjs";
|
|
10
10
|
export { MongoMigration as Migration, MongoContractSerializer, MongoContractSerializerBase, MongoContractView$1 as MongoContractView, MongoSchemaVerifierBase, canonicalizeSchemasForVerification, contractToMongoSchemaIR, createMongoFamilyInstance, defaultMongoDomainNamespaceId, defaultMongoStorageNamespaceId, diffMongoSchemas, fieldRewriteOf, formatMongoOperations, mongoFamilyDescriptor, mongoFamilyEntityTypes, mongoFamilyPslBlockDescriptors, mongoOperationsToPreview, timestampNowRuntimeGenerator, verifyMongoSchema };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as MongoRunnerDependencies, n as MongoControlAdapter, r as MongoControlAdapterDescriptor, t as MarkerOperations } from "./control-adapter-Bh_ZraGM-
|
|
2
|
-
import "./control-adapter-
|
|
1
|
+
import { i as MongoRunnerDependencies, n as MongoControlAdapter, r as MongoControlAdapterDescriptor, t as MarkerOperations } from "./control-adapter-Bh_ZraGM-D3xSqwxa.mjs";
|
|
2
|
+
import "./control-adapter-DriGOlGH.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-SoPc-6DA.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-B0bMHQW0-BuK0Jv5S.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-Yu_IYcIP.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-CXymmojn.mjs";
|
|
2
|
+
import { n as MongoContractSerializerBase, r as MongoSchemaVerifierBase, t as MongoContractSerializer } from "./ir-Cs8SNS0n.mjs";
|
|
3
3
|
export { MongoContractSerializer, MongoContractSerializerBase, MongoContractView$1 as MongoContractView, MongoSchemaVerifierBase };
|
package/dist/family__ir.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as MongoContractSerializerBase, t as MongoContractSerializer } from "./mongo-contract-serializer-
|
|
2
|
-
import { t as MongoContractView$1 } from "./mongo-contract-view-
|
|
1
|
+
import { n as MongoContractSerializerBase, t as MongoContractSerializer } from "./mongo-contract-serializer-5OphMWx2-DkWnm3kW.mjs";
|
|
2
|
+
import { t as MongoContractView$1 } from "./mongo-contract-view-OSrxTeL0-IBirxnYy.mjs";
|
|
3
3
|
import { t as MongoSchemaVerifierBase } from "./ir-vZWjElPY.mjs";
|
|
4
4
|
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-DMXCxDu-.mjs";
|
|
2
2
|
export { MongoMigration as Migration };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MongoMigration } from "./migration-
|
|
1
|
+
import { t as MongoMigration } from "./migration-Bd8GWTeP.mjs";
|
|
2
2
|
export { MongoMigration as Migration };
|
package/dist/family__pack.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as mongoFamilyPslBlockDescriptors, t as mongoFamilyEntityTypes } from "./authoring-entity-types-
|
|
1
|
+
import { r as mongoAttributeSpecs } from "./interpreter-BKBSURkK-B9QVhiLs.mjs";
|
|
2
|
+
import { n as mongoFamilyPslBlockDescriptors, t as mongoFamilyEntityTypes } from "./authoring-entity-types-ooM-r2td-r5JwBDd-.mjs";
|
|
3
3
|
//#region ../../../2-mongo-family/9-family/dist/pack.mjs
|
|
4
4
|
const mongoFamilyPack = {
|
|
5
5
|
kind: "family",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"family__pack.mjs","names":[],"sources":["../../../../2-mongo-family/9-family/dist/pack.mjs"],"sourcesContent":["import { n as mongoFamilyPslBlockDescriptors, t as mongoFamilyEntityTypes } from \"./authoring-entity-types-
|
|
1
|
+
{"version":3,"file":"family__pack.mjs","names":[],"sources":["../../../../2-mongo-family/9-family/dist/pack.mjs"],"sourcesContent":["import { n as mongoFamilyPslBlockDescriptors, t as mongoFamilyEntityTypes } from \"./authoring-entity-types-ooM-r2td.mjs\";\nimport { mongoAttributeSpecs } from \"@internal/mongo-contract-psl\";\n//#region src/exports/pack.ts\nconst mongoFamilyPack = {\n\tkind: \"family\",\n\tid: \"mongo\",\n\tfamilyId: \"mongo\",\n\tversion: \"0.0.1\",\n\tauthoring: {\n\t\tentityTypes: mongoFamilyEntityTypes,\n\t\tpslBlockDescriptors: mongoFamilyPslBlockDescriptors,\n\t\tattributeSpecs: mongoAttributeSpecs\n\t}\n};\n//#endregion\nexport { mongoFamilyPack as default, mongoFamilyEntityTypes, mongoFamilyPslBlockDescriptors };\n\n//# sourceMappingURL=pack.mjs.map"],"mappings":";;;AAGA,MAAM,kBAAkB;CACvB,MAAM;CACN,IAAI;CACJ,UAAU;CACV,SAAS;CACT,WAAW;EACV,aAAa;EACb,qBAAqB;EACrB,gBAAgB;CACjB;AACD"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as timestampNowRuntimeGenerator } from "./runtime-
|
|
1
|
+
import { D as defaultMongoDomainNamespaceId, O as defaultMongoStorageNamespaceId } from "./index-p1mHGKB5.mjs";
|
|
2
|
+
import { t as timestampNowRuntimeGenerator } from "./runtime-CQUQkK0P.mjs";
|
|
3
3
|
export { defaultMongoDomainNamespaceId, defaultMongoStorageNamespaceId, timestampNowRuntimeGenerator };
|
package/dist/family__runtime.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { d as defaultMongoStorageNamespaceId, u as defaultMongoDomainNamespaceId } from "./dist-
|
|
1
|
+
import { d as defaultMongoStorageNamespaceId, u as defaultMongoDomainNamespaceId } from "./dist-BbfUvuqQ.mjs";
|
|
2
2
|
import { t as timestampNowRuntimeGenerator } from "./runtime-B5fNQHQZ.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-Bzmg6whi.mjs";
|
|
2
2
|
export { type VerifyMongoSchemaOptions, verifyMongoSchema };
|
package/dist/{field-accessor-CE4JbDIa-CemAdCzH.d.mts → field-accessor-CE4JbDIa-DCI8nD_s.d.mts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as MongoContract, V as MongoModelsMap, a as ExtractMongoTypeMaps, o as InferModelRow, t as AnyMongoTypeMaps, w as MongoContractWithTypeMaps } from "./mongo-value-set-BngSUlOh-BhDGXjM_.mjs";
|
|
2
|
-
import "./index-
|
|
2
|
+
import "./index-p1mHGKB5.mjs";
|
|
3
3
|
import { f as MongoValue } from "./index-9DDQlC5U.mjs";
|
|
4
4
|
import { B as MongoFilterExpr, d as MongoAggAccumulator, m as MongoAggExpr, vt as MongoUpdatePipelineStage } from "./query-plan-3fs1HokF-CrNsr-Wx.mjs";
|
|
5
5
|
import "./execution-tPmN5pge.mjs";
|
|
@@ -589,4 +589,4 @@ declare function expr(predicate: TypedAggExpr<DocField>): MongoFilterExpr;
|
|
|
589
589
|
declare function createFieldAccessor<S extends DocShape, N extends NestedDocShape = Record<string, never>>(): FieldAccessor<S, N>;
|
|
590
590
|
//#endregion
|
|
591
591
|
export { TypedUpdateOp as A, ProjectedShape as C, StringField as D, SortSpec as E, expr as F, UpdaterResult as M, ValidPaths as N, TypedAccumulatorExpr as O, createFieldAccessor as P, PathCompletions as S, ResolveRow 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, UnwoundShape as j, TypedAggExpr 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, ResolvePath as w, ObjectField as x, NumericField as y };
|
|
592
|
-
//# sourceMappingURL=field-accessor-CE4JbDIa-
|
|
592
|
+
//# sourceMappingURL=field-accessor-CE4JbDIa-DCI8nD_s.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-accessor-CE4JbDIa-
|
|
1
|
+
{"version":3,"file":"field-accessor-CE4JbDIa-DCI8nD_s.d.mts","names":[],"sources":["../../../../2-mongo-family/5-query-builders/query-builder/dist/field-accessor-CE4JbDIa.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,eAAe,KAAK;EACvB;IACE;IACA,eAAe;;IAEf,IAAI;EACN,eAAe;IACb;KACC,gBAAgB,kBAAkB,eAAe,iCAAiC,eAAe,iBAAiB,WAAW,eAAe,WAAW;WACjJ,SAAS,eAAe,eAAe,WAAW,qBAAqB;WACvE,UAAU,eAAe,WAAW,qBAAqB;OAC7D,mBAAmB;;;;;;;;;KASrB,cAAc,cAAc,UAAU,mBAAmB;WACnD;IACP,kBAAkB,8BAA8B,WAAW,iBAAiB,MAAM,WAAW,sBAAsB,aAAa,mBAAmB,0BAA0B,kBAAkB,0BAA0B,eAAe,oBAAoB,iCAAiC,eAAe,aAAa,MAAM,cAAc,WAAW,kDAAkD,MAAM,4BAA4B,aAAa,MAAM,8BAA8B,WAAW,MAAM,kCAAkC,WAAW,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgChiB,QAAQ,KAAK,iBAAiB,QAAQ,WAAW,IAAI,EAAE;;;;;;;;;;;KAWvD,mBAAmB,cAAc,qBAAqB;KACtD,WAAW,cAAc,UAAU,mBAAmB;WAChD;IACP,kBAAkB,gBAAgB,iBAAiB;YAC3C,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;;;;;;;;;;;EAehB,QAAQ,UAAU,WAAW,UAAU,eAAe,eAAe;;;;;;;;;iBAStD,KAAK,WAAW,aAAa,YAAY;;;;;;;;;;;iBAWzC,oBAAoB,UAAU,UAAU,UAAU,iBAAiB,0BAA0B,cAAc,GAAG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { rt as MongoQueryPlan } from "./query-plan-3fs1HokF-CrNsr-Wx.mjs";
|
|
2
|
-
import { t as AnyMongoDdlCommand } from "./control-
|
|
2
|
+
import { t as AnyMongoDdlCommand } from "./control-4JTCKNgO.mjs";
|
|
3
3
|
import "./execution-tPmN5pge.mjs";
|
|
4
|
-
import { i as AnyMongoWireCommand, n as AnyMongoDdlWireCommand, r as AnyMongoDmlWireCommand } from "./index-
|
|
4
|
+
import { i as AnyMongoWireCommand, n as AnyMongoDdlWireCommand, r as AnyMongoDmlWireCommand } from "./index-CMd3fTIb.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";
|
|
@@ -149,4 +149,4 @@ interface MongoControlDriverInstance extends ControlDriverInstance<'mongo', 'mon
|
|
|
149
149
|
}
|
|
150
150
|
//#endregion
|
|
151
151
|
export { MongoLoweredDraft as a, MongoDriver as i, MongoControlDriverInstance as n, MongoDdlPlan as r, MongoAdapter as t };
|
|
152
|
-
//# sourceMappingURL=index-
|
|
152
|
+
//# sourceMappingURL=index-B8HcPJrE.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-B8HcPJrE.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;EAC1C,SAAS;;UAED,mCAAmC,yCAAyC;WAC3E,IAAI"}
|
|
@@ -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-BngSUlOh-BhDGXjM_.mjs";
|
|
3
|
-
import "./index-
|
|
3
|
+
import "./index-p1mHGKB5.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
|
|
@@ -175,4 +175,4 @@ declare function indexesEquivalent(a: MongoSchemaIndex, b: MongoSchemaIndex): bo
|
|
|
175
175
|
type AnyMongoSchemaNode = MongoSchemaIR | MongoSchemaCollection | MongoSchemaCollectionOptions | MongoSchemaIndex | MongoSchemaValidator;
|
|
176
176
|
//#endregion
|
|
177
177
|
export { MongoSchemaCollectionOptionsInput as a, MongoSchemaIndex as c, MongoSchemaValidatorOptions as d, MongoSchemaVisitor as f, indexesEquivalent as h, MongoSchemaCollectionOptions as i, MongoSchemaIndexOptions as l, deepEqual as m, MongoSchemaCollection as n, MongoSchemaIR as o, canonicalize as p, MongoSchemaCollectionCtorOptions as r, MongoSchemaIRNode as s, AnyMongoSchemaNode as t, MongoSchemaValidator as u };
|
|
178
|
-
//# sourceMappingURL=index-
|
|
178
|
+
//# sourceMappingURL=index-BFhyIsHU.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BFhyIsHU.d.mts","names":[],"sources":["../../../../2-mongo-family/3-tooling/mongo-schema-ir/dist/exports/index.d.mts"],"mappings":";;;;;;;iBAKiB,aAAa;;;UAGpB;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,YAAY;WACZ;WACA;;cAEG,6BAA6B;WAChC;;WAEA;WACA,YAAY;WACZ;WACA;EACT,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;;;;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,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,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;;;;;;;;iBAQ5B,UAAU,YAAY;iBACtB,kBAAkB,GAAG,kBAAkB,GAAG;;;KAGtD,qBAAqB,gBAAgB,wBAAwB,+BAA+B,mBAAmB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
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-BngSUlOh-BhDGXjM_.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-
|
|
4
|
+
import { a as CollModOptions, l as CreateIndexOptions, s as CreateCollectionOptions$1 } from "./control-4JTCKNgO.mjs";
|
|
5
5
|
import "./execution-tPmN5pge.mjs";
|
|
6
6
|
//#region ../../../2-mongo-family/6-transport/mongo-wire/dist/index.d.mts
|
|
7
7
|
//#region src/wire-commands.d.ts
|
|
@@ -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-CMd3fTIb.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-CMd3fTIb.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,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AY,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,9 +1,9 @@
|
|
|
1
1
|
import { C as MongoContract, V as MongoModelsMap, at as RootModelName, n as ExtractMongoCodecTypes, t as AnyMongoTypeMaps, w as MongoContractWithTypeMaps, z as MongoModelDefinition } from "./mongo-value-set-BngSUlOh-BhDGXjM_.mjs";
|
|
2
|
-
import "./index-
|
|
2
|
+
import "./index-p1mHGKB5.mjs";
|
|
3
3
|
import { f as MongoValue } from "./index-9DDQlC5U.mjs";
|
|
4
4
|
import { B as MongoFilterExpr, L as MongoFieldShape, Mt as UpdateManyCommand, Nt as UpdateOneCommand, R as MongoFillOutput, a as DeleteOneCommand, c as InsertManyCommand, d as MongoAggAccumulator, et as MongoPipelineStage, i as DeleteManyCommand, j as MongoDensifyRange, l as InsertOneCommand, m as MongoAggExpr, n as AggregateCommand, o as FindOneAndDeleteCommand, ot as MongoResultShape, r as AnyMongoCommand, rt as MongoQueryPlan, s as FindOneAndUpdateCommand, vt as MongoUpdatePipelineStage, xt as MongoWindowField } from "./query-plan-3fs1HokF-CrNsr-Wx.mjs";
|
|
5
5
|
import { a as InsertOneResult, c as UpdateResult, i as InsertManyResult, r as DeleteResult } from "./execution-tPmN5pge.mjs";
|
|
6
|
-
import { C as ProjectedShape, D as StringField, E as SortSpec, M as UpdaterResult, O as TypedAccumulatorExpr, T as ResolveRow, _ as NullableDocField, a as DocShape, c as FieldAccessor, d as LeafExpression, f as LiteralValue, g as NestedDocShape, h as ModelToDocShape, i as DocField, j as UnwoundShape, k as TypedAggExpr, l as GroupSpec, m as ModelNestedShape, n as BooleanField, o as Expression, p as ModelArrayField, r as DateField, s as ExtractDocShape, t as ArrayField, u as GroupedDocShape, v as NullableNumericField, y as NumericField } from "./field-accessor-CE4JbDIa-
|
|
6
|
+
import { C as ProjectedShape, D as StringField, E as SortSpec, M as UpdaterResult, O as TypedAccumulatorExpr, T as ResolveRow, _ as NullableDocField, a as DocShape, c as FieldAccessor, d as LeafExpression, f as LiteralValue, g as NestedDocShape, h as ModelToDocShape, i as DocField, j as UnwoundShape, k as TypedAggExpr, l as GroupSpec, m as ModelNestedShape, n as BooleanField, o as Expression, p as ModelArrayField, r as DateField, s as ExtractDocShape, t as ArrayField, u as GroupedDocShape, v as NullableNumericField, y as NumericField } from "./field-accessor-CE4JbDIa-DCI8nD_s.mjs";
|
|
7
7
|
import { ContractField, ContractValueObject } from "@prisma/orm-framework/contract/types";
|
|
8
8
|
//#region ../../../2-mongo-family/5-query-builders/query-builder/dist/index.d.mts
|
|
9
9
|
//#region src/accumulator-helpers.d.ts
|
|
@@ -839,4 +839,4 @@ declare function contractModelToMongoResultShape(model: MongoModelDefinition, op
|
|
|
839
839
|
}): MongoResultShape;
|
|
840
840
|
//#endregion
|
|
841
841
|
export { fn as _, LookupBuilderWithKey as a, LookupResult as c, PipelineChain as d, QueryRoot as f, contractModelToMongoResultShape as g, contractFieldToMongoFieldShape as h, LookupBuilder as i, ModelOf as l, acc as m, FilteredCollection as n, LookupFrom as o, UpdateEnabled as p, FindAndModifyEnabled as r, LookupOnResult as s, CollectionHandle as t, MongoValueObjects as u, mongoQuery as v };
|
|
842
|
-
//# sourceMappingURL=index-
|
|
842
|
+
//# sourceMappingURL=index-hQxjnY-x.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-C9aUMsc0.d.mts","names":[],"sources":["../../../../2-mongo-family/5-query-builders/query-builder/dist/index.d.mts"],"mappings":";;;;;;;;;cAMc;EACZ,IAAI,UAAU,UAAU,MAAM,aAAa,KAAK,qBAAqB;EACrE,IAAI,MAAM,aAAa,YAAY,qBAAqB;EACxD,IAAI,UAAU,UAAU,MAA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mB;;;;;UAKnI,eAAe,kBAAkB,0BAA0B,eAAe;WACzE,UAAU;WACV;WACA;;;;;;;;;;;;;;;UAeD,UAAU,kBAAkB,0BAA0B,eAAe;EAC7E,KAAK,gBAAgB,6BAA6B,UAAU,IAAI,iBAAiB,WAAW,cAAc,WAAW;EACrH,WAAW,UAAU,iBAAiB,SAAS,IAAI,wBAAwB;;iBAE5D,WAAW,kBAAkB,0BAA0B,eAAe,mBAAmB;EACxG;IACE,UAAU;;;KAGT,oBAAoB,SAAS,eAAe;;;;iBAIhC,+BAA+B,OAAO,eAAe,eAAe,oBAAoB;iBACxF,gCAAgC,OAAO,sBAAsB;WACnE;;WAEA,WAAW,SAAS,eAAe;WACnC,eAAe;IACtB"}
|
|
1
|
+
{"version":3,"file":"index-hQxjnY-x.d.mts","names":[],"sources":["../../../../2-mongo-family/5-query-builders/query-builder/dist/index.d.mts"],"mappings":";;;;;;;;;cAMc;EACZ,IAAI,UAAU,UAAU,MAAM,aAAa,KAAK,qBAAqB;EACrE,IAAI,MAAM,aAAa,YAAY,qBAAqB;EACxD,IAAI,UAAU,UAAU,MAAM,aAAa,KAAK;aACrC,SAAS;aACT;;EAEX,IAAI,UAAU,UAAU,MAAM,aAAa,KAAK;aACrC,SAAS;aACT;;EAEX,MAAM,UAAU,UAAU,MAAM,aAAa,KAAK;aACvC,SAAS;aACT;;EAEX,KAAK,UAAU,UAAU,MAAM,aAAa,KAAK;aACtC,SAAS;aACT;;EAEX,KAAK,MAAM,aAAa,YAAY,qBAAqB;EACzD,SAAS,MAAM,aAAa,YAAY,qBAAqB;EAC7D,SAAS,qBAAqB;EAC9B,UAAU,MAAM,aAAa,YAAY,qBAAqB;EAC9D,WAAW,MAAM,aAAa,YAAY,qBAAqB;EAC/D,OAAO;IACL,OAAO,aAAa;IACpB,GAAG,aAAa;MACd,qBAAqB;EACzB,MAAM;IACJ,OAAO,aAAa;IACpB,GAAG,aAAa;MACd,qBAAqB;EACzB,KAAK;IACH,OAAO,aAAa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IRhoZC-COGrnC0Z.mjs";
|
|
2
|
+
import { C as MongoContract, Q as MongoValidator, T as MongoIndex, nt as MongoValueSet, rt as MongoValueSetInput, v as MongoCollection, y as MongoCollectionInput } from "./mongo-value-set-BngSUlOh-BhDGXjM_.mjs";
|
|
2
3
|
import { DefaultNamespaceEntries, IRNodeBase, Namespace, NamespaceBase, NamespacedEntities, SingleNamespaceView, Storage } from "@prisma/orm-framework/components/ir";
|
|
3
|
-
import { ContractEnum, ContractModelBase, ContractToOneRelation, StorageHashBase } from "@prisma/orm-framework/contract/types";
|
|
4
|
+
import { ContractEnum, ContractField, ContractModelBase, ContractToOneRelation, ContractValueObject, CrossReference, JsonValue, StorageHashBase } from "@prisma/orm-framework/contract/types";
|
|
4
5
|
import { Type } from "arktype";
|
|
5
6
|
import { RelationKeys, RelationNamesOf, Scalars, Shape, ShapeSpec } from "@prisma/orm-framework/components/runtime";
|
|
6
7
|
//#region ../../../2-mongo-family/1-foundation/mongo-contract/dist/index.d.mts
|
|
@@ -105,6 +106,48 @@ declare const defaultMongoStorageNamespaceId: "__unbound__";
|
|
|
105
106
|
/** Default domain namespace for Mongo-family contracts at runtime. */
|
|
106
107
|
declare const defaultMongoDomainNamespaceId: "__unbound__";
|
|
107
108
|
//#endregion
|
|
109
|
+
//#region src/derive-json-schema.d.ts
|
|
110
|
+
/**
|
|
111
|
+
* The permitted values a field's value set restricts it to, keyed by the value set's name — the
|
|
112
|
+
* storage `entries.valueSet` slot. The validator's `enum` keyword is sourced from these, not from
|
|
113
|
+
* `domain.enum`.
|
|
114
|
+
*/
|
|
115
|
+
type FieldValueSets = Record<string, {
|
|
116
|
+
readonly values: readonly JsonValue[];
|
|
117
|
+
}>;
|
|
118
|
+
type ValidatorModel = Pick<ContractModelBase, 'fields' | 'relations' | 'discriminator' | 'variants'>;
|
|
119
|
+
interface ModelValidatorSources {
|
|
120
|
+
readonly models: Record<string, ValidatorModel>;
|
|
121
|
+
readonly lookups: MongoTypeLookups;
|
|
122
|
+
readonly valueObjects: Record<string, ContractValueObject>;
|
|
123
|
+
readonly valueSets: FieldValueSets;
|
|
124
|
+
}
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region src/derive-collection-validators.d.ts
|
|
127
|
+
interface CollectionValidatorsInput extends ModelValidatorSources {
|
|
128
|
+
readonly roots: Record<string, CrossReference>;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* The validator of each collection in `roots`, keyed by collection name, derived from the collection's root model. A root model with variants gets one polymorphic validator covering every variant.
|
|
132
|
+
*/
|
|
133
|
+
declare function deriveCollectionValidators(input: CollectionValidatorsInput): Record<string, MongoValidator>;
|
|
134
|
+
//#endregion
|
|
135
|
+
//#region src/document-id-refusal.d.ts
|
|
136
|
+
/**
|
|
137
|
+
* Why a root model cannot be stored in a collection with a validator. `unknownCodec`: the lookups know no MongoDB data type for the `_id` codec. `notObjectId`: the model has no `_id`, or its `_id` is not stored as BSON type `objectId`.
|
|
138
|
+
*/
|
|
139
|
+
type DocumentIdRefusal = {
|
|
140
|
+
readonly kind: 'unknownCodec';
|
|
141
|
+
readonly reason: string;
|
|
142
|
+
} | {
|
|
143
|
+
readonly kind: 'notObjectId';
|
|
144
|
+
readonly reason: string;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Why a root model with `fields` cannot be stored in a collection with a validator, or undefined when it can. The reason leaves out its subject so each authoring surface can lead with its own, as in `Model "User" has no _id field ...`.
|
|
148
|
+
*/
|
|
149
|
+
declare function documentIdRefusalOf(fields: Record<string, ContractField>, lookups: MongoTypeLookups): DocumentIdRefusal | undefined;
|
|
150
|
+
//#endregion
|
|
108
151
|
//#region src/ir/build-mongo-namespace.d.ts
|
|
109
152
|
declare function buildMongoNamespace(input: MongoNamespaceCollectionsInput): MongoNamespace;
|
|
110
153
|
//#endregion
|
|
@@ -156,5 +199,15 @@ declare function resolveMongoToOneRelationFields(model: ContractModelBase, relat
|
|
|
156
199
|
//#region src/validate-storage.d.ts
|
|
157
200
|
declare function validateMongoStorage(contract: MongoContract): void;
|
|
158
201
|
//#endregion
|
|
159
|
-
|
|
160
|
-
|
|
202
|
+
//#region src/validator-enum-refusal.d.ts
|
|
203
|
+
/**
|
|
204
|
+
* Why a collection validator cannot list the members of an enum whose codec stores `bsonTypes`, or undefined when it can. Like {@link validatorEnumMemberRefusalOf}, the reason leaves out its subject so each authoring surface can lead with its own, as in `enum "Role" @@type codec "mongo/int64@1" stores BSON type long, ...`.
|
|
205
|
+
*/
|
|
206
|
+
declare function validatorEnumRefusalOf(bsonTypes: readonly string[]): string | undefined;
|
|
207
|
+
/**
|
|
208
|
+
* Why a collection validator cannot list an enum member stored as `stored`, for an enum whose codec stores `bsonTypes`, or undefined when it can. The reason leaves out its subject, as in `enum "Role" member "Admin" is stored as ...`.
|
|
209
|
+
*/
|
|
210
|
+
declare function validatorEnumMemberRefusalOf(bsonTypes: readonly string[], stored: unknown): string | undefined;
|
|
211
|
+
//#endregion
|
|
212
|
+
export { documentIdRefusalOf as A, buildMongoNamespace as C, defaultMongoDomainNamespaceId as D, createMongoNamespaceEnvelopeSchema as E, validatorEnumRefusalOf as F, resolveMongoToOneRelationFields as M, validateMongoStorage as N, defaultMongoStorageNamespaceId as O, validatorEnumMemberRefusalOf as P, buildMongoContractView as S, createMongoContractSchema as T, Scalars as _, MongoContractAccessors as a, StorageValueSetSchema as b, MongoNamespace as c, MongoStorageInput as d, MongoToOneRelationFields as f, RelationNamesOf as g, RelationKeys as h, FieldValueSets as i, mongoValueSetsOf as j, deriveCollectionValidators as k, MongoNamespaceEntries as l, PolymorphicIndexScope as m, CollectionValidatorsInput as n, MongoContractSchema as o, MongoUnboundNamespace as p, DocumentIdRefusal as r, MongoContractView as s, ApplyScopeResult as t, MongoStorage as u, Shape as v, buildMongoStorage as w, applyPolymorphicScopeToMongoIndex as x, ShapeSpec as y };
|
|
213
|
+
//# sourceMappingURL=index-p1mHGKB5.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version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