@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration-Do0woLo2.mjs","names":[],"sources":["../../../../1-framework/1-core/errors/dist/migration.mjs"],"sourcesContent":["import { t as CliStructuredError, w as UPGRADE_GUIDES_URL } from \"./control-Bv8UK63M.mjs\";\n//#region src/migration.ts\n/**\n* A scaffolded migration contains a placeholder slot that was never filled in.\n*\n* Thrown at emit time (when `check.source()` or `run()` is invoked) via the\n* `placeholder(...)` utility. The `slot` identifies the exact location the\n* author still needs to edit, e.g. `\"backfill-product-status:check.source\"`.\n*/\nfunction errorUnfilledPlaceholder(slot) {\n\treturn new CliStructuredError(\"MIGRATION.UNFILLED_PLACEHOLDER\", \"Unfilled migration placeholder\", {\n\t\twhy: `The migration contains a placeholder that has not been filled in: ${slot}`,\n\t\tfix: \"Open migration.ts and replace the `placeholder(...)` call with your actual query.\",\n\t\tmeta: { slot }\n\t});\n}\n/**\n* The operation of a planner-stubbed data transform: a promise that rejects with\n* `MIGRATION.UNFILLED_PLACEHOLDER`. A plan's other operations stay readable beside it. The\n* rejection is marked handled, and so is any promise a target wraps it in, so reading a plan's\n* operations without awaiting each one does not raise an unhandled rejection.\n*/\nfunction unfilledPlaceholderOperation(slot) {\n\tconst operation = Promise.reject(errorUnfilledPlaceholder(slot));\n\toperation.catch(() => void 0);\n\treturn operation;\n}\n/**\n* Scaffolded `migration.ts` files call this wherever the scaffolder couldn't\n* emit a real query and the author is expected to fill one in. Always throws\n* a structured migration error (`MIGRATION.UNFILLED_PLACEHOLDER`).\n*\n* The return type `never` makes it assignable to any expected return type, so\n* a scaffolded `() => placeholder('...')` satisfies signatures like\n* `() => MongoQueryPlan` without polluting them with a sentinel union arm.\n*/\nfunction placeholder(slot) {\n\tthrow errorUnfilledPlaceholder(slot);\n}\n/**\n* A `dataTransform(endContract, …)` factory was handed a `SqlQueryPlan` whose\n* `meta.storageHash` does not match the `endContract.storage.storageHash` it\n* was configured with. This almost always means the user's query-builder\n* (`sql({ context: createExecutionContext({ contract: endContract, … }) })`)\n* was instantiated from a different contract reference than the one passed\n* to `dataTransform(endContract, …)`.\n*\n* Distinct from `errorHashMismatch` (`CONTRACT.MARKER_MISMATCH`) which\n* rejects a plan at runtime execution; this is an authoring-time rejection\n* so it lives in the `MIGRATION` namespace.\n*/\nfunction errorDataTransformContractMismatch(options) {\n\treturn new CliStructuredError(\"MIGRATION.DATA_TRANSFORM_CONTRACT_MISMATCH\", \"dataTransform query plan built against wrong contract\", {\n\t\twhy: `Data transform \"${options.dataTransformName}\" produced a query plan whose storage hash (${options.actual}) does not match the migration's contract (${options.expected}). The query builder was configured with a different contract than the one passed to dataTransform(endContract, ...).`,\n\t\tfix: \"Ensure the `endContract` imported at module scope (used for both `dataTransform(endContract, …)` and `sql({ context: createExecutionContext({ contract: endContract, … }) })`) is the same reference.\",\n\t\tmeta: {\n\t\t\tdataTransformName: options.dataTransformName,\n\t\t\texpected: options.expected,\n\t\t\tactual: options.actual\n\t\t}\n\t});\n}\n/**\n* `migration.ts` was expected at the given package directory but could not be\n* located. Thrown when consumers attempt to read a migration package that is\n* missing its source file.\n*/\nfunction errorMigrationFileMissing(dir) {\n\treturn new CliStructuredError(\"MIGRATION.FILE_MISSING\", \"migration.ts not found\", {\n\t\twhy: `No migration.ts file was found at \"${dir}\"`,\n\t\tfix: \"Scaffold one with `{bin} migration new` or `{bin} migration plan`.\",\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Scaffold an empty migration\",\n\t\t\tcommand: \"{bin} migration new\"\n\t\t}, {\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Scaffold a migration from a contract diff\",\n\t\t\tcommand: \"{bin} migration plan\"\n\t\t}],\n\t\tmeta: { dir }\n\t});\n}\n/**\n* The `migration.ts` at the given package directory does not default-export a\n* valid migration shape. Two shapes are accepted: a `Migration` subclass, or a\n* factory function returning a `MigrationPlan`-shaped object (with at least\n* an `operations` array, plus `targetId` and `destination`). Thrown when the\n* default export is missing, is not a constructor/function, does not extend\n* `Migration`, or (for factory functions) returns a value that is not\n* `MigrationPlan`-shaped.\n*/\nfunction errorMigrationInvalidDefaultExport(dir, actualExportDescription) {\n\treturn new CliStructuredError(\"MIGRATION.INVALID_DEFAULT_EXPORT\", \"migration.ts default export is not a valid migration\", {\n\t\twhy: actualExportDescription !== void 0 ? `migration.ts at \"${dir}\" must default-export a Migration subclass or a factory function returning a MigrationPlan-shaped object; got ${actualExportDescription}` : `migration.ts at \"${dir}\" must default-export a Migration subclass or a factory function returning a MigrationPlan-shaped object.`,\n\t\tfix: \"Use `export default class extends Migration { ... }` or `export default () => ({ targetId, destination, operations })`.\",\n\t\tmeta: {\n\t\t\tdir,\n\t\t\t...actualExportDescription !== void 0 ? { actualExport: actualExportDescription } : {}\n\t\t}\n\t});\n}\n/**\n* The migration class declares one `targetId` but the loaded\n* `prisma.config.ts` declares another. Thrown by `MigrationCLI.run`\n* when a migration script is invoked against a config whose target\n* descriptor disagrees with the migration's own `targetId`. Distinct from generic\n* config-validation errors because the mismatch is between two valid\n* artifacts (the script and the config), not a malformed input.\n*/\nfunction errorMigrationTargetMismatch(options) {\n\treturn new CliStructuredError(\"MIGRATION.TARGET_MISMATCH\", \"Migration target does not match config target\", {\n\t\twhy: `This migration is for target \"${options.migrationTargetId}\" but the loaded prisma.config.ts declares target \"${options.configTargetId}\". The migration script can only be run against a config that targets the same database.`,\n\t\tfix: \"Switch to a config whose `target` matches the migration's target, or pass `--config <path>` to point at the right config file.\",\n\t\tmeta: {\n\t\t\tmigrationTargetId: options.migrationTargetId,\n\t\t\tconfigTargetId: options.configTargetId\n\t\t}\n\t});\n}\n/**\n* A `Migration.operations` getter returned a value that is not an array. Used\n* by emit capabilities after instantiating the authored migration.\n*/\nfunction errorMigrationPlanNotArray(dir, actualValueDescription) {\n\treturn new CliStructuredError(\"MIGRATION.PLAN_NOT_ARRAY\", \"Migration.operations must be an array of operations\", {\n\t\twhy: actualValueDescription !== void 0 ? `Migration.operations for migration.ts at \"${dir}\" was ${actualValueDescription}; an array of operations is required.` : `Migration.operations for migration.ts at \"${dir}\" is not an array of operations.`,\n\t\tfix: \"Ensure your `operations` getter returns an array of operations; see the data-migrations authoring guide.\",\n\t\tmeta: {\n\t\t\tdir,\n\t\t\t...actualValueDescription !== void 0 ? { actualValue: actualValueDescription } : {}\n\t\t}\n\t});\n}\n/**\n* A `migration.ts` passes an operation an option in the form an earlier version wrote, which this version no longer reads. `node migration.ts` strips types without checking them, so such a file runs; the operation refuses the option rather than leave out what it carries. `subject` names what the option was for, `rewrite` says how to write it now, and `upgradeEntry` is the id of the upgrade entry that shows the new form.\n*/\nfunction errorMigrationOperationOptionRemoved(options) {\n\tconst { operation, option, upgradeEntry } = options;\n\treturn new CliStructuredError(\"MIGRATION.OPERATION_OPTION_REMOVED\", `\\`${operation}\\` in migration.ts passes \\`${option}\\`, which this version no longer reads, for ${options.subject}`, {\n\t\twhy: \"An earlier version wrote this migration.ts. `node migration.ts` does not check its types, so the file runs, and this version would leave out what the option carries.\",\n\t\tfix: `${options.rewrite} Or, if the migration is not applied, delete its package and run \\`migration plan\\` again. The upgrade entry \\`${upgradeEntry}\\` shows the new shape: ${UPGRADE_GUIDES_URL}`,\n\t\tmeta: {\n\t\t\toperation,\n\t\t\toption,\n\t\t\tupgradeEntry\n\t\t}\n\t});\n}\n//#endregion\nexport { errorDataTransformContractMismatch, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationOperationOptionRemoved, errorMigrationPlanNotArray, errorMigrationTargetMismatch, errorUnfilledPlaceholder, placeholder, unfilledPlaceholderOperation };\n\n//# sourceMappingURL=migration.mjs.map"],"mappings":";;;;;;;;;AAS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AC3G,KAAK,iCAAiC,QAAQ,kBAAkB,qDAAqD,QAAQ,eAAe;EAC5I,KAAK;EACL,MAAM;GACL,mBAAmB,QAAQ;GAC3B,gBAAgB,QAAQ;EACzB;CACD,CAAC;AACF;;;;;AAKA,SAAS,2BAA2B,KAAK,wBAAwB;CAChE,OAAO,IAAI,mBAAmB,4BAA4B,uDAAuD;EAChH,KAAK,2BAA2B,KAAK,IAAI,6CAA6C,IAAI,QAAQ,uBAAuB,yCAAyC,6CAA6C,IAAI;EACnN,KAAK;EACL,MAAM;GACL;GACA,GAAG,2BAA2B,KAAK,IAAI,EAAE,aAAa,uBAAuB,IAAI,CAAC;EACnF;CACD,CAAC;AACF;;;;AAIA,SAAS,qCAAqC,SAAS;CACtD,MAAM,EAAE,WAAW,QAAQ,iBAAiB;CAC5C,OAAO,IAAI,mBAAmB,sCAAsC,KAAK,UAAU,8BAA8B,OAAO,8CAA8C,QAAQ,WAAW;EACxL,KAAK;EACL,KAAK,GAAG,QAAQ,QAAQ,iHAAiH,aAAa,0BAA0B;EAChL,MAAM;GACL;GACA;GACA;EACD;CACD,CAAC;AACF"}
|
|
1
|
+
{"version":3,"file":"migration-X6-i6zRV.mjs","names":[],"sources":["../../../../1-framework/1-core/errors/dist/migration.mjs"],"sourcesContent":["import { t as CliStructuredError, w as UPGRADE_GUIDES_URL } from \"./control-Bv8UK63M.mjs\";\n//#region src/migration.ts\n/**\n* A scaffolded migration contains a placeholder slot that was never filled in.\n*\n* Thrown at emit time (when `check.source()` or `run()` is invoked) via the\n* `placeholder(...)` utility. The `slot` identifies the exact location the\n* author still needs to edit, e.g. `\"backfill-product-status:check.source\"`.\n*/\nfunction errorUnfilledPlaceholder(slot) {\n\treturn new CliStructuredError(\"MIGRATION.UNFILLED_PLACEHOLDER\", \"Unfilled migration placeholder\", {\n\t\twhy: `The migration contains a placeholder that has not been filled in: ${slot}`,\n\t\tfix: \"Open migration.ts and replace the `placeholder(...)` call with your actual query.\",\n\t\tmeta: { slot }\n\t});\n}\n/**\n* The operation of a planner-stubbed data transform: a promise that rejects with\n* `MIGRATION.UNFILLED_PLACEHOLDER`. A plan's other operations stay readable beside it. The\n* rejection is marked handled, and so is any promise a target wraps it in, so reading a plan's\n* operations without awaiting each one does not raise an unhandled rejection.\n*/\nfunction unfilledPlaceholderOperation(slot) {\n\tconst operation = Promise.reject(errorUnfilledPlaceholder(slot));\n\toperation.catch(() => void 0);\n\treturn operation;\n}\n/**\n* Scaffolded `migration.ts` files call this wherever the scaffolder couldn't\n* emit a real query and the author is expected to fill one in. Always throws\n* a structured migration error (`MIGRATION.UNFILLED_PLACEHOLDER`).\n*\n* The return type `never` makes it assignable to any expected return type, so\n* a scaffolded `() => placeholder('...')` satisfies signatures like\n* `() => MongoQueryPlan` without polluting them with a sentinel union arm.\n*/\nfunction placeholder(slot) {\n\tthrow errorUnfilledPlaceholder(slot);\n}\n/**\n* A `dataTransform(endContract, …)` factory was handed a `SqlQueryPlan` whose\n* `meta.storageHash` does not match the `endContract.storage.storageHash` it\n* was configured with. This almost always means the user's query-builder\n* (`sql({ context: createExecutionContext({ contract: endContract, … }) })`)\n* was instantiated from a different contract reference than the one passed\n* to `dataTransform(endContract, …)`.\n*\n* Distinct from `errorHashMismatch` (`CONTRACT.MARKER_MISMATCH`) which\n* rejects a plan at runtime execution; this is an authoring-time rejection\n* so it lives in the `MIGRATION` namespace.\n*/\nfunction errorDataTransformContractMismatch(options) {\n\treturn new CliStructuredError(\"MIGRATION.DATA_TRANSFORM_CONTRACT_MISMATCH\", \"dataTransform query plan built against wrong contract\", {\n\t\twhy: `Data transform \"${options.dataTransformName}\" produced a query plan whose storage hash (${options.actual}) does not match the migration's contract (${options.expected}). The query builder was configured with a different contract than the one passed to dataTransform(endContract, ...).`,\n\t\tfix: \"Ensure the `endContract` imported at module scope (used for both `dataTransform(endContract, …)` and `sql({ context: createExecutionContext({ contract: endContract, … }) })`) is the same reference.\",\n\t\tmeta: {\n\t\t\tdataTransformName: options.dataTransformName,\n\t\t\texpected: options.expected,\n\t\t\tactual: options.actual\n\t\t}\n\t});\n}\n/**\n* `migration.ts` was expected at the given package directory but could not be\n* located. Thrown when consumers attempt to read a migration package that is\n* missing its source file.\n*/\nfunction errorMigrationFileMissing(dir) {\n\treturn new CliStructuredError(\"MIGRATION.FILE_MISSING\", \"migration.ts not found\", {\n\t\twhy: `No migration.ts file was found at \"${dir}\"`,\n\t\tfix: \"Scaffold one with `{bin} migration new` or `{bin} migration plan`.\",\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Scaffold an empty migration\",\n\t\t\tcommand: \"{bin} migration new\"\n\t\t}, {\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Scaffold a migration from a contract diff\",\n\t\t\tcommand: \"{bin} migration plan\"\n\t\t}],\n\t\tmeta: { dir }\n\t});\n}\n/**\n* The `migration.ts` at the given package directory does not default-export a\n* valid migration shape. Two shapes are accepted: a `Migration` subclass, or a\n* factory function returning a `MigrationPlan`-shaped object (with at least\n* an `operations` array, plus `targetId` and `destination`). Thrown when the\n* default export is missing, is not a constructor/function, does not extend\n* `Migration`, or (for factory functions) returns a value that is not\n* `MigrationPlan`-shaped.\n*/\nfunction errorMigrationInvalidDefaultExport(dir, actualExportDescription) {\n\treturn new CliStructuredError(\"MIGRATION.INVALID_DEFAULT_EXPORT\", \"migration.ts default export is not a valid migration\", {\n\t\twhy: actualExportDescription !== void 0 ? `migration.ts at \"${dir}\" must default-export a Migration subclass or a factory function returning a MigrationPlan-shaped object; got ${actualExportDescription}` : `migration.ts at \"${dir}\" must default-export a Migration subclass or a factory function returning a MigrationPlan-shaped object.`,\n\t\tfix: \"Use `export default class extends Migration { ... }` or `export default () => ({ targetId, destination, operations })`.\",\n\t\tmeta: {\n\t\t\tdir,\n\t\t\t...actualExportDescription !== void 0 ? { actualExport: actualExportDescription } : {}\n\t\t}\n\t});\n}\n/**\n* The migration class declares one `targetId` but the loaded\n* `prisma.config.ts` declares another. Thrown by `MigrationCLI.run`\n* when a migration script is invoked against a config whose target\n* descriptor disagrees with the migration's own `targetId`. Distinct from generic\n* config-validation errors because the mismatch is between two valid\n* artifacts (the script and the config), not a malformed input.\n*/\nfunction errorMigrationTargetMismatch(options) {\n\treturn new CliStructuredError(\"MIGRATION.TARGET_MISMATCH\", \"Migration target does not match config target\", {\n\t\twhy: `This migration is for target \"${options.migrationTargetId}\" but the loaded prisma.config.ts declares target \"${options.configTargetId}\". The migration script can only be run against a config that targets the same database.`,\n\t\tfix: \"Switch to a config whose `target` matches the migration's target, or pass `--config <path>` to point at the right config file.\",\n\t\tmeta: {\n\t\t\tmigrationTargetId: options.migrationTargetId,\n\t\t\tconfigTargetId: options.configTargetId\n\t\t}\n\t});\n}\n/**\n* A `Migration.operations` getter returned a value that is not an array. Used\n* by emit capabilities after instantiating the authored migration.\n*/\nfunction errorMigrationPlanNotArray(dir, actualValueDescription) {\n\treturn new CliStructuredError(\"MIGRATION.PLAN_NOT_ARRAY\", \"Migration.operations must be an array of operations\", {\n\t\twhy: actualValueDescription !== void 0 ? `Migration.operations for migration.ts at \"${dir}\" was ${actualValueDescription}; an array of operations is required.` : `Migration.operations for migration.ts at \"${dir}\" is not an array of operations.`,\n\t\tfix: \"Ensure your `operations` getter returns an array of operations; see the data-migrations authoring guide.\",\n\t\tmeta: {\n\t\t\tdir,\n\t\t\t...actualValueDescription !== void 0 ? { actualValue: actualValueDescription } : {}\n\t\t}\n\t});\n}\n/**\n* A `migration.ts` passes an operation an option in the form an earlier version wrote, which this version no longer reads. `node migration.ts` strips types without checking them, so such a file runs; the operation refuses the option rather than leave out what it carries. `subject` names what the option was for, `rewrite` says how to write it now, and `upgradeEntry` is the id of the upgrade entry that shows the new form.\n*/\nfunction errorMigrationOperationOptionRemoved(options) {\n\tconst { operation, option, upgradeEntry } = options;\n\treturn new CliStructuredError(\"MIGRATION.OPERATION_OPTION_REMOVED\", `\\`${operation}\\` in migration.ts passes \\`${option}\\`, which this version no longer reads, for ${options.subject}`, {\n\t\twhy: \"An earlier version wrote this migration.ts. `node migration.ts` does not check its types, so the file runs, and this version would leave out what the option carries.\",\n\t\tfix: `${options.rewrite} Or, if the migration is not applied, delete its package and run \\`migration plan\\` again. The upgrade entry \\`${upgradeEntry}\\` shows the new shape: ${UPGRADE_GUIDES_URL}`,\n\t\tmeta: {\n\t\t\toperation,\n\t\t\toption,\n\t\t\tupgradeEntry\n\t\t}\n\t});\n}\n//#endregion\nexport { errorDataTransformContractMismatch, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationOperationOptionRemoved, errorMigrationPlanNotArray, errorMigrationTargetMismatch, errorUnfilledPlaceholder, placeholder, unfilledPlaceholderOperation };\n\n//# sourceMappingURL=migration.mjs.map"],"mappings":";;;;;;;;;AASA,SAAS,yBAAyB,MAAM;CACvC,OAAO,IAAI,mBAAmB,kCAAkC,kCAAkC;EACjG,KAAK,qEAAqE;EAC1E,KAAK;EACL,MAAM,EAAE,KAAK;CACd,CAAC;AACF;;;;;;;AAOA,SAAS,6BAA6B,MAAM;CAC3C,MAAM,YAAY,QAAQ,OAAO,yBAAyB,IAAI,CAAC;CAC/D,UAAU,YAAY,KAAK,CAAC;CAC5B,OAAO;AACR;;;;;;;;;;AAUA,SAAS,YAAY,MAAM;CAC1B,MAAM,yBAAyB,IAAI;AACpC;;;;;;;;;;;;;AAaA,SAAS,mCAAmC,SAAS;CACpD,OAAO,IAAI,mBAAmB,8CAA8C,yDAAyD;EACpI,KAAK,mBAAmB,QAAQ,kBAAkB,8CAA8C,QAAQ,OAAO,6CAA6C,QAAQ,SAAS;EAC7K,KAAK;EACL,MAAM;GACL,mBAAmB,QAAQ;GAC3B,UAAU,QAAQ;GAClB,QAAQ,QAAQ;EACjB;CACD,CAAC;AACF;;;;;;AAMA,SAAS,0BAA0B,KAAK;CACvC,OAAO,IAAI,mBAAmB,0BAA0B,0BAA0B;EACjF,KAAK,sCAAsC,IAAI;EAC/C,KAAK;EACL,aAAa,CAAC;GACb,M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framework-authoring-
|
|
2
|
-
import { h as TaggedLiteralCanonicalization } from "./written-value-
|
|
3
|
-
import "./authoring-
|
|
4
|
-
import "./psl-ast-
|
|
5
|
-
import { h as PslParserOptions, r as ContractSourceDiagnostic } from "./config-types-
|
|
1
|
+
import { U as PslSpan } from "./framework-authoring-BBXRxWBw-Dod4YmpD.mjs";
|
|
2
|
+
import { h as TaggedLiteralCanonicalization } from "./written-value-CtjJTurF-BaB5g2rJ.mjs";
|
|
3
|
+
import "./authoring-qquHLoSJ.mjs";
|
|
4
|
+
import "./psl-ast-Bk6tiADv.mjs";
|
|
5
|
+
import { h as PslParserOptions, r as ContractSourceDiagnostic } from "./config-types-BY2jSWuk.mjs";
|
|
6
6
|
import { n as TokenKind, t as Token } from "./tokenizer-i8RaVWVa-7fRwlCPP.mjs";
|
|
7
7
|
//#region ../../../1-framework/2-authoring/psl-parser/dist/parse-CJtBvEYy.d.mts
|
|
8
8
|
//#region src/syntax/syntax-kind.d.ts
|
|
@@ -553,4 +553,4 @@ interface ParseResult {
|
|
|
553
553
|
declare function parse(source: string, filename: string, options?: PslParserOptions): ParseResult;
|
|
554
554
|
//#endregion
|
|
555
555
|
export { TypeAnnotationAst as $, NamespaceDeclarationAst as A, PslDiagnosticCollector as B, IdentifierAst as C, ModelAttributeAst as D, MixinInclusionAst as E, ParseDiagnostic as F, StringLiteralExprAst as G, QualifiedNameAst as H, ParseResult as I, SyntaxKind as J, StringLiteralQuote as K, PathExprAst as L, NumberLiteralExprAst as M, ObjectFieldAst as N, ModelDeclarationAst as O, ObjectLiteralExprAst as P, TokenAtOffset as Q, Position as R, HasDocComment as S, MixinDeclarationAst as T, Range as U, PslSources as V, SourceFile as W, SyntaxToken as X, SyntaxNode as Y, TaggedLiteralExprAst as Z, GenericBlockDeclarationAst as _, AttributeAst as a, diagnosticFromSpan as at, GreenNode as b, BracedBlock as c, filterChildren as ct, DiagnosticSource as d, greenNode as dt, TypesBlockAst as et, DocumentAst as f, greenToken as ft, FunctionCallAst as g, FieldDeclarationAst as h, printSyntax as ht, AttributeArgListAst as i, createSyntaxTree as it, NamespaceMemberAst as j, NamedTypeDeclarationAst as k, CompositeTypeDeclarationAst as l, findChildToken as lt, FieldAttributeAst as m, parse as mt, AstNode as n, castExpression as nt, BlockMemberAst as o, diagnosticSource as ot, ExpressionAst as p, mapPslDiagnostics as pt, SyntaxElement as q, AttributeArgAst as r, createPslDiagnosticCollector as rt, BooleanLiteralExprAst as s, dottedPathsIn as st, ArrayLiteralAst as t, any as tt, DeclarationAst as u, findFirstChild as ut, GenericBlockMemberAst as v, KeyValuePairAst as w, GreenToken as x, GreenElement as y, PslDiagnostic as z };
|
|
556
|
-
//# sourceMappingURL=parse-CJtBvEYy-
|
|
556
|
+
//# sourceMappingURL=parse-CJtBvEYy-Dbr0B5Ro.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-CJtBvEYy-
|
|
1
|
+
{"version":3,"file":"parse-CJtBvEYy-Dbr0B5Ro.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/psl-parser/dist/parse-CJtBvEYy.d.mts"],"mappings":";;;;;;;;KAKK;;;UAGK;WACC;WACA,MAAM;WACN;;UAED;WACC;WACA,MAAM;WACN,UAAU,cAAc;WACxB;;KAEN,eAAe,YAAY;iBACf,WAAW,MAAM,WAAW,eAAe;iBAC3C,UAAU,MAAM,YAAY,UAAU,cAAc,gBAAgB;;;;;;;;;;cAUvE,uBAAuB;WAC1B,OAAO;WACP,MAAM;WACN;WACA;WACA,QAAQ;;WAER;EACT,YAAY,OAAO,YAAY,gBAAgB,QAAQ,YAAY;MAC/D;MACA;;EAEJ,SAAS;EACT,UAAU;;MAEN,sBAAsB;;MAEtB,sBAAsB;;MAEtB,aAAa;;MAEb,aAAa;;KAEd,gBAAgB,aAAa;cACpB;;UAEJ;SACD,QAAQ;SACR,OAAO,OAAO,cAAc;SAC5B,QAAQ,MAAM,aAAa,OAAO,cAAc;MACnD;MACA;EACJ,cA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UAAU;EACV,UAAU;EACV,UAAU,SAAS;EACnB,WAAW,SAAS;EACpB,cAAc,SAAS;;EAEvB,cAAc,SAAS;EACvB,WAAW,SAAS,iBAAiB;EACrC;SACO,KAAK,MAAM,aAAa;;cAEnB,6BAA6B;WAChC,QAAQ;EACjB,YAAY,QAAQ;EACpB,QAAQ;EACR,QAAQ;SACD,KAAK,MAAM,aAAa;;cAEnB,2BAA2B;WAC9B,QAAQ;EACjB,YAAY,QAAQ;EACpB,OAAO;EACP,UAAU;EACV,SAAS;;EAET,cAAc,SAAS;SAChB,KAAK,MAAM,aAAa;;cAEnB,+BAA+B,SAAS;WAC3C,QAAQ;EACjB,YAAY,QAAQ;EACpB,QAAQ;EACR,kBAAkB;EAClB,cAAc,SAAS;EACvB;SACO,KAAK,MAAM,aAAa;;cAEnB,mCAAmC,SAAS;WAC/C,QAAQ;EACjB,YAAY,QAAQ;EACpB,QAAQ;EACR,UAAU;EACV,kBAAkB;EAClB,cAAc,SAAS;EACvB;SACO,KAAK,MAAM,aAAa;;;;KAI5B,kBAAkB;UACb;WACC,UAAU;WACV,sBAAsB;WACtB,SAAS;;;;;;iBAMH,MAAM,gBAAgB,kBAAkB,UAAU,mBAAmB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as PslDiagnosticCode, L as PslExtensionBlock, M as ContributedPslDiagnosticCode, U as PslSpan } from "./framework-authoring-
|
|
2
|
-
//#region ../../../1-framework/1-core/framework-components/dist/psl-ast-
|
|
1
|
+
import { I as PslDiagnosticCode, L as PslExtensionBlock, M as ContributedPslDiagnosticCode, U as PslSpan } from "./framework-authoring-BBXRxWBw-Dod4YmpD.mjs";
|
|
2
|
+
//#region ../../../1-framework/1-core/framework-components/dist/psl-ast-534NZS20.d.mts
|
|
3
3
|
//#region src/control/psl-ast.d.ts
|
|
4
4
|
interface PslDiagnostic {
|
|
5
5
|
/**
|
|
@@ -227,4 +227,4 @@ declare const BUILTIN_PSL_KIND_KEYS: ReadonlySet<string>;
|
|
|
227
227
|
declare function namespacePslExtensionBlocks(ns: PslNamespace): readonly PslExtensionBlock[];
|
|
228
228
|
//#endregion
|
|
229
229
|
export { makePslNamespaceEntries as A, PslTypesBlock as C, flatPslCompositeTypes as D, UNSPECIFIED_PSL_NAMESPACE_ID as E, flatPslModels as O, PslTypeConstructorCall as S, UNBOUND_PSL_NAMESPACE_NAME as T, PslModelAttribute as _, PslAttributePositionalArgument as a, PslNamespaceEntry as b, PslDefaultFunctionValue as c, PslDiagnostic as d, PslDocumentAst as f, PslModel as g, PslIndexConstraint as h, PslAttributeNamedArgument as i, namespacePslExtensionBlocks as j, makePslNamespace as k, PslDefaultLiteralValue as l, PslFieldAttribute as m, PslAttribute as n, PslAttributeTarget as o, PslField as p, PslAttributeArgument as r, PslCompositeType as s, BUILTIN_PSL_KIND_KEYS as t, PslDefaultValue as u, PslNamedTypeDeclaration as v, PslUniqueConstraint as w, PslReferentialAction as x, PslNamespace as y };
|
|
230
|
-
//# sourceMappingURL=psl-ast-
|
|
230
|
+
//# sourceMappingURL=psl-ast-534NZS20-Bpsiogtb.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"psl-ast-
|
|
1
|
+
{"version":3,"file":"psl-ast-534NZS20-Bpsiogtb.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/psl-ast-534NZS20.d.mts"],"mappings":";;;UAEU;;;;;;;;;;;WAWC,MAAM,oBAAoB;WAC1B;WACA;WACA,MAAM;;UAEP;WACC;WACA;;UAED;WACC;WACA;;KAEN,kBAAkB,0BAA0B;KAC5C;UACK;WACC;WACA;WACA,MAAM;;UAEP;WACC;WACA;WACA;WACA,MAAM;;KAEZ,uBAAuB,iCAAiC;UACnD;WACC;WACA;WACA,eAAe;WACf,MAAM;;UAEP;WACC;WACA,QAAQ;WACR;WACA,eAAe;WACf,MAAM;;KAEZ;KACA,oBAAoB;UACf;WACC;WACA;;WAEA;;WAEA;;;;;;;;;WASA;WACA,kBAAkB;WAClB;WACA;WACA;WACA;WACA,qBAAqB;WACrB,MAAM;;UAEP;WACC;WACA;WACA,MAAM;;UAEP;WACC;WACA;WACA,MAAM;;KAEZ,oBAAoB;UACf;WACC;WACA;WACA,iBAAiB;WACjB,qBAAqB;WACrB,MAAM;;;;;;;;WAQN;;;;;;;UAOD;WACC;WACA;WACA,iBAAiB;WACjB,qBAAqB;WACrB,MAAM;;UAEP;WACC;WACA;;;;;;WAMA;WACA,kBAAkB;WAClB,qBAAqB;WACrB,MAAM;;UAEP;WACC;WACA,uBAAuB;WACvB,MAAM;;;;;;;;;;;;;;cAcH;;;;;cAKA;;KAET,oBAAoB,WAAW,mBAAmB;;;;;;;;;;;;UAY7C;WACC;WACA;;WAEA,SAAS,SAAS,eAAe,SAAS,eAAe;;WAEzD,iBAAiB;;WAEjB,yBAAyB;WACzB,MAAM;;;iBAGA,iBAAiB;WACvB;WACA;WACA,SAAS,SAAS,eAAe,SAAS,eAAe;WACzD,MAAM;IACb;;;;;;iBAMa,wBAAwB,iBAAiB,YAAY,yBAAyB,oBAAoB,0BAA0B,sBAAsB,SAAS,eAAe,SAAS,eAAe;UACzM;WACC;WACA;WACA,qBAAqB;WACrB,QAAQ;WACR,MAAM;;;;;;iBAMA,cAAc,KAAK,0BAA0B;;;;iBAI7C,sBAAsB,KAAK,0BAA0B;;;;;;;;;;;cAWxD,uBAAuB;;;;;;;;;iBASpB,4BAA4B,IAAI,wBAAwB"}
|
package/dist/psl-parser.d.mts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { v as DataTypeId } from "./codec-types-
|
|
2
|
-
import { B as PslExtensionBlockParsedAttribute, C as AuthoringPslBlockDescriptorNamespace, F as ParsedPslExtensionBlock, H as PslPosition, I as PslDiagnosticCode, L as PslExtensionBlock, R as PslExtensionBlockAttribute, S as AuthoringPslBlockDescriptor, U as PslSpan, V as PslExtensionBlockPrintEntry, z as PslExtensionBlockAttributeArg } from "./framework-authoring-
|
|
1
|
+
import { v as DataTypeId } from "./codec-types-C_Ep6tv5-C5j2AzFu.mjs";
|
|
2
|
+
import { B as PslExtensionBlockParsedAttribute, C as AuthoringPslBlockDescriptorNamespace, F as ParsedPslExtensionBlock, H as PslPosition, I as PslDiagnosticCode, L as PslExtensionBlock, R as PslExtensionBlockAttribute, S as AuthoringPslBlockDescriptor, U as PslSpan, V as PslExtensionBlockPrintEntry, z as PslExtensionBlockAttributeArg } from "./framework-authoring-BBXRxWBw-Dod4YmpD.mjs";
|
|
3
3
|
import { r as ControlMutationDefaultRegistry } from "./mutation-default-types-DMtyr_6u-wZRBOsHl.mjs";
|
|
4
4
|
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
5
|
-
import { _ as WrittenScalar, n as DataTypeSupport } from "./written-value-
|
|
6
|
-
import "./authoring-
|
|
7
|
-
import "./codec-
|
|
8
|
-
import { C as PslTypesBlock, O as flatPslModels, S as PslTypeConstructorCall, _ as PslModelAttribute, a as PslAttributePositionalArgument, c as PslDefaultFunctionValue, f as PslDocumentAst, g as PslModel, i as PslAttributeNamedArgument, j as namespacePslExtensionBlocks, l as PslDefaultLiteralValue, m as PslFieldAttribute, n as PslAttribute, o as PslAttributeTarget, p as PslField, r as PslAttributeArgument, s as PslCompositeType, u as PslDefaultValue, v as PslNamedTypeDeclaration, y as PslNamespace } from "./psl-ast-
|
|
9
|
-
import { r as AssembledAuthoringContributions } from "./control-
|
|
10
|
-
import "./psl-ast-
|
|
5
|
+
import { _ as WrittenScalar, n as DataTypeSupport } from "./written-value-CtjJTurF-BaB5g2rJ.mjs";
|
|
6
|
+
import "./authoring-qquHLoSJ.mjs";
|
|
7
|
+
import "./codec-SzPZbOQ3.mjs";
|
|
8
|
+
import { C as PslTypesBlock, O as flatPslModels, S as PslTypeConstructorCall, _ as PslModelAttribute, a as PslAttributePositionalArgument, c as PslDefaultFunctionValue, f as PslDocumentAst, g as PslModel, i as PslAttributeNamedArgument, j as namespacePslExtensionBlocks, l as PslDefaultLiteralValue, m as PslFieldAttribute, n as PslAttribute, o as PslAttributeTarget, p as PslField, r as PslAttributeArgument, s as PslCompositeType, u as PslDefaultValue, v as PslNamedTypeDeclaration, y as PslNamespace } from "./psl-ast-534NZS20-Bpsiogtb.mjs";
|
|
9
|
+
import { r as AssembledAuthoringContributions } from "./control-DgRkVnjc.mjs";
|
|
10
|
+
import "./psl-ast-Bk6tiADv.mjs";
|
|
11
11
|
import { i as isPslIdentifier } from "./tokenizer-i8RaVWVa-7fRwlCPP.mjs";
|
|
12
|
-
import { B as PslDiagnosticCollector, D as ModelAttributeAst, V as PslSources, Y as SyntaxNode, at as diagnosticFromSpan, d as DiagnosticSource, m as FieldAttributeAst, n as AstNode, ot as diagnosticSource, p as ExpressionAst, pt as mapPslDiagnostics, r as AttributeArgAst, rt as createPslDiagnosticCollector, z as PslDiagnostic } from "./parse-CJtBvEYy-
|
|
13
|
-
import { $ as ModelSymbol, A as DescribeUnresolvedType, At as SymbolTableResult, B as FixedStrArgType, Bt as createBinder, C as ContributedTypeNamespace, Ct as ResolvedAttributeArg, D as CtxOf, Dt as Scope, E as CreateBinderInput, Et as ResolvedTypeConstructorCall, F as FieldAttributeCtx, Ft as UnrestrictedNumArgType, G as InferAttr, Gt as memberEntries, H as FuncCallSig, Ht as isNamespaceLike, I as FieldRefArgType, It as UnrestrictedStrArgType, J as JsonArgType, Jt as readResolvedAttributes, K as InspectableArgType, Kt as nodePslSpan, L as FieldSymbol, Lt as UnsupportedAttribute, M as EntityDeclaration, Mt as TypedFuncCall, N as EntityRefArgType, Nt as UnresolvedTypeReference, O as DataTypeValueArgType, Ot as ScopeResolution, P as EntitySelector, Pt as UnrestrictedIdentifierArgType, Q as ModelAttributeCtx, R as FixedIdentifierArgType, Rt as buildSymbolTable, S as ContributedTypeDescriptor, St as ResolvedAttribute, T as ContributedTypeSymbol, Tt as ResolvedNamedTypeBinding, U as FunctionSymbol, Ut as keywordPslSpan, V as FuncCallArgType, Vt as entityReference, W as IdentifierArgType, Wt as matchesSelector, X as ListArgType, Xt as typeReferenceNode, Y as JsonValueArgType, Yt as readResolvedConstructorCall, Z as MixinSymbol, _ as CompositeTypeSymbol, _t as RecordArgType, a as AttributeLevel, at as NumLiteralArgType, b as ContributedMember, bt as RequiredContextFor, c as AttributeSymbol, ct as OutOf, d as BinderResult, dt as ParameterSymbol, et as NamedOut, f as BlockAttributeCtx, ft as ParsedTaggedLiteral, g as BuildSymbolTableOptions, gt as PslSymbol, h as BoundSpec, ht as PositionalParam, i as AttributeCtx, it as NumLiteral, j as DescribeUnsupportedAttribute, jt as TaggedLiteralArgType, k as DeclarationFor, kt as SymbolTable, l as Binder, lt as PSL_UNRESOLVED_REFERENCE, m as BoolArgType, mt as PosOut, n as ArgType, nt as NamespaceSymbol, o as AttributeOut, ot as OneOfArgType, p as BlockSymbol, pt as ParsedTypedValue, q as IntArgType, qt as readResolvedAttribute, r as ArgTypeKind, rt as NullArgType, s as AttributeSpec, st as OptionalArgType, t as AnyArgType, tt as NamedTypeSymbol, u as BinderContext, ut as Param, v as ConstantSymbol, vt as ReferencedFieldRefArgType, w as ContributedTypeScope, wt as ResolvedEntityReference, x as ContributedNamespaceSymbol, xt as Resolution, y as ContextForRequirement, yt as RejectingArgType, z as FixedNumArgType, zt as contributedTypeOf } from "./binder-BfzoRtNz-
|
|
12
|
+
import { B as PslDiagnosticCollector, D as ModelAttributeAst, V as PslSources, Y as SyntaxNode, at as diagnosticFromSpan, d as DiagnosticSource, m as FieldAttributeAst, n as AstNode, ot as diagnosticSource, p as ExpressionAst, pt as mapPslDiagnostics, r as AttributeArgAst, rt as createPslDiagnosticCollector, z as PslDiagnostic } from "./parse-CJtBvEYy-Dbr0B5Ro.mjs";
|
|
13
|
+
import { $ as ModelSymbol, A as DescribeUnresolvedType, At as SymbolTableResult, B as FixedStrArgType, Bt as createBinder, C as ContributedTypeNamespace, Ct as ResolvedAttributeArg, D as CtxOf, Dt as Scope, E as CreateBinderInput, Et as ResolvedTypeConstructorCall, F as FieldAttributeCtx, Ft as UnrestrictedNumArgType, G as InferAttr, Gt as memberEntries, H as FuncCallSig, Ht as isNamespaceLike, I as FieldRefArgType, It as UnrestrictedStrArgType, J as JsonArgType, Jt as readResolvedAttributes, K as InspectableArgType, Kt as nodePslSpan, L as FieldSymbol, Lt as UnsupportedAttribute, M as EntityDeclaration, Mt as TypedFuncCall, N as EntityRefArgType, Nt as UnresolvedTypeReference, O as DataTypeValueArgType, Ot as ScopeResolution, P as EntitySelector, Pt as UnrestrictedIdentifierArgType, Q as ModelAttributeCtx, R as FixedIdentifierArgType, Rt as buildSymbolTable, S as ContributedTypeDescriptor, St as ResolvedAttribute, T as ContributedTypeSymbol, Tt as ResolvedNamedTypeBinding, U as FunctionSymbol, Ut as keywordPslSpan, V as FuncCallArgType, Vt as entityReference, W as IdentifierArgType, Wt as matchesSelector, X as ListArgType, Xt as typeReferenceNode, Y as JsonValueArgType, Yt as readResolvedConstructorCall, Z as MixinSymbol, _ as CompositeTypeSymbol, _t as RecordArgType, a as AttributeLevel, at as NumLiteralArgType, b as ContributedMember, bt as RequiredContextFor, c as AttributeSymbol, ct as OutOf, d as BinderResult, dt as ParameterSymbol, et as NamedOut, f as BlockAttributeCtx, ft as ParsedTaggedLiteral, g as BuildSymbolTableOptions, gt as PslSymbol, h as BoundSpec, ht as PositionalParam, i as AttributeCtx, it as NumLiteral, j as DescribeUnsupportedAttribute, jt as TaggedLiteralArgType, k as DeclarationFor, kt as SymbolTable, l as Binder, lt as PSL_UNRESOLVED_REFERENCE, m as BoolArgType, mt as PosOut, n as ArgType, nt as NamespaceSymbol, o as AttributeOut, ot as OneOfArgType, p as BlockSymbol, pt as ParsedTypedValue, q as IntArgType, qt as readResolvedAttribute, r as ArgTypeKind, rt as NullArgType, s as AttributeSpec, st as OptionalArgType, t as AnyArgType, tt as NamedTypeSymbol, u as BinderContext, ut as Param, v as ConstantSymbol, vt as ReferencedFieldRefArgType, w as ContributedTypeScope, wt as ResolvedEntityReference, x as ContributedNamespaceSymbol, xt as Resolution, y as ContextForRequirement, yt as RejectingArgType, z as FixedNumArgType, zt as contributedTypeOf } from "./binder-BfzoRtNz-DvtRMPwy.mjs";
|
|
14
14
|
//#region ../../../1-framework/2-authoring/psl-parser/dist/index.d.mts
|
|
15
15
|
//#region src/attribute-helpers.d.ts
|
|
16
16
|
declare function getPositionalArgument(attribute: PslAttribute, index?: number): string | undefined;
|
package/dist/psl-parser.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as blindCast } from "./casts-DpaahrlC-Bd5n2coI.mjs";
|
|
2
2
|
import { t as InternalError } from "./internal-error-ChGYPVpq-DhUD05u0.mjs";
|
|
3
3
|
import { a as or, i as okVoid, n as notOk, r as ok, t as and } from "./result-8OXF26MN.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { c as createDataTypeLookup } from "./data-type-DA9u3yOw-BbUAODG_.mjs";
|
|
5
5
|
import { C as isAuthoringPslBlockDescriptor, S as isAuthoringModelAttributeDescriptor, f as describeTaggedLiteralFailure } from "./temporal-presets-woCv6gic-DW1VcyKs.mjs";
|
|
6
6
|
import { r as UNBOUND_NAMESPACE_ID } from "./namespace-VUH2dgnS-By5y75h9.mjs";
|
|
7
|
-
import { S as tagForm, a as castTypedValue, c as describeRefusal, h as exactRewrite, n as admittedTags, o as describeAdmittedForms, s as describeExpected, t as admittedForms, x as readWrittenValue } from "./authoring-
|
|
7
|
+
import { S as tagForm, a as castTypedValue, c as describeRefusal, h as exactRewrite, n as admittedTags, o as describeAdmittedForms, s as describeExpected, t as admittedForms, x as readWrittenValue } from "./authoring-DmdLRtNn.mjs";
|
|
8
8
|
import { a as flatPslModels, c as namespacePslExtensionBlocks, n as UNBOUND_PSL_NAMESPACE_NAME } from "./psl-ast-CyvE6CR-.mjs";
|
|
9
9
|
import { l as printSyntax } from "./ast-helpers-CzydMPdh-Mi0SrZRa.mjs";
|
|
10
10
|
import { n as isPslIdentifier } from "./tokenizer-C-GTKKjR-B1vOzJy0.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as PslParserOptions } from "./config-types-
|
|
1
|
+
import { h as PslParserOptions } from "./config-types-BY2jSWuk.mjs";
|
|
2
2
|
//#region ../../../1-framework/2-authoring/psl-parser/dist/format.d.mts
|
|
3
3
|
//#region src/format/options.d.ts
|
|
4
4
|
interface FormatOptions {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as Contract } from "./contract-types-Mp9HNgyy-zkcDkGuS.mjs";
|
|
2
|
-
import { C as AuthoringPslBlockDescriptorNamespace, D as AuthoringTypeConstructorDescriptor, Q as instantiateAuthoringFieldPreset, U as PslSpan, n as AuthoringArgumentDescriptor, p as AuthoringFieldPresetDescriptor } from "./framework-authoring-
|
|
2
|
+
import { C as AuthoringPslBlockDescriptorNamespace, D as AuthoringTypeConstructorDescriptor, Q as instantiateAuthoringFieldPreset, U as PslSpan, n as AuthoringArgumentDescriptor, p as AuthoringFieldPresetDescriptor } from "./framework-authoring-BBXRxWBw-Dod4YmpD.mjs";
|
|
3
3
|
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
4
|
-
import "./authoring-
|
|
5
|
-
import "./psl-ast-
|
|
6
|
-
import { c as ContractSourceProvider, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic } from "./config-types-
|
|
7
|
-
import { B as PslDiagnosticCollector, V as PslSources, d as DiagnosticSource, f as DocumentAst, z as PslDiagnostic } from "./parse-CJtBvEYy-
|
|
8
|
-
import { Ct as ResolvedAttributeArg, Et as ResolvedTypeConstructorCall, L as FieldSymbol, kt as SymbolTable, l as Binder, p as BlockSymbol } from "./binder-BfzoRtNz-
|
|
4
|
+
import "./authoring-qquHLoSJ.mjs";
|
|
5
|
+
import "./psl-ast-Bk6tiADv.mjs";
|
|
6
|
+
import { c as ContractSourceProvider, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic } from "./config-types-BY2jSWuk.mjs";
|
|
7
|
+
import { B as PslDiagnosticCollector, V as PslSources, d as DiagnosticSource, f as DocumentAst, z as PslDiagnostic } from "./parse-CJtBvEYy-Dbr0B5Ro.mjs";
|
|
8
|
+
import { Ct as ResolvedAttributeArg, Et as ResolvedTypeConstructorCall, L as FieldSymbol, kt as SymbolTable, l as Binder, p as BlockSymbol } from "./binder-BfzoRtNz-DvtRMPwy.mjs";
|
|
9
9
|
//#region ../../../1-framework/2-authoring/psl-parser/dist/interpret.d.mts
|
|
10
10
|
//#region src/authoring-arguments.d.ts
|
|
11
11
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as TokenKind } from "./tokenizer-i8RaVWVa-7fRwlCPP.mjs";
|
|
2
|
-
import { $ as TypeAnnotationAst, A as NamespaceDeclarationAst, C as IdentifierAst, D as ModelAttributeAst, E as MixinInclusionAst, F as ParseDiagnostic, G as StringLiteralExprAst, H as QualifiedNameAst, I as ParseResult, J as SyntaxKind, K as StringLiteralQuote, L as PathExprAst, M as NumberLiteralExprAst, N as ObjectFieldAst, O as ModelDeclarationAst, P as ObjectLiteralExprAst, Q as TokenAtOffset, R as Position, S as HasDocComment, T as MixinDeclarationAst, U as Range, V as PslSources, W as SourceFile, X as SyntaxToken, Y as SyntaxNode, Z as TaggedLiteralExprAst, _ as GenericBlockDeclarationAst, a as AttributeAst, b as GreenNode, c as BracedBlock, ct as filterChildren, dt as greenNode, et as TypesBlockAst, f as DocumentAst, ft as greenToken, g as FunctionCallAst, h as FieldDeclarationAst, ht as printSyntax, i as AttributeArgListAst, it as createSyntaxTree, j as NamespaceMemberAst, k as NamedTypeDeclarationAst, l as CompositeTypeDeclarationAst, lt as findChildToken, m as FieldAttributeAst, mt as parse, n as AstNode, nt as castExpression, o as BlockMemberAst, p as ExpressionAst, q as SyntaxElement, r as AttributeArgAst, s as BooleanLiteralExprAst, st as dottedPathsIn, t as ArrayLiteralAst, tt as any, u as DeclarationAst, ut as findFirstChild, v as GenericBlockMemberAst, w as KeyValuePairAst, x as GreenToken, y as GreenElement } from "./parse-CJtBvEYy-
|
|
2
|
+
import { $ as TypeAnnotationAst, A as NamespaceDeclarationAst, C as IdentifierAst, D as ModelAttributeAst, E as MixinInclusionAst, F as ParseDiagnostic, G as StringLiteralExprAst, H as QualifiedNameAst, I as ParseResult, J as SyntaxKind, K as StringLiteralQuote, L as PathExprAst, M as NumberLiteralExprAst, N as ObjectFieldAst, O as ModelDeclarationAst, P as ObjectLiteralExprAst, Q as TokenAtOffset, R as Position, S as HasDocComment, T as MixinDeclarationAst, U as Range, V as PslSources, W as SourceFile, X as SyntaxToken, Y as SyntaxNode, Z as TaggedLiteralExprAst, _ as GenericBlockDeclarationAst, a as AttributeAst, b as GreenNode, c as BracedBlock, ct as filterChildren, dt as greenNode, et as TypesBlockAst, f as DocumentAst, ft as greenToken, g as FunctionCallAst, h as FieldDeclarationAst, ht as printSyntax, i as AttributeArgListAst, it as createSyntaxTree, j as NamespaceMemberAst, k as NamedTypeDeclarationAst, l as CompositeTypeDeclarationAst, lt as findChildToken, m as FieldAttributeAst, mt as parse, n as AstNode, nt as castExpression, o as BlockMemberAst, p as ExpressionAst, q as SyntaxElement, r as AttributeArgAst, s as BooleanLiteralExprAst, st as dottedPathsIn, t as ArrayLiteralAst, tt as any, u as DeclarationAst, ut as findFirstChild, v as GenericBlockMemberAst, w as KeyValuePairAst, x as GreenToken, y as GreenElement } from "./parse-CJtBvEYy-Dbr0B5Ro.mjs";
|
|
3
3
|
//#region ../../../1-framework/2-authoring/psl-parser/dist/syntax.d.mts
|
|
4
4
|
//#region src/syntax/green-builder.d.ts
|
|
5
5
|
declare class GreenNodeBuilder {
|
package/dist/psl-printer.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as AuthoringPslBlockDescriptorNamespace } from "./framework-authoring-
|
|
2
|
-
import "./authoring-
|
|
3
|
-
import { f as PslDocumentAst } from "./psl-ast-
|
|
4
|
-
import "./psl-ast-
|
|
1
|
+
import { C as AuthoringPslBlockDescriptorNamespace } from "./framework-authoring-BBXRxWBw-Dod4YmpD.mjs";
|
|
2
|
+
import "./authoring-qquHLoSJ.mjs";
|
|
3
|
+
import { f as PslDocumentAst } from "./psl-ast-534NZS20-Bpsiogtb.mjs";
|
|
4
|
+
import "./psl-ast-Bk6tiADv.mjs";
|
|
5
5
|
//#region ../../../1-framework/2-authoring/psl-printer/dist/index.d.mts
|
|
6
6
|
//#region src/print-psl.d.ts
|
|
7
7
|
type PslBlockDescriptorsNamespace = AuthoringPslBlockDescriptorNamespace;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { W as PlanMeta } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
|
|
2
2
|
import { n as ContractExecutionSection } from "./contract-types-Mp9HNgyy-zkcDkGuS.mjs";
|
|
3
|
-
import { a as CodecCallContext } from "./codec-types-
|
|
3
|
+
import { a as CodecCallContext } from "./codec-types-C_Ep6tv5-C5j2AzFu.mjs";
|
|
4
4
|
import { t as RuntimeErrorEnvelope } from "./runtime-error-CO4MA3Px-YW5SCUcH.mjs";
|
|
5
5
|
//#region ../../../1-framework/1-core/framework-components/dist/runtime.d.mts
|
|
6
6
|
//#region src/annotations.d.ts
|
|
@@ -894,4 +894,4 @@ interface LaneMetaBuilder<K extends OperationKind> extends MetaBuilder<K> {
|
|
|
894
894
|
declare function createMetaBuilder<K extends OperationKind>(kind: K, terminalName: string): LaneMetaBuilder<K>;
|
|
895
895
|
//#endregion
|
|
896
896
|
export { RuntimeStatementStats as $, GeneratorStability as A, QueryPlan as B, ClientActivityRegistry as C, defineAnnotation as Ct, DefineAnnotationOptions as D, startClientActivity as Dt, CrossFamilyMiddleware as E, runtimeAborted as Et, MutationDefaultsOp as F, RuntimeAbortedPhase as G, RelationKeys as H, MutationDefaultsOptions as I, RuntimeExecuteOptions as J, RuntimeCore as K, OperationKind as L, MetaBuilder as M, MutationDefaultGeneratorContributor as N, ExecuteInterceptResult as O, startTransactionActivity as Ot, MutationDefaults as P, RuntimeMutationDefaultGenerator as Q, ParamRefMutator as R, ClientActivityOptions as S, createStateStore as St, ClientActivityRun as T, raceAgainstAbort as Tt, RelationNamesOf as U, RUNTIME_ABORTED as V, ResultType as W, RuntimeLog as X, RuntimeExecutor as Y, RuntimeMiddleware as Z, AsyncIterableResult as _, checkAborted as _t, ActivityContext as a, StatementActivityRun as at, ClientActivityEnded as b, createContextBeneath as bt, ActivityFinalizedResult as c, TransactionActivity as ct, ActivityParent as d, TransactionEnded as dt, Scalars as et, ActivityStateStore as f, TransactionSettlement as ft, AppliedMutationDefault as g, assertMutationDefaultGeneratorsAvailable as gt, AnnotationValue as h, assertAnnotationsApplicable as ht, ActivityChildSlot as i, StatementActivity as it, LaneMetaBuilder as j, ExecutionPlan as k, streamStatement as kt, ActivityInterceptResult as l, TransactionActivityOptions as lt, AnnotationSource as m, applyMutationDefaults as mt, ActivityBase as n, ShapeSpec as nt, ActivityContextFields as o, StatementEnded as ot, AnnotationHandle as p, ValidAnnotations as pt, RuntimeCoreOptions as q, ActivityChild as r, StartActivity as rt, ActivityEndedResult as s, StatementOptions as st, Activity as t, Shape as tt, ActivityObserver as u, TransactionActivityRun as ut, ClientActivity as v, checkMiddlewareCompatibility as vt, ClientActivityResult as w, executeStatement as wt, ClientActivityKind as x, createMetaBuilder as xt, ClientActivityEnd as y, collectMutationDefaultGenerators as yt, QueryInterceptResult as z };
|
|
897
|
-
//# sourceMappingURL=runtime-
|
|
897
|
+
//# sourceMappingURL=runtime-CXnENfVE.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-
|
|
1
|
+
{"version":3,"file":"runtime-CXnENfVE.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/runtime.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;KAqBK;;;;;;;;;;;;UAYK,gBAAgB,SAAS,cAAc;WACtC;WACA;WACA,OAAO;WACP,cAAc,YAAY;;;;;;;;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
import { g as ContractModelBase, n as ApplicationDomain, w as ContractValueObject } 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
|
+
//#region src/field-value-types.d.ts
|
|
38
|
+
type ValueTypeSide = 'output' | 'input';
|
|
39
|
+
type Lookup<T, Key> = Key extends keyof T ? T[Key] : never;
|
|
40
|
+
type NonEmptyTypeParams<TypeParams> = TypeParams extends Record<string, unknown> ? keyof TypeParams extends never ? undefined : TypeParams : undefined;
|
|
41
|
+
type PlainCodecType<CodecTypes, CodecId, Side extends ValueTypeSide> = CodecId extends keyof CodecTypes ? CodecTypes[CodecId] extends { readonly [S in Side]: infer Plain; } ? Plain : unknown : unknown;
|
|
42
|
+
type CodecType<CodecTypes, CodecId, TypeParams, ParameterizedOutputs extends ParameterizedOutputTypesFunction, Side extends ValueTypeSide> = Side extends 'output' ? NonEmptyTypeParams<TypeParams> extends (infer Params extends Record<string, unknown>) ? ParameterizedOutputType<ParameterizedOutputs, CodecId, Params, PlainCodecType<CodecTypes, CodecId, Side>> : PlainCodecType<CodecTypes, CodecId, Side> : PlainCodecType<CodecTypes, CodecId, Side>;
|
|
43
|
+
type BaseType<Override, Base, Side extends ValueTypeSide> = [Override] extends [never] ? Base : Override extends { readonly [S in Side]: infer T; } ? T : Base;
|
|
44
|
+
/**
|
|
45
|
+
* The type of the value one storage entry holds, after its override, its list or dictionary wrapping and its nullability. `Item` is the entry, with optional `nullable`, `many` and `dict`, holding values of codec `CodecId`. On each side the value is typed by `Override` for that side when it gives one, else, on the output side, by the type a type function in `ParameterizedOutputs` gives a value with these type parameters, else by the codec's type in `CodecTypes`, or `unknown` for a codec it lacks. A family's storage type maps apply it to each storage entry.
|
|
46
|
+
*/
|
|
47
|
+
type StoredValueType<Item, CodecId, TypeParams, Override, CodecTypes, ParameterizedOutputs extends ParameterizedOutputTypesFunction, Side extends ValueTypeSide> = Item extends {
|
|
48
|
+
readonly many?: infer Many;
|
|
49
|
+
readonly dict?: infer Dictionary;
|
|
50
|
+
} ? ScalarValueType<CodecId, TypeParams, Override, NullableFlag<Item>, Many, Dictionary, CodecTypes, ParameterizedOutputs, Side> : never;
|
|
51
|
+
type NullableFlag<Entry> = Entry extends {
|
|
52
|
+
readonly nullable: true;
|
|
53
|
+
} ? true : false;
|
|
54
|
+
type ClosedWhenEmpty<T> = [keyof T] extends [never] ? Record<string, never> : T;
|
|
55
|
+
type InputClosedWhenEmpty<Side extends ValueTypeSide, T> = Side extends 'input' ? ClosedWhenEmpty<T> : T;
|
|
56
|
+
type NamespaceParts<ValueObjects, NamespaceOverrides> = {
|
|
57
|
+
readonly valueObjects: ValueObjects;
|
|
58
|
+
readonly overrides: NamespaceOverrides;
|
|
59
|
+
};
|
|
60
|
+
type ValueObjectType<Name, Parts, CodecTypes, ParameterizedOutputs extends ParameterizedOutputTypesFunction, Side extends ValueTypeSide> = ClosedWhenEmpty<{ readonly [F in keyof Lookup<Lookup<Lookup<Parts, 'valueObjects'>, Name>, 'fields'>]: FieldValueType<Lookup<Lookup<Lookup<Parts, 'valueObjects'>, Name>, 'fields'>[F], Lookup<Lookup<Lookup<Lookup<Parts, 'overrides'>, 'valueObjects'>, Name>, F>, Parts, CodecTypes, ParameterizedOutputs, Side>; }>;
|
|
61
|
+
type ElementType<FieldType, Parts, CodecTypes, ParameterizedOutputs extends ParameterizedOutputTypesFunction, Side extends ValueTypeSide> = FieldType extends {
|
|
62
|
+
readonly kind: 'valueObject';
|
|
63
|
+
readonly name: infer Name;
|
|
64
|
+
} ? ValueObjectType<Name, Parts, CodecTypes, ParameterizedOutputs, Side> : FieldType extends {
|
|
65
|
+
readonly kind: 'union';
|
|
66
|
+
readonly members: infer Members extends readonly unknown[];
|
|
67
|
+
} ? UnionMemberType<Members[number], Parts, CodecTypes, ParameterizedOutputs, Side> : unknown;
|
|
68
|
+
type UnionMemberType<Member, Parts, CodecTypes, ParameterizedOutputs extends ParameterizedOutputTypesFunction, Side extends ValueTypeSide> = Member extends {
|
|
69
|
+
readonly kind: 'scalar';
|
|
70
|
+
readonly codecId: infer CodecId;
|
|
71
|
+
} ? PlainCodecType<CodecTypes, CodecId, Side> : ElementType<Member, Parts, CodecTypes, ParameterizedOutputs, Side>;
|
|
72
|
+
type Listed<Base, Many> = [Many] extends [{
|
|
73
|
+
readonly elementNullable: infer ElementNullable;
|
|
74
|
+
}] ? ReadonlyArray<Base | (ElementNullable extends true ? null : never)> : Base;
|
|
75
|
+
type WithModifiers<Base, Nullable, Many, Dictionary> = ([Dictionary] extends [true] ? Readonly<Record<string, Listed<Base, Many>>> : Listed<Base, Many>) | ([Nullable] extends [true] ? null : never) extends (infer Value) ? { readonly [K in 'value']: Value; }['value'] : never;
|
|
76
|
+
type ScalarValueType<CodecId, TypeParams, Override, Nullable, Many, Dictionary, CodecTypes, ParameterizedOutputs extends ParameterizedOutputTypesFunction, Side extends ValueTypeSide> = WithModifiers<BaseType<Override, CodecType<CodecTypes, CodecId, TypeParams, ParameterizedOutputs, Side>, Side>, Nullable, Many, Dictionary>;
|
|
77
|
+
type FieldValueType<Field, Override, Parts, CodecTypes, ParameterizedOutputs extends ParameterizedOutputTypesFunction, Side extends ValueTypeSide> = Field extends {
|
|
78
|
+
readonly type: {
|
|
79
|
+
readonly kind: 'scalar';
|
|
80
|
+
readonly codecId: infer CodecId;
|
|
81
|
+
readonly typeParams?: infer TypeParams;
|
|
82
|
+
};
|
|
83
|
+
readonly many?: infer Many;
|
|
84
|
+
readonly dict?: infer Dictionary;
|
|
85
|
+
} ? ScalarValueType<CodecId, TypeParams, Override, NullableFlag<Field>, Many, Dictionary, CodecTypes, ParameterizedOutputs, Side> : Field extends {
|
|
86
|
+
readonly type: {
|
|
87
|
+
readonly kind: 'valueObject';
|
|
88
|
+
readonly name: infer Name;
|
|
89
|
+
};
|
|
90
|
+
readonly many?: infer Many;
|
|
91
|
+
readonly dict?: infer Dictionary;
|
|
92
|
+
} ? WithModifiers<BaseType<Override, ValueObjectType<Name, Parts, CodecTypes, ParameterizedOutputs, Side>, Side>, NullableFlag<Field>, Many, Dictionary> : Field extends {
|
|
93
|
+
readonly type: infer FieldType;
|
|
94
|
+
readonly many?: infer Many;
|
|
95
|
+
readonly dict?: infer Dictionary;
|
|
96
|
+
} ? WithModifiers<BaseType<Override, ElementType<FieldType, Parts, CodecTypes, ParameterizedOutputs, Side>, Side>, NullableFlag<Field>, Many, Dictionary> : never;
|
|
97
|
+
type NamespacePartsOf<DomainNamespaces, Ns, Overrides> = NamespaceParts<Lookup<Lookup<DomainNamespaces, Ns>, 'valueObjects'>, Lookup<Overrides, Ns>>;
|
|
98
|
+
/**
|
|
99
|
+
* `FieldOutputTypes` (`Side` `'output'`) or `FieldInputTypes` (`'input'`) of a contract whose domain namespaces are `DomainNamespaces`, computed from the contract's literal shape. Both an emitted `contract.d.ts` and a contract written with `defineContract` type their fields through it.
|
|
100
|
+
*
|
|
101
|
+
* Each value is typed by, in order:
|
|
102
|
+
*
|
|
103
|
+
* 1. its override for that side, `{ output?, input? }`, from `Overrides` at `[namespace]['models'][model][field]` for a model field, or at `[namespace]['valueObjects'][valueObject][field]` for a value object field. An override is the type of a field that the contract's shape and the codec types cannot give: the members of the value set it holds, the type its codec renders as text, or the type a family's storage entry gives it;
|
|
104
|
+
* 2. for a scalar field, on the output side, the type a pack's type function in `ParameterizedOutputs` gives it for its type parameters (`ParameterizedOutputType`), else its codec's `output` or `input` type, or `unknown` for a codec `CodecTypes` lacks;
|
|
105
|
+
* 3. for a value object field, an object of the value object's field types from the same namespace's `valueObjects`, computed by these rules;
|
|
106
|
+
* 4. for a union field, the union of its members' types, each a codec's plain type or a value object's type;
|
|
107
|
+
*
|
|
108
|
+
* then wrapped in `ReadonlyArray` for a list and in `Readonly<Record<string, …>>` for a dictionary, with `null` for a nullable element or value. A model without fields has `{}` output types and `Record<string, never>` input types; a value object without fields has `Record<string, never>` on both sides.
|
|
109
|
+
*/
|
|
110
|
+
type FieldTypesFromDomain<DomainNamespaces, CodecTypes, ParameterizedOutputs extends ParameterizedOutputTypesFunction, Overrides, Side extends ValueTypeSide> = { readonly [Ns in keyof DomainNamespaces]: NamespaceFieldTypes<Lookup<DomainNamespaces[Ns], 'models'>, NamespacePartsOf<DomainNamespaces, Ns, Overrides>, CodecTypes, ParameterizedOutputs, Side>; };
|
|
111
|
+
type NamespaceFieldTypes<Models, Parts, CodecTypes, ParameterizedOutputs extends ParameterizedOutputTypesFunction, Side extends ValueTypeSide> = { readonly [M in keyof Models]: Lookup<Models[M], 'fields'> extends (infer Fields) ? [Fields] extends [never] ? never : InputClosedWhenEmpty<Side, { readonly [F in keyof Fields]: FieldValueType<Fields[F], Lookup<Lookup<Lookup<Lookup<Parts, 'overrides'>, 'models'>, M>, F>, Parts, CodecTypes, ParameterizedOutputs, Side>; }> : never; };
|
|
112
|
+
/**
|
|
113
|
+
* The output (`Side` `'output'`) or input (`'input'`) type of each value object of a contract whose domain namespaces are `DomainNamespaces`, keyed by namespace and value object name, by the rules of {@link FieldTypesFromDomain}.
|
|
114
|
+
*/
|
|
115
|
+
type ValueObjectTypesFromDomain<DomainNamespaces, CodecTypes, ParameterizedOutputs extends ParameterizedOutputTypesFunction, Overrides, Side extends ValueTypeSide> = { readonly [Ns in keyof DomainNamespaces]: { readonly [V in keyof Lookup<DomainNamespaces[Ns], 'valueObjects'>]: ValueObjectType<V, NamespacePartsOf<DomainNamespaces, Ns, Overrides>, CodecTypes, ParameterizedOutputs, Side>; }; };
|
|
116
|
+
//#endregion
|
|
117
|
+
export { ParameterizedOutputTypesFunction as a, ValueTypeSide as c, ParameterizedOutputType as i, domainModelsAtDefaultNamespace as l, ContractExecutionSectionSchema as n, StoredValueType as o, FieldTypesFromDomain as r, ValueObjectTypesFromDomain as s, ApplyParameterizedOutputTypes as t, domainValueObjectsAtDefaultNamespace as u };
|
|
118
|
+
//# sourceMappingURL=types-C0eTDwgl.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-C0eTDwgl.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;;;KAG1Q;KACA,OAAO,GAAG,OAAO,kBAAkB,IAAI,EAAE;KACzC,mBAAmB,cAAc,mBAAmB,gCAAgC,uCAAuC;KAC3H,eAAe,YAAY,SAAS,aAAa,iBAAiB,sBAAsB,aAAa,WAAW,6BAA6B,KAAK,aAAa,WAAW;KAC1K,UAAU,YAAY,SAAS,YAAY,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,kBAAkB,YAAY,6BAA6B,kCAAkC,WAAW,aAAa,6BAA6B,YAAY,+BAA+B,WAAW,OAAO,iBAAiB,uBAAuB,gBAAgB,GAAG,iBAAiB,kBAAkB,IAAI,YAAY,YAAY,sBAAsB"}
|
package/dist/{types-import-spec-BlKcW9tz-BxhTG7Oc.d.mts → types-import-spec-D8GqKFw7-B3die2hX.d.mts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { B as JsonValue } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
|
|
2
|
-
import { g as CodecTrait, m as CodecRef } from "./codec-types-
|
|
3
|
-
//#region ../../../1-framework/1-core/framework-components/dist/types-import-spec-
|
|
2
|
+
import { g as CodecTrait, m as CodecRef } from "./codec-types-C_Ep6tv5-C5j2AzFu.mjs";
|
|
3
|
+
//#region ../../../1-framework/1-core/framework-components/dist/types-import-spec-D8GqKFw7.d.mts
|
|
4
4
|
//#region src/shared/aggregate-descriptor.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* How a descriptor matches the value an aggregate consumes.
|
|
@@ -110,4 +110,4 @@ interface TypesImportSpec {
|
|
|
110
110
|
}
|
|
111
111
|
//#endregion
|
|
112
112
|
export { AnyInputAggregateDescriptor as a, SelfAggregateOutput as c, aggregateDescriptorKey as d, isAggregateDescriptor as f, AggregateResultNullability as i, TypesImportSpec as l, isNoInputAggregateDescriptor as m, AggregateInputMatch as n, NamedAggregateOutput as o, isAnyInputAggregateDescriptor as p, AggregateOutputCodec as r, NoInputAggregateDescriptor as s, AggregateDescriptor as t, ValueInputAggregateDescriptor as u };
|
|
113
|
-
//# sourceMappingURL=types-import-spec-
|
|
113
|
+
//# sourceMappingURL=types-import-spec-D8GqKFw7-B3die2hX.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-import-spec-
|
|
1
|
+
{"version":3,"file":"types-import-spec-D8GqKFw7-B3die2hX.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/types-import-spec-D8GqKFw7.d.mts"],"mappings":";;;;;;;;;;;;;;KAaK;WACM;;WAEA;WACA;;WAEA;WACA,OAAO;;WAEP;;;;;;;UAOD;WACC;WACA;WACA,cAAc,OAAO,yBAAyB;;;UAG/C;WACC;;;KAGN,uBAAuB,sBAAsB;;;;;;KAM7C;WACM;;WAEA;WACA;;KAEN,0BAA0B;;WAEpB;;;KAGN,6BAA6B;WACvB;aACE;;WAEF,QAAQ;;;KAGd,8BAA8B;WACxB;aACE;;WAEF,QAAQ;;;KAGd,gCAAgC;WAC1B;aACE;aACA;;aAEA;aACA,OAAO;;WAET,QAAQ;;;;;;;KAOd,sBAAsB,6BAA6B,8BAA8B;;;;iBAIrE,uBAAuB,YAAY;;iBAEnC,6BAA6B,YAAY,sBAAsB,cAAc;;iBAE7E,8BAA8B,YAAY,sBAAsB,cAAc;;;;iBAI9E,sBAAsB,iBAAiB,SAAS;;;;;;;UAOvD;WACC;WACA;WACA"}
|
package/dist/{written-value-aEELSm_V-BtFVjTrj.d.mts → written-value-CtjJTurF-BaB5g2rJ.d.mts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as AuthoringTemplateValue, N as DataTypeAuthoringEntry, T as AuthoringStorageTypeTemplate, W as ScalarTypeConstructorOutput, f as AuthoringFieldNamespace, p as AuthoringFieldPresetDescriptor } from "./framework-authoring-
|
|
1
|
+
import { T as DataTypeValue, b as DataTypeParams, v as DataTypeId, y as DataTypeLookup } from "./codec-types-C_Ep6tv5-C5j2AzFu.mjs";
|
|
2
|
+
import { E as AuthoringTemplateValue, N as DataTypeAuthoringEntry, T as AuthoringStorageTypeTemplate, W as ScalarTypeConstructorOutput, f as AuthoringFieldNamespace, p as AuthoringFieldPresetDescriptor } from "./framework-authoring-BBXRxWBw-Dod4YmpD.mjs";
|
|
3
3
|
import { u as MutationDefaultGeneratorDescriptor } from "./mutation-default-types-DMtyr_6u-wZRBOsHl.mjs";
|
|
4
4
|
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
5
|
-
//#region ../../../1-framework/1-core/framework-components/dist/written-value-
|
|
5
|
+
//#region ../../../1-framework/1-core/framework-components/dist/written-value-CtjJTurF.d.mts
|
|
6
6
|
//#region src/shared/field-preset-print-form.d.ts
|
|
7
7
|
/** The option argument that switches a preset's phase on, its position in the preset's arguments, and the value of it that selects each generator. */
|
|
8
8
|
interface FieldPresetPhasePrintForm {
|
|
@@ -344,4 +344,4 @@ declare function admittedForms(support: DataTypeSupport, receivingTypes: readonl
|
|
|
344
344
|
declare function describeAdmittedForms(support: DataTypeSupport, dataType: DataTypeId): string;
|
|
345
345
|
//#endregion
|
|
346
346
|
export { entryForTag as A, temporalAuthoringPresets as B, castTypedValue as C, describeRefusedValueType as D, describeRefusal as E, printedTaggedLiteralReadsBack as F, tsTaggedTemplateSource as G, temporalPhaseTemplate as H, readWrittenValue as I, resolvePslBacktickEscapes as L, fieldPresetPrintForm as M, knownTags as N, describeTaggedLiteralFailure as O, printTaggedLiteral as P, resolveTemplateTagEscapes as R, canonicalizeTaggedLiteralBody as S, describeExpected as T, temporalPhaseTemplateWithParams as U, temporalCodecPreset as V, timestampNowControlDescriptor as W, WrittenScalar as _, FieldPresetsByCodecAndGenerator as a, admittedTags as b, ReadRefusal as c, TAGGED_LITERAL_MAX_BYTES as d, TEMPORAL_ON_CREATE_ARG as f, WrittenForm as g, TaggedLiteralCanonicalization as h, FieldPresetPrintForm as i, exactRewrite as j, entryForPlain as k, RefusalDescription as l, TIMESTAMP_NOW_GENERATOR_ID as m, DataTypeSupport as n, PresetStorageTemplate as o, TEMPORAL_ON_UPDATE_ARG as p, FieldPresetPhasePrintForm as r, PrintableFieldPreset as s, CastRefusal as t, RefusalGuidance as u, WrittenValue as v, describeAdmittedForms as w, assembleFieldPresetsByCodecAndGenerator as x, admittedForms as y, tagForm as z };
|
|
347
|
-
//# sourceMappingURL=written-value-
|
|
347
|
+
//# sourceMappingURL=written-value-CtjJTurF-BaB5g2rJ.d.mts.map
|
package/dist/{written-value-aEELSm_V-BtFVjTrj.d.mts.map → written-value-CtjJTurF-BaB5g2rJ.d.mts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"written-value-
|
|
1
|
+
{"version":3,"file":"written-value-CtjJTurF-BaB5g2rJ.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/written-value-CtjJTurF.d.mts"],"mappings":";;;;;;;UAMU;WACC;WACA;WACA,mBAAmB;;;;;UAKpB;WACC;WACA;WACA,WAAW;WACX,WAAW;;UAEZ;WACC;WACA,YAAY;WACZ,WAAW;;;KAGjB,kCAAkC,oBAAoB,oBAAoB;;;;iBAI9D,qBAAqB,YAAY,iCAAiC;;;;iBAIlE,wCAAwC,OAAO,0BAA0B;;;;;;;;KAQrF;WACM;WACA;;WAEA;WACA;WACA;;cAEG;;iBAEG,6BAA6B;;iBAE7B,0BAA0B;;iBAE1B,0BAA0B;;;;;;;;;iBAS1B,8BAA8B,mBAAmB;;;;;;;;iBAQjD,mBAAmB,aAAa;;iBAEhC,8BAA8B;;;;;;;;iBAQ9B,uBAAuB,aAAa;WAC1C;WACA;;;;;;;KAON,wBAAwB,8BAA8B;;;;cAI7C;;;;;;iBAMG,iCAAiC;;;;iBAIjC,+BAA+B,gBAAgB,6BAA6B,oCAAoC,4BAA4B,OAAO;WACzJ,cAAc;;WAEd;aACE;aACA,QAAQ,KAAK;eACX,cAAc;;eAEd;iBACE;mBACE;mBACA,qBAAqB;;;;;WAK7B;aACE;aACA,QAAQ,KAAK;eACX,cAAc;;eAEd;iBACE;mBACE;mBACA,qBAAqB;;iBAEvB;mBACE;mBACA,qBAAqB;;;;;;cAM1B;WACH;WACA;WACA;WACA;;cAEG;WACH;WACA;WACA;WACA;;;;;iBAKM,4BAA4B,4BAA4B,4BAA4B,OAAO,OAAO,aAAa;WACrH;WACA,OAAO;WACP;aACE;eACE;eACA,IAAI;;;;;;;iBAOF,sCAAsC,4BAA4B,k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,eAAe,YAAY,iBAAiB,gBAAgB,OAAO,gBAAgB,OAAO,eAAe;;iBAElJ,aAAa,SAAS,iBAAiB,UAAU;;iBAEjD,QAAQ,cAAc;;iBAEtB,cAAc,SAAS,iBAAiB,yBAAyB,wBAAwB;;iBAEzF,sBAAsB,SAAS,iBAAiB,UAAU"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-framework",
|
|
3
|
-
"version": "8.0.0-rc.18-dev.
|
|
3
|
+
"version": "8.0.0-rc.18-dev.22",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -16,20 +16,20 @@
|
|
|
16
16
|
"uniku": "^0.5.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@internal/config": "8.0.0-rc.18-dev.
|
|
20
|
-
"@internal/contract": "8.0.0-rc.18-dev.
|
|
21
|
-
"@internal/contract-authoring": "8.0.0-rc.18-dev.
|
|
22
|
-
"@internal/errors": "8.0.0-rc.18-dev.
|
|
23
|
-
"@internal/framework-components": "8.0.0-rc.18-dev.
|
|
24
|
-
"@internal/ids": "8.0.0-rc.18-dev.
|
|
25
|
-
"@internal/operations": "8.0.0-rc.18-dev.
|
|
26
|
-
"@internal/psl-parser": "8.0.0-rc.18-dev.
|
|
27
|
-
"@internal/psl-printer": "8.0.0-rc.18-dev.
|
|
28
|
-
"@internal/ts-render": "8.0.0-rc.18-dev.
|
|
29
|
-
"@repo/tsconfig": "8.0.0-rc.18-dev.
|
|
30
|
-
"@internal/publish-surface": "8.0.0-rc.18-dev.
|
|
31
|
-
"@repo/tsdown": "8.0.0-rc.18-dev.
|
|
32
|
-
"@internal/utils": "8.0.0-rc.18-dev.
|
|
19
|
+
"@internal/config": "8.0.0-rc.18-dev.22",
|
|
20
|
+
"@internal/contract": "8.0.0-rc.18-dev.22",
|
|
21
|
+
"@internal/contract-authoring": "8.0.0-rc.18-dev.22",
|
|
22
|
+
"@internal/errors": "8.0.0-rc.18-dev.22",
|
|
23
|
+
"@internal/framework-components": "8.0.0-rc.18-dev.22",
|
|
24
|
+
"@internal/ids": "8.0.0-rc.18-dev.22",
|
|
25
|
+
"@internal/operations": "8.0.0-rc.18-dev.22",
|
|
26
|
+
"@internal/psl-parser": "8.0.0-rc.18-dev.22",
|
|
27
|
+
"@internal/psl-printer": "8.0.0-rc.18-dev.22",
|
|
28
|
+
"@internal/ts-render": "8.0.0-rc.18-dev.22",
|
|
29
|
+
"@repo/tsconfig": "8.0.0-rc.18-dev.22",
|
|
30
|
+
"@internal/publish-surface": "8.0.0-rc.18-dev.22",
|
|
31
|
+
"@repo/tsdown": "8.0.0-rc.18-dev.22",
|
|
32
|
+
"@internal/utils": "8.0.0-rc.18-dev.22",
|
|
33
33
|
"tsdown": "0.22.14",
|
|
34
34
|
"typescript": "5.9.3",
|
|
35
35
|
"vitest": "5.0.0-rc.2"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codec-types-BNVa23xn-DLZmMFiC.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/codec-types-BNVa23xn.d.mts"],"mappings":";;;;;;;;;;KASK;WACM;;;;;;;KAON,QAAQ,OAAO,cAAc;;;;;;UAMxB;WACC,aAAa;WACb,OAAO,mBAAmB,gBAAgB;;;KAGhD,iBAAiB,SAAS;cACjB,oBAAoB,UAAU;;WAEjC,MAAM;WACN,QAAQ;WACR,OAAO;EAChB,YAAY,MAAM,YAAY,QAAQ,gBAAgB,OAAO;SACtD,cAAc;;;;;KAKlB,cAAc,UAAU,YAAY,aAAa,oBAAoB;;KAErE,kBAAkB,MAAM,WAAW,QAAQ,mBAAmB;;KAE9D,oBAAoB,MAAM,WAAW,QAAQ,mBAAmB;UAC3D;WACC,IAAI;;WAEJ,SAAS;;WAET,OAAO,SAAS,OAAO,YAAY;WACnC,WAAW;;EAEpB,aAAa,MAAM,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