controlresell 2.1.13 → 2.1.14
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.
- package/package.json +2 -2
- package/src/com/controlresell/models/items/CreatedItems.d.ts +14 -0
- package/src/com/controlresell/models/items/Item.d.ts +7 -0
- package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +9 -0
- package/src/com/controlresell/models/items/UpdatedItem.d.ts +14 -0
- package/src/com/controlresell/models/items/labels/ItemLabel.d.ts +5 -0
- package/src/com/controlresell/models/metadata/labels/Label.d.ts +3 -0
- package/src/com/controlresell/models/metadata/labels/Label.js +2 -1
- package/src/com/controlresell/models/metadata/labels/Label.ts +2 -1
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +9 -0
- package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "controlresell",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.14",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"controlresell-connector": "^0.3.4",
|
|
21
|
-
"zod": "^3.25.
|
|
21
|
+
"zod": "^3.25.51",
|
|
22
22
|
"zodable-idschema": "^1.0.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -120,17 +120,20 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
120
120
|
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
121
121
|
isUserLabel: z.ZodBoolean;
|
|
122
122
|
createdAt: z.ZodDate;
|
|
123
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
123
124
|
}, "strip", z.ZodTypeAny, {
|
|
124
125
|
id: string | number;
|
|
125
126
|
createdAt: Date;
|
|
126
127
|
name: string;
|
|
127
128
|
isUserLabel: boolean;
|
|
129
|
+
itemCount?: number | null | undefined;
|
|
128
130
|
userId?: string | number | null | undefined;
|
|
129
131
|
}, {
|
|
130
132
|
id: string | number;
|
|
131
133
|
createdAt: Date;
|
|
132
134
|
name: string;
|
|
133
135
|
isUserLabel: boolean;
|
|
136
|
+
itemCount?: number | null | undefined;
|
|
134
137
|
userId?: string | number | null | undefined;
|
|
135
138
|
}>>>;
|
|
136
139
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -141,6 +144,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
141
144
|
createdAt: Date;
|
|
142
145
|
name: string;
|
|
143
146
|
isUserLabel: boolean;
|
|
147
|
+
itemCount?: number | null | undefined;
|
|
144
148
|
userId?: string | number | null | undefined;
|
|
145
149
|
} | null | undefined;
|
|
146
150
|
}, {
|
|
@@ -151,6 +155,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
151
155
|
createdAt: Date;
|
|
152
156
|
name: string;
|
|
153
157
|
isUserLabel: boolean;
|
|
158
|
+
itemCount?: number | null | undefined;
|
|
154
159
|
userId?: string | number | null | undefined;
|
|
155
160
|
} | null | undefined;
|
|
156
161
|
}>, "many">>>;
|
|
@@ -312,6 +317,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
312
317
|
createdAt: Date;
|
|
313
318
|
name: string;
|
|
314
319
|
isUserLabel: boolean;
|
|
320
|
+
itemCount?: number | null | undefined;
|
|
315
321
|
userId?: string | number | null | undefined;
|
|
316
322
|
} | null | undefined;
|
|
317
323
|
}[] | null | undefined;
|
|
@@ -421,6 +427,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
421
427
|
createdAt: Date;
|
|
422
428
|
name: string;
|
|
423
429
|
isUserLabel: boolean;
|
|
430
|
+
itemCount?: number | null | undefined;
|
|
424
431
|
userId?: string | number | null | undefined;
|
|
425
432
|
} | null | undefined;
|
|
426
433
|
}[] | null | undefined;
|
|
@@ -516,17 +523,20 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
516
523
|
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
517
524
|
isUserLabel: z.ZodBoolean;
|
|
518
525
|
createdAt: z.ZodDate;
|
|
526
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
519
527
|
}, "strip", z.ZodTypeAny, {
|
|
520
528
|
id: string | number;
|
|
521
529
|
createdAt: Date;
|
|
522
530
|
name: string;
|
|
523
531
|
isUserLabel: boolean;
|
|
532
|
+
itemCount?: number | null | undefined;
|
|
524
533
|
userId?: string | number | null | undefined;
|
|
525
534
|
}, {
|
|
526
535
|
id: string | number;
|
|
527
536
|
createdAt: Date;
|
|
528
537
|
name: string;
|
|
529
538
|
isUserLabel: boolean;
|
|
539
|
+
itemCount?: number | null | undefined;
|
|
530
540
|
userId?: string | number | null | undefined;
|
|
531
541
|
}>, "many">;
|
|
532
542
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -551,6 +561,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
551
561
|
createdAt: Date;
|
|
552
562
|
name: string;
|
|
553
563
|
isUserLabel: boolean;
|
|
564
|
+
itemCount?: number | null | undefined;
|
|
554
565
|
userId?: string | number | null | undefined;
|
|
555
566
|
} | null | undefined;
|
|
556
567
|
}[] | null | undefined;
|
|
@@ -645,6 +656,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
645
656
|
createdAt: Date;
|
|
646
657
|
name: string;
|
|
647
658
|
isUserLabel: boolean;
|
|
659
|
+
itemCount?: number | null | undefined;
|
|
648
660
|
userId?: string | number | null | undefined;
|
|
649
661
|
}[];
|
|
650
662
|
}, {
|
|
@@ -669,6 +681,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
669
681
|
createdAt: Date;
|
|
670
682
|
name: string;
|
|
671
683
|
isUserLabel: boolean;
|
|
684
|
+
itemCount?: number | null | undefined;
|
|
672
685
|
userId?: string | number | null | undefined;
|
|
673
686
|
} | null | undefined;
|
|
674
687
|
}[] | null | undefined;
|
|
@@ -763,6 +776,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
763
776
|
createdAt: Date;
|
|
764
777
|
name: string;
|
|
765
778
|
isUserLabel: boolean;
|
|
779
|
+
itemCount?: number | null | undefined;
|
|
766
780
|
userId?: string | number | null | undefined;
|
|
767
781
|
}[];
|
|
768
782
|
}>;
|
|
@@ -119,17 +119,20 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
119
119
|
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
120
120
|
isUserLabel: z.ZodBoolean;
|
|
121
121
|
createdAt: z.ZodDate;
|
|
122
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
122
123
|
}, "strip", z.ZodTypeAny, {
|
|
123
124
|
id: string | number;
|
|
124
125
|
createdAt: Date;
|
|
125
126
|
name: string;
|
|
126
127
|
isUserLabel: boolean;
|
|
128
|
+
itemCount?: number | null | undefined;
|
|
127
129
|
userId?: string | number | null | undefined;
|
|
128
130
|
}, {
|
|
129
131
|
id: string | number;
|
|
130
132
|
createdAt: Date;
|
|
131
133
|
name: string;
|
|
132
134
|
isUserLabel: boolean;
|
|
135
|
+
itemCount?: number | null | undefined;
|
|
133
136
|
userId?: string | number | null | undefined;
|
|
134
137
|
}>>>;
|
|
135
138
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -140,6 +143,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
140
143
|
createdAt: Date;
|
|
141
144
|
name: string;
|
|
142
145
|
isUserLabel: boolean;
|
|
146
|
+
itemCount?: number | null | undefined;
|
|
143
147
|
userId?: string | number | null | undefined;
|
|
144
148
|
} | null | undefined;
|
|
145
149
|
}, {
|
|
@@ -150,6 +154,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
150
154
|
createdAt: Date;
|
|
151
155
|
name: string;
|
|
152
156
|
isUserLabel: boolean;
|
|
157
|
+
itemCount?: number | null | undefined;
|
|
153
158
|
userId?: string | number | null | undefined;
|
|
154
159
|
} | null | undefined;
|
|
155
160
|
}>, "many">>>;
|
|
@@ -311,6 +316,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
311
316
|
createdAt: Date;
|
|
312
317
|
name: string;
|
|
313
318
|
isUserLabel: boolean;
|
|
319
|
+
itemCount?: number | null | undefined;
|
|
314
320
|
userId?: string | number | null | undefined;
|
|
315
321
|
} | null | undefined;
|
|
316
322
|
}[] | null | undefined;
|
|
@@ -420,6 +426,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
420
426
|
createdAt: Date;
|
|
421
427
|
name: string;
|
|
422
428
|
isUserLabel: boolean;
|
|
429
|
+
itemCount?: number | null | undefined;
|
|
423
430
|
userId?: string | number | null | undefined;
|
|
424
431
|
} | null | undefined;
|
|
425
432
|
}[] | null | undefined;
|
|
@@ -122,17 +122,20 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
122
122
|
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
123
123
|
isUserLabel: z.ZodBoolean;
|
|
124
124
|
createdAt: z.ZodDate;
|
|
125
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
125
126
|
}, "strip", z.ZodTypeAny, {
|
|
126
127
|
id: string | number;
|
|
127
128
|
createdAt: Date;
|
|
128
129
|
name: string;
|
|
129
130
|
isUserLabel: boolean;
|
|
131
|
+
itemCount?: number | null | undefined;
|
|
130
132
|
userId?: string | number | null | undefined;
|
|
131
133
|
}, {
|
|
132
134
|
id: string | number;
|
|
133
135
|
createdAt: Date;
|
|
134
136
|
name: string;
|
|
135
137
|
isUserLabel: boolean;
|
|
138
|
+
itemCount?: number | null | undefined;
|
|
136
139
|
userId?: string | number | null | undefined;
|
|
137
140
|
}>>>;
|
|
138
141
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -143,6 +146,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
143
146
|
createdAt: Date;
|
|
144
147
|
name: string;
|
|
145
148
|
isUserLabel: boolean;
|
|
149
|
+
itemCount?: number | null | undefined;
|
|
146
150
|
userId?: string | number | null | undefined;
|
|
147
151
|
} | null | undefined;
|
|
148
152
|
}, {
|
|
@@ -153,6 +157,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
153
157
|
createdAt: Date;
|
|
154
158
|
name: string;
|
|
155
159
|
isUserLabel: boolean;
|
|
160
|
+
itemCount?: number | null | undefined;
|
|
156
161
|
userId?: string | number | null | undefined;
|
|
157
162
|
} | null | undefined;
|
|
158
163
|
}>, "many">>>;
|
|
@@ -314,6 +319,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
314
319
|
createdAt: Date;
|
|
315
320
|
name: string;
|
|
316
321
|
isUserLabel: boolean;
|
|
322
|
+
itemCount?: number | null | undefined;
|
|
317
323
|
userId?: string | number | null | undefined;
|
|
318
324
|
} | null | undefined;
|
|
319
325
|
}[] | null | undefined;
|
|
@@ -423,6 +429,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
423
429
|
createdAt: Date;
|
|
424
430
|
name: string;
|
|
425
431
|
isUserLabel: boolean;
|
|
432
|
+
itemCount?: number | null | undefined;
|
|
426
433
|
userId?: string | number | null | undefined;
|
|
427
434
|
} | null | undefined;
|
|
428
435
|
}[] | null | undefined;
|
|
@@ -538,6 +545,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
538
545
|
createdAt: Date;
|
|
539
546
|
name: string;
|
|
540
547
|
isUserLabel: boolean;
|
|
548
|
+
itemCount?: number | null | undefined;
|
|
541
549
|
userId?: string | number | null | undefined;
|
|
542
550
|
} | null | undefined;
|
|
543
551
|
}[] | null | undefined;
|
|
@@ -653,6 +661,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
653
661
|
createdAt: Date;
|
|
654
662
|
name: string;
|
|
655
663
|
isUserLabel: boolean;
|
|
664
|
+
itemCount?: number | null | undefined;
|
|
656
665
|
userId?: string | number | null | undefined;
|
|
657
666
|
} | null | undefined;
|
|
658
667
|
}[] | null | undefined;
|
|
@@ -120,17 +120,20 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
120
120
|
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
121
121
|
isUserLabel: z.ZodBoolean;
|
|
122
122
|
createdAt: z.ZodDate;
|
|
123
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
123
124
|
}, "strip", z.ZodTypeAny, {
|
|
124
125
|
id: string | number;
|
|
125
126
|
createdAt: Date;
|
|
126
127
|
name: string;
|
|
127
128
|
isUserLabel: boolean;
|
|
129
|
+
itemCount?: number | null | undefined;
|
|
128
130
|
userId?: string | number | null | undefined;
|
|
129
131
|
}, {
|
|
130
132
|
id: string | number;
|
|
131
133
|
createdAt: Date;
|
|
132
134
|
name: string;
|
|
133
135
|
isUserLabel: boolean;
|
|
136
|
+
itemCount?: number | null | undefined;
|
|
134
137
|
userId?: string | number | null | undefined;
|
|
135
138
|
}>>>;
|
|
136
139
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -141,6 +144,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
141
144
|
createdAt: Date;
|
|
142
145
|
name: string;
|
|
143
146
|
isUserLabel: boolean;
|
|
147
|
+
itemCount?: number | null | undefined;
|
|
144
148
|
userId?: string | number | null | undefined;
|
|
145
149
|
} | null | undefined;
|
|
146
150
|
}, {
|
|
@@ -151,6 +155,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
151
155
|
createdAt: Date;
|
|
152
156
|
name: string;
|
|
153
157
|
isUserLabel: boolean;
|
|
158
|
+
itemCount?: number | null | undefined;
|
|
154
159
|
userId?: string | number | null | undefined;
|
|
155
160
|
} | null | undefined;
|
|
156
161
|
}>, "many">>>;
|
|
@@ -312,6 +317,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
312
317
|
createdAt: Date;
|
|
313
318
|
name: string;
|
|
314
319
|
isUserLabel: boolean;
|
|
320
|
+
itemCount?: number | null | undefined;
|
|
315
321
|
userId?: string | number | null | undefined;
|
|
316
322
|
} | null | undefined;
|
|
317
323
|
}[] | null | undefined;
|
|
@@ -421,6 +427,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
421
427
|
createdAt: Date;
|
|
422
428
|
name: string;
|
|
423
429
|
isUserLabel: boolean;
|
|
430
|
+
itemCount?: number | null | undefined;
|
|
424
431
|
userId?: string | number | null | undefined;
|
|
425
432
|
} | null | undefined;
|
|
426
433
|
}[] | null | undefined;
|
|
@@ -516,17 +523,20 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
516
523
|
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
517
524
|
isUserLabel: z.ZodBoolean;
|
|
518
525
|
createdAt: z.ZodDate;
|
|
526
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
519
527
|
}, "strip", z.ZodTypeAny, {
|
|
520
528
|
id: string | number;
|
|
521
529
|
createdAt: Date;
|
|
522
530
|
name: string;
|
|
523
531
|
isUserLabel: boolean;
|
|
532
|
+
itemCount?: number | null | undefined;
|
|
524
533
|
userId?: string | number | null | undefined;
|
|
525
534
|
}, {
|
|
526
535
|
id: string | number;
|
|
527
536
|
createdAt: Date;
|
|
528
537
|
name: string;
|
|
529
538
|
isUserLabel: boolean;
|
|
539
|
+
itemCount?: number | null | undefined;
|
|
530
540
|
userId?: string | number | null | undefined;
|
|
531
541
|
}>, "many">;
|
|
532
542
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -535,6 +545,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
535
545
|
createdAt: Date;
|
|
536
546
|
name: string;
|
|
537
547
|
isUserLabel: boolean;
|
|
548
|
+
itemCount?: number | null | undefined;
|
|
538
549
|
userId?: string | number | null | undefined;
|
|
539
550
|
}[];
|
|
540
551
|
item: {
|
|
@@ -558,6 +569,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
558
569
|
createdAt: Date;
|
|
559
570
|
name: string;
|
|
560
571
|
isUserLabel: boolean;
|
|
572
|
+
itemCount?: number | null | undefined;
|
|
561
573
|
userId?: string | number | null | undefined;
|
|
562
574
|
} | null | undefined;
|
|
563
575
|
}[] | null | undefined;
|
|
@@ -653,6 +665,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
653
665
|
createdAt: Date;
|
|
654
666
|
name: string;
|
|
655
667
|
isUserLabel: boolean;
|
|
668
|
+
itemCount?: number | null | undefined;
|
|
656
669
|
userId?: string | number | null | undefined;
|
|
657
670
|
}[];
|
|
658
671
|
item: {
|
|
@@ -676,6 +689,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
676
689
|
createdAt: Date;
|
|
677
690
|
name: string;
|
|
678
691
|
isUserLabel: boolean;
|
|
692
|
+
itemCount?: number | null | undefined;
|
|
679
693
|
userId?: string | number | null | undefined;
|
|
680
694
|
} | null | undefined;
|
|
681
695
|
}[] | null | undefined;
|
|
@@ -8,17 +8,20 @@ export declare const ItemLabelSchema: z.ZodObject<{
|
|
|
8
8
|
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
9
9
|
isUserLabel: z.ZodBoolean;
|
|
10
10
|
createdAt: z.ZodDate;
|
|
11
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
12
|
}, "strip", z.ZodTypeAny, {
|
|
12
13
|
id: string | number;
|
|
13
14
|
createdAt: Date;
|
|
14
15
|
name: string;
|
|
15
16
|
isUserLabel: boolean;
|
|
17
|
+
itemCount?: number | null | undefined;
|
|
16
18
|
userId?: string | number | null | undefined;
|
|
17
19
|
}, {
|
|
18
20
|
id: string | number;
|
|
19
21
|
createdAt: Date;
|
|
20
22
|
name: string;
|
|
21
23
|
isUserLabel: boolean;
|
|
24
|
+
itemCount?: number | null | undefined;
|
|
22
25
|
userId?: string | number | null | undefined;
|
|
23
26
|
}>>>;
|
|
24
27
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -29,6 +32,7 @@ export declare const ItemLabelSchema: z.ZodObject<{
|
|
|
29
32
|
createdAt: Date;
|
|
30
33
|
name: string;
|
|
31
34
|
isUserLabel: boolean;
|
|
35
|
+
itemCount?: number | null | undefined;
|
|
32
36
|
userId?: string | number | null | undefined;
|
|
33
37
|
} | null | undefined;
|
|
34
38
|
}, {
|
|
@@ -39,6 +43,7 @@ export declare const ItemLabelSchema: z.ZodObject<{
|
|
|
39
43
|
createdAt: Date;
|
|
40
44
|
name: string;
|
|
41
45
|
isUserLabel: boolean;
|
|
46
|
+
itemCount?: number | null | undefined;
|
|
42
47
|
userId?: string | number | null | undefined;
|
|
43
48
|
} | null | undefined;
|
|
44
49
|
}>;
|
|
@@ -5,17 +5,20 @@ export declare const LabelSchema: z.ZodObject<{
|
|
|
5
5
|
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
6
6
|
isUserLabel: z.ZodBoolean;
|
|
7
7
|
createdAt: z.ZodDate;
|
|
8
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
8
9
|
}, "strip", z.ZodTypeAny, {
|
|
9
10
|
id: string | number;
|
|
10
11
|
createdAt: Date;
|
|
11
12
|
name: string;
|
|
12
13
|
isUserLabel: boolean;
|
|
14
|
+
itemCount?: number | null | undefined;
|
|
13
15
|
userId?: string | number | null | undefined;
|
|
14
16
|
}, {
|
|
15
17
|
id: string | number;
|
|
16
18
|
createdAt: Date;
|
|
17
19
|
name: string;
|
|
18
20
|
isUserLabel: boolean;
|
|
21
|
+
itemCount?: number | null | undefined;
|
|
19
22
|
userId?: string | number | null | undefined;
|
|
20
23
|
}>;
|
|
21
24
|
export type Label = z.infer<typeof LabelSchema>;
|
|
@@ -8,5 +8,6 @@ exports.LabelSchema = zod_1.z.object({
|
|
|
8
8
|
name: zod_1.z.string(),
|
|
9
9
|
userId: zodable_idschema_1.IdSchema.nullish(),
|
|
10
10
|
isUserLabel: zod_1.z.boolean(),
|
|
11
|
-
createdAt: zod_1.z.coerce.date()
|
|
11
|
+
createdAt: zod_1.z.coerce.date(),
|
|
12
|
+
itemCount: zod_1.z.number().nullish()
|
|
12
13
|
});
|
|
@@ -6,6 +6,7 @@ export const LabelSchema = z.object({
|
|
|
6
6
|
name: z.string(),
|
|
7
7
|
userId: IdSchema.nullish(),
|
|
8
8
|
isUserLabel: z.boolean(),
|
|
9
|
-
createdAt: z.coerce.date()
|
|
9
|
+
createdAt: z.coerce.date(),
|
|
10
|
+
itemCount: z.number().nullish()
|
|
10
11
|
})
|
|
11
12
|
export type Label = z.infer<typeof LabelSchema>
|
|
@@ -410,17 +410,20 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
410
410
|
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
411
411
|
isUserLabel: z.ZodBoolean;
|
|
412
412
|
createdAt: z.ZodDate;
|
|
413
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
413
414
|
}, "strip", z.ZodTypeAny, {
|
|
414
415
|
id: string | number;
|
|
415
416
|
createdAt: Date;
|
|
416
417
|
name: string;
|
|
417
418
|
isUserLabel: boolean;
|
|
419
|
+
itemCount?: number | null | undefined;
|
|
418
420
|
userId?: string | number | null | undefined;
|
|
419
421
|
}, {
|
|
420
422
|
id: string | number;
|
|
421
423
|
createdAt: Date;
|
|
422
424
|
name: string;
|
|
423
425
|
isUserLabel: boolean;
|
|
426
|
+
itemCount?: number | null | undefined;
|
|
424
427
|
userId?: string | number | null | undefined;
|
|
425
428
|
}>>>;
|
|
426
429
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -431,6 +434,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
431
434
|
createdAt: Date;
|
|
432
435
|
name: string;
|
|
433
436
|
isUserLabel: boolean;
|
|
437
|
+
itemCount?: number | null | undefined;
|
|
434
438
|
userId?: string | number | null | undefined;
|
|
435
439
|
} | null | undefined;
|
|
436
440
|
}, {
|
|
@@ -441,6 +445,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
441
445
|
createdAt: Date;
|
|
442
446
|
name: string;
|
|
443
447
|
isUserLabel: boolean;
|
|
448
|
+
itemCount?: number | null | undefined;
|
|
444
449
|
userId?: string | number | null | undefined;
|
|
445
450
|
} | null | undefined;
|
|
446
451
|
}>, "many">>>;
|
|
@@ -602,6 +607,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
602
607
|
createdAt: Date;
|
|
603
608
|
name: string;
|
|
604
609
|
isUserLabel: boolean;
|
|
610
|
+
itemCount?: number | null | undefined;
|
|
605
611
|
userId?: string | number | null | undefined;
|
|
606
612
|
} | null | undefined;
|
|
607
613
|
}[] | null | undefined;
|
|
@@ -711,6 +717,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
711
717
|
createdAt: Date;
|
|
712
718
|
name: string;
|
|
713
719
|
isUserLabel: boolean;
|
|
720
|
+
itemCount?: number | null | undefined;
|
|
714
721
|
userId?: string | number | null | undefined;
|
|
715
722
|
} | null | undefined;
|
|
716
723
|
}[] | null | undefined;
|
|
@@ -822,6 +829,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
822
829
|
createdAt: Date;
|
|
823
830
|
name: string;
|
|
824
831
|
isUserLabel: boolean;
|
|
832
|
+
itemCount?: number | null | undefined;
|
|
825
833
|
userId?: string | number | null | undefined;
|
|
826
834
|
} | null | undefined;
|
|
827
835
|
}[] | null | undefined;
|
|
@@ -983,6 +991,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
983
991
|
createdAt: Date;
|
|
984
992
|
name: string;
|
|
985
993
|
isUserLabel: boolean;
|
|
994
|
+
itemCount?: number | null | undefined;
|
|
986
995
|
userId?: string | number | null | undefined;
|
|
987
996
|
} | null | undefined;
|
|
988
997
|
}[] | null | undefined;
|
|
@@ -285,17 +285,20 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
285
285
|
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
286
286
|
isUserLabel: z.ZodBoolean;
|
|
287
287
|
createdAt: z.ZodDate;
|
|
288
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
288
289
|
}, "strip", z.ZodTypeAny, {
|
|
289
290
|
id: string | number;
|
|
290
291
|
createdAt: Date;
|
|
291
292
|
name: string;
|
|
292
293
|
isUserLabel: boolean;
|
|
294
|
+
itemCount?: number | null | undefined;
|
|
293
295
|
userId?: string | number | null | undefined;
|
|
294
296
|
}, {
|
|
295
297
|
id: string | number;
|
|
296
298
|
createdAt: Date;
|
|
297
299
|
name: string;
|
|
298
300
|
isUserLabel: boolean;
|
|
301
|
+
itemCount?: number | null | undefined;
|
|
299
302
|
userId?: string | number | null | undefined;
|
|
300
303
|
}>>>;
|
|
301
304
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -306,6 +309,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
306
309
|
createdAt: Date;
|
|
307
310
|
name: string;
|
|
308
311
|
isUserLabel: boolean;
|
|
312
|
+
itemCount?: number | null | undefined;
|
|
309
313
|
userId?: string | number | null | undefined;
|
|
310
314
|
} | null | undefined;
|
|
311
315
|
}, {
|
|
@@ -316,6 +320,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
316
320
|
createdAt: Date;
|
|
317
321
|
name: string;
|
|
318
322
|
isUserLabel: boolean;
|
|
323
|
+
itemCount?: number | null | undefined;
|
|
319
324
|
userId?: string | number | null | undefined;
|
|
320
325
|
} | null | undefined;
|
|
321
326
|
}>, "many">>>;
|
|
@@ -477,6 +482,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
477
482
|
createdAt: Date;
|
|
478
483
|
name: string;
|
|
479
484
|
isUserLabel: boolean;
|
|
485
|
+
itemCount?: number | null | undefined;
|
|
480
486
|
userId?: string | number | null | undefined;
|
|
481
487
|
} | null | undefined;
|
|
482
488
|
}[] | null | undefined;
|
|
@@ -586,6 +592,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
586
592
|
createdAt: Date;
|
|
587
593
|
name: string;
|
|
588
594
|
isUserLabel: boolean;
|
|
595
|
+
itemCount?: number | null | undefined;
|
|
589
596
|
userId?: string | number | null | undefined;
|
|
590
597
|
} | null | undefined;
|
|
591
598
|
}[] | null | undefined;
|
|
@@ -697,6 +704,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
697
704
|
createdAt: Date;
|
|
698
705
|
name: string;
|
|
699
706
|
isUserLabel: boolean;
|
|
707
|
+
itemCount?: number | null | undefined;
|
|
700
708
|
userId?: string | number | null | undefined;
|
|
701
709
|
} | null | undefined;
|
|
702
710
|
}[] | null | undefined;
|
|
@@ -837,6 +845,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
837
845
|
createdAt: Date;
|
|
838
846
|
name: string;
|
|
839
847
|
isUserLabel: boolean;
|
|
848
|
+
itemCount?: number | null | undefined;
|
|
840
849
|
userId?: string | number | null | undefined;
|
|
841
850
|
} | null | undefined;
|
|
842
851
|
}[] | null | undefined;
|