controlresell 2.1.12 → 2.1.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.
- package/package.json +3 -3
- package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +3 -0
- package/src/com/controlresell/models/items/ItemFiltersContext.js +1 -0
- package/src/com/controlresell/models/items/ItemFiltersContext.ts +1 -0
- package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +0 -33
- package/src/com/controlresell/models/items/ItemsWithFilters.js +1 -3
- package/src/com/controlresell/models/items/ItemsWithFilters.ts +1 -3
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +7 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.d.ts +3 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.js +2 -1
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.ts +2 -1
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +5 -0
- package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts +61 -164
- package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts +3 -3
- package/src/com/controlresell/models/platforms/orders/Order.d.ts +5 -5
- package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.d.ts +5 -5
- package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.d.ts +3 -3
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +9 -9
- package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.d.ts +33 -0
- package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.js +16 -0
- package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.ts +15 -0
- package/src/com/controlresell/models/platforms/preferences/PlatformPreference.d.ts +39 -0
- package/src/com/controlresell/models/platforms/preferences/PlatformPreference.js +19 -0
- package/src/com/controlresell/models/platforms/preferences/PlatformPreference.ts +18 -0
- package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.d.ts +27 -0
- package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.js +13 -0
- package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.ts +12 -0
- package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +3 -3
- package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.d.ts +6 -6
- package/src/index.d.ts +141 -138
- package/src/index.js +285 -152
- package/src/index.ts +141 -138
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "controlresell",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.13",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"typescript": "^5.8.3"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"controlresell-connector": "^0.
|
|
21
|
-
"zod": "^3.25.
|
|
20
|
+
"controlresell-connector": "^0.3.4",
|
|
21
|
+
"zod": "^3.25.49",
|
|
22
22
|
"zodable-idschema": "^1.0.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -6,6 +6,7 @@ export declare const ItemFiltersContextSchema: z.ZodObject<{
|
|
|
6
6
|
brandsId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
7
7
|
sex: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
8
8
|
sizesId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
9
|
+
labelsId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
9
10
|
purchasePlacesId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
10
11
|
sellingPlacesId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
11
12
|
states: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
@@ -25,6 +26,7 @@ export declare const ItemFiltersContextSchema: z.ZodObject<{
|
|
|
25
26
|
categoriesId?: number[] | null | undefined;
|
|
26
27
|
brandsId?: number[] | null | undefined;
|
|
27
28
|
sizesId?: number[] | null | undefined;
|
|
29
|
+
labelsId?: number[] | null | undefined;
|
|
28
30
|
purchasePlacesId?: number[] | null | undefined;
|
|
29
31
|
sellingPlacesId?: number[] | null | undefined;
|
|
30
32
|
states?: number[] | null | undefined;
|
|
@@ -44,6 +46,7 @@ export declare const ItemFiltersContextSchema: z.ZodObject<{
|
|
|
44
46
|
categoriesId?: number[] | null | undefined;
|
|
45
47
|
brandsId?: number[] | null | undefined;
|
|
46
48
|
sizesId?: number[] | null | undefined;
|
|
49
|
+
labelsId?: number[] | null | undefined;
|
|
47
50
|
purchasePlacesId?: number[] | null | undefined;
|
|
48
51
|
sellingPlacesId?: number[] | null | undefined;
|
|
49
52
|
states?: number[] | null | undefined;
|
|
@@ -11,6 +11,7 @@ exports.ItemFiltersContextSchema = zod_1.z.object({
|
|
|
11
11
|
brandsId: zod_1.z.array(zod_1.z.number()).nullish(),
|
|
12
12
|
sex: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
13
13
|
sizesId: zod_1.z.array(zod_1.z.number()).nullish(),
|
|
14
|
+
labelsId: zod_1.z.array(zod_1.z.number()).nullish(),
|
|
14
15
|
purchasePlacesId: zod_1.z.array(zod_1.z.number()).nullish(),
|
|
15
16
|
sellingPlacesId: zod_1.z.array(zod_1.z.number()).nullish(),
|
|
16
17
|
states: zod_1.z.array(zod_1.z.number()).max(2).nullish(),
|
|
@@ -9,6 +9,7 @@ export const ItemFiltersContextSchema = z.object({
|
|
|
9
9
|
brandsId: z.array(z.number()).nullish(),
|
|
10
10
|
sex: z.array(z.string()).nullish(),
|
|
11
11
|
sizesId: z.array(z.number()).nullish(),
|
|
12
|
+
labelsId: z.array(z.number()).nullish(),
|
|
12
13
|
purchasePlacesId: z.array(z.number()).nullish(),
|
|
13
14
|
sellingPlacesId: z.array(z.number()).nullish(),
|
|
14
15
|
states: z.array(z.number()).max(2).nullish(),
|
|
@@ -514,25 +514,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
514
514
|
}>, "many">;
|
|
515
515
|
currentPage: z.ZodNumber;
|
|
516
516
|
totalPages: z.ZodNumber;
|
|
517
|
-
gettingStartedSteps: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
518
|
-
isShown: z.ZodBoolean;
|
|
519
|
-
addFirstItem: z.ZodBoolean;
|
|
520
|
-
markItemAsSold: z.ZodBoolean;
|
|
521
|
-
reach100Sales: z.ZodBoolean;
|
|
522
|
-
add10Items: z.ZodBoolean;
|
|
523
|
-
}, "strip", z.ZodTypeAny, {
|
|
524
|
-
isShown: boolean;
|
|
525
|
-
addFirstItem: boolean;
|
|
526
|
-
markItemAsSold: boolean;
|
|
527
|
-
reach100Sales: boolean;
|
|
528
|
-
add10Items: boolean;
|
|
529
|
-
}, {
|
|
530
|
-
isShown: boolean;
|
|
531
|
-
addFirstItem: boolean;
|
|
532
|
-
markItemAsSold: boolean;
|
|
533
|
-
reach100Sales: boolean;
|
|
534
|
-
add10Items: boolean;
|
|
535
|
-
}>>>;
|
|
536
517
|
}, "strip", z.ZodTypeAny, {
|
|
537
518
|
count: number;
|
|
538
519
|
allItemsCount: number;
|
|
@@ -648,13 +629,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
648
629
|
}[];
|
|
649
630
|
currentPage: number;
|
|
650
631
|
totalPages: number;
|
|
651
|
-
gettingStartedSteps?: {
|
|
652
|
-
isShown: boolean;
|
|
653
|
-
addFirstItem: boolean;
|
|
654
|
-
markItemAsSold: boolean;
|
|
655
|
-
reach100Sales: boolean;
|
|
656
|
-
add10Items: boolean;
|
|
657
|
-
} | null | undefined;
|
|
658
632
|
}, {
|
|
659
633
|
count: number;
|
|
660
634
|
allItemsCount: number;
|
|
@@ -770,12 +744,5 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
770
744
|
}[];
|
|
771
745
|
currentPage: number;
|
|
772
746
|
totalPages: number;
|
|
773
|
-
gettingStartedSteps?: {
|
|
774
|
-
isShown: boolean;
|
|
775
|
-
addFirstItem: boolean;
|
|
776
|
-
markItemAsSold: boolean;
|
|
777
|
-
reach100Sales: boolean;
|
|
778
|
-
add10Items: boolean;
|
|
779
|
-
} | null | undefined;
|
|
780
747
|
}>;
|
|
781
748
|
export type ItemsWithFilters = z.infer<typeof ItemsWithFiltersSchema>;
|
|
@@ -3,12 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ItemsWithFiltersSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const Item_1 = require("./Item");
|
|
6
|
-
const GettingStartedSteps_1 = require("../users/GettingStartedSteps");
|
|
7
6
|
exports.ItemsWithFiltersSchema = zod_1.z.object({
|
|
8
7
|
count: zod_1.z.number(),
|
|
9
8
|
allItemsCount: zod_1.z.number(),
|
|
10
9
|
rows: zod_1.z.array(Item_1.ItemSchema),
|
|
11
10
|
currentPage: zod_1.z.number(),
|
|
12
|
-
totalPages: zod_1.z.number()
|
|
13
|
-
gettingStartedSteps: GettingStartedSteps_1.GettingStartedStepsSchema.nullish()
|
|
11
|
+
totalPages: zod_1.z.number()
|
|
14
12
|
});
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import {z} from "zod"
|
|
2
2
|
import {ItemSchema} from "./Item"
|
|
3
|
-
import {GettingStartedStepsSchema} from "../users/GettingStartedSteps"
|
|
4
3
|
|
|
5
4
|
export const ItemsWithFiltersSchema = z.object({
|
|
6
5
|
count: z.number(),
|
|
7
6
|
allItemsCount: z.number(),
|
|
8
7
|
rows: z.array(ItemSchema),
|
|
9
8
|
currentPage: z.number(),
|
|
10
|
-
totalPages: z.number()
|
|
11
|
-
gettingStartedSteps: GettingStartedStepsSchema.nullish()
|
|
9
|
+
totalPages: z.number()
|
|
12
10
|
})
|
|
13
11
|
export type ItemsWithFilters = z.infer<typeof ItemsWithFiltersSchema>
|
|
@@ -21,6 +21,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
21
21
|
isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
22
22
|
material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
23
23
|
manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
24
25
|
}, "strip", z.ZodTypeAny, {
|
|
25
26
|
title?: string | null | undefined;
|
|
26
27
|
description?: string | null | undefined;
|
|
@@ -37,6 +38,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
37
38
|
isDraft?: boolean | null | undefined;
|
|
38
39
|
material?: number[] | null | undefined;
|
|
39
40
|
manufacturerLabelling?: string | null | undefined;
|
|
41
|
+
labels?: string[] | null | undefined;
|
|
40
42
|
}, {
|
|
41
43
|
title?: string | null | undefined;
|
|
42
44
|
description?: string | null | undefined;
|
|
@@ -53,6 +55,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
53
55
|
isDraft?: boolean | null | undefined;
|
|
54
56
|
material?: number[] | null | undefined;
|
|
55
57
|
manufacturerLabelling?: string | null | undefined;
|
|
58
|
+
labels?: string[] | null | undefined;
|
|
56
59
|
}>;
|
|
57
60
|
data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
61
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -73,6 +76,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
73
76
|
isDraft?: boolean | null | undefined;
|
|
74
77
|
material?: number[] | null | undefined;
|
|
75
78
|
manufacturerLabelling?: string | null | undefined;
|
|
79
|
+
labels?: string[] | null | undefined;
|
|
76
80
|
};
|
|
77
81
|
data?: string | null | undefined;
|
|
78
82
|
createdAt?: Date | null | undefined;
|
|
@@ -96,6 +100,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
96
100
|
isDraft?: boolean | null | undefined;
|
|
97
101
|
material?: number[] | null | undefined;
|
|
98
102
|
manufacturerLabelling?: string | null | undefined;
|
|
103
|
+
labels?: string[] | null | undefined;
|
|
99
104
|
};
|
|
100
105
|
data?: string | null | undefined;
|
|
101
106
|
createdAt?: Date | null | undefined;
|
|
@@ -147,6 +152,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
147
152
|
isDraft?: boolean | null | undefined;
|
|
148
153
|
material?: number[] | null | undefined;
|
|
149
154
|
manufacturerLabelling?: string | null | undefined;
|
|
155
|
+
labels?: string[] | null | undefined;
|
|
150
156
|
};
|
|
151
157
|
data?: string | null | undefined;
|
|
152
158
|
createdAt?: Date | null | undefined;
|
|
@@ -179,6 +185,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
179
185
|
isDraft?: boolean | null | undefined;
|
|
180
186
|
material?: number[] | null | undefined;
|
|
181
187
|
manufacturerLabelling?: string | null | undefined;
|
|
188
|
+
labels?: string[] | null | undefined;
|
|
182
189
|
};
|
|
183
190
|
data?: string | null | undefined;
|
|
184
191
|
createdAt?: Date | null | undefined;
|
|
@@ -3,13 +3,16 @@ export declare const ItemOnPlatformsRequestSchema: z.ZodObject<{
|
|
|
3
3
|
accountsId: z.ZodArray<z.ZodString, "many">;
|
|
4
4
|
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
5
5
|
disableGetDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6
|
+
overrideFileIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
6
7
|
}, "strip", z.ZodTypeAny, {
|
|
7
8
|
accountsId: string[];
|
|
8
9
|
publishingDate?: Date | null | undefined;
|
|
9
10
|
disableGetDraft?: boolean | null | undefined;
|
|
11
|
+
overrideFileIds?: string[] | null | undefined;
|
|
10
12
|
}, {
|
|
11
13
|
accountsId: string[];
|
|
12
14
|
publishingDate?: Date | null | undefined;
|
|
13
15
|
disableGetDraft?: boolean | null | undefined;
|
|
16
|
+
overrideFileIds?: string[] | null | undefined;
|
|
14
17
|
}>;
|
|
15
18
|
export type ItemOnPlatformsRequest = z.infer<typeof ItemOnPlatformsRequestSchema>;
|
|
@@ -5,5 +5,6 @@ const zod_1 = require("zod");
|
|
|
5
5
|
exports.ItemOnPlatformsRequestSchema = zod_1.z.object({
|
|
6
6
|
accountsId: zod_1.z.array(zod_1.z.string().uuid()),
|
|
7
7
|
publishingDate: zod_1.z.coerce.date().nullish(),
|
|
8
|
-
disableGetDraft: zod_1.z.boolean().nullish()
|
|
8
|
+
disableGetDraft: zod_1.z.boolean().nullish(),
|
|
9
|
+
overrideFileIds: zod_1.z.array(zod_1.z.string().uuid()).nullish()
|
|
9
10
|
});
|
|
@@ -3,6 +3,7 @@ import {z} from "zod"
|
|
|
3
3
|
export const ItemOnPlatformsRequestSchema = z.object({
|
|
4
4
|
accountsId: z.array(z.string().uuid()),
|
|
5
5
|
publishingDate: z.coerce.date().nullish(),
|
|
6
|
-
disableGetDraft: z.boolean().nullish()
|
|
6
|
+
disableGetDraft: z.boolean().nullish(),
|
|
7
|
+
overrideFileIds: z.array(z.string().uuid()).nullish()
|
|
7
8
|
})
|
|
8
9
|
export type ItemOnPlatformsRequest = z.infer<typeof ItemOnPlatformsRequestSchema>
|
|
@@ -4,14 +4,17 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
|
|
|
4
4
|
accountsId: z.ZodArray<z.ZodString, "many">;
|
|
5
5
|
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6
6
|
disableGetDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
7
|
+
overrideFileIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
7
8
|
}, "strip", z.ZodTypeAny, {
|
|
8
9
|
accountsId: string[];
|
|
9
10
|
publishingDate?: Date | null | undefined;
|
|
10
11
|
disableGetDraft?: boolean | null | undefined;
|
|
12
|
+
overrideFileIds?: string[] | null | undefined;
|
|
11
13
|
}, {
|
|
12
14
|
accountsId: string[];
|
|
13
15
|
publishingDate?: Date | null | undefined;
|
|
14
16
|
disableGetDraft?: boolean | null | undefined;
|
|
17
|
+
overrideFileIds?: string[] | null | undefined;
|
|
15
18
|
}>;
|
|
16
19
|
itemId: z.ZodNumber;
|
|
17
20
|
userId: z.ZodNumber;
|
|
@@ -22,6 +25,7 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
|
|
|
22
25
|
accountsId: string[];
|
|
23
26
|
publishingDate?: Date | null | undefined;
|
|
24
27
|
disableGetDraft?: boolean | null | undefined;
|
|
28
|
+
overrideFileIds?: string[] | null | undefined;
|
|
25
29
|
};
|
|
26
30
|
}, {
|
|
27
31
|
userId: number;
|
|
@@ -30,6 +34,7 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
|
|
|
30
34
|
accountsId: string[];
|
|
31
35
|
publishingDate?: Date | null | undefined;
|
|
32
36
|
disableGetDraft?: boolean | null | undefined;
|
|
37
|
+
overrideFileIds?: string[] | null | undefined;
|
|
33
38
|
};
|
|
34
39
|
}>;
|
|
35
40
|
export type ItemOnPlatformsRequestWithItem = z.infer<typeof ItemOnPlatformsRequestWithItemSchema>;
|