@prisma/orm-family-sql 8.0.0-rc.16-dev.5 → 8.0.0-rc.16-dev.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/{authoring-type-constructors-dihiQslc-S4oVeeaO.mjs → authoring-type-constructors-0Iv2zdwS-CVl4womm.mjs} +14 -4
  2. package/dist/authoring-type-constructors-0Iv2zdwS-CVl4womm.mjs.map +1 -0
  3. package/dist/{config-types-C-fKlHmB.mjs → config-types-DeIF6WyF.mjs} +2 -2
  4. package/dist/{config-types-C-fKlHmB.mjs.map → config-types-DeIF6WyF.mjs.map} +1 -1
  5. package/dist/{contract-builder-BxkBHQir.mjs → contract-builder-BlFrYr97.mjs} +2 -2
  6. package/dist/{contract-builder-BxkBHQir.mjs.map → contract-builder-BlFrYr97.mjs.map} +1 -1
  7. package/dist/contract-prisma7__provider.mjs +3 -3
  8. package/dist/contract-psl.mjs +1 -1
  9. package/dist/contract-psl__attribute-specs.mjs +1 -1
  10. package/dist/contract-psl__provider.mjs +2 -2
  11. package/dist/contract-ts.mjs +3 -3
  12. package/dist/contract-ts__config-types.mjs +1 -1
  13. package/dist/contract-ts__contract-builder.mjs +2 -2
  14. package/dist/{control-DCt08EpW.d.mts → control-BT0wr9QC.d.mts} +193 -56
  15. package/dist/{control-DCt08EpW.d.mts.map → control-BT0wr9QC.d.mts.map} +1 -1
  16. package/dist/{control-0kB6FkCn.mjs → control-C4VZIU-L.mjs} +457 -123
  17. package/dist/control-C4VZIU-L.mjs.map +1 -0
  18. package/dist/{derived-checks-DAbro9yn-BNuE2QEm.mjs → derived-checks-DdguQPYm-BP57ljP8.mjs} +16 -10
  19. package/dist/{derived-checks-DAbro9yn-BNuE2QEm.mjs.map → derived-checks-DdguQPYm-BP57ljP8.mjs.map} +1 -1
  20. package/dist/{diff-3tfqwWS7.d.mts → diff-DMOqiT2h.d.mts} +2 -2
  21. package/dist/{diff-3tfqwWS7.d.mts.map → diff-DMOqiT2h.d.mts.map} +1 -1
  22. package/dist/family.d.mts +5 -5
  23. package/dist/family.mjs +3 -3
  24. package/dist/family__control.d.mts +3 -3
  25. package/dist/family__control.mjs +2 -2
  26. package/dist/family__diff.d.mts +1 -1
  27. package/dist/family__migration.d.mts +1 -1
  28. package/dist/family__migration.mjs +1 -1
  29. package/dist/family__pack.mjs +2 -2
  30. package/dist/family__pack.mjs.map +1 -1
  31. package/dist/{interpreter-BF5Xrf3W-DOTOXsEr.mjs → interpreter-BF5Xrf3W-bdklH78q.mjs} +3 -3
  32. package/dist/{interpreter-BF5Xrf3W-DOTOXsEr.mjs.map → interpreter-BF5Xrf3W-bdklH78q.mjs.map} +1 -1
  33. package/dist/{migration-D6NJlA6-.d.mts → migration-C5HGygKM.d.mts} +3 -3
  34. package/dist/{migration-D6NJlA6-.d.mts.map → migration-C5HGygKM.d.mts.map} +1 -1
  35. package/dist/{migration-CK4oePIo.mjs → migration-Dy_4Wmiy.mjs} +3 -3
  36. package/dist/{migration-CK4oePIo.mjs.map → migration-Dy_4Wmiy.mjs.map} +1 -1
  37. package/dist/{psl-field-resolution-DUCrDnuq-BYapcETh.mjs → psl-field-resolution-DUCrDnuq-DSxPrd-4.mjs} +2 -2
  38. package/dist/{psl-field-resolution-DUCrDnuq-BYapcETh.mjs.map → psl-field-resolution-DUCrDnuq-DSxPrd-4.mjs.map} +1 -1
  39. package/dist/{types-CvuS68sy-ReNXbgpE.d.mts → types-CzxOObSY-CNWyrf87.d.mts} +12 -8
  40. package/dist/{types-CvuS68sy-ReNXbgpE.d.mts.map → types-CzxOObSY-CNWyrf87.d.mts.map} +1 -1
  41. package/package.json +18 -18
  42. package/dist/authoring-type-constructors-dihiQslc-S4oVeeaO.mjs.map +0 -1
  43. package/dist/control-0kB6FkCn.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { l as SqlStorage } from "./sql-storage-DSnnRQAf-DaHPnley.mjs";
2
2
  import "./types-DkOYK86-.mjs";
3
- import { C as SqlPlanTargetDetails, d as SqlMigrationPlanOperation } from "./types-CvuS68sy-ReNXbgpE.mjs";
3
+ import { C as SqlPlanTargetDetails, d as SqlMigrationPlanOperation } from "./types-CzxOObSY-CNWyrf87.mjs";
4
4
  import { Contract } from "@prisma/orm-framework/contract/types";
5
5
  import { Migration } from "@prisma/orm-toolchain/migration-tools/migration";
6
6
  //#region ../../../2-sql/9-family/dist/migration.d.mts
@@ -29,7 +29,7 @@ import { Migration } from "@prisma/orm-toolchain/migration-tools/migration";
29
29
  declare abstract class SqlMigration<TDetails extends SqlPlanTargetDetails, TTargetId extends string = string, Start extends Contract<SqlStorage> = Contract<SqlStorage>, End extends Contract<SqlStorage> = Contract<SqlStorage>> extends Migration<SqlMigrationPlanOperation<TDetails>, 'sql', TTargetId, Start, End> {
30
30
  /**
31
31
  * Sorted, deduplicated invariant ids declared by this migration's
32
- * data-transform ops. Derived from `this.operations` so the field remains
32
+ * data-transform ops. Derived from a fresh read of the operations (`Migration.readOperations`) so the field remains
33
33
  * consistent with the operation list — planner-built plans (`db init`,
34
34
  * `db update`) yield `[]` because they emit no data-transform ops.
35
35
  *
@@ -41,4 +41,4 @@ declare abstract class SqlMigration<TDetails extends SqlPlanTargetDetails, TTarg
41
41
  }
42
42
  //#endregion
43
43
  export { SqlMigration as t };
44
- //# sourceMappingURL=migration-D6NJlA6-.d.mts.map
44
+ //# sourceMappingURL=migration-C5HGygKM.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"migration-D6NJlA6-.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/migration.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA0BuB,aAAa,iBAAiB,sBAAsB,mCAAmC,cAAc,SAAS,cAAc,SAAS,aAAa,YAAY,SAAS,cAAc,SAAS,qBAAqB,UAAU,0BAA0B,kBAAkB,WAAW,OAAO;;;;;;;;;;;MAW5S"}
1
+ {"version":3,"file":"migration-C5HGygKM.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/migration.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA0BuB,aAAa,iBAAiB,sBAAsB,mCAAmC,cAAc,SAAS,cAAc,SAAS,aAAa,YAAY,SAAS,cAAc,SAAS,qBAAqB,UAAU,0BAA0B,kBAAkB,WAAW,OAAO;;;;;;;;;;;MAW5S"}
@@ -26,7 +26,7 @@ import { isThenable } from "@prisma/orm-framework/utils/promise";
26
26
  var SqlMigration = class extends Migration {
27
27
  /**
28
28
  * Sorted, deduplicated invariant ids declared by this migration's
29
- * data-transform ops. Derived from `this.operations` so the field remains
29
+ * data-transform ops. Derived from a fresh read of the operations (`Migration.readOperations`) so the field remains
30
30
  * consistent with the operation list — planner-built plans (`db init`,
31
31
  * `db update`) yield `[]` because they emit no data-transform ops.
32
32
  *
@@ -35,10 +35,10 @@ var SqlMigration = class extends Migration {
35
35
  * `MigrationPlan.providedInvariants?` stays optional.
36
36
  */
37
37
  get providedInvariants() {
38
- return deriveProvidedInvariants(this.operations.filter((op) => !isThenable(op)));
38
+ return deriveProvidedInvariants(Migration.readOperations(this).filter((op) => !isThenable(op)));
39
39
  }
40
40
  };
41
41
  //#endregion
42
42
  export { SqlMigration as t };
43
43
 
44
- //# sourceMappingURL=migration-CK4oePIo.mjs.map
44
+ //# sourceMappingURL=migration-Dy_4Wmiy.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"migration-CK4oePIo.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/migration.mjs"],"sourcesContent":["import { deriveProvidedInvariants } from \"@internal/migration-tools/invariants\";\nimport { Migration } from \"@internal/migration-tools/migration\";\nimport { isThenable } from \"@internal/utils/promise\";\n//#region src/core/sql-migration.ts\n/**\n* Family-owned base class for SQL migrations.\n*\n* Generic in `TDetails` (family plan target details, e.g. Postgres vs SQLite)\n* and in `TTargetId` (the literal target identifier, e.g. `'postgres'`).\n*\n* Adapters (Postgres, SQLite, …) extend this with a concrete `TDetails` and\n* a fixed `TTargetId` literal, so the public `Migration<TOp>` base sees the\n* fully concrete operation shape. Target-free code in SQL family / tooling\n* parameterises over `TDetails` (and usually `TTargetId = string`).\n*\n* The `Start` / `End` contract generics are forwarded to the framework\n* `Migration` base so the derived `describe()` and the per-target view getters\n* (`PostgresMigration` / `SqliteMigration`) carry each migration's precise\n* contract types. The view getters themselves live on the per-target bases\n* because the SQL ContractView shapes differ per target (SQLite unwraps its\n* sole namespace to the root; Postgres is schema-qualified).\n*\n* Keeps target-free contract/runtime features in the family layer while\n* letting adapters own target shape.\n*/\nvar SqlMigration = class extends Migration {\n\t/**\n\t* Sorted, deduplicated invariant ids declared by this migration's\n\t* data-transform ops. Derived from `this.operations` so the field remains\n\t* consistent with the operation list — planner-built plans (`db init`,\n\t* `db update`) yield `[]` because they emit no data-transform ops.\n\t*\n\t* Required by `SqlMigrationPlan.providedInvariants` (tightened from\n\t* optional at the SQL-family layer); the framework-level\n\t* `MigrationPlan.providedInvariants?` stays optional.\n\t*/\n\tget providedInvariants() {\n\t\treturn deriveProvidedInvariants(this.operations.filter((op) => !isThenable(op)));\n\t}\n};\n//#endregion\nexport { SqlMigration as Migration };\n\n//# sourceMappingURL=migration.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,IAAI,eAAe,cAAc,UAAU;;;;;;;;;;;CAW1C,IAAI,qBAAqB;EACxB,OAAO,yBAAyB,KAAK,WAAW,QAAQ,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;CAChF;AACD"}
1
+ {"version":3,"file":"migration-Dy_4Wmiy.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/migration.mjs"],"sourcesContent":["import { deriveProvidedInvariants } from \"@internal/migration-tools/invariants\";\nimport { Migration } from \"@internal/migration-tools/migration\";\nimport { isThenable } from \"@internal/utils/promise\";\n//#region src/core/sql-migration.ts\n/**\n* Family-owned base class for SQL migrations.\n*\n* Generic in `TDetails` (family plan target details, e.g. Postgres vs SQLite)\n* and in `TTargetId` (the literal target identifier, e.g. `'postgres'`).\n*\n* Adapters (Postgres, SQLite, …) extend this with a concrete `TDetails` and\n* a fixed `TTargetId` literal, so the public `Migration<TOp>` base sees the\n* fully concrete operation shape. Target-free code in SQL family / tooling\n* parameterises over `TDetails` (and usually `TTargetId = string`).\n*\n* The `Start` / `End` contract generics are forwarded to the framework\n* `Migration` base so the derived `describe()` and the per-target view getters\n* (`PostgresMigration` / `SqliteMigration`) carry each migration's precise\n* contract types. The view getters themselves live on the per-target bases\n* because the SQL ContractView shapes differ per target (SQLite unwraps its\n* sole namespace to the root; Postgres is schema-qualified).\n*\n* Keeps target-free contract/runtime features in the family layer while\n* letting adapters own target shape.\n*/\nvar SqlMigration = class extends Migration {\n\t/**\n\t* Sorted, deduplicated invariant ids declared by this migration's\n\t* data-transform ops. Derived from a fresh read of the operations (`Migration.readOperations`) so the field remains\n\t* consistent with the operation list — planner-built plans (`db init`,\n\t* `db update`) yield `[]` because they emit no data-transform ops.\n\t*\n\t* Required by `SqlMigrationPlan.providedInvariants` (tightened from\n\t* optional at the SQL-family layer); the framework-level\n\t* `MigrationPlan.providedInvariants?` stays optional.\n\t*/\n\tget providedInvariants() {\n\t\treturn deriveProvidedInvariants(Migration.readOperations(this).filter((op) => !isThenable(op)));\n\t}\n};\n//#endregion\nexport { SqlMigration as Migration };\n\n//# sourceMappingURL=migration.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,IAAI,eAAe,cAAc,UAAU;;;;;;;;;;;CAW1C,IAAI,qBAAqB;EACxB,OAAO,yBAAyB,UAAU,eAAe,IAAI,CAAC,CAAC,QAAQ,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;CAC/F;AACD"}
@@ -1,6 +1,6 @@
1
1
  import { s as sqlTextFromCanonical, t as SQL_EXPRESSION_DATA_TYPE_ID } from "./sql-expression-D7GsLgDM.mjs";
2
2
  import { n as checkSqlDefaultText, o as reservedSqlDefaultText } from "./validators-Xx-TKcx3.mjs";
3
- import { a as storedAsListColumn, i as isValueObjectMember } from "./derived-checks-DAbro9yn-BNuE2QEm.mjs";
3
+ import { a as storedAsListColumn, i as isValueObjectMember } from "./derived-checks-DdguQPYm-BP57ljP8.mjs";
4
4
  import { structuredError } from "@prisma/orm-framework/utils/structured-error";
5
5
  import { admittedForms, castTypedValue, describeExpected, describeRefusal, describeRefusedValueType, exactRewrite, instantiateAuthoringTypeConstructor, isAuthoringEntityTypeDescriptor, readWrittenValue, tagForm, validateAuthoringHelperArguments, validateAuthoringTypeParams } from "@prisma/orm-framework/components/authoring";
6
6
  import { canonicalFormOf, codecForRef } from "@prisma/orm-framework/components/codec";
@@ -1946,4 +1946,4 @@ function collectResolvedFields(input) {
1946
1946
  //#endregion
1947
1947
  export { toNamedTypeFieldDescriptor as S, readDataTypeDefault as _, describeUnsupportedSqlAttribute as a, sqlAttributeSpecs as b, getAuthoringEntity as c, instantiatePslTypeConstructor as d, interpretFieldAttribute as f, modelCoordinateKey as g, modelAttributeSpecsFrom as h, contractError as i, getNamedArgument as l, mapFieldNamesToColumns as m, bareTypeConstructorOf as n, formatDbAttributeMigrationMessage as o, interpretModelAttribute as p, collectResolvedFields as r, getAttribute as s, PSL_CHECK_ON_STI_VARIANT as t, instantiateFieldTypeConstructor as u, readWrittenNumberForCodec as v, storageName as x, resolveFieldTypeDescriptor as y };
1948
1948
 
1949
- //# sourceMappingURL=psl-field-resolution-DUCrDnuq-BYapcETh.mjs.map
1949
+ //# sourceMappingURL=psl-field-resolution-DUCrDnuq-DSxPrd-4.mjs.map