@prisma/orm-framework 8.0.0-rc.19-dev.1 → 8.0.0-rc.19-dev.3
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-BxyfEUyh.mjs → authoring-BMkyimEq.mjs} +3 -3
- package/dist/authoring-BMkyimEq.mjs.map +1 -0
- package/dist/{authoring-DWhPMprN.d.mts → authoring-CUZxY2RV.d.mts} +4 -4
- package/dist/{authoring-DWhPMprN.d.mts.map → authoring-CUZxY2RV.d.mts.map} +1 -1
- package/dist/{binder-63ozT0D8-D7n-9Uv4.d.mts → binder-D_4RBHbt-HJoM87MJ.d.mts} +16 -15
- package/dist/binder-D_4RBHbt-HJoM87MJ.d.mts.map +1 -0
- package/dist/{codec-DkiEF2cQ.d.mts → codec-B_KV-HpC.d.mts} +2 -3
- package/dist/codec-B_KV-HpC.d.mts.map +1 -0
- package/dist/{codec-types-DjozIOvT-BIcpyFea.d.mts → codec-types-CPgEZoIq-BL9hisr8.d.mts} +3 -3
- package/dist/{codec-types-DjozIOvT-BIcpyFea.d.mts.map → codec-types-CPgEZoIq-BL9hisr8.d.mts.map} +1 -1
- package/dist/{components-B3SnaxMU.d.mts → components-CJ5VhJT8.d.mts} +5 -4
- package/dist/components-CJ5VhJT8.d.mts.map +1 -0
- package/dist/components.d.mts +16 -17
- package/dist/components.mjs +4 -4
- 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 +3 -3
- package/dist/components__emission.d.mts +3 -3
- package/dist/components__execution.d.mts +1 -1
- package/dist/components__psl-ast.d.mts +3 -3
- package/dist/components__runtime.d.mts +1 -1
- package/dist/{config-types-Bs7GpaPJ.d.mts → config-types-B7pDUyu2.d.mts} +7 -9
- package/dist/config-types-B7pDUyu2.d.mts.map +1 -0
- package/dist/config.d.mts +1 -1
- package/dist/config__config-types.d.mts +1 -1
- package/dist/contract-authoring.d.mts +4 -4
- package/dist/contract-authoring.mjs +4 -4
- package/dist/contract-authoring.mjs.map +1 -1
- package/dist/{control-B5ezUWD2-DTWXJUHt.d.mts → control-B5ezUWD2-CWp9npSb.d.mts} +2 -2
- package/dist/{control-B5ezUWD2-DTWXJUHt.d.mts.map → control-B5ezUWD2-CWp9npSb.d.mts.map} +1 -1
- package/dist/{control-DnNh47Wd.d.mts → control-BC7a9D7N.d.mts} +219 -186
- package/dist/control-BC7a9D7N.d.mts.map +1 -0
- package/dist/control-BLmwnbM0.d.mts +1 -0
- package/dist/{control-xg2R0dXx.mjs → control-Bq9kKKJS.mjs} +57 -8
- package/dist/control-Bq9kKKJS.mjs.map +1 -0
- package/dist/{control-KsXr4fYD-DLPY47Il.mjs → control-KsXr4fYD-O9tIteNn.mjs} +2 -2
- package/dist/{control-KsXr4fYD-DLPY47Il.mjs.map → control-KsXr4fYD-O9tIteNn.mjs.map} +1 -1
- package/dist/{declarations-BgUAq1RG-CEN8W7dJ.mjs → declarations-BgUAq1RG-BOxzxoTR.mjs} +2 -2
- package/dist/{declarations-BgUAq1RG-CEN8W7dJ.mjs.map → declarations-BgUAq1RG-BOxzxoTR.mjs.map} +1 -1
- package/dist/emission-BtJvV97M.d.mts +2 -0
- package/dist/{emission-types-sz0-pyyS-D3-ssRUu.d.mts → emission-types-B-jKEbjI-D7BW8Gk1.d.mts} +4 -4
- package/dist/{emission-types-sz0-pyyS-D3-ssRUu.d.mts.map → emission-types-B-jKEbjI-D7BW8Gk1.d.mts.map} +1 -1
- package/dist/errors.d.mts +5 -5
- package/dist/errors.mjs +4 -4
- package/dist/errors__control.d.mts +2 -2
- package/dist/errors__control.mjs +1 -1
- package/dist/errors__execution.d.mts +2 -2
- package/dist/errors__execution.mjs +2 -2
- package/dist/errors__migration.d.mts +1 -1
- package/dist/errors__migration.mjs +1 -1
- package/dist/{execution-CktUHYP0.d.mts → execution-0Irooze3.d.mts} +2 -2
- package/dist/{execution-CktUHYP0.d.mts.map → execution-0Irooze3.d.mts.map} +1 -1
- package/dist/{execution-yrBEIzBV.d.mts → execution-CL5odLfv.d.mts} +3 -13
- package/dist/execution-CL5odLfv.d.mts.map +1 -0
- package/dist/{execution-BbpdDFYd.mjs → execution-D5ISN2Rt.mjs} +3 -25
- package/dist/{execution-BbpdDFYd.mjs.map → execution-D5ISN2Rt.mjs.map} +1 -1
- package/dist/{expressions-CMQzbnHk-D2oE4DzM.mjs → expressions-CMQzbnHk-CrNw_vqf.mjs} +2 -2
- package/dist/{expressions-CMQzbnHk-D2oE4DzM.mjs.map → expressions-CMQzbnHk-CrNw_vqf.mjs.map} +1 -1
- package/dist/{framework-authoring-Du7xSUmg-D85Toszi.d.mts → framework-authoring-C78etPdT-CeiBIBJ-.d.mts} +227 -10
- package/dist/framework-authoring-C78etPdT-CeiBIBJ-.d.mts.map +1 -0
- package/dist/{framework-components-DQFte83L-CIIcH8Bj.d.mts → framework-components-BmRQfvNS-KSEiBXXc.d.mts} +6 -103
- package/dist/framework-components-BmRQfvNS-KSEiBXXc.d.mts.map +1 -0
- package/dist/ids.d.mts +1 -1
- package/dist/{migration-DH3rxAoO.d.mts → migration-Db3N-7JB.d.mts} +2 -2
- package/dist/{migration-DH3rxAoO.d.mts.map → migration-Db3N-7JB.d.mts.map} +1 -1
- package/dist/{migration-BHhDtq__.mjs → migration-DkzPlgX1.mjs} +2 -2
- package/dist/{migration-BHhDtq__.mjs.map → migration-DkzPlgX1.mjs.map} +1 -1
- package/dist/{parse-bZgfjovA-D0MdY-kP.mjs → parse-bZgfjovA-sINnImkq.mjs} +3 -3
- package/dist/{parse-bZgfjovA-D0MdY-kP.mjs.map → parse-bZgfjovA-sINnImkq.mjs.map} +1 -1
- package/dist/{parse-djL5wker-BQzi1u4O.d.mts → parse-djL5wker-D6uXzzA7.d.mts} +6 -6
- package/dist/{parse-djL5wker-BQzi1u4O.d.mts.map → parse-djL5wker-D6uXzzA7.d.mts.map} +1 -1
- package/dist/{psl-ast-B6X_rlhZ-DCrq7Zie.d.mts → psl-ast-54cA0pl_-DrzGrcMF.d.mts} +3 -4
- package/dist/psl-ast-54cA0pl_-DrzGrcMF.d.mts.map +1 -0
- package/dist/psl-ast-BubQebay.d.mts +2 -0
- package/dist/psl-parser.d.mts +111 -16
- package/dist/psl-parser.d.mts.map +1 -1
- package/dist/psl-parser.mjs +278 -32
- 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 +6 -6
- package/dist/psl-parser__interpret.mjs +2 -24
- 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/{runtime-BXPhK_oW.d.mts → runtime-8WddX9H_.d.mts} +2 -2
- package/dist/{runtime-BXPhK_oW.d.mts.map → runtime-8WddX9H_.d.mts.map} +1 -1
- package/dist/{temporal-presets-DF8wiIwk-CZI3cLQZ.mjs → temporal-presets-CIFczljn-BrjropV6.mjs} +123 -27
- package/dist/temporal-presets-CIFczljn-BrjropV6.mjs.map +1 -0
- package/dist/{temporal-presets-9VgC1-FN-MoyINRBU.d.mts → temporal-presets-suGfXweJ-Cv2uijGj.d.mts} +36 -6
- package/dist/temporal-presets-suGfXweJ-Cv2uijGj.d.mts.map +1 -0
- package/dist/{read-expression-as-Dhyvx51C-BbNqJHAR.mjs → type-constructor-calls-BLf-HsFy-Z9ApP-kL.mjs} +28 -6
- package/dist/type-constructor-calls-BLf-HsFy-Z9ApP-kL.mjs.map +1 -0
- package/dist/{types-import-spec-hkPsnreE-C-fa8812.d.mts → types-import-spec-DQjfX-gM-zVncuzs0.d.mts} +3 -3
- package/dist/{types-import-spec-hkPsnreE-C-fa8812.d.mts.map → types-import-spec-DQjfX-gM-zVncuzs0.d.mts.map} +1 -1
- package/package.json +15 -15
- package/dist/authoring-BxyfEUyh.mjs.map +0 -1
- package/dist/binder-63ozT0D8-D7n-9Uv4.d.mts.map +0 -1
- package/dist/codec-DkiEF2cQ.d.mts.map +0 -1
- package/dist/components-B3SnaxMU.d.mts.map +0 -1
- package/dist/config-types-Bs7GpaPJ.d.mts.map +0 -1
- package/dist/control-Dhq4un61.d.mts +0 -1
- package/dist/control-DnNh47Wd.d.mts.map +0 -1
- package/dist/control-xg2R0dXx.mjs.map +0 -1
- package/dist/emission-XBYOUuHN.d.mts +0 -2
- package/dist/execution-yrBEIzBV.d.mts.map +0 -1
- package/dist/framework-authoring-Du7xSUmg-D85Toszi.d.mts.map +0 -1
- package/dist/framework-components-DQFte83L-CIIcH8Bj.d.mts.map +0 -1
- package/dist/mutation-default-types-js6llINX-WGmpaAAL.d.mts +0 -66
- package/dist/mutation-default-types-js6llINX-WGmpaAAL.d.mts.map +0 -1
- package/dist/psl-ast-B6X_rlhZ-DCrq7Zie.d.mts.map +0 -1
- package/dist/psl-ast-DlmFfwfZ.d.mts +0 -2
- package/dist/read-expression-as-Dhyvx51C-BbNqJHAR.mjs.map +0 -1
- package/dist/temporal-presets-9VgC1-FN-MoyINRBU.d.mts.map +0 -1
- package/dist/temporal-presets-DF8wiIwk-CZI3cLQZ.mjs.map +0 -1
|
@@ -1,107 +1,19 @@
|
|
|
1
1
|
import { T as ContractWithDomain, U as NamespaceId, V as LedgerEntryRecord, m as ContractMarkerRecord } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
|
|
2
2
|
import { i as ControlPolicy, t as Contract } from "./contract-types-DEIEpzU_-DvAVuBr5.mjs";
|
|
3
|
-
import { _ as DataType, h as CodecRegistry, t as AnyCodecDescriptor, y as DataTypeLookup } from "./codec-types-
|
|
3
|
+
import { _ as DataType, h as CodecRegistry, t as AnyCodecDescriptor, y as DataTypeLookup } from "./codec-types-CPgEZoIq-BL9hisr8.mjs";
|
|
4
4
|
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { l as TypesImportSpec, t as AggregateDescriptor } from "./types-import-spec-hkPsnreE-C-fa8812.mjs";
|
|
5
|
+
import { E as AuthoringPslBlockDescriptorNamespace, G as DataTypeAuthoringEntry, K as DataTypeSupport, P as AuthoringTypeNamespace, a as AuthoringAttributeSpecContributions, b as AuthoringModelAttributeDescriptorNamespace, et as GeneratorFunctionField, h as AuthoringFieldNamespace, n as AssembledControlMutationDefaults, p as AuthoringEntityTypeNamespace, s as AuthoringContributions, tt as GeneratorFunctionRegistry } from "./framework-authoring-C78etPdT-CeiBIBJ-.mjs";
|
|
6
|
+
import { n as ContributedHelper } from "./temporal-presets-suGfXweJ-Cv2uijGj.mjs";
|
|
7
|
+
import { l as TypesImportSpec, t as AggregateDescriptor } from "./types-import-spec-DQjfX-gM-zVncuzs0.mjs";
|
|
9
8
|
import { t as CapabilityMatrix } from "./capabilities-Cupq4-1--C71ORI3N.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import { r as ImportSpecifierResolver, t as EmissionSpi } from "./emission-types-
|
|
12
|
-
import { f as PslDocumentAst } from "./psl-ast-
|
|
9
|
+
import { a as ComponentMetadata, b as TargetInstance, c as DriverDescriptor, d as ExtensionDescriptor, f as ExtensionInstance, h as FamilyInstance, l as DriverInstance, m as FamilyDescriptor, n as AdapterInstance, t as AdapterDescriptor, v as TargetBoundComponentDescriptor, y as TargetDescriptor } from "./framework-components-BmRQfvNS-KSEiBXXc.mjs";
|
|
10
|
+
import { r as ImportSpecifierResolver, t as EmissionSpi } from "./emission-types-B-jKEbjI-D7BW8Gk1.mjs";
|
|
11
|
+
import { f as PslDocumentAst } from "./psl-ast-54cA0pl_-DrzGrcMF.mjs";
|
|
13
12
|
import { a as StructuredError } from "./structured-error-Cc7AIRsp.mjs";
|
|
14
13
|
import { t as ImportRequirement } from "./index-MU-ksXsh.mjs";
|
|
15
14
|
import { n as JsonObject } from "./json-Dkqr3say.mjs";
|
|
16
15
|
import { i as StorageSort, n as PreserveEmptyPredicate } from "./canonicalization-CyrrXGmj-CeKUkht1.mjs";
|
|
17
16
|
//#region ../../../1-framework/1-core/framework-components/dist/control.d.mts
|
|
18
|
-
//#region src/control/contract-serializer.d.ts
|
|
19
|
-
/**
|
|
20
|
-
* Framework SPI for moving a contract between its canonical on-disk JSON
|
|
21
|
-
* form and its in-memory class-hierarchy form. Both directions live on the
|
|
22
|
-
* same SPI so the conceptual seam — "the boundary where the contract
|
|
23
|
-
* crosses between persisted JSON and live class instances" — has a single
|
|
24
|
-
* named home.
|
|
25
|
-
*
|
|
26
|
-
* Both faces are needed by the framework today (round-trip property tests,
|
|
27
|
-
* drift detection, future canonicalization), not eventually. For most
|
|
28
|
-
* targets `serializeContract` is identity over JSON-clean class instances;
|
|
29
|
-
* the method exists because the seam is real, not as a convention placeholder.
|
|
30
|
-
*
|
|
31
|
-
* Implementers compose this SPI as a named property on their target
|
|
32
|
-
* descriptor (`descriptor.contractSerializer`); the descriptor itself
|
|
33
|
-
* remains the aggregator of all per-target SPIs.
|
|
34
|
-
*/
|
|
35
|
-
interface ContractSerializer<TContract> {
|
|
36
|
-
/**
|
|
37
|
-
* Validate the JSON shape and construct typed class instances. Throws on
|
|
38
|
-
* structural / domain / storage validation failures. Returns the typed
|
|
39
|
-
* contract on success.
|
|
40
|
-
*
|
|
41
|
-
* The method-level type parameter lets call sites that hold a
|
|
42
|
-
* precisely-typed contract literal (e.g. `typeof contract` from a
|
|
43
|
-
* generated `contract.d.ts`) recover that literal type without an
|
|
44
|
-
* external cast. The default `T = TContract` preserves the inferred
|
|
45
|
-
* return type for every caller that does not opt in.
|
|
46
|
-
*/
|
|
47
|
-
deserializeContract<T extends TContract = TContract>(json: unknown): T;
|
|
48
|
-
/**
|
|
49
|
-
* Serialize a typed contract to its canonical JSON shape. Returns
|
|
50
|
-
* `JsonObject` so callers can stringify, hash, or feed the result into
|
|
51
|
-
* another SPI without re-asserting JSON-cleanness. Targets whose contract
|
|
52
|
-
* fields are JSON-clean by construction return the contract unchanged
|
|
53
|
-
* (the symmetric pair to `deserializeContract`); targets that need to
|
|
54
|
-
* canonicalize on the way out (key ordering, dropping computed-only
|
|
55
|
-
* fields, normalizing numeric encodings) do that work here.
|
|
56
|
-
*/
|
|
57
|
-
serializeContract(contract: TContract): JsonObject;
|
|
58
|
-
/**
|
|
59
|
-
* Optional family-contributed preserve-empty predicate for the
|
|
60
|
-
* framework canonicalizer. When present, the canonicalizer calls this
|
|
61
|
-
* inside its default-omission walk to let the family veto the stripping
|
|
62
|
-
* of empty objects/arrays/`false` values at family-specific storage paths.
|
|
63
|
-
* Families whose storage has no such special-case paths omit this hook.
|
|
64
|
-
*/
|
|
65
|
-
readonly shouldPreserveEmpty?: PreserveEmptyPredicate;
|
|
66
|
-
/**
|
|
67
|
-
* Optional family-contributed storage sort hook for the framework
|
|
68
|
-
* canonicalizer. When present, the canonicalizer applies this to the
|
|
69
|
-
* serialized `storage` subtree after the omission walk and before the
|
|
70
|
-
* final key sort. Families that need deterministic ordering of storage
|
|
71
|
-
* arrays (e.g. SQL `indexes`/`uniques`) supply this hook.
|
|
72
|
-
*/
|
|
73
|
-
readonly sortStorage?: StorageSort;
|
|
74
|
-
/**
|
|
75
|
-
* The canonicalization hooks the family's emit pipeline computes storage
|
|
76
|
-
* hashes with. Distinct from {@link shouldPreserveEmpty} /
|
|
77
|
-
* {@link sortStorage}: those govern on-disk serialization and may be
|
|
78
|
-
* broader per target (Postgres preserves required entity-kind fields at
|
|
79
|
-
* default values so the persisted contract re-deserializes), while a hash
|
|
80
|
-
* recompute must reproduce the exact canonical form the published
|
|
81
|
-
* `storageHash` was derived from. Integrity checks that recompute storage
|
|
82
|
-
* hashes (snapshot content verification, descriptor self-consistency)
|
|
83
|
-
* must use these hooks, never the serialization pair. A family whose hash
|
|
84
|
-
* input is not the persisted storage shape (Mongo hashes a projection)
|
|
85
|
-
* must not publish hooks; its snapshots then read without content
|
|
86
|
-
* verification.
|
|
87
|
-
*/
|
|
88
|
-
readonly hashCanonicalizationHooks?: {
|
|
89
|
-
readonly shouldPreserveEmpty?: PreserveEmptyPredicate;
|
|
90
|
-
readonly sortStorage?: StorageSort;
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
//#endregion
|
|
94
|
-
//#region src/control/contract-snapshot-layout.d.ts
|
|
95
|
-
declare const CONTRACT_SNAPSHOTS_DIRNAME = "snapshots";
|
|
96
|
-
/** Whether the snapshot store can address `storageHash`. */
|
|
97
|
-
declare function isStorageHashHex(storageHash: string): boolean;
|
|
98
|
-
/** Validate a storage hash for use as a directory name. */
|
|
99
|
-
declare function storageHashHex(storageHash: string): string;
|
|
100
|
-
/** Module specifier for the store's `contract.json`, POSIX separators. */
|
|
101
|
-
declare function contractSnapshotJsonSpecifier(snapshotsImportPath: string, storageHash: string): string;
|
|
102
|
-
/** Type-only module specifier for the store's `contract.d.ts` (no extension). */
|
|
103
|
-
declare function contractSnapshotTypesSpecifier(snapshotsImportPath: string, storageHash: string): string;
|
|
104
|
-
//#endregion
|
|
105
17
|
//#region src/control/schema-diff.d.ts
|
|
106
18
|
/**
|
|
107
19
|
* A root-anchored chain of `(nodeKind, id)` steps identifying a node in a
|
|
@@ -366,6 +278,107 @@ interface SpaceMarkerConflict {
|
|
|
366
278
|
/** What signing did to one contract space's marker. */
|
|
367
279
|
type SpaceSignature = SpaceSigned | SpaceMarkerConflict;
|
|
368
280
|
//#endregion
|
|
281
|
+
//#region src/control/control-instances.d.ts
|
|
282
|
+
interface ControlFamilyInstance<TFamilyId extends string, TSchemaIR> extends FamilyInstance<TFamilyId> {
|
|
283
|
+
/**
|
|
284
|
+
* The family seam-of-record for on-disk contract reads. Structurally
|
|
285
|
+
* validates the JSON envelope and hydrates IR-class instances via the
|
|
286
|
+
* per-target ContractSerializer. The single named entry point every
|
|
287
|
+
* CLI on-disk read crosses (TML-2536) — `as Contract` casts in
|
|
288
|
+
* production package sources are a serializer-bypass smell guarded by
|
|
289
|
+
* `pnpm lint:no-contract-cast`.
|
|
290
|
+
*/
|
|
291
|
+
deserializeContract(contractJson: unknown): Contract;
|
|
292
|
+
/** The name the database knows the object an operation acts on by. */
|
|
293
|
+
storageNameOf(operation: MigrationPlanOperation): string;
|
|
294
|
+
verify(options: {
|
|
295
|
+
readonly driver: ControlDriverInstance<TFamilyId, string>;
|
|
296
|
+
readonly contract: unknown;
|
|
297
|
+
readonly expectedTargetId: string;
|
|
298
|
+
readonly contractPath: string;
|
|
299
|
+
readonly configPath?: string;
|
|
300
|
+
}): Promise<VerifyDatabaseResult>;
|
|
301
|
+
/**
|
|
302
|
+
* Verify a contract against an already-introspected schema.
|
|
303
|
+
*
|
|
304
|
+
* Callers that need to verify against the live database compose
|
|
305
|
+
* {@link introspect} + `verifySchema` directly. The aggregate verifier
|
|
306
|
+
* verifies each member against the full introspected schema and scopes the
|
|
307
|
+
* result to that member's contract space afterwards — it never prunes the
|
|
308
|
+
* schema up front.
|
|
309
|
+
*
|
|
310
|
+
* Synchronous — no I/O. Idempotent.
|
|
311
|
+
*/
|
|
312
|
+
verifySchema(options: {
|
|
313
|
+
readonly contract: unknown;
|
|
314
|
+
readonly schema: TSchemaIR;
|
|
315
|
+
readonly strict: boolean;
|
|
316
|
+
readonly frameworkComponents: ReadonlyArray<TargetBoundComponentDescriptor<TFamilyId, string>>;
|
|
317
|
+
}): VerifyDatabaseSchemaResult;
|
|
318
|
+
/**
|
|
319
|
+
* Writes the marker of every space in `spaces` with its contract's hashes. Does not check the schema: callers verify each space first. A space whose marker no longer holds `expected`, when it is read or when it is written, is reported as a conflict and its marker is left as it was. The SQL family takes the migration runner's marker lock, one lock for the whole marker table, and writes every marker in one transaction, so a failed write leaves every marker as it was. The Mongo family writes the markers one by one, so a failed write can leave earlier markers written; running the command again finishes the job.
|
|
320
|
+
*/
|
|
321
|
+
signSpaces(options: {
|
|
322
|
+
readonly driver: ControlDriverInstance<TFamilyId, string>;
|
|
323
|
+
readonly spaces: readonly SpaceToSign[];
|
|
324
|
+
}): Promise<readonly SpaceSignature[]>;
|
|
325
|
+
/**
|
|
326
|
+
* Reads the contract marker for `space` from the database, returning
|
|
327
|
+
* `null` if no marker row exists for that space (or if the marker
|
|
328
|
+
* table itself is missing).
|
|
329
|
+
*
|
|
330
|
+
* `space` is required at every call site so the type system surfaces
|
|
331
|
+
* every place that needs to thread the value: callers in app-only
|
|
332
|
+
* paths pass {@link import('./control-spaces').APP_SPACE_ID}
|
|
333
|
+
* (`'app'`); per-extension callers pass the extension's space id.
|
|
334
|
+
* Defaulting at the family-interface level was a silent bug door —
|
|
335
|
+
* it let callers forget to pass `space` and collapse onto the app's
|
|
336
|
+
* marker row.
|
|
337
|
+
*
|
|
338
|
+
* Families whose underlying storage doesn't yet support per-space
|
|
339
|
+
* markers (Mongo, today) accept `space` for interface conformance and
|
|
340
|
+
* reject any non-`APP_SPACE_ID` value rather than silently ignoring
|
|
341
|
+
* it; see the family-specific implementation for details.
|
|
342
|
+
*/
|
|
343
|
+
readMarker(options: {
|
|
344
|
+
readonly driver: ControlDriverInstance<TFamilyId, string>;
|
|
345
|
+
readonly space: string;
|
|
346
|
+
}): Promise<ContractMarkerRecord | null>;
|
|
347
|
+
/**
|
|
348
|
+
* Reads every marker row keyed by `space`. Used by the per-space
|
|
349
|
+
* verifier to detect orphan marker rows and marker-vs-on-disk drift.
|
|
350
|
+
* Returns an empty map when the marker table does not yet exist.
|
|
351
|
+
*/
|
|
352
|
+
readAllMarkers(options: {
|
|
353
|
+
readonly driver: ControlDriverInstance<TFamilyId, string>;
|
|
354
|
+
}): Promise<ReadonlyMap<string, ContractMarkerRecord>>;
|
|
355
|
+
/**
|
|
356
|
+
* Reads the per-migration ledger journal in apply order. When `space` is
|
|
357
|
+
* omitted, returns rows for every space. Returns an empty array when the
|
|
358
|
+
* ledger store does not yet exist or has no matching rows.
|
|
359
|
+
*/
|
|
360
|
+
readLedger(options: {
|
|
361
|
+
readonly driver: ControlDriverInstance<TFamilyId, string>;
|
|
362
|
+
readonly space?: string;
|
|
363
|
+
}): Promise<readonly LedgerEntryRecord[]>;
|
|
364
|
+
introspect(options: {
|
|
365
|
+
readonly driver: ControlDriverInstance<TFamilyId, string>;
|
|
366
|
+
readonly contract?: unknown;
|
|
367
|
+
}): Promise<TSchemaIR>;
|
|
368
|
+
}
|
|
369
|
+
interface ControlTargetInstance<TFamilyId extends string, TTargetId extends string> extends TargetInstance<TFamilyId, TTargetId> {}
|
|
370
|
+
interface ControlAdapterInstance<TFamilyId extends string, TTargetId extends string> extends AdapterInstance<TFamilyId, TTargetId> {}
|
|
371
|
+
interface ControlDriverInstance<TFamilyId extends string, TTargetId extends string> extends DriverInstance<TFamilyId, TTargetId> {
|
|
372
|
+
close(): Promise<void>;
|
|
373
|
+
/**
|
|
374
|
+
* Name of the database this connection is bound to, when the target names
|
|
375
|
+
* one. `db update` asks the user to type it before applying destructive
|
|
376
|
+
* operations, so it names where the data would be lost.
|
|
377
|
+
*/
|
|
378
|
+
databaseName?(): Promise<string | undefined>;
|
|
379
|
+
}
|
|
380
|
+
interface ControlExtensionInstance<TFamilyId extends string, TTargetId extends string> extends ExtensionInstance<TFamilyId, TTargetId> {}
|
|
381
|
+
//#endregion
|
|
369
382
|
//#region src/control/migration-statements.d.ts
|
|
370
383
|
/** A model: its namespace and its name as the contract source writes it, never a table name. */
|
|
371
384
|
interface ModelCoordinate {
|
|
@@ -830,12 +843,23 @@ interface MigrationRunnerSuccessValue {
|
|
|
830
843
|
readonly value: MigrationRunnerPerSpaceSuccessValue;
|
|
831
844
|
}>;
|
|
832
845
|
}
|
|
846
|
+
/**
|
|
847
|
+
* What a check states of the database: that the object is `absent` or `present`. `object` is
|
|
848
|
+
* display text, the object as a reader names it (`index "Item_state_idx"`); no code reads it to
|
|
849
|
+
* decide anything.
|
|
850
|
+
*/
|
|
851
|
+
interface CheckExpectation {
|
|
852
|
+
readonly expects: 'absent' | 'present';
|
|
853
|
+
readonly object: string;
|
|
854
|
+
}
|
|
833
855
|
/** A check of an operation that did not hold: before the operation ran (`precheck`), or after it (`postcheck`). */
|
|
834
856
|
interface FailedCheck {
|
|
835
857
|
readonly operationId: string;
|
|
836
858
|
readonly phase: 'precheck' | 'postcheck';
|
|
837
859
|
/** The check, as the operation describes it. */
|
|
838
860
|
readonly description: string;
|
|
861
|
+
/** What the check states of the database, when it states an object's absence or presence. */
|
|
862
|
+
readonly expectation?: CheckExpectation;
|
|
839
863
|
}
|
|
840
864
|
/** A failed migration run: a structured error whose `message` is the summary. */
|
|
841
865
|
interface MigrationRunnerFailure extends StructuredError {
|
|
@@ -849,6 +873,12 @@ interface MigrationRunnerFailureMeta {
|
|
|
849
873
|
* {@link MigrationRunner.execute} processes multiple spaces.
|
|
850
874
|
*/
|
|
851
875
|
readonly failingSpace?: string;
|
|
876
|
+
/**
|
|
877
|
+
* Whether the database is as it was before the failed apply: `true` when the runner rolled the
|
|
878
|
+
* apply back or failed before it changed anything, `false` when what it changed stays. Absent when
|
|
879
|
+
* the runner does not say.
|
|
880
|
+
*/
|
|
881
|
+
readonly databaseUnchanged?: boolean;
|
|
852
882
|
/** The check that did not hold, when a precheck or postcheck failed. */
|
|
853
883
|
readonly failedCheck?: FailedCheck;
|
|
854
884
|
/** The type change that failed, when the failed step converts a column's values. */
|
|
@@ -876,6 +906,15 @@ declare function withFailingSpace<TCode extends MigrationRunnerFailure['code']>(
|
|
|
876
906
|
}, failingSpace: string): MigrationRunnerFailure & {
|
|
877
907
|
readonly code: TCode;
|
|
878
908
|
};
|
|
909
|
+
/**
|
|
910
|
+
* The same failure, saying whether the database is as it was before the failed apply, in its meta
|
|
911
|
+
* and at the end of its why.
|
|
912
|
+
*/
|
|
913
|
+
declare function withDatabaseUnchanged<TCode extends MigrationRunnerFailure['code']>(failure: MigrationRunnerFailure & {
|
|
914
|
+
readonly code: TCode;
|
|
915
|
+
}, databaseUnchanged: boolean): MigrationRunnerFailure & {
|
|
916
|
+
readonly code: TCode;
|
|
917
|
+
};
|
|
879
918
|
/** A field that is to become required while existing rows have no value for it. */
|
|
880
919
|
interface RowsWithoutValue {
|
|
881
920
|
/** The field, when the destination contract names the storage that lacks the value. */
|
|
@@ -1193,106 +1232,96 @@ interface MigrationScaffoldContext {
|
|
|
1193
1232
|
readonly snapshotsImportPath: string;
|
|
1194
1233
|
}
|
|
1195
1234
|
//#endregion
|
|
1196
|
-
//#region src/control/
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1235
|
+
//#region src/control/check-expectation.d.ts
|
|
1236
|
+
declare function expectAbsent(object: string): CheckExpectation;
|
|
1237
|
+
declare function expectPresent(object: string): CheckExpectation;
|
|
1238
|
+
//#endregion
|
|
1239
|
+
//#region src/control/contract-serializer.d.ts
|
|
1240
|
+
/**
|
|
1241
|
+
* Framework SPI for moving a contract between its canonical on-disk JSON
|
|
1242
|
+
* form and its in-memory class-hierarchy form. Both directions live on the
|
|
1243
|
+
* same SPI so the conceptual seam — "the boundary where the contract
|
|
1244
|
+
* crosses between persisted JSON and live class instances" — has a single
|
|
1245
|
+
* named home.
|
|
1246
|
+
*
|
|
1247
|
+
* Both faces are needed by the framework today (round-trip property tests,
|
|
1248
|
+
* drift detection, future canonicalization), not eventually. For most
|
|
1249
|
+
* targets `serializeContract` is identity over JSON-clean class instances;
|
|
1250
|
+
* the method exists because the seam is real, not as a convention placeholder.
|
|
1251
|
+
*
|
|
1252
|
+
* Implementers compose this SPI as a named property on their target
|
|
1253
|
+
* descriptor (`descriptor.contractSerializer`); the descriptor itself
|
|
1254
|
+
* remains the aggregator of all per-target SPIs.
|
|
1255
|
+
*/
|
|
1256
|
+
interface ContractSerializer<TContract> {
|
|
1216
1257
|
/**
|
|
1217
|
-
*
|
|
1218
|
-
*
|
|
1219
|
-
*
|
|
1220
|
-
* {@link introspect} + `verifySchema` directly. The aggregate verifier
|
|
1221
|
-
* verifies each member against the full introspected schema and scopes the
|
|
1222
|
-
* result to that member's contract space afterwards — it never prunes the
|
|
1223
|
-
* schema up front.
|
|
1258
|
+
* Validate the JSON shape and construct typed class instances. Throws on
|
|
1259
|
+
* structural / domain / storage validation failures. Returns the typed
|
|
1260
|
+
* contract on success.
|
|
1224
1261
|
*
|
|
1225
|
-
*
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
readonly strict: boolean;
|
|
1231
|
-
readonly frameworkComponents: ReadonlyArray<TargetBoundComponentDescriptor<TFamilyId, string>>;
|
|
1232
|
-
}): VerifyDatabaseSchemaResult;
|
|
1233
|
-
/**
|
|
1234
|
-
* Writes the marker of every space in `spaces` with its contract's hashes. Does not check the schema: callers verify each space first. A space whose marker no longer holds `expected`, when it is read or when it is written, is reported as a conflict and its marker is left as it was. The SQL family takes the migration runner's marker lock, one lock for the whole marker table, and writes every marker in one transaction, so a failed write leaves every marker as it was. The Mongo family writes the markers one by one, so a failed write can leave earlier markers written; running the command again finishes the job.
|
|
1262
|
+
* The method-level type parameter lets call sites that hold a
|
|
1263
|
+
* precisely-typed contract literal (e.g. `typeof contract` from a
|
|
1264
|
+
* generated `contract.d.ts`) recover that literal type without an
|
|
1265
|
+
* external cast. The default `T = TContract` preserves the inferred
|
|
1266
|
+
* return type for every caller that does not opt in.
|
|
1235
1267
|
*/
|
|
1236
|
-
|
|
1237
|
-
readonly driver: ControlDriverInstance<TFamilyId, string>;
|
|
1238
|
-
readonly spaces: readonly SpaceToSign[];
|
|
1239
|
-
}): Promise<readonly SpaceSignature[]>;
|
|
1268
|
+
deserializeContract<T extends TContract = TContract>(json: unknown): T;
|
|
1240
1269
|
/**
|
|
1241
|
-
*
|
|
1242
|
-
* `
|
|
1243
|
-
*
|
|
1244
|
-
*
|
|
1245
|
-
*
|
|
1246
|
-
*
|
|
1247
|
-
*
|
|
1248
|
-
* (`'app'`); per-extension callers pass the extension's space id.
|
|
1249
|
-
* Defaulting at the family-interface level was a silent bug door —
|
|
1250
|
-
* it let callers forget to pass `space` and collapse onto the app's
|
|
1251
|
-
* marker row.
|
|
1252
|
-
*
|
|
1253
|
-
* Families whose underlying storage doesn't yet support per-space
|
|
1254
|
-
* markers (Mongo, today) accept `space` for interface conformance and
|
|
1255
|
-
* reject any non-`APP_SPACE_ID` value rather than silently ignoring
|
|
1256
|
-
* it; see the family-specific implementation for details.
|
|
1270
|
+
* Serialize a typed contract to its canonical JSON shape. Returns
|
|
1271
|
+
* `JsonObject` so callers can stringify, hash, or feed the result into
|
|
1272
|
+
* another SPI without re-asserting JSON-cleanness. Targets whose contract
|
|
1273
|
+
* fields are JSON-clean by construction return the contract unchanged
|
|
1274
|
+
* (the symmetric pair to `deserializeContract`); targets that need to
|
|
1275
|
+
* canonicalize on the way out (key ordering, dropping computed-only
|
|
1276
|
+
* fields, normalizing numeric encodings) do that work here.
|
|
1257
1277
|
*/
|
|
1258
|
-
|
|
1259
|
-
readonly driver: ControlDriverInstance<TFamilyId, string>;
|
|
1260
|
-
readonly space: string;
|
|
1261
|
-
}): Promise<ContractMarkerRecord | null>;
|
|
1278
|
+
serializeContract(contract: TContract): JsonObject;
|
|
1262
1279
|
/**
|
|
1263
|
-
*
|
|
1264
|
-
*
|
|
1265
|
-
*
|
|
1280
|
+
* Optional family-contributed preserve-empty predicate for the
|
|
1281
|
+
* framework canonicalizer. When present, the canonicalizer calls this
|
|
1282
|
+
* inside its default-omission walk to let the family veto the stripping
|
|
1283
|
+
* of empty objects/arrays/`false` values at family-specific storage paths.
|
|
1284
|
+
* Families whose storage has no such special-case paths omit this hook.
|
|
1266
1285
|
*/
|
|
1267
|
-
|
|
1268
|
-
readonly driver: ControlDriverInstance<TFamilyId, string>;
|
|
1269
|
-
}): Promise<ReadonlyMap<string, ContractMarkerRecord>>;
|
|
1286
|
+
readonly shouldPreserveEmpty?: PreserveEmptyPredicate;
|
|
1270
1287
|
/**
|
|
1271
|
-
*
|
|
1272
|
-
*
|
|
1273
|
-
*
|
|
1288
|
+
* Optional family-contributed storage sort hook for the framework
|
|
1289
|
+
* canonicalizer. When present, the canonicalizer applies this to the
|
|
1290
|
+
* serialized `storage` subtree after the omission walk and before the
|
|
1291
|
+
* final key sort. Families that need deterministic ordering of storage
|
|
1292
|
+
* arrays (e.g. SQL `indexes`/`uniques`) supply this hook.
|
|
1274
1293
|
*/
|
|
1275
|
-
|
|
1276
|
-
readonly driver: ControlDriverInstance<TFamilyId, string>;
|
|
1277
|
-
readonly space?: string;
|
|
1278
|
-
}): Promise<readonly LedgerEntryRecord[]>;
|
|
1279
|
-
introspect(options: {
|
|
1280
|
-
readonly driver: ControlDriverInstance<TFamilyId, string>;
|
|
1281
|
-
readonly contract?: unknown;
|
|
1282
|
-
}): Promise<TSchemaIR>;
|
|
1283
|
-
}
|
|
1284
|
-
interface ControlTargetInstance<TFamilyId extends string, TTargetId extends string> extends TargetInstance<TFamilyId, TTargetId> {}
|
|
1285
|
-
interface ControlAdapterInstance<TFamilyId extends string, TTargetId extends string> extends AdapterInstance<TFamilyId, TTargetId> {}
|
|
1286
|
-
interface ControlDriverInstance<TFamilyId extends string, TTargetId extends string> extends DriverInstance<TFamilyId, TTargetId> {
|
|
1287
|
-
close(): Promise<void>;
|
|
1294
|
+
readonly sortStorage?: StorageSort;
|
|
1288
1295
|
/**
|
|
1289
|
-
*
|
|
1290
|
-
*
|
|
1291
|
-
*
|
|
1296
|
+
* The canonicalization hooks the family's emit pipeline computes storage
|
|
1297
|
+
* hashes with. Distinct from {@link shouldPreserveEmpty} /
|
|
1298
|
+
* {@link sortStorage}: those govern on-disk serialization and may be
|
|
1299
|
+
* broader per target (Postgres preserves required entity-kind fields at
|
|
1300
|
+
* default values so the persisted contract re-deserializes), while a hash
|
|
1301
|
+
* recompute must reproduce the exact canonical form the published
|
|
1302
|
+
* `storageHash` was derived from. Integrity checks that recompute storage
|
|
1303
|
+
* hashes (snapshot content verification, descriptor self-consistency)
|
|
1304
|
+
* must use these hooks, never the serialization pair. A family whose hash
|
|
1305
|
+
* input is not the persisted storage shape (Mongo hashes a projection)
|
|
1306
|
+
* must not publish hooks; its snapshots then read without content
|
|
1307
|
+
* verification.
|
|
1292
1308
|
*/
|
|
1293
|
-
|
|
1309
|
+
readonly hashCanonicalizationHooks?: {
|
|
1310
|
+
readonly shouldPreserveEmpty?: PreserveEmptyPredicate;
|
|
1311
|
+
readonly sortStorage?: StorageSort;
|
|
1312
|
+
};
|
|
1294
1313
|
}
|
|
1295
|
-
|
|
1314
|
+
//#endregion
|
|
1315
|
+
//#region src/control/contract-snapshot-layout.d.ts
|
|
1316
|
+
declare const CONTRACT_SNAPSHOTS_DIRNAME = "snapshots";
|
|
1317
|
+
/** Whether the snapshot store can address `storageHash`. */
|
|
1318
|
+
declare function isStorageHashHex(storageHash: string): boolean;
|
|
1319
|
+
/** Validate a storage hash for use as a directory name. */
|
|
1320
|
+
declare function storageHashHex(storageHash: string): string;
|
|
1321
|
+
/** Module specifier for the store's `contract.json`, POSIX separators. */
|
|
1322
|
+
declare function contractSnapshotJsonSpecifier(snapshotsImportPath: string, storageHash: string): string;
|
|
1323
|
+
/** Type-only module specifier for the store's `contract.d.ts` (no extension). */
|
|
1324
|
+
declare function contractSnapshotTypesSpecifier(snapshotsImportPath: string, storageHash: string): string;
|
|
1296
1325
|
//#endregion
|
|
1297
1326
|
//#region src/control/control-spaces.d.ts
|
|
1298
1327
|
/**
|
|
@@ -1503,6 +1532,8 @@ declare function createControlStack<TFamilyId extends string, TTargetId extends
|
|
|
1503
1532
|
//#region src/control/control-descriptors.d.ts
|
|
1504
1533
|
interface ControlFamilyDescriptor<TFamilyId extends string, TFamilyInstance extends ControlFamilyInstance<TFamilyId, unknown> = ControlFamilyInstance<TFamilyId, unknown>> extends FamilyDescriptor<TFamilyId> {
|
|
1505
1534
|
readonly emission: EmissionSpi;
|
|
1535
|
+
/** The length of a field of a codec and type params, in its data type's normal form, as a generator binding reads {@link GeneratorFunctionField.length}. A family whose fields have no length omits it. */
|
|
1536
|
+
readonly fieldLength?: (field: Omit<GeneratorFunctionField, 'length'>, dataTypes: DataTypeSupport) => number | undefined;
|
|
1506
1537
|
readonly pslDiagnostics?: {
|
|
1507
1538
|
readonly describeUnsupportedAttribute?: unknown;
|
|
1508
1539
|
readonly describeUnresolvedType?: unknown;
|
|
@@ -1725,8 +1756,10 @@ declare function issueLabel(issue: SchemaDiffIssue): string;
|
|
|
1725
1756
|
declare function schemaIssuesWhy(opening: string, issues: readonly SchemaDiffIssue[]): string;
|
|
1726
1757
|
/** The why of a failed schema check after apply, listing its issues when it found any. */
|
|
1727
1758
|
declare function schemaCheckWhy(issues: readonly SchemaDiffIssue[]): string;
|
|
1728
|
-
/** What a failed check before an operation means: the operation
|
|
1759
|
+
/** What a failed check before an operation means: the operation, the check description as written, and what the check's expectation says of the database when it has one. */
|
|
1729
1760
|
declare function failedPrecheckWhy(check: FailedCheck): string;
|
|
1761
|
+
/** What a failed check after an operation means: the operation, the check description as written, and what the check's expectation says of the database when it has one. */
|
|
1762
|
+
declare function failedPostcheckWhy(check: FailedCheck): string;
|
|
1730
1763
|
//#endregion
|
|
1731
1764
|
//#region src/control/schema-verifier.d.ts
|
|
1732
1765
|
/**
|
|
@@ -1799,5 +1832,5 @@ type VerifierIssueCategory = 'declaredMissing' | 'declaredIncompatible' | 'value
|
|
|
1799
1832
|
*/
|
|
1800
1833
|
declare function dispositionForCategory(controlPolicy: ControlPolicy, category: VerifierIssueCategory): VerifierOutcome;
|
|
1801
1834
|
//#endregion
|
|
1802
|
-
export {
|
|
1803
|
-
//# sourceMappingURL=control-
|
|
1835
|
+
export { MigrationPlannerSuccessResult as $, VERIFY_CODE_HASH_MISMATCH as $t, FailedTypeChange as A, hasOperationPreview as An, ResolvedMigrationStatement as At, MigrationMetadata as B, migrationStatementJson as Bn, SchemaTreeNode as Bt, DiffSubjectGranularity as C, extractComponentIds as Cn, PslContractBuildCapable as Ct, FailedCast as D, failedPrecheckWhy as Dn, ResolvedFieldBackfillStatement as Dt, ExpectationFailureReason as E, failedPostcheckWhy as En, PslSourceSettings as Et, MarkerHashes as F, isRenameStatement as Fn, SchemaDiffIssue as Ft, MigrationPlan as G, orderIssuesByDependencies as Gn, SchemaVerifyResult as Gt, MigrationOperationPolicy as H, migrationSubjectKey as Hn, SchemaTreeVisitor as Ht, MigratableTargetDescriptor as I, isStorageHashHex as In, SchemaEntityCoordinate as It, MigrationPlanWithAuthoringSurface as J, schemaCheckWhy as Jn, SpaceMarkerConflict as Jt, MigrationPlanOperation as K, planOriginOf as Kn, SchemaViewCapable as Kt, MigrationAccessChange as L, issueLabel as Ln, SchemaNodeRef as Lt, FieldCoordinateJson as M, hasPslContractInfer as Mn, ResolvedRenameStatement as Mt, HelperCodecInvariantInput as N, hasSchemaSubjectClassifier as Nn, RowsWithoutValue as Nt, FailedCheck as O, fieldStatementText as On, ResolvedFieldConvertStatement as Ot, IntrospectSchemaResult as P, hasSchemaView as Pn, SchemaDiff as Pt, MigrationPlannerResult as Q, withFailingSpace as Qn, TargetMigrationsCapability as Qt, MigrationDataLoss as R, issueOutcome as Rn, SchemaOwnership as Rt, CreateControlStackInput as S, extractCodecTypeImports as Sn, PlanOrigin as St, EmitContractResult as T, extractQueryOperationTypeImports as Tn, PslContractInferCapable as Tt, MigrationOperationSubject as U, modelDisplayName as Un, SchemaVerifier as Ut, MigrationOperationClass as V, migrationSubjectJson as Vn, SchemaTreeNodeOptions as Vt, MigrationPackage as W, modelStatementText as Wn, SchemaVerifyOptions as Wt, MigrationPlannerConflict as X, storageHashHex as Xn, SpaceSigned as Xt, MigrationPlanner as Y, schemaIssuesWhy as Yn, SpaceSignature as Yt, MigrationPlannerFailureResult as Z, withDatabaseUnchanged as Zn, SpaceToSign as Zt, ControlFamilyInstance as _, dispositionForCategory as _n, OpFactoryCall as _t, CheckExpectation as a, VerifierOutcome as an, MigrationRunnerPerSpaceSuccessValue as at, ControlTargetInstance as b, expectPresent as bn, OperationPreviewCapable as bt, ContractSpaceHeadRef as c, assembleAuthoringContributions as cn, MigrationScaffoldContext as ct, ControlDriverConnectOptions as d, buildExtensionLoadOrder as dn, MigrationSubjectJson as dt, VERIFY_CODE_MARKER_MISSING as en, MigrationRunner as et, ControlDriverDescriptor as f, contractSnapshotJsonSpecifier as fn, MigrationTemporaryValue as ft, ControlFamilyDescriptor as g, diffSchemas as gn, ModelCoordinateJson as gt, ControlExtensionInstance as h, describeMigrationStatement as hn, ModelCoordinate as ht, CONTRACT_SNAPSHOTS_DIRNAME as i, VerifierIssueCategory as in, MigrationRunnerPerSpaceOptions as it, FieldCoordinate as j, hasPslContractBuild as jn, ResolvedModelRenameStatement as jt, FailedConversion as k, hasMigrations as kn, ResolvedFieldRenameStatement as kt, ControlAdapterDescriptor as l, assembleControlMutationDefaults as ln, MigrationStatementJson as lt, ControlExtensionDescriptor as m, createControlStack as mn, MismatchExplanation as mt, AppliedMigrationStatement as n, VERIFY_CODE_TARGET_MISMATCH as nn, MigrationRunnerFailure as nt, ContractSerializer as o, VerifyDatabaseResult as on, MigrationRunnerResult as ot, ControlDriverInstance as p, contractSnapshotTypesSpecifier as pn, MismatchCause as pt, MigrationPlanSubjects as q, sameMarkerHashes as qn, SchemaViewNodeKind as qt, AssembledAuthoringContributions as r, VerificationStatus as rn, MigrationRunnerFailureMeta as rt, ContractSpace as s, VerifyDatabaseSchemaResult as sn, MigrationRunnerSuccessValue as st, APP_SPACE_ID as t, VERIFY_CODE_SCHEMA_FAILURE as tn, MigrationRunnerExecutionChecks as tt, ControlAdapterInstance as u, assertUniqueCodecOwner as un, MigrationSubject as ut, ControlStack as v, enforceHelperCodecInvariants as vn, OperationContext as vt, DiffableNode as w, extractParameterizedOutputTypeImports as wn, PslContractDocument as wt, CoreSchemaView as x, extractCodecLookup as xn, OperationPreviewStatement as xt, ControlTargetDescriptor as y, expectAbsent as yn, OperationPreview as yt, MigrationDataLossKind as z, migrationRunnerFailure as zn, SchemaSubjectClassifierCapable as zt };
|
|
1836
|
+
//# sourceMappingURL=control-BC7a9D7N.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-BC7a9D7N.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/control.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;KAsBK;WACM;WACA;;UAED,gBAAgB,cAAc,eAAe;;WAE5C;;WAEA,WAAW;;WAEX,SAAS;;;;;;;;WAQT;;WAEA,cAAc;;;;;;;KAOpB;UACK;;WAEC;WACA,OAAO;;;;;;;;;;;;;;;;KAgBb;;;;;;;iBAOY,aAAa,OAAO,kBAAkB;;;;;;;;;;;;;;;UAe7C;WACC;WACA;;;;;;;WAOA,qBAAqB;EAC9B,UAAU,OAAO;;;;;;EAMjB,iBAAiB,QAAQ,2BAA2B;EACpD,qBAAqB;;;;;;;;;;;iBAWN,YAAY,UAAU,cAAc,QAAQ,wBAAwB;;;;;;;;;;;;cAYvE,WAAW,cAAc,eAAe;WAC3C,iBAAiB,gBAAgB;EAC1C,YAAY,iBAAiB,gBAAgB;;EAE7C,OAAO,OAAO,OAAO,gBAAgB,qBAAqB,WAAW;;;;cAIzD;cACA;cACA;cACA;UACJ;WACC;WACA;WACA,OAAO,SAAS;;UAEjB;WACC;WACA;WACA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;aACE;aACA;;WAEF;WACA;WACA;aACE;aACA;;WAEF;aACE;;;;;;;;;;;;;;;UAeH;WACC;WACA;WACA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;aACE,iBAAiB;aACjB;eACE,iBAAiB;;;WAGrB;aACE;aACA;aACA;;WAEF;aACE;;;UAGH;WACC;WACA;WACA;WACA;WACA;;UAED,uBAAuB;WACtB;WACA;W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