@prisma/orm-family-sql 8.0.0-rc.18-dev.25 → 8.0.0-rc.18-dev.26

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 (126) hide show
  1. package/dist/{attribute-specs-BaasqvID.d.mts → attribute-specs-D9QcPJpj.d.mts} +3 -3
  2. package/dist/{attribute-specs-BaasqvID.d.mts.map → attribute-specs-D9QcPJpj.d.mts.map} +1 -1
  3. package/dist/{authoring-entity-types-CZ-vdwYS-CLLXZPhj.d.mts → authoring-entity-types-CZ-vdwYS-CSU65LVs.d.mts} +2 -2
  4. package/dist/{authoring-entity-types-CZ-vdwYS-CLLXZPhj.d.mts.map → authoring-entity-types-CZ-vdwYS-CSU65LVs.d.mts.map} +1 -1
  5. package/dist/{authoring-type-constructors-0Iv2zdwS-CJbLWgCh.mjs → authoring-type-constructors-0Iv2zdwS-D4LlP1q2.mjs} +2 -2
  6. package/dist/{authoring-type-constructors-0Iv2zdwS-CJbLWgCh.mjs.map → authoring-type-constructors-0Iv2zdwS-D4LlP1q2.mjs.map} +1 -1
  7. package/dist/{config-types-BFS-ivzi.mjs → config-types-BJxHMPGt.mjs} +2 -2
  8. package/dist/{config-types-BFS-ivzi.mjs.map → config-types-BJxHMPGt.mjs.map} +1 -1
  9. package/dist/{contract-builder-CKO_xspE.mjs → contract-builder-CrWbrtE4.mjs} +3 -3
  10. package/dist/{contract-builder-CKO_xspE.mjs.map → contract-builder-CrWbrtE4.mjs.map} +1 -1
  11. package/dist/{contract-builder-DkaXfJoe.d.mts → contract-builder-D-RSOsnc.d.mts} +3 -10
  12. package/dist/contract-builder-D-RSOsnc.d.mts.map +1 -0
  13. package/dist/contract-prisma7__provider.mjs +6 -6
  14. package/dist/contract-psl.d.mts +1 -1
  15. package/dist/contract-psl.mjs +1 -1
  16. package/dist/contract-psl__attribute-specs.d.mts +1 -1
  17. package/dist/contract-psl__attribute-specs.mjs +1 -1
  18. package/dist/contract-psl__provider.mjs +2 -2
  19. package/dist/contract-psl__provider.mjs.map +1 -1
  20. package/dist/contract-ts.d.mts +1 -1
  21. package/dist/contract-ts.mjs +3 -3
  22. package/dist/contract-ts__config-types.mjs +1 -1
  23. package/dist/contract-ts__contract-builder.d.mts +1 -1
  24. package/dist/contract-ts__contract-builder.mjs +2 -2
  25. package/dist/contract.d.mts +3 -3
  26. package/dist/contract.mjs +5 -5
  27. package/dist/contract__data-type.d.mts +2 -2
  28. package/dist/contract__data-type.mjs +2 -2
  29. package/dist/contract__foreign-key-materialization.d.mts +1 -1
  30. package/dist/contract__foreign-key-materialization.mjs +2 -2
  31. package/dist/contract__validators.mjs +1 -1
  32. package/dist/{control-ZtRWQJi1.mjs → control-D7jPD-Tk.mjs} +27 -22
  33. package/dist/control-D7jPD-Tk.mjs.map +1 -0
  34. package/dist/{control-DpPGeOJY.d.mts → control-D9zFmpo0.d.mts} +18 -14
  35. package/dist/control-D9zFmpo0.d.mts.map +1 -0
  36. package/dist/{control-adapter-BCopdpsT-BpC5YbAf.d.mts → control-adapter-BCopdpsT-BPHa2Frw.d.mts} +3 -3
  37. package/dist/{control-adapter-BCopdpsT-BpC5YbAf.d.mts.map → control-adapter-BCopdpsT-BPHa2Frw.d.mts.map} +1 -1
  38. package/dist/control-adapter-ChJhp5vV.d.mts +13 -0
  39. package/dist/control-adapter-ChJhp5vV.d.mts.map +1 -0
  40. package/dist/control-adapter-DhX77V61.mjs +16 -0
  41. package/dist/control-adapter-DhX77V61.mjs.map +1 -0
  42. package/dist/{data-type-pNwyyJpr.d.mts → data-type-C84xngfv.d.mts} +22 -15
  43. package/dist/data-type-C84xngfv.d.mts.map +1 -0
  44. package/dist/data-type-DKk8Unnz.mjs.map +1 -1
  45. package/dist/{derived-checks-sRZp_gTF-Dvk3wkm9.mjs → derived-checks-sRZp_gTF-ermwhVGQ.mjs} +4 -4
  46. package/dist/{derived-checks-sRZp_gTF-Dvk3wkm9.mjs.map → derived-checks-sRZp_gTF-ermwhVGQ.mjs.map} +1 -1
  47. package/dist/{diff-BScSarWr.d.mts → diff-ClZvIVOl.d.mts} +5 -5
  48. package/dist/{diff-BScSarWr.d.mts.map → diff-ClZvIVOl.d.mts.map} +1 -1
  49. package/dist/{exports-DVsHk8HP-DrH_2a-H.mjs → exports-DVsHk8HP-M-qeQrkz.mjs} +2 -2
  50. package/dist/{exports-DVsHk8HP-DrH_2a-H.mjs.map → exports-DVsHk8HP-M-qeQrkz.mjs.map} +1 -1
  51. package/dist/family.d.mts +11 -11
  52. package/dist/family.mjs +8 -7
  53. package/dist/family__control-adapter.d.mts +3 -3
  54. package/dist/family__control-adapter.mjs +2 -1
  55. package/dist/family__control.d.mts +4 -4
  56. package/dist/family__control.mjs +3 -3
  57. package/dist/family__diff.d.mts +1 -1
  58. package/dist/family__diff.mjs +1 -1
  59. package/dist/family__ir.mjs +1 -1
  60. package/dist/family__migration.d.mts +1 -1
  61. package/dist/family__pack.d.mts +1 -1
  62. package/dist/family__pack.mjs +2 -2
  63. package/dist/family__psl-build.d.mts +1 -1
  64. package/dist/family__psl-build.mjs +1 -1
  65. package/dist/family__psl-infer.d.mts +1 -1
  66. package/dist/family__psl-infer.mjs +1 -1
  67. package/dist/{foreign-key-materialization-BiWTp2vi.d.mts → foreign-key-materialization-3vQnPT_D.d.mts} +3 -3
  68. package/dist/{foreign-key-materialization-BiWTp2vi.d.mts.map → foreign-key-materialization-3vQnPT_D.d.mts.map} +1 -1
  69. package/dist/{foreign-key-materialization-BIvQTfz8.mjs → foreign-key-materialization-C_FPLzj3.mjs} +2 -2
  70. package/dist/{foreign-key-materialization-BIvQTfz8.mjs.map → foreign-key-materialization-C_FPLzj3.mjs.map} +1 -1
  71. package/dist/{index-equivalence-DswCiq5l-Cp2V5nhL.mjs → index-equivalence-DswCiq5l-C6SAs-Yz.mjs} +2 -2
  72. package/dist/{index-equivalence-DswCiq5l-Cp2V5nhL.mjs.map → index-equivalence-DswCiq5l-C6SAs-Yz.mjs.map} +1 -1
  73. package/dist/{interpreter-B9wNACvu-Bk0vkYDs.mjs → interpreter-kQuqdyeP-B-rzJDWE.mjs} +5 -5
  74. package/dist/{interpreter-B9wNACvu-Bk0vkYDs.mjs.map → interpreter-kQuqdyeP-B-rzJDWE.mjs.map} +1 -1
  75. package/dist/{migration-lr0tqLnS.d.mts → migration-RrhpTP1o.d.mts} +2 -2
  76. package/dist/{migration-lr0tqLnS.d.mts.map → migration-RrhpTP1o.d.mts.map} +1 -1
  77. package/dist/orm-client.mjs +1 -1
  78. package/dist/{pack-mrYskO6T.d.mts → pack-DNdZwm5w.d.mts} +3 -3
  79. package/dist/{pack-mrYskO6T.d.mts.map → pack-DNdZwm5w.d.mts.map} +1 -1
  80. package/dist/{psl-build-DB-x01oH.mjs → psl-build-BT8Ue6gd.mjs} +4 -4
  81. package/dist/psl-build-BT8Ue6gd.mjs.map +1 -0
  82. package/dist/{psl-build-CTj6JAX3.d.mts → psl-build-DU55bjfu.d.mts} +4 -4
  83. package/dist/{psl-build-CTj6JAX3.d.mts.map → psl-build-DU55bjfu.d.mts.map} +1 -1
  84. package/dist/{psl-column-resolution-BCkhNzOK-DOvdhSCj.d.mts → psl-column-resolution-BCkhNzOK-DyfXnB-9.d.mts} +2 -2
  85. package/dist/{psl-column-resolution-BCkhNzOK-DOvdhSCj.d.mts.map → psl-column-resolution-BCkhNzOK-DyfXnB-9.d.mts.map} +1 -1
  86. package/dist/{psl-field-resolution-BOJPyV5I-CQ7I2lbC.mjs → psl-field-resolution-C1E-_fQq-VUYD8cnS.mjs} +18 -13
  87. package/dist/psl-field-resolution-C1E-_fQq-VUYD8cnS.mjs.map +1 -0
  88. package/dist/{psl-infer-CvUWefHM.mjs → psl-infer-Bz34csvN.mjs} +2 -2
  89. package/dist/{psl-infer-CvUWefHM.mjs.map → psl-infer-Bz34csvN.mjs.map} +1 -1
  90. package/dist/{psl-infer-1C9FqGO2.d.mts → psl-infer-I75woGr4.d.mts} +4 -4
  91. package/dist/{psl-infer-1C9FqGO2.d.mts.map → psl-infer-I75woGr4.d.mts.map} +1 -1
  92. package/dist/runtime.mjs +1 -1
  93. package/dist/{schema-differ-DmP74bB8-Dn53wZD1.d.mts → schema-differ-DmP74bB8-CIQ17HTk.d.mts} +3 -3
  94. package/dist/{schema-differ-DmP74bB8-Dn53wZD1.d.mts.map → schema-differ-DmP74bB8-CIQ17HTk.d.mts.map} +1 -1
  95. package/dist/schema-ir.d.mts +2 -2
  96. package/dist/schema-ir.mjs +2 -2
  97. package/dist/schema-ir__types.d.mts +3 -3
  98. package/dist/schema-ir__types.mjs +2 -2
  99. package/dist/{schema-verify-BwRdzbHb-CxnJN-Lm.mjs → schema-verify-BwRdzbHb-nDeE75xa.mjs} +2 -2
  100. package/dist/{schema-verify-BwRdzbHb-CxnJN-Lm.mjs.map → schema-verify-BwRdzbHb-nDeE75xa.mjs.map} +1 -1
  101. package/dist/{sql-contract-serializer-sMY3prTx-BDTNHOOy.mjs → sql-contract-serializer-sMY3prTx-BT6HdXAE.mjs} +2 -2
  102. package/dist/{sql-contract-serializer-sMY3prTx-BDTNHOOy.mjs.map → sql-contract-serializer-sMY3prTx-BT6HdXAE.mjs.map} +1 -1
  103. package/dist/{sql-data-type-DwLa_dK9-2eTvrYhA.mjs → sql-data-type-BSi0X331-OXbBFXDh.mjs} +40 -12
  104. package/dist/sql-data-type-BSi0X331-OXbBFXDh.mjs.map +1 -0
  105. package/dist/{types-Bqe0AXuw-xqQnkIj4.d.mts → types-B3AHHPDh-BHh-89fY.d.mts} +33 -48
  106. package/dist/types-B3AHHPDh-BHh-89fY.d.mts.map +1 -0
  107. package/dist/types-BGERR8XF.d.mts +1 -0
  108. package/dist/{types-DKU4GeqD-DUVn8zcv.d.mts → types-DKU4GeqD-CUClXCme.d.mts} +4 -4
  109. package/dist/{types-DKU4GeqD-DUVn8zcv.d.mts.map → types-DKU4GeqD-CUClXCme.d.mts.map} +1 -1
  110. package/dist/{types-CfPB-Kz_-ByWDfwMj.mjs → types-egs_vme1-DRhYFwIT.mjs} +50 -22
  111. package/dist/types-egs_vme1-DRhYFwIT.mjs.map +1 -0
  112. package/dist/{validators-Uim8vh59.mjs → validators-BCRydDG7.mjs} +6 -13
  113. package/dist/validators-BCRydDG7.mjs.map +1 -0
  114. package/package.json +18 -18
  115. package/dist/contract-builder-DkaXfJoe.d.mts.map +0 -1
  116. package/dist/control-DpPGeOJY.d.mts.map +0 -1
  117. package/dist/control-ZtRWQJi1.mjs.map +0 -1
  118. package/dist/control-adapter-DVjkUph8.d.mts +0 -1
  119. package/dist/data-type-pNwyyJpr.d.mts.map +0 -1
  120. package/dist/psl-build-DB-x01oH.mjs.map +0 -1
  121. package/dist/psl-field-resolution-BOJPyV5I-CQ7I2lbC.mjs.map +0 -1
  122. package/dist/sql-data-type-DwLa_dK9-2eTvrYhA.mjs.map +0 -1
  123. package/dist/types-Bqe0AXuw-xqQnkIj4.d.mts.map +0 -1
  124. package/dist/types-CTdsm45r.d.mts +0 -1
  125. package/dist/types-CfPB-Kz_-ByWDfwMj.mjs.map +0 -1
  126. package/dist/validators-Uim8vh59.mjs.map +0 -1
@@ -0,0 +1,13 @@
1
+ import { d as SqlColumnIRInput, i as ReportedSqlType } from "./types-B3AHHPDh-BHh-89fY.mjs";
2
+ import "./types-BGERR8XF.mjs";
3
+ import "./control-adapter-BCopdpsT-BPHa2Frw.mjs";
4
+ import { DataType } from "@prisma/orm-framework/components/codec";
5
+ //#region ../../../2-sql/9-family/dist/control-adapter.d.mts
6
+ //#region src/core/resolve-introspected-types.d.ts
7
+ /**
8
+ * The type an introspected column is stored as: the data type that claims its reported type, with its parameters in normal form, over `dataTypes`, the stack's declared data types in assembly order. Empty when no data type claims it. Each adapter spreads it into the column it builds. ADR 254.
9
+ */
10
+ declare function resolveIntrospectedColumnType(reported: ReportedSqlType, dataTypes: readonly DataType[]): Pick<SqlColumnIRInput, 'storedType' | 'storedTypeParams'>;
11
+ //#endregion
12
+ export { resolveIntrospectedColumnType as t };
13
+ //# sourceMappingURL=control-adapter-ChJhp5vV.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-adapter-ChJhp5vV.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/control-adapter.d.mts"],"mappings":";;;;;;;;;iBAOiB,8BAA8B,UAAU,iBAAiB,oBAAoB,aAAa,KAAK"}
@@ -0,0 +1,16 @@
1
+ import { a as resolveReportedSqlType } from "./sql-data-type-BSi0X331-OXbBFXDh.mjs";
2
+ //#region ../../../2-sql/9-family/dist/control-adapter.mjs
3
+ /**
4
+ * The type an introspected column is stored as: the data type that claims its reported type, with its parameters in normal form, over `dataTypes`, the stack's declared data types in assembly order. Empty when no data type claims it. Each adapter spreads it into the column it builds. ADR 254.
5
+ */
6
+ function resolveIntrospectedColumnType(reported, dataTypes) {
7
+ const resolved = resolveReportedSqlType(reported, dataTypes);
8
+ return resolved === void 0 ? {} : {
9
+ storedType: resolved.dataType,
10
+ storedTypeParams: resolved.typeParams
11
+ };
12
+ }
13
+ //#endregion
14
+ export { resolveIntrospectedColumnType as t };
15
+
16
+ //# sourceMappingURL=control-adapter-DhX77V61.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-adapter-DhX77V61.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/control-adapter.mjs"],"sourcesContent":["import { resolveReportedSqlType } from \"@internal/sql-contract/data-type\";\n//#region src/core/resolve-introspected-types.ts\n/**\n* The type an introspected column is stored as: the data type that claims its reported type, with its parameters in normal form, over `dataTypes`, the stack's declared data types in assembly order. Empty when no data type claims it. Each adapter spreads it into the column it builds. ADR 254.\n*/\nfunction resolveIntrospectedColumnType(reported, dataTypes) {\n\tconst resolved = resolveReportedSqlType(reported, dataTypes);\n\treturn resolved === void 0 ? {} : {\n\t\tstoredType: resolved.dataType,\n\t\tstoredTypeParams: resolved.typeParams\n\t};\n}\n//#endregion\nexport { resolveIntrospectedColumnType };\n\n//# sourceMappingURL=control-adapter.mjs.map"],"mappings":";;;;;AAKA,SAAS,8BAA8B,UAAU,WAAW;CAC3D,MAAM,WAAW,uBAAuB,UAAU,SAAS;CAC3D,OAAO,aAAa,KAAK,IAAI,CAAC,IAAI;EACjC,YAAY,SAAS;EACrB,kBAAkB,SAAS;CAC5B;AACD"}
@@ -1,6 +1,6 @@
1
- import { i as ReportedSqlType } from "./types-Bqe0AXuw-xqQnkIj4.mjs";
2
- import "./types-CTdsm45r.mjs";
3
- import { CodecLookupWithDescriptors, DataType, DataTypeId, DataTypeLookup, DataTypeSpec } from "@prisma/orm-framework/components/codec";
1
+ import { i as ReportedSqlType } from "./types-B3AHHPDh-BHh-89fY.mjs";
2
+ import "./types-BGERR8XF.mjs";
3
+ import { DataType, DataTypeId, DataTypeLookup, DataTypeSpec, TypeLookups } from "@prisma/orm-framework/components/codec";
4
4
  import { Type } from "arktype";
5
5
  //#region ../../../2-sql/1-core/contract/dist/data-type.d.mts
6
6
  //#region src/numeral-text.d.ts
@@ -23,7 +23,7 @@ interface SqlTypeText {
23
23
  readonly display?: string;
24
24
  }
25
25
  type SqlTypeParams = Readonly<Record<string, unknown>>;
26
- interface SqlDataTypeSpec<Params extends SqlTypeParams = SqlTypeParams> extends DataTypeSpec {
26
+ interface SqlDataTypeSpec<Params extends SqlTypeParams = SqlTypeParams> extends Omit<DataTypeSpec, 'normalize'> {
27
27
  readonly params?: Type<Params>;
28
28
  readonly texts?: readonly SqlTypeText[];
29
29
  /** The kind of reported type this data type claims, instead of any text. */
@@ -38,6 +38,7 @@ interface SqlDataTypeFacts<Params extends SqlTypeParams = SqlTypeParams> {
38
38
  readonly texts: readonly SqlTypeText[];
39
39
  readonly claimsKind: string | undefined;
40
40
  readonly storedAs: DataTypeId | undefined;
41
+ /** The normal form of `params`; parameters the type's schema refuses are returned as written. */
41
42
  readonly normalize: (params: Params) => Params;
42
43
  readonly render: ((params: Params) => string) | undefined;
43
44
  readonly fromReported: ((reported: ReportedSqlType) => Params) | undefined;
@@ -46,8 +47,9 @@ interface SqlDataType<Params extends SqlTypeParams = SqlTypeParams> extends Data
46
47
  readonly params?: Type<Params>;
47
48
  readonly sql: SqlDataTypeFacts<Params>;
48
49
  }
50
+ /** A data type that claims a type text, with the parameters the text gives in their normal form. */
49
51
  interface ResolvedSqlType {
50
- readonly dataType: DataTypeId;
52
+ readonly dataType: SqlDataType;
51
53
  readonly typeParams: SqlTypeParams;
52
54
  }
53
55
  /** Declare a SQL data type, refusing a declaration that breaks a rule of the module. */
@@ -64,21 +66,26 @@ declare function sqlBaseName<Params extends SqlTypeParams>(type: SqlDataType<Par
64
66
  * `sqlBaseName` gives the quoted name `render` writes into SQL (`"app"."status"`).
65
67
  */
66
68
  declare function unquotedSqlBaseName<Params extends SqlTypeParams>(type: SqlDataType<Params>, params: SqlTypeParams): string;
67
- /** The lookups that find the data type a codec represents. */
68
- interface SqlTypeLookups {
69
- readonly codecLookup: Pick<CodecLookupWithDescriptors, 'descriptorFor'>;
70
- readonly dataTypeLookup: Pick<DataTypeLookup, 'get'>;
71
- }
72
69
  /** The SQL data type the codec `codecId` represents. */
73
- declare function sqlDataTypeOfCodec(codecId: string, lookups: SqlTypeLookups): SqlDataType;
70
+ declare function sqlDataTypeOfCodec(codecId: string, lookups: TypeLookups): SqlDataType;
74
71
  /** The type a column of `type` is stored as, whose name DDL writes and the database reports: `type` itself unless it names another. */
75
72
  declare function sqlStorageType(type: SqlDataType, lookup: Pick<DataTypeLookup, 'get'>): SqlDataType;
76
73
  /** The id of the type a column of the data type `dataTypeId` is stored as: {@link sqlStorageType} of it, which refuses a storage type the lookup does not register, or `dataTypeId` itself when the lookup does not know it as a SQL data type. */
77
74
  declare function sqlStorageTypeId(dataTypeId: string, lookup: Pick<DataTypeLookup, 'get'>): string;
75
+ /** The parts of a contract column that make its type. */
76
+ interface SqlColumnTypeFields {
77
+ readonly dataType: string;
78
+ readonly typeParams?: Readonly<Record<string, unknown>>;
79
+ readonly many?: unknown;
80
+ }
81
+ /**
82
+ * Whether two contract columns have the same type: the types their data types are stored as are one type, those types' parameters are equal in normal form, and both or neither are lists. ADR 254.
83
+ */
84
+ declare function sameSqlColumnType(a: SqlColumnTypeFields, b: SqlColumnTypeFields, lookup: Pick<DataTypeLookup, 'get'>): boolean;
78
85
  /** The type a column of the codec `codecId` is stored as: {@link sqlStorageType} of the data type it represents. */
79
- declare function sqlStorageTypeOfCodec(codecId: string, lookups: SqlTypeLookups): SqlDataType;
86
+ declare function sqlStorageTypeOfCodec(codecId: string, lookups: TypeLookups): SqlDataType;
80
87
  /** {@link unquotedSqlBaseName} of the type a column of the codec `codecId` is stored as. */
81
- declare function unquotedSqlBaseNameOfCodec(codecId: string, typeParams: SqlTypeParams | undefined, lookups: SqlTypeLookups): string;
88
+ declare function unquotedSqlBaseNameOfCodec(codecId: string, typeParams: SqlTypeParams | undefined, lookups: TypeLookups): string;
82
89
  /** The text a migration writes for `type` with the raw `params`. */
83
90
  declare function renderSqlTypeName<Params extends SqlTypeParams>(type: SqlDataType<Params>, params: SqlTypeParams): string;
84
91
  /** The text the database catalog prints for `type` with `params`, in their normal form. */
@@ -115,5 +122,5 @@ declare function resolveReportedSqlType(reported: ReportedSqlType, dataTypes: re
115
122
  */
116
123
  declare function resolveWrittenSqlTypes(text: string, dataTypes: readonly DataType[]): readonly ResolvedSqlType[];
117
124
  //#endregion
118
- export { unquotedSqlBaseNameOfCodec as C, unquotedSqlBaseName as S, sqlDataType as _, SqlDataTypeSpec as a, sqlStorageTypeId as b, SqlTypeText as c, numeralText as d, renderSqlCatalogText as f, sqlBaseName as g, resolveWrittenSqlTypes as h, SqlDataTypeFacts as i, findSqlDataTypeCollision as l, resolveReportedSqlType as m, SqlDataType as n, SqlTypeLookups as o, renderSqlTypeName as p, SqlDataTypeCollision as r, SqlTypeParams as s, ResolvedSqlType as t, isSqlDataType as u, sqlDataTypeOfCodec as v, validateSqlTypeParams as w, sqlStorageTypeOfCodec as x, sqlStorageType as y };
119
- //# sourceMappingURL=data-type-pNwyyJpr.d.mts.map
125
+ export { unquotedSqlBaseName as C, sqlStorageTypeOfCodec as S, validateSqlTypeParams as T, sqlBaseName as _, SqlDataTypeFacts as a, sqlStorageType as b, SqlTypeText as c, numeralText as d, renderSqlCatalogText as f, sameSqlColumnType as g, resolveWrittenSqlTypes as h, SqlDataTypeCollision as i, findSqlDataTypeCollision as l, resolveReportedSqlType as m, SqlColumnTypeFields as n, SqlDataTypeSpec as o, renderSqlTypeName as p, SqlDataType as r, SqlTypeParams as s, ResolvedSqlType as t, isSqlDataType as u, sqlDataType as v, unquotedSqlBaseNameOfCodec as w, sqlStorageTypeId as x, sqlDataTypeOfCodec as y };
126
+ //# sourceMappingURL=data-type-C84xngfv.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-type-C84xngfv.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/data-type.d.mts"],"mappings":";;;;;;;;;;iBAQiB,YAAY;;;;UAInB;;WAEC;;WAEA;;WAEA;;WAEA;;KAEN,gBAAgB,SAAS;UACpB,gBAAgB,eAAe,gBAAgB,uBAAuB,KAAK;WAC1E,SAAS,KAAK;WACd,iBAAiB;;WAEjB;;WAEA,WAAW;WACX,aAAa,QAAQ,WAAW;WAChC,UAAU,QAAQ;WAClB,gBAAgB,UAAU,oBAAoB;;UAE/C,iBAAiB,eAAe,gBAAgB;WAC/C,gBAAgB;WAChB;WACA,UAAU;;WAEV,YAAY,QAAQ,WAAW;WAC/B,UAAU,QAAQ;WAClB,gBAAgB,UAAU,oBAAoB;;UAE/C,YAAY,eAAe,gBAAgB,uBAAuB;WACjE,SAAS,KAAK;WACd,KAAK,iBAAiB;;;UAGvB;WACC,UAAU;WACV,YAAY;;;iBAGN,YAAY,eAAe,gBAAgB,eAAe,YAAY,MAAM,gBAAgB,UAAU,YAAY;;iBAElH,cAAc,MAAM,WAAW,QAAQ;;iBAEvC,sBAAsB,eAAe,eAAe,MAAM,YAAY,SAAS,QAAQ,gBAAgB;;iBAEvG,YAAY,eAAe,eAAe,MAAM,YAAY,SAAS,QAAQ;;;;;;iBAM7E,oBAAoB,eAAe,eAAe,MAAM,YAAY,SAAS,QAAQ;;iBAErF,mBAAmB,iBAAiB,SAAS,cAAc;;iBAE3D,eAAe,MAAM,aAAa,QAAQ,KAAK,yBAAyB;;iBAExE,iBAAiB,oBAAoB,QAAQ,KAAK;;UAEzD;WACC;WACA,aAAa,SAAS;WACtB;;;;;iBAKM,kBAAkB,GAAG,qBAAqB,GAAG,qBAAqB,QAAQ,KAAK;;iBAE/E,sBAAsB,iBAAiB,SAAS,cAAc;;iBAE9D,2BAA2B,iBAAiB,YAAY,2BAA2B,SAAS;;iBAE5F,kBAAkB,eAAe,eAAe,MAAM,YAAY,SAAS,QAAQ;;iBAEnF,qBAAqB,eAAe,eAAe,MAAM,YAAY,SAAS,QAAQ;;UAE7F;WACC,OAAO;WACP,QAAQ;WACR;aACE;aACA;aACA;;aAEA;aACA;;;;;;;;iBAQI,yBAAyB,gBAAgB,aAAa;;;;;iBAKtD,uBAAuB,UAAU,iBAAiB,oBAAoB,aAAa;;;;;;;iBAOnF,uBAAuB,cAAc,oBAAoB,sBAAsB"}
@@ -1 +1 @@
1
- {"version":3,"file":"data-type-DKk8Unnz.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/data-type.mjs"],"sourcesContent":["import { a as resolveReportedSqlType, c as sqlDataType, d as sqlStorageTypeId, f as sqlStorageTypeOfCodec, h as validateSqlTypeParams, i as renderSqlTypeName, l as sqlDataTypeOfCodec, m as unquotedSqlBaseNameOfCodec, n as isSqlDataType, o as resolveWrittenSqlTypes, p as unquotedSqlBaseName, r as renderSqlCatalogText, s as sqlBaseName, t as findSqlDataTypeCollision, u as sqlStorageType } from \"./sql-data-type-DwLa_dK9.mjs\";\n//#region src/numeral-text.ts\n/**\n* A number as a contract source writes it: no exponent, because no schema language has that syntax,\n* so the decimal point moves to where the exponent puts it. A non-finite number is its own word.\n*/\nfunction numeralText(value) {\n\tconst [coefficient = \"\", exponent] = String(value).split(\"e\");\n\tif (exponent === void 0) return coefficient;\n\tconst sign = coefficient.startsWith(\"-\") ? \"-\" : \"\";\n\tconst [whole = \"\", fraction = \"\"] = coefficient.slice(sign.length).split(\".\");\n\tconst digits = `${whole}${fraction}`;\n\tconst point = whole.length + Number(exponent);\n\tif (point <= 0) return `${sign}0.${\"0\".repeat(-point)}${digits}`;\n\tif (point >= digits.length) return `${sign}${digits}${\"0\".repeat(point - digits.length)}`;\n\treturn `${sign}${digits.slice(0, point)}.${digits.slice(point)}`;\n}\n//#endregion\nexport { findSqlDataTypeCollision, isSqlDataType, numeralText, renderSqlCatalogText, renderSqlTypeName, resolveReportedSqlType, resolveWrittenSqlTypes, sqlBaseName, sqlDataType, sqlDataTypeOfCodec, sqlStorageType, sqlStorageTypeId, sqlStorageTypeOfCodec, unquotedSqlBaseName, unquotedSqlBaseNameOfCodec, validateSqlTypeParams };\n\n//# sourceMappingURL=data-type.mjs.map"],"mappings":";;;;;AAMA,SAAS,YAAY,OAAO;CAC3B,MAAM,CAAC,cAAc,IAAI,YAAY,OAAO,KAAK,CAAC,CAAC,MAAM,GAAG;CAC5D,IAAI,aAAa,KAAK,GAAG,OAAO;CAChC,MAAM,OAAO,YAAY,WAAW,GAAG,IAAI,MAAM;CACjD,MAAM,CAAC,QAAQ,IAAI,WAAW,MAAM,YAAY,MAAM,KAAK,MAAM,CAAC,CAAC,MAAM,GAAG;CAC5E,MAAM,SAAS,GAAG,QAAQ;CAC1B,MAAM,QAAQ,MAAM,SAAS,OAAO,QAAQ;CAC5C,IAAI,SAAS,GAAG,OAAO,GAAG,KAAK,IAAI,IAAI,OAAO,CAAC,KAAK,IAAI;CACxD,IAAI,SAAS,OAAO,QAAQ,OAAO,GAAG,OAAO,SAAS,IAAI,OAAO,QAAQ,OAAO,MAAM;CACtF,OAAO,GAAG,OAAO,OAAO,MAAM,GAAG,KAAK,EAAE,GAAG,OAAO,MAAM,KAAK;AAC9D"}
1
+ {"version":3,"file":"data-type-DKk8Unnz.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/data-type.mjs"],"sourcesContent":["import { a as resolveReportedSqlType, c as sqlBaseName, d as sqlStorageType, f as sqlStorageTypeId, g as validateSqlTypeParams, h as unquotedSqlBaseNameOfCodec, i as renderSqlTypeName, l as sqlDataType, m as unquotedSqlBaseName, n as isSqlDataType, o as resolveWrittenSqlTypes, p as sqlStorageTypeOfCodec, r as renderSqlCatalogText, s as sameSqlColumnType, t as findSqlDataTypeCollision, u as sqlDataTypeOfCodec } from \"./sql-data-type-BSi0X331.mjs\";\n//#region src/numeral-text.ts\n/**\n* A number as a contract source writes it: no exponent, because no schema language has that syntax,\n* so the decimal point moves to where the exponent puts it. A non-finite number is its own word.\n*/\nfunction numeralText(value) {\n\tconst [coefficient = \"\", exponent] = String(value).split(\"e\");\n\tif (exponent === void 0) return coefficient;\n\tconst sign = coefficient.startsWith(\"-\") ? \"-\" : \"\";\n\tconst [whole = \"\", fraction = \"\"] = coefficient.slice(sign.length).split(\".\");\n\tconst digits = `${whole}${fraction}`;\n\tconst point = whole.length + Number(exponent);\n\tif (point <= 0) return `${sign}0.${\"0\".repeat(-point)}${digits}`;\n\tif (point >= digits.length) return `${sign}${digits}${\"0\".repeat(point - digits.length)}`;\n\treturn `${sign}${digits.slice(0, point)}.${digits.slice(point)}`;\n}\n//#endregion\nexport { findSqlDataTypeCollision, isSqlDataType, numeralText, renderSqlCatalogText, renderSqlTypeName, resolveReportedSqlType, resolveWrittenSqlTypes, sameSqlColumnType, sqlBaseName, sqlDataType, sqlDataTypeOfCodec, sqlStorageType, sqlStorageTypeId, sqlStorageTypeOfCodec, unquotedSqlBaseName, unquotedSqlBaseNameOfCodec, validateSqlTypeParams };\n\n//# sourceMappingURL=data-type.mjs.map"],"mappings":";;;;;AAMA,SAAS,YAAY,OAAO;CAC3B,MAAM,CAAC,cAAc,IAAI,YAAY,OAAO,KAAK,CAAC,CAAC,MAAM,GAAG;CAC5D,IAAI,aAAa,KAAK,GAAG,OAAO;CAChC,MAAM,OAAO,YAAY,WAAW,GAAG,IAAI,MAAM;CACjD,MAAM,CAAC,QAAQ,IAAI,WAAW,MAAM,YAAY,MAAM,KAAK,MAAM,CAAC,CAAC,MAAM,GAAG;CAC5E,MAAM,SAAS,GAAG,QAAQ;CAC1B,MAAM,QAAQ,MAAM,SAAS,OAAO,QAAQ;CAC5C,IAAI,SAAS,GAAG,OAAO,GAAG,KAAK,IAAI,IAAI,OAAO,CAAC,KAAK,IAAI;CACxD,IAAI,SAAS,OAAO,QAAQ,OAAO,GAAG,OAAO,SAAS,IAAI,OAAO,QAAQ,OAAO,MAAM;CACtF,OAAO,GAAG,OAAO,OAAO,MAAM,GAAG,KAAK,EAAE,GAAG,OAAO,MAAM,KAAK;AAC9D"}
@@ -3,14 +3,14 @@ import { i as computeCheckContentHash, r as composeCheckWirePrefix, s as derived
3
3
  import { r as lowerAuthoredIndex } from "./index-naming-BOcJT1B3-18gQUduD.mjs";
4
4
  import { t as lowerAuthoredCheck } from "./authored-check-naming-CIX7Bbyh.mjs";
5
5
  import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-dmXkOR4a.mjs";
6
- import { h as validateSqlTypeParams, l as sqlDataTypeOfCodec } from "./sql-data-type-DwLa_dK9-2eTvrYhA.mjs";
6
+ import { g as validateSqlTypeParams, u as sqlDataTypeOfCodec } from "./sql-data-type-BSi0X331-OXbBFXDh.mjs";
7
7
  import { c as StorageTable, i as Index, t as CheckConstraint } from "./storage-table-DN36E2yE-0ncS821l.mjs";
8
8
  import { n as checkConstraintInputFromSerialized } from "./serialized-index-52COq1yV-CUJ2F65u.mjs";
9
9
  import { m as valueSetEntityKind, p as tableEntityKind } from "./entity-kinds-CQ_jwgYv-DoOBWwvX.mjs";
10
- import { a as materializeForeignKeysAndIndexes } from "./foreign-key-materialization-BIvQTfz8.mjs";
10
+ import { a as materializeForeignKeysAndIndexes } from "./foreign-key-materialization-C_FPLzj3.mjs";
11
11
  import { t as validateIndexTypes } from "./index-type-validation-Bcme_Ust.mjs";
12
12
  import { c as isMaterializedSqlNamespace, d as resolvedTypeParams, f as toStorageTypeInstance, o as SqlStorage, s as applyFkDefaults } from "./types-M_FeBD9w.mjs";
13
- import { h as validateStorageSemantics } from "./validators-Uim8vh59.mjs";
13
+ import { h as validateStorageSemantics } from "./validators-BCRydDG7.mjs";
14
14
  import { t as deriveValueSetFromEntity } from "./value-set-derivation-hook-Di9JZ0X7.mjs";
15
15
  import { isStructuredError, structuredError } from "@prisma/orm-framework/utils/structured-error";
16
16
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
@@ -1489,4 +1489,4 @@ function withoutDerivedChecks(tableName, table, contractDefault) {
1489
1489
  //#endregion
1490
1490
  export { storedAsListColumn as a, isValueObjectMember as i, buildSqlContractFromDefinition as n, toOneNullabilityContradictionMessage as o, contractError as r, applySqlSpecifierControlPolicy as t };
1491
1491
 
1492
- //# sourceMappingURL=derived-checks-sRZp_gTF-Dvk3wkm9.mjs.map
1492
+ //# sourceMappingURL=derived-checks-sRZp_gTF-ermwhVGQ.mjs.map