@prisma/orm-framework 8.0.0-rc.21-dev.5 → 8.0.0-rc.21-dev.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{apply-specifier-default-control-policy-Dlz0iwnK.d.mts → apply-specifier-default-control-policy-BSgLNgKj.d.mts} +2 -2
- package/dist/apply-specifier-default-control-policy-BSgLNgKj.d.mts.map +1 -0
- package/dist/{authoring-C2UAuRfN.d.mts → authoring-BKOoGNxH.d.mts} +58 -6
- package/dist/authoring-BKOoGNxH.d.mts.map +1 -0
- package/dist/{authoring-4wc_1ETR.mjs → authoring-CcfXu8Dz.mjs} +377 -31
- package/dist/authoring-CcfXu8Dz.mjs.map +1 -0
- package/dist/{framework-authoring-ebqZ8M_M-DIDpVcUB.d.mts → authoring-type-choice-CHcRX0RP-CkG1L8a9.d.mts} +113 -29
- package/dist/authoring-type-choice-CHcRX0RP-CkG1L8a9.d.mts.map +1 -0
- package/dist/{binder-BszqDG1t-icu83_4f.d.mts → binder-CMy3WM5A-DRrDzBAq.d.mts} +38 -20
- package/dist/{binder-BszqDG1t-icu83_4f.d.mts.map → binder-CMy3WM5A-DRrDzBAq.d.mts.map} +1 -1
- package/dist/{canonicalization-CyrrXGmj-CeKUkht1.d.mts → canonicalization-BIS6ONYT-VttZI7M4.d.mts} +3 -3
- package/dist/{canonicalization-CyrrXGmj-CeKUkht1.d.mts.map → canonicalization-BIS6ONYT-VttZI7M4.d.mts.map} +1 -1
- package/dist/{codec-CZ3VQq7G.d.mts → codec-h0kvF5B8.d.mts} +4 -3
- package/dist/codec-h0kvF5B8.d.mts.map +1 -0
- package/dist/{codec-types-B4wPvO-K-BqcGrCE-.d.mts → codec-types-B4wPvO-K-BIPFT7EP.d.mts} +2 -2
- package/dist/{codec-types-B4wPvO-K-BqcGrCE-.d.mts.map → codec-types-B4wPvO-K-BIPFT7EP.d.mts.map} +1 -1
- package/dist/{components-BenCVFk4.d.mts → components-BvnVHOK3.d.mts} +5 -5
- package/dist/{components-BenCVFk4.d.mts.map → components-BvnVHOK3.d.mts.map} +1 -1
- package/dist/components.d.mts +17 -17
- package/dist/components.mjs +5 -5
- package/dist/components__authoring.d.mts +4 -4
- package/dist/components__authoring.mjs +3 -3
- package/dist/components__codec.d.mts +2 -2
- package/dist/components__components.d.mts +4 -4
- package/dist/components__control.d.mts +4 -4
- package/dist/components__control.mjs +2 -2
- package/dist/components__emission.d.mts +3 -3
- package/dist/components__execution.d.mts +1 -1
- package/dist/components__ir.d.mts +2 -2
- package/dist/components__ir.mjs +2 -2
- package/dist/components__psl-ast.d.mts +3 -3
- package/dist/components__runtime.d.mts +1 -1
- package/dist/{config-types-BJ79TZCl.d.mts → config-types-De3gHQOy.d.mts} +8 -8
- package/dist/{config-types-BJ79TZCl.d.mts.map → config-types-De3gHQOy.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 +6 -6
- package/dist/contract-authoring.mjs +3 -3
- package/dist/{contract-types-DEIEpzU_-DvAVuBr5.d.mts → contract-types-ib-VnKHG-l9vE5Vd-.d.mts} +22 -8
- package/dist/contract-types-ib-VnKHG-l9vE5Vd-.d.mts.map +1 -0
- package/dist/contract.d.mts +13 -11
- package/dist/contract.mjs +5 -3
- package/dist/contract__apply-specifier-default-control-policy.d.mts +1 -1
- package/dist/contract__enum-accessor.d.mts +1 -1
- package/dist/contract__hashing-utils.d.mts +1 -1
- package/dist/contract__hashing.d.mts +2 -2
- package/dist/contract__resolve-domain-model.d.mts +1 -1
- package/dist/contract__types.d.mts +6 -5
- package/dist/contract__types.mjs +3 -2
- package/dist/contract__validate-domain.d.mts +2 -2
- package/dist/contract__validate-domain.mjs +2 -2
- package/dist/contract__validate-storage.d.mts +2 -0
- package/dist/contract__validate-storage.mjs +2 -0
- package/dist/{control-DLpQIwer.mjs → control-BE0sjzPI.mjs} +6 -2
- package/dist/control-BE0sjzPI.mjs.map +1 -0
- package/dist/{control-BeXOxtXA-BU8y-LiK.d.mts → control-BeXOxtXA-DOfRFBDx.d.mts} +2 -2
- package/dist/{control-BeXOxtXA-BU8y-LiK.d.mts.map → control-BeXOxtXA-DOfRFBDx.d.mts.map} +1 -1
- package/dist/{control-CS1uqJj_.d.mts → control-DanUY6NX.d.mts} +24 -12
- package/dist/control-DanUY6NX.d.mts.map +1 -0
- package/dist/{control-MllEQmML-yjvIIvnf.mjs → control-MllEQmML-BgM0TgK3.mjs} +2 -2
- package/dist/{control-MllEQmML-yjvIIvnf.mjs.map → control-MllEQmML-BgM0TgK3.mjs.map} +1 -1
- package/dist/control-QJnHVB3m.d.mts +1 -0
- package/dist/{declarations-BgUAq1RG-D99LhVXe.mjs → declarations-BgUAq1RG-DvmyJ8LS.mjs} +2 -2
- package/dist/{declarations-BgUAq1RG-D99LhVXe.mjs.map → declarations-BgUAq1RG-DvmyJ8LS.mjs.map} +1 -1
- package/dist/domain-envelope-CJNIHBn_-DBFAmkNL.d.mts +191 -0
- package/dist/domain-envelope-CJNIHBn_-DBFAmkNL.d.mts.map +1 -0
- package/dist/emission-DGYCaKjl.d.mts +2 -0
- package/dist/{emission-types-bX2HmNSC-C9vDMKbg.d.mts → emission-types-bX2HmNSC-vaRddb1_.d.mts} +6 -5
- package/dist/emission-types-bX2HmNSC-vaRddb1_.d.mts.map +1 -0
- package/dist/{enum-accessor-2OZgavDX.d.mts → enum-accessor-BXc2Jseo.d.mts} +4 -3
- package/dist/enum-accessor-BXc2Jseo.d.mts.map +1 -0
- 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-CXXKXfwB.mjs → execution-BkFLjpfc.mjs} +2 -2
- package/dist/{execution-CXXKXfwB.mjs.map → execution-BkFLjpfc.mjs.map} +1 -1
- package/dist/{execution-BWR_z8XI.d.mts → execution-C_12rfIR.d.mts} +2 -2
- package/dist/{execution-BWR_z8XI.d.mts.map → execution-C_12rfIR.d.mts.map} +1 -1
- package/dist/{execution-BPJbNttJ.d.mts → execution-CyddhERj.d.mts} +2 -2
- package/dist/{execution-BPJbNttJ.d.mts.map → execution-CyddhERj.d.mts.map} +1 -1
- package/dist/{expressions-CMQzbnHk-Db8YJA0B.mjs → expressions-CMQzbnHk-B7zBWJ0c.mjs} +2 -2
- package/dist/{expressions-CMQzbnHk-Db8YJA0B.mjs.map → expressions-CMQzbnHk-B7zBWJ0c.mjs.map} +1 -1
- package/dist/field-problems-DMpmScuG-R70w-aDk.mjs +41 -0
- package/dist/field-problems-DMpmScuG-R70w-aDk.mjs.map +1 -0
- package/dist/{framework-components-BqHA1V92-D9j8uXa-.d.mts → framework-components-GBAmsfWO-DUJQpMpU.d.mts} +5 -5
- package/dist/{framework-components-BqHA1V92-D9j8uXa-.d.mts.map → framework-components-GBAmsfWO-DUJQpMpU.d.mts.map} +1 -1
- package/dist/{hashing-D-DHz0zl.d.mts → hashing-Ca2uTBmm.d.mts} +4 -4
- package/dist/{hashing-D-DHz0zl.d.mts.map → hashing-Ca2uTBmm.d.mts.map} +1 -1
- package/dist/{hashing-utils-DiGHKd3b.d.mts → hashing-utils-daflaalA.d.mts} +2 -2
- package/dist/{hashing-utils-DiGHKd3b.d.mts.map → hashing-utils-daflaalA.d.mts.map} +1 -1
- package/dist/ids__runtime.d.mts +1 -1
- package/dist/{ir-uDGU9vaj.mjs → ir-B7QKO3dq.mjs} +18 -2
- package/dist/ir-B7QKO3dq.mjs.map +1 -0
- package/dist/{ir-LV4tXsw3.d.mts → ir-DoVMhmqa.d.mts} +10 -25
- package/dist/ir-DoVMhmqa.d.mts.map +1 -0
- package/dist/{migration-Dk1sYIvs.d.mts → migration-B7ur91Et.d.mts} +2 -2
- package/dist/{migration-Dk1sYIvs.d.mts.map → migration-B7ur91Et.d.mts.map} +1 -1
- package/dist/{migration-B1TEF2ij.mjs → migration-CQufZA_7.mjs} +2 -2
- package/dist/{migration-B1TEF2ij.mjs.map → migration-CQufZA_7.mjs.map} +1 -1
- package/dist/{parse-bZgfjovA-CaBuZnet.mjs → parse-bZgfjovA-Vk8LMIu5.mjs} +3 -3
- package/dist/{parse-bZgfjovA-CaBuZnet.mjs.map → parse-bZgfjovA-Vk8LMIu5.mjs.map} +1 -1
- package/dist/{parse-djL5wker-DnMlKOii.d.mts → parse-djL5wker-4_2Cqwev.d.mts} +6 -6
- package/dist/{parse-djL5wker-DnMlKOii.d.mts.map → parse-djL5wker-4_2Cqwev.d.mts.map} +1 -1
- package/dist/{psl-ast-0oMzInxd-Nx9cHmcc.d.mts → psl-ast-B4ZxpQdr-DT9LRqBC.d.mts} +3 -3
- package/dist/{psl-ast-0oMzInxd-Nx9cHmcc.d.mts.map → psl-ast-B4ZxpQdr-DT9LRqBC.d.mts.map} +1 -1
- package/dist/psl-ast-Dsf1-QLK.d.mts +2 -0
- package/dist/psl-parser.d.mts +24 -15
- package/dist/psl-parser.d.mts.map +1 -1
- package/dist/psl-parser.mjs +29 -43
- package/dist/psl-parser.mjs.map +1 -1
- package/dist/psl-parser__format.d.mts +1 -1
- package/dist/psl-parser__format.mjs +3 -3
- package/dist/psl-parser__interpret.d.mts +65 -23
- package/dist/psl-parser__interpret.d.mts.map +1 -1
- package/dist/psl-parser__interpret.mjs +135 -140
- package/dist/psl-parser__interpret.mjs.map +1 -1
- package/dist/psl-parser__syntax.d.mts +1 -1
- package/dist/psl-parser__syntax.mjs +3 -3
- package/dist/psl-printer.d.mts +4 -4
- package/dist/psl-printer.mjs +1 -1
- package/dist/{resolve-domain-model-BNr1glea-BLuR-phK.d.mts → resolve-domain-model-CZ5E6qxa-Caq2Becx.d.mts} +3 -3
- package/dist/resolve-domain-model-CZ5E6qxa-Caq2Becx.d.mts.map +1 -0
- package/dist/{runtime-CTJc8PII.d.mts → runtime-BERs-lBJ.d.mts} +4 -4
- package/dist/{runtime-CTJc8PII.d.mts.map → runtime-BERs-lBJ.d.mts.map} +1 -1
- package/dist/storage-value-objects-Di8Cowdl-QNqJXkk0.mjs +28 -0
- package/dist/storage-value-objects-Di8Cowdl-QNqJXkk0.mjs.map +1 -0
- package/dist/{temporal-type-aliases-C9tIy4rv-Dsun86cY.mjs → temporal-type-aliases-BI3SL5iB-DIP8j4Gv.mjs} +383 -172
- package/dist/temporal-type-aliases-BI3SL5iB-DIP8j4Gv.mjs.map +1 -0
- package/dist/{temporal-type-aliases-BIiamFSH-BrpK13hf.d.mts → temporal-type-aliases-D5QWPhYa-BNKiNvmd.d.mts} +4 -4
- package/dist/{temporal-type-aliases-BIiamFSH-BrpK13hf.d.mts.map → temporal-type-aliases-D5QWPhYa-BNKiNvmd.d.mts.map} +1 -1
- package/dist/type-constructor-calls-Bfg5ojed-DYHnzC9z.mjs +538 -0
- package/dist/type-constructor-calls-Bfg5ojed-DYHnzC9z.mjs.map +1 -0
- package/dist/{types-B8ULzMAX.mjs → types-Boh5NGDz.mjs} +52 -9
- package/dist/types-Boh5NGDz.mjs.map +1 -0
- package/dist/types-CkFfDIud-C1u8M2UE.d.mts +196 -0
- package/dist/types-CkFfDIud-C1u8M2UE.d.mts.map +1 -0
- package/dist/{types-GNXJ7xW2.d.mts → types-Dh_AMVRf.d.mts} +145 -25
- package/dist/types-Dh_AMVRf.d.mts.map +1 -0
- package/dist/{types-import-spec-Bkh243Hv-B-fdw0Wl.d.mts → types-import-spec-Bkh243Hv-BI9m5WFL.d.mts} +3 -3
- package/dist/{types-import-spec-Bkh243Hv-B-fdw0Wl.d.mts.map → types-import-spec-Bkh243Hv-BI9m5WFL.d.mts.map} +1 -1
- package/dist/{validate-domain-CbXHDYpF.mjs → validate-domain-KUhPCj7i.mjs} +18 -35
- package/dist/validate-domain-KUhPCj7i.mjs.map +1 -0
- package/dist/{validate-domain-B5kmlBFB.d.mts → validate-domain-eU07L3vi.d.mts} +7 -3
- package/dist/{validate-domain-B5kmlBFB.d.mts.map → validate-domain-eU07L3vi.d.mts.map} +1 -1
- package/dist/validate-storage-CGeJ-62G.mjs +31 -0
- package/dist/validate-storage-CGeJ-62G.mjs.map +1 -0
- package/dist/validate-storage-ChcQuhTb.d.mts +10 -0
- package/dist/validate-storage-ChcQuhTb.d.mts.map +1 -0
- package/package.json +16 -15
- package/dist/apply-specifier-default-control-policy-Dlz0iwnK.d.mts.map +0 -1
- package/dist/authoring-4wc_1ETR.mjs.map +0 -1
- package/dist/authoring-C2UAuRfN.d.mts.map +0 -1
- package/dist/codec-CZ3VQq7G.d.mts.map +0 -1
- package/dist/contract-types-DEIEpzU_-DvAVuBr5.d.mts.map +0 -1
- package/dist/control-B3OS8JEw.d.mts +0 -1
- package/dist/control-CS1uqJj_.d.mts.map +0 -1
- package/dist/control-DLpQIwer.mjs.map +0 -1
- package/dist/domain-envelope-CN721GnP-4huRt7Wc.d.mts +0 -373
- package/dist/domain-envelope-CN721GnP-4huRt7Wc.d.mts.map +0 -1
- package/dist/emission-ByTWEe2j.d.mts +0 -2
- package/dist/emission-types-bX2HmNSC-C9vDMKbg.d.mts.map +0 -1
- package/dist/enum-accessor-2OZgavDX.d.mts.map +0 -1
- package/dist/framework-authoring-ebqZ8M_M-DIDpVcUB.d.mts.map +0 -1
- package/dist/ir-LV4tXsw3.d.mts.map +0 -1
- package/dist/ir-uDGU9vaj.mjs.map +0 -1
- package/dist/psl-ast-CFQfCJeM.d.mts +0 -2
- package/dist/resolve-domain-model-BNr1glea-BLuR-phK.d.mts.map +0 -1
- package/dist/temporal-type-aliases-C9tIy4rv-Dsun86cY.mjs.map +0 -1
- package/dist/type-constructor-calls-CNd1Xlw2-CfYTYNSm.mjs +0 -306
- package/dist/type-constructor-calls-CNd1Xlw2-CfYTYNSm.mjs.map +0 -1
- package/dist/types-B8ULzMAX.mjs.map +0 -1
- package/dist/types-GNXJ7xW2.d.mts.map +0 -1
- package/dist/validate-domain-CbXHDYpF.mjs.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { t as ContractValidationError } from "./contract-validation-error-CAnTGhkt-DSnujRaK.mjs";
|
|
2
|
-
import { t as
|
|
2
|
+
import { t as isPlainRecord } from "./is-plain-record-CUofyVQ7-DWEzdhIx.mjs";
|
|
3
3
|
import { t as asNamespaceId } from "./namespace-id-asbWpwMw-3yxn-tRe.mjs";
|
|
4
|
+
import { n as fieldModifierProblems, r as valueObjectTypeProblems, t as fieldLike } from "./field-problems-DMpmScuG-R70w-aDk.mjs";
|
|
4
5
|
//#region ../../../1-framework/0-foundation/contract/dist/validate-domain.mjs
|
|
5
6
|
function indexDomainModels(contract) {
|
|
6
7
|
const index = /* @__PURE__ */ new Map();
|
|
@@ -25,8 +26,17 @@ function lookupModel(index, ref) {
|
|
|
25
26
|
function* iterateIndexedModels(index) {
|
|
26
27
|
for (const modelsInNamespace of index.values()) for (const entry of modelsInNamespace.values()) yield entry;
|
|
27
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* The keys an older contract stores in its domain plane that a contract no longer has: value objects, which are storage entities since ADR 309. A family's structural validation reports these before anything else, so an old contract is refused with a message that says to re-emit it.
|
|
31
|
+
*/
|
|
32
|
+
function removedDomainKeyProblems(contract) {
|
|
33
|
+
if (!isPlainRecord(contract) || !isPlainRecord(contract["domain"])) return [];
|
|
34
|
+
const namespaces = contract["domain"]["namespaces"];
|
|
35
|
+
if (!isPlainRecord(namespaces)) return [];
|
|
36
|
+
return Object.entries(namespaces).flatMap(([namespaceId, namespace]) => isPlainRecord(namespace) && Object.hasOwn(namespace, "valueObjects") ? [`domain.namespaces.${namespaceId}.valueObjects: contracts no longer store value objects in the domain plane; they are storage entities under storage.namespaces.<namespace>.entries.valueObject, so re-emit the contract from its source, or rewrite a stored contract such as a migration snapshot with value-objects-in-storage.ts, which ships in the value-objects-in-storage scripts of the Prisma 8 upgrade guide`] : []);
|
|
37
|
+
}
|
|
28
38
|
function validateContractDomain(contract) {
|
|
29
|
-
const errors = [];
|
|
39
|
+
const errors = [...removedDomainKeyProblems(contract)];
|
|
30
40
|
const modelIndex = indexDomainModels(contract);
|
|
31
41
|
validateRoots(contract, modelIndex, errors);
|
|
32
42
|
validateVariantsAndBases(modelIndex, errors);
|
|
@@ -35,7 +45,7 @@ function validateContractDomain(contract) {
|
|
|
35
45
|
validateDiscriminators(modelIndex, errors);
|
|
36
46
|
validateOwnership(contract, modelIndex, errors);
|
|
37
47
|
validateValueObjectReferences(contract, errors);
|
|
38
|
-
validateFieldModifiers(modelIndex,
|
|
48
|
+
validateFieldModifiers(modelIndex, errors);
|
|
39
49
|
if (errors.length > 0) throw new ContractValidationError(`Contract domain validation failed:\n- ${errors.join("\n- ")}`, "domain");
|
|
40
50
|
}
|
|
41
51
|
function validateRoots(contract, modelIndex, errors) {
|
|
@@ -123,42 +133,15 @@ function validateOwnership(contract, modelIndex, errors) {
|
|
|
123
133
|
}
|
|
124
134
|
}
|
|
125
135
|
function validateValueObjectReferences(contract, errors) {
|
|
126
|
-
const voNamesByNamespace = /* @__PURE__ */ new Map();
|
|
127
|
-
for (const [namespaceKey, namespace] of Object.entries(contract.domain.namespaces)) {
|
|
128
|
-
const namespaceId = asNamespaceId(namespaceKey);
|
|
129
|
-
voNamesByNamespace.set(namespaceId, new Set(Object.keys(namespace.valueObjects ?? {})));
|
|
130
|
-
}
|
|
131
|
-
function checkType(type, location, namespaceId) {
|
|
132
|
-
if (!type) return;
|
|
133
|
-
const voNames = voNamesByNamespace.get(namespaceId) ?? /* @__PURE__ */ new Set();
|
|
134
|
-
if (type.kind === "valueObject" && type.name && !voNames.has(type.name)) {
|
|
135
|
-
errors.push(`${location} references value object "${namespaceId}:${type.name}" which does not exist in that namespace's valueObjects`);
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
if (type.kind === "union") for (const member of type.members ?? []) checkType(member, location, namespaceId);
|
|
139
|
-
}
|
|
140
136
|
for (const [namespaceKey, namespace] of Object.entries(contract.domain.namespaces)) {
|
|
141
137
|
const namespaceId = asNamespaceId(namespaceKey);
|
|
142
|
-
for (const [modelName, model] of Object.entries(namespace.models)) for (const [fieldName, field] of Object.entries(model.fields))
|
|
143
|
-
for (const [voName, vo] of Object.entries(namespace.valueObjects ?? {})) for (const [fieldName, field] of Object.entries(vo.fields)) checkType(blindCast(field)?.type, `Value object "${namespaceId}:${voName}" field "${fieldName}"`, namespaceId);
|
|
138
|
+
for (const [modelName, model] of Object.entries(namespace.models)) for (const [fieldName, field] of Object.entries(model.fields)) errors.push(...valueObjectTypeProblems(contract.storage, fieldLike(field)?.type, `Model "${namespaceId}:${modelName}" field "${fieldName}"`));
|
|
144
139
|
}
|
|
145
140
|
}
|
|
146
|
-
function validateFieldModifiers(modelIndex,
|
|
147
|
-
|
|
148
|
-
const candidate = blindCast(field);
|
|
149
|
-
const many = candidate?.many;
|
|
150
|
-
const isList = typeof many === "object" && many !== null && !Array.isArray(many) && Object.keys(many).length === 1 && "elementNullable" in many && typeof many.elementNullable === "boolean";
|
|
151
|
-
if (many !== void 0 && many !== false && !isList) errors.push(`${location} has invalid "many"; expected false or an elementNullable descriptor`);
|
|
152
|
-
if (candidate?.elementNullable !== void 0) errors.push(`${location} cannot have sibling "elementNullable"; put it inside "many"`);
|
|
153
|
-
if (isList && candidate?.dict) errors.push(`${location} cannot have both "many" and "dict" modifiers`);
|
|
154
|
-
}
|
|
155
|
-
for (const { namespaceId, name: modelName, model } of iterateIndexedModels(modelIndex)) for (const [fieldName, field] of Object.entries(model.fields)) validateField(`Model "${namespaceId}:${modelName}" field "${fieldName}"`, field);
|
|
156
|
-
for (const [namespaceKey, namespace] of Object.entries(contract.domain.namespaces)) {
|
|
157
|
-
const namespaceId = asNamespaceId(namespaceKey);
|
|
158
|
-
for (const [voName, vo] of Object.entries(namespace.valueObjects ?? {})) for (const [fieldName, field] of Object.entries(vo.fields)) validateField(`Value object "${namespaceId}:${voName}" field "${fieldName}"`, field);
|
|
159
|
-
}
|
|
141
|
+
function validateFieldModifiers(modelIndex, errors) {
|
|
142
|
+
for (const { namespaceId, name: modelName, model } of iterateIndexedModels(modelIndex)) for (const [fieldName, field] of Object.entries(model.fields)) errors.push(...fieldModifierProblems(`Model "${namespaceId}:${modelName}" field "${fieldName}"`, field));
|
|
160
143
|
}
|
|
161
144
|
//#endregion
|
|
162
|
-
export { validateContractDomain as t };
|
|
145
|
+
export { validateContractDomain as n, removedDomainKeyProblems as t };
|
|
163
146
|
|
|
164
|
-
//# sourceMappingURL=validate-domain-
|
|
147
|
+
//# sourceMappingURL=validate-domain-KUhPCj7i.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-domain-KUhPCj7i.mjs","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/validate-domain.mjs"],"sourcesContent":["import { t as asNamespaceId } from \"./namespace-id-asbWpwMw.mjs\";\nimport { t as isPlainRecord } from \"./is-plain-record-CUofyVQ7.mjs\";\nimport { t as ContractValidationError } from \"./contract-validation-error-CAnTGhkt.mjs\";\nimport { n as fieldModifierProblems, r as valueObjectTypeProblems, t as fieldLike } from \"./field-problems-DMpmScuG.mjs\";\n//#region src/validate-domain.ts\nfunction indexDomainModels(contract) {\n\tconst index = /* @__PURE__ */ new Map();\n\tfor (const [namespaceKey, namespace] of Object.entries(contract.domain.namespaces)) {\n\t\tconst namespaceId = asNamespaceId(namespaceKey);\n\t\tlet modelsInNamespace = index.get(namespaceId);\n\t\tif (modelsInNamespace === void 0) {\n\t\t\tmodelsInNamespace = /* @__PURE__ */ new Map();\n\t\t\tindex.set(namespaceId, modelsInNamespace);\n\t\t}\n\t\tfor (const [name, model] of Object.entries(namespace.models)) modelsInNamespace.set(name, {\n\t\t\tnamespaceId,\n\t\t\tname,\n\t\t\tmodel\n\t\t});\n\t}\n\treturn index;\n}\nfunction lookupModel(index, ref) {\n\treturn index.get(ref.namespace)?.get(ref.model);\n}\nfunction* iterateIndexedModels(index) {\n\tfor (const modelsInNamespace of index.values()) for (const entry of modelsInNamespace.values()) yield entry;\n}\n/**\n* The keys an older contract stores in its domain plane that a contract no longer has: value objects, which are storage entities since ADR 309. A family's structural validation reports these before anything else, so an old contract is refused with a message that says to re-emit it.\n*/\nfunction removedDomainKeyProblems(contract) {\n\tif (!isPlainRecord(contract) || !isPlainRecord(contract[\"domain\"])) return [];\n\tconst namespaces = contract[\"domain\"][\"namespaces\"];\n\tif (!isPlainRecord(namespaces)) return [];\n\treturn Object.entries(namespaces).flatMap(([namespaceId, namespace]) => isPlainRecord(namespace) && Object.hasOwn(namespace, \"valueObjects\") ? [`domain.namespaces.${namespaceId}.valueObjects: contracts no longer store value objects in the domain plane; they are storage entities under storage.namespaces.<namespace>.entries.valueObject, so re-emit the contract from its source, or rewrite a stored contract such as a migration snapshot with value-objects-in-storage.ts, which ships in the value-objects-in-storage scripts of the Prisma 8 upgrade guide`] : []);\n}\nfunction validateContractDomain(contract) {\n\tconst errors = [...removedDomainKeyProblems(contract)];\n\tconst modelIndex = indexDomainModels(contract);\n\tvalidateRoots(contract, modelIndex, errors);\n\tvalidateVariantsAndBases(modelIndex, errors);\n\tvalidateRelationTargets(modelIndex, errors);\n\tvalidateRelationNullability(modelIndex, errors);\n\tvalidateDiscriminators(modelIndex, errors);\n\tvalidateOwnership(contract, modelIndex, errors);\n\tvalidateValueObjectReferences(contract, errors);\n\tvalidateFieldModifiers(modelIndex, errors);\n\tif (errors.length > 0) throw new ContractValidationError(`Contract domain validation failed:\\n- ${errors.join(\"\\n- \")}`, \"domain\");\n}\nfunction validateRoots(contract, modelIndex, errors) {\n\tconst seenRootTargets = /* @__PURE__ */ new Map();\n\tfor (const [rootKey, crossRef] of Object.entries(contract.roots)) {\n\t\tlet modelsInNamespace = seenRootTargets.get(crossRef.namespace);\n\t\tif (modelsInNamespace === void 0) {\n\t\t\tmodelsInNamespace = /* @__PURE__ */ new Set();\n\t\t\tseenRootTargets.set(crossRef.namespace, modelsInNamespace);\n\t\t}\n\t\tif (modelsInNamespace.has(crossRef.model)) errors.push(`Duplicate root value: \"${crossRef.namespace}:${crossRef.model}\" is mapped by multiple root keys`);\n\t\tmodelsInNamespace.add(crossRef.model);\n\t\tif (!lookupModel(modelIndex, crossRef)) errors.push(`Root \"${rootKey}\" references model \"${crossRef.namespace}:${crossRef.model}\" which does not exist in domain.namespaces`);\n\t}\n}\nfunction validateVariantsAndBases(modelIndex, errors) {\n\tfor (const { namespaceId, name: modelName, model } of iterateIndexedModels(modelIndex)) {\n\t\tif (model.variants) {\n\t\t\tconst valuesByVariant = /* @__PURE__ */ new Map();\n\t\t\tfor (const [value, variantRef] of Object.entries(model.variants)) {\n\t\t\t\tconst variantKey = JSON.stringify([variantRef.namespace, variantRef.model]);\n\t\t\t\tconst earlierValue = valuesByVariant.get(variantKey);\n\t\t\t\tif (earlierValue !== void 0) errors.push(`Model \"${namespaceId}:${modelName}\" lists variant \"${variantRef.namespace}:${variantRef.model}\" under both discriminator values \"${earlierValue}\" and \"${value}\"`);\n\t\t\t\tvaluesByVariant.set(variantKey, value);\n\t\t\t\tconst variantEntry = lookupModel(modelIndex, variantRef);\n\t\t\t\tif (!variantEntry) {\n\t\t\t\t\terrors.push(`Model \"${namespaceId}:${modelName}\" lists variant \"${variantRef.namespace}:${variantRef.model}\" which does not exist in domain.namespaces`);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tconst variantBase = variantEntry.model.base;\n\t\t\t\tif (variantBase?.namespace !== namespaceId || variantBase?.model !== modelName) errors.push(`Variant \"${variantRef.namespace}:${variantRef.model}\" has base \"${variantBase?.namespace ?? \"?\"}:${variantBase?.model ?? \"(none)\"}\" but expected \"${namespaceId}:${modelName}\"`);\n\t\t\t}\n\t\t}\n\t\tif (model.base) {\n\t\t\tconst baseEntry = lookupModel(modelIndex, model.base);\n\t\t\tif (!baseEntry) {\n\t\t\t\terrors.push(`Model \"${namespaceId}:${modelName}\" has base \"${model.base.namespace}:${model.base.model}\" which does not exist in domain.namespaces`);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (!Object.values(baseEntry.model.variants ?? {}).some((ref) => ref.namespace === namespaceId && ref.model === modelName)) errors.push(`Model \"${namespaceId}:${modelName}\" has base \"${model.base.namespace}:${model.base.model}\" which does not list it as a variant`);\n\t\t}\n\t}\n}\nfunction validateRelationTargets(modelIndex, errors) {\n\tfor (const { namespaceId, name: modelName, model } of iterateIndexedModels(modelIndex)) for (const [relName, relation] of Object.entries(model.relations ?? {})) {\n\t\tif (relation.to.space !== void 0) continue;\n\t\tif (!lookupModel(modelIndex, relation.to)) errors.push(`Relation \"${relName}\" on model \"${namespaceId}:${modelName}\" targets \"${relation.to.namespace}:${relation.to.model}\" which does not exist in domain.namespaces`);\n\t}\n}\nfunction relationKindLabel(relation) {\n\treturn relation.on === void 0 ? \"embed relation\" : `${relation.cardinality} relation`;\n}\nfunction validateRelationNullability(modelIndex, errors) {\n\tfor (const { namespaceId, name: modelName, model } of iterateIndexedModels(modelIndex)) for (const [relName, relation] of Object.entries(model.relations ?? {})) {\n\t\tconst location = `Relation \"${relName}\" on model \"${namespaceId}:${modelName}\"`;\n\t\tif (relation.on !== void 0 && (relation.cardinality === \"1:1\" || relation.cardinality === \"N:1\")) {\n\t\t\tif (relation.nullable !== void 0 && typeof relation.nullable !== \"boolean\") errors.push(`${location} is a ${relation.cardinality} relation and its \"nullable\" must be a boolean`);\n\t\t\tcontinue;\n\t\t}\n\t\tif (relation.nullable !== void 0) errors.push(`${location} is a ${relationKindLabel(relation)} and must not carry \"nullable\"`);\n\t}\n}\nfunction validateDiscriminators(modelIndex, errors) {\n\tfor (const { namespaceId, name: modelName, model } of iterateIndexedModels(modelIndex)) {\n\t\tif (model.discriminator) {\n\t\t\tif (!model.variants || Object.keys(model.variants).length === 0) errors.push(`Model \"${namespaceId}:${modelName}\" has discriminator but no variants`);\n\t\t\tif (!Object.hasOwn(model.fields, model.discriminator.field)) errors.push(`Discriminator field \"${model.discriminator.field}\" is not a field on model \"${namespaceId}:${modelName}\"`);\n\t\t}\n\t\tif (model.variants && Object.keys(model.variants).length > 0 && !model.discriminator) errors.push(`Model \"${namespaceId}:${modelName}\" has variants but no discriminator`);\n\t\tif (model.base) {\n\t\t\tif (model.discriminator) errors.push(`Model \"${namespaceId}:${modelName}\" has base and must not have discriminator`);\n\t\t\tif (model.variants && Object.keys(model.variants).length > 0) errors.push(`Model \"${namespaceId}:${modelName}\" has base and must not have variants`);\n\t\t}\n\t}\n}\nfunction validateOwnership(contract, modelIndex, errors) {\n\tfor (const { namespaceId, name: modelName, model } of iterateIndexedModels(modelIndex)) {\n\t\tif (!model.owner) continue;\n\t\tif (model.owner === modelName) errors.push(`Model \"${namespaceId}:${modelName}\" cannot own itself`);\n\t\tif (!lookupModel(modelIndex, {\n\t\t\tnamespace: namespaceId,\n\t\t\tmodel: model.owner\n\t\t})) errors.push(`Model \"${namespaceId}:${modelName}\" has owner \"${namespaceId}:${model.owner}\" which does not exist in domain.namespaces`);\n\t\tfor (const [rootKey, rootRef] of Object.entries(contract.roots)) if (rootRef.namespace === namespaceId && rootRef.model === modelName) errors.push(`Owned model \"${namespaceId}:${modelName}\" must not appear in roots (found as root \"${rootKey}\")`);\n\t}\n}\nfunction validateValueObjectReferences(contract, errors) {\n\tfor (const [namespaceKey, namespace] of Object.entries(contract.domain.namespaces)) {\n\t\tconst namespaceId = asNamespaceId(namespaceKey);\n\t\tfor (const [modelName, model] of Object.entries(namespace.models)) for (const [fieldName, field] of Object.entries(model.fields)) errors.push(...valueObjectTypeProblems(contract.storage, fieldLike(field)?.type, `Model \"${namespaceId}:${modelName}\" field \"${fieldName}\"`));\n\t}\n}\nfunction validateFieldModifiers(modelIndex, errors) {\n\tfor (const { namespaceId, name: modelName, model } of iterateIndexedModels(modelIndex)) for (const [fieldName, field] of Object.entries(model.fields)) errors.push(...fieldModifierProblems(`Model \"${namespaceId}:${modelName}\" field \"${fieldName}\"`, field));\n}\n//#endregion\nexport { removedDomainKeyProblems, validateContractDomain };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AAM,WAAW,WAAW,qBAAqB,UAAU,GAAG,KAAK,MAAM,CAAC,WAAW,UAAU,OAAO,QAAQ,MAAM,MAAM,GAAG,OAAO,KAAK,GAAG,sBAAsB,UAAU,YAAY,GAAG,UAAU,WAAW,UAAU,IAAI,KAAK,CAAC;AAC/P"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as ContractWithDomain, x as CrossReference } from "./domain-envelope-CJNIHBn_-DBFAmkNL.mjs";
|
|
2
2
|
//#region ../../../1-framework/0-foundation/contract/dist/validate-domain.d.mts
|
|
3
3
|
//#region src/validate-domain.d.ts
|
|
4
4
|
interface DomainRelationShape {
|
|
@@ -20,7 +20,11 @@ interface DomainModelShape {
|
|
|
20
20
|
interface DomainContractShape extends ContractWithDomain {
|
|
21
21
|
readonly roots: Record<string, CrossReference>;
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* The keys an older contract stores in its domain plane that a contract no longer has: value objects, which are storage entities since ADR 309. A family's structural validation reports these before anything else, so an old contract is refused with a message that says to re-emit it.
|
|
25
|
+
*/
|
|
26
|
+
declare function removedDomainKeyProblems(contract: unknown): readonly string[];
|
|
23
27
|
declare function validateContractDomain(contract: DomainContractShape): void;
|
|
24
28
|
//#endregion
|
|
25
|
-
export { DomainModelShape as n,
|
|
26
|
-
//# sourceMappingURL=validate-domain-
|
|
29
|
+
export { validateContractDomain as i, DomainModelShape as n, removedDomainKeyProblems as r, DomainContractShape as t };
|
|
30
|
+
//# sourceMappingURL=validate-domain-eU07L3vi.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate-domain-
|
|
1
|
+
{"version":3,"file":"validate-domain-eU07L3vi.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/validate-domain.d.mts"],"mappings":";;;UAEU;WACC,IAAI;WACJ;WACA;WACA;;UAED;WACC,QAAQ;WACR,YAAY,eAAe;WAC3B;aACE;;WAEF,WAAW,eAAe;WAC1B,OAAO;WACP;;UAED,4BAA4B;WAC3B,OAAO,eAAe;;;;;iBAKhB,yBAAyB;iBACzB,uBAAuB,UAAU"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { t as ContractValidationError } from "./contract-validation-error-CAnTGhkt-DSnujRaK.mjs";
|
|
2
|
+
import { t as isPlainRecord } from "./is-plain-record-CUofyVQ7-DWEzdhIx.mjs";
|
|
3
|
+
import { n as valueObjectsWithCoordinates } from "./storage-value-objects-Di8Cowdl-QNqJXkk0.mjs";
|
|
4
|
+
import { n as fieldModifierProblems, r as valueObjectTypeProblems, t as fieldLike } from "./field-problems-DMpmScuG-R70w-aDk.mjs";
|
|
5
|
+
//#region ../../../1-framework/0-foundation/contract/dist/validate-storage.mjs
|
|
6
|
+
/**
|
|
7
|
+
* Checks the fields of the value objects in storage (ADR 309): each value object a field refers to is in storage, each value set a member names is in storage, and each field's `many` and `dict` are well formed. Both families run it beside `validateContractDomain`, which checks the references from the domain to storage.
|
|
8
|
+
*/
|
|
9
|
+
function validateStorageValueObjects(storage) {
|
|
10
|
+
const errors = valueObjectsWithCoordinates(storage).flatMap(({ coordinate: { namespaceId, entityName }, valueObject }) => Object.entries(valueObject.fields).flatMap(([fieldName, field]) => {
|
|
11
|
+
const location = `Value object "${namespaceId}:${entityName}" field "${fieldName}"`;
|
|
12
|
+
const valueSetProblem = missingValueSetProblem(storage, fieldLike(field)?.valueSet);
|
|
13
|
+
return [
|
|
14
|
+
...valueObjectTypeProblems(storage, fieldLike(field)?.type, location),
|
|
15
|
+
...valueSetProblem === void 0 ? [] : [`${location} ${valueSetProblem}`],
|
|
16
|
+
...fieldModifierProblems(location, field)
|
|
17
|
+
];
|
|
18
|
+
}));
|
|
19
|
+
if (errors.length > 0) throw new ContractValidationError(`Contract storage validation failed:\n- ${errors.join("\n- ")}`, "storage");
|
|
20
|
+
}
|
|
21
|
+
function missingValueSetProblem(storage, valueSet) {
|
|
22
|
+
if (valueSet === void 0) return void 0;
|
|
23
|
+
const namespaceId = valueSet.namespaceId ?? "";
|
|
24
|
+
const entityName = valueSet.entityName ?? "";
|
|
25
|
+
const slot = Object.hasOwn(storage.namespaces, namespaceId) ? storage.namespaces[namespaceId]?.entries?.["valueSet"] : void 0;
|
|
26
|
+
return isPlainRecord(slot) && Object.hasOwn(slot, entityName) ? void 0 : `refers to value set "${entityName}" in storage namespace "${namespaceId}", which storage.namespaces.${namespaceId}.entries.valueSet does not have`;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { validateStorageValueObjects as t };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=validate-storage-CGeJ-62G.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-storage-CGeJ-62G.mjs","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/validate-storage.mjs"],"sourcesContent":["import { t as isPlainRecord } from \"./is-plain-record-CUofyVQ7.mjs\";\nimport { n as valueObjectsWithCoordinates } from \"./storage-value-objects-Di8Cowdl.mjs\";\nimport { t as ContractValidationError } from \"./contract-validation-error-CAnTGhkt.mjs\";\nimport { n as fieldModifierProblems, r as valueObjectTypeProblems, t as fieldLike } from \"./field-problems-DMpmScuG.mjs\";\n//#region src/validate-storage-value-objects.ts\n/**\n* Checks the fields of the value objects in storage (ADR 309): each value object a field refers to is in storage, each value set a member names is in storage, and each field's `many` and `dict` are well formed. Both families run it beside `validateContractDomain`, which checks the references from the domain to storage.\n*/\nfunction validateStorageValueObjects(storage) {\n\tconst errors = valueObjectsWithCoordinates(storage).flatMap(({ coordinate: { namespaceId, entityName }, valueObject }) => Object.entries(valueObject.fields).flatMap(([fieldName, field]) => {\n\t\tconst location = `Value object \"${namespaceId}:${entityName}\" field \"${fieldName}\"`;\n\t\tconst valueSetProblem = missingValueSetProblem(storage, fieldLike(field)?.valueSet);\n\t\treturn [\n\t\t\t...valueObjectTypeProblems(storage, fieldLike(field)?.type, location),\n\t\t\t...valueSetProblem === void 0 ? [] : [`${location} ${valueSetProblem}`],\n\t\t\t...fieldModifierProblems(location, field)\n\t\t];\n\t}));\n\tif (errors.length > 0) throw new ContractValidationError(`Contract storage validation failed:\\n- ${errors.join(\"\\n- \")}`, \"storage\");\n}\nfunction missingValueSetProblem(storage, valueSet) {\n\tif (valueSet === void 0) return void 0;\n\tconst namespaceId = valueSet.namespaceId ?? \"\";\n\tconst entityName = valueSet.entityName ?? \"\";\n\tconst slot = Object.hasOwn(storage.namespaces, namespaceId) ? storage.namespaces[namespaceId]?.entries?.[\"valueSet\"] : void 0;\n\treturn isPlainRecord(slot) && Object.hasOwn(slot, entityName) ? void 0 : `refers to value set \"${entityName}\" in storage namespace \"${namespaceId}\", which storage.namespaces.${namespaceId}.entries.valueSet does not have`;\n}\n//#endregion\nexport { validateStorageValueObjects };\n\n//# sourceMappingURL=validate-storage.mjs.map"],"mappings":";;;;;;;;AAQA,SAAS,4BAA4B,SAAS;CAC7C,MAAM,SAAS,4BAA4B,OAAO,CAAC,CAAC,SAAS,EAAE,YAAY,EAAE,aAAa,cAAc,kBAAkB,OAAO,QAAQ,YAAY,MAAM,CAAC,CAAC,SAAS,CAAC,WAAW,WAAW;EAC5L,MAAM,WAAW,iBAAiB,YAAY,GAAG,WAAW,WAAW,UAAU;EACjF,MAAM,kBAAkB,uBAAuB,SAAS,UAAU,KAAK,CAAC,EAAE,QAAQ;EAClF,OAAO;GACN,GAAG,wBAAwB,SAAS,UAAU,KAAK,CAAC,EAAE,MAAM,QAAQ;GACpE,GAAG,oBAAoB,KAAK,IAAI,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,iBAAiB;GACtE,GAAG,sBAAsB,UAAU,KAAK;EACzC;CACD,CAAC,CAAC;CACF,IAAI,OAAO,SAAS,GAAG,MAAM,IAAI,wBAAwB,0CAA0C,OAAO,KAAK,MAAM,KAAK,SAAS;AACpI;AACA,SAAS,uBAAuB,SAAS,UAAU;CAClD,IAAI,aAAa,KAAK,GAAG,OAAO,KAAK;CACrC,MAAM,cAAc,SAAS,eAAe;CAC5C,MAAM,aAAa,SAAS,cAAc;CAC1C,MAAM,OAAO,OAAO,OAAO,QAAQ,YAAY,WAAW,IAAI,QAAQ,WAAW,YAAY,EAAE,UAAU,cAAc,KAAK;CAC5H,OAAO,cAAc,IAAI,KAAK,OAAO,OAAO,MAAM,UAAU,IAAI,KAAK,IAAI,wBAAwB,WAAW,0BAA0B,YAAY,8BAA8B,YAAY;AAC7L"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { C as StorageBase } from "./types-CkFfDIud-C1u8M2UE.mjs";
|
|
2
|
+
//#region ../../../1-framework/0-foundation/contract/dist/validate-storage.d.mts
|
|
3
|
+
//#region src/validate-storage-value-objects.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Checks the fields of the value objects in storage (ADR 309): each value object a field refers to is in storage, each value set a member names is in storage, and each field's `many` and `dict` are well formed. Both families run it beside `validateContractDomain`, which checks the references from the domain to storage.
|
|
6
|
+
*/
|
|
7
|
+
declare function validateStorageValueObjects(storage: Pick<StorageBase, 'namespaces'>): void;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { validateStorageValueObjects as t };
|
|
10
|
+
//# sourceMappingURL=validate-storage-ChcQuhTb.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-storage-ChcQuhTb.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/validate-storage.d.mts"],"mappings":";;;;;;iBAKiB,4BAA4B,SAAS,KAAK"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-framework",
|
|
3
|
-
"version": "8.0.0-rc.21-dev.
|
|
3
|
+
"version": "8.0.0-rc.21-dev.7",
|
|
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.21-dev.
|
|
20
|
-
"@internal/contract": "8.0.0-rc.21-dev.
|
|
21
|
-
"@internal/contract-authoring": "8.0.0-rc.21-dev.
|
|
22
|
-
"@internal/errors": "8.0.0-rc.21-dev.
|
|
23
|
-
"@internal/framework-components": "8.0.0-rc.21-dev.
|
|
24
|
-
"@internal/ids": "8.0.0-rc.21-dev.
|
|
25
|
-
"@internal/operations": "8.0.0-rc.21-dev.
|
|
26
|
-
"@internal/psl-parser": "8.0.0-rc.21-dev.
|
|
27
|
-
"@internal/psl-printer": "8.0.0-rc.21-dev.
|
|
28
|
-
"@internal/ts-render": "8.0.0-rc.21-dev.
|
|
29
|
-
"@repo/tsconfig": "8.0.0-rc.21-dev.
|
|
30
|
-
"@internal/publish-surface": "8.0.0-rc.21-dev.
|
|
31
|
-
"@repo/tsdown": "8.0.0-rc.21-dev.
|
|
32
|
-
"@internal/utils": "8.0.0-rc.21-dev.
|
|
19
|
+
"@internal/config": "8.0.0-rc.21-dev.7",
|
|
20
|
+
"@internal/contract": "8.0.0-rc.21-dev.7",
|
|
21
|
+
"@internal/contract-authoring": "8.0.0-rc.21-dev.7",
|
|
22
|
+
"@internal/errors": "8.0.0-rc.21-dev.7",
|
|
23
|
+
"@internal/framework-components": "8.0.0-rc.21-dev.7",
|
|
24
|
+
"@internal/ids": "8.0.0-rc.21-dev.7",
|
|
25
|
+
"@internal/operations": "8.0.0-rc.21-dev.7",
|
|
26
|
+
"@internal/psl-parser": "8.0.0-rc.21-dev.7",
|
|
27
|
+
"@internal/psl-printer": "8.0.0-rc.21-dev.7",
|
|
28
|
+
"@internal/ts-render": "8.0.0-rc.21-dev.7",
|
|
29
|
+
"@repo/tsconfig": "8.0.0-rc.21-dev.7",
|
|
30
|
+
"@internal/publish-surface": "8.0.0-rc.21-dev.7",
|
|
31
|
+
"@repo/tsdown": "8.0.0-rc.21-dev.7",
|
|
32
|
+
"@internal/utils": "8.0.0-rc.21-dev.7",
|
|
33
33
|
"tsdown": "0.22.14",
|
|
34
34
|
"typescript": "5.9.3",
|
|
35
35
|
"vitest": "5.0.0-rc.2"
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"./contract/types": "./dist/contract__types.mjs",
|
|
69
69
|
"./contract/validate-domain": "./dist/contract__validate-domain.mjs",
|
|
70
70
|
"./contract/validate-once": "./dist/contract__validate-once.mjs",
|
|
71
|
+
"./contract/validate-storage": "./dist/contract__validate-storage.mjs",
|
|
71
72
|
"./contract-authoring": "./dist/contract-authoring.mjs",
|
|
72
73
|
"./errors": "./dist/errors.mjs",
|
|
73
74
|
"./errors/control": "./dist/errors__control.mjs",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apply-specifier-default-control-policy-Dlz0iwnK.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/apply-specifier-default-control-policy.d.mts"],"mappings":";;;iBAEiB,mCAAmC,UAAU,UAAU,kBAAkB,4BAA4B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authoring-4wc_1ETR.mjs","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/authoring.mjs"],"sourcesContent":["import { a as dataTypeId, o as dataTypeParams } from \"./data-type-DPsP4_9m.mjs\";\nimport { a as readContractValue, o as numeralText, r as enumRefusalOf } from \"./codec-descriptor-BNc32mKN.mjs\";\nimport { t as canonicalizeJson } from \"./canonicalize-json-ZPawceQR.mjs\";\nimport { r as codecForRef } from \"./resolve-codec-qqMjZrmn.mjs\";\nimport { A as isAuthoringEntityTypeDescriptor, B as resolveTypeAliasGenerators, C as flushAuthoringWarnings, D as instantiateAuthoringTypeConstructor, E as instantiateAuthoringTypeAlias, F as isAuthoringTypeDescriptor, H as validateAuthoringTypeParams, L as mergeAuthoringNamespaces, M as isAuthoringPslBlockDescriptor, N as isAuthoringTypeAliasDescriptor, O as instantiateAuthoringTypeConstructorFromValues, P as isAuthoringTypeConstructorDescriptor, R as resolveAuthoringTemplateValue, S as collectScalarTypeConstructors, T as instantiateAuthoringEntityType, V as validateAuthoringHelperArguments, _ as assertNoCrossRegistryCollisions, a as canonicalizeTaggedLiteralBody, b as classifyEnumMemberType, c as printedTaggedLiteralReadsBack, d as tsTaggedTemplateSource, f as assembleAuthoringDataTypes, g as assertNoAuthoringFieldNamespace, h as AUTHORING_TYPE_DESCRIPTOR_KINDS, j as isAuthoringModelAttributeDescriptor, k as isAuthoringArgRef, n as temporalTypeAliases, o as describeTaggedLiteralFailure, p as assembleDataTypeSupport, s as printTaggedLiteral, t as TIMESTAMP_NOW_GENERATOR_ID, u as resolveTemplateTagEscapes, v as assertResolvableTypeConstructorTemplates, w as getAuthoringTypeConstructor, y as assertTypeAliasesValid, z as resolveEnumCodecId } from \"./temporal-type-aliases-C9tIy4rv.mjs\";\nimport { InternalError, isInternalError } from \"@internal/utils/internal-error\";\nimport { notOk, ok } from \"@internal/utils/result\";\nimport { canonicalStringify } from \"@internal/utils/canonical-stringify\";\n//#region src/shared/authoring-type-constructor-call.ts\n/** Every type constructor of `namespace`, with its path, in namespace order. */\nfunction* authoringTypeConstructors(namespace, path = []) {\n\tfor (const [name, value] of Object.entries(namespace)) if (isAuthoringTypeConstructorDescriptor(value)) yield {\n\t\tpath: [...path, name],\n\t\tdescriptor: value\n\t};\n\telse if (!isAuthoringTypeAliasDescriptor(value)) yield* authoringTypeConstructors(value, [...path, name]);\n}\nfunction produces(produced, wanted) {\n\tconst wantedFields = {\n\t\t...wanted,\n\t\ttypeParams: wanted.typeParams ?? {}\n\t};\n\treturn Object.entries({\n\t\t...produced,\n\t\ttypeParams: produced.typeParams ?? {}\n\t}).every(([key, value]) => canonicalizeJson(value) === canonicalizeJson(wantedFields[key]));\n}\n/**\n* The arguments that make `descriptor` produce exactly `output`, when each of its type parameters\n* comes straight from one argument; `undefined` when it cannot produce `output`, including when\n* `output` has no value for an argument the constructor requires.\n*/\nfunction authoringTypeConstructorArguments(descriptor, output) {\n\tif (descriptor.entityRefArg !== void 0 || descriptor.output.codecId !== output.codecId) return;\n\tconst args = [];\n\tfor (const [key, template] of Object.entries(descriptor.output.typeParams ?? {})) {\n\t\tconst value = output.typeParams?.[key];\n\t\tif (value !== void 0 && isAuthoringArgRef(template)) args[template.index] = value;\n\t}\n\tconst requiredArgs = (descriptor.args ?? []).filter((arg) => arg.optional !== true).length;\n\tif (args.length < requiredArgs || Array.from(args).includes(void 0)) return void 0;\n\ttry {\n\t\treturn produces(instantiateAuthoringTypeConstructor(descriptor, args), output) ? args : void 0;\n\t} catch {\n\t\treturn;\n\t}\n}\n/**\n* The first call, in namespace order, to a type constructor in `namespace` that produces exactly\n* `output`. The inverse of {@link instantiateAuthoringTypeConstructor} for constructors whose type\n* parameters each come straight from one argument. A constructor whose argument names another\n* entity is never chosen. `undefined` when no call produces `output`.\n*/\nfunction findAuthoringTypeConstructorCall(namespace, output) {\n\tfor (const { path, descriptor } of authoringTypeConstructors(namespace)) {\n\t\tconst args = authoringTypeConstructorArguments(descriptor, output);\n\t\tif (args !== void 0) return {\n\t\t\tpath,\n\t\t\targs\n\t\t};\n\t}\n}\n//#endregion\n//#region src/shared/enum-stored-members.ts\nfunction storedFormOf(stored) {\n\treturn canonicalStringify(JSON.parse(JSON.stringify(stored)));\n}\n/** The key two stored values are equal by: the data type's `equalityKey` when it declares one, else the stored form as `contract.json` holds it, compared by `canonicalStringify`. */\nfunction storedValueKey(stored, equalityKey) {\n\treturn equalityKey?.(stored) ?? storedFormOf(stored);\n}\n/**\n* Each enum member whose stored form equals an earlier member's, paired with the first such member. Stored forms are compared as `contract.json` holds them, so negative zero is zero, and by `canonicalStringify`, so two objects with the same entries in a different order are equal; or, when the enum's data type declares an `equalityKey`, by that key, so `0.5` and `0.50` are one `numeric` value. Every enum authoring surface refuses the members this returns.\n*/\nfunction duplicateStoredMembers(members, equalityKey) {\n\tconst memberByKey = /* @__PURE__ */ new Map();\n\tconst duplicates = [];\n\tfor (const member of members) {\n\t\tconst { name, stored } = member;\n\t\tconst key = storedValueKey(stored, equalityKey);\n\t\tconst earlier = memberByKey.get(key);\n\t\tif (earlier === void 0) memberByKey.set(key, member);\n\t\telse if (storedFormOf(earlier.stored) === storedFormOf(stored)) duplicates.push({\n\t\t\tearlier: earlier.name,\n\t\t\tlater: name,\n\t\t\tstored\n\t\t});\n\t\telse duplicates.push({\n\t\t\tearlier: earlier.name,\n\t\t\tlater: name,\n\t\t\tstored,\n\t\t\tearlierStored: earlier.stored\n\t\t});\n\t}\n\treturn duplicates;\n}\n//#endregion\n//#region src/shared/written-value.ts\n/**\n* Words a refusal of the cast rule. The message leads with what to write; the types are named only when the value has a form the position admits and its type is still refused, such as a number too large for the receiving type.\n*/\nfunction describeRefusal(refusal, support, guidance) {\n\tswitch (refusal.kind) {\n\t\tcase \"unknown-tag\": return {\n\t\t\tcode: \"PSL_UNKNOWN_LITERAL_TAG\",\n\t\t\tmessage: `Unknown literal tag \"${refusal.tag}\". Known tags: ${refusal.known.join(\", \")}.`\n\t\t};\n\t\tcase \"unwritable\": return {\n\t\t\tcode: \"PSL_VALUE_TYPE_INCOMPATIBLE\",\n\t\t\tmessage: `${describeExpected(guidance.forms)}; this target has no data type for a ${refusal.syntax} value`\n\t\t};\n\t\tcase \"unreadable\":\n\t\tcase \"refused-by-type\": return {\n\t\t\tcode: \"PSL_INVALID_LITERAL\",\n\t\t\tmessage: refusal.message\n\t\t};\n\t\tcase \"no-cast\": return {\n\t\t\tcode: \"PSL_VALUE_TYPE_INCOMPATIBLE\",\n\t\t\tmessage: describeRefusedValueType(refusal, support, guidance)\n\t\t};\n\t}\n}\n/** `Expected <forms>`, the forms joined with `or`: the start of every refusal that says what to write. */\nfunction describeExpected(forms) {\n\treturn `Expected ${joinForms(forms)}`;\n}\n/**\n* Words a value of type `valueType` that `receivingType` refuses, where `guidance.forms` may be written. The types are named only when the value has one of those forms.\n*/\nfunction describeRefusedValueType(refused, support, guidance) {\n\tconst expected = describeExpected(guidance.forms);\n\tconst valueForm = writtenForm(support, refused.valueType);\n\tif (valueForm !== void 0 && guidance.forms.some((form) => isSameForm(form, valueForm))) return `${expected} that ${refused.receivingType} can hold; got ${refused.valueType}`;\n\treturn guidance.rewrite === void 0 ? expected : `${expected}; write ${guidance.rewrite}`;\n}\nfunction isSameForm(a, b) {\n\treturn a.kind === \"tag\" && b.kind === \"tag\" ? a.tag === b.tag : a.kind === b.kind;\n}\n/** Text a contract source reads as a number literal. */\nconst NUMBER_TEXT = /^[+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][+-]?\\d+)?$|^[+-]?(?:NaN|Infinity)$/;\nconst DECIMAL_TEXT = /^([+-]?)0*(\\d*?)(?:\\.(\\d*?))?0*$/;\n/** A decimal numeral in one form: no plus sign, no leading or trailing zeros, the sign of zero kept. Other text is itself. */\nfunction canonicalNumber(text) {\n\tconst match = text.includes(\".\") ? DECIMAL_TEXT.exec(text) : /^([+-]?)0*(\\d*)$/.exec(text);\n\tif (match === null) return text;\n\tconst [, sign = \"\", whole = \"\", fraction = \"\"] = match;\n\treturn `${sign === \"-\" ? \"-\" : \"\"}${whole === \"\" ? \"0\" : whole}${fraction === \"\" ? \"\" : `.${fraction}`}`;\n}\n/** Whether a stored value is the number `text` writes, digit for digit and with its sign, so writing the text unquoted stores what it says. */\nfunction sameNumber(text, stored) {\n\tconst storedText = typeof stored === \"number\" ? Object.is(stored, -0) ? \"-0\" : numeralText(stored) : typeof stored === \"string\" ? stored : void 0;\n\treturn storedText !== void 0 && canonicalNumber(storedText) === canonicalNumber(text);\n}\n/**\n* The literal to write in place of a quoted string that `receivingType` refuses under `receivingParams`: the string as a literal of the first tag the type admits, or else the string's text unquoted, as a number or a boolean. `undefined` when the value is not a quoted string, no such literal reads back as the same text, the type would refuse each of them too, or the number the text writes would be stored as another number, as `-0` is stored without its sign or `9007199254740993` as the nearest double.\n*/\nfunction exactRewrite(support, receiving, written) {\n\tif (written.kind !== \"string\") return void 0;\n\tconst castOf = (candidate) => {\n\t\tconst read = readWrittenValue(support, candidate);\n\t\tif (!read.ok) return void 0;\n\t\tconst cast = castTypedValue(support, receiving.receivingType, receiving.receivingParams, read.value);\n\t\treturn cast.ok ? cast.value : void 0;\n\t};\n\tconst admits = (candidate) => castOf(candidate) !== void 0;\n\tconst [tag] = admittedTags(support, receiving.receivingType);\n\tif (tag !== void 0 && printedTaggedLiteralReadsBack(written.text) && admits({\n\t\tkind: \"tag\",\n\t\ttag,\n\t\ttext: written.text\n\t})) return printTaggedLiteral(tag, written.text);\n\tif (NUMBER_TEXT.test(written.text)) {\n\t\tconst stored = castOf({\n\t\t\tkind: \"number\",\n\t\t\ttext: written.text\n\t\t});\n\t\tif (stored !== void 0 && sameNumber(written.text, stored.value)) return written.text;\n\t}\n\tif ((written.text === \"true\" || written.text === \"false\") && admits({\n\t\tkind: \"boolean\",\n\t\tvalue: written.text === \"true\"\n\t})) return written.text;\n}\nfunction findEntry(support, matches) {\n\tfor (const [key, entry] of Object.entries(support.entries)) if (matches(entry)) return {\n\t\tkey,\n\t\tentry\n\t};\n}\n/** The entry a tag names, or `undefined` when no pack registered that tag. */\nfunction entryForTag(support, tag) {\n\treturn findEntry(support, ({ written }) => written.kind === \"tag\" && written.tag === tag);\n}\n/** The entry that reads a plain string, boolean or number, or `undefined` when none does. */\nfunction entryForPlain(support, syntax) {\n\treturn findEntry(support, ({ written }) => written.kind === \"plain\" && written.syntax === syntax);\n}\n/** Every tag a stack registers, in the order the entries were merged. */\nfunction knownTags(support) {\n\treturn Object.values(support.entries).flatMap((entry) => entry.written.kind === \"tag\" ? [entry.written.tag] : []);\n}\nfunction textOf(written) {\n\treturn written.kind === \"boolean\" ? String(written.value) : written.text;\n}\nfunction messageOf(error) {\n\treturn error instanceof Error ? error.message : String(error);\n}\n/** The value of `type` that `json` gives under `params`, constructed by that type; a refusal is worded for a diagnostic. */\nfunction valueOfType(support, type, json, params, refuse) {\n\tconst declaration = support.lookup.get(type);\n\tif (declaration === void 0) throw new InternalError(`A value of \"${type}\" was written, and this stack does not register it.`);\n\ttry {\n\t\treturn ok(declaration.valueFrom(json(), params));\n\t} catch (error) {\n\t\tif (isInternalError(error)) throw error;\n\t\treturn notOk(refuse(messageOf(error)));\n\t}\n}\n/** Read one written value through the authoring entry for its syntax, as a value its type constructs. */\nfunction readWrittenValue(support, written) {\n\tconst found = written.kind === \"tag\" ? entryForTag(support, written.tag) : entryForPlain(support, written.kind);\n\tif (found === void 0) return written.kind === \"tag\" ? notOk({\n\t\tkind: \"unknown-tag\",\n\t\ttag: written.tag,\n\t\tknown: knownTags(support)\n\t}) : notOk({\n\t\tkind: \"unwritable\",\n\t\tsyntax: written.kind\n\t});\n\tconst text = textOf(written);\n\tconst form = found.entry.written;\n\tconst unreadable = (message) => ({\n\t\tkind: \"unreadable\",\n\t\tmessage\n\t});\n\tif (form.kind === \"plain\" && form.syntax === \"number\") {\n\t\tconst classified = form.classify(text);\n\t\treturn classified === void 0 ? notOk(unreadable(`no data type of this target holds the number ${text}`)) : valueOfType(support, classified.type, () => classified.value, {}, unreadable);\n\t}\n\treturn valueOfType(support, dataTypeId(found.key), () => form.parse(text), {}, unreadable);\n}\n/** Take a value into the receiving type, directly or through the cast that type declares; the receiving type constructs the result under `receivingParams`, the parameters of the position that receives it. */\nfunction castTypedValue(support, receivingType, receivingParams, value) {\n\tconst refusedByType = (message) => ({\n\t\tkind: \"refused-by-type\",\n\t\treceivingType,\n\t\tmessage\n\t});\n\tif (value.type === receivingType) return valueOfType(support, receivingType, () => value.value, receivingParams, refusedByType);\n\tconst declaration = support.lookup.get(receivingType);\n\tconst cast = declaration?.casts[value.type];\n\tif (cast === void 0) return notOk({\n\t\tkind: \"no-cast\",\n\t\treceivingType,\n\t\treceivingParams,\n\t\tvalueType: value.type,\n\t\tcasts: Object.keys(declaration?.casts ?? {})\n\t});\n\tconst source = support.lookup.get(value.type);\n\tif (source === void 0) throw new InternalError(`A value of \"${value.type}\" was cast, and this stack does not register it.`);\n\tlet json;\n\ttry {\n\t\tjson = cast(source.toContract(value));\n\t} catch (error) {\n\t\tif (isInternalError(error)) throw error;\n\t\treturn notOk({\n\t\t\tkind: \"unreadable\",\n\t\t\tmessage: messageOf(error)\n\t\t});\n\t}\n\treturn valueOfType(support, receivingType, () => json, receivingParams, refusedByType);\n}\n/**\n* Reads `written` as a value of `receivingType`: through the authoring entry for its syntax, then into `receivingType` directly or through a cast it declares. A refusal is worded for a diagnostic at the written value. The read every value of a fixed receiving type takes: an attribute argument, a type-constructor argument, and its TypeScript counterpart. ADR 254.\n*/\nfunction readWrittenValueAs(support, receivingType, written) {\n\tconst forms = admittedForms(support, [receivingType]);\n\tconst read = readWrittenValue(support, written);\n\tif (!read.ok) return notOk(describeRefusal(read.failure, support, {\n\t\tforms,\n\t\trewrite: void 0\n\t}));\n\tconst cast = castTypedValue(support, receivingType, {}, read.value);\n\tif (cast.ok) return cast;\n\tconst rewrite = exactRewrite(support, {\n\t\treceivingType,\n\t\treceivingParams: {}\n\t}, written);\n\treturn notOk(describeRefusal(cast.failure, support, {\n\t\tforms,\n\t\trewrite\n\t}));\n}\n/**\n* Reads `written` into the codec `ref` names, built with `ref`'s type parameters: the authoring entry for its syntax reads it, the codec's data type takes it directly or through a cast, the data type constructs it under the type parameters, and the codec checks it. Returns the value as the data type stores it. A written list is read element by element into the element types of the data type's list cast, then through the list cast.\n*\n* A refusal is worded for a diagnostic, after `subject` and the element it is about, as in `enum \"Ratio\" member \"Half\" at element 2: Expected a number`: syntax no entry reads or a cast refuses is `PSL_INVALID_LITERAL`, a value of a type the data type neither is nor casts from is `PSL_VALUE_TYPE_INCOMPATIBLE`, and a value the data type under the type parameters or the codec refuses is `PSL_VALUE_REFUSED`. ADR 254.\n*/\nfunction readWrittenValueIntoCodec(input) {\n\tconst { support, ref, written, subject } = input;\n\tconst codec = codecForRef(input.codecLookup, ref);\n\tif (codec === void 0) throw new InternalError(`${subject}: no codec descriptor is registered for \"${ref.codecId}\", but the value was read for it.`);\n\tconst receivingType = codec.dataType.id;\n\tconst receivingParams = dataTypeParams(codec.dataType, ref.typeParams);\n\tconst refused = (elementIndex, { code, message }) => notOk({\n\t\tcode,\n\t\tmessage: `${elementIndex === void 0 ? subject : `${subject} at element ${elementIndex + 1}`}: ${message}`\n\t});\n\tconst stored = (json) => {\n\t\ttry {\n\t\t\tconst value = codec.dataType.valueFrom(json, receivingParams);\n\t\t\tcodec.fromDataTypeValue(value);\n\t\t\treturn ok(codec.dataType.toContract(value));\n\t\t} catch (error) {\n\t\t\tif (isInternalError(error)) throw error;\n\t\t\treturn refused(void 0, {\n\t\t\t\tcode: \"PSL_VALUE_REFUSED\",\n\t\t\t\tmessage: messageOf(error)\n\t\t\t});\n\t\t}\n\t};\n\tconst forms = admittedForms(support, [receivingType]);\n\tif (written.kind === \"list\") {\n\t\tconst listCast = support.lookup.get(receivingType)?.listCast;\n\t\tif (listCast === void 0) return refused(void 0, {\n\t\t\tcode: \"PSL_VALUE_TYPE_INCOMPATIBLE\",\n\t\t\tmessage: `${describeExpected(forms)}; got a list`\n\t\t});\n\t\tconst elementGuidance = {\n\t\t\tforms: admittedForms(support, listCast.of),\n\t\t\trewrite: void 0\n\t\t};\n\t\tconst elements = [];\n\t\tfor (const [index, element] of written.elements.entries()) {\n\t\t\tif (element.kind === \"list\") return refused(index, {\n\t\t\t\tcode: \"PSL_INVALID_LITERAL\",\n\t\t\t\tmessage: \"a list holds values, not other lists\"\n\t\t\t});\n\t\t\tconst read = readWrittenValue(support, element);\n\t\t\tif (!read.ok) return refused(index, describeRefusal(read.failure, support, elementGuidance));\n\t\t\tif (!listCast.of.includes(read.value.type)) return refused(index, {\n\t\t\t\tcode: \"PSL_VALUE_TYPE_INCOMPATIBLE\",\n\t\t\t\tmessage: describeRefusedValueType({\n\t\t\t\t\treceivingType,\n\t\t\t\t\tvalueType: read.value.type\n\t\t\t\t}, support, elementGuidance)\n\t\t\t});\n\t\t\telements.push(read.value.value);\n\t\t}\n\t\tlet json;\n\t\ttry {\n\t\t\tjson = listCast.cast(elements);\n\t\t} catch (error) {\n\t\t\tif (isInternalError(error)) throw error;\n\t\t\treturn refused(void 0, {\n\t\t\t\tcode: \"PSL_INVALID_LITERAL\",\n\t\t\t\tmessage: messageOf(error)\n\t\t\t});\n\t\t}\n\t\treturn stored(json);\n\t}\n\tconst read = readWrittenValue(support, written);\n\tif (!read.ok) return refused(void 0, describeRefusal(read.failure, support, {\n\t\tforms,\n\t\trewrite: void 0\n\t}));\n\tconst cast = castTypedValue(support, receivingType, receivingParams, read.value);\n\tif (cast.ok) return stored(cast.value.value);\n\tconst { failure } = cast;\n\tif (failure.kind === \"refused-by-type\") return refused(void 0, {\n\t\tcode: \"PSL_VALUE_REFUSED\",\n\t\tmessage: failure.message\n\t});\n\treturn refused(void 0, describeRefusal(failure, support, {\n\t\tforms,\n\t\trewrite: failure.kind === \"no-cast\" ? exactRewrite(support, failure, written) : void 0\n\t}));\n}\n/** The type itself, then each type it casts from, in key order. */\nfunction admittedTypes(support, dataType) {\n\treturn [dataType, ...Object.keys(support.lookup.get(dataType)?.casts ?? {})];\n}\n/** The tags a position of `dataType` admits: its own tag, then the tags of the types it casts from. */\nfunction admittedTags(support, dataType) {\n\tconst tags = admittedTypes(support, dataType).flatMap((type) => {\n\t\tconst written = support.entries[type]?.written;\n\t\treturn written?.kind === \"tag\" ? [written.tag] : [];\n\t});\n\treturn [...new Set(tags)];\n}\n/** The form a value of a tagged literal's type is written in. */\nfunction tagForm(tag) {\n\treturn {\n\t\tkind: \"tag\",\n\t\ttag,\n\t\tphrase: `${tag}\\`...\\``\n\t};\n}\nconst PLAIN_PHRASES = {\n\tstring: \"a quoted string\",\n\tboolean: \"true or false\",\n\tnumber: \"a number\"\n};\nfunction writtenForm(support, type) {\n\tconst written = support.entries[type]?.written;\n\tif (written?.kind === \"tag\") return tagForm(written.tag);\n\tif (written?.kind === \"plain\" && written.syntax !== \"number\") return {\n\t\tkind: written.syntax,\n\t\tphrase: PLAIN_PHRASES[written.syntax]\n\t};\n\treturn Object.entries(support.entries).some(([key, entry]) => entry.written.kind === \"plain\" && entry.written.syntax === \"number\" && (key === type || entry.written.types.some((listed) => listed === type))) ? {\n\t\tkind: \"number\",\n\t\tphrase: PLAIN_PHRASES.number\n\t} : void 0;\n}\n/** What {@link describeAdmittedForms} returns for a type that nothing writes. */\nconst NO_WRITTEN_FORM = \"no written form\";\n/** Each form a position receiving every one of `receivingTypes` admits, once, in order: ``sql`...` ``, `true or false`. */\nfunction admittedForms(support, receivingTypes) {\n\tconst forms = [];\n\tfor (const type of receivingTypes.flatMap((receiving) => admittedTypes(support, receiving))) {\n\t\tconst form = writtenForm(support, type);\n\t\tif (form !== void 0 && !forms.some((listed) => isSameForm(listed, form))) forms.push(form);\n\t}\n\treturn forms;\n}\nfunction joinForms(forms) {\n\treturn forms.length === 0 ? NO_WRITTEN_FORM : forms.map((form) => form.phrase).join(\" or \");\n}\n/** How a position of `dataType` can be written, for a diagnostic: ``sql`...` ``, `true or false`. */\nfunction describeAdmittedForms(support, dataType) {\n\treturn joinForms(admittedForms(support, [dataType]));\n}\n//#endregion\n//#region src/shared/discriminator-rule.ts\n/**\n* The refusals of a discriminator: the field must be required, hold one value, and have one of the stack's text data types; and when an enum types it, each variant's value, as the field stores it, must be one of the enum's members, compared by the field's data type's equality. Returns no refusals for a discriminator that is valid.\n*/\nfunction discriminatorRefusals(input) {\n\tconst { field } = input;\n\tconst textDataTypes = input.dataTypes.textDataTypes ?? [];\n\tif (textDataTypes.length === 0) throw new InternalError(\"The stack names no text data types, so no field can be a discriminator; the target names its text types in its authoring contributions.\");\n\tconst refusals = [];\n\tif (field.nullable) refusals.push({ kind: \"optional\" });\n\tif (field.many) refusals.push({ kind: \"list\" });\n\tconst dataType = field.ref === void 0 ? void 0 : input.codecLookup.descriptorFor(field.ref.codecId)?.dataType;\n\tif (dataType === void 0 || !textDataTypes.includes(dataType)) refusals.push({\n\t\tkind: \"not-text\",\n\t\tdataType,\n\t\ttextDataTypes\n\t});\n\tconst members = field.enumMembers;\n\tif (members !== void 0) {\n\t\tconst equalityKey = dataType === void 0 ? void 0 : input.dataTypes.lookup.get(dataType)?.equalityKey;\n\t\tconst memberKeys = new Set(members.map((member) => storedValueKey(member, equalityKey)));\n\t\tfor (const { key, stored } of input.variantValues) if (!memberKeys.has(storedValueKey(stored, equalityKey))) refusals.push({\n\t\t\tkind: \"not-a-member\",\n\t\t\tkey,\n\t\t\tstored,\n\t\t\tmembers\n\t\t});\n\t}\n\treturn refusals;\n}\n/**\n* A discriminator refusal worded as a PSL diagnostic: a refusal of the field at its `@@discriminator`, and a value that is not a member at its `@@base`. The wording names PSL syntax, so PSL sources word the refusals with this; a TypeScript source words them in its own terms.\n*/\nfunction describeDiscriminatorRefusal(refusal, subject) {\n\tconst field = `Discriminator field \"${subject.fieldName}\" on model \"${subject.modelName}\"`;\n\tswitch (refusal.kind) {\n\t\tcase \"optional\": return `${field} must be required, but it is optional. Remove the \"?\"`;\n\t\tcase \"list\": return `${field} must hold one value, but it is a list. Remove the \"[]\"`;\n\t\tcase \"not-text\": return `${field} must be text, such as String, but is \"${subject.typeName}\"`;\n\t\tcase \"not-a-member\": return `Model \"${subject.variantName(refusal.key)}\" declares @@base value ${JSON.stringify(refusal.stored)}, which is not a member of enum \"${subject.enumName}\", the type of discriminator field \"${subject.modelName}.${subject.fieldName}\". Write one of: ${refusal.members.map((member) => JSON.stringify(member)).join(\", \")}`;\n\t}\n}\n/**\n* Applies the discriminator rule to one discriminator and its variants: reads each variant's written value into the field's codec with {@link readWrittenValueIntoCodec}, worded after `subject`, then decides with {@link discriminatorRefusals}. A refused field refuses the whole discriminator, so its variants' values are neither read nor refused. A discriminator is text, so a stored value that is not a string is a bug in a text data type.\n*/\nfunction applyDiscriminatorRule(input) {\n\tconst { field, codecLookup, dataTypes } = input;\n\tconst fieldOnly = discriminatorRefusals({\n\t\tfield,\n\t\tvariantValues: [],\n\t\tcodecLookup,\n\t\tdataTypes\n\t}).filter(isFieldRefusal);\n\tif (fieldOnly.length > 0) return {\n\t\tfieldRefusals: fieldOnly,\n\t\tvariantRefusals: [],\n\t\tvalues: /* @__PURE__ */ new Map()\n\t};\n\tconst ref = field.ref;\n\tif (ref === void 0) throw new InternalError(\"A discriminator field the rule accepts has a codec.\");\n\tconst reads = input.variants.map(({ key, written }) => ({\n\t\tkey,\n\t\treading: readWrittenValueIntoCodec({\n\t\t\tsupport: dataTypes,\n\t\t\tcodecLookup,\n\t\t\tref,\n\t\t\twritten,\n\t\t\tsubject: input.subject\n\t\t})\n\t}));\n\tconst notMembers = new Map(discriminatorRefusals({\n\t\tfield,\n\t\tvariantValues: reads.flatMap(({ key, reading }) => reading.ok ? [{\n\t\t\tkey,\n\t\t\tstored: reading.value\n\t\t}] : []),\n\t\tcodecLookup,\n\t\tdataTypes\n\t}).flatMap((refusal) => refusal.kind === \"not-a-member\" ? [[refusal.key, refusal]] : []));\n\tconst variantRefusals = [];\n\tconst values = /* @__PURE__ */ new Map();\n\tfor (const { key, reading } of reads) {\n\t\tif (!reading.ok) {\n\t\t\tvariantRefusals.push({\n\t\t\t\tkind: \"unreadable\",\n\t\t\t\tkey,\n\t\t\t\trefusal: reading.failure\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tconst notMember = notMembers.get(key);\n\t\tif (notMember !== void 0) {\n\t\t\tvariantRefusals.push(notMember);\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof reading.value !== \"string\") throw new InternalError(`Discriminator field codec \"${ref.codecId}\" stores a text value as ${typeof reading.value}.`);\n\t\tvalues.set(key, reading.value);\n\t}\n\treturn {\n\t\tfieldRefusals: [],\n\t\tvariantRefusals,\n\t\tvalues\n\t};\n}\nfunction isFieldRefusal(refusal) {\n\treturn refusal.kind !== \"not-a-member\";\n}\n//#endregion\n//#region src/shared/enum-block-members.ts\n/**\n* A problem with an enum's members as a diagnostic at the member, or at the block when the problem is the enum's codec.\n*/\nfunction enumMemberProblemDiagnostic(problem, site) {\n\tconst { enumName, codecId, sourceId } = site;\n\tconst at = (member) => ({\n\t\tsourceId,\n\t\tspan: site.memberSpans[member] ?? site.span\n\t});\n\tswitch (problem.kind) {\n\t\tcase \"codec-not-for-enums\": return {\n\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\tmessage: `enum \"${enumName}\" cannot use the codec \"${codecId}\". ${problem.refusal}`,\n\t\t\tsourceId,\n\t\t\tspan: site.span\n\t\t};\n\t\tcase \"codec-missing\": return {\n\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\tmessage: `enum \"${enumName}\" uses codec \"${codecId}\", which no pack in the contract provides`,\n\t\t\tsourceId,\n\t\t\tspan: site.span\n\t\t};\n\t\tcase \"codec-refused-member\": return {\n\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\tmessage: `enum \"${enumName}\" member \"${problem.member}\" was rejected by codec \"${codecId}\": ${problem.reason}`,\n\t\t\t...at(problem.member)\n\t\t};\n\t\tcase \"member-not-stored-as-written\": return {\n\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\tmessage: `enum \"${enumName}\" member \"${problem.member}\" is written ${problem.written}, but its codec stores ${JSON.stringify(problem.stored)}. Write the member as ${problem.writeAs}.`,\n\t\t\t...at(problem.member)\n\t\t};\n\t\tcase \"duplicate-member-value\": return {\n\t\t\tcode: \"PSL_ENUM_DUPLICATE_MEMBER_VALUE\",\n\t\t\tmessage: problem.earlierStored === void 0 ? `enum \"${enumName}\": members \"${problem.earlier}\" and \"${problem.later}\" both store ${JSON.stringify(problem.stored)}` : `enum \"${enumName}\": members \"${problem.earlier}\" and \"${problem.later}\" store ${JSON.stringify(problem.earlierStored)} and ${JSON.stringify(problem.stored)}, which the database holds equal`,\n\t\t\t...at(problem.later)\n\t\t};\n\t}\n}\n/** A member as it is written: its recorded written value, or a bare member's name, as text. */\nfunction writtenMember(block, memberName, memberValue) {\n\tconst written = block.writtenValues?.[memberName];\n\tif (written !== void 0) return written;\n\tif (memberValue === void 0) return {\n\t\tkind: \"string\",\n\t\ttext: memberName\n\t};\n\tthrow new InternalError(`enum \"${block.name}\" member \"${memberName}\" has a value, but the block holds no written value for it.`);\n}\n/**\n* Reads the members of an `enum` block through its codec with {@link readWrittenValueIntoCodec}: each member's syntax gives it a data type, the codec's data type takes it directly or through a cast, and the codec checks it, so a number keeps every digit and a quoted value is text. A bare member is read from its own name, as text.\n* Pushes a diagnostic and returns `undefined` when a member is refused, when two members\n* store the same value, or when the block has no members. Shared by every family's enum factory.\n*/\nfunction readEnumBlockMembers(block, codecId, codec, ctx) {\n\tconst sourceId = ctx.sourceId ?? \"unknown\";\n\tconst diagnostics = ctx.diagnostics;\n\tconst site = {\n\t\tenumName: block.name,\n\t\tcodecId,\n\t\tsourceId,\n\t\tspan: block.span,\n\t\tmemberSpans: block.parameterSpans\n\t};\n\tconst members = [];\n\tconst storedMembers = [];\n\tlet memberError = false;\n\tfor (const [memberName, memberValue] of Object.entries(block.values)) {\n\t\tconst span = block.parameterSpans[memberName] ?? block.span;\n\t\tconst reading = readWrittenValueIntoCodec({\n\t\t\tsupport: ctx.dataTypes,\n\t\t\tcodecLookup: ctx.codecLookup,\n\t\t\tref: { codecId },\n\t\t\twritten: writtenMember(block, memberName, memberValue),\n\t\t\tsubject: `enum \"${block.name}\" member \"${memberName}\"`\n\t\t});\n\t\tif (!reading.ok) {\n\t\t\tdiagnostics?.push(memberValue === void 0 ? {\n\t\t\t\tcode: \"PSL_ENUM_BARE_MEMBER_NON_STRING_CODEC\",\n\t\t\t\tmessage: `enum \"${block.name}\" member \"${memberName}\" has no value and codec \"${codecId}\" does not accept a bare name as input`,\n\t\t\t\tsourceId,\n\t\t\t\tspan\n\t\t\t} : {\n\t\t\t\t...reading.failure,\n\t\t\t\tsourceId,\n\t\t\t\tspan\n\t\t\t});\n\t\t\tmemberError = true;\n\t\t\tcontinue;\n\t\t}\n\t\tconst read = readContractValue(codec, reading.value, void 0);\n\t\tmembers.push({\n\t\t\tname: memberName,\n\t\t\tvalue: read\n\t\t});\n\t\tstoredMembers.push({\n\t\t\tname: memberName,\n\t\t\tstored: codec.dataType.toContract(codec.toDataTypeValue(read))\n\t\t});\n\t}\n\tfor (const duplicate of duplicateStoredMembers(storedMembers, codec.dataType.equalityKey)) {\n\t\tdiagnostics?.push(enumMemberProblemDiagnostic({\n\t\t\tkind: \"duplicate-member-value\",\n\t\t\t...duplicate\n\t\t}, site));\n\t\tmemberError = true;\n\t}\n\tif (memberError) return void 0;\n\tif (members.length === 0) {\n\t\tdiagnostics?.push({\n\t\t\tcode: \"PSL_ENUM_MISSING_TYPE\",\n\t\t\tmessage: `enum \"${block.name}\" must have at least one member`,\n\t\t\tsourceId,\n\t\t\tspan: block.span\n\t\t});\n\t\treturn;\n\t}\n\treturn members;\n}\n//#endregion\n//#region src/shared/enum-members.ts\n/** Whether TypeScript gives the value a literal type: a primitive, or an array or plain object of them. */\nfunction hasLiteralType(value) {\n\tif ([\n\t\t\"string\",\n\t\t\"number\",\n\t\t\"boolean\",\n\t\t\"bigint\"\n\t].includes(typeof value)) return true;\n\tif (Array.isArray(value)) return value.every(hasLiteralType);\n\tif (typeof value !== \"object\" || value === null) return false;\n\tconst prototype = Object.getPrototypeOf(value);\n\treturn (prototype === Object.prototype || prototype === null) && Object.values(value).every(hasLiteralType);\n}\n/**\n* A member's value in the form its codec stores it, and that form read back by the codec. A codec that throws on either is a refusal naming the member; an internal error is not the member's fault and propagates.\n*/\nfunction encodeEnumMember(member, codec) {\n\ttry {\n\t\tconst stored = codec.dataType.toContract(codec.toDataTypeValue(member.value));\n\t\treturn ok({\n\t\t\tstored,\n\t\t\treadBack: readContractValue(codec, stored, void 0)\n\t\t});\n\t} catch (cause) {\n\t\tif (isInternalError(cause)) throw cause;\n\t\treturn notOk({\n\t\t\tkind: \"codec-refused-member\",\n\t\t\tmember: member.name,\n\t\t\treason: cause instanceof Error ? cause.message : String(cause),\n\t\t\tcause\n\t\t});\n\t}\n}\n/**\n* Refuses a member its codec reads back as a different value from the one written. A member with no literal type has nothing to compare.\n*/\nfunction notStoredAsWritten(member, stored, readBack) {\n\tif (!hasLiteralType(member.value)) return void 0;\n\tif (hasLiteralType(readBack) && canonicalStringify(readBack) === canonicalStringify(member.value)) return void 0;\n\treturn {\n\t\tkind: \"member-not-stored-as-written\",\n\t\tmember: member.name,\n\t\twritten: canonicalStringify(member.value),\n\t\tstored,\n\t\twriteAs: hasLiteralType(readBack) ? canonicalStringify(readBack) : JSON.stringify(stored)\n\t};\n}\n/**\n* Each member of an enum in the form its codec stores it. Refuses a codec an enum cannot use, a codec the lookup does not have, a member the codec refuses, a member the codec reads back as another value, and two members stored as the same value. Every family's contract build calls this, and reports the problems in its own terms.\n*/\nfunction encodeEnumMembers(decodedEnum, codecLookup) {\n\tconst descriptor = codecLookup.descriptorFor(decodedEnum.codecId);\n\tconst refusal = descriptor === void 0 ? void 0 : enumRefusalOf(descriptor);\n\tif (refusal !== void 0) return notOk([{\n\t\tkind: \"codec-not-for-enums\",\n\t\trefusal\n\t}]);\n\tconst codec = codecLookup.get(decodedEnum.codecId);\n\tif (codec === void 0) return notOk([{ kind: \"codec-missing\" }]);\n\tconst problems = [];\n\tconst members = [];\n\tfor (const member of decodedEnum.enumMembers) {\n\t\tconst encoded = encodeEnumMember(member, codec);\n\t\tif (!encoded.ok) {\n\t\t\tproblems.push(encoded.failure);\n\t\t\tcontinue;\n\t\t}\n\t\tconst { stored, readBack } = encoded.value;\n\t\tconst mismatch = notStoredAsWritten(member, stored, readBack);\n\t\tif (mismatch !== void 0) problems.push(mismatch);\n\t\tmembers.push({\n\t\t\tname: member.name,\n\t\t\tvalue: stored\n\t\t});\n\t}\n\tfor (const duplicate of duplicateStoredMembers(members.map(({ name, value }) => ({\n\t\tname,\n\t\tstored: value\n\t})), codec.dataType.equalityKey)) problems.push({\n\t\tkind: \"duplicate-member-value\",\n\t\t...duplicate\n\t});\n\treturn problems.length > 0 ? notOk(problems) : ok(members);\n}\n//#endregion\nexport { AUTHORING_TYPE_DESCRIPTOR_KINDS, TIMESTAMP_NOW_GENERATOR_ID, admittedForms, admittedTags, applyDiscriminatorRule, assembleAuthoringDataTypes, assembleDataTypeSupport, assertNoAuthoringFieldNamespace, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, assertTypeAliasesValid, authoringTypeConstructorArguments, authoringTypeConstructors, canonicalizeTaggedLiteralBody, castTypedValue, classifyEnumMemberType, collectScalarTypeConstructors, describeAdmittedForms, describeDiscriminatorRefusal, describeExpected, describeRefusal, describeRefusedValueType, describeTaggedLiteralFailure, duplicateStoredMembers, encodeEnumMembers, entryForPlain, entryForTag, enumMemberProblemDiagnostic, exactRewrite, findAuthoringTypeConstructorCall, flushAuthoringWarnings, getAuthoringTypeConstructor, instantiateAuthoringEntityType, instantiateAuthoringTypeAlias, instantiateAuthoringTypeConstructor, instantiateAuthoringTypeConstructorFromValues, isAuthoringArgRef, isAuthoringEntityTypeDescriptor, isAuthoringModelAttributeDescriptor, isAuthoringPslBlockDescriptor, isAuthoringTypeAliasDescriptor, isAuthoringTypeConstructorDescriptor, isAuthoringTypeDescriptor, knownTags, mergeAuthoringNamespaces, printTaggedLiteral, printedTaggedLiteralReadsBack, readEnumBlockMembers, readWrittenValue, readWrittenValueAs, readWrittenValueIntoCodec, resolveAuthoringTemplateValue, resolveEnumCodecId, resolveTemplateTagEscapes, resolveTypeAliasGenerators, tagForm, temporalTypeAliases, tsTaggedTemplateSource, validateAuthoringHelperArguments, validateAuthoringTypeParams };\n\n//# sourceMappingURL=authoring.mjs.map"],"mappings":";;;;;;;;;;AAUA,UAAU,0BAA0B,WAAW,OAAO,CAAC,GAAG;CACzD,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,SAAS,GAAG,IAAI,qCAAqC,KAAK,GAAG,MAAM;EAC7G,MAAM,CAAC,GAAG,MAAM,IAAI;EACpB,YAAY;CACb;MACK,IAAI,CAAC,+BAA+B,KAAK,G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CACF;CACA,KAAK,MAAM,aAAa,uBAAuB,QAAQ,KAAK,EAAE,MAAM,aAAa;EAChF;EACA,QAAQ;CACT,EAAE,GAAG,MAAM,SAAS,WAAW,GAAG,SAAS,KAAK;EAC/C,MAAM;EACN,GAAG;CACJ,CAAC;CACD,OAAO,SAAS,SAAS,IAAI,MAAM,QAAQ,IAAI,GAAG,OAAO;AAC1D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authoring-C2UAuRfN.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/authoring.d.mts"],"mappings":";;;;;;;;KAOK,iCAAiC,kBAAkB;;UAE9C;WACC;WACA;;;iBAGM,0BAA0B,WAAW,wBAAwB,2BAA2B;WAC9F;WACA,YAAY;;;;;;;iBAON,kCAAkC,YAAY,oCAAoC,QAAQ;;;;;;;iBAO1F,iCAAiC,WAAW,wBAAwB,QAAQ,iCAAiC;;;;UAIpH;;WAEC,KAAK;WACL;WACA;;WAEA,sBAAsB;;;KAG5B,qBAAqB;WACf;;WAEA;;WAEA;WACA,UAAU;WACV,wBAAwB;;WAExB;WACA,KAAK;WACL,QAAQ;WACR,kBAAkB;;;;;iBAKZ,6BAA6B,KAAK,SAAS,qBAAqB,MAAM;WAC5E;WACA;;WAEA;;WAEA;WACA,cAAc,KAAK;;;KAGzB,4BAA4B,QAAQ;WAC9B;;;KAGN,4BAA4B;WACtB;WACA,KAAK;WACL,SAAS;IAChB,QAAQ,qBAAqB;WACtB;;;UAGD,sBAAsB;;WAErB,wBAAwB;;WAExB,0BAA0B,4BAA4B;;WAEtD,QAAQ,YAAY;;;;;iBAKd,uBAAuB,KAAK;WAClC,OAAO;WACP;aACE,KAAK;aACL,SAAS;;WAEX;WACA,aAAa,KAAK;WAClB,WAAW;IAClB,sBAAsB;;;UAGhB;WACC;WACA,QAAQ;;UAET;WACC;WACA;WACA,QAAQ;;WAER,gBAAgB;;;;;iBAKV,uBAAuB,kBAAkB,oBAAoB,eAAe,MAAM,gCAAgC;;;;UAIzH;WACC;WACA;aACE;aACA;;;;UAIH;WACC;WACA,OAAO;;UAER;WACC;WACA;WACA;WACA;;UAED;WACC;WACA;WACA;WACA,QAAQ;WACR;;KAEN;WACM;WACA;;WAEA;IACP,qBAAqB;WACd;IACP;;;;iBAIa,kBAAkB,aAAa,aAAa,aAAa,6BAA6B,gBAAgB,8BAA8B;;;UAG3I;WACC;WACA;;UAED;WACC;WACA;WACA;WACA,MAAM;;;;;UAKP;WACC;WACA;WACA;WACA,MAAM;WACN,aAAa,SAAS,eAAe;;;;;iBAK/B,4BAA4B,SAAS,mBAAmB,MAAM,gBAAgB;;;;;;iBAM9E,qBAAqB,OAAO,wBAAwB,SAAS,2BAA2B,iBAAiB,OAAO,OAAO,KAAK,kCAAkC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codec-CZ3VQq7G.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/codec.d.mts"],"mappings":";;;;;cAIc,eAAe;;iBAEZ,iBAAiB,OAAO,WAAW;;cAEtC,eAAe;;;;;;;cAOf,SAAS;;;;;;;;;;KAUlB,qBAAqB;WACf,SAAS;WACT,aAAa;;;;;;;;;WASb,WAAW;WACX,YAAY;;;UAGb,mBAAmB;WAClB,SAAS;;;;;UAKV,uBAAuB,mBAAmB,qBAAqB,oBAAoB;WAClF,aAAa;WACb,UAAU;WACV,OAAO;;;UAGR,8BAA8B,mBAAmB,qBAAqB,oBAAoB;EAClG,SAAS,uBAAuB,YAAY;;;;;;;;;KASzC;WACM;WACA;WACA;;;;;;;UAOD,WAAW,GAAG,UAAU,6CAA6C;WACpE,eAAe,KAAK,yBAAyB;WAC7C,YAAY;;;;;iBAKN,OAAO,GAAG,UAAU,qCAAqC,eAAe,KAAK,yBAAyB,GAAG,iBAAiB,YAAY,IAAI,WAAW,GAAG;;;;;;KAMpK,gBAAgB,UAAU,oCAAoC,gBAAgB,oBAAoB,mBAAmB;;;;KAIrH,sBA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UAAU,iFAAiF;;;;;;;;;;;iBAWlM,wBAAwB,YAAY,oBAAoB,KAAK;;;;;;;iBAO7D,iBAAiB,YAAY,oBAAoB,KAAK,UAAU,KAAK,uBAAuB;;;;iBAI5F,YAAY,QAAQ,KAAK,8CAA8C,KAAK,WAAW"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contract-types-DEIEpzU_-DvAVuBr5.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/contract-types-DEIEpzU_.d.mts"],"mappings":";;;;;;;;;;;;KAWK;;;;;;;;;iBASY,uBAAuB,aAAa,2BAA2B,sBAAsB,4BAA4B;;;;iBAIjH,uBAAuB;WAC7B,4BAA4B;eACxB,sBAAsB,4BAA4B;;;;;;;;;;;;KAY5D,yBAAyB;WACnB,eAAe,kBAAkB;WACjC;aACE,UAAU,cAAc;;;;;;;;;;;;;;;;UAgB3B,SAAS,iBAAiB,cAAc;WACvC;WACA;WACA,OAAO,eAAe;;;;WAItB,QAAQ;WACR,SAAS;WACT,cAAc,eAAe;WAC7B,YAAY;WACZ,YAAY;WACZ,aAAa;WACb,MAAM;WACN,uBAAuB;;KAE7B,oBAAoB,UAAU,iCAAiC,iBAAiB,mBAAmB,YAAY,YAAY,QAAQ;KACnI,wBAAwB,cAAc;WAChC,qBAAqB;IAC5B,WAAW,eAAe,uBAAuB,KAAK,uBAAuB;;KAE5E,+BAA+B,kBAAkB,YAAY,wBAAwB,kCAAkC,oBAAoB,oDAAoD,aAAa,kBAAkB,eAAe,uBAAuB,YAAY,uBAAuB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./control-BeXOxtXA-BU8y-LiK.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"control-CS1uqJj_.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/control.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;KAsBK;WACM;WACA;;UAED,gBAAgB,cAAc,eAA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