controlresell 0.0.29 → 0.0.31
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.
|
@@ -8,57 +8,46 @@ export declare const ItemSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
8
8
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
images: z.ZodArray<z.ZodString, "many">;
|
|
10
10
|
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
11
|
-
id: z.ZodString;
|
|
12
|
-
parentId: z.ZodNumber;
|
|
13
11
|
fileId: z.ZodString;
|
|
14
12
|
itemId: z.ZodNumber;
|
|
15
13
|
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
16
|
-
parentId: z.ZodNumber;
|
|
17
14
|
id: z.ZodString;
|
|
18
15
|
userId: z.ZodNumber;
|
|
19
16
|
path: z.ZodString;
|
|
20
17
|
signedUrl: z.ZodString;
|
|
21
|
-
createdAt: z.
|
|
18
|
+
createdAt: z.ZodDate;
|
|
22
19
|
}, "strip", z.ZodTypeAny, {
|
|
23
20
|
path: string;
|
|
24
21
|
id: string;
|
|
25
22
|
userId: number;
|
|
26
|
-
|
|
23
|
+
createdAt: Date;
|
|
27
24
|
signedUrl: string;
|
|
28
|
-
createdAt?: unknown;
|
|
29
25
|
}, {
|
|
30
26
|
path: string;
|
|
31
27
|
id: string;
|
|
32
28
|
userId: number;
|
|
33
|
-
|
|
29
|
+
createdAt: Date;
|
|
34
30
|
signedUrl: string;
|
|
35
|
-
createdAt?: unknown;
|
|
36
31
|
}>>>;
|
|
37
32
|
}, "strip", z.ZodTypeAny, {
|
|
38
|
-
id: string;
|
|
39
33
|
itemId: number;
|
|
40
|
-
parentId: number;
|
|
41
34
|
fileId: string;
|
|
42
35
|
file?: {
|
|
43
36
|
path: string;
|
|
44
37
|
id: string;
|
|
45
38
|
userId: number;
|
|
46
|
-
|
|
39
|
+
createdAt: Date;
|
|
47
40
|
signedUrl: string;
|
|
48
|
-
createdAt?: unknown;
|
|
49
41
|
} | null | undefined;
|
|
50
42
|
}, {
|
|
51
|
-
id: string;
|
|
52
43
|
itemId: number;
|
|
53
|
-
parentId: number;
|
|
54
44
|
fileId: string;
|
|
55
45
|
file?: {
|
|
56
46
|
path: string;
|
|
57
47
|
id: string;
|
|
58
48
|
userId: number;
|
|
59
|
-
|
|
49
|
+
createdAt: Date;
|
|
60
50
|
signedUrl: string;
|
|
61
|
-
createdAt?: unknown;
|
|
62
51
|
} | null | undefined;
|
|
63
52
|
}>, "many">>>;
|
|
64
53
|
categoryId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -484,17 +473,14 @@ export declare const ItemSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
484
473
|
packageSizeId?: number | null | undefined;
|
|
485
474
|
sizeId?: number | null | undefined;
|
|
486
475
|
files?: {
|
|
487
|
-
id: string;
|
|
488
476
|
itemId: number;
|
|
489
|
-
parentId: number;
|
|
490
477
|
fileId: string;
|
|
491
478
|
file?: {
|
|
492
479
|
path: string;
|
|
493
480
|
id: string;
|
|
494
481
|
userId: number;
|
|
495
|
-
|
|
482
|
+
createdAt: Date;
|
|
496
483
|
signedUrl: string;
|
|
497
|
-
createdAt?: unknown;
|
|
498
484
|
} | null | undefined;
|
|
499
485
|
}[] | null | undefined;
|
|
500
486
|
categoryId?: number | null | undefined;
|
|
@@ -607,17 +593,14 @@ export declare const ItemSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
607
593
|
packageSizeId?: number | null | undefined;
|
|
608
594
|
sizeId?: number | null | undefined;
|
|
609
595
|
files?: {
|
|
610
|
-
id: string;
|
|
611
596
|
itemId: number;
|
|
612
|
-
parentId: number;
|
|
613
597
|
fileId: string;
|
|
614
598
|
file?: {
|
|
615
599
|
path: string;
|
|
616
600
|
id: string;
|
|
617
601
|
userId: number;
|
|
618
|
-
|
|
602
|
+
createdAt: Date;
|
|
619
603
|
signedUrl: string;
|
|
620
|
-
createdAt?: unknown;
|
|
621
604
|
} | null | undefined;
|
|
622
605
|
}[] | null | undefined;
|
|
623
606
|
categoryId?: number | null | undefined;
|
|
@@ -678,17 +661,14 @@ export declare const ItemSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
678
661
|
packageSizeId?: number | null | undefined;
|
|
679
662
|
sizeId?: number | null | undefined;
|
|
680
663
|
files?: {
|
|
681
|
-
id: string;
|
|
682
664
|
itemId: number;
|
|
683
|
-
parentId: number;
|
|
684
665
|
fileId: string;
|
|
685
666
|
file?: {
|
|
686
667
|
path: string;
|
|
687
668
|
id: string;
|
|
688
669
|
userId: number;
|
|
689
|
-
|
|
670
|
+
createdAt: Date;
|
|
690
671
|
signedUrl: string;
|
|
691
|
-
createdAt?: unknown;
|
|
692
672
|
} | null | undefined;
|
|
693
673
|
}[] | null | undefined;
|
|
694
674
|
categoryId?: number | null | undefined;
|
|
@@ -808,17 +788,14 @@ export declare const ItemSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
808
788
|
packageSizeId?: number | null | undefined;
|
|
809
789
|
sizeId?: number | null | undefined;
|
|
810
790
|
files?: {
|
|
811
|
-
id: string;
|
|
812
791
|
itemId: number;
|
|
813
|
-
parentId: number;
|
|
814
792
|
fileId: string;
|
|
815
793
|
file?: {
|
|
816
794
|
path: string;
|
|
817
795
|
id: string;
|
|
818
796
|
userId: number;
|
|
819
|
-
|
|
797
|
+
createdAt: Date;
|
|
820
798
|
signedUrl: string;
|
|
821
|
-
createdAt?: unknown;
|
|
822
799
|
} | null | undefined;
|
|
823
800
|
}[] | null | undefined;
|
|
824
801
|
categoryId?: number | null | undefined;
|
|
@@ -1034,57 +1011,46 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
1034
1011
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1035
1012
|
images: z.ZodArray<z.ZodString, "many">;
|
|
1036
1013
|
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1037
|
-
id: z.ZodString;
|
|
1038
|
-
parentId: z.ZodNumber;
|
|
1039
1014
|
fileId: z.ZodString;
|
|
1040
1015
|
itemId: z.ZodNumber;
|
|
1041
1016
|
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1042
|
-
parentId: z.ZodNumber;
|
|
1043
1017
|
id: z.ZodString;
|
|
1044
1018
|
userId: z.ZodNumber;
|
|
1045
1019
|
path: z.ZodString;
|
|
1046
1020
|
signedUrl: z.ZodString;
|
|
1047
|
-
createdAt: z.
|
|
1021
|
+
createdAt: z.ZodDate;
|
|
1048
1022
|
}, "strip", z.ZodTypeAny, {
|
|
1049
1023
|
path: string;
|
|
1050
1024
|
id: string;
|
|
1051
1025
|
userId: number;
|
|
1052
|
-
|
|
1026
|
+
createdAt: Date;
|
|
1053
1027
|
signedUrl: string;
|
|
1054
|
-
createdAt?: unknown;
|
|
1055
1028
|
}, {
|
|
1056
1029
|
path: string;
|
|
1057
1030
|
id: string;
|
|
1058
1031
|
userId: number;
|
|
1059
|
-
|
|
1032
|
+
createdAt: Date;
|
|
1060
1033
|
signedUrl: string;
|
|
1061
|
-
createdAt?: unknown;
|
|
1062
1034
|
}>>>;
|
|
1063
1035
|
}, "strip", z.ZodTypeAny, {
|
|
1064
|
-
id: string;
|
|
1065
1036
|
itemId: number;
|
|
1066
|
-
parentId: number;
|
|
1067
1037
|
fileId: string;
|
|
1068
1038
|
file?: {
|
|
1069
1039
|
path: string;
|
|
1070
1040
|
id: string;
|
|
1071
1041
|
userId: number;
|
|
1072
|
-
|
|
1042
|
+
createdAt: Date;
|
|
1073
1043
|
signedUrl: string;
|
|
1074
|
-
createdAt?: unknown;
|
|
1075
1044
|
} | null | undefined;
|
|
1076
1045
|
}, {
|
|
1077
|
-
id: string;
|
|
1078
1046
|
itemId: number;
|
|
1079
|
-
parentId: number;
|
|
1080
1047
|
fileId: string;
|
|
1081
1048
|
file?: {
|
|
1082
1049
|
path: string;
|
|
1083
1050
|
id: string;
|
|
1084
1051
|
userId: number;
|
|
1085
|
-
|
|
1052
|
+
createdAt: Date;
|
|
1086
1053
|
signedUrl: string;
|
|
1087
|
-
createdAt?: unknown;
|
|
1088
1054
|
} | null | undefined;
|
|
1089
1055
|
}>, "many">>>;
|
|
1090
1056
|
categoryId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1510,17 +1476,14 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
1510
1476
|
packageSizeId?: number | null | undefined;
|
|
1511
1477
|
sizeId?: number | null | undefined;
|
|
1512
1478
|
files?: {
|
|
1513
|
-
id: string;
|
|
1514
1479
|
itemId: number;
|
|
1515
|
-
parentId: number;
|
|
1516
1480
|
fileId: string;
|
|
1517
1481
|
file?: {
|
|
1518
1482
|
path: string;
|
|
1519
1483
|
id: string;
|
|
1520
1484
|
userId: number;
|
|
1521
|
-
|
|
1485
|
+
createdAt: Date;
|
|
1522
1486
|
signedUrl: string;
|
|
1523
|
-
createdAt?: unknown;
|
|
1524
1487
|
} | null | undefined;
|
|
1525
1488
|
}[] | null | undefined;
|
|
1526
1489
|
categoryId?: number | null | undefined;
|
|
@@ -1633,17 +1596,14 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
1633
1596
|
packageSizeId?: number | null | undefined;
|
|
1634
1597
|
sizeId?: number | null | undefined;
|
|
1635
1598
|
files?: {
|
|
1636
|
-
id: string;
|
|
1637
1599
|
itemId: number;
|
|
1638
|
-
parentId: number;
|
|
1639
1600
|
fileId: string;
|
|
1640
1601
|
file?: {
|
|
1641
1602
|
path: string;
|
|
1642
1603
|
id: string;
|
|
1643
1604
|
userId: number;
|
|
1644
|
-
|
|
1605
|
+
createdAt: Date;
|
|
1645
1606
|
signedUrl: string;
|
|
1646
|
-
createdAt?: unknown;
|
|
1647
1607
|
} | null | undefined;
|
|
1648
1608
|
}[] | null | undefined;
|
|
1649
1609
|
categoryId?: number | null | undefined;
|
|
@@ -1704,17 +1664,14 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
1704
1664
|
packageSizeId?: number | null | undefined;
|
|
1705
1665
|
sizeId?: number | null | undefined;
|
|
1706
1666
|
files?: {
|
|
1707
|
-
id: string;
|
|
1708
1667
|
itemId: number;
|
|
1709
|
-
parentId: number;
|
|
1710
1668
|
fileId: string;
|
|
1711
1669
|
file?: {
|
|
1712
1670
|
path: string;
|
|
1713
1671
|
id: string;
|
|
1714
1672
|
userId: number;
|
|
1715
|
-
|
|
1673
|
+
createdAt: Date;
|
|
1716
1674
|
signedUrl: string;
|
|
1717
|
-
createdAt?: unknown;
|
|
1718
1675
|
} | null | undefined;
|
|
1719
1676
|
}[] | null | undefined;
|
|
1720
1677
|
categoryId?: number | null | undefined;
|
|
@@ -1834,17 +1791,14 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
1834
1791
|
packageSizeId?: number | null | undefined;
|
|
1835
1792
|
sizeId?: number | null | undefined;
|
|
1836
1793
|
files?: {
|
|
1837
|
-
id: string;
|
|
1838
1794
|
itemId: number;
|
|
1839
|
-
parentId: number;
|
|
1840
1795
|
fileId: string;
|
|
1841
1796
|
file?: {
|
|
1842
1797
|
path: string;
|
|
1843
1798
|
id: string;
|
|
1844
1799
|
userId: number;
|
|
1845
|
-
|
|
1800
|
+
createdAt: Date;
|
|
1846
1801
|
signedUrl: string;
|
|
1847
|
-
createdAt?: unknown;
|
|
1848
1802
|
} | null | undefined;
|
|
1849
1803
|
}[] | null | undefined;
|
|
1850
1804
|
categoryId?: number | null | undefined;
|
|
@@ -1987,17 +1941,14 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
1987
1941
|
packageSizeId?: number | null | undefined;
|
|
1988
1942
|
sizeId?: number | null | undefined;
|
|
1989
1943
|
files?: {
|
|
1990
|
-
id: string;
|
|
1991
1944
|
itemId: number;
|
|
1992
|
-
parentId: number;
|
|
1993
1945
|
fileId: string;
|
|
1994
1946
|
file?: {
|
|
1995
1947
|
path: string;
|
|
1996
1948
|
id: string;
|
|
1997
1949
|
userId: number;
|
|
1998
|
-
|
|
1950
|
+
createdAt: Date;
|
|
1999
1951
|
signedUrl: string;
|
|
2000
|
-
createdAt?: unknown;
|
|
2001
1952
|
} | null | undefined;
|
|
2002
1953
|
}[] | null | undefined;
|
|
2003
1954
|
categoryId?: number | null | undefined;
|
|
@@ -2115,57 +2066,46 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
2115
2066
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2116
2067
|
images: z.ZodArray<z.ZodString, "many">;
|
|
2117
2068
|
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2118
|
-
id: z.ZodString;
|
|
2119
|
-
parentId: z.ZodNumber;
|
|
2120
2069
|
fileId: z.ZodString;
|
|
2121
2070
|
itemId: z.ZodNumber;
|
|
2122
2071
|
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2123
|
-
parentId: z.ZodNumber;
|
|
2124
2072
|
id: z.ZodString;
|
|
2125
2073
|
userId: z.ZodNumber;
|
|
2126
2074
|
path: z.ZodString;
|
|
2127
2075
|
signedUrl: z.ZodString;
|
|
2128
|
-
createdAt: z.
|
|
2076
|
+
createdAt: z.ZodDate;
|
|
2129
2077
|
}, "strip", z.ZodTypeAny, {
|
|
2130
2078
|
path: string;
|
|
2131
2079
|
id: string;
|
|
2132
2080
|
userId: number;
|
|
2133
|
-
|
|
2081
|
+
createdAt: Date;
|
|
2134
2082
|
signedUrl: string;
|
|
2135
|
-
createdAt?: unknown;
|
|
2136
2083
|
}, {
|
|
2137
2084
|
path: string;
|
|
2138
2085
|
id: string;
|
|
2139
2086
|
userId: number;
|
|
2140
|
-
|
|
2087
|
+
createdAt: Date;
|
|
2141
2088
|
signedUrl: string;
|
|
2142
|
-
createdAt?: unknown;
|
|
2143
2089
|
}>>>;
|
|
2144
2090
|
}, "strip", z.ZodTypeAny, {
|
|
2145
|
-
id: string;
|
|
2146
2091
|
itemId: number;
|
|
2147
|
-
parentId: number;
|
|
2148
2092
|
fileId: string;
|
|
2149
2093
|
file?: {
|
|
2150
2094
|
path: string;
|
|
2151
2095
|
id: string;
|
|
2152
2096
|
userId: number;
|
|
2153
|
-
|
|
2097
|
+
createdAt: Date;
|
|
2154
2098
|
signedUrl: string;
|
|
2155
|
-
createdAt?: unknown;
|
|
2156
2099
|
} | null | undefined;
|
|
2157
2100
|
}, {
|
|
2158
|
-
id: string;
|
|
2159
2101
|
itemId: number;
|
|
2160
|
-
parentId: number;
|
|
2161
2102
|
fileId: string;
|
|
2162
2103
|
file?: {
|
|
2163
2104
|
path: string;
|
|
2164
2105
|
id: string;
|
|
2165
2106
|
userId: number;
|
|
2166
|
-
|
|
2107
|
+
createdAt: Date;
|
|
2167
2108
|
signedUrl: string;
|
|
2168
|
-
createdAt?: unknown;
|
|
2169
2109
|
} | null | undefined;
|
|
2170
2110
|
}>, "many">>>;
|
|
2171
2111
|
categoryId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -2591,17 +2531,14 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
2591
2531
|
packageSizeId?: number | null | undefined;
|
|
2592
2532
|
sizeId?: number | null | undefined;
|
|
2593
2533
|
files?: {
|
|
2594
|
-
id: string;
|
|
2595
2534
|
itemId: number;
|
|
2596
|
-
parentId: number;
|
|
2597
2535
|
fileId: string;
|
|
2598
2536
|
file?: {
|
|
2599
2537
|
path: string;
|
|
2600
2538
|
id: string;
|
|
2601
2539
|
userId: number;
|
|
2602
|
-
|
|
2540
|
+
createdAt: Date;
|
|
2603
2541
|
signedUrl: string;
|
|
2604
|
-
createdAt?: unknown;
|
|
2605
2542
|
} | null | undefined;
|
|
2606
2543
|
}[] | null | undefined;
|
|
2607
2544
|
categoryId?: number | null | undefined;
|
|
@@ -2714,17 +2651,14 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
2714
2651
|
packageSizeId?: number | null | undefined;
|
|
2715
2652
|
sizeId?: number | null | undefined;
|
|
2716
2653
|
files?: {
|
|
2717
|
-
id: string;
|
|
2718
2654
|
itemId: number;
|
|
2719
|
-
parentId: number;
|
|
2720
2655
|
fileId: string;
|
|
2721
2656
|
file?: {
|
|
2722
2657
|
path: string;
|
|
2723
2658
|
id: string;
|
|
2724
2659
|
userId: number;
|
|
2725
|
-
|
|
2660
|
+
createdAt: Date;
|
|
2726
2661
|
signedUrl: string;
|
|
2727
|
-
createdAt?: unknown;
|
|
2728
2662
|
} | null | undefined;
|
|
2729
2663
|
}[] | null | undefined;
|
|
2730
2664
|
categoryId?: number | null | undefined;
|
|
@@ -2785,17 +2719,14 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
2785
2719
|
packageSizeId?: number | null | undefined;
|
|
2786
2720
|
sizeId?: number | null | undefined;
|
|
2787
2721
|
files?: {
|
|
2788
|
-
id: string;
|
|
2789
2722
|
itemId: number;
|
|
2790
|
-
parentId: number;
|
|
2791
2723
|
fileId: string;
|
|
2792
2724
|
file?: {
|
|
2793
2725
|
path: string;
|
|
2794
2726
|
id: string;
|
|
2795
2727
|
userId: number;
|
|
2796
|
-
|
|
2728
|
+
createdAt: Date;
|
|
2797
2729
|
signedUrl: string;
|
|
2798
|
-
createdAt?: unknown;
|
|
2799
2730
|
} | null | undefined;
|
|
2800
2731
|
}[] | null | undefined;
|
|
2801
2732
|
categoryId?: number | null | undefined;
|
|
@@ -2915,17 +2846,14 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
2915
2846
|
packageSizeId?: number | null | undefined;
|
|
2916
2847
|
sizeId?: number | null | undefined;
|
|
2917
2848
|
files?: {
|
|
2918
|
-
id: string;
|
|
2919
2849
|
itemId: number;
|
|
2920
|
-
parentId: number;
|
|
2921
2850
|
fileId: string;
|
|
2922
2851
|
file?: {
|
|
2923
2852
|
path: string;
|
|
2924
2853
|
id: string;
|
|
2925
2854
|
userId: number;
|
|
2926
|
-
|
|
2855
|
+
createdAt: Date;
|
|
2927
2856
|
signedUrl: string;
|
|
2928
|
-
createdAt?: unknown;
|
|
2929
2857
|
} | null | undefined;
|
|
2930
2858
|
}[] | null | undefined;
|
|
2931
2859
|
categoryId?: number | null | undefined;
|
|
@@ -3073,17 +3001,14 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
3073
3001
|
packageSizeId?: number | null | undefined;
|
|
3074
3002
|
sizeId?: number | null | undefined;
|
|
3075
3003
|
files?: {
|
|
3076
|
-
id: string;
|
|
3077
3004
|
itemId: number;
|
|
3078
|
-
parentId: number;
|
|
3079
3005
|
fileId: string;
|
|
3080
3006
|
file?: {
|
|
3081
3007
|
path: string;
|
|
3082
3008
|
id: string;
|
|
3083
3009
|
userId: number;
|
|
3084
|
-
|
|
3010
|
+
createdAt: Date;
|
|
3085
3011
|
signedUrl: string;
|
|
3086
|
-
createdAt?: unknown;
|
|
3087
3012
|
} | null | undefined;
|
|
3088
3013
|
}[] | null | undefined;
|
|
3089
3014
|
categoryId?: number | null | undefined;
|
|
@@ -3318,57 +3243,46 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
3318
3243
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3319
3244
|
images: z.ZodArray<z.ZodString, "many">;
|
|
3320
3245
|
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3321
|
-
id: z.ZodString;
|
|
3322
|
-
parentId: z.ZodNumber;
|
|
3323
3246
|
fileId: z.ZodString;
|
|
3324
3247
|
itemId: z.ZodNumber;
|
|
3325
3248
|
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3326
|
-
parentId: z.ZodNumber;
|
|
3327
3249
|
id: z.ZodString;
|
|
3328
3250
|
userId: z.ZodNumber;
|
|
3329
3251
|
path: z.ZodString;
|
|
3330
3252
|
signedUrl: z.ZodString;
|
|
3331
|
-
createdAt: z.
|
|
3253
|
+
createdAt: z.ZodDate;
|
|
3332
3254
|
}, "strip", z.ZodTypeAny, {
|
|
3333
3255
|
path: string;
|
|
3334
3256
|
id: string;
|
|
3335
3257
|
userId: number;
|
|
3336
|
-
|
|
3258
|
+
createdAt: Date;
|
|
3337
3259
|
signedUrl: string;
|
|
3338
|
-
createdAt?: unknown;
|
|
3339
3260
|
}, {
|
|
3340
3261
|
path: string;
|
|
3341
3262
|
id: string;
|
|
3342
3263
|
userId: number;
|
|
3343
|
-
|
|
3264
|
+
createdAt: Date;
|
|
3344
3265
|
signedUrl: string;
|
|
3345
|
-
createdAt?: unknown;
|
|
3346
3266
|
}>>>;
|
|
3347
3267
|
}, "strip", z.ZodTypeAny, {
|
|
3348
|
-
id: string;
|
|
3349
3268
|
itemId: number;
|
|
3350
|
-
parentId: number;
|
|
3351
3269
|
fileId: string;
|
|
3352
3270
|
file?: {
|
|
3353
3271
|
path: string;
|
|
3354
3272
|
id: string;
|
|
3355
3273
|
userId: number;
|
|
3356
|
-
|
|
3274
|
+
createdAt: Date;
|
|
3357
3275
|
signedUrl: string;
|
|
3358
|
-
createdAt?: unknown;
|
|
3359
3276
|
} | null | undefined;
|
|
3360
3277
|
}, {
|
|
3361
|
-
id: string;
|
|
3362
3278
|
itemId: number;
|
|
3363
|
-
parentId: number;
|
|
3364
3279
|
fileId: string;
|
|
3365
3280
|
file?: {
|
|
3366
3281
|
path: string;
|
|
3367
3282
|
id: string;
|
|
3368
3283
|
userId: number;
|
|
3369
|
-
|
|
3284
|
+
createdAt: Date;
|
|
3370
3285
|
signedUrl: string;
|
|
3371
|
-
createdAt?: unknown;
|
|
3372
3286
|
} | null | undefined;
|
|
3373
3287
|
}>, "many">>>;
|
|
3374
3288
|
categoryId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -3794,17 +3708,14 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
3794
3708
|
packageSizeId?: number | null | undefined;
|
|
3795
3709
|
sizeId?: number | null | undefined;
|
|
3796
3710
|
files?: {
|
|
3797
|
-
id: string;
|
|
3798
3711
|
itemId: number;
|
|
3799
|
-
parentId: number;
|
|
3800
3712
|
fileId: string;
|
|
3801
3713
|
file?: {
|
|
3802
3714
|
path: string;
|
|
3803
3715
|
id: string;
|
|
3804
3716
|
userId: number;
|
|
3805
|
-
|
|
3717
|
+
createdAt: Date;
|
|
3806
3718
|
signedUrl: string;
|
|
3807
|
-
createdAt?: unknown;
|
|
3808
3719
|
} | null | undefined;
|
|
3809
3720
|
}[] | null | undefined;
|
|
3810
3721
|
categoryId?: number | null | undefined;
|
|
@@ -3917,17 +3828,14 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
3917
3828
|
packageSizeId?: number | null | undefined;
|
|
3918
3829
|
sizeId?: number | null | undefined;
|
|
3919
3830
|
files?: {
|
|
3920
|
-
id: string;
|
|
3921
3831
|
itemId: number;
|
|
3922
|
-
parentId: number;
|
|
3923
3832
|
fileId: string;
|
|
3924
3833
|
file?: {
|
|
3925
3834
|
path: string;
|
|
3926
3835
|
id: string;
|
|
3927
3836
|
userId: number;
|
|
3928
|
-
|
|
3837
|
+
createdAt: Date;
|
|
3929
3838
|
signedUrl: string;
|
|
3930
|
-
createdAt?: unknown;
|
|
3931
3839
|
} | null | undefined;
|
|
3932
3840
|
}[] | null | undefined;
|
|
3933
3841
|
categoryId?: number | null | undefined;
|
|
@@ -3988,17 +3896,14 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
3988
3896
|
packageSizeId?: number | null | undefined;
|
|
3989
3897
|
sizeId?: number | null | undefined;
|
|
3990
3898
|
files?: {
|
|
3991
|
-
id: string;
|
|
3992
3899
|
itemId: number;
|
|
3993
|
-
parentId: number;
|
|
3994
3900
|
fileId: string;
|
|
3995
3901
|
file?: {
|
|
3996
3902
|
path: string;
|
|
3997
3903
|
id: string;
|
|
3998
3904
|
userId: number;
|
|
3999
|
-
|
|
3905
|
+
createdAt: Date;
|
|
4000
3906
|
signedUrl: string;
|
|
4001
|
-
createdAt?: unknown;
|
|
4002
3907
|
} | null | undefined;
|
|
4003
3908
|
}[] | null | undefined;
|
|
4004
3909
|
categoryId?: number | null | undefined;
|
|
@@ -4118,17 +4023,14 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
4118
4023
|
packageSizeId?: number | null | undefined;
|
|
4119
4024
|
sizeId?: number | null | undefined;
|
|
4120
4025
|
files?: {
|
|
4121
|
-
id: string;
|
|
4122
4026
|
itemId: number;
|
|
4123
|
-
parentId: number;
|
|
4124
4027
|
fileId: string;
|
|
4125
4028
|
file?: {
|
|
4126
4029
|
path: string;
|
|
4127
4030
|
id: string;
|
|
4128
4031
|
userId: number;
|
|
4129
|
-
|
|
4032
|
+
createdAt: Date;
|
|
4130
4033
|
signedUrl: string;
|
|
4131
|
-
createdAt?: unknown;
|
|
4132
4034
|
} | null | undefined;
|
|
4133
4035
|
}[] | null | undefined;
|
|
4134
4036
|
categoryId?: number | null | undefined;
|
|
@@ -4324,17 +4226,14 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
4324
4226
|
packageSizeId?: number | null | undefined;
|
|
4325
4227
|
sizeId?: number | null | undefined;
|
|
4326
4228
|
files?: {
|
|
4327
|
-
id: string;
|
|
4328
4229
|
itemId: number;
|
|
4329
|
-
parentId: number;
|
|
4330
4230
|
fileId: string;
|
|
4331
4231
|
file?: {
|
|
4332
4232
|
path: string;
|
|
4333
4233
|
id: string;
|
|
4334
4234
|
userId: number;
|
|
4335
|
-
|
|
4235
|
+
createdAt: Date;
|
|
4336
4236
|
signedUrl: string;
|
|
4337
|
-
createdAt?: unknown;
|
|
4338
4237
|
} | null | undefined;
|
|
4339
4238
|
}[] | null | undefined;
|
|
4340
4239
|
categoryId?: number | null | undefined;
|
|
@@ -1,56 +1,45 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const ItemFileSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
parentId: z.ZodNumber;
|
|
5
3
|
fileId: z.ZodString;
|
|
6
4
|
itemId: z.ZodNumber;
|
|
7
5
|
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
8
|
-
parentId: z.ZodNumber;
|
|
9
6
|
id: z.ZodString;
|
|
10
7
|
userId: z.ZodNumber;
|
|
11
8
|
path: z.ZodString;
|
|
12
9
|
signedUrl: z.ZodString;
|
|
13
|
-
createdAt: z.
|
|
10
|
+
createdAt: z.ZodDate;
|
|
14
11
|
}, "strip", z.ZodTypeAny, {
|
|
15
12
|
path: string;
|
|
16
13
|
id: string;
|
|
17
14
|
userId: number;
|
|
18
|
-
|
|
15
|
+
createdAt: Date;
|
|
19
16
|
signedUrl: string;
|
|
20
|
-
createdAt?: unknown;
|
|
21
17
|
}, {
|
|
22
18
|
path: string;
|
|
23
19
|
id: string;
|
|
24
20
|
userId: number;
|
|
25
|
-
|
|
21
|
+
createdAt: Date;
|
|
26
22
|
signedUrl: string;
|
|
27
|
-
createdAt?: unknown;
|
|
28
23
|
}>>>;
|
|
29
24
|
}, "strip", z.ZodTypeAny, {
|
|
30
|
-
id: string;
|
|
31
25
|
itemId: number;
|
|
32
|
-
parentId: number;
|
|
33
26
|
fileId: string;
|
|
34
27
|
file?: {
|
|
35
28
|
path: string;
|
|
36
29
|
id: string;
|
|
37
30
|
userId: number;
|
|
38
|
-
|
|
31
|
+
createdAt: Date;
|
|
39
32
|
signedUrl: string;
|
|
40
|
-
createdAt?: unknown;
|
|
41
33
|
} | null | undefined;
|
|
42
34
|
}, {
|
|
43
|
-
id: string;
|
|
44
35
|
itemId: number;
|
|
45
|
-
parentId: number;
|
|
46
36
|
fileId: string;
|
|
47
37
|
file?: {
|
|
48
38
|
path: string;
|
|
49
39
|
id: string;
|
|
50
40
|
userId: number;
|
|
51
|
-
|
|
41
|
+
createdAt: Date;
|
|
52
42
|
signedUrl: string;
|
|
53
|
-
createdAt?: unknown;
|
|
54
43
|
} | null | undefined;
|
|
55
44
|
}>;
|
|
56
45
|
export type ItemFile = z.infer<typeof ItemFileSchema>;
|
|
@@ -4,8 +4,6 @@ exports.ItemFileSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const file_1 = require("../users/file");
|
|
6
6
|
exports.ItemFileSchema = zod_1.z.object({
|
|
7
|
-
id: zod_1.z.string().uuid(),
|
|
8
|
-
parentId: zod_1.z.number(),
|
|
9
7
|
fileId: zod_1.z.string().uuid(),
|
|
10
8
|
itemId: zod_1.z.number(),
|
|
11
9
|
file: file_1.FileSchema.nullish(),
|
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const FileSchema: z.ZodObject<{
|
|
3
|
-
parentId: z.ZodNumber;
|
|
4
3
|
id: z.ZodString;
|
|
5
4
|
userId: z.ZodNumber;
|
|
6
5
|
path: z.ZodString;
|
|
7
6
|
signedUrl: z.ZodString;
|
|
8
|
-
createdAt: z.
|
|
7
|
+
createdAt: z.ZodDate;
|
|
9
8
|
}, "strip", z.ZodTypeAny, {
|
|
10
9
|
path: string;
|
|
11
10
|
id: string;
|
|
12
11
|
userId: number;
|
|
13
|
-
|
|
12
|
+
createdAt: Date;
|
|
14
13
|
signedUrl: string;
|
|
15
|
-
createdAt?: unknown;
|
|
16
14
|
}, {
|
|
17
15
|
path: string;
|
|
18
16
|
id: string;
|
|
19
17
|
userId: number;
|
|
20
|
-
|
|
18
|
+
createdAt: Date;
|
|
21
19
|
signedUrl: string;
|
|
22
|
-
createdAt?: unknown;
|
|
23
20
|
}>;
|
|
24
21
|
export type File = z.infer<typeof FileSchema>;
|
|
@@ -3,10 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FileSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.FileSchema = zod_1.z.object({
|
|
6
|
-
parentId: zod_1.z.number(),
|
|
7
6
|
id: zod_1.z.string().uuid(),
|
|
8
7
|
userId: zod_1.z.number(),
|
|
9
8
|
path: zod_1.z.string(),
|
|
10
9
|
signedUrl: zod_1.z.string(),
|
|
11
|
-
createdAt: zod_1.z.
|
|
10
|
+
createdAt: zod_1.z.coerce.date(),
|
|
12
11
|
});
|