@prisma/orm-framework 8.0.0-rc.18-dev.21 → 8.0.0-rc.18-dev.22
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-D8KPtnJg.mjs → authoring-DmdLRtNn.mjs} +3 -3
- package/dist/{authoring-D8KPtnJg.mjs.map → authoring-DmdLRtNn.mjs.map} +1 -1
- package/dist/{authoring-xQjRM5Pu.d.mts → authoring-qquHLoSJ.d.mts} +4 -4
- package/dist/{authoring-xQjRM5Pu.d.mts.map → authoring-qquHLoSJ.d.mts.map} +1 -1
- package/dist/{binder-BfzoRtNz-COc5yVn5.d.mts → binder-BfzoRtNz-DvtRMPwy.d.mts} +10 -10
- package/dist/{binder-BfzoRtNz-COc5yVn5.d.mts.map → binder-BfzoRtNz-DvtRMPwy.d.mts.map} +1 -1
- package/dist/codec-BYGt3r-S.mjs.map +1 -1
- package/dist/{codec-BxNHu928.d.mts → codec-SzPZbOQ3.d.mts} +2 -2
- package/dist/{codec-BxNHu928.d.mts.map → codec-SzPZbOQ3.d.mts.map} +1 -1
- package/dist/{codec-descriptor-C_M6vCEV-CX-PKa8w.mjs → codec-descriptor-d2DW4tKb-CbUtf4YO.mjs} +3 -3
- package/dist/{codec-descriptor-C_M6vCEV-CX-PKa8w.mjs.map → codec-descriptor-d2DW4tKb-CbUtf4YO.mjs.map} +1 -1
- package/dist/{codec-types-BNVa23xn-DLZmMFiC.d.mts → codec-types-C_Ep6tv5-C5j2AzFu.d.mts} +13 -3
- package/dist/codec-types-C_Ep6tv5-C5j2AzFu.d.mts.map +1 -0
- package/dist/{components-x4E7HR1C.d.mts → components-DukO_fVC.d.mts} +4 -4
- package/dist/{components-x4E7HR1C.d.mts.map → components-DukO_fVC.d.mts.map} +1 -1
- package/dist/components.d.mts +16 -16
- package/dist/components.mjs +5 -5
- package/dist/components__authoring.d.mts +3 -3
- package/dist/components__authoring.mjs +1 -1
- package/dist/components__codec.d.mts +3 -3
- package/dist/components__codec.mjs +3 -3
- package/dist/components__components.d.mts +3 -3
- package/dist/components__control.d.mts +2 -2
- package/dist/components__control.mjs +1 -1
- package/dist/components__emission.d.mts +3 -3
- package/dist/components__execution.d.mts +1 -1
- package/dist/components__psl-ast.d.mts +3 -3
- package/dist/components__runtime.d.mts +1 -1
- package/dist/{config-types-CWTAy1In.d.mts → config-types-BY2jSWuk.d.mts} +7 -7
- package/dist/{config-types-CWTAy1In.d.mts.map → config-types-BY2jSWuk.d.mts.map} +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/config__config-types.d.mts +1 -1
- package/dist/contract-authoring.d.mts +12 -5
- package/dist/contract-authoring.d.mts.map +1 -1
- package/dist/contract-authoring.mjs +2 -2
- package/dist/contract.d.mts +2 -2
- package/dist/contract__types.d.mts +2 -2
- package/dist/{control-EDGgvs_9.mjs → control-Brs6a3cD.mjs} +2 -2
- package/dist/{control-EDGgvs_9.mjs.map → control-Brs6a3cD.mjs.map} +1 -1
- package/dist/{control-Bv8UK63M-B2plYV6c.mjs → control-Bv8UK63M-Cn0nNkr-.mjs} +2 -2
- package/dist/{control-Bv8UK63M-B2plYV6c.mjs.map → control-Bv8UK63M-Cn0nNkr-.mjs.map} +1 -1
- package/dist/{control-C_zs63JQ-ClziGCnK.d.mts → control-C_zs63JQ-Bj_IQmuC.d.mts} +2 -2
- package/dist/{control-C_zs63JQ-ClziGCnK.d.mts.map → control-C_zs63JQ-Bj_IQmuC.d.mts.map} +1 -1
- package/dist/control-CiV5f4NS.d.mts +1 -0
- package/dist/{control-ChAUqscy.d.mts → control-DgRkVnjc.d.mts} +8 -8
- package/dist/{control-ChAUqscy.d.mts.map → control-DgRkVnjc.d.mts.map} +1 -1
- package/dist/{data-type-Yz-2OZh--ZEUqit-7.mjs → data-type-DA9u3yOw-BbUAODG_.mjs} +24 -3
- package/dist/data-type-DA9u3yOw-BbUAODG_.mjs.map +1 -0
- package/dist/emission-DnQskJjh.d.mts +2 -0
- package/dist/{emission-types-4eOAB7Fb-B-L5H9gM.d.mts → emission-types-DDXDO4Yq-WMcR6wMv.d.mts} +8 -12
- package/dist/{emission-types-4eOAB7Fb-B-L5H9gM.d.mts.map → emission-types-DDXDO4Yq-WMcR6wMv.d.mts.map} +1 -1
- package/dist/errors.d.mts +4 -4
- package/dist/errors.mjs +3 -3
- package/dist/errors__control.d.mts +2 -2
- package/dist/errors__control.mjs +1 -1
- package/dist/errors__execution.d.mts +1 -1
- package/dist/errors__execution.mjs +1 -1
- package/dist/errors__migration.d.mts +1 -1
- package/dist/errors__migration.mjs +1 -1
- package/dist/{execution-CYRhpznv.d.mts → execution-B2_tQQzJ.d.mts} +3 -3
- package/dist/{execution-CYRhpznv.d.mts.map → execution-B2_tQQzJ.d.mts.map} +1 -1
- package/dist/{execution-CgcGQHHb.mjs → execution-BnQoEmRp.mjs} +2 -2
- package/dist/{execution-CgcGQHHb.mjs.map → execution-BnQoEmRp.mjs.map} +1 -1
- package/dist/{execution-Cwf24TjM.d.mts → execution-Bp03XH56.d.mts} +2 -2
- package/dist/{execution-Cwf24TjM.d.mts.map → execution-Bp03XH56.d.mts.map} +1 -1
- package/dist/{framework-authoring-DmU1d8-I-CkAim7c8.d.mts → framework-authoring-BBXRxWBw-Dod4YmpD.d.mts} +3 -3
- package/dist/{framework-authoring-DmU1d8-I-CkAim7c8.d.mts.map → framework-authoring-BBXRxWBw-Dod4YmpD.d.mts.map} +1 -1
- package/dist/{framework-components-DIZJ4Jpy-DJwI95w-.d.mts → framework-components-zjsYxq59-C6ig8Bjg.d.mts} +5 -5
- package/dist/{framework-components-DIZJ4Jpy-DJwI95w-.d.mts.map → framework-components-zjsYxq59-C6ig8Bjg.d.mts.map} +1 -1
- package/dist/ids.d.mts +1 -1
- package/dist/{migration-BaRjNiyG.d.mts → migration-DhNVSuoS.d.mts} +2 -2
- package/dist/{migration-BaRjNiyG.d.mts.map → migration-DhNVSuoS.d.mts.map} +1 -1
- package/dist/{migration-Do0woLo2.mjs → migration-X6-i6zRV.mjs} +2 -2
- package/dist/{migration-Do0woLo2.mjs.map → migration-X6-i6zRV.mjs.map} +1 -1
- package/dist/{parse-CJtBvEYy-CG3IsBbh.d.mts → parse-CJtBvEYy-Dbr0B5Ro.d.mts} +6 -6
- package/dist/{parse-CJtBvEYy-CG3IsBbh.d.mts.map → parse-CJtBvEYy-Dbr0B5Ro.d.mts.map} +1 -1
- package/dist/{psl-ast-Da2RnM7t-BTLOxBh5.d.mts → psl-ast-534NZS20-Bpsiogtb.d.mts} +3 -3
- package/dist/{psl-ast-Da2RnM7t-BTLOxBh5.d.mts.map → psl-ast-534NZS20-Bpsiogtb.d.mts.map} +1 -1
- package/dist/psl-ast-Bk6tiADv.d.mts +2 -0
- package/dist/psl-parser.d.mts +10 -10
- package/dist/psl-parser.mjs +2 -2
- package/dist/psl-parser__format.d.mts +1 -1
- package/dist/psl-parser__interpret.d.mts +6 -6
- package/dist/psl-parser__syntax.d.mts +1 -1
- package/dist/psl-printer.d.mts +4 -4
- package/dist/{runtime-CW_0S1tZ.d.mts → runtime-CXnENfVE.d.mts} +2 -2
- package/dist/{runtime-CW_0S1tZ.d.mts.map → runtime-CXnENfVE.d.mts.map} +1 -1
- package/dist/types-C0eTDwgl.d.mts +118 -0
- package/dist/types-C0eTDwgl.d.mts.map +1 -0
- package/dist/{types-import-spec-BlKcW9tz-BxhTG7Oc.d.mts → types-import-spec-D8GqKFw7-B3die2hX.d.mts} +3 -3
- package/dist/{types-import-spec-BlKcW9tz-BxhTG7Oc.d.mts.map → types-import-spec-D8GqKFw7-B3die2hX.d.mts.map} +1 -1
- package/dist/{written-value-aEELSm_V-BtFVjTrj.d.mts → written-value-CtjJTurF-BaB5g2rJ.d.mts} +4 -4
- package/dist/{written-value-aEELSm_V-BtFVjTrj.d.mts.map → written-value-CtjJTurF-BaB5g2rJ.d.mts.map} +1 -1
- package/package.json +15 -15
- package/dist/codec-types-BNVa23xn-DLZmMFiC.d.mts.map +0 -1
- package/dist/control-JxZycFiz.d.mts +0 -1
- package/dist/data-type-Yz-2OZh--ZEUqit-7.mjs.map +0 -1
- package/dist/emission-Cr-H5ooL.d.mts +0 -2
- package/dist/psl-ast-Ckg377Cn.d.mts +0 -2
- package/dist/types-CXUzb1Kz.d.mts +0 -38
- package/dist/types-CXUzb1Kz.d.mts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data-type-Yz-2OZh--ZEUqit-7.mjs","names":["#constructedByItsType"],"sources":["../../../../1-framework/1-core/framework-components/dist/data-type-Yz-2OZh-.mjs"],"sourcesContent":["import { t as canonicalizeJson } from \"./canonicalize-json-ZPawceQR.mjs\";\nimport { n as runtimeError } from \"./runtime-error-BA9d7XjZ.mjs\";\nimport { InternalError, isInternalError } from \"@internal/utils/internal-error\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/shared/data-type-id-pattern.ts\n/** The whole of what a data type id is: `owner/name` in lower case, with no version. */\nconst DATA_TYPE_ID_PATTERN = /^[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-z0-9]+(?:-[a-z0-9]+)*$/;\n//#endregion\n//#region src/shared/json-readers.ts\n/**\n* Readers for the JSON forms data types share. Each returns the JSON it is given in a form it reads and refuses anything else with {@link refuseJsonValue}. `owner` is the data type whose value is read, or the codec whose own limit refuses it.\n*/\nconst RECEIVED_PREVIEW_LIMIT = 100;\n/** The value a refusal names: its JSON text, or its digits for a number JSON cannot write, cut to 100 characters. */\nfunction receivedPreview(json) {\n\treturn (typeof json === \"number\" ? String(json) : JSON.stringify(json)).slice(0, RECEIVED_PREVIEW_LIMIT);\n}\n/**\n* The refusal of a JSON value: `RUNTIME.DECODE_FAILED`, `<owner> JSON value must be <expected>`, with `meta.received`, the value it was given as JSON text, cut to 100 characters, and `meta.dataType` or `meta.codecId` naming the owner. A data type id carries no version and a codec id does, so the id says which it is.\n*/\nfunction refuseJsonValue(owner, expected, json) {\n\tconst named = DATA_TYPE_ID_PATTERN.test(owner) ? { dataType: owner } : { codecId: owner };\n\tthrow structuredError(\"RUNTIME.DECODE_FAILED\", `${owner} JSON value must be ${expected}`, { meta: {\n\t\t...named,\n\t\treceived: receivedPreview(json)\n\t} });\n}\nfunction readJsonString(owner, json) {\n\tif (typeof json !== \"string\") return refuseJsonValue(owner, \"a string\", json);\n\treturn json;\n}\n/** Reads a JSON string that matches `pattern`; `form` names what the pattern accepts, for the refusal. */\nfunction readJsonMatching(owner, json, pattern, form) {\n\tif (typeof json !== \"string\" || !pattern.test(json)) return refuseJsonValue(owner, form, json);\n\treturn json;\n}\nfunction readJsonBoolean(owner, json) {\n\tif (typeof json !== \"boolean\") return refuseJsonValue(owner, \"a boolean\", json);\n\treturn json;\n}\n/** Whether `value` is an integer within `range`, its ends included. */\nfunction isIntegerIn(value, range) {\n\treturn typeof value === \"number\" && Number.isInteger(value) && value >= range.min && value <= range.max;\n}\n/** The integers a JavaScript `number` holds exactly. */\nconst SAFE_INTEGER_RANGE = {\n\tmin: Number.MIN_SAFE_INTEGER,\n\tmax: Number.MAX_SAFE_INTEGER\n};\n/** The integers a signed 32-bit integer holds. */\nconst INT32_RANGE = {\n\tmin: -(2 ** 31),\n\tmax: 2 ** 31 - 1\n};\nfunction readJsonInteger(owner, json, range) {\n\tif (!isIntegerIn(json, range)) return refuseJsonValue(owner, `an integer from ${range.min} to ${range.max}`, json);\n\treturn json;\n}\n/** The integers a signed 64-bit integer holds. */\nconst INT64_RANGE = {\n\tmin: -(2n ** 63n),\n\tmax: 2n ** 63n - 1n\n};\n/** The integers a JavaScript `number` holds exactly, as a `bigint` range. */\nconst SAFE_INTEGER_BIGINT_RANGE = {\n\tmin: BigInt(Number.MIN_SAFE_INTEGER),\n\tmax: BigInt(Number.MAX_SAFE_INTEGER)\n};\nconst DECIMAL_INTEGER_TEXT = /^-?\\d+$/;\n/**\n* Reads an integer a codec writes as decimal text, because a JSON number cannot hold every value of its type. The text must be the integer's decimal text, with no leading zeros and no minus sign on zero; another spelling is refused with the text to write, as `\"7\"` for `\"007\"`.\n*/\nfunction readJsonIntegerText(owner, json, range) {\n\tconst expected = range === void 0 ? \"a decimal integer string\" : `a decimal integer string from ${range.min} to ${range.max}`;\n\tconst value = BigInt(readJsonMatching(owner, json, DECIMAL_INTEGER_TEXT, expected));\n\tif (range !== void 0 && (value < range.min || value > range.max)) return refuseJsonValue(owner, expected, json);\n\tconst written = value.toString();\n\tif (json !== written) return refuseJsonValue(owner, `\"${written}\", the integer's decimal text without leading zeros or a minus sign on zero`, json);\n\treturn value;\n}\nconst NON_FINITE_TEXT = /* @__PURE__ */ new Set([\n\t\"NaN\",\n\t\"Infinity\",\n\t\"-Infinity\"\n]);\n/** Whether `text` is `NaN`, `Infinity` or `-Infinity`, the text a float's JSON form writes for a value JSON has no number for. */\nfunction isNonFiniteText(text) {\n\treturn NON_FINITE_TEXT.has(text);\n}\n/** JSON has no number for NaN or an infinity, so a float's JSON form writes them as the text `NaN`, `Infinity` and `-Infinity`. */\nfunction floatToJson(value) {\n\treturn Number.isFinite(value) ? value : String(value);\n}\nfunction readJsonFloat(owner, json) {\n\tif (typeof json === \"number\" && Number.isFinite(json)) return json;\n\tif (typeof json === \"string\" && isNonFiniteText(json)) return Number(json);\n\treturn refuseJsonValue(owner, \"a finite number or the text NaN, Infinity or -Infinity\", json);\n}\n//#endregion\n//#region src/shared/data-type.ts\nvar DataTypeValueRecord = class {\n\ttype;\n\tparams;\n\tvalue;\n\t#constructedByItsType = true;\n\tconstructor(type, params, value) {\n\t\tthis.type = type;\n\t\tthis.params = params;\n\t\tthis.value = value;\n\t\tObject.freeze(this);\n\t}\n\tstatic isConstructed(value) {\n\t\treturn typeof value === \"object\" && value !== null && #constructedByItsType in value && value.#constructedByItsType;\n\t}\n};\n/** Read `id` as a data type id, refusing anything that is not `owner/name` in lower case. */\nfunction dataTypeId(id) {\n\tif (!DATA_TYPE_ID_PATTERN.test(id)) throw runtimeError(\"CONTRACT.DATA_TYPE_ID_INVALID\", `\"${id}\" is not a data type id. A data type id is \"owner/name\" in lower case and carries no version, as in \"owner/name\"; a versioned id names a codec.`, { id });\n\treturn blindCast(id);\n}\n/** Declare a data type. Every id it names, its own and each cast's source, is validated here. */\nfunction dataType(id, spec) {\n\tconst typeId = dataTypeId(id);\n\tconst casts = {};\n\tfor (const [source, cast] of Object.entries(spec.casts ?? {})) casts[dataTypeId(source)] = cast;\n\tconst listCast = spec.listCast;\n\tconst { read, spell } = spec;\n\tconst construct = (json, params) => new DataTypeValueRecord(typeId, Object.freeze({ ...params }), json);\n\tconst spelledUnder = (json, params) => {\n\t\tconst accepted = read(json, params);\n\t\treturn spell === void 0 ? accepted : spell(accepted, params);\n\t};\n\t/** Whether `json` is already the spelling the type gives it without parameters, so that a difference under `params` is theirs. */\n\tconst spelledWithoutParams = (json) => {\n\t\ttry {\n\t\t\treturn canonicalizeJson(spelledUnder(json, {})) === canonicalizeJson(json);\n\t\t} catch (error) {\n\t\t\tif (isInternalError(error)) throw error;\n\t\t\treturn false;\n\t\t}\n\t};\n\tconst fromContract = (json, params) => {\n\t\tconst spelled = spelledUnder(json, params);\n\t\tif (canonicalizeJson(spelled) !== canonicalizeJson(json)) return refuseJsonValue(typeId, Object.keys(params).length > 0 && spelledWithoutParams(json) ? `${JSON.stringify(spelled)}, the spelling its parameters give this value` : `${JSON.stringify(spelled)}, as ${typeId} stores this value`, json);\n\t\treturn construct(json, params);\n\t};\n\treturn {\n\t\tid: typeId,\n\t\t...ifDefined(\"params\", spec.params),\n\t\tcasts,\n\t\t...listCast === void 0 ? {} : { listCast: {\n\t\t\tof: listCast.of.map(dataTypeId),\n\t\t\tcast: listCast.cast\n\t\t} },\n\t\tfromContract,\n\t\tvalueFrom: (json, params) => blindCast(construct(spelledUnder(json, params), params)),\n\t\ttoContract: (value) => requireValueOf(typeId, value, `Data type ${typeId}`).value\n\t};\n}\n/** `value`, when it is a value of `type` that a data type constructed; anything else is a bug in `holder`'s caller. */\nfunction requireValueOf(type, value, holder) {\n\tif (!DataTypeValueRecord.isConstructed(value)) throw new InternalError(`${holder} takes only values of ${type}, and was handed an object no data type constructed.`);\n\tif (value.type !== type) throw new InternalError(`${holder} takes only values of ${type}, and was handed a value of ${value.type}.`);\n\treturn value;\n}\n/** The parameters in `typeParams` that `type` declares; keys a codec keeps for itself are dropped. */\nfunction dataTypeParams(type, typeParams) {\n\tif (typeof typeParams !== \"object\" || typeParams === null) return {};\n\tconst kept = {};\n\tfor (const key of objectSchemaKeys(type.params) ?? []) if (Object.hasOwn(typeParams, key)) kept[key] = Reflect.get(typeParams, key);\n\treturn kept;\n}\n/** Whether two values are one: the same type, equal parameters, and JSON equal as canonical JSON. */\nfunction dataTypeValuesEqual(a, b) {\n\treturn a.type === b.type && canonicalizeJson(a.params) === canonicalizeJson(b.params) && canonicalizeJson(a.value) === canonicalizeJson(b.value);\n}\nfunction isSchemaPropList(value) {\n\treturn Array.isArray(value) && value.every((prop) => prop !== null && (typeof prop === \"object\" || typeof prop === \"function\") && \"key\" in prop);\n}\nfunction describesObjects(schema) {\n\tconst extendsType = Reflect.get(schema, \"extends\");\n\treturn typeof extendsType === \"function\" && extendsType.call(schema, \"object\") === true;\n}\nfunction objectSchemaProps(schema) {\n\tif (schema === null || typeof schema !== \"object\" && typeof schema !== \"function\") return;\n\tif (!describesObjects(schema)) return void 0;\n\tconst props = readProps(schema);\n\treturn isSchemaPropList(props) ? props : void 0;\n}\n/** Arktype throws from `props` for a union or a morph, whose keys it cannot list. */\nfunction readProps(schema) {\n\ttry {\n\t\treturn Reflect.get(schema, \"props\");\n\t} catch {\n\t\treturn;\n\t}\n}\n/** The keys an arktype object schema declares, or undefined when `schema` is not one. */\nfunction objectSchemaKeys(schema) {\n\treturn objectSchemaProps(schema)?.flatMap((prop) => typeof prop.key === \"string\" ? [prop.key] : []);\n}\n/** The required keys an arktype object schema declares, or undefined when `schema` is not one. */\nfunction requiredSchemaKeys(schema) {\n\treturn objectSchemaProps(schema)?.flatMap((prop) => prop.kind === \"required\" && typeof prop.key === \"string\" ? [prop.key] : []);\n}\nfunction propAllows(prop, value) {\n\tconst schema = prop.value;\n\tif (schema === null || typeof schema !== \"object\" && typeof schema !== \"function\") return false;\n\tconst allows = Reflect.get(schema, \"allows\");\n\treturn typeof allows === \"function\" && allows.call(schema, value) === true;\n}\n/** The keys of an arktype object schema whose own schema accepts `value`, or undefined when `schema` is not one. */\nfunction schemaKeysAllowing(schema, value) {\n\treturn objectSchemaProps(schema)?.flatMap((prop) => typeof prop.key === \"string\" && propAllows(prop, value) ? [prop.key] : []);\n}\n/** The parameters a data type requires. */\nfunction requiredParamKeys(type) {\n\treturn requiredSchemaKeys(type.params) ?? [];\n}\nfunction createDataTypeLookup(types) {\n\tconst byId = new Map(types.map((type) => [type.id, type]));\n\treturn {\n\t\tget: (id) => byId.get(id),\n\t\thas: (id) => byId.has(id)\n\t};\n}\n/** Collect every data type the composed components register, refusing two declarations of one id. */\nfunction assembleDataTypes(descriptors) {\n\tconst declared = [];\n\tconst owners = /* @__PURE__ */ new Map();\n\tfor (const descriptor of descriptors) {\n\t\tconst contributedBy = descriptor.id ?? \"<unknown>\";\n\t\tfor (const type of descriptor.dataTypes ?? []) {\n\t\t\tconst existingOwner = owners.get(type.id);\n\t\t\tif (existingOwner !== void 0) throw runtimeError(\"CONTRACT.DATA_TYPE_DUPLICATE\", `Duplicate data type \"${type.id}\". Component \"${contributedBy}\" conflicts with \"${existingOwner}\". Each data type has exactly one owner across the composed stack.`, {\n\t\t\t\tdataType: type.id,\n\t\t\t\tcontributedBy,\n\t\t\t\towner: existingOwner\n\t\t\t});\n\t\t\towners.set(type.id, contributedBy);\n\t\t\tdeclared.push({\n\t\t\t\ttype,\n\t\t\t\tcontributedBy\n\t\t\t});\n\t\t}\n\t}\n\treturn {\n\t\tlookup: createDataTypeLookup(declared.map((entry) => entry.type)),\n\t\tdeclared\n\t};\n}\n//#endregion\nexport { readJsonMatching as C, DATA_TYPE_ID_PATTERN as E, readJsonIntegerText as S, refuseJsonValue as T, isIntegerIn as _, dataTypeParams as a, readJsonFloat as b, requireValueOf as c, schemaKeysAllowing as d, INT32_RANGE as f, floatToJson as g, SAFE_INTEGER_RANGE as h, dataTypeId as i, requiredParamKeys as l, SAFE_INTEGER_BIGINT_RANGE as m, createDataTypeLookup as n, dataTypeValuesEqual as o, INT64_RANGE as p, dataType as r, objectSchemaKeys as s, assembleDataTypes as t, requiredSchemaKeys as u, isNonFiniteText as v, readJsonString as w, readJsonInteger as x, readJsonBoolean as y };\n\n//# sourceMappingURL=data-type-Yz-2OZh-.mjs.map"],"mappings":";;;;;;;;AAQA,MAAM,uBAAuB;;;;AAM7B,MAAM,yBAAyB;;AAE/B,SAAS,gBAAgB,MAAM;CAC9B,QAAQ,OAAO,SAAS,WAAW,OAAO,IAAI,IAAI,KAAK,UAAU,IAAI,EAAA,CAAG,MAAM,GAAG,sBAAsB;AACxG;;;;AAIA,SAAS,gBAAgB,OAAO,UAAU,MAAM;CAC/C,MAAM,QAAQ,qBAAqB,KAAK,KAAK,IAAI,EAAE,UAAU,MAAM,IAAI,EAAE,SAAS,MAAM;CACxF,MAAM,gBAAgB,yBAAyB,GAAG,MAAM,sBAAsB,YAAY,EAAE,MAAM;EACjG,GAAG;EACH,UAAU,gBAAgB,IAAI;CAC/B,EAAE,CAAC;AACJ;AACA,SAAS,eAAe,OAAO,MAAM;CACpC,IAAI,OAAO,SAAS,UAAU,OAAO,gBAAgB,OAAO,YAAY,IAAI;CAC5E,OAAO;AACR;;AAEA,SAAS,iBAAiB,OAAO,MAAM,SAAS,MAAM;CACrD,IAAI,OAAO,SAAS,YAAY,CAAC,QAAQ,KAAK,IAAI,GAAG,OAAO,gBAAgB,OAAO,MAAM,IAAI;CAC7F,OAAO;AACR;AACA,SAAS,gBAAgB,OAAO,MAAM;CACrC,IAAI,OAAO,SAAS,WAAW,OAAO,gBAAgB,OAAO,aAAa,IAAI;CAC9E,OAAO;AACR;;AAEA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ractValueObject } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
|
|
2
|
-
import { n as ContractExecutionSection } from "./contract-types-Mp9HNgyy-zkcDkGuS.mjs";
|
|
3
|
-
//#region ../../../1-framework/0-foundation/contract/dist/types.d.mts
|
|
4
|
-
//#region src/domain-namespace-access.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Models map for the contract's single domain namespace. Throws when the
|
|
7
|
-
* contract does not declare exactly one namespace — bare-name access is
|
|
8
|
-
* ambiguous across namespaces and must be qualified explicitly (TML-2550).
|
|
9
|
-
*/
|
|
10
|
-
declare function domainModelsAtDefaultNamespace(domain: ApplicationDomain): Record<string, ContractModelBase>;
|
|
11
|
-
/**
|
|
12
|
-
* Value objects for the contract's single domain namespace, when present.
|
|
13
|
-
* Throws when the contract does not declare exactly one namespace.
|
|
14
|
-
*/
|
|
15
|
-
declare function domainValueObjectsAtDefaultNamespace(domain: ApplicationDomain): Record<string, ContractValueObject> | undefined;
|
|
16
|
-
//#endregion
|
|
17
|
-
//#region src/execution-section-schema.d.ts
|
|
18
|
-
declare const ContractExecutionSectionSchema: import("arktype/internal/variants/object.ts").ObjectType<ContractExecutionSection, {}>;
|
|
19
|
-
//#endregion
|
|
20
|
-
//#region src/parameterized-output-types.d.ts
|
|
21
|
-
/**
|
|
22
|
-
* A pack's codec output types refined by a column's type parameters. A pack declares an interface extending this one whose `outputTypes` reads `this['typeParams']`, and names it in `types.codecTypes.parameterizedOutputTypes`. A codec it leaves out, or maps to `never`, keeps its plain output type.
|
|
23
|
-
*/
|
|
24
|
-
interface ParameterizedOutputTypesFunction {
|
|
25
|
-
readonly typeParams: Record<never, unknown>;
|
|
26
|
-
readonly outputTypes: Record<string, unknown>;
|
|
27
|
-
}
|
|
28
|
-
type ApplyParameterizedOutputTypes<TypeFunction extends ParameterizedOutputTypesFunction, TypeParams extends Record<string, unknown>> = (TypeFunction & {
|
|
29
|
-
readonly typeParams: TypeParams;
|
|
30
|
-
})['outputTypes'];
|
|
31
|
-
type RefinedOutputType<TypeFunction, CodecId, TypeParams extends Record<string, unknown>> = TypeFunction extends ParameterizedOutputTypesFunction ? ApplyParameterizedOutputTypes<TypeFunction, TypeParams> extends (infer Outputs) ? CodecId extends keyof Outputs ? Outputs[CodecId] : never : never : never;
|
|
32
|
-
/**
|
|
33
|
-
* The output type of a column of codec `CodecId` with these type parameters: the type one of `TypeFunctions` gives it, or `Plain` when none gives one. `TypeFunctions` is a union, one member per pack; each is applied on its own, because intersecting type functions makes TypeScript give up on deeply nested types. An emitted `contract.d.ts` and a contract written in TypeScript both type a column with type parameters through it.
|
|
34
|
-
*/
|
|
35
|
-
type ParameterizedOutputType<TypeFunctions extends ParameterizedOutputTypesFunction, CodecId, TypeParams extends Record<string, unknown>, Plain> = [RefinedOutputType<TypeFunctions, CodecId, TypeParams>] extends [never] ? Plain : RefinedOutputType<TypeFunctions, CodecId, TypeParams>;
|
|
36
|
-
//#endregion
|
|
37
|
-
export { domainModelsAtDefaultNamespace as a, ParameterizedOutputTypesFunction as i, ContractExecutionSectionSchema as n, domainValueObjectsAtDefaultNamespace as o, ParameterizedOutputType as r, ApplyParameterizedOutputTypes as t };
|
|
38
|
-
//# sourceMappingURL=types-CXUzb1Kz.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types-CXUzb1Kz.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/types.d.mts"],"mappings":";;;;;;;;;iBAUiB,+BAA+B,QAAQ,oBAAoB,eAAe;;;;;iBAK1E,qCAAqC,QAAQ,oBAAoB,eAAe;;;cAGnF,8EAA8E,WAAW;;;;;;UAM7F;WACC,YAAY;WACZ,aAAa;;KAEnB,8BAA8B,qBAAqB,kCAAkC,mBAAmB,4BAA4B;WAC9H,YAAY;;KAElB,kBAAkB,cAAc,SAAS,mBAAmB,2BAA2B,qBAAqB,mCAAmC,8BAA8B,cAAc,2BAA2B,WAAW,sBAAsB,UAAU,QAAQ;;;;KAIzQ,wBAAwB,sBAAsB,kCAAkC,SAAS,mBAAmB,yBAAyB,UAAU,kBAAkB,eAAe,SAAS,+BAA+B,QAAQ,kBAAkB,eAAe,SAAS"}
|