@prisma/orm-toolchain 8.0.0-rc.2-dev.3 → 8.0.0-rc.20
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/README.md +1 -5
- package/dist/{aggregate-DLUJLq5Y.d.mts → aggregate-BpcQdygS.d.mts} +83 -36
- package/dist/aggregate-BpcQdygS.d.mts.map +1 -0
- package/dist/{aggregate-CPZB020V.mjs → aggregate-T_HG6gq6.mjs} +118 -57
- package/dist/aggregate-T_HG6gq6.mjs.map +1 -0
- package/dist/caught-errors-Bmbi1dBu-DKO5X2tN.mjs +1026 -0
- package/dist/caught-errors-Bmbi1dBu-DKO5X2tN.mjs.map +1 -0
- package/dist/cli-telemetry.d.mts +9 -8
- package/dist/cli-telemetry.d.mts.map +1 -1
- package/dist/cli-telemetry.mjs +30 -27
- package/dist/cli-telemetry.mjs.map +1 -1
- package/dist/cli.d.mts +7 -14
- package/dist/cli.d.mts.map +1 -1
- package/dist/cli.mjs +3769 -1506
- package/dist/cli.mjs.map +1 -1
- package/dist/cli__control-api.d.mts +233 -93
- package/dist/cli__control-api.d.mts.map +1 -1
- package/dist/cli__control-api.mjs +3 -2
- package/dist/cli__control-api__testing.d.mts +5 -4
- package/dist/cli__control-api__testing.d.mts.map +1 -1
- package/dist/cli__control-api__testing.mjs +21 -16
- package/dist/cli__control-api__testing.mjs.map +1 -1
- package/dist/cli__init-output.d.mts +11 -1
- package/dist/cli__init-output.d.mts.map +1 -1
- package/dist/cli__init-output.mjs +1 -1
- package/dist/cli__migration-cli.d.mts +1 -1
- package/dist/cli__migration-cli.mjs +65 -19
- package/dist/cli__migration-cli.mjs.map +1 -1
- package/dist/config-loader.d.mts +2 -2
- package/dist/config-loader.mjs +2 -2
- package/dist/{contract-snapshot-store-B0G1Fw_F-CHc4QfKb.mjs → contract-snapshot-store-6gIBcUeb-DJK3OM0j.mjs} +44 -16
- package/dist/contract-snapshot-store-6gIBcUeb-DJK3OM0j.mjs.map +1 -0
- package/dist/contract-snapshot-store-Bok5nQYi-D3g_P7im.d.mts +59 -0
- package/dist/contract-snapshot-store-Bok5nQYi-D3g_P7im.d.mts.map +1 -0
- package/dist/contract-snapshot-store-DrIwu5pn.d.mts +2 -0
- package/dist/{db-verify-BwgNK50T-DGvKgFCK.d.mts → db-sign-gvrl0kFE-D-nTGx88.d.mts} +330 -230
- package/dist/db-sign-gvrl0kFE-D-nTGx88.d.mts.map +1 -0
- package/dist/{domain-type-generation-bpSO3Y0L-jo2C7LlH.mjs → domain-type-generation-B4m774CV-WAjyhZHw.mjs} +144 -154
- package/dist/domain-type-generation-B4m774CV-WAjyhZHw.mjs.map +1 -0
- package/dist/domain-type-generation-DZjtzrbE-BpOOD3YV.d.mts +78 -0
- package/dist/domain-type-generation-DZjtzrbE-BpOOD3YV.d.mts.map +1 -0
- package/dist/emitter.d.mts +3 -3
- package/dist/emitter.mjs +3 -3
- package/dist/emitter__domain-type-generation.d.mts +2 -2
- package/dist/emitter__domain-type-generation.mjs +2 -2
- package/dist/{errors-D59OCpoI.d.mts → errors-CLwhWJiz.d.mts} +14 -3
- package/dist/errors-CLwhWJiz.d.mts.map +1 -0
- package/dist/{errors-CXbGUWGu-CstQHPh6.mjs → errors-DXha_4l--relAaiI4.mjs} +37 -42
- package/dist/errors-DXha_4l--relAaiI4.mjs.map +1 -0
- package/dist/exports-BCIlMjIW-DkUBVDzl.mjs +421 -0
- package/dist/exports-BCIlMjIW-DkUBVDzl.mjs.map +1 -0
- package/dist/exports-BlYTE3-J.mjs +539 -0
- package/dist/exports-BlYTE3-J.mjs.map +1 -0
- package/dist/exports-CKgwcXbp.mjs +3973 -0
- package/dist/exports-CKgwcXbp.mjs.map +1 -0
- package/dist/graph-membership-DxpNgxfZ-BfqA-H7V.mjs +19 -0
- package/dist/graph-membership-DxpNgxfZ-BfqA-H7V.mjs.map +1 -0
- package/dist/{hash-DH8hl5Rq-BpM2t3Nu.mjs → hash-BAZVWU4a-BQovI7hF.mjs} +24 -3
- package/dist/hash-BAZVWU4a-BQovI7hF.mjs.map +1 -0
- package/dist/hash-CwWGlFWV.d.mts +1 -0
- package/dist/{hash-XZYYKJ-i.d.mts → hash-DclMqd7S-WBvXJ_4C.d.mts} +17 -4
- package/dist/hash-DclMqd7S-WBvXJ_4C.d.mts.map +1 -0
- package/dist/{import-roots-CfoYgejL.d.mts → import-roots-ARK1wjzc.d.mts} +3 -3
- package/dist/{import-roots-CfoYgejL.d.mts.map → import-roots-ARK1wjzc.d.mts.map} +1 -1
- package/dist/{import-roots-CNFBPAT1.mjs → import-roots-BPn2s_fq.mjs} +6 -6
- package/dist/import-roots-BPn2s_fq.mjs.map +1 -0
- package/dist/index-CWPFeYyi.d.mts +204 -0
- package/dist/index-CWPFeYyi.d.mts.map +1 -0
- package/dist/{index-Dgwl8Tzs.d.mts → index-tAySVPvZ.d.mts} +16 -4
- package/dist/index-tAySVPvZ.d.mts.map +1 -0
- package/dist/{invariants-CTHy88OP-CYI2a8IO.mjs → invariants-DrF9p5Gd-BF70vGl1.mjs} +3 -3
- package/dist/{invariants-CTHy88OP-CYI2a8IO.mjs.map → invariants-DrF9p5Gd-BF70vGl1.mjs.map} +1 -1
- package/dist/{io-635GlNx1-D3zrw2qu.mjs → io-BNxFm3eg-DYD82QeZ.mjs} +8 -8
- package/dist/io-BNxFm3eg-DYD82QeZ.mjs.map +1 -0
- package/dist/io-D8Epu7iY.d.mts +1 -0
- package/dist/{io-sr4CO9_t-C3eV_kn-.d.mts → io-DZfMV51z-BKlH5Dhb.d.mts} +9 -2
- package/dist/io-DZfMV51z-BKlH5Dhb.d.mts.map +1 -0
- package/dist/{migration-B2ljMJim.d.mts → migration-Bjz05034.d.mts} +12 -5
- package/dist/migration-Bjz05034.d.mts.map +1 -0
- package/dist/{migration-hspPIEeV.mjs → migration-CWyjX9vz.mjs} +18 -6
- package/dist/migration-CWyjX9vz.mjs.map +1 -0
- package/dist/{migration-graph-_SJImD5V-BURyY1KM.mjs → migration-graph-BoiiZAaU-DLht12k7.mjs} +6 -89
- package/dist/migration-graph-BoiiZAaU-DLht12k7.mjs.map +1 -0
- package/dist/{migration-graph-tarTxJ99-BrGBANeE.d.mts → migration-graph-D8IuOkZb-pSI7-k4_.d.mts} +7 -29
- package/dist/migration-graph-D8IuOkZb-pSI7-k4_.d.mts.map +1 -0
- package/dist/migration-graph-Dra4CcyN.d.mts +14 -0
- package/dist/migration-graph-Dra4CcyN.d.mts.map +1 -0
- package/dist/migration-tools.d.mts +17 -15
- package/dist/migration-tools.mjs +15 -15
- package/dist/migration-tools__aggregate.d.mts +2 -2
- package/dist/migration-tools__aggregate.mjs +2 -2
- package/dist/migration-tools__contract-snapshot-store.d.mts +4 -2
- package/dist/migration-tools__contract-snapshot-store.mjs +2 -2
- package/dist/migration-tools__errors.d.mts +2 -2
- package/dist/migration-tools__errors.mjs +1 -1
- package/dist/migration-tools__hash.d.mts +2 -1
- package/dist/migration-tools__hash.mjs +1 -1
- package/dist/migration-tools__invariants.mjs +1 -1
- package/dist/migration-tools__io.d.mts +2 -2
- package/dist/migration-tools__io.mjs +1 -1
- package/dist/migration-tools__migration-graph.d.mts +3 -3
- package/dist/migration-tools__migration-graph.mjs +3 -3
- package/dist/migration-tools__migration-ts.d.mts +2 -2
- package/dist/migration-tools__migration-ts.mjs +2 -2
- package/dist/migration-tools__migration.d.mts +1 -1
- package/dist/migration-tools__migration.mjs +1 -1
- package/dist/migration-tools__ref-resolution.d.mts +2 -2
- package/dist/migration-tools__ref-resolution.mjs +2 -2
- package/dist/migration-tools__refs.mjs +1 -1
- package/dist/migration-tools__spaces.d.mts +1 -1
- package/dist/migration-tools__spaces.mjs +2 -2
- package/dist/{migration-ts-DdVm0rws.mjs → migration-ts-DDgjsR1O.mjs} +6 -5
- package/dist/migration-ts-DDgjsR1O.mjs.map +1 -0
- package/dist/{migration-ts-CNaAtK8C.d.mts → migration-ts-SGer0PXq.d.mts} +4 -2
- package/dist/migration-ts-SGer0PXq.d.mts.map +1 -0
- package/dist/op-schema-3tXg0LTS-DqpOKDEa.mjs +23 -0
- package/dist/op-schema-3tXg0LTS-DqpOKDEa.mjs.map +1 -0
- package/dist/output-BcC8eB0h-C5bRd-aC.mjs +129 -0
- package/dist/output-BcC8eB0h-C5bRd-aC.mjs.map +1 -0
- package/dist/publish-surface.d.mts +1 -1
- package/dist/publish-surface.mjs +2 -2
- package/dist/publish-surface__import-roots.d.mts +1 -1
- package/dist/publish-surface__import-roots.mjs +1 -1
- package/dist/publish-surface__shells.mjs +1 -1
- package/dist/quick-reference-mongo.md +12 -12
- package/dist/quick-reference-postgres.md +10 -10
- package/dist/quick-reference-prisma7.md +80 -0
- package/dist/readme-mongo.md +6 -6
- package/dist/readme-postgres.md +6 -6
- package/dist/ref-DEiY2Cbd-1ZImpUEN.mjs +6663 -0
- package/dist/ref-DEiY2Cbd-1ZImpUEN.mjs.map +1 -0
- package/dist/{ref-resolution-COGOSL57.d.mts → ref-resolution-BPhR-kta.d.mts} +29 -11
- package/dist/ref-resolution-BPhR-kta.d.mts.map +1 -0
- package/dist/{ref-resolution-HeNBXW53.mjs → ref-resolution-Eo0QHp4f.mjs} +30 -6
- package/dist/ref-resolution-Eo0QHp4f.mjs.map +1 -0
- package/dist/{refs-WK86uYYp-gM8tvWQP.mjs → refs-DM3q3IZC-BC6H6P0X.mjs} +9 -9
- package/dist/refs-DM3q3IZC-BC6H6P0X.mjs.map +1 -0
- package/dist/{shells-C4HbRAr5.mjs → shells-w_yEDhe8.mjs} +98 -31
- package/dist/shells-w_yEDhe8.mjs.map +1 -0
- package/dist/{spaces-Dj65JrwZ.d.mts → spaces-BWULKO54.d.mts} +3 -3
- package/dist/{spaces-Dj65JrwZ.d.mts.map → spaces-BWULKO54.d.mts.map} +1 -1
- package/dist/{spaces-4qMOAYE9.mjs → spaces-c9xdiXW8.mjs} +14 -13
- package/dist/spaces-c9xdiXW8.mjs.map +1 -0
- package/dist/{verify-contract-spaces-DhJTb0zM-B62maCfE.mjs → verify-contract-spaces-YzEHF9zj-DGZgox_3.mjs} +7 -7
- package/dist/{verify-contract-spaces-DhJTb0zM-B62maCfE.mjs.map → verify-contract-spaces-YzEHF9zj-DGZgox_3.mjs.map} +1 -1
- package/dist/vite-plugin-contract-emit.d.mts +1 -1
- package/dist/vite-plugin-contract-emit.mjs +10 -10
- package/dist/vite-plugin-contract-emit.mjs.map +1 -1
- package/package.json +16 -15
- package/dist/aggregate-CPZB020V.mjs.map +0 -1
- package/dist/aggregate-DLUJLq5Y.d.mts.map +0 -1
- package/dist/contract-snapshot-store-B0G1Fw_F-CHc4QfKb.mjs.map +0 -1
- package/dist/contract-snapshot-store-CbqynbtE.d.mts +0 -28
- package/dist/contract-snapshot-store-CbqynbtE.d.mts.map +0 -1
- package/dist/db-verify-BwgNK50T-DGvKgFCK.d.mts.map +0 -1
- package/dist/domain-type-generation-PkAb39ob-Ct8AGqow.d.mts +0 -63
- package/dist/domain-type-generation-PkAb39ob-Ct8AGqow.d.mts.map +0 -1
- package/dist/domain-type-generation-bpSO3Y0L-jo2C7LlH.mjs.map +0 -1
- package/dist/errors-CXbGUWGu-CstQHPh6.mjs.map +0 -1
- package/dist/errors-D59OCpoI.d.mts.map +0 -1
- package/dist/exports-8ZUN43ve.mjs +0 -1734
- package/dist/exports-8ZUN43ve.mjs.map +0 -1
- package/dist/exports-BCLg4CiV-05kuwcb0.mjs +0 -160
- package/dist/exports-BCLg4CiV-05kuwcb0.mjs.map +0 -1
- package/dist/exports-BZaG8_w_.mjs +0 -243
- package/dist/exports-BZaG8_w_.mjs.map +0 -1
- package/dist/graph-membership-BViWUMpP-C4lYYJdU.mjs +0 -14
- package/dist/graph-membership-BViWUMpP-C4lYYJdU.mjs.map +0 -1
- package/dist/hash-DH8hl5Rq-BpM2t3Nu.mjs.map +0 -1
- package/dist/hash-XZYYKJ-i.d.mts.map +0 -1
- package/dist/import-roots-CNFBPAT1.mjs.map +0 -1
- package/dist/index-DRs7L6N0.d.mts +0 -57
- package/dist/index-DRs7L6N0.d.mts.map +0 -1
- package/dist/index-Dgwl8Tzs.d.mts.map +0 -1
- package/dist/io-635GlNx1-D3zrw2qu.mjs.map +0 -1
- package/dist/io-DYfeLJxR.d.mts +0 -1
- package/dist/io-sr4CO9_t-C3eV_kn-.d.mts.map +0 -1
- package/dist/migration-B2ljMJim.d.mts.map +0 -1
- package/dist/migration-graph-Dqndu0i5.d.mts +0 -9
- package/dist/migration-graph-Dqndu0i5.d.mts.map +0 -1
- package/dist/migration-graph-_SJImD5V-BURyY1KM.mjs.map +0 -1
- package/dist/migration-graph-tarTxJ99-BrGBANeE.d.mts.map +0 -1
- package/dist/migration-hspPIEeV.mjs.map +0 -1
- package/dist/migration-ts-CNaAtK8C.d.mts.map +0 -1
- package/dist/migration-ts-DdVm0rws.mjs.map +0 -1
- package/dist/op-schema-BSVHzEQN-DIWt28D8.mjs +0 -13
- package/dist/op-schema-BSVHzEQN-DIWt28D8.mjs.map +0 -1
- package/dist/output-CovTDY14-CUoAqLML.mjs +0 -77
- package/dist/output-CovTDY14-CUoAqLML.mjs.map +0 -1
- package/dist/ref-h6InR6dO-rGfl18Jv.mjs +0 -4686
- package/dist/ref-h6InR6dO-rGfl18Jv.mjs.map +0 -1
- package/dist/ref-resolution-COGOSL57.d.mts.map +0 -1
- package/dist/ref-resolution-HeNBXW53.mjs.map +0 -1
- package/dist/refs-WK86uYYp-gM8tvWQP.mjs.map +0 -1
- package/dist/shells-C4HbRAr5.mjs.map +0 -1
- package/dist/spaces-4qMOAYE9.mjs.map +0 -1
|
@@ -1,23 +1,27 @@
|
|
|
1
|
+
import { s as PrismaNextConfig$1 } from "./index-CWPFeYyi.mjs";
|
|
2
|
+
import { t as MigrationMetadata$1 } from "./metadata-2nbOAGsV-uYNeq2Cp.mjs";
|
|
3
|
+
import { n as OnDiskMigrationPackage, t as MigrationOps } from "./package-CfWiDNrr-ZR4HM_Iz.mjs";
|
|
4
|
+
import { n as SnapshotContentVerifier } from "./contract-snapshot-store-Bok5nQYi-D3g_P7im.mjs";
|
|
5
|
+
import "./contract-snapshot-store-DrIwu5pn.mjs";
|
|
1
6
|
import { i as Refs, n as RefEntry } from "./refs-BNCUu58Y-BIso5Jfg.mjs";
|
|
2
7
|
import { n as MigrationGraph } from "./graph-bDjJ4GL9-BhFevsJS.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { A as
|
|
5
|
-
import { a as emit } from "./index-
|
|
6
|
-
import {
|
|
7
|
-
import { c as ContractSpaceAggregate, d as IntegrityQueryOptions, p as IntegrityViolation, t as AggregateContractSpace } from "./aggregate-DLUJLq5Y.mjs";
|
|
8
|
-
import { r as PrismaNextConfig$1 } from "./index-DRs7L6N0.mjs";
|
|
9
|
-
import { t as MigrationMetadata$1 } from "./metadata-2nbOAGsV-uYNeq2Cp.mjs";
|
|
8
|
+
import { a as MigrationRef, t as ContractRef } from "./ref-resolution-BPhR-kta.mjs";
|
|
9
|
+
import { A as ExecuteDbSignResult, B as RenderContractDtsFailure, C as EmitContractConfig, D as EmitResult, E as EmitOptions, F as OnControlProgress, G as SchemaVerifyOptions, H as RenderContractDtsOptions, I as PlanAnswer, J as TemporaryValueReport, K as StatementText, L as PlanQuestion, M as ExecuteDbVerifyResult, N as IntrospectOptions, O as EmitSuccess, R as PlanQuestionVerb, S as DbUpdateSuccess, T as EmitFailureCode, U as RenderContractDtsResult, V as RenderContractDtsFailureCode, W as RenderContractDtsSuccess, X as executeDbSign, Y as VerifyOptions, Z as executeDbVerify, _ as DbSignOptions, a as CliInvocation, b as DbUpdateOptions, c as ContractEmitResult, d as ControlClientOptions, f as ControlProgressEvent, g as DbInitSuccess, h as DbInitResult, i as AskedSubject, j as ExecuteDbVerifyOptions, k as ExecuteDbSignOptions, l as ControlActionName, m as DbInitOptions, n as AppliedStatementReport, o as CliStructuredError$2, p as CreateControlClient, q as StatementVerb, r as AskedDataLoss, s as ContractEmitOptions, t as AnswerPlanQuestions, u as ControlClient, v as DbSignSpaceFailure, w as EmitFailure, x as DbUpdateResult, y as DbSignSpaceOutcome, z as PlannerWarningsListener } from "./db-sign-gvrl0kFE-D-nTGx88.mjs";
|
|
10
|
+
import { a as emit } from "./index-tAySVPvZ.mjs";
|
|
11
|
+
import { f as IntegrityQueryOptions, l as ContractSpaceAggregate, m as IntegrityViolation, t as AggregateContractSpace } from "./aggregate-BpcQdygS.mjs";
|
|
10
12
|
import "./metadata-BtscDay2.mjs";
|
|
11
13
|
import "./package-N9PPdFV_.mjs";
|
|
12
|
-
import {
|
|
14
|
+
import { CliStructuredError } from "@prisma/orm-framework/errors/control";
|
|
15
|
+
import { ControlAdapterInstance, ControlDriverInstance, ControlExtensionDescriptor, ControlFamilyInstance, ControlStack, MigrationOperationSubject, MigrationPlanOperation, MigrationPlanSubjects, MigrationSubject, OperationPreview, ResolvedMigrationStatement, ResolvedMigrationStatement as ResolvedMigrationStatement$1, TargetMigrationsCapability, VerifyDatabaseResult, VerifyDatabaseSchemaResult } from "@prisma/orm-framework/components/control";
|
|
16
|
+
import "@prisma/orm-framework/utils/structured-error";
|
|
13
17
|
import { Result } from "@prisma/orm-framework/utils/result";
|
|
14
18
|
import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
|
|
15
|
-
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
16
|
-
import { PrismaNextConfig } from "@prisma/orm-framework/config/config-types";
|
|
19
|
+
import { Contract, ContractWithDomain } from "@prisma/orm-framework/contract/types";
|
|
20
|
+
import { ContractSourceDiagnostic, PrismaNextConfig } from "@prisma/orm-framework/config/config-types";
|
|
17
21
|
//#region ../../../1-framework/3-tooling/cli/dist/exports/control-api.d.mts
|
|
18
22
|
//#region src/control-api/client.d.ts
|
|
19
23
|
/**
|
|
20
|
-
* Creates a programmatic control client for Prisma
|
|
24
|
+
* Creates a programmatic control client for Prisma ORM operations.
|
|
21
25
|
*
|
|
22
26
|
* The client accepts framework component descriptors at creation time,
|
|
23
27
|
* manages driver lifecycle via connect()/close(), and exposes domain
|
|
@@ -35,8 +39,14 @@ declare function createControlClient(options: ControlClientOptions): ControlClie
|
|
|
35
39
|
declare function enrichContract(ir: Contract, components: ReadonlyArray<TargetBoundComponentDescriptor<string, string>>): Contract;
|
|
36
40
|
//#endregion
|
|
37
41
|
//#region src/control-api/operations/caught-errors.d.ts
|
|
38
|
-
/**
|
|
39
|
-
|
|
42
|
+
/**
|
|
43
|
+
* The error a command reports for one it caught. A CLI error is reported as it is, and so is any other error a library raised with a structured code, such as `CONTRACT.DEFAULT_INVALID` for a stale contract's default or `CONTRACT.TYPE_PARAMS_INVALID` for its type parameters: the code says what went wrong better than the command can. An `InternalError` is thrown again, so the command boundary, `defineOrmCommand`, lets the engine report it as a bug. Anything else is reported as `CLI.UNEXPECTED` with the `why` the command gives for the error's message, and a `code` it carries that is not a structured one, such as a driver's `ECONNREFUSED` or a SQLSTATE, in `meta.code`.
|
|
44
|
+
*
|
|
45
|
+
* A command that holds a database connection passes its connection string, which is then removed from every string the reported error carries, whichever of those it is.
|
|
46
|
+
*/
|
|
47
|
+
declare function errorFromCaught(error: unknown, why: (message: string) => string, options?: {
|
|
48
|
+
readonly connection?: string | undefined;
|
|
49
|
+
}): CliStructuredError$2;
|
|
40
50
|
//#endregion
|
|
41
51
|
//#region src/control-api/operations/contract-at-errors.d.ts
|
|
42
52
|
declare function mapContractAtError(error: unknown, options?: {
|
|
@@ -51,7 +61,7 @@ type ContractEmitDependencies = {
|
|
|
51
61
|
* Canonical contract emit operation.
|
|
52
62
|
*
|
|
53
63
|
* This is the SINGLE publication path used by both the CLI command
|
|
54
|
-
* (`prisma
|
|
64
|
+
* (`prisma contract emit`) and the Vite plugin
|
|
55
65
|
* (`@internal/vite-plugin-contract-emit`). New callers must go through this
|
|
56
66
|
* function rather than re-implementing load → emit → publish.
|
|
57
67
|
*
|
|
@@ -73,25 +83,22 @@ declare function executeContractEmit(options: ContractEmitOptions, dependencies?
|
|
|
73
83
|
interface ResolveContractRefToSnapshotBaseOptions {
|
|
74
84
|
readonly config: PrismaNextConfig;
|
|
75
85
|
readonly migrationsDir: string;
|
|
76
|
-
/** User-supplied contract reference (hash, prefix, ref name, migration dir name, <dir
|
|
86
|
+
/** User-supplied contract reference (hash, prefix, ref name, migration dir name, or <dir>^). */
|
|
77
87
|
readonly refInput: string;
|
|
78
|
-
/**
|
|
79
|
-
readonly
|
|
88
|
+
/** How errors name the argument that carried `refInput`, for example `--to`. */
|
|
89
|
+
readonly argument: string;
|
|
80
90
|
}
|
|
81
91
|
/**
|
|
82
|
-
* `fallbackToEmitted`
|
|
83
|
-
* true (db sign)
|
|
84
|
-
*
|
|
85
|
-
* false (db update --to): missing bundle = the errorUnexpected 'No migration bundle found for
|
|
86
|
-
* <flag> "<input>" (resolved hash: <hash>)' envelope, so `missingBundleFlag` (the flag label
|
|
87
|
-
* for that message) is required in this branch.
|
|
92
|
+
* `fallbackToEmitted` decides what happens when no migration bundle ends at the resolved hash:
|
|
93
|
+
* true (db sign) falls back to the emitted contract when its storage hash matches; false
|
|
94
|
+
* (db update --to) fails, because the argument must name a migration destination.
|
|
88
95
|
*/
|
|
89
96
|
type ResolveContractRefToSnapshotOptions = ResolveContractRefToSnapshotBaseOptions & ({
|
|
90
97
|
readonly fallbackToEmitted: true;
|
|
91
|
-
|
|
98
|
+
/** Absolute path of the emitted contract.json, the fallback source. */
|
|
99
|
+
readonly contractPathAbsolute: string;
|
|
92
100
|
} | {
|
|
93
101
|
readonly fallbackToEmitted: false;
|
|
94
|
-
readonly missingBundleFlag: '--to';
|
|
95
102
|
});
|
|
96
103
|
interface ResolveContractRefToSnapshotSuccess {
|
|
97
104
|
readonly hash: string;
|
|
@@ -116,7 +123,7 @@ declare function resolveContractRefToSnapshot(options: ResolveContractRefToSnaps
|
|
|
116
123
|
* target mismatch, then disjointness, then a contract-validation
|
|
117
124
|
* failure, then any remaining structural integrity violation.
|
|
118
125
|
*/
|
|
119
|
-
declare function mapIntegrityViolations(violations: readonly IntegrityViolation[]): CliStructuredError$2 | null;
|
|
126
|
+
declare function mapIntegrityViolations(violations: readonly IntegrityViolation[], migrationsDir: string): CliStructuredError$2 | null;
|
|
120
127
|
/**
|
|
121
128
|
* Inputs needed to compose the aggregate loader at the CLI surface.
|
|
122
129
|
*
|
|
@@ -130,6 +137,12 @@ interface BuildAggregateInputs<TFamilyId extends string, TTargetId extends strin
|
|
|
130
137
|
readonly appContract: Contract;
|
|
131
138
|
readonly extensions: ReadonlyArray<ControlExtensionDescriptor<TFamilyId, TTargetId>>;
|
|
132
139
|
readonly deserializeContract: (contractJson: unknown) => Contract;
|
|
140
|
+
/**
|
|
141
|
+
* Content check for contract snapshots resolved through the aggregate;
|
|
142
|
+
* build it with `snapshotVerifierFor(config)` so the recompute uses the
|
|
143
|
+
* target's canonicalization hooks.
|
|
144
|
+
*/
|
|
145
|
+
readonly verifySnapshotContent?: SnapshotContentVerifier;
|
|
133
146
|
}
|
|
134
147
|
/**
|
|
135
148
|
* Reject extension descriptors whose configured target disagrees with
|
|
@@ -148,13 +161,13 @@ declare function loadContractSpaceAggregateForCli<TFamilyId extends string, TTar
|
|
|
148
161
|
* the contract-space refusal envelope, or return `null` when the model
|
|
149
162
|
* is acceptable for the requested check scope.
|
|
150
163
|
*/
|
|
151
|
-
declare function refuseContractSpaceIntegrity(aggregate: ContractSpaceAggregate, options: IntegrityQueryOptions): CliStructuredError$2 | null;
|
|
164
|
+
declare function refuseContractSpaceIntegrity(aggregate: ContractSpaceAggregate, options: IntegrityQueryOptions, migrationsDir: string): CliStructuredError$2 | null;
|
|
152
165
|
/**
|
|
153
166
|
* Reader-subset integrity refusal for `migration status`: package
|
|
154
167
|
* corruptions only (`hashMismatch`, `providedInvariantsMismatch`,
|
|
155
168
|
* `packageUnloadable`).
|
|
156
169
|
*/
|
|
157
|
-
declare function refusePackageCorruptionOnAggregate(aggregate: ContractSpaceAggregate): CliStructuredError$2 | null;
|
|
170
|
+
declare function refusePackageCorruptionOnAggregate(aggregate: ContractSpaceAggregate, migrationsDir: string): CliStructuredError$2 | null;
|
|
158
171
|
/**
|
|
159
172
|
* Construct the tolerant {@link ContractSpaceAggregate} at the CLI
|
|
160
173
|
* surface and apply the explicit integrity refusal.
|
|
@@ -194,9 +207,12 @@ declare function loadContractRawSafely(config: {
|
|
|
194
207
|
*/
|
|
195
208
|
declare function buildReadAggregate(config: PrismaNextConfig, options: {
|
|
196
209
|
readonly migrationsDir: string;
|
|
210
|
+
/** Command-scoped verifier to share the verified-hash memo; defaults to one built from `config`. */
|
|
211
|
+
readonly verifySnapshotContent?: SnapshotContentVerifier;
|
|
197
212
|
}): Promise<Result<{
|
|
198
213
|
readonly aggregate: ContractSpaceAggregate;
|
|
199
214
|
readonly contractHash: string;
|
|
215
|
+
readonly storageNameOf: (operation: MigrationPlanOperation) => string;
|
|
200
216
|
}, CliStructuredError$2>>;
|
|
201
217
|
//#endregion
|
|
202
218
|
//#region src/control-api/operations/contract-space-seed-phase.d.ts
|
|
@@ -304,7 +320,7 @@ declare function runContractSpaceSeedPhase(inputs: ContractSpaceSeedPhaseInputs)
|
|
|
304
320
|
* `extensions` mirrors `Config.extensions` (descriptor list).
|
|
305
321
|
* The loader (sub-spec § Loader) is the sole descriptor-import boundary.
|
|
306
322
|
*/
|
|
307
|
-
interface ExecuteDbInitOptions<TFamilyId extends string, TTargetId extends string> {
|
|
323
|
+
interface ExecuteDbInitOptions<TFamilyId extends string, TTargetId extends string> extends PlannerWarningsListener {
|
|
308
324
|
readonly driver: ControlDriverInstance<TFamilyId, TTargetId>;
|
|
309
325
|
readonly adapter: ControlAdapterInstance<TFamilyId, TTargetId>;
|
|
310
326
|
readonly familyInstance: ControlFamilyInstance<TFamilyId, unknown>;
|
|
@@ -328,6 +344,10 @@ interface ExecuteDbInitOptions<TFamilyId extends string, TTargetId extends strin
|
|
|
328
344
|
* extension spaces in the aggregate.
|
|
329
345
|
*/
|
|
330
346
|
readonly extensions?: ReadonlyArray<ControlExtensionDescriptor<TFamilyId, TTargetId>>;
|
|
347
|
+
/** Content check for contract snapshots the aggregate loader resolves. */
|
|
348
|
+
readonly verifySnapshotContent?: SnapshotContentVerifier;
|
|
349
|
+
/** The command line the advice of a failure repeats. */
|
|
350
|
+
readonly invocation: CliInvocation;
|
|
331
351
|
/** Optional progress callback for observing operation progress */
|
|
332
352
|
readonly onProgress?: OnControlProgress;
|
|
333
353
|
}
|
|
@@ -345,12 +365,11 @@ declare function executeDbInit<TFamilyId extends string, TTargetId extends strin
|
|
|
345
365
|
* Options for the `db update` operation.
|
|
346
366
|
*
|
|
347
367
|
* Same loader → planner → runner pipeline as `db init`, but with the
|
|
348
|
-
* widened operation policy (additive + widening + destructive).
|
|
349
|
-
*
|
|
350
|
-
*
|
|
351
|
-
* pre-plans, surfaces destructive ops to the caller, and aborts.
|
|
368
|
+
* widened operation policy (additive + widening + destructive). An apply
|
|
369
|
+
* asks `answerQuestions` what each operation that would lose data means and
|
|
370
|
+
* whether each that would change access may run, before it applies anything.
|
|
352
371
|
*/
|
|
353
|
-
interface ExecuteDbUpdateOptions<TFamilyId extends string, TTargetId extends string> {
|
|
372
|
+
interface ExecuteDbUpdateOptions<TFamilyId extends string, TTargetId extends string> extends PlannerWarningsListener {
|
|
354
373
|
readonly driver: ControlDriverInstance<TFamilyId, TTargetId>;
|
|
355
374
|
readonly adapter: ControlAdapterInstance<TFamilyId, TTargetId>;
|
|
356
375
|
readonly familyInstance: ControlFamilyInstance<TFamilyId, unknown>;
|
|
@@ -358,29 +377,28 @@ interface ExecuteDbUpdateOptions<TFamilyId extends string, TTargetId extends str
|
|
|
358
377
|
readonly mode: 'plan' | 'apply';
|
|
359
378
|
readonly migrations: TargetMigrationsCapability<TFamilyId, TTargetId, ControlFamilyInstance<TFamilyId, unknown>>;
|
|
360
379
|
readonly frameworkComponents: ReadonlyArray<TargetBoundComponentDescriptor<TFamilyId, TTargetId>>;
|
|
380
|
+
/** Consents to every operation that would lose data, without asking. */
|
|
361
381
|
readonly acceptDataLoss?: boolean;
|
|
362
|
-
/**
|
|
363
|
-
|
|
364
|
-
* `planHash`. The apply recomputes its plan and refuses with
|
|
365
|
-
* `CONSENT_PLAN_MISMATCH` when the fresh plan differs.
|
|
366
|
-
*/
|
|
367
|
-
readonly consent?: {
|
|
368
|
-
readonly planHash: string;
|
|
369
|
-
};
|
|
382
|
+
/** Consents to every operation that would change who can read or write data, without asking. */
|
|
383
|
+
readonly acceptAccessChanges?: boolean;
|
|
370
384
|
readonly migrationsDir: string;
|
|
371
385
|
readonly targetId: TTargetId;
|
|
372
386
|
readonly extensions?: ReadonlyArray<ControlExtensionDescriptor<TFamilyId, TTargetId>>;
|
|
387
|
+
/** Content check for contract snapshots the aggregate loader resolves. */
|
|
388
|
+
readonly verifySnapshotContent?: SnapshotContentVerifier;
|
|
389
|
+
/**
|
|
390
|
+
* The statements as the user wrote them, in the order given. A `rename` is planned; a `delete`
|
|
391
|
+
* or `allow` answers the question about the subject it names. A `convert` or `backfill` fails
|
|
392
|
+
* with `MIGRATION.STATEMENT_NEEDS_MIGRATION_FILE`: `db update` has no migration file to fill.
|
|
393
|
+
*/
|
|
394
|
+
readonly statements?: readonly StatementText[];
|
|
395
|
+
/** Asks the questions no statement answered; see {@link AnswerPlanQuestions}. */
|
|
396
|
+
readonly answerQuestions: AnswerPlanQuestions;
|
|
397
|
+
/** The command line the advice of a failure repeats. */
|
|
398
|
+
readonly invocation: CliInvocation;
|
|
373
399
|
readonly onProgress?: OnControlProgress;
|
|
374
400
|
}
|
|
375
|
-
/**
|
|
376
|
-
* Execute `db update` against the configured contract.
|
|
377
|
-
*
|
|
378
|
-
* Routes through the loader → planner → runner pipeline. Destructive
|
|
379
|
-
* operations require either `acceptDataLoss: true` or a prior
|
|
380
|
-
* `mode: 'plan'` invocation that surfaces the destructive ops; the
|
|
381
|
-
* confirmation gate is implemented here so the lower-level applier
|
|
382
|
-
* remains policy-agnostic.
|
|
383
|
-
*/
|
|
401
|
+
/** Execute `db update` against the configured contract. */
|
|
384
402
|
declare function executeDbUpdate<TFamilyId extends string, TTargetId extends string>(options: ExecuteDbUpdateOptions<TFamilyId, TTargetId>): Promise<DbUpdateResult>;
|
|
385
403
|
//#endregion
|
|
386
404
|
//#region src/control-api/operations/graph-queries.d.ts
|
|
@@ -412,6 +430,27 @@ declare function refuseMissingInvariantPath(args: {
|
|
|
412
430
|
readonly refName?: string;
|
|
413
431
|
}): CliStructuredError$2 | null;
|
|
414
432
|
//#endregion
|
|
433
|
+
//#region src/control-api/operations/load-contract-source.d.ts
|
|
434
|
+
/** What a contract source reported when it could not produce a contract. */
|
|
435
|
+
interface ContractSourceFailure {
|
|
436
|
+
readonly summary: string;
|
|
437
|
+
readonly diagnostics: readonly unknown[];
|
|
438
|
+
readonly meta: unknown;
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* Runs the config's contract source and stops there: nothing is emitted or
|
|
442
|
+
* written. A source that reports diagnostics is a `notOk` carrying them.
|
|
443
|
+
*
|
|
444
|
+
* @throws {CliStructuredError} the error `contract emit` raises, when the
|
|
445
|
+
* config has no contract source or the source is malformed or throws
|
|
446
|
+
* @throws {DOMException} `AbortError` if cancelled via `signal`
|
|
447
|
+
*/
|
|
448
|
+
declare function loadContractSource(config: PrismaNextConfig, options?: {
|
|
449
|
+
readonly signal?: AbortSignal;
|
|
450
|
+
/** Receives each warning the source reports. */
|
|
451
|
+
readonly onWarning?: (diagnostic: ContractSourceDiagnostic) => void;
|
|
452
|
+
}): Promise<Result<Contract, ContractSourceFailure>>;
|
|
453
|
+
//#endregion
|
|
415
454
|
//#region src/control-api/operations/migrate-show.d.ts
|
|
416
455
|
/**
|
|
417
456
|
* One migration that will run in a `migrate --show` preview, in execution order.
|
|
@@ -427,8 +466,6 @@ interface ExecuteMigrateShowPlanOptions {
|
|
|
427
466
|
readonly config: PrismaNextConfig;
|
|
428
467
|
/** Directory the command was invoked from. */
|
|
429
468
|
readonly cwd: string;
|
|
430
|
-
/** `--config` as the user wrote it, used only to locate the migrations directory and for display. */
|
|
431
|
-
readonly configPath?: string;
|
|
432
469
|
readonly db?: string;
|
|
433
470
|
readonly to?: string;
|
|
434
471
|
readonly from?: string;
|
|
@@ -450,10 +487,8 @@ interface MigrateShowPlanSuccess {
|
|
|
450
487
|
readonly contractHash: string;
|
|
451
488
|
readonly migrations: readonly MigrateShowMigration[];
|
|
452
489
|
readonly summary: string;
|
|
453
|
-
/**
|
|
454
|
-
readonly
|
|
455
|
-
/** True when the live DB marker was read — gates the ★ db marker in the tree. */
|
|
456
|
-
readonly usedLiveMarker: boolean;
|
|
490
|
+
/** Present when the preview read the database: the marker hash, or the empty contract, of each space whose plan uses the marker. */
|
|
491
|
+
readonly databaseMarkerHashBySpace?: ReadonlyMap<string, string>;
|
|
457
492
|
}
|
|
458
493
|
/**
|
|
459
494
|
* Computes the path through the SAME seam as `executeMigrate`:
|
|
@@ -553,6 +588,12 @@ interface CheckSpace {
|
|
|
553
588
|
readonly projectMigrationsDir: string;
|
|
554
589
|
/** Directory the command was invoked from; every `where` path is relative to it. */
|
|
555
590
|
readonly cwd: string;
|
|
591
|
+
/**
|
|
592
|
+
* Content check for snapshot-store entries; when present,
|
|
593
|
+
* `checkSnapshotConsistency` recomputes each snapshot's storage hash and
|
|
594
|
+
* reports `MIGRATION.CHECK_SNAPSHOT_CONTENT_MISMATCH` on disagreement.
|
|
595
|
+
*/
|
|
596
|
+
readonly verifySnapshotContent?: SnapshotContentVerifier;
|
|
556
597
|
}
|
|
557
598
|
/**
|
|
558
599
|
* Project the loaded {@link ContractSpaceAggregate} into the
|
|
@@ -562,7 +603,7 @@ interface CheckSpace {
|
|
|
562
603
|
* membership matches the on-disk directories, package / ref / graph data come
|
|
563
604
|
* from `aggregate.space(id)`.
|
|
564
605
|
*/
|
|
565
|
-
declare function enumerateCheckSpaces(aggregate: ContractSpaceAggregate, projectMigrationsDir: string, cwd: string): Promise<readonly CheckSpace[]>;
|
|
606
|
+
declare function enumerateCheckSpaces(aggregate: ContractSpaceAggregate, projectMigrationsDir: string, cwd: string, verifySnapshotContent?: SnapshotContentVerifier): Promise<readonly CheckSpace[]>;
|
|
566
607
|
/**
|
|
567
608
|
* Inputs for {@link runMigrationCheck} — the multi-space policy core of
|
|
568
609
|
* the holistic (no-arg) `migration check`. Enumeration is supplied by the
|
|
@@ -586,7 +627,10 @@ interface RunMigrationCheckInputs {
|
|
|
586
627
|
* in by the caller, not here.
|
|
587
628
|
*/
|
|
588
629
|
declare function runMigrationCheck(inputs: RunMigrationCheckInputs): Promise<Result<MigrationCheckResult, CliStructuredError$2>>;
|
|
589
|
-
|
|
630
|
+
/**
|
|
631
|
+
* The integrity violations of the project's contract spaces. A contract the family refuses to load, the app's or a snapshot's, such as one holding a default its column type does not hold, is the error, with the refusal's meta; any other failure to load the aggregate leaves the violations to the other checks.
|
|
632
|
+
*/
|
|
633
|
+
declare function loadAggregateIntegrityViolations(config: PrismaNextConfig$1, migrationsDir: string, verifySnapshotContent?: SnapshotContentVerifier): Promise<Result<readonly IntegrityViolation[], CliStructuredError$2>>;
|
|
590
634
|
interface MigrationCheckOutcome {
|
|
591
635
|
readonly result?: MigrationCheckResult;
|
|
592
636
|
readonly error?: CliStructuredError$2;
|
|
@@ -676,10 +720,12 @@ interface MigrationNewOptions {
|
|
|
676
720
|
readonly config: PrismaNextConfig;
|
|
677
721
|
/** Directory the command was invoked from. */
|
|
678
722
|
readonly cwd: string;
|
|
679
|
-
/**
|
|
680
|
-
readonly
|
|
723
|
+
/** The project's directory, normally the validated config's `baseDir`; locates the project manifest. */
|
|
724
|
+
readonly projectDir?: string;
|
|
681
725
|
readonly name?: string;
|
|
682
726
|
readonly from?: string;
|
|
727
|
+
/** Renders the declarations of the destination snapshot from its `contract.json`. */
|
|
728
|
+
readonly client: Pick<ControlClient, 'renderContractDts'>;
|
|
683
729
|
}
|
|
684
730
|
interface MigrationNewResult {
|
|
685
731
|
readonly ok: true;
|
|
@@ -695,11 +741,29 @@ interface MigrationPlanOptions {
|
|
|
695
741
|
readonly config: PrismaNextConfig;
|
|
696
742
|
/** Directory the command was invoked from. */
|
|
697
743
|
readonly cwd: string;
|
|
698
|
-
/**
|
|
744
|
+
/** The project's directory, normally the validated config's `baseDir`; locates the project manifest. */
|
|
745
|
+
readonly projectDir?: string;
|
|
746
|
+
/** The `--config` the command was given, repeated in the command that runs a written `migration.ts`. */
|
|
699
747
|
readonly configPath?: string;
|
|
700
748
|
readonly name?: string;
|
|
701
749
|
readonly from?: string;
|
|
702
750
|
readonly to?: string;
|
|
751
|
+
/**
|
|
752
|
+
* The statements as the user wrote them, in the order given. A `rename`
|
|
753
|
+
* resolves against the origin and destination contracts before anything is
|
|
754
|
+
* written; a `delete` answers the question about the subject it names, and
|
|
755
|
+
* one that answers no question, or an `allow`, which `migration plan` never
|
|
756
|
+
* asks for, fails with `MIGRATION.STATEMENT_ANSWERS_NO_QUESTION`.
|
|
757
|
+
*/
|
|
758
|
+
readonly statements?: readonly StatementText[];
|
|
759
|
+
/**
|
|
760
|
+
* Asks what each operation that would lose data means, before anything is
|
|
761
|
+
* written. A delete answer consents to the loss; a rename answer is planned
|
|
762
|
+
* again with the other renames and must remove the loss.
|
|
763
|
+
*/
|
|
764
|
+
readonly answerQuestions: AnswerPlanQuestions;
|
|
765
|
+
/** Renders the declarations of the destination snapshot from its `contract.json`. */
|
|
766
|
+
readonly client: Pick<ControlClient, 'renderContractDts'>;
|
|
703
767
|
}
|
|
704
768
|
interface MigrationPlanResult {
|
|
705
769
|
readonly ok: boolean;
|
|
@@ -729,6 +793,18 @@ interface MigrationPlanResult {
|
|
|
729
793
|
readonly label: string;
|
|
730
794
|
readonly operationClass: string;
|
|
731
795
|
}[];
|
|
796
|
+
/**
|
|
797
|
+
* Operations of the auto-baseline package when this run wrote two packages
|
|
798
|
+
* (`baselineDir` + `dir`). Kept separate from `operations` (the app-space
|
|
799
|
+
* delta) so consumers keep reading `operations` as "the change", while
|
|
800
|
+
* renderers and the destructive warn-summary still cover everything the
|
|
801
|
+
* run wrote.
|
|
802
|
+
*/
|
|
803
|
+
readonly baselineOperations?: readonly {
|
|
804
|
+
readonly id: string;
|
|
805
|
+
readonly label: string;
|
|
806
|
+
readonly operationClass: string;
|
|
807
|
+
}[];
|
|
732
808
|
/**
|
|
733
809
|
* Family-agnostic textual preview of the migration plan operations.
|
|
734
810
|
* Replaces the previous `sql?: readonly string[]` field; consumers should
|
|
@@ -736,12 +812,33 @@ interface MigrationPlanResult {
|
|
|
736
812
|
*/
|
|
737
813
|
readonly preview?: OperationPreview;
|
|
738
814
|
readonly summary: string;
|
|
815
|
+
/**
|
|
816
|
+
* Origin-resolution caveats the user must see, e.g. the default `db` ref
|
|
817
|
+
* sitting behind the graph tip. Rendered as warn summaries by the human
|
|
818
|
+
* presentation and carried verbatim for JSON consumers.
|
|
819
|
+
*/
|
|
820
|
+
readonly warnings?: readonly string[];
|
|
739
821
|
/**
|
|
740
822
|
* When true, `migration.ts` was written but contains unfilled
|
|
741
823
|
* `placeholder(...)` calls. The user must edit the file and then run
|
|
742
824
|
* `node migration.ts` to self-emit `ops.json` / `migration.json`.
|
|
743
825
|
*/
|
|
744
826
|
readonly pendingPlaceholders?: boolean;
|
|
827
|
+
/** With `pendingPlaceholders`: the written directories whose `migration.ts` has unfilled slots. */
|
|
828
|
+
readonly placeholderDirs?: readonly string[];
|
|
829
|
+
/**
|
|
830
|
+
* True when no `--from` was given and no `db` ref existed, so the origin
|
|
831
|
+
* defaulted to the empty contract. Absent when the user named the origin.
|
|
832
|
+
*/
|
|
833
|
+
readonly fromDefaulted?: boolean;
|
|
834
|
+
/**
|
|
835
|
+
* The statements the plan applied, in the order given, each with the
|
|
836
|
+
* family's description and its number of operations. Empty when no
|
|
837
|
+
* `--rename` was given.
|
|
838
|
+
*/
|
|
839
|
+
readonly appliedStatements: readonly AppliedStatementReport[];
|
|
840
|
+
/** The new required fields whose existing rows the plan gives a temporary value. */
|
|
841
|
+
readonly temporaryValues: readonly TemporaryValueReport[];
|
|
745
842
|
readonly timings: {
|
|
746
843
|
readonly total: number;
|
|
747
844
|
};
|
|
@@ -769,8 +866,6 @@ interface MigrationEdgeAnnotation {
|
|
|
769
866
|
}
|
|
770
867
|
//#endregion
|
|
771
868
|
//#region src/control-api/operations/migration-status-overlay.d.ts
|
|
772
|
-
/** Origin hash for status path computation: the live/override marker, or the empty-contract sentinel. */
|
|
773
|
-
declare function originHashForStatus(markerHash: string | undefined): string;
|
|
774
869
|
interface DeriveStatusEdgeAnnotationsInput {
|
|
775
870
|
readonly graph: MigrationGraph;
|
|
776
871
|
readonly targetHash: string;
|
|
@@ -785,26 +880,35 @@ declare function appliedHashesFromLedger(ledgerEntries: ReadonlyArray<{
|
|
|
785
880
|
declare function statusForMigrationHash(migrationHash: string, annotations: ReadonlyMap<string, MigrationEdgeAnnotation>): 'applied' | 'pending' | null;
|
|
786
881
|
//#endregion
|
|
787
882
|
//#region src/control-api/operations/plan-resolution.d.ts
|
|
883
|
+
/**
|
|
884
|
+
* Set when the origin was derived from the `db` ref by default (no `--from`)
|
|
885
|
+
* and that node already has outgoing edges. Planning from it forks the
|
|
886
|
+
* graph, so the caller must surface it to the user.
|
|
887
|
+
*/
|
|
888
|
+
interface DefaultOriginForks {
|
|
889
|
+
readonly refName: string;
|
|
890
|
+
readonly refHash: string;
|
|
891
|
+
readonly outgoingTo: readonly string[];
|
|
892
|
+
}
|
|
788
893
|
type FromResolution = {
|
|
789
894
|
kind: 'greenfield';
|
|
790
895
|
fromHash: null;
|
|
791
896
|
fromContract: null;
|
|
897
|
+
defaulted: boolean;
|
|
792
898
|
} | {
|
|
793
899
|
kind: 'graph-node';
|
|
794
900
|
fromHash: string;
|
|
795
901
|
fromContract: Contract;
|
|
902
|
+
defaultOriginForks?: DefaultOriginForks;
|
|
796
903
|
} | {
|
|
797
904
|
kind: 'ref';
|
|
798
905
|
fromHash: string;
|
|
799
906
|
fromContract: Contract;
|
|
800
|
-
|
|
801
|
-
contractJson: unknown;
|
|
907
|
+
defaultOriginForks?: DefaultOriginForks;
|
|
802
908
|
} | {
|
|
803
909
|
kind: 'auto-baseline';
|
|
804
910
|
fromHash: string;
|
|
805
911
|
fromContract: Contract;
|
|
806
|
-
contractDts: string;
|
|
807
|
-
contractJson: unknown;
|
|
808
912
|
};
|
|
809
913
|
interface ResolveFromForPlanInput {
|
|
810
914
|
readonly optionsFrom?: string | undefined;
|
|
@@ -817,8 +921,6 @@ interface ResolveToForPlanInput {
|
|
|
817
921
|
interface ResolvedContractRef {
|
|
818
922
|
readonly hash: string;
|
|
819
923
|
readonly contract: Contract;
|
|
820
|
-
readonly contractJson: unknown;
|
|
821
|
-
readonly contractDts: string;
|
|
822
924
|
}
|
|
823
925
|
declare function resolveToForPlan(optionsTo: string, input: ResolveToForPlanInput): Promise<Result<ResolvedContractRef, CliStructuredError$2>>;
|
|
824
926
|
//#endregion
|
|
@@ -842,14 +944,13 @@ interface RefOperationOptions {
|
|
|
842
944
|
readonly config: PrismaNextConfig;
|
|
843
945
|
/** Directory the command was invoked from. */
|
|
844
946
|
readonly cwd: string;
|
|
845
|
-
/** `--config` as the user wrote it, used only to locate the migrations directory and for display. */
|
|
846
|
-
readonly configPath?: string;
|
|
847
947
|
}
|
|
848
948
|
declare function executeRefSetCommand(name: string, contractInput: string, options: RefOperationOptions): Promise<Result<RefSetResult, CliStructuredError$2>>;
|
|
849
949
|
declare function executeRefDeleteCommand(name: string, options: RefOperationOptions): Promise<Result<RefDeleteResult, CliStructuredError$2>>;
|
|
850
950
|
declare function executeRefListCommand(options: RefOperationOptions): Promise<Result<RefListResult, CliStructuredError$2>>;
|
|
851
951
|
//#endregion
|
|
852
952
|
//#region src/control-api/operations/ref-advancement.d.ts
|
|
953
|
+
/** A contract snapshot's two halves: the JSON and the declarations rendered from it. */
|
|
853
954
|
interface ContractIR {
|
|
854
955
|
readonly contract: unknown;
|
|
855
956
|
readonly contractDts: string;
|
|
@@ -864,42 +965,47 @@ interface RefAdvancementFields {
|
|
|
864
965
|
readonly hash: string;
|
|
865
966
|
} | null;
|
|
866
967
|
}
|
|
968
|
+
declare const NO_REF_ADVANCEMENT: RefAdvancementFields;
|
|
867
969
|
declare function computeRefAdvancementName(options: {
|
|
868
970
|
readonly advanceRef?: string;
|
|
869
971
|
readonly db?: string;
|
|
870
972
|
}): string | null;
|
|
871
|
-
|
|
973
|
+
/**
|
|
974
|
+
* Everything `executeRefAdvancement` needs, produced before a command does the
|
|
975
|
+
* work that precedes the ref write: the ref name is validated and the
|
|
976
|
+
* declarations of the contract to snapshot are rendered from its JSON, with
|
|
977
|
+
* the import names the project owning `configPath` can resolve. Nothing is
|
|
978
|
+
* read or rendered after the database is touched, so a contract that cannot
|
|
979
|
+
* be snapshotted refuses the command before it changes anything.
|
|
980
|
+
*/
|
|
981
|
+
declare function preflightRefAdvancement(args: {
|
|
982
|
+
readonly name: string;
|
|
983
|
+
readonly contractJson: Record<string, unknown>;
|
|
984
|
+
readonly contractJsonPath: string;
|
|
985
|
+
readonly projectDir: string;
|
|
986
|
+
readonly client: Pick<ControlClient, 'renderContractDts'>;
|
|
987
|
+
}): Promise<Result<ContractIR, CliStructuredError$2>>;
|
|
872
988
|
declare function executeRefAdvancement(refsDir: string, migrationsDir: string, name: string, hash: string, contractIR: ContractIR): Promise<{
|
|
873
989
|
name: string;
|
|
874
990
|
hash: string;
|
|
875
991
|
}>;
|
|
992
|
+
/**
|
|
993
|
+
* The ref-advancement tail of db init / db update, run after the database
|
|
994
|
+
* work with the `ContractIR` that `preflightRefAdvancement` produced before
|
|
995
|
+
* it. Plan mode reports the ref that an apply would advance without writing.
|
|
996
|
+
*/
|
|
876
997
|
declare function buildRefAdvancementFields(options: {
|
|
877
|
-
readonly
|
|
878
|
-
readonly db?: string;
|
|
998
|
+
readonly name: string;
|
|
879
999
|
readonly refsDir: string;
|
|
880
1000
|
readonly migrationsDir: string;
|
|
881
1001
|
readonly contractIR: ContractIR;
|
|
882
1002
|
readonly mode: 'plan' | 'apply';
|
|
883
1003
|
readonly hash: string;
|
|
884
|
-
}): Promise<RefAdvancementFields
|
|
885
|
-
interface ResolveRefAdvancementFieldsOptions {
|
|
886
|
-
readonly advanceRef?: string;
|
|
887
|
-
readonly db?: string;
|
|
888
|
-
readonly refsDir: string;
|
|
889
|
-
readonly migrationsDir: string;
|
|
890
|
-
readonly contractJson: Record<string, unknown>;
|
|
891
|
-
/** Path whose sibling .d.ts readContractIR derives (contract.json path). */
|
|
892
|
-
readonly contractJsonPath: string;
|
|
893
|
-
readonly mode: 'plan' | 'apply';
|
|
894
|
-
readonly hash: string;
|
|
895
|
-
}
|
|
1004
|
+
}): Promise<Result<RefAdvancementFields, CliStructuredError$2>>;
|
|
896
1005
|
/**
|
|
897
|
-
*
|
|
898
|
-
*
|
|
899
|
-
* MigrationToolsError mapped, other errors rethrown.
|
|
1006
|
+
* The --advance-ref tail of migrate and db sign: executeRefAdvancement with
|
|
1007
|
+
* MigrationToolsError failures passed through as notOk, others rethrown.
|
|
900
1008
|
*/
|
|
901
|
-
declare function resolveRefAdvancementFields(options: ResolveRefAdvancementFieldsOptions): Promise<Result<RefAdvancementFields, CliStructuredError$2>>;
|
|
902
|
-
/** migrate's --advance-ref tail: executeRefAdvancement with MigrationToolsError passed through, others rethrown. */
|
|
903
1009
|
declare function advanceRefSafely(args: {
|
|
904
1010
|
readonly refsDir: string;
|
|
905
1011
|
readonly migrationsDir: string;
|
|
@@ -927,8 +1033,42 @@ declare function resolveMigrationRef(input: string, context: {
|
|
|
927
1033
|
/** Reads migrations/<app>/refs, passing MigrationToolsError through; other errors rethrow. */
|
|
928
1034
|
declare function readMigrationRefs(refsDir: string): Promise<Result<Refs, CliStructuredError$2>>;
|
|
929
1035
|
//#endregion
|
|
1036
|
+
//#region src/control-api/statements/resolve-statements.d.ts
|
|
1037
|
+
/**
|
|
1038
|
+
* The origin contract statements resolve against, or where the command looked
|
|
1039
|
+
* for it without finding it.
|
|
1040
|
+
*/
|
|
1041
|
+
type StatementOrigin = {
|
|
1042
|
+
readonly kind: 'contract';
|
|
1043
|
+
readonly contract: ContractWithDomain;
|
|
1044
|
+
} | {
|
|
1045
|
+
readonly kind: 'missing';
|
|
1046
|
+
readonly hash: string | null;
|
|
1047
|
+
readonly snapshotDirectory: string;
|
|
1048
|
+
/** Why the snapshot that exists for `hash` could not be read; `undefined` when there is none. */
|
|
1049
|
+
readonly unreadable: string | undefined;
|
|
1050
|
+
};
|
|
1051
|
+
/**
|
|
1052
|
+
* `origin` and `destination` are the application contract space's contracts;
|
|
1053
|
+
* names that exist only in an extension space never resolve.
|
|
1054
|
+
*/
|
|
1055
|
+
interface ResolveStatementsInput {
|
|
1056
|
+
/** The statements as the user wrote them, in the order given. */
|
|
1057
|
+
readonly statements: readonly StatementText[];
|
|
1058
|
+
readonly origin: StatementOrigin;
|
|
1059
|
+
readonly destination: ContractWithDomain;
|
|
1060
|
+
}
|
|
1061
|
+
/**
|
|
1062
|
+
* Resolves the statements a user gave against the origin and destination contracts. Renames
|
|
1063
|
+
* resolve first, in the order given, so a convert or backfill statement can name a renamed field
|
|
1064
|
+
* by its new name wherever it is given; the result keeps the order given. A delete or allow
|
|
1065
|
+
* statement is checked and left out: it names what a plan would do to a subject, so it is matched
|
|
1066
|
+
* against the plan, and it needs no origin contract.
|
|
1067
|
+
*/
|
|
1068
|
+
declare function resolveStatements(input: ResolveStatementsInput): Result<readonly ResolvedMigrationStatement$1[], CliStructuredError>;
|
|
1069
|
+
//#endregion
|
|
930
1070
|
//#region src/utils/emit-queue.d.ts
|
|
931
1071
|
declare function disposeEmitQueue(outputJsonPath: string): void;
|
|
932
1072
|
//#endregion
|
|
933
|
-
export { type BuildAggregateInputs, type CheckSpace, type ContractEmitOptions, type ContractEmitResult, type ContractIR, type ContractSpaceSeedPhaseInputs, type ContractSpaceSeedPhaseRecord, type ContractSpaceSeedPhaseResult, type ControlActionName, type ControlClient, type ControlClientOptions, type ControlProgressEvent, type ControlStack, type
|
|
1073
|
+
export { type AnswerPlanQuestions, type AppliedStatementReport, type AskedDataLoss, type AskedSubject, type BuildAggregateInputs, type CheckSpace, type CliInvocation, type ContractEmitOptions, type ContractEmitResult, type ContractIR, type ContractSourceFailure, type ContractSpaceSeedPhaseInputs, type ContractSpaceSeedPhaseRecord, type ContractSpaceSeedPhaseResult, type ControlActionName, type ControlClient, type ControlClientOptions, type ControlProgressEvent, type ControlStack, type DbInitOptions, type DbInitResult, type DbInitSuccess, type DbSignOptions, type DbSignSpaceFailure, type DbSignSpaceOutcome, type DbUpdateOptions, type DbUpdateResult, type DbUpdateSuccess, type EmitContractConfig, type EmitFailure, type EmitFailureCode, type EmitOptions, type EmitResult, type EmitSuccess, type ExecuteDbInitOptions, type ExecuteDbSignOptions, type ExecuteDbSignResult, type ExecuteDbUpdateOptions, type ExecuteDbVerifyOptions, type ExecuteDbVerifyResult, type ExecuteMigrateShowPlanOptions, type FromResolution, type IntrospectOptions, type MigrateShowMigration, type MigrateShowPlanSuccess, type MigrationCheckOutcome, type MigrationOperationSubject, type MigrationPlanResult, type MigrationPlanSubjects, type MigrationSubject, NO_REF_ADVANCEMENT, type OnControlProgress, type PlanAnswer, type PlanQuestion, type PlanQuestionVerb, type RefAdvancementFields, type RenderContractDtsFailure, type RenderContractDtsFailureCode, type RenderContractDtsOptions, type RenderContractDtsResult, type RenderContractDtsSuccess, type ResolveContractRefToSnapshotOptions, type ResolveContractRefToSnapshotSuccess, type ResolveStatementsInput, type ResolvedContractRef, type ResolvedMigrationStatement, type RunMigrationCheckInputs, type RunMigrationListInputs, type SchemaVerifyOptions, type StatementOrigin, type StatementText, type StatementVerb, type VerifyDatabaseResult, type VerifyDatabaseSchemaResult, type VerifyOptions, advanceRefSafely, appContractStandInFromIdentity, appliedHashesFromLedger, buildContractSpaceAggregate, buildMigrationSpaceGraphEntries, buildReadAggregate, buildRefAdvancementFields, checkSingleTarget, computeRefAdvancementName, createControlClient, deriveStatusEdgeAnnotations, disposeEmitQueue, enrichContract, enumerateCheckSpaces, errorFromCaught, executeContractEmit, executeDbInit, executeDbSign, executeDbUpdate, executeDbVerify, executeMigrateShowPlan, executeMigrationNewCommand, executeMigrationPlanCommand, executeRefAdvancement, executeRefDeleteCommand, executeRefListCommand, executeRefSetCommand, hasMigrationPath, listRefsByContractHash, loadAggregateIntegrityViolations, loadContractRawSafely, loadContractSource, loadContractSpaceAggregateForCli, mapContractAtError, mapIntegrityViolations, migrationSpaceListEntriesFromAggregate, preflightRefAdvancement, readMigrationRefs, refuseContractSpaceIntegrity, refuseDeclaredExtensionTargetMismatch, refuseMarkerOutsideGraph, refuseMissingInvariantPath, refusePackageCorruptionOnAggregate, refuseUnknownInvariants, resolveContractRef, resolveContractRefToSnapshot, resolveFromForPlan, resolveMigrationRef, resolveStatements, resolveToForPlan, runContractSpaceSeedPhase, runMigrationCheck, runMigrationList, statusForMigrationHash };
|
|
934
1074
|
//# sourceMappingURL=cli__control-api.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli__control-api.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/exports/control-api.d.mts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli__control-api.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/exports/control-api.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4BiB,oBAAoB,SAAS,uBAAuB;;;;;;iBAMpD,eAAe,IAAI,UAAU,YAAY,cAAc,kDAAkD;;;;;;;;iBAQzG,gBAAgB,gBAAgB,MAAM,4BAA4B;WACxE;IACP;;;iBAGa,mBAAmB,gBAAgB;WACzC;IACP,cAAc;;;KAGb;WACM,aAAa;;;;;;;;;;;;;;;;;;;;;;iBAsBP,oBAAoB,SAAS,qBAAqB,eAAe,2BAA2B,QAAQ;;;UAG3G;WACC,QAAQ;WACR;;WAEA;;WAEA;;;;;;;KAON,sCAAsC;WAChC;;WAEA;;WAEA;;UAED;WACC;WACA,cAAc;;WAEd;WACA;;iBAEM,6BAA6B,SAAS,sCAAsC,QAAQ,OAAO,qCAAqC;;;;;;;;;;;;;;;;iBAgBhI,uBAAuB,qB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