@prisma/orm-framework 8.0.0-rc.18-dev.37 → 8.0.0-rc.18-dev.38
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-BJgarhJI.d.mts → authoring-BKO7sRLw.d.mts} +3 -3
- package/dist/{authoring-BJgarhJI.d.mts.map → authoring-BKO7sRLw.d.mts.map} +1 -1
- package/dist/{binder-Cm0N-oPu-WASgR3Jw.d.mts → binder-WS9-1Mu9-MJi8x3Gm.d.mts} +12 -10
- package/dist/{binder-Cm0N-oPu-WASgR3Jw.d.mts.map → binder-WS9-1Mu9-MJi8x3Gm.d.mts.map} +1 -1
- package/dist/{components-DJ5O7uwz.mjs → components-C83PWIWw.mjs} +10 -2
- package/dist/components-C83PWIWw.mjs.map +1 -0
- package/dist/{components-BbJVTEds.d.mts → components-D-8GZwNo.d.mts} +5 -3
- package/dist/{components-BbJVTEds.d.mts.map → components-D-8GZwNo.d.mts.map} +1 -1
- package/dist/components.d.mts +9 -9
- package/dist/components.mjs +2 -2
- package/dist/components__authoring.d.mts +3 -3
- package/dist/components__components.d.mts +2 -2
- package/dist/components__components.mjs +1 -1
- package/dist/components__control.d.mts +2 -2
- package/dist/components__control.mjs +1 -1
- package/dist/components__execution.d.mts +1 -1
- package/dist/components__psl-ast.d.mts +3 -3
- package/dist/{config-types-DWa3fsKB.d.mts → config-types-CfdMN7t-.d.mts} +6 -6
- package/dist/{config-types-DWa3fsKB.d.mts.map → config-types-CfdMN7t-.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 +2 -2
- package/dist/contract-authoring.mjs +1 -1
- package/dist/{control-BKuRvAVY.d.mts → control-7DsPHRLi.d.mts} +7 -5
- package/dist/{control-BKuRvAVY.d.mts.map → control-7DsPHRLi.d.mts.map} +1 -1
- package/dist/{control-DrorRbwa.mjs → control-AlBtrJUn.mjs} +2 -1
- package/dist/control-AlBtrJUn.mjs.map +1 -0
- package/dist/{control-B5ezUWD2-DSW4M09S.d.mts → control-B5ezUWD2-BgUEggvd.d.mts} +2 -2
- package/dist/{control-B5ezUWD2-DSW4M09S.d.mts.map → control-B5ezUWD2-BgUEggvd.d.mts.map} +1 -1
- package/dist/control-CIEbQ0bK.d.mts +1 -0
- package/dist/{control-KsXr4fYD-BWq94TJe.mjs → control-KsXr4fYD-DJm_48Db.mjs} +2 -2
- package/dist/{control-KsXr4fYD-BWq94TJe.mjs.map → control-KsXr4fYD-DJm_48Db.mjs.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-Dnl9Zc7s.d.mts → execution-BkcXd7Tn.d.mts} +3 -3
- package/dist/{execution-Dnl9Zc7s.d.mts.map → execution-BkcXd7Tn.d.mts.map} +1 -1
- package/dist/{execution-oZAqgZPd.d.mts → execution-DXQQRCfR.d.mts} +2 -2
- package/dist/{execution-oZAqgZPd.d.mts.map → execution-DXQQRCfR.d.mts.map} +1 -1
- package/dist/{execution-YDOVHN67.mjs → execution-KLhn9sSn.mjs} +2 -2
- package/dist/{execution-YDOVHN67.mjs.map → execution-KLhn9sSn.mjs.map} +1 -1
- package/dist/{framework-authoring-D3AsJskV-BALZR-J9.d.mts → framework-authoring-hZgq-M2K-Daz3kgWL.d.mts} +6 -2
- package/dist/{framework-authoring-D3AsJskV-BALZR-J9.d.mts.map → framework-authoring-hZgq-M2K-Daz3kgWL.d.mts.map} +1 -1
- package/dist/{framework-components-CTibZus8-BK5QlxM-.d.mts → framework-components-B-yaLbst-nZJUGMuf.d.mts} +5 -3
- package/dist/framework-components-B-yaLbst-nZJUGMuf.d.mts.map +1 -0
- package/dist/ids.d.mts +17 -1
- package/dist/ids.d.mts.map +1 -1
- package/dist/ids.mjs +19 -2
- package/dist/ids.mjs.map +1 -1
- package/dist/{migration-CHa1k8VR.d.mts → migration-BVDJBmyi.d.mts} +2 -2
- package/dist/{migration-CHa1k8VR.d.mts.map → migration-BVDJBmyi.d.mts.map} +1 -1
- package/dist/{migration-BOOO5ZD-.mjs → migration-CZik9OxU.mjs} +2 -2
- package/dist/{migration-BOOO5ZD-.mjs.map → migration-CZik9OxU.mjs.map} +1 -1
- package/dist/{parse-CJtBvEYy-CW8BvW5O.d.mts → parse-CJtBvEYy-BCae0181.d.mts} +6 -6
- package/dist/{parse-CJtBvEYy-CW8BvW5O.d.mts.map → parse-CJtBvEYy-BCae0181.d.mts.map} +1 -1
- package/dist/{psl-ast-JQykH4Uz-D6tMHdnz.d.mts → psl-ast-BIJIW24G-B8ptjyuO.d.mts} +3 -3
- package/dist/{psl-ast-JQykH4Uz-D6tMHdnz.d.mts.map → psl-ast-BIJIW24G-B8ptjyuO.d.mts.map} +1 -1
- package/dist/psl-ast-rf0UoVty.d.mts +2 -0
- package/dist/psl-parser.d.mts +29 -14
- package/dist/psl-parser.d.mts.map +1 -1
- package/dist/psl-parser.mjs +37 -12
- package/dist/psl-parser.mjs.map +1 -1
- 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/{temporal-presets-adW53vQH-DPdAe_Oe.d.mts → temporal-presets-Cumws2z--DcYWooYJ.d.mts} +3 -3
- package/dist/{temporal-presets-adW53vQH-DPdAe_Oe.d.mts.map → temporal-presets-Cumws2z--DcYWooYJ.d.mts.map} +1 -1
- package/package.json +15 -15
- package/dist/components-DJ5O7uwz.mjs.map +0 -1
- package/dist/control-CgOeB4TR.d.mts +0 -1
- package/dist/control-DrorRbwa.mjs.map +0 -1
- package/dist/framework-components-CTibZus8-BK5QlxM-.d.mts.map +0 -1
- package/dist/psl-ast-DOJH1ZST.d.mts +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-
|
|
1
|
+
{"version":3,"file":"execution-DXQQRCfR.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/execution.d.mts"],"mappings":";;;UAEU,sBAAsB,kCAAkC,eAAe;UACvE,sBAAsB,0BAA0B,kCAAkC,eAAe,WAAW;UAC5G,uBAAuB,0BAA0B,kCAAkC,gBAAgB,WAAW;UAC9G,sBAAsB,0BAA0B,kCAAkC,eAAe,WAAW;UAC5G,yBAAyB,0BAA0B,kCAAkC,kBAAkB,WAAW;;;UAGlH,eAAe,0BAA0B,0BAA0B,yBAAyB,uBAAuB,WAAW,aAAa,uBAAuB,WAAW,YAAY,wBAAwB,sBAAsB,WAAW,aAAa,sBAAsB,WAAW,YAAY,2BAA2B,yBAAyB,WAAW,aAAa,yBAAyB,WAAW;WAC3Z,QAAQ,wBAAwB,WAAW;WAC3C,SAAS,yBAAyB,WAAW,WAAW;WACxD,QAAQ,wBAAwB,WAAW,oBAAoB;WAC/D,qBAAqB,2BAA2B,WAAW,WAAW;;UAEvE,uBAAuB,0BAA0B,0BAA0B,yBAAyB,uBAAuB,WAAW,aAAa,uBAAuB,WAAW,YAAY,wBAAwB,sBAAsB,WAAW,aAAa,sBAAsB,WAAW,YAAY,2BAA2B,yBAAyB,WAAW,aAAa,yBAAyB,WAAW;WACna,OAAO,eAAe,WAAW,WAAW,kBAAkB,iBAAiB;WAC/E,QAAQ,sBAAsB,WAAW;WACzC,SAAS;WACT,QAAQ;WACR,qBAAqB;;iBAEf,qBAAqB,0BAA0B,0BAA0B,wBAAwB,sBAAsB,WAAW,YAAY,0BAA0B,wBAAwB,WAAW,WAAW,kBAAkB,yBAAyB,uBAAuB,WAAW,YAAY,2BAA2B,yBAAyB,WAAW,WAAW,mBAAmB,wBAAwB,sBAAsB,WAAW,aAAa,sBAAsB,WAAW,YAAY,0BAA0B,wBAAwB,WAAW,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;WAC1I;aACE;aACA,aAAa;;WAEf,QAAQ,wBAAwB;WAChC,QAAQ,wBAAwB,WAAW;WAC3C,SAAS,yBAAyB,WAAW;WAC7C,qBAAqB,2BAA2B,WAAW"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as ifDefined } from "./defined-BQWA85QH-BRSBMULx.mjs";
|
|
2
2
|
import { i as isStructuredError } from "./structured-error-BXbihKQ-.mjs";
|
|
3
|
-
import { t as CliStructuredError } from "./control-KsXr4fYD-
|
|
3
|
+
import { t as CliStructuredError } from "./control-KsXr4fYD-DJm_48Db.mjs";
|
|
4
4
|
//#region ../../../1-framework/1-core/errors/dist/execution.mjs
|
|
5
5
|
/**
|
|
6
6
|
* Contract marker not found in database.
|
|
@@ -157,4 +157,4 @@ function errorRuntime(code, summary, options) {
|
|
|
157
157
|
//#endregion
|
|
158
158
|
export { errorMarkerRowCorrupt as a, errorTargetMismatch as c, withMarkerReadErrorHandling as d, errorMarkerRequired as i, parseMarkerRowSafely as l, errorMarkerMissing as n, errorRuntime as o, errorMarkerReadFailed as r, errorSchemaVerificationFailed as s, errorHashMismatch as t, rethrowMarkerReadError as u };
|
|
159
159
|
|
|
160
|
-
//# sourceMappingURL=execution-
|
|
160
|
+
//# sourceMappingURL=execution-KLhn9sSn.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-
|
|
1
|
+
{"version":3,"file":"execution-KLhn9sSn.mjs","names":[],"sources":["../../../../1-framework/1-core/errors/dist/execution.mjs"],"sourcesContent":["import { t as CliStructuredError } from \"./control-KsXr4fYD.mjs\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { isStructuredError } from \"@internal/utils/structured-error\";\n//#region src/execution.ts\n/**\n* Contract marker not found in database.\n*/\nfunction errorMarkerMissing(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_MISSING\", \"Database not signed\", {\n\t\twhy: options?.why ?? \"No database signature (marker) found\",\n\t\tfix: \"Run `{bin} db sign --db <url>` to sign the database\",\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Sign the database\",\n\t\t\tcommand: \"{bin} db sign --db <url>\"\n\t\t}]\n\t});\n}\n/**\n* Contract hash does not match database marker.\n*/\nfunction errorHashMismatch(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_MISMATCH\", \"Hash mismatch\", {\n\t\twhy: options?.why ?? \"Contract hash does not match database marker\",\n\t\tfix: \"Migrate database or re-sign if intentional\",\n\t\t...options?.expected !== void 0 || options?.actual !== void 0 ? { meta: {\n\t\t\t...ifDefined(\"expected\", options?.expected),\n\t\t\t...ifDefined(\"actual\", options?.actual)\n\t\t} } : {}\n\t});\n}\n/**\n* Contract target does not match config target.\n*/\nfunction errorTargetMismatch(expected, actual, options) {\n\treturn new CliStructuredError(\"CONTRACT.TARGET_MISMATCH\", \"Target mismatch\", {\n\t\twhy: options?.why ?? `Contract target does not match config target (expected: ${expected}, actual: ${actual})`,\n\t\tfix: \"Align contract target and config target\",\n\t\tmeta: {\n\t\t\texpected,\n\t\t\tactual\n\t\t}\n\t});\n}\n/**\n* Marker row exists but column values fail schema validation.\n*/\nfunction errorMarkerRowCorrupt(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_ROW_CORRUPT\", \"Marker row is corrupt or incompatible\", {\n\t\twhy: options.why,\n\t\tfix: `The ${options.markerLocation} row for space \"${options.space}\" contains invalid data. Delete the row, then run \\`{bin} db sign --db <url>\\` to write a fresh marker.`,\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Write a fresh marker\",\n\t\t\tcommand: \"{bin} db sign --db <url>\",\n\t\t\treason: `Delete the invalid ${options.markerLocation} row for space \"${options.space}\" first — this command then writes a valid one.`\n\t\t}],\n\t\tmeta: { space: options.space },\n\t\t...ifDefined(\"cause\", options.cause)\n\t});\n}\n/**\n* Driver-level failure while reading the contract marker table.\n*/\nfunction errorMarkerReadFailed(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_READ_FAILED\", \"Database error while reading contract marker\", {\n\t\twhy: options.why,\n\t\tfix: `Could not read marker at ${options.markerLocation} for space \"${options.space}\". Verify read permissions, connectivity, and locks, then retry.`,\n\t\tmeta: { space: options.space },\n\t\t...ifDefined(\"cause\", options.cause)\n\t});\n}\nfunction isDriverError(err) {\n\treturn isStructuredError(err) && err.code.startsWith(\"DRIVER.\");\n}\nfunction isMarkerRowParseError(err) {\n\treturn err instanceof Error && (err.message.startsWith(\"Invalid contract marker row:\") || err.message.startsWith(\"Invalid marker doc on\"));\n}\nfunction rethrowMarkerReadError(err, context) {\n\tif (CliStructuredError.is(err) || isDriverError(err)) throw err;\n\tif (isMarkerRowParseError(err)) throw errorMarkerRowCorrupt({\n\t\twhy: err.message,\n\t\tspace: context.space,\n\t\tmarkerLocation: context.markerLocation,\n\t\tcause: err\n\t});\n\tthrow errorMarkerReadFailed({\n\t\twhy: err instanceof Error ? err.message : String(err),\n\t\tspace: context.space,\n\t\tmarkerLocation: context.markerLocation,\n\t\tcause: err\n\t});\n}\nasync function withMarkerReadErrorHandling(operation, context) {\n\ttry {\n\t\treturn await operation();\n\t} catch (err) {\n\t\trethrowMarkerReadError(err, context);\n\t}\n}\nfunction parseMarkerRowSafely(row, parse, context) {\n\ttry {\n\t\treturn parse(row);\n\t} catch (err) {\n\t\trethrowMarkerReadError(err, context);\n\t}\n}\n/**\n* Database marker is required but not found.\n* Used by commands that require a pre-existing marker as a precondition.\n*/\nfunction errorMarkerRequired(options) {\n\treturn new CliStructuredError(\"CONTRACT.MARKER_REQUIRED\", \"Database must be signed first\", {\n\t\twhy: options?.why ?? \"No database signature (marker) found\",\n\t\tfix: options?.fix ?? \"Run `{bin} db init` first to sign the database\",\n\t\tnextActions: options?.nextActions ?? [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Sign the database\",\n\t\t\tcommand: \"{bin} db init\"\n\t\t}]\n\t});\n}\n/**\n* Schema verification found mismatches between the database and the contract.\n* The full verification result is preserved in `meta.verificationResult`.\n*/\nfunction errorSchemaVerificationFailed(options) {\n\treturn new CliStructuredError(\"CONTRACT.SCHEMA_VERIFICATION_FAILED\", options.summary, {\n\t\twhy: \"Database schema does not satisfy the contract\",\n\t\tfix: \"Run `{bin} db update` to reconcile, or adjust your contract to match the database\",\n\t\tnextActions: [{\n\t\t\tkind: \"run-command\",\n\t\t\tlabel: \"Reconcile the database\",\n\t\t\tcommand: \"{bin} db update\"\n\t\t}, {\n\t\t\tkind: \"edit-file\",\n\t\t\tlabel: \"Adjust your contract to match the database\"\n\t\t}],\n\t\tmeta: {\n\t\t\tverificationResult: options.verificationResult,\n\t\t\t...ifDefined(\"issues\", options.issues)\n\t\t}\n\t});\n}\n/**\n* Generic runtime error carrying a caller-provided dotted code.\n*/\nfunction errorRuntime(code, summary, options) {\n\treturn new CliStructuredError(code, summary, {\n\t\t...ifDefined(\"why\", options?.why),\n\t\t...ifDefined(\"fix\", options?.fix),\n\t\t...ifDefined(\"diagnostics\", options?.diagnostics),\n\t\t...ifDefined(\"meta\", options?.meta),\n\t\t...ifDefined(\"cause\", options?.cause)\n\t});\n}\n//#endregion\nexport { errorHashMismatch, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorRuntime, errorSchemaVerificationFailed, errorTargetMismatch, parseMarkerRowSafely, rethrowMarkerReadError, withMarkerReadErrorHandling };\n\n//# sourceMappingURL=execution.mjs.map"],"mappings":";;;;;;;AAOA,SAAS,mBAAmB,SAAS;CACpC,OAAO,IAAI,mBAAmB,2BAA2B,uBAAuB;EAC/E,KAAK,SAAS,OAAO;EACrB,KAAK;EACL,aAAa,CAAC;GACb,MAAM;GACN,OAAO;GACP,SAAS;EACV,CAAC;CACF,CAAC;AACF;;;;AAIA,SAAS,kBAAkB,SAAS;CACnC,OAAO,IAAI,mBAAmB,4BAA4B,iBAAiB;EAC1E,KAAK,SAAS,OAAO;EACrB,KAAK;EACL,GAAG,SAAS,a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AG,UAAU,QAAQ,SAAS,IAAI;EAClC,GAAG,UAAU,SAAS,SAAS,KAAK;CACrC,CAAC;AACF"}
|
|
@@ -3,7 +3,7 @@ import { T as DataTypeValue, b as DataTypeParams, p as CodecLookupWithDescriptor
|
|
|
3
3
|
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
4
4
|
import { Type } from "arktype";
|
|
5
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
|
-
//#region ../../../1-framework/1-core/framework-components/dist/framework-authoring-
|
|
6
|
+
//#region ../../../1-framework/1-core/framework-components/dist/framework-authoring-hZgq-M2K.d.mts
|
|
7
7
|
//#region src/shared/option-descriptor.d.ts
|
|
8
8
|
interface AuthoringOption {
|
|
9
9
|
readonly kind: 'option';
|
|
@@ -778,6 +778,10 @@ interface AuthoringContributions {
|
|
|
778
778
|
* names.
|
|
779
779
|
*/
|
|
780
780
|
readonly valueObjectStorageType?: string;
|
|
781
|
+
/**
|
|
782
|
+
* The data types whose values are text, such as a target's variable-length, fixed-length and bounded text types. A family uses the list where only text is meaningful, such as a polymorphic model's discriminator column. Assembly takes every component's list.
|
|
783
|
+
*/
|
|
784
|
+
readonly textDataTypes?: readonly DataTypeId[];
|
|
781
785
|
}
|
|
782
786
|
declare function isAuthoringArgRef(value: unknown): value is AuthoringArgRef;
|
|
783
787
|
declare function isAuthoringSelectRef(value: unknown): value is AuthoringSelectRef;
|
|
@@ -858,4 +862,4 @@ declare function instantiateAuthoringFieldPreset(descriptor: AuthoringFieldPrese
|
|
|
858
862
|
};
|
|
859
863
|
//#endregion
|
|
860
864
|
export { admittedForms as $, AuthoringWarning as A, tagForm as At, PslExtensionBlockAttribute as B, AuthoringPslBlockDescriptorNamespace as C, isAuthoringSelectRef as Ct, AuthoringTypeConstructorDescriptor as D, readWrittenValue as Dt, AuthoringTemplateValue as E, mergeAuthoringNamespaces as Et, DataTypeSupport as F, PslSpan as G, PslExtensionBlockParsedAttribute as H, DataTypeWrittenForm as I, RefusalGuidance as J, ReadRefusal as K, ParsedPslExtensionBlock as L, CastRefusal as M, validateAuthoringTypeParams as Mt, ContributedPslDiagnosticCode as N, AuthoringTypeConstructorEntityRef as O, resolveAuthoringTemplateValue as Ot, DataTypeAuthoringEntry as P, WrittenValue as Q, PslDiagnosticCode as R, AuthoringPslBlockDescriptor as S, isAuthoringPslBlockDescriptor as St, AuthoringStorageTypeTemplate as T, knownTags as Tt, PslExtensionBlockPrintEntry as U, PslExtensionBlockAttributeArg as V, PslPosition as W, WrittenForm as X, ScalarTypeConstructorOutput as Y, WrittenScalar as Z, AuthoringModelAttributeDescriptorNamespace as _, instantiateAuthoringTypeConstructor as _t, AuthoringContributions as a, collectScalarTypeConstructors as at, AuthoringModelAttributeLoweringOutput as b, isAuthoringFieldPresetDescriptor as bt, AuthoringEntityTypeDescriptor as c, describeRefusal as ct, AuthoringEntityTypeTemplateOutput as d, entryForTag as dt, admittedTags as et, AuthoringFieldNamespace as f, exactRewrite as ft, AuthoringModelAttributeDescriptor as g, instantiateAuthoringFieldPreset as gt, AuthoringModelAttributeContext as h, instantiateAuthoringEntityType as ht, AuthoringColumnDefaultTemplate as i, classifyEnumMemberType as it, AuthoringWarningSink as j, validateAuthoringHelperArguments as jt, AuthoringTypeNamespace as k, resolveEnumCodecId as kt, AuthoringEntityTypeFactoryOutput as l, describeRefusedValueType as lt, AuthoringFieldPresetOutput as m, getAuthoringTypeConstructor as mt, AuthoringArgumentDescriptor as n, assertResolvableTypeConstructorTemplates as nt, AuthoringDiagnosticSink as o, describeAdmittedForms as ot, AuthoringFieldPresetDescriptor as p, flushAuthoringWarnings as pt, RefusalDescription as q, AuthoringAttributeSpecContributions as r, castTypedValue as rt, AuthoringEntityContext as s, describeExpected as st, AuthoringArgRef as t, assertNoCrossRegistryCollisions as tt, AuthoringEntityTypeNamespace as u, entryForPlain as ut, AuthoringModelAttributeEntityOutput as v, isAuthoringArgRef as vt, AuthoringSelectRef as w, isAuthoringTypeConstructorDescriptor as wt, AuthoringOption as x, isAuthoringModelAttributeDescriptor as xt, AuthoringModelAttributeIndexOutput as y, isAuthoringEntityTypeDescriptor as yt, PslExtensionBlock as z };
|
|
861
|
-
//# sourceMappingURL=framework-authoring-
|
|
865
|
+
//# sourceMappingURL=framework-authoring-hZgq-M2K-Daz3kgWL.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework-authoring-
|
|
1
|
+
{"version":3,"file":"framework-authoring-hZgq-M2K-Daz3kgWL.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/framework-authoring-hZgq-M2K.d.mts"],"mappings":";;;;;;;UAMU;WACC;WACA;;;;;KAKN;WACM;WACA;WACA;;WAEA;WACA;;WAEA;WACA;;WAEA;WACA;;WAEA;WACA,mBAAmB;;KAEzB,gBAAgB,QAAQ;WAClB;;;UAGD;WACC,SAAS,SAAS,eAAe;WACjC,QAAQ;WACR,kBAAkB,oBAAoB;;KAE5C;WACM;WACA;;WAEA;WACA;WACA;;WAEA;WACA;;KAEN;WACM;WACA,eAAe;;WAEf,iBAAiB;WACjB,WAAW;WACX;;WAEA;WACA;;;WAGA;WACA,eAAe;WACf;;;UAGD;WACC;WACA;;;KAGN;WACM;WACA;WACA;;WAEA;WACA;;;UAGD;;WAEC,gBAAgB;;WAEhB;;;;;iBAKM,gBAAgB,SAAS,cAAc,aAAa,SAAS,iBAAiB,UAAU,kBAAkB;;iBAE1G,iBAAiB,gBAAgB;;;;iBAIjC,yBAAyB;WAC/B,eAAe;WACf,WAAW;GACnB,SAAS,iBAAiB,UAAU;;;;iBAItB,aAAa,SAAS,iBAAiB;WAC7C,eAAe;WACf,iBAAiB;GACzB,SAAS;UACF;WACC;WACA,OAAO;;;iBAGD,YAAY,SAAS,iBAAiB,cAAc;;iBAEpD,cAAc,SAAS,iBAAiB,0CAA0C;;iBAElF,UAAU,SAAS;;iBAEnB,iBAAiB,SAAS,iBAAiB,SAAS,gBAAgB,OAAO,eAAe;;iBAE1F,eAAe,SAA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AqC,cAAc;iBACvJ,oCAAoC,YAAY,oCAAoC,2BAA2B;iBAC/G,+BAA+B,mBAAmB,oBAAoB,YAAY,+BAA+B,0BAA0B,KAAK,yBAAyB;iBACzK,gCAAgC,YAAY,gCAAgC;WAClF,YAAY;WACZ;WACA,UAAU;WACV,oBAAoB;WACpB;WACA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { P as ExecutionMutationDefaultValue } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
|
|
2
2
|
import { _ as DataType, t as AnyCodecDescriptor } from "./codec-types-DjozIOvT-BIcpyFea.mjs";
|
|
3
|
-
import { a as AuthoringContributions } from "./framework-authoring-
|
|
3
|
+
import { a as AuthoringContributions } from "./framework-authoring-hZgq-M2K-Daz3kgWL.mjs";
|
|
4
4
|
import { c as MutationDefaultGeneratorDescriptor, i as ControlMutationDefaults } from "./mutation-default-types-js6llINX-WGmpaAAL.mjs";
|
|
5
5
|
import { l as TypesImportSpec, t as AggregateDescriptor } from "./types-import-spec-hkPsnreE-C-fa8812.mjs";
|
|
6
|
-
//#region ../../../1-framework/1-core/framework-components/dist/framework-components-
|
|
6
|
+
//#region ../../../1-framework/1-core/framework-components/dist/framework-components-B-yaLbst.d.mts
|
|
7
7
|
//#region src/shared/generator-functions.d.ts
|
|
8
8
|
/** The phase a client generator runs in: when a row is created, or every time it is updated. */
|
|
9
9
|
type GeneratorPhase = 'onCreate' | 'onUpdate';
|
|
@@ -11,6 +11,8 @@ type GeneratorPhase = 'onCreate' | 'onUpdate';
|
|
|
11
11
|
interface GeneratorFunctionField {
|
|
12
12
|
readonly codecId: string;
|
|
13
13
|
readonly typeParams: Readonly<Record<string, unknown>> | undefined;
|
|
14
|
+
/** The column's length, in its data type's normal form, so a bare `Char` holds 1. `undefined` for a column with no length, or one whose database does not limit it; a binding then checks no length. */
|
|
15
|
+
readonly length: number | undefined;
|
|
14
16
|
}
|
|
15
17
|
/** A call of a generator function: what `@onCreate(fn(...))` and `gen.fn(...)` write, and what `contract print` writes back. */
|
|
16
18
|
interface GeneratorFunctionCall {
|
|
@@ -419,4 +421,4 @@ interface ExtensionInstance<TFamilyId extends string, TTargetId extends string>
|
|
|
419
421
|
}
|
|
420
422
|
//#endregion
|
|
421
423
|
export { PrintedGeneratorCall as A, GeneratorFunctionField as C, GeneratorPhase as D, GeneratorFunctionSummary as E, assembleGeneratorFunctions as F, checkContractComponentRequirements as I, singleGeneratorBinding as L, TargetDescriptor as M, TargetInstance as N, PackRefBase as O, TargetPackRef as P, GeneratorFunctionContribution as S, GeneratorFunctionResolution as T, FamilyInstance as _, ComponentDescriptor as a, GeneratorFunctionCall as b, ContractComponentRequirementsCheckResult as c, DriverPackRef as d, EMPTY_GENERATOR_FUNCTIONS as f, FamilyDescriptor as g, ExtensionPackRef as h, BindingResolution as i, TargetBoundComponentDescriptor as j, PrintedArguments as k, DriverDescriptor as l, ExtensionInstance as m, AdapterInstance as n, ComponentMetadata as o, ExtensionDescriptor as p, AdapterPackRef as r, ContractComponentRequirementsCheckInput as s, AdapterDescriptor as t, DriverInstance as u, FamilyPackRef as v, GeneratorFunctionRegistry as w, GeneratorFunctionComponent as x, GeneratorFunctionBinding as y };
|
|
422
|
-
//# sourceMappingURL=framework-components-
|
|
424
|
+
//# sourceMappingURL=framework-components-B-yaLbst-nZJUGMuf.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"framework-components-B-yaLbst-nZJUGMuf.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/framework-components-B-yaLbst.d.mts"],"mappings":";;;;;;;;KAOK;;UAEK;WACC;WACA,YAAY,SAAS;;WAErB;;;UAGD;WACC;WACA,MAAM,SAAS;;;KAGrB;WACM;WACA,WAAW;;WAEX;WACA;;;UAGD;WACC,MAAM,SAAS;WACf;;UAED;WACC;;WAEA;WACA,UAAU;aACR,MAAM,SAAS;aACf,OAAO;QACZ;;WAEG,iBAAiB,WAAW,+BAA+B,OAAO,2BAA2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B;WACtG,UAAU;;WAEV;WACA;;KAEN,eAAe,mCAAmC,qCAAqC,uBAAuB;WACxG,UAAU;;KAEhB,iBAAiB,mCAAmC,qCAAqC,yBAAyB;WAC5G,UAAU;;KAEhB,cAAc,mCAAmC,qCAAqC,sBAAsB;WACtG,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA4BX,kBAAkB,0BAA0B,kCAAkC;;WAE7E,UAAU;;WAEV,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA6BX,iBAAiB,0BAA0B,kCAAkC;;WAE5E,UAAU;;WAEV,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA4BX,oBAAoB,0BAA0B,kCAAkC;;WAE/E,UAAU;;WAEV,UAAU;;;KAGhB,+BAA+B,0BAA0B,4BAA4B,iBAAiB,WAAW,aAAa,kBAAkB,WAAW,aAAa,iBAAiB,WAAW,aAAa,oBAAoB,WAAW;UAC3O,eAAe;WACd,UAAU;;UAEX,eAAe,0BAA0B;WACxC,UAAU;WACV,UAAU;;UAEX,gBAAgB,0BAA0B;WACzC,UAAU;WACV,UAAU;;UAEX,eAAe,0BAA0B;WACxC,UAAU;WACV,UAAU;;UAEX,kBAAkB,0BAA0B;WAC3C,UAAU;WACV,UAAU"}
|
package/dist/ids.d.mts
CHANGED
|
@@ -22,6 +22,20 @@ type IdGeneratorOptionsById = {
|
|
|
22
22
|
readonly ksuid: FirstArg<typeof ksuid$1>;
|
|
23
23
|
};
|
|
24
24
|
//#endregion
|
|
25
|
+
//#region src/generator-limits.d.ts
|
|
26
|
+
/** The UUID versions `uuid(version)` generates. */
|
|
27
|
+
declare const UUID_VERSIONS: {
|
|
28
|
+
readonly v4: 4;
|
|
29
|
+
readonly v7: 7;
|
|
30
|
+
};
|
|
31
|
+
/** The one CUID version `cuid(version)` generates. */
|
|
32
|
+
declare const CUID_VERSION = 2;
|
|
33
|
+
/** The sizes a Nano ID may have, inclusive. */
|
|
34
|
+
declare const NANOID_SIZE: {
|
|
35
|
+
readonly min: 2;
|
|
36
|
+
readonly max: 255;
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
25
39
|
//#region src/index.d.ts
|
|
26
40
|
declare const GENERATED_CHAR_TYPE: {
|
|
27
41
|
readonly codecId: "sql/char@1";
|
|
@@ -41,6 +55,8 @@ type GeneratedStorage<Length extends number = number> = {
|
|
|
41
55
|
};
|
|
42
56
|
declare const NANOID_DEFAULT_SIZE = 21;
|
|
43
57
|
type NanoidOptions = IdGeneratorOptionsById['nanoid'];
|
|
58
|
+
/** The number of characters the built-in generator `id` writes under `params`, such as 36 for a UUID or a Nano ID's size. */
|
|
59
|
+
declare function generatedLength(id: BuiltinGeneratorId, params: Readonly<Record<string, unknown>> | undefined): number;
|
|
44
60
|
type GeneratedColumnSpec<TCodecId extends string = string> = {
|
|
45
61
|
readonly type: ColumnTypeDescriptor<TCodecId>;
|
|
46
62
|
readonly nullable?: false;
|
|
@@ -101,5 +117,5 @@ declare function nanoid<const Size extends number>(options: {
|
|
|
101
117
|
}): ReturnType<typeof createGeneratedSpec<'nanoid', Size>>;
|
|
102
118
|
declare function nanoid(options?: NanoidOptions): ReturnType<typeof createGeneratedSpec<'nanoid', number>>;
|
|
103
119
|
//#endregion
|
|
104
|
-
export { GeneratedColumnSpec, builtinGeneratorIds, cuid2, ksuid, nanoid, ulid, uuidv4, uuidv7 };
|
|
120
|
+
export { type BuiltinGeneratorId, CUID_VERSION, GeneratedColumnSpec, NANOID_SIZE, UUID_VERSIONS, builtinGeneratorIds, cuid2, generatedLength, ksuid, nanoid, ulid, uuidv4, uuidv7 };
|
|
105
121
|
//# sourceMappingURL=ids.d.mts.map
|
package/dist/ids.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/ids/dist/index.d.mts"],"mappings":";;;;;;;;;;cASc;KACT,6BAA6B;;;KAG7B,SAAS,aAAa,uBAAuB,YAAY,qBAAqB,+BAA+B;KAC7G;WACM,MAAM,gBAAgB;WACtB,QAAQ,gBAAgB;WACxB,QAAQ,gBAAgB;WACxB,QAAQ,gBAAgB;WACxB,OAAO,gBAAgB;WACvB,OAAO,gBAAgB;;;;
|
|
1
|
+
{"version":3,"file":"ids.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/ids/dist/index.d.mts"],"mappings":";;;;;;;;;;cASc;KACT,6BAA6B;;;KAG7B,SAAS,aAAa,uBAAuB,YAAY,qBAAqB,+BAA+B;KAC7G;WACM,MAAM,gBAAgB;WACtB,QAAQ,gBAAgB;WACxB,QAAQ,gBAAgB;WACxB,QAAQ,gBAAgB;WACxB,OAAO,gBAAgB;WACvB,OAAO,gBAAgB;;;;;cAKpB;WACH;WACA;;;cAGG;;cAEA;WACH;WACA;;;;cAIG;WACH;;;;;;;;;KASN,iBAAiB;WACX,MAAM,4BAA4B,oBAAoB;WACtD;aACE,QAAQ;;;cAGP;KACT,gBAAgB;;iBAEJ,gBAAgB,IAAI,oBAAoB,QAAQ,SAAS;KACrE,oBAAoB;WACd,MAAM,qBAAqB;WAC3B;WACA,aAAa;WACb,WAAW;;iBAEL,oBAAoB,YAAY,oBAAoB,uBAAuB,IAAI,KAAK,SAAS,iBAAiB,SAAS,SAAS,uBAAuB;WAC7J,MAAM;WACN;WACA;aACE,QAAQ;;WAEV,WAAW;;cAER,OAAO,UAAU;WACpB,MAAM;WACN;WACA;aACE;;WAEF,WAAW;;cAER,SAAS,UAAU;WACtB,MAAM;WACN;WACA;aACE;;WAEF,WAAW;;cAER,SAAS,UAAU;WACtB,MAAM;WACN;WACA;aACE;;WAEF,WAAW;;cAER,QAAQ,UAAU;WACrB,MAAM;WACN;WACA;aACE;;WAEF,WAAW;;cAER,QAAQ,UAAU;WACrB,MAAM;WACN;WACA;aACE;;WAEF,WAAW;;iBAEL,UAAU,kBAAkB,qCAAqC;iBACjE,aAAa,qBAAqB;WACxC,MAAM;IACb,kBAAkB,8BAA8B;iBACnC,OAAO,UAAU,gBAAgB,kBAAkB"}
|
package/dist/ids.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t as blindCast } from "./casts-DpaahrlC-Bd5n2coI.mjs";
|
|
1
2
|
import { t as ifDefined } from "./defined-BQWA85QH-BRSBMULx.mjs";
|
|
2
3
|
import { o as structuredError } from "./structured-error-BXbihKQ-.mjs";
|
|
3
4
|
//#region ../../../1-framework/2-authoring/ids/dist/index.mjs
|
|
@@ -12,6 +13,18 @@ const builtinGeneratorIds = [
|
|
|
12
13
|
"cuid2",
|
|
13
14
|
"ksuid"
|
|
14
15
|
];
|
|
16
|
+
/** The UUID versions `uuid(version)` generates. */
|
|
17
|
+
const UUID_VERSIONS = {
|
|
18
|
+
v4: 4,
|
|
19
|
+
v7: 7
|
|
20
|
+
};
|
|
21
|
+
/** The one CUID version `cuid(version)` generates. */
|
|
22
|
+
const CUID_VERSION = 2;
|
|
23
|
+
/** The sizes a Nano ID may have, inclusive. */
|
|
24
|
+
const NANOID_SIZE = {
|
|
25
|
+
min: 2,
|
|
26
|
+
max: 255
|
|
27
|
+
};
|
|
15
28
|
const GENERATED_CHAR_TYPE = { codecId: "sql/char@1" };
|
|
16
29
|
function charStorage(length) {
|
|
17
30
|
return {
|
|
@@ -23,7 +36,7 @@ const NANOID_DEFAULT_SIZE = 21;
|
|
|
23
36
|
function nanoidStorage(options) {
|
|
24
37
|
const rawSize = options?.size;
|
|
25
38
|
if (rawSize === void 0) return charStorage(NANOID_DEFAULT_SIZE);
|
|
26
|
-
if (typeof rawSize !== "number" || !Number.isInteger(rawSize) || rawSize <
|
|
39
|
+
if (typeof rawSize !== "number" || !Number.isInteger(rawSize) || rawSize < NANOID_SIZE.min || rawSize > NANOID_SIZE.max) throw contractError("CONTRACT.ARGUMENT_INVALID", `nanoid size must be an integer between ${NANOID_SIZE.min} and ${NANOID_SIZE.max}`, { meta: {
|
|
27
40
|
helperPath: "nanoid",
|
|
28
41
|
paramName: "size",
|
|
29
42
|
received: rawSize
|
|
@@ -38,6 +51,10 @@ const builtinGeneratorMetadataById = {
|
|
|
38
51
|
cuid2: { generatedStorage: () => charStorage(24) },
|
|
39
52
|
ksuid: { generatedStorage: () => charStorage(27) }
|
|
40
53
|
};
|
|
54
|
+
/** The number of characters the built-in generator `id` writes under `params`, such as 36 for a UUID or a Nano ID's size. */
|
|
55
|
+
function generatedLength(id, params) {
|
|
56
|
+
return builtinGeneratorMetadataById[id].generatedStorage(blindCast(params)).typeParams.length;
|
|
57
|
+
}
|
|
41
58
|
function createGeneratedSpec(id, storage, options) {
|
|
42
59
|
const generated = {
|
|
43
60
|
kind: "generator",
|
|
@@ -60,6 +77,6 @@ function nanoid(options) {
|
|
|
60
77
|
return createGeneratedSpec("nanoid", builtinGeneratorMetadataById.nanoid.generatedStorage(options), options);
|
|
61
78
|
}
|
|
62
79
|
//#endregion
|
|
63
|
-
export { builtinGeneratorIds, cuid2, ksuid, nanoid, ulid, uuidv4, uuidv7 };
|
|
80
|
+
export { CUID_VERSION, NANOID_SIZE, UUID_VERSIONS, builtinGeneratorIds, cuid2, generatedLength, ksuid, nanoid, ulid, uuidv4, uuidv7 };
|
|
64
81
|
|
|
65
82
|
//# sourceMappingURL=ids.mjs.map
|
package/dist/ids.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids.mjs","names":[],"sources":["../../../../1-framework/2-authoring/ids/dist/index.mjs"],"sourcesContent":["import { ifDefined } from \"@internal/utils/defined\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/contract-errors.ts\nfunction contractError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/generator-ids.ts\nconst builtinGeneratorIds = [\n\t\"ulid\",\n\t\"nanoid\",\n\t\"uuidv7\",\n\t\"uuidv4\",\n\t\"cuid2\",\n\t\"ksuid\"\n];\n//#endregion\n//#region src/index.ts\nconst GENERATED_CHAR_TYPE = { codecId: \"sql/char@1\" };\nfunction charStorage(length) {\n\treturn {\n\t\ttype: GENERATED_CHAR_TYPE,\n\t\ttypeParams: { length }\n\t};\n}\nconst NANOID_DEFAULT_SIZE = 21;\nfunction nanoidStorage(options) {\n\tconst rawSize = options?.size;\n\tif (rawSize === void 0) return charStorage(NANOID_DEFAULT_SIZE);\n\tif (typeof rawSize !== \"number\" || !Number.isInteger(rawSize) || rawSize <
|
|
1
|
+
{"version":3,"file":"ids.mjs","names":[],"sources":["../../../../1-framework/2-authoring/ids/dist/index.mjs"],"sourcesContent":["import { blindCast } from \"@internal/utils/casts\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/contract-errors.ts\nfunction contractError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/generator-ids.ts\nconst builtinGeneratorIds = [\n\t\"ulid\",\n\t\"nanoid\",\n\t\"uuidv7\",\n\t\"uuidv4\",\n\t\"cuid2\",\n\t\"ksuid\"\n];\n//#endregion\n//#region src/generator-limits.ts\n/** The UUID versions `uuid(version)` generates. */\nconst UUID_VERSIONS = {\n\tv4: 4,\n\tv7: 7\n};\n/** The one CUID version `cuid(version)` generates. */\nconst CUID_VERSION = 2;\n/** The sizes a Nano ID may have, inclusive. */\nconst NANOID_SIZE = {\n\tmin: 2,\n\tmax: 255\n};\n//#endregion\n//#region src/index.ts\nconst GENERATED_CHAR_TYPE = { codecId: \"sql/char@1\" };\nfunction charStorage(length) {\n\treturn {\n\t\ttype: GENERATED_CHAR_TYPE,\n\t\ttypeParams: { length }\n\t};\n}\nconst NANOID_DEFAULT_SIZE = 21;\nfunction nanoidStorage(options) {\n\tconst rawSize = options?.size;\n\tif (rawSize === void 0) return charStorage(NANOID_DEFAULT_SIZE);\n\tif (typeof rawSize !== \"number\" || !Number.isInteger(rawSize) || rawSize < NANOID_SIZE.min || rawSize > NANOID_SIZE.max) throw contractError(\"CONTRACT.ARGUMENT_INVALID\", `nanoid size must be an integer between ${NANOID_SIZE.min} and ${NANOID_SIZE.max}`, { meta: {\n\t\thelperPath: \"nanoid\",\n\t\tparamName: \"size\",\n\t\treceived: rawSize\n\t} });\n\treturn charStorage(rawSize);\n}\nconst builtinGeneratorMetadataById = {\n\tulid: { generatedStorage: () => charStorage(26) },\n\tnanoid: { generatedStorage: nanoidStorage },\n\tuuidv7: { generatedStorage: () => charStorage(36) },\n\tuuidv4: { generatedStorage: () => charStorage(36) },\n\tcuid2: { generatedStorage: () => charStorage(24) },\n\tksuid: { generatedStorage: () => charStorage(27) }\n};\n/** The number of characters the built-in generator `id` writes under `params`, such as 36 for a UUID or a Nano ID's size. */\nfunction generatedLength(id, params) {\n\treturn builtinGeneratorMetadataById[id].generatedStorage(blindCast(params)).typeParams.length;\n}\nfunction createGeneratedSpec(id, storage, options) {\n\tconst generated = {\n\t\tkind: \"generator\",\n\t\tid,\n\t\t...ifDefined(\"params\", options)\n\t};\n\treturn {\n\t\ttype: storage.type,\n\t\tnullable: false,\n\t\ttypeParams: storage.typeParams,\n\t\tgenerated\n\t};\n}\nconst ulid = (options) => createGeneratedSpec(\"ulid\", builtinGeneratorMetadataById.ulid.generatedStorage(), options);\nconst uuidv7 = (options) => createGeneratedSpec(\"uuidv7\", builtinGeneratorMetadataById.uuidv7.generatedStorage(), options);\nconst uuidv4 = (options) => createGeneratedSpec(\"uuidv4\", builtinGeneratorMetadataById.uuidv4.generatedStorage(), options);\nconst cuid2 = (options) => createGeneratedSpec(\"cuid2\", builtinGeneratorMetadataById.cuid2.generatedStorage(), options);\nconst ksuid = (options) => createGeneratedSpec(\"ksuid\", builtinGeneratorMetadataById.ksuid.generatedStorage(), options);\nfunction nanoid(options) {\n\treturn createGeneratedSpec(\"nanoid\", builtinGeneratorMetadataById.nanoid.generatedStorage(options), options);\n}\n//#endregion\nexport { CUID_VERSION, NANOID_SIZE, UUID_VERSIONS, builtinGeneratorIds, cuid2, generatedLength, ksuid, nanoid, ulid, uuidv4, uuidv7 };\n\n//# sourceMappingURL=index.m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MAAM;EACN;EACA,GAAG,UAAU,UAAU,OAAO;CAC/B;CACA,OAAO;EACN,MAAM,QAAQ;EACd,UAAU;EACV,YAAY,QAAQ;EACpB;CACD;AACD;AACA,MAAM,QAAQ,YAAY,oBAAoB,QAAQ,6BAA6B,KAAK,iBAAiB,GAAG,OAAO;AACnH,MAAM,UAAU,YAAY,oBAAoB,UAAU,6BAA6B,OAAO,iBAAiB,GAAG,OAAO;AACzH,MAAM,UAAU,YAAY,oBAAoB,UAAU,6BAA6B,OAAO,iBAAiB,GAAG,OAAO;AACzH,MAAM,SAAS,YAAY,oBAAoB,SAAS,6BAA6B,MAAM,iBAAiB,GAAG,OAAO;AACtH,MAAM,SAAS,YAAY,oBAAoB,SAAS,6BAA6B,MAAM,iBAAiB,GAAG,OAAO;AACtH,SAAS,OAAO,SAAS;CACxB,OAAO,oBAAoB,UAAU,6BAA6B,OAAO,iBAAiB,OAAO,GAAG,OAAO;AAC5G"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as CliStructuredError } from "./control-B5ezUWD2-
|
|
1
|
+
import { i as CliStructuredError } from "./control-B5ezUWD2-BgUEggvd.mjs";
|
|
2
2
|
//#region ../../../1-framework/1-core/errors/dist/migration.d.mts
|
|
3
3
|
//#region src/migration.d.ts
|
|
4
4
|
/**
|
|
@@ -88,4 +88,4 @@ declare function errorMigrationOperationOptionRemoved(options: {
|
|
|
88
88
|
}): CliStructuredError;
|
|
89
89
|
//#endregion
|
|
90
90
|
export { errorMigrationPlanNotArray as a, placeholder as c, errorMigrationOperationOptionRemoved as i, unfilledPlaceholderOperation as l, errorMigrationFileMissing as n, errorMigrationTargetMismatch as o, errorMigrationInvalidDefaultExport as r, errorUnfilledPlaceholder as s, errorDataTransformContractMismatch as t };
|
|
91
|
-
//# sourceMappingURL=migration-
|
|
91
|
+
//# sourceMappingURL=migration-BVDJBmyi.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration-
|
|
1
|
+
{"version":3,"file":"migration-BVDJBmyi.d.mts","names":[],"sources":["../../../../1-framework/1-core/errors/dist/migration.d.mts"],"mappings":";;;;;;;;;;iBASiB,yBAAyB,eAAe;;;;;;;iBAOxC,6BAA6B,eAAe;;;;;;;;;;iBAU5C,YAAY;;;;;;;;;;;;;iBAaZ,mCAAmC;WACzC;WACA;WACA;IACP;;;;;;iBAMa,0BAA0B,cAAc;;;;;;;;;;iBAUxC,mCAAmC,aAAa,mCAAmC;;;;;;;;;iBASnF,6BAA6B;WACnC;WACA;IACP;;;;;iBAKa,2BAA2B,aAAa,kCAAkC;;;;iBAI1E,qCAAqC;WAC3C;WACA;WACA;WACA;WACA;IACP"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as UPGRADE_GUIDES_URL, t as CliStructuredError } from "./control-KsXr4fYD-
|
|
1
|
+
import { n as UPGRADE_GUIDES_URL, t as CliStructuredError } from "./control-KsXr4fYD-DJm_48Db.mjs";
|
|
2
2
|
//#region ../../../1-framework/1-core/errors/dist/migration.mjs
|
|
3
3
|
/**
|
|
4
4
|
* A scaffolded migration contains a placeholder slot that was never filled in.
|
|
@@ -150,4 +150,4 @@ function errorMigrationOperationOptionRemoved(options) {
|
|
|
150
150
|
//#endregion
|
|
151
151
|
export { errorMigrationPlanNotArray as a, placeholder as c, errorMigrationOperationOptionRemoved as i, unfilledPlaceholderOperation as l, errorMigrationFileMissing as n, errorMigrationTargetMismatch as o, errorMigrationInvalidDefaultExport as r, errorUnfilledPlaceholder as s, errorDataTransformContractMismatch as t };
|
|
152
152
|
|
|
153
|
-
//# sourceMappingURL=migration-
|
|
153
|
+
//# sourceMappingURL=migration-CZik9OxU.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration-BOOO5ZD-.mjs","names":[],"sources":["../../../../1-framework/1-core/errors/dist/migration.mjs"],"sourcesContent":["import { t as CliStructuredError, w as UPGRADE_GUIDES_URL } from \"./control-KsXr4fYD.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,S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,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-CZik9OxU.mjs","names":[],"sources":["../../../../1-framework/1-core/errors/dist/migration.mjs"],"sourcesContent":["import { t as CliStructuredError, w as UPGRADE_GUIDES_URL } from \"./control-KsXr4fYD.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,MAAM;GACN,OAAO;GACP,SAAS;EACV,GAAG;GACF,MAAM;GACN,OAAO;GACP,SAAS;EACV,CAAC;EACD,MAAM,EAAE,IAAI;CACb,CAAC;AACF;;;;;;;;;;AAUA,SAAS,mCAAmC,KAAK,yBAAyB;CACzE,OAAO,IAAI,mBAAmB,oCAAoC,wDAAwD;EACzH,KAAK,4BAA4B,KAAK,IAAI,oBAAoB,IAAI,gHAAgH,4BAA4B,oBAAoB,IAAI;EACtO,KAAK;EACL,MAAM;GACL;GACA,GAAG,4BAA4B,KAAK,IAAI,EAAE,cAAc,wBAAwB,IAAI,CAAC;EACtF;CACD,CAAC;AACF;;;;;;;;;AASA,SAAS,6BAA6B,SAAS;CAC9C,OAAO,IAAI,mBAAmB,6BAA6B,iDAAiD;EAC3G,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,8 +1,8 @@
|
|
|
1
|
-
import { G as PslSpan } from "./framework-authoring-
|
|
2
|
-
import { o as TaggedLiteralCanonicalization } from "./temporal-presets-
|
|
3
|
-
import "./authoring-
|
|
4
|
-
import "./psl-ast-
|
|
5
|
-
import { h as PslParserOptions, r as ContractSourceDiagnostic } from "./config-types-
|
|
1
|
+
import { G as PslSpan } from "./framework-authoring-hZgq-M2K-Daz3kgWL.mjs";
|
|
2
|
+
import { o as TaggedLiteralCanonicalization } from "./temporal-presets-Cumws2z--DcYWooYJ.mjs";
|
|
3
|
+
import "./authoring-BKO7sRLw.mjs";
|
|
4
|
+
import "./psl-ast-rf0UoVty.mjs";
|
|
5
|
+
import { h as PslParserOptions, r as ContractSourceDiagnostic } from "./config-types-CfdMN7t-.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-BCae0181.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-CJtBvEYy-
|
|
1
|
+
{"version":3,"file":"parse-CJtBvEYy-BCae0181.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,cAAc;EACd,eAAe;;cAEH;;WAEH,OAAO;WACP;WACA,QAAQ;;WAER;EACT,YAAY,OAAO,WAAW,gBAAgB,QAAQ,wBAAwB;EAC9E,QAAQ,gBAAgB;MACpB,QAAQ;MACR;MACA;;EAEJ,SAAS;EACT,UAAU;MACN,cAAc;MACd,aAAa;MACb,eAAe;MACf,eAAe;;MAEf,sBAAsB;;MAEtB,sBAAsB;;MAEtB,cAAc;;MAEd,aAAa;EACjB,YAAY,SAAS;EACrB,cAAc,SAAS;EACvB,QAAQ;EACR,aAAa,SAAS;;EAEtB,aAAa,GAAG,OAAO,MAAM,eAAe,gBAA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AS;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 { G as PslSpan, N as ContributedPslDiagnosticCode, R as PslDiagnosticCode, z as PslExtensionBlock } from "./framework-authoring-
|
|
2
|
-
//#region ../../../1-framework/1-core/framework-components/dist/psl-ast-
|
|
1
|
+
import { G as PslSpan, N as ContributedPslDiagnosticCode, R as PslDiagnosticCode, z as PslExtensionBlock } from "./framework-authoring-hZgq-M2K-Daz3kgWL.mjs";
|
|
2
|
+
//#region ../../../1-framework/1-core/framework-components/dist/psl-ast-BIJIW24G.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-BIJIW24G-B8ptjyuO.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"psl-ast-
|
|
1
|
+
{"version":3,"file":"psl-ast-BIJIW24G-B8ptjyuO.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/psl-ast-BIJIW24G.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,17 +1,17 @@
|
|
|
1
1
|
import { v as DataTypeId } from "./codec-types-DjozIOvT-BIcpyFea.mjs";
|
|
2
2
|
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
3
|
-
import { B as PslExtensionBlockAttribute, C as AuthoringPslBlockDescriptorNamespace, F as DataTypeSupport, G as PslSpan, H as PslExtensionBlockParsedAttribute, L as ParsedPslExtensionBlock, R as PslDiagnosticCode, S as AuthoringPslBlockDescriptor, U as PslExtensionBlockPrintEntry, V as PslExtensionBlockAttributeArg, W as PslPosition, Z as WrittenScalar, z as PslExtensionBlock } from "./framework-authoring-
|
|
3
|
+
import { B as PslExtensionBlockAttribute, C as AuthoringPslBlockDescriptorNamespace, F as DataTypeSupport, G as PslSpan, H as PslExtensionBlockParsedAttribute, L as ParsedPslExtensionBlock, R as PslDiagnosticCode, S as AuthoringPslBlockDescriptor, U as PslExtensionBlockPrintEntry, V as PslExtensionBlockAttributeArg, W as PslPosition, Z as WrittenScalar, z as PslExtensionBlock } from "./framework-authoring-hZgq-M2K-Daz3kgWL.mjs";
|
|
4
4
|
import { r as ControlMutationDefaultRegistry } from "./mutation-default-types-js6llINX-WGmpaAAL.mjs";
|
|
5
|
-
import "./authoring-
|
|
5
|
+
import "./authoring-BKO7sRLw.mjs";
|
|
6
6
|
import "./codec-DkiEF2cQ.mjs";
|
|
7
|
-
import { D as GeneratorPhase, w as GeneratorFunctionRegistry } from "./framework-components-
|
|
8
|
-
import "./components-
|
|
9
|
-
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-
|
|
10
|
-
import { r as AssembledAuthoringContributions } from "./control-
|
|
11
|
-
import "./psl-ast-
|
|
7
|
+
import { D as GeneratorPhase, w as GeneratorFunctionRegistry } from "./framework-components-B-yaLbst-nZJUGMuf.mjs";
|
|
8
|
+
import "./components-D-8GZwNo.mjs";
|
|
9
|
+
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-BIJIW24G-B8ptjyuO.mjs";
|
|
10
|
+
import { r as AssembledAuthoringContributions } from "./control-7DsPHRLi.mjs";
|
|
11
|
+
import "./psl-ast-rf0UoVty.mjs";
|
|
12
12
|
import { i as isPslIdentifier } from "./tokenizer-i8RaVWVa-7fRwlCPP.mjs";
|
|
13
|
-
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-
|
|
14
|
-
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-
|
|
13
|
+
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-BCae0181.mjs";
|
|
14
|
+
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-WS9-1Mu9-MJi8x3Gm.mjs";
|
|
15
15
|
//#region ../../../1-framework/2-authoring/psl-parser/dist/index.d.mts
|
|
16
16
|
//#region src/attribute-helpers.d.ts
|
|
17
17
|
declare function getPositionalArgument(attribute: PslAttribute, index?: number): string | undefined;
|
|
@@ -85,8 +85,13 @@ declare function blockAttribute<const Pos extends readonly PositionalParam<unkno
|
|
|
85
85
|
declare function bool(): BoolArgType<AttributeCtx>;
|
|
86
86
|
//#endregion
|
|
87
87
|
//#region src/attribute-spec/combinators/data-type-value.d.ts
|
|
88
|
-
/** An argument typed by a data type: any literal, admitted by the ADR 254 cast rule. Used as a parameter of an attribute, a block or a `funcCall
|
|
89
|
-
declare function dataTypeValue(dataType: DataTypeId, support: DataTypeSupport
|
|
88
|
+
/** An argument typed by a data type: any literal, admitted by the ADR 254 cast rule. Used as a parameter of an attribute, a block or a `funcCall`; `oneOf` refuses it as an arm. ADR 231, ADR 254, ADR 268. */
|
|
89
|
+
declare function dataTypeValue(dataType: DataTypeId, support: DataTypeSupport, options?: {
|
|
90
|
+
/** Written values offered for completion besides the tags. */
|
|
91
|
+
readonly suggestions?: readonly string[];
|
|
92
|
+
/** The label shown for the argument in place of the forms its type admits, such as the values a function takes. */
|
|
93
|
+
readonly label?: string;
|
|
94
|
+
}): DataTypeValueArgType<AttributeCtx>;
|
|
90
95
|
//#endregion
|
|
91
96
|
//#region src/attribute-spec/combinators/diagnostic.d.ts
|
|
92
97
|
declare function leafDiagnostic(ctx: Pick<AttributeCtx, 'sources'>, node: AstNode, message: string, code?: PslDiagnostic['code']): PslDiagnostic;
|
|
@@ -105,7 +110,9 @@ declare function fieldRef(): FieldRefArgType<ModelAttributeCtx>;
|
|
|
105
110
|
declare function referencedFieldRef(): ReferencedFieldRefArgType<FieldAttributeCtx>;
|
|
106
111
|
//#endregion
|
|
107
112
|
//#region src/attribute-spec/combinators/func-call.d.ts
|
|
108
|
-
declare function funcCall<const Name extends string, Ctx extends AttributeCtx, const Signature extends FuncCallSig<Ctx>>(name: Name, sig: Signature & FuncCallSig<Ctx
|
|
113
|
+
declare function funcCall<const Name extends string, Ctx extends AttributeCtx, const Signature extends FuncCallSig<Ctx>>(name: Name, sig: Signature & FuncCallSig<Ctx>, options?: {
|
|
114
|
+
readonly label?: string;
|
|
115
|
+
}): FuncCallArgType<Name, Ctx, Signature>;
|
|
109
116
|
//#endregion
|
|
110
117
|
//#region src/attribute-spec/combinators/identifier.d.ts
|
|
111
118
|
declare function identifier(): UnrestrictedIdentifierArgType<AttributeCtx>;
|
|
@@ -146,6 +153,10 @@ declare function list<T, Ctx extends AttributeCtx>(of: ArgType<T, Ctx>, opts?: L
|
|
|
146
153
|
* through unchanged.
|
|
147
154
|
*/
|
|
148
155
|
declare function mapArg<In, Out, Ctx extends AttributeCtx>(arm: ArgType<In, Ctx>, map: (value: In, arg: ExpressionAst, ctx: Ctx) => Out): ArgType<Out, Ctx>;
|
|
156
|
+
/**
|
|
157
|
+
* `arm`, with the value it parses passed through `refine`, which may refuse it. The result keeps the arm's `kind`, `label` and metadata, as `mapArg` does. A refusal of the arm passes through without running `refine`.
|
|
158
|
+
*/
|
|
159
|
+
declare function refineArg<In, Out, Ctx extends AttributeCtx>(arm: ArgType<In, Ctx>, refine: (value: In, arg: ExpressionAst, ctx: Ctx) => Result<Out, readonly PslDiagnostic[]>): ArgType<Out, Ctx>;
|
|
149
160
|
//#endregion
|
|
150
161
|
//#region src/attribute-spec/combinators/num.d.ts
|
|
151
162
|
/** The pinned form retains its value as the output literal type. */
|
|
@@ -219,6 +230,10 @@ declare function fieldAttribute<const Pos extends readonly PositionalParam<unkno
|
|
|
219
230
|
//#region src/attribute-spec/generator-attribute.d.ts
|
|
220
231
|
/** The source text of a node, as the author wrote it. */
|
|
221
232
|
declare function nodeSourceText(node: AstNode, ctx: Pick<AttributeCtx, 'sources'>): string;
|
|
233
|
+
/**
|
|
234
|
+
* A call to the generator function `name`, with its signature built from the stack's data types when it is written as a function of them. Its binding diagnostics name it as a generator function.
|
|
235
|
+
*/
|
|
236
|
+
declare function generatorFunctionCall(name: string, signature: unknown, dataTypes: DataTypeSupport): ArgType<TypedFuncCall, AttributeCtx>;
|
|
222
237
|
/** The spec of `@onCreate(fn())` or `@onUpdate(fn())`, offering the generator functions bound to the field's codec. */
|
|
223
238
|
declare function generatorAttributeSpec(phase: GeneratorPhase): (ctx: FieldAttributeSpecContext) => AttributeSpec<{
|
|
224
239
|
value: TypedFuncCall;
|
|
@@ -226,7 +241,7 @@ declare function generatorAttributeSpec(phase: GeneratorPhase): (ctx: FieldAttri
|
|
|
226
241
|
//#endregion
|
|
227
242
|
//#region src/attribute-spec/interpret.d.ts
|
|
228
243
|
interface ArgBindingSpec<Ctx extends AttributeCtx> {
|
|
229
|
-
readonly
|
|
244
|
+
readonly label: string;
|
|
230
245
|
readonly positional: readonly PositionalParam<unknown, Ctx>[];
|
|
231
246
|
readonly named: Readonly<Record<string, Param<unknown, Ctx>>>;
|
|
232
247
|
}
|
|
@@ -338,5 +353,5 @@ type WrittenScalarResult = {
|
|
|
338
353
|
/** Reads a PSL literal expression as a `WrittenScalar`, for a position that takes a value of a data type. ADR 254. */
|
|
339
354
|
declare function readWrittenScalar(expression: ExpressionAst): WrittenScalarResult;
|
|
340
355
|
//#endregion
|
|
341
|
-
export { type ArgBindingSpec, type ArgType, type ArgTypeKind, type AssembledAttributeSpecs, type AttributeCtx, type AttributeLevel, type AttributeOut, type AttributeSpec, type AttributeSpecContext, type AttributeSpecNamespace, type AttributeSymbol, type Binder, type BinderContext, type BinderResult, type BlockAttributeCtx, type BlockAttributeSpecFactory, type BlockEntryValueSpec, type BlockSpec, type BlockSpecContext, type BlockSpecFactory, type BlockSymbol, type BoundSpec, type BuildSymbolTableOptions, type CompositeTypeSymbol, type ConstantSymbol, type ContributedMember, type ContributedNamespaceSymbol, type ContributedTypeDescriptor, type ContributedTypeNamespace, type ContributedTypeScope, type ContributedTypeSymbol, type CreateBinderInput, type DataTypeValueArgType, type DeclarationFor, type DescribeUnresolvedType, type DescribeUnsupportedAttribute, type DiagnosticSource, EMPTY_DATA_TYPES, type EntityDeclaration, type EntityRefArgType, type EntitySelector, type FieldAttributeCtx, type FieldAttributeSpecContext, type FieldAttributeSpecFactory, type FieldSymbol, type FixedIdentifierArgType, type FixedNumArgType, type FuncCallSig, type FunctionSymbol, type IdentifierArgType, type InferAttr, type InferBlock, type InspectableArgType, type IntArgType, type InterpretExtensionBlockAttributesInput, type InterpretExtensionBlockInput, type InterpretExtensionBlocksResult, type JsonValueArgType, type ListOptions, type MapBlockSpec, type MixinSymbol, type ModelAttributeCtx, type ModelAttributeSpecFactory, type ModelSymbol, NAME_THE_PSL_SOURCE_LOSES, type NamedOut, type NamedTypeSymbol, type NamespaceSymbol, type NullArgType, type NumLiteral, type OneOfArgType, type OptionalArgType, type OutOf, PSL_UNRESOLVED_REFERENCE, type Param, type ParameterSymbol, type ParsedPslExtensionBlock, type ParsedTaggedLiteral, type ParsedTypedValue, type ParsedWrittenList, type ParsedWrittenScalar, type PosOut, type PositionalParam, type PslAttribute, type PslAttributeArgument, type PslAttributeNamedArgument, type PslAttributePositionalArgument, type PslAttributeTarget, type PslBlockSpecDescriptor, type PslCompositeType, type PslDefaultFunctionValue, type PslDefaultLiteralValue, type PslDefaultValue, type PslDiagnostic, type PslDiagnosticCode, type PslDiagnosticCollector, type PslDocumentAst, type PslExtensionBlock, type PslExtensionBlockAttribute, type PslExtensionBlockAttributeArg, type PslExtensionBlockParsedAttribute, type PslExtensionBlockPrintEntry, type PslField, type PslFieldAttribute, type PslModel, type PslModelAttribute, type PslNamedTypeDeclaration, type PslNamespace, type PslPosition, type PslSpan, type PslSymbol, type PslTypeConstructorCall, type PslTypesBlock, type RejectingArgType, type Resolution, type ResolvedAttribute, type ResolvedAttributeArg, type ResolvedEntityReference, type ResolvedNamedTypeBinding, type ResolvedTypeConstructorCall, type Scope, type ScopeResolution, type StructBlockSpec, type SymbolTable, type SymbolTableResult, type TaggedLiteralArgType, type TypedFuncCall, type UnresolvedTypeReference, type UnrestrictedIdentifierArgType, type UnrestrictedNumArgType, type UnsupportedAttribute, type WrittenScalarResult, assembleAttributeSpecs, blockAttribute, blockSpecContext, blockSpecFactoryOf, bool, buildSymbolTable, contributedTypeOf, createBinder, createPslDiagnosticCollector, dataTypeValue, diagnosticFromSpan, diagnosticSource, entityRef, entityReference, enumMemberValue, fieldAttribute, fieldRef, findBlockDescriptor, flatPslModels, funcCall, generatorAttributeSpec, getPositionalArgument, identifier, int, interpretArgs, interpretAttribute, interpretExtensionBlock, interpretExtensionBlockAttributes, interpretExtensionBlocks, isNamespaceLike, isPrismaNextSchema, isPslIdentifier, json, jsonValue, keywordPslSpan, leafDiagnostic, list, mapArg, mapBlock, mapPslDiagnostics, matchesSelector, memberEntries, modelAttribute, namespacePslExtensionBlocks, nodePslSpan, nodeSourceText, num, numLiteral, oneOf, optional, parseQuotedStringLiteral, readResolvedAttribute, readResolvedAttributes, readResolvedConstructorCall, readWrittenScalar, record, referencedFieldRef, renameLegacyDirective, str, structBlock, taggedLiteral, typeReferenceNode, writtenList, writtenScalar };
|
|
356
|
+
export { type ArgBindingSpec, type ArgType, type ArgTypeKind, type AssembledAttributeSpecs, type AttributeCtx, type AttributeLevel, type AttributeOut, type AttributeSpec, type AttributeSpecContext, type AttributeSpecNamespace, type AttributeSymbol, type Binder, type BinderContext, type BinderResult, type BlockAttributeCtx, type BlockAttributeSpecFactory, type BlockEntryValueSpec, type BlockSpec, type BlockSpecContext, type BlockSpecFactory, type BlockSymbol, type BoundSpec, type BuildSymbolTableOptions, type CompositeTypeSymbol, type ConstantSymbol, type ContributedMember, type ContributedNamespaceSymbol, type ContributedTypeDescriptor, type ContributedTypeNamespace, type ContributedTypeScope, type ContributedTypeSymbol, type CreateBinderInput, type DataTypeValueArgType, type DeclarationFor, type DescribeUnresolvedType, type DescribeUnsupportedAttribute, type DiagnosticSource, EMPTY_DATA_TYPES, type EntityDeclaration, type EntityRefArgType, type EntitySelector, type FieldAttributeCtx, type FieldAttributeSpecContext, type FieldAttributeSpecFactory, type FieldSymbol, type FixedIdentifierArgType, type FixedNumArgType, type FuncCallSig, type FunctionSymbol, type IdentifierArgType, type InferAttr, type InferBlock, type InspectableArgType, type IntArgType, type InterpretExtensionBlockAttributesInput, type InterpretExtensionBlockInput, type InterpretExtensionBlocksResult, type JsonValueArgType, type ListOptions, type MapBlockSpec, type MixinSymbol, type ModelAttributeCtx, type ModelAttributeSpecFactory, type ModelSymbol, NAME_THE_PSL_SOURCE_LOSES, type NamedOut, type NamedTypeSymbol, type NamespaceSymbol, type NullArgType, type NumLiteral, type OneOfArgType, type OptionalArgType, type OutOf, PSL_UNRESOLVED_REFERENCE, type Param, type ParameterSymbol, type ParsedPslExtensionBlock, type ParsedTaggedLiteral, type ParsedTypedValue, type ParsedWrittenList, type ParsedWrittenScalar, type PosOut, type PositionalParam, type PslAttribute, type PslAttributeArgument, type PslAttributeNamedArgument, type PslAttributePositionalArgument, type PslAttributeTarget, type PslBlockSpecDescriptor, type PslCompositeType, type PslDefaultFunctionValue, type PslDefaultLiteralValue, type PslDefaultValue, type PslDiagnostic, type PslDiagnosticCode, type PslDiagnosticCollector, type PslDocumentAst, type PslExtensionBlock, type PslExtensionBlockAttribute, type PslExtensionBlockAttributeArg, type PslExtensionBlockParsedAttribute, type PslExtensionBlockPrintEntry, type PslField, type PslFieldAttribute, type PslModel, type PslModelAttribute, type PslNamedTypeDeclaration, type PslNamespace, type PslPosition, type PslSpan, type PslSymbol, type PslTypeConstructorCall, type PslTypesBlock, type RejectingArgType, type Resolution, type ResolvedAttribute, type ResolvedAttributeArg, type ResolvedEntityReference, type ResolvedNamedTypeBinding, type ResolvedTypeConstructorCall, type Scope, type ScopeResolution, type StructBlockSpec, type SymbolTable, type SymbolTableResult, type TaggedLiteralArgType, type TypedFuncCall, type UnresolvedTypeReference, type UnrestrictedIdentifierArgType, type UnrestrictedNumArgType, type UnsupportedAttribute, type WrittenScalarResult, assembleAttributeSpecs, blockAttribute, blockSpecContext, blockSpecFactoryOf, bool, buildSymbolTable, contributedTypeOf, createBinder, createPslDiagnosticCollector, dataTypeValue, diagnosticFromSpan, diagnosticSource, entityRef, entityReference, enumMemberValue, fieldAttribute, fieldRef, findBlockDescriptor, flatPslModels, funcCall, generatorAttributeSpec, generatorFunctionCall, getPositionalArgument, identifier, int, interpretArgs, interpretAttribute, interpretExtensionBlock, interpretExtensionBlockAttributes, interpretExtensionBlocks, isNamespaceLike, isPrismaNextSchema, isPslIdentifier, json, jsonValue, keywordPslSpan, leafDiagnostic, list, mapArg, mapBlock, mapPslDiagnostics, matchesSelector, memberEntries, modelAttribute, namespacePslExtensionBlocks, nodePslSpan, nodeSourceText, num, numLiteral, oneOf, optional, parseQuotedStringLiteral, readResolvedAttribute, readResolvedAttributes, readResolvedConstructorCall, readWrittenScalar, record, referencedFieldRef, refineArg, renameLegacyDirective, str, structBlock, taggedLiteral, typeReferenceNode, writtenList, writtenScalar };
|
|
342
357
|
//# sourceMappingURL=psl-parser.d.mts.map
|