controlresell 0.0.30 → 0.0.32
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,8 +8,6 @@ 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<{
|
|
@@ -32,9 +30,7 @@ export declare const ItemSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
32
30
|
signedUrl: string;
|
|
33
31
|
}>>>;
|
|
34
32
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
id: string;
|
|
36
33
|
itemId: number;
|
|
37
|
-
parentId: number;
|
|
38
34
|
fileId: string;
|
|
39
35
|
file?: {
|
|
40
36
|
path: string;
|
|
@@ -44,9 +40,7 @@ export declare const ItemSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
44
40
|
signedUrl: string;
|
|
45
41
|
} | null | undefined;
|
|
46
42
|
}, {
|
|
47
|
-
id: string;
|
|
48
43
|
itemId: number;
|
|
49
|
-
parentId: number;
|
|
50
44
|
fileId: string;
|
|
51
45
|
file?: {
|
|
52
46
|
path: string;
|
|
@@ -479,9 +473,7 @@ export declare const ItemSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
479
473
|
packageSizeId?: number | null | undefined;
|
|
480
474
|
sizeId?: number | null | undefined;
|
|
481
475
|
files?: {
|
|
482
|
-
id: string;
|
|
483
476
|
itemId: number;
|
|
484
|
-
parentId: number;
|
|
485
477
|
fileId: string;
|
|
486
478
|
file?: {
|
|
487
479
|
path: string;
|
|
@@ -601,9 +593,7 @@ export declare const ItemSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
601
593
|
packageSizeId?: number | null | undefined;
|
|
602
594
|
sizeId?: number | null | undefined;
|
|
603
595
|
files?: {
|
|
604
|
-
id: string;
|
|
605
596
|
itemId: number;
|
|
606
|
-
parentId: number;
|
|
607
597
|
fileId: string;
|
|
608
598
|
file?: {
|
|
609
599
|
path: string;
|
|
@@ -671,9 +661,7 @@ export declare const ItemSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
671
661
|
packageSizeId?: number | null | undefined;
|
|
672
662
|
sizeId?: number | null | undefined;
|
|
673
663
|
files?: {
|
|
674
|
-
id: string;
|
|
675
664
|
itemId: number;
|
|
676
|
-
parentId: number;
|
|
677
665
|
fileId: string;
|
|
678
666
|
file?: {
|
|
679
667
|
path: string;
|
|
@@ -800,9 +788,7 @@ export declare const ItemSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
800
788
|
packageSizeId?: number | null | undefined;
|
|
801
789
|
sizeId?: number | null | undefined;
|
|
802
790
|
files?: {
|
|
803
|
-
id: string;
|
|
804
791
|
itemId: number;
|
|
805
|
-
parentId: number;
|
|
806
792
|
fileId: string;
|
|
807
793
|
file?: {
|
|
808
794
|
path: string;
|
|
@@ -1025,8 +1011,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
1025
1011
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1026
1012
|
images: z.ZodArray<z.ZodString, "many">;
|
|
1027
1013
|
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1028
|
-
id: z.ZodString;
|
|
1029
|
-
parentId: z.ZodNumber;
|
|
1030
1014
|
fileId: z.ZodString;
|
|
1031
1015
|
itemId: z.ZodNumber;
|
|
1032
1016
|
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -1049,9 +1033,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
1049
1033
|
signedUrl: string;
|
|
1050
1034
|
}>>>;
|
|
1051
1035
|
}, "strip", z.ZodTypeAny, {
|
|
1052
|
-
id: string;
|
|
1053
1036
|
itemId: number;
|
|
1054
|
-
parentId: number;
|
|
1055
1037
|
fileId: string;
|
|
1056
1038
|
file?: {
|
|
1057
1039
|
path: string;
|
|
@@ -1061,9 +1043,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
1061
1043
|
signedUrl: string;
|
|
1062
1044
|
} | null | undefined;
|
|
1063
1045
|
}, {
|
|
1064
|
-
id: string;
|
|
1065
1046
|
itemId: number;
|
|
1066
|
-
parentId: number;
|
|
1067
1047
|
fileId: string;
|
|
1068
1048
|
file?: {
|
|
1069
1049
|
path: string;
|
|
@@ -1496,9 +1476,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
1496
1476
|
packageSizeId?: number | null | undefined;
|
|
1497
1477
|
sizeId?: number | null | undefined;
|
|
1498
1478
|
files?: {
|
|
1499
|
-
id: string;
|
|
1500
1479
|
itemId: number;
|
|
1501
|
-
parentId: number;
|
|
1502
1480
|
fileId: string;
|
|
1503
1481
|
file?: {
|
|
1504
1482
|
path: string;
|
|
@@ -1618,9 +1596,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
1618
1596
|
packageSizeId?: number | null | undefined;
|
|
1619
1597
|
sizeId?: number | null | undefined;
|
|
1620
1598
|
files?: {
|
|
1621
|
-
id: string;
|
|
1622
1599
|
itemId: number;
|
|
1623
|
-
parentId: number;
|
|
1624
1600
|
fileId: string;
|
|
1625
1601
|
file?: {
|
|
1626
1602
|
path: string;
|
|
@@ -1688,9 +1664,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
1688
1664
|
packageSizeId?: number | null | undefined;
|
|
1689
1665
|
sizeId?: number | null | undefined;
|
|
1690
1666
|
files?: {
|
|
1691
|
-
id: string;
|
|
1692
1667
|
itemId: number;
|
|
1693
|
-
parentId: number;
|
|
1694
1668
|
fileId: string;
|
|
1695
1669
|
file?: {
|
|
1696
1670
|
path: string;
|
|
@@ -1817,9 +1791,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
1817
1791
|
packageSizeId?: number | null | undefined;
|
|
1818
1792
|
sizeId?: number | null | undefined;
|
|
1819
1793
|
files?: {
|
|
1820
|
-
id: string;
|
|
1821
1794
|
itemId: number;
|
|
1822
|
-
parentId: number;
|
|
1823
1795
|
fileId: string;
|
|
1824
1796
|
file?: {
|
|
1825
1797
|
path: string;
|
|
@@ -1969,9 +1941,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
1969
1941
|
packageSizeId?: number | null | undefined;
|
|
1970
1942
|
sizeId?: number | null | undefined;
|
|
1971
1943
|
files?: {
|
|
1972
|
-
id: string;
|
|
1973
1944
|
itemId: number;
|
|
1974
|
-
parentId: number;
|
|
1975
1945
|
fileId: string;
|
|
1976
1946
|
file?: {
|
|
1977
1947
|
path: string;
|
|
@@ -2096,8 +2066,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
2096
2066
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2097
2067
|
images: z.ZodArray<z.ZodString, "many">;
|
|
2098
2068
|
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2099
|
-
id: z.ZodString;
|
|
2100
|
-
parentId: z.ZodNumber;
|
|
2101
2069
|
fileId: z.ZodString;
|
|
2102
2070
|
itemId: z.ZodNumber;
|
|
2103
2071
|
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -2120,9 +2088,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
2120
2088
|
signedUrl: string;
|
|
2121
2089
|
}>>>;
|
|
2122
2090
|
}, "strip", z.ZodTypeAny, {
|
|
2123
|
-
id: string;
|
|
2124
2091
|
itemId: number;
|
|
2125
|
-
parentId: number;
|
|
2126
2092
|
fileId: string;
|
|
2127
2093
|
file?: {
|
|
2128
2094
|
path: string;
|
|
@@ -2132,9 +2098,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
2132
2098
|
signedUrl: string;
|
|
2133
2099
|
} | null | undefined;
|
|
2134
2100
|
}, {
|
|
2135
|
-
id: string;
|
|
2136
2101
|
itemId: number;
|
|
2137
|
-
parentId: number;
|
|
2138
2102
|
fileId: string;
|
|
2139
2103
|
file?: {
|
|
2140
2104
|
path: string;
|
|
@@ -2567,9 +2531,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
2567
2531
|
packageSizeId?: number | null | undefined;
|
|
2568
2532
|
sizeId?: number | null | undefined;
|
|
2569
2533
|
files?: {
|
|
2570
|
-
id: string;
|
|
2571
2534
|
itemId: number;
|
|
2572
|
-
parentId: number;
|
|
2573
2535
|
fileId: string;
|
|
2574
2536
|
file?: {
|
|
2575
2537
|
path: string;
|
|
@@ -2689,9 +2651,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
2689
2651
|
packageSizeId?: number | null | undefined;
|
|
2690
2652
|
sizeId?: number | null | undefined;
|
|
2691
2653
|
files?: {
|
|
2692
|
-
id: string;
|
|
2693
2654
|
itemId: number;
|
|
2694
|
-
parentId: number;
|
|
2695
2655
|
fileId: string;
|
|
2696
2656
|
file?: {
|
|
2697
2657
|
path: string;
|
|
@@ -2759,9 +2719,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
2759
2719
|
packageSizeId?: number | null | undefined;
|
|
2760
2720
|
sizeId?: number | null | undefined;
|
|
2761
2721
|
files?: {
|
|
2762
|
-
id: string;
|
|
2763
2722
|
itemId: number;
|
|
2764
|
-
parentId: number;
|
|
2765
2723
|
fileId: string;
|
|
2766
2724
|
file?: {
|
|
2767
2725
|
path: string;
|
|
@@ -2888,9 +2846,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
2888
2846
|
packageSizeId?: number | null | undefined;
|
|
2889
2847
|
sizeId?: number | null | undefined;
|
|
2890
2848
|
files?: {
|
|
2891
|
-
id: string;
|
|
2892
2849
|
itemId: number;
|
|
2893
|
-
parentId: number;
|
|
2894
2850
|
fileId: string;
|
|
2895
2851
|
file?: {
|
|
2896
2852
|
path: string;
|
|
@@ -3045,9 +3001,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
3045
3001
|
packageSizeId?: number | null | undefined;
|
|
3046
3002
|
sizeId?: number | null | undefined;
|
|
3047
3003
|
files?: {
|
|
3048
|
-
id: string;
|
|
3049
3004
|
itemId: number;
|
|
3050
|
-
parentId: number;
|
|
3051
3005
|
fileId: string;
|
|
3052
3006
|
file?: {
|
|
3053
3007
|
path: string;
|
|
@@ -3159,6 +3113,14 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
3159
3113
|
item?: unknown;
|
|
3160
3114
|
}>;
|
|
3161
3115
|
export type UpdatedItem = z.infer<typeof UpdatedItemSchema>;
|
|
3116
|
+
export declare const ImageAnalysisRequestSchema: z.ZodObject<{
|
|
3117
|
+
filesId: z.ZodArray<z.ZodString, "many">;
|
|
3118
|
+
}, "strip", z.ZodTypeAny, {
|
|
3119
|
+
filesId: string[];
|
|
3120
|
+
}, {
|
|
3121
|
+
filesId: string[];
|
|
3122
|
+
}>;
|
|
3123
|
+
export type ImageAnalysisRequest = z.infer<typeof ImageAnalysisRequestSchema>;
|
|
3162
3124
|
export declare const ImageAnalysisCompletionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
3163
3125
|
brand: z.ZodString;
|
|
3164
3126
|
catalogId: z.ZodNumber;
|
|
@@ -3289,8 +3251,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
3289
3251
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3290
3252
|
images: z.ZodArray<z.ZodString, "many">;
|
|
3291
3253
|
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3292
|
-
id: z.ZodString;
|
|
3293
|
-
parentId: z.ZodNumber;
|
|
3294
3254
|
fileId: z.ZodString;
|
|
3295
3255
|
itemId: z.ZodNumber;
|
|
3296
3256
|
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -3313,9 +3273,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
3313
3273
|
signedUrl: string;
|
|
3314
3274
|
}>>>;
|
|
3315
3275
|
}, "strip", z.ZodTypeAny, {
|
|
3316
|
-
id: string;
|
|
3317
3276
|
itemId: number;
|
|
3318
|
-
parentId: number;
|
|
3319
3277
|
fileId: string;
|
|
3320
3278
|
file?: {
|
|
3321
3279
|
path: string;
|
|
@@ -3325,9 +3283,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
3325
3283
|
signedUrl: string;
|
|
3326
3284
|
} | null | undefined;
|
|
3327
3285
|
}, {
|
|
3328
|
-
id: string;
|
|
3329
3286
|
itemId: number;
|
|
3330
|
-
parentId: number;
|
|
3331
3287
|
fileId: string;
|
|
3332
3288
|
file?: {
|
|
3333
3289
|
path: string;
|
|
@@ -3760,9 +3716,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
3760
3716
|
packageSizeId?: number | null | undefined;
|
|
3761
3717
|
sizeId?: number | null | undefined;
|
|
3762
3718
|
files?: {
|
|
3763
|
-
id: string;
|
|
3764
3719
|
itemId: number;
|
|
3765
|
-
parentId: number;
|
|
3766
3720
|
fileId: string;
|
|
3767
3721
|
file?: {
|
|
3768
3722
|
path: string;
|
|
@@ -3882,9 +3836,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
3882
3836
|
packageSizeId?: number | null | undefined;
|
|
3883
3837
|
sizeId?: number | null | undefined;
|
|
3884
3838
|
files?: {
|
|
3885
|
-
id: string;
|
|
3886
3839
|
itemId: number;
|
|
3887
|
-
parentId: number;
|
|
3888
3840
|
fileId: string;
|
|
3889
3841
|
file?: {
|
|
3890
3842
|
path: string;
|
|
@@ -3952,9 +3904,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
3952
3904
|
packageSizeId?: number | null | undefined;
|
|
3953
3905
|
sizeId?: number | null | undefined;
|
|
3954
3906
|
files?: {
|
|
3955
|
-
id: string;
|
|
3956
3907
|
itemId: number;
|
|
3957
|
-
parentId: number;
|
|
3958
3908
|
fileId: string;
|
|
3959
3909
|
file?: {
|
|
3960
3910
|
path: string;
|
|
@@ -4081,9 +4031,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
4081
4031
|
packageSizeId?: number | null | undefined;
|
|
4082
4032
|
sizeId?: number | null | undefined;
|
|
4083
4033
|
files?: {
|
|
4084
|
-
id: string;
|
|
4085
4034
|
itemId: number;
|
|
4086
|
-
parentId: number;
|
|
4087
4035
|
fileId: string;
|
|
4088
4036
|
file?: {
|
|
4089
4037
|
path: string;
|
|
@@ -4286,9 +4234,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
4286
4234
|
packageSizeId?: number | null | undefined;
|
|
4287
4235
|
sizeId?: number | null | undefined;
|
|
4288
4236
|
files?: {
|
|
4289
|
-
id: string;
|
|
4290
4237
|
itemId: number;
|
|
4291
|
-
parentId: number;
|
|
4292
4238
|
fileId: string;
|
|
4293
4239
|
file?: {
|
|
4294
4240
|
path: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ItemsWithFiltersSchema = exports.ItemFiltersContextSchema = exports.GettingStartedStepsSchema = exports.ImageAnalysisCompletionSchema = exports.UpdatedItemSchema = exports.CreatedItemsSchema = exports.ItemPayloadSchema = exports.ItemSchema = exports.ItemSortSchema = void 0;
|
|
3
|
+
exports.ItemsWithFiltersSchema = exports.ItemFiltersContextSchema = exports.GettingStartedStepsSchema = exports.ImageAnalysisCompletionSchema = exports.ImageAnalysisRequestSchema = exports.UpdatedItemSchema = exports.CreatedItemsSchema = exports.ItemPayloadSchema = exports.ItemSchema = exports.ItemSortSchema = void 0;
|
|
4
4
|
const legacy_1 = require("../../helpers/legacy");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const primitives_1 = require("../primitives");
|
|
@@ -100,6 +100,9 @@ exports.UpdatedItemSchema = zod_1.z.object({
|
|
|
100
100
|
item: exports.ItemSchema,
|
|
101
101
|
newUserLabels: zod_1.z.array(itemLabel_1.LabelSchema),
|
|
102
102
|
});
|
|
103
|
+
exports.ImageAnalysisRequestSchema = zod_1.z.object({
|
|
104
|
+
filesId: zod_1.z.array(zod_1.z.string().uuid()),
|
|
105
|
+
});
|
|
103
106
|
exports.ImageAnalysisCompletionSchema = (0, legacy_1.legacy)(zod_1.z.object({
|
|
104
107
|
brand: zod_1.z.string(),
|
|
105
108
|
catalogId: zod_1.z.number(),
|
|
@@ -1,7 +1,5 @@
|
|
|
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<{
|
|
@@ -24,9 +22,7 @@ export declare const ItemFileSchema: z.ZodObject<{
|
|
|
24
22
|
signedUrl: string;
|
|
25
23
|
}>>>;
|
|
26
24
|
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
id: string;
|
|
28
25
|
itemId: number;
|
|
29
|
-
parentId: number;
|
|
30
26
|
fileId: string;
|
|
31
27
|
file?: {
|
|
32
28
|
path: string;
|
|
@@ -36,9 +32,7 @@ export declare const ItemFileSchema: z.ZodObject<{
|
|
|
36
32
|
signedUrl: string;
|
|
37
33
|
} | null | undefined;
|
|
38
34
|
}, {
|
|
39
|
-
id: string;
|
|
40
35
|
itemId: number;
|
|
41
|
-
parentId: number;
|
|
42
36
|
fileId: string;
|
|
43
37
|
file?: {
|
|
44
38
|
path: string;
|
|
@@ -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(),
|