drizzle-kit 0.22.7-fbc7b5c → 0.22.8

Sign up to get free protection for your applications and to get access to all the features.
package/payload.d.ts CHANGED
@@ -20,48 +20,6 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
20
20
  isUnique: zod.ZodOptional<zod.ZodAny>;
21
21
  uniqueName: zod.ZodOptional<zod.ZodString>;
22
22
  nullsNotDistinct: zod.ZodOptional<zod.ZodBoolean>;
23
- generated: zod.ZodOptional<zod.ZodObject<{
24
- type: zod.ZodLiteral<"stored">;
25
- as: zod.ZodString;
26
- }, "strip", zod.ZodTypeAny, {
27
- type: "stored";
28
- as: string;
29
- }, {
30
- type: "stored";
31
- as: string;
32
- }>>;
33
- identity: zod.ZodOptional<zod.ZodObject<zod.objectUtil.extendShape<{
34
- name: zod.ZodString;
35
- increment: zod.ZodOptional<zod.ZodString>;
36
- minValue: zod.ZodOptional<zod.ZodString>;
37
- maxValue: zod.ZodOptional<zod.ZodString>;
38
- startWith: zod.ZodOptional<zod.ZodString>;
39
- cache: zod.ZodOptional<zod.ZodString>;
40
- cycle: zod.ZodOptional<zod.ZodBoolean>;
41
- schema: zod.ZodString;
42
- }, {
43
- type: zod.ZodEnum<["always", "byDefault"]>;
44
- }>, "strip", zod.ZodTypeAny, {
45
- name: string;
46
- type: "always" | "byDefault";
47
- schema: string;
48
- increment?: string | undefined;
49
- minValue?: string | undefined;
50
- maxValue?: string | undefined;
51
- startWith?: string | undefined;
52
- cache?: string | undefined;
53
- cycle?: boolean | undefined;
54
- }, {
55
- name: string;
56
- type: "always" | "byDefault";
57
- schema: string;
58
- increment?: string | undefined;
59
- minValue?: string | undefined;
60
- maxValue?: string | undefined;
61
- startWith?: string | undefined;
62
- cache?: string | undefined;
63
- cycle?: boolean | undefined;
64
- }>>;
65
23
  }, "strict", zod.ZodTypeAny, {
66
24
  name: string;
67
25
  type: string;
@@ -69,24 +27,9 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
69
27
  notNull: boolean;
70
28
  isUnique?: any;
71
29
  default?: any;
72
- generated?: {
73
- type: "stored";
74
- as: string;
75
- } | undefined;
76
30
  typeSchema?: string | undefined;
77
31
  uniqueName?: string | undefined;
78
32
  nullsNotDistinct?: boolean | undefined;
79
- identity?: {
80
- name: string;
81
- type: "always" | "byDefault";
82
- schema: string;
83
- increment?: string | undefined;
84
- minValue?: string | undefined;
85
- maxValue?: string | undefined;
86
- startWith?: string | undefined;
87
- cache?: string | undefined;
88
- cycle?: boolean | undefined;
89
- } | undefined;
90
33
  }, {
91
34
  name: string;
92
35
  type: string;
@@ -94,24 +37,9 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
94
37
  notNull: boolean;
95
38
  isUnique?: any;
96
39
  default?: any;
97
- generated?: {
98
- type: "stored";
99
- as: string;
100
- } | undefined;
101
40
  typeSchema?: string | undefined;
102
41
  uniqueName?: string | undefined;
103
42
  nullsNotDistinct?: boolean | undefined;
104
- identity?: {
105
- name: string;
106
- type: "always" | "byDefault";
107
- schema: string;
108
- increment?: string | undefined;
109
- minValue?: string | undefined;
110
- maxValue?: string | undefined;
111
- startWith?: string | undefined;
112
- cache?: string | undefined;
113
- cycle?: boolean | undefined;
114
- } | undefined;
115
43
  }>>;
116
44
  indexes: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
117
45
  name: zod.ZodString;
@@ -228,24 +156,9 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
228
156
  notNull: boolean;
229
157
  isUnique?: any;
230
158
  default?: any;
231
- generated?: {
232
- type: "stored";
233
- as: string;
234
- } | undefined;
235
159
  typeSchema?: string | undefined;
236
160
  uniqueName?: string | undefined;
237
161
  nullsNotDistinct?: boolean | undefined;
238
- identity?: {
239
- name: string;
240
- type: "always" | "byDefault";
241
- schema: string;
242
- increment?: string | undefined;
243
- minValue?: string | undefined;
244
- maxValue?: string | undefined;
245
- startWith?: string | undefined;
246
- cache?: string | undefined;
247
- cycle?: boolean | undefined;
248
- } | undefined;
249
162
  }>;
250
163
  indexes: Record<string, {
251
164
  name: string;
@@ -291,24 +204,9 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
291
204
  notNull: boolean;
292
205
  isUnique?: any;
293
206
  default?: any;
294
- generated?: {
295
- type: "stored";
296
- as: string;
297
- } | undefined;
298
207
  typeSchema?: string | undefined;
299
208
  uniqueName?: string | undefined;
300
209
  nullsNotDistinct?: boolean | undefined;
301
- identity?: {
302
- name: string;
303
- type: "always" | "byDefault";
304
- schema: string;
305
- increment?: string | undefined;
306
- minValue?: string | undefined;
307
- maxValue?: string | undefined;
308
- startWith?: string | undefined;
309
- cache?: string | undefined;
310
- cycle?: boolean | undefined;
311
- } | undefined;
312
210
  }>;
313
211
  indexes: Record<string, {
314
212
  name: string;
@@ -360,34 +258,6 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
360
258
  schema: string;
361
259
  }>>;
362
260
  schemas: zod.ZodRecord<zod.ZodString, zod.ZodString>;
363
- sequences: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
364
- name: zod.ZodString;
365
- increment: zod.ZodOptional<zod.ZodString>;
366
- minValue: zod.ZodOptional<zod.ZodString>;
367
- maxValue: zod.ZodOptional<zod.ZodString>;
368
- startWith: zod.ZodOptional<zod.ZodString>;
369
- cache: zod.ZodOptional<zod.ZodString>;
370
- cycle: zod.ZodOptional<zod.ZodBoolean>;
371
- schema: zod.ZodString;
372
- }, "strict", zod.ZodTypeAny, {
373
- name: string;
374
- schema: string;
375
- increment?: string | undefined;
376
- minValue?: string | undefined;
377
- maxValue?: string | undefined;
378
- startWith?: string | undefined;
379
- cache?: string | undefined;
380
- cycle?: boolean | undefined;
381
- }, {
382
- name: string;
383
- schema: string;
384
- increment?: string | undefined;
385
- minValue?: string | undefined;
386
- maxValue?: string | undefined;
387
- startWith?: string | undefined;
388
- cache?: string | undefined;
389
- cycle?: boolean | undefined;
390
- }>>>;
391
261
  _meta: zod.ZodObject<{
392
262
  schemas: zod.ZodRecord<zod.ZodString, zod.ZodString>;
393
263
  tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;
@@ -459,24 +329,9 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
459
329
  notNull: boolean;
460
330
  isUnique?: any;
461
331
  default?: any;
462
- generated?: {
463
- type: "stored";
464
- as: string;
465
- } | undefined;
466
332
  typeSchema?: string | undefined;
467
333
  uniqueName?: string | undefined;
468
334
  nullsNotDistinct?: boolean | undefined;
469
- identity?: {
470
- name: string;
471
- type: "always" | "byDefault";
472
- schema: string;
473
- increment?: string | undefined;
474
- minValue?: string | undefined;
475
- maxValue?: string | undefined;
476
- startWith?: string | undefined;
477
- cache?: string | undefined;
478
- cycle?: boolean | undefined;
479
- } | undefined;
480
335
  }>;
481
336
  indexes: Record<string, {
482
337
  name: string;
@@ -529,16 +384,6 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
529
384
  values: string[];
530
385
  schema: string;
531
386
  }>;
532
- sequences: Record<string, {
533
- name: string;
534
- schema: string;
535
- increment?: string | undefined;
536
- minValue?: string | undefined;
537
- maxValue?: string | undefined;
538
- startWith?: string | undefined;
539
- cache?: string | undefined;
540
- cycle?: boolean | undefined;
541
- }>;
542
387
  internal?: {
543
388
  tables: Record<string, {
544
389
  columns: Record<string, {
@@ -558,24 +403,9 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
558
403
  notNull: boolean;
559
404
  isUnique?: any;
560
405
  default?: any;
561
- generated?: {
562
- type: "stored";
563
- as: string;
564
- } | undefined;
565
406
  typeSchema?: string | undefined;
566
407
  uniqueName?: string | undefined;
567
408
  nullsNotDistinct?: boolean | undefined;
568
- identity?: {
569
- name: string;
570
- type: "always" | "byDefault";
571
- schema: string;
572
- increment?: string | undefined;
573
- minValue?: string | undefined;
574
- maxValue?: string | undefined;
575
- startWith?: string | undefined;
576
- cache?: string | undefined;
577
- cycle?: boolean | undefined;
578
- } | undefined;
579
409
  }>;
580
410
  indexes: Record<string, {
581
411
  name: string;
@@ -637,16 +467,6 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
637
467
  } | undefined>;
638
468
  } | undefined>;
639
469
  } | undefined;
640
- sequences?: Record<string, {
641
- name: string;
642
- schema: string;
643
- increment?: string | undefined;
644
- minValue?: string | undefined;
645
- maxValue?: string | undefined;
646
- startWith?: string | undefined;
647
- cache?: string | undefined;
648
- cycle?: boolean | undefined;
649
- }> | undefined;
650
470
  }>;
651
471
  type PgSchema = TypeOf<typeof pgSchema>;
652
472
 
@@ -662,16 +482,6 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
662
482
  notNull: zod.ZodBoolean;
663
483
  autoincrement: zod.ZodOptional<zod.ZodBoolean>;
664
484
  default: zod.ZodOptional<zod.ZodAny>;
665
- generated: zod.ZodOptional<zod.ZodObject<{
666
- type: zod.ZodEnum<["stored", "virtual"]>;
667
- as: zod.ZodString;
668
- }, "strip", zod.ZodTypeAny, {
669
- type: "stored" | "virtual";
670
- as: string;
671
- }, {
672
- type: "stored" | "virtual";
673
- as: string;
674
- }>>;
675
485
  }, "strict", zod.ZodTypeAny, {
676
486
  name: string;
677
487
  type: string;
@@ -679,10 +489,6 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
679
489
  notNull: boolean;
680
490
  default?: any;
681
491
  autoincrement?: boolean | undefined;
682
- generated?: {
683
- type: "stored" | "virtual";
684
- as: string;
685
- } | undefined;
686
492
  }, {
687
493
  name: string;
688
494
  type: string;
@@ -690,10 +496,6 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
690
496
  notNull: boolean;
691
497
  default?: any;
692
498
  autoincrement?: boolean | undefined;
693
- generated?: {
694
- type: "stored" | "virtual";
695
- as: string;
696
- } | undefined;
697
499
  }>>;
698
500
  indexes: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
699
501
  name: zod.ZodString;
@@ -765,10 +567,6 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
765
567
  notNull: boolean;
766
568
  default?: any;
767
569
  autoincrement?: boolean | undefined;
768
- generated?: {
769
- type: "stored" | "virtual";
770
- as: string;
771
- } | undefined;
772
570
  }>;
773
571
  indexes: Record<string, {
774
572
  name: string;
@@ -802,10 +600,6 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
802
600
  notNull: boolean;
803
601
  default?: any;
804
602
  autoincrement?: boolean | undefined;
805
- generated?: {
806
- type: "stored" | "virtual";
807
- as: string;
808
- } | undefined;
809
603
  }>;
810
604
  indexes: Record<string, {
811
605
  name: string;
@@ -886,10 +680,6 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
886
680
  notNull: boolean;
887
681
  default?: any;
888
682
  autoincrement?: boolean | undefined;
889
- generated?: {
890
- type: "stored" | "virtual";
891
- as: string;
892
- } | undefined;
893
683
  }>;
894
684
  indexes: Record<string, {
895
685
  name: string;
@@ -941,10 +731,6 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
941
731
  notNull: boolean;
942
732
  default?: any;
943
733
  autoincrement?: boolean | undefined;
944
- generated?: {
945
- type: "stored" | "virtual";
946
- as: string;
947
- } | undefined;
948
734
  }>;
949
735
  indexes: Record<string, {
950
736
  name: string;
@@ -1002,16 +788,6 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1002
788
  autoincrement: zod.ZodOptional<zod.ZodBoolean>;
1003
789
  default: zod.ZodOptional<zod.ZodAny>;
1004
790
  onUpdate: zod.ZodOptional<zod.ZodAny>;
1005
- generated: zod.ZodOptional<zod.ZodObject<{
1006
- type: zod.ZodEnum<["stored", "virtual"]>;
1007
- as: zod.ZodString;
1008
- }, "strip", zod.ZodTypeAny, {
1009
- type: "stored" | "virtual";
1010
- as: string;
1011
- }, {
1012
- type: "stored" | "virtual";
1013
- as: string;
1014
- }>>;
1015
791
  }, "strict", zod.ZodTypeAny, {
1016
792
  name: string;
1017
793
  type: string;
@@ -1020,10 +796,6 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1020
796
  default?: any;
1021
797
  onUpdate?: any;
1022
798
  autoincrement?: boolean | undefined;
1023
- generated?: {
1024
- type: "stored" | "virtual";
1025
- as: string;
1026
- } | undefined;
1027
799
  }, {
1028
800
  name: string;
1029
801
  type: string;
@@ -1032,10 +804,6 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1032
804
  default?: any;
1033
805
  onUpdate?: any;
1034
806
  autoincrement?: boolean | undefined;
1035
- generated?: {
1036
- type: "stored" | "virtual";
1037
- as: string;
1038
- } | undefined;
1039
807
  }>>;
1040
808
  indexes: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1041
809
  name: zod.ZodString;
@@ -1050,14 +818,14 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1050
818
  isUnique: boolean;
1051
819
  using?: "btree" | "hash" | undefined;
1052
820
  algorithm?: "default" | "inplace" | "copy" | undefined;
1053
- lock?: "none" | "default" | "shared" | "exclusive" | undefined;
821
+ lock?: "default" | "none" | "shared" | "exclusive" | undefined;
1054
822
  }, {
1055
823
  name: string;
1056
824
  columns: string[];
1057
825
  isUnique: boolean;
1058
826
  using?: "btree" | "hash" | undefined;
1059
827
  algorithm?: "default" | "inplace" | "copy" | undefined;
1060
- lock?: "none" | "default" | "shared" | "exclusive" | undefined;
828
+ lock?: "default" | "none" | "shared" | "exclusive" | undefined;
1061
829
  }>>;
1062
830
  foreignKeys: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1063
831
  name: zod.ZodString;
@@ -1114,10 +882,6 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1114
882
  default?: any;
1115
883
  onUpdate?: any;
1116
884
  autoincrement?: boolean | undefined;
1117
- generated?: {
1118
- type: "stored" | "virtual";
1119
- as: string;
1120
- } | undefined;
1121
885
  }>;
1122
886
  indexes: Record<string, {
1123
887
  name: string;
@@ -1125,7 +889,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1125
889
  isUnique: boolean;
1126
890
  using?: "btree" | "hash" | undefined;
1127
891
  algorithm?: "default" | "inplace" | "copy" | undefined;
1128
- lock?: "none" | "default" | "shared" | "exclusive" | undefined;
892
+ lock?: "default" | "none" | "shared" | "exclusive" | undefined;
1129
893
  }>;
1130
894
  foreignKeys: Record<string, {
1131
895
  name: string;
@@ -1154,10 +918,6 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1154
918
  default?: any;
1155
919
  onUpdate?: any;
1156
920
  autoincrement?: boolean | undefined;
1157
- generated?: {
1158
- type: "stored" | "virtual";
1159
- as: string;
1160
- } | undefined;
1161
921
  }>;
1162
922
  indexes: Record<string, {
1163
923
  name: string;
@@ -1165,7 +925,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1165
925
  isUnique: boolean;
1166
926
  using?: "btree" | "hash" | undefined;
1167
927
  algorithm?: "default" | "inplace" | "copy" | undefined;
1168
- lock?: "none" | "default" | "shared" | "exclusive" | undefined;
928
+ lock?: "default" | "none" | "shared" | "exclusive" | undefined;
1169
929
  }>;
1170
930
  foreignKeys: Record<string, {
1171
931
  name: string;
@@ -1267,10 +1027,6 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1267
1027
  default?: any;
1268
1028
  onUpdate?: any;
1269
1029
  autoincrement?: boolean | undefined;
1270
- generated?: {
1271
- type: "stored" | "virtual";
1272
- as: string;
1273
- } | undefined;
1274
1030
  }>;
1275
1031
  indexes: Record<string, {
1276
1032
  name: string;
@@ -1278,7 +1034,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1278
1034
  isUnique: boolean;
1279
1035
  using?: "btree" | "hash" | undefined;
1280
1036
  algorithm?: "default" | "inplace" | "copy" | undefined;
1281
- lock?: "none" | "default" | "shared" | "exclusive" | undefined;
1037
+ lock?: "default" | "none" | "shared" | "exclusive" | undefined;
1282
1038
  }>;
1283
1039
  foreignKeys: Record<string, {
1284
1040
  name: string;
@@ -1329,10 +1085,6 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1329
1085
  default?: any;
1330
1086
  onUpdate?: any;
1331
1087
  autoincrement?: boolean | undefined;
1332
- generated?: {
1333
- type: "stored" | "virtual";
1334
- as: string;
1335
- } | undefined;
1336
1088
  }>;
1337
1089
  indexes: Record<string, {
1338
1090
  name: string;
@@ -1340,7 +1092,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1340
1092
  isUnique: boolean;
1341
1093
  using?: "btree" | "hash" | undefined;
1342
1094
  algorithm?: "default" | "inplace" | "copy" | undefined;
1343
- lock?: "none" | "default" | "shared" | "exclusive" | undefined;
1095
+ lock?: "default" | "none" | "shared" | "exclusive" | undefined;
1344
1096
  }>;
1345
1097
  foreignKeys: Record<string, {
1346
1098
  name: string;
@@ -1426,21 +1178,6 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
1426
1178
  isUnique?: any;
1427
1179
  uniqueName?: string | undefined;
1428
1180
  nullsNotDistinct?: boolean | undefined;
1429
- generated?: {
1430
- type: "stored";
1431
- as: string;
1432
- } | undefined;
1433
- identity?: {
1434
- type: "always" | "byDefault";
1435
- name: string;
1436
- schema: string;
1437
- increment?: string | undefined;
1438
- minValue?: string | undefined;
1439
- maxValue?: string | undefined;
1440
- startWith?: string | undefined;
1441
- cache?: string | undefined;
1442
- cycle?: boolean | undefined;
1443
- } | undefined;
1444
1181
  }>;
1445
1182
  indexes: Record<string, {
1446
1183
  name: string;