@prisma/orm-target-postgres 8.0.0-rc.22-dev.11 → 8.0.0-rc.22-dev.13

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 (60) hide show
  1. package/dist/{adapter-pJTWVQ3E.d.mts → adapter-Cqm8mgie.d.mts} +2 -2
  2. package/dist/{adapter-pJTWVQ3E.d.mts.map → adapter-Cqm8mgie.d.mts.map} +1 -1
  3. package/dist/adapter.d.mts +3 -3
  4. package/dist/adapter.mjs +2 -2
  5. package/dist/adapter__adapter.d.mts +1 -1
  6. package/dist/adapter__column-types.d.mts +2 -2
  7. package/dist/adapter__column-types.mjs +2 -2
  8. package/dist/{aggregates-CCEULCRK.d.mts → aggregates-C2c48ORM.d.mts} +2 -2
  9. package/dist/{aggregates-CCEULCRK.d.mts.map → aggregates-C2c48ORM.d.mts.map} +1 -1
  10. package/dist/{authoring-BLKmfwFy-DRwqGgGY.mjs → authoring-BPha5ZXb-DDzFeAur.mjs} +336 -141
  11. package/dist/authoring-BPha5ZXb-DDzFeAur.mjs.map +1 -0
  12. package/dist/{column-types-0CjA9Eri.d.mts → column-types-DBCLQW1w.d.mts} +6 -6
  13. package/dist/column-types-DBCLQW1w.d.mts.map +1 -0
  14. package/dist/{column-types-B11Mxo9V.mjs → column-types-DpzI37Cl.mjs} +4 -4
  15. package/dist/column-types-DpzI37Cl.mjs.map +1 -0
  16. package/dist/{control-B9PSgbQT.d.mts → control-B3mLvrSy.d.mts} +460 -164
  17. package/dist/control-B3mLvrSy.d.mts.map +1 -0
  18. package/dist/{descriptor-meta-DDydgB82-Cvv8FtTL.mjs → descriptor-meta-isjjnUyM-B-Cvh2Xe.mjs} +5 -5
  19. package/dist/descriptor-meta-isjjnUyM-B-Cvh2Xe.mjs.map +1 -0
  20. package/dist/{infer-psl-contract-Bn0Qzy4d-D9RlEL5y.mjs → infer-psl-contract-GekjNl5K-C4ELCIth.mjs} +3 -3
  21. package/dist/{infer-psl-contract-Bn0Qzy4d-D9RlEL5y.mjs.map → infer-psl-contract-GekjNl5K-C4ELCIth.mjs.map} +1 -1
  22. package/dist/migration-Be_iuIpn.mjs.map +1 -1
  23. package/dist/{pack-ClOo5FU_.d.mts → pack-DDHu-CxO.d.mts} +373 -92
  24. package/dist/pack-DDHu-CxO.d.mts.map +1 -0
  25. package/dist/{planner-BsSEbzfm-BrBEb_M1.mjs → planner-CKWtXyFH-BzpDX4M9.mjs} +4 -4
  26. package/dist/{planner-BsSEbzfm-BrBEb_M1.mjs.map → planner-CKWtXyFH-BzpDX4M9.mjs.map} +1 -1
  27. package/dist/{planner-produced-postgres-migration-bn60skNP-CKjpb3S_.mjs → planner-produced-postgres-migration-Dv5BSpUH-0NOLwcM4.mjs} +3 -3
  28. package/dist/{planner-produced-postgres-migration-bn60skNP-CKjpb3S_.mjs.map → planner-produced-postgres-migration-Dv5BSpUH-0NOLwcM4.mjs.map} +1 -1
  29. package/dist/{postgres-contract-view-pS-iTnm--BIKbQbBd.mjs → postgres-contract-view-BAuuUjGY-1XcthN9K.mjs} +3 -3
  30. package/dist/{postgres-contract-view-pS-iTnm--BIKbQbBd.mjs.map → postgres-contract-view-BAuuUjGY-1XcthN9K.mjs.map} +1 -1
  31. package/dist/{postgres-migration-CVWCygKt-DEXT0FE_.mjs → postgres-migration-uFrgXH6E-DCGpBoJ_.mjs} +3 -3
  32. package/dist/{postgres-migration-CVWCygKt-DEXT0FE_.mjs.map → postgres-migration-uFrgXH6E-DCGpBoJ_.mjs.map} +1 -1
  33. package/dist/{prisma7-binding-BexVc6RM.mjs → prisma7-binding-D1A_OJe2.mjs} +4 -4
  34. package/dist/prisma7-binding-D1A_OJe2.mjs.map +1 -0
  35. package/dist/{prisma7-binding-Bb8yzr_1.d.mts → prisma7-binding-ZpDLZt_D.d.mts} +373 -92
  36. package/dist/prisma7-binding-ZpDLZt_D.d.mts.map +1 -0
  37. package/dist/target.d.mts +5 -5
  38. package/dist/target.mjs +7 -7
  39. package/dist/target__aggregates.d.mts +1 -1
  40. package/dist/target__control.d.mts +2 -2
  41. package/dist/target__control.mjs +17 -10
  42. package/dist/target__control.mjs.map +1 -1
  43. package/dist/target__migration.mjs +1 -1
  44. package/dist/target__pack.d.mts +1 -1
  45. package/dist/target__pack.mjs +1 -1
  46. package/dist/target__planner-produced-postgres-migration.mjs +1 -1
  47. package/dist/target__planner.mjs +1 -1
  48. package/dist/target__prisma7-binding.d.mts +1 -1
  49. package/dist/target__prisma7-binding.mjs +1 -1
  50. package/dist/target__runtime.mjs +1 -1
  51. package/dist/target__runtime.mjs.map +1 -1
  52. package/package.json +10 -10
  53. package/dist/authoring-BLKmfwFy-DRwqGgGY.mjs.map +0 -1
  54. package/dist/column-types-0CjA9Eri.d.mts.map +0 -1
  55. package/dist/column-types-B11Mxo9V.mjs.map +0 -1
  56. package/dist/control-B9PSgbQT.d.mts.map +0 -1
  57. package/dist/descriptor-meta-DDydgB82-Cvv8FtTL.mjs.map +0 -1
  58. package/dist/pack-ClOo5FU_.d.mts.map +0 -1
  59. package/dist/prisma7-binding-Bb8yzr_1.d.mts.map +0 -1
  60. package/dist/prisma7-binding-BexVc6RM.mjs.map +0 -1
@@ -16,100 +16,138 @@ import { blockAttribute, bool, dataTypeValue, entityRef, fieldRef, identifier, l
16
16
  import { generatedIdColumnAliases } from "@prisma/orm-family-sql/contract/generated-id-column-aliases";
17
17
  import { exactNameBodyWarning } from "@prisma/orm-family-sql/contract/index-naming";
18
18
  import { SQL_EXPRESSION_DATA_TYPE_ID, requireSqlExpression, sqlTextFromStored } from "@prisma/orm-family-sql/contract/sql-expression";
19
- //#region ../../../3-targets/postgres/1-target/dist/authoring-BLKmfwFy.mjs
19
+ //#region ../../../3-targets/postgres/1-target/dist/authoring-BPha5ZXb.mjs
20
20
  /** The data type of every size argument on Postgres, such as a length or a precision: a typmod is an `int4`. */
21
21
  const PG_SIZE_TYPE = "pg/int4";
22
+ const length = {
23
+ kind: "value",
24
+ dataType: PG_SIZE_TYPE,
25
+ name: "length",
26
+ optional: true
27
+ };
28
+ const int2 = {
29
+ kind: "typeConstructor",
30
+ documentation: "A signed 16-bit integer stored as PostgreSQL int2 and represented as a JavaScript number.",
31
+ output: { codecId: "pg/int2@1" }
32
+ };
33
+ const int8Number = {
34
+ kind: "typeConstructor",
35
+ documentation: "A signed 64-bit integer stored as PostgreSQL int8 and represented as a JavaScript number within its safe integer range.",
36
+ output: { codecId: "pg/int8number@1" }
37
+ };
38
+ const numericString = {
39
+ kind: "typeConstructor",
40
+ documentation: "An exact decimal value stored as PostgreSQL numeric, with optional precision and scale, and represented as decimal text.",
41
+ args: [{
42
+ kind: "value",
43
+ dataType: PG_SIZE_TYPE,
44
+ name: "precision",
45
+ optional: true
46
+ }, {
47
+ kind: "value",
48
+ dataType: PG_SIZE_TYPE,
49
+ name: "scale",
50
+ optional: true
51
+ }],
52
+ output: {
53
+ codecId: "pg/numeric@1",
54
+ typeParams: {
55
+ precision: {
56
+ kind: "arg",
57
+ index: 0
58
+ },
59
+ scale: {
60
+ kind: "arg",
61
+ index: 1
62
+ }
63
+ }
64
+ }
65
+ };
66
+ const numericBigInt = {
67
+ kind: "typeConstructor",
68
+ documentation: "An arbitrary-precision integer stored as PostgreSQL numeric and represented as a JavaScript bigint.",
69
+ output: { codecId: "pg/unboundedint@1" }
70
+ };
71
+ const float4 = {
72
+ kind: "typeConstructor",
73
+ documentation: "A single-precision floating-point number stored as PostgreSQL float4.",
74
+ output: { codecId: "pg/float4@1" }
75
+ };
76
+ const varchar = {
77
+ kind: "typeConstructor",
78
+ documentation: "Variable-length text stored as PostgreSQL character varying, with an optional maximum character length.",
79
+ args: [length],
80
+ output: {
81
+ codecId: "sql/varchar@1",
82
+ typeParams: { length: {
83
+ kind: "arg",
84
+ index: 0
85
+ } }
86
+ }
87
+ };
88
+ const varbit = {
89
+ kind: "typeConstructor",
90
+ documentation: "A variable-length bit string with an optional maximum length in bits.",
91
+ args: [length],
92
+ output: {
93
+ codecId: "pg/varbit@1",
94
+ typeParams: { length: {
95
+ kind: "arg",
96
+ index: 0
97
+ } }
98
+ }
99
+ };
22
100
  /**
23
- * The base PSL scalars as zero-arg type constructors in the unified authoring
24
- * channel. Each names a codec; the column's database type is its data type's.
25
- *
26
- * The type position is the only storage decider: a mutation-default generator
27
- * (`@onCreate(uuid())`) never re-picks a column's storage.
101
+ * PostgreSQL's explicit types: each names one codec, and is what the contract stores. Each is named after the database type, plus the application value where the database type has more than one codec (ADR 257, ADR 316). `Json` keeps its name until the `Json` convenience type is decided.
28
102
  */
29
- const postgresScalarAuthoringTypes = {
30
- String: {
31
- kind: "typeConstructor",
32
- inferred: true,
33
- documentation: "Variable-length text stored as PostgreSQL text.",
34
- output: { codecId: "pg/text@1" }
35
- },
36
- Boolean: {
37
- kind: "typeConstructor",
38
- inferred: true,
39
- documentation: "A true or false value stored as PostgreSQL boolean.",
40
- output: { codecId: "pg/bool@1" }
103
+ const postgresExplicitTypes = {
104
+ Int2: {
105
+ ...int2,
106
+ inferred: true
41
107
  },
42
- Int: {
108
+ Int4: {
43
109
  kind: "typeConstructor",
44
110
  inferred: true,
45
- documentation: "A signed 32-bit integer represented as a JavaScript number.",
111
+ documentation: "A signed 32-bit integer stored as PostgreSQL int4 and represented as a JavaScript number.",
46
112
  output: { codecId: "pg/int4@1" }
47
113
  },
48
- BigInt: {
114
+ Int8BigInt: {
49
115
  kind: "typeConstructor",
50
116
  inferred: true,
51
- documentation: "A signed 64-bit integer represented as a JavaScript bigint.",
117
+ documentation: "A signed 64-bit integer stored as PostgreSQL int8 and represented as a JavaScript bigint.",
52
118
  output: { codecId: "pg/int8@1" }
53
119
  },
54
- Float: {
55
- kind: "typeConstructor",
56
- inferred: true,
57
- documentation: "A double-precision floating-point number.",
58
- output: { codecId: "pg/float8@1" }
120
+ Int8Number: int8Number,
121
+ NumericString: {
122
+ ...numericString,
123
+ inferred: true
59
124
  },
60
- Decimal: {
61
- kind: "typeConstructor",
62
- documentation: "An exact decimal value stored as PostgreSQL numeric.",
63
- output: { codecId: "pg/numeric@1" }
125
+ NumericBigInt: numericBigInt,
126
+ Float4: {
127
+ ...float4,
128
+ inferred: true
64
129
  },
65
- Json: {
130
+ Float8: {
66
131
  kind: "typeConstructor",
67
132
  inferred: true,
68
- documentation: "A JSON value stored as PostgreSQL json.",
69
- output: { codecId: "pg/json@1" }
133
+ documentation: "A double-precision floating-point number stored as PostgreSQL float8.",
134
+ output: { codecId: "pg/float8@1" }
70
135
  },
71
- Jsonb: {
136
+ Text: {
72
137
  kind: "typeConstructor",
73
138
  inferred: true,
74
- documentation: "A JSON value stored in PostgreSQL binary jsonb format.",
75
- output: { codecId: "pg/jsonb@1" }
139
+ documentation: "Variable-length text stored as PostgreSQL text.",
140
+ output: { codecId: "pg/text@1" }
76
141
  },
77
- Bytes: {
78
- kind: "typeConstructor",
79
- inferred: true,
80
- documentation: "Binary data stored as PostgreSQL bytea.",
81
- output: { codecId: "pg/bytea@1" }
82
- }
83
- };
84
- const postgresNativeAuthoringTypes = {
85
- VarChar: {
86
- kind: "typeConstructor",
87
- inferred: true,
88
- documentation: "Variable-length text with an optional maximum character length.",
89
- args: [{
90
- kind: "value",
91
- dataType: PG_SIZE_TYPE,
92
- name: "length",
93
- optional: true
94
- }],
95
- output: {
96
- codecId: "sql/varchar@1",
97
- typeParams: { length: {
98
- kind: "arg",
99
- index: 0
100
- } }
101
- }
142
+ Varchar: {
143
+ ...varchar,
144
+ inferred: true
102
145
  },
103
146
  Char: {
104
147
  kind: "typeConstructor",
105
148
  inferred: true,
106
- documentation: "Fixed-length, blank-padded text with an optional character length.",
107
- args: [{
108
- kind: "value",
109
- dataType: PG_SIZE_TYPE,
110
- name: "length",
111
- optional: true
112
- }],
149
+ documentation: "Fixed-length, blank-padded text stored as PostgreSQL character, with an optional character length.",
150
+ args: [length],
113
151
  output: {
114
152
  codecId: "sql/char@1",
115
153
  typeParams: { length: {
@@ -118,34 +156,29 @@ const postgresNativeAuthoringTypes = {
118
156
  } }
119
157
  }
120
158
  },
121
- Numeric: {
159
+ Bool: {
122
160
  kind: "typeConstructor",
123
161
  inferred: true,
124
- documentation: "An exact decimal value with optional precision and scale.",
125
- args: [{
126
- kind: "value",
127
- dataType: PG_SIZE_TYPE,
128
- name: "precision",
129
- optional: true
130
- }, {
131
- kind: "value",
132
- dataType: PG_SIZE_TYPE,
133
- name: "scale",
134
- optional: true
135
- }],
136
- output: {
137
- codecId: "pg/numeric@1",
138
- typeParams: {
139
- precision: {
140
- kind: "arg",
141
- index: 0
142
- },
143
- scale: {
144
- kind: "arg",
145
- index: 1
146
- }
147
- }
148
- }
162
+ documentation: "A true or false value stored as PostgreSQL bool.",
163
+ output: { codecId: "pg/bool@1" }
164
+ },
165
+ Bytea: {
166
+ kind: "typeConstructor",
167
+ inferred: true,
168
+ documentation: "Binary data stored as PostgreSQL bytea and represented as a Uint8Array.",
169
+ output: { codecId: "pg/bytea@1" }
170
+ },
171
+ Json: {
172
+ kind: "typeConstructor",
173
+ inferred: true,
174
+ documentation: "A JSON value stored as PostgreSQL json.",
175
+ output: { codecId: "pg/json@1" }
176
+ },
177
+ Jsonb: {
178
+ kind: "typeConstructor",
179
+ inferred: true,
180
+ documentation: "A JSON value stored in PostgreSQL binary jsonb format.",
181
+ output: { codecId: "pg/jsonb@1" }
149
182
  },
150
183
  TimestampTemporal: {
151
184
  kind: "typeConstructor",
@@ -228,18 +261,6 @@ const postgresNativeAuthoringTypes = {
228
261
  documentation: "An IPv4 or IPv6 address with an optional subnet mask.",
229
262
  output: { codecId: "pg/inet@1" }
230
263
  },
231
- SmallInt: {
232
- kind: "typeConstructor",
233
- inferred: true,
234
- documentation: "A signed 16-bit integer represented as a JavaScript number.",
235
- output: { codecId: "pg/int2@1" }
236
- },
237
- Real: {
238
- kind: "typeConstructor",
239
- inferred: true,
240
- documentation: "A single-precision floating-point number.",
241
- output: { codecId: "pg/float4@1" }
242
- },
243
264
  DateTemporal: {
244
265
  kind: "typeConstructor",
245
266
  documentation: "A calendar date represented as Temporal.PlainDate.",
@@ -374,23 +395,9 @@ const postgresNativeAuthoringTypes = {
374
395
  } }
375
396
  }
376
397
  },
377
- VarBit: {
378
- kind: "typeConstructor",
379
- inferred: true,
380
- documentation: "A variable-length bit string with an optional maximum length in bits.",
381
- args: [{
382
- kind: "value",
383
- dataType: PG_SIZE_TYPE,
384
- name: "length",
385
- optional: true
386
- }],
387
- output: {
388
- codecId: "pg/varbit@1",
389
- typeParams: { length: {
390
- kind: "arg",
391
- index: 0
392
- } }
393
- }
398
+ Varbit: {
399
+ ...varbit,
400
+ inferred: true
394
401
  },
395
402
  Xml: {
396
403
  kind: "typeConstructor",
@@ -446,6 +453,39 @@ const postgresNativeAuthoringTypes = {
446
453
  }
447
454
  }
448
455
  };
456
+ /**
457
+ * The explicit types' former names, kept for one release line as deprecated aliases. Each gives the same codec as its replacement, and the PSL interpreter warns where one is written (ADR 257).
458
+ */
459
+ const postgresDeprecatedScalarTypes = {
460
+ SmallInt: {
461
+ ...int2,
462
+ deprecated: { replacement: "Int2" }
463
+ },
464
+ BigIntNumber: {
465
+ ...int8Number,
466
+ deprecated: { replacement: "Int8Number" }
467
+ },
468
+ Numeric: {
469
+ ...numericString,
470
+ deprecated: { replacement: "NumericString" }
471
+ },
472
+ UnboundedInt: {
473
+ ...numericBigInt,
474
+ deprecated: { replacement: "NumericBigInt" }
475
+ },
476
+ Real: {
477
+ ...float4,
478
+ deprecated: { replacement: "Float4" }
479
+ },
480
+ VarChar: {
481
+ ...varchar,
482
+ deprecated: { replacement: "Varchar" }
483
+ },
484
+ VarBit: {
485
+ ...varbit,
486
+ deprecated: { replacement: "Varbit" }
487
+ }
488
+ };
449
489
  const precision = {
450
490
  kind: "value",
451
491
  dataType: PG_SIZE_TYPE,
@@ -637,12 +677,177 @@ const postgresConvenienceDateTimeTypes = {
637
677
  }
638
678
  };
639
679
  /**
640
- * The base scalars and native types as type constructors. The target contributes them, so PSL and the TypeScript builder's `type.*` see the same names.
680
+ * The convenience types of PostgreSQL's other scalars. Each is a type choice: `storage` chooses the database type and, for `BigInt`, `as` chooses the application value; `precision`, `scale` and `length` are passed on to the explicit type chosen. ADR 279, ADR 316.
681
+ */
682
+ const postgresConvenienceScalarTypes = {
683
+ Int: {
684
+ kind: "typeChoice",
685
+ documentation: "An integer read as a JavaScript number. `storage` is int4, a 32-bit integer, or int2, a 16-bit integer.",
686
+ args: [{
687
+ kind: "option",
688
+ name: "storage",
689
+ values: ["int4", "int2"],
690
+ default: "int4",
691
+ optional: true
692
+ }],
693
+ choices: [{
694
+ when: { storage: "int4" },
695
+ type: "Int4"
696
+ }, {
697
+ when: { storage: "int2" },
698
+ type: "Int2"
699
+ }]
700
+ },
701
+ BigInt: {
702
+ kind: "typeChoice",
703
+ documentation: "An integer that may exceed 32 bits. `as` is what the application reads: bigint, or number within the safe integer range. `storage` is int8, a 64-bit integer, or numeric, an integer of any size, with as: bigint.",
704
+ args: [{
705
+ kind: "option",
706
+ name: "as",
707
+ values: ["bigint", "number"],
708
+ default: "bigint",
709
+ optional: true
710
+ }, {
711
+ kind: "option",
712
+ name: "storage",
713
+ values: ["int8", "numeric"],
714
+ default: "int8",
715
+ optional: true
716
+ }],
717
+ choices: [
718
+ {
719
+ when: {
720
+ as: "bigint",
721
+ storage: "int8"
722
+ },
723
+ type: "Int8BigInt"
724
+ },
725
+ {
726
+ when: {
727
+ as: "number",
728
+ storage: "int8"
729
+ },
730
+ type: "Int8Number"
731
+ },
732
+ {
733
+ when: {
734
+ as: "bigint",
735
+ storage: "numeric"
736
+ },
737
+ type: "NumericBigInt"
738
+ }
739
+ ]
740
+ },
741
+ Float: {
742
+ kind: "typeChoice",
743
+ documentation: "A floating-point number. `storage` is float8, double precision, or float4, single precision.",
744
+ args: [{
745
+ kind: "option",
746
+ name: "storage",
747
+ values: ["float8", "float4"],
748
+ default: "float8",
749
+ optional: true
750
+ }],
751
+ choices: [{
752
+ when: { storage: "float8" },
753
+ type: "Float8"
754
+ }, {
755
+ when: { storage: "float4" },
756
+ type: "Float4"
757
+ }]
758
+ },
759
+ Decimal: {
760
+ kind: "typeChoice",
761
+ documentation: "An exact decimal number, read as decimal text such as \"12.50\". `storage` is numeric, with optional precision and scale.",
762
+ args: [
763
+ {
764
+ kind: "option",
765
+ name: "storage",
766
+ values: ["numeric"],
767
+ default: "numeric",
768
+ optional: true
769
+ },
770
+ precision,
771
+ {
772
+ kind: "value",
773
+ dataType: PG_SIZE_TYPE,
774
+ name: "scale",
775
+ optional: true
776
+ }
777
+ ],
778
+ choices: [{
779
+ when: { storage: "numeric" },
780
+ type: "NumericString"
781
+ }]
782
+ },
783
+ String: {
784
+ kind: "typeChoice",
785
+ documentation: "Text. `storage` is text, of any length, or varchar or char, which take an optional length.",
786
+ args: [{
787
+ kind: "option",
788
+ name: "storage",
789
+ values: [
790
+ "text",
791
+ "varchar",
792
+ "char"
793
+ ],
794
+ default: "text",
795
+ optional: true
796
+ }, length],
797
+ choices: [
798
+ {
799
+ when: { storage: "text" },
800
+ type: "Text"
801
+ },
802
+ {
803
+ when: { storage: "varchar" },
804
+ type: "Varchar"
805
+ },
806
+ {
807
+ when: { storage: "char" },
808
+ type: "Char"
809
+ }
810
+ ]
811
+ },
812
+ Boolean: {
813
+ kind: "typeChoice",
814
+ documentation: "A true or false value. `storage` is bool.",
815
+ args: [{
816
+ kind: "option",
817
+ name: "storage",
818
+ values: ["bool"],
819
+ default: "bool",
820
+ optional: true
821
+ }],
822
+ choices: [{
823
+ when: { storage: "bool" },
824
+ type: "Bool"
825
+ }]
826
+ },
827
+ Bytes: {
828
+ kind: "typeChoice",
829
+ documentation: "Binary data, read as a Uint8Array. `storage` is bytea.",
830
+ args: [{
831
+ kind: "option",
832
+ name: "storage",
833
+ values: ["bytea"],
834
+ default: "bytea",
835
+ optional: true
836
+ }],
837
+ choices: [{
838
+ when: { storage: "bytea" },
839
+ type: "Bytea"
840
+ }]
841
+ }
842
+ };
843
+ /**
844
+ * PostgreSQL's scalar types: the explicit types, the convenience types and the deprecated aliases. It is not the whole `type` namespace: the target contributes it together with `postgresAuthoringTypes`, which adds the namespaced `sql.*`, `temporal.*` and `pg.enum` and the generated-ID aliases such as `UuidString`.
641
845
  */
642
- const postgresScalarAndNativeTypeConstructors = {
643
- ...postgresNativeAuthoringTypes,
644
- ...postgresScalarAuthoringTypes,
645
- ...postgresConvenienceDateTimeTypes
846
+ const postgresScalarTypes = {
847
+ ...postgresExplicitTypes,
848
+ ...postgresConvenienceDateTimeTypes,
849
+ ...postgresConvenienceScalarTypes,
850
+ ...postgresDeprecatedScalarTypes
646
851
  };
647
852
  const PSL_POLICY_INVALID_MAP = "PSL_POLICY_INVALID_MAP";
648
853
  const PSL_FULL_TEXT_INDEX_TOO_MANY_GROUPS = "PSL_FULL_TEXT_INDEX_TOO_MANY_GROUPS";
@@ -666,16 +871,6 @@ const PSL_ROLE_BLOCK_OUTSIDE_UNBOUND_NAMESPACE = "PSL_ROLE_BLOCK_OUTSIDE_UNBOUND
666
871
  const postgresAuthoringTypes = {
667
872
  .../* @__PURE__ */ sqlTargetTypeConstructors({ sizeType: PG_SIZE_TYPE }),
668
873
  ...generatedIdColumnAliases,
669
- BigIntNumber: {
670
- kind: "typeConstructor",
671
- documentation: "A PostgreSQL 64-bit integer represented as a JavaScript number within its safe integer range.",
672
- output: { codecId: "pg/int8number@1" }
673
- },
674
- UnboundedInt: {
675
- kind: "typeConstructor",
676
- documentation: "An arbitrary-precision integer stored as PostgreSQL numeric and represented as bigint.",
677
- output: { codecId: "pg/unboundedint@1" }
678
- },
679
874
  pg: { enum: {
680
875
  kind: "typeConstructor",
681
876
  inferred: true,
@@ -1339,6 +1534,6 @@ function postgresLowerEntityHandles(input) {
1339
1534
  return rows;
1340
1535
  }
1341
1536
  //#endregion
1342
- export { postgresAuthoringTypes as a, postgresScalarAndNativeTypeConstructors as c, postgresAuthoringPslBlockDescriptors as i, postgresScalarAuthoringTypes as l, postgresAuthoringEntityTypes as n, postgresLowerEntityHandles as o, postgresAuthoringModelAttributes as r, postgresNativeAuthoringTypes as s, POLICY_BLOCK_KEYWORDS as t };
1537
+ export { postgresAuthoringTypes as a, postgresScalarTypes as c, postgresAuthoringPslBlockDescriptors as i, postgresAuthoringEntityTypes as n, postgresExplicitTypes as o, postgresAuthoringModelAttributes as r, postgresLowerEntityHandles as s, POLICY_BLOCK_KEYWORDS as t };
1343
1538
 
1344
- //# sourceMappingURL=authoring-BLKmfwFy-DRwqGgGY.mjs.map
1539
+ //# sourceMappingURL=authoring-BPha5ZXb-DDzFeAur.mjs.map