controlresell 2.2.12 → 2.3.2
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/catalogs/Catalog.d.ts +3 -6
- package/src/com/controlresell/models/catalogs/Catalog.js +2 -3
- package/src/com/controlresell/models/catalogs/Catalog.ts +2 -3
- package/src/com/controlresell/models/catalogs/CatalogRoot.d.ts +5 -10
- package/src/com/controlresell/models/items/CreatedItems.d.ts +139 -130
- package/src/com/controlresell/models/items/Item.d.ts +111 -104
- package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +139 -130
- package/src/com/controlresell/models/items/UpdatedItem.d.ts +139 -130
- package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +71 -71
- package/src/com/controlresell/models/items/history/ItemHistory.d.ts +78 -78
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.d.ts +156 -18
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.js +32 -26
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.ts +43 -26
- package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +5 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +5 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.d.ts +2 -2
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +4 -4
- package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +15 -0
- package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts +5 -0
- package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +21 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts +6 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.js +4 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.ts +4 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.d.ts +6 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.js +4 -1
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.ts +4 -1
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.d.ts +3 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.js +7 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.ts +6 -0
- package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.d.ts +6 -0
- package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.js +4 -0
- package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.ts +4 -0
- package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.d.ts +10 -0
- package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.d.ts +6 -0
- package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.js +4 -0
- package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.ts +4 -0
- package/src/com/controlresell/models/platforms/favorites/Favorite.d.ts +26 -0
- package/src/com/controlresell/models/platforms/favorites/FavoriteOnPlatformUpdateRequest.d.ts +5 -0
- package/src/com/controlresell/models/platforms/orders/Order.d.ts +9 -0
- package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.d.ts +5 -0
- package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +7 -0
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +150 -130
- package/src/com/controlresell/models/platforms/transactions/Transaction.d.ts +9 -0
- package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.d.ts +7 -0
- package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +150 -130
- package/src/com/controlresell/models/preferences/Preference.d.ts +356 -356
- package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +144 -130
- package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts +1121 -1121
- package/src/com/controlresell/models/preferences/PreferenceWithChildren.d.ts +815 -815
- package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts +275 -275
- package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts +276 -276
- package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +286 -286
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +31 -31
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.d.ts +96 -5
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.js +20 -16
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.ts +27 -16
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +41 -41
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +3476 -41
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.js +3 -1
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.ts +3 -1
- package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +229 -229
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts +232 -232
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts +541 -83
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.js +33 -27
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.ts +44 -27
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +229 -229
- package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts +5 -0
- package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +5 -0
- package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.d.ts +3 -0
- package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.js +1 -0
- package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.ts +1 -0
- package/src/com/controlresell/models/users/platforms/UserOnPlatform.d.ts +3 -0
- package/src/com/controlresell/models/users/platforms/UserOnPlatform.js +1 -0
- package/src/com/controlresell/models/users/platforms/UserOnPlatform.ts +1 -0
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +1205 -0
- package/src/com/controlresell/models/users/ws/UserWsPayload.js +34 -0
- package/src/com/controlresell/models/users/ws/UserWsPayload.ts +43 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +7 -3
- package/src/index.ts +2 -0
|
@@ -5,150 +5,6 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
5
5
|
name: z.ZodString;
|
|
6
6
|
weight: z.ZodNumber;
|
|
7
7
|
payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
8
|
-
type: z.ZodLiteral<"EMPTY">;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
type: "EMPTY";
|
|
11
|
-
}, {
|
|
12
|
-
type: "EMPTY";
|
|
13
|
-
}>, z.ZodObject<{
|
|
14
|
-
type: z.ZodLiteral<"PRICE">;
|
|
15
|
-
data: z.ZodObject<{
|
|
16
|
-
type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
|
|
17
|
-
value: z.ZodNumber;
|
|
18
|
-
roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
|
|
19
|
-
roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
-
negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
value: number;
|
|
23
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
24
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
25
|
-
roundStep?: number | null | undefined;
|
|
26
|
-
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
27
|
-
}, {
|
|
28
|
-
value: number;
|
|
29
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
30
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
31
|
-
roundStep?: number | null | undefined;
|
|
32
|
-
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
33
|
-
}>;
|
|
34
|
-
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
type: "PRICE";
|
|
36
|
-
data: {
|
|
37
|
-
value: number;
|
|
38
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
39
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
40
|
-
roundStep?: number | null | undefined;
|
|
41
|
-
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
42
|
-
};
|
|
43
|
-
}, {
|
|
44
|
-
type: "PRICE";
|
|
45
|
-
data: {
|
|
46
|
-
value: number;
|
|
47
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
48
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
49
|
-
roundStep?: number | null | undefined;
|
|
50
|
-
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
51
|
-
};
|
|
52
|
-
}>, z.ZodObject<{
|
|
53
|
-
type: z.ZodLiteral<"VISION">;
|
|
54
|
-
data: z.ZodObject<{
|
|
55
|
-
doRemoveBackground: z.ZodBoolean;
|
|
56
|
-
doSmartCrop: z.ZodBoolean;
|
|
57
|
-
doChangeBackground: z.ZodBoolean;
|
|
58
|
-
doRotate: z.ZodBoolean;
|
|
59
|
-
doAddBorders: z.ZodBoolean;
|
|
60
|
-
shadow: z.ZodBoolean;
|
|
61
|
-
targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
62
|
-
targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
63
|
-
newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
-
newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
-
rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
66
|
-
borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
67
|
-
borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
-
}, "strip", z.ZodTypeAny, {
|
|
69
|
-
doRemoveBackground: boolean;
|
|
70
|
-
doSmartCrop: boolean;
|
|
71
|
-
doChangeBackground: boolean;
|
|
72
|
-
doRotate: boolean;
|
|
73
|
-
doAddBorders: boolean;
|
|
74
|
-
shadow: boolean;
|
|
75
|
-
targetWidth?: number | null | undefined;
|
|
76
|
-
targetHeight?: number | null | undefined;
|
|
77
|
-
newBackgroundColor?: string | null | undefined;
|
|
78
|
-
newBackgroundUrl?: string | null | undefined;
|
|
79
|
-
rotationAngle?: number | null | undefined;
|
|
80
|
-
borderSize?: number | null | undefined;
|
|
81
|
-
borderColor?: string | null | undefined;
|
|
82
|
-
}, {
|
|
83
|
-
doRemoveBackground: boolean;
|
|
84
|
-
doSmartCrop: boolean;
|
|
85
|
-
doChangeBackground: boolean;
|
|
86
|
-
doRotate: boolean;
|
|
87
|
-
doAddBorders: boolean;
|
|
88
|
-
shadow: boolean;
|
|
89
|
-
targetWidth?: number | null | undefined;
|
|
90
|
-
targetHeight?: number | null | undefined;
|
|
91
|
-
newBackgroundColor?: string | null | undefined;
|
|
92
|
-
newBackgroundUrl?: string | null | undefined;
|
|
93
|
-
rotationAngle?: number | null | undefined;
|
|
94
|
-
borderSize?: number | null | undefined;
|
|
95
|
-
borderColor?: string | null | undefined;
|
|
96
|
-
}>;
|
|
97
|
-
}, "strip", z.ZodTypeAny, {
|
|
98
|
-
type: "VISION";
|
|
99
|
-
data: {
|
|
100
|
-
doRemoveBackground: boolean;
|
|
101
|
-
doSmartCrop: boolean;
|
|
102
|
-
doChangeBackground: boolean;
|
|
103
|
-
doRotate: boolean;
|
|
104
|
-
doAddBorders: boolean;
|
|
105
|
-
shadow: boolean;
|
|
106
|
-
targetWidth?: number | null | undefined;
|
|
107
|
-
targetHeight?: number | null | undefined;
|
|
108
|
-
newBackgroundColor?: string | null | undefined;
|
|
109
|
-
newBackgroundUrl?: string | null | undefined;
|
|
110
|
-
rotationAngle?: number | null | undefined;
|
|
111
|
-
borderSize?: number | null | undefined;
|
|
112
|
-
borderColor?: string | null | undefined;
|
|
113
|
-
};
|
|
114
|
-
}, {
|
|
115
|
-
type: "VISION";
|
|
116
|
-
data: {
|
|
117
|
-
doRemoveBackground: boolean;
|
|
118
|
-
doSmartCrop: boolean;
|
|
119
|
-
doChangeBackground: boolean;
|
|
120
|
-
doRotate: boolean;
|
|
121
|
-
doAddBorders: boolean;
|
|
122
|
-
shadow: boolean;
|
|
123
|
-
targetWidth?: number | null | undefined;
|
|
124
|
-
targetHeight?: number | null | undefined;
|
|
125
|
-
newBackgroundColor?: string | null | undefined;
|
|
126
|
-
newBackgroundUrl?: string | null | undefined;
|
|
127
|
-
rotationAngle?: number | null | undefined;
|
|
128
|
-
borderSize?: number | null | undefined;
|
|
129
|
-
borderColor?: string | null | undefined;
|
|
130
|
-
};
|
|
131
|
-
}>, z.ZodObject<{
|
|
132
|
-
type: z.ZodLiteral<"TEXT">;
|
|
133
|
-
data: z.ZodObject<{
|
|
134
|
-
text: z.ZodString;
|
|
135
|
-
}, "strip", z.ZodTypeAny, {
|
|
136
|
-
text: string;
|
|
137
|
-
}, {
|
|
138
|
-
text: string;
|
|
139
|
-
}>;
|
|
140
|
-
}, "strip", z.ZodTypeAny, {
|
|
141
|
-
type: "TEXT";
|
|
142
|
-
data: {
|
|
143
|
-
text: string;
|
|
144
|
-
};
|
|
145
|
-
}, {
|
|
146
|
-
type: "TEXT";
|
|
147
|
-
data: {
|
|
148
|
-
text: string;
|
|
149
|
-
};
|
|
150
|
-
}>, z.ZodObject<{
|
|
151
|
-
type: z.ZodLiteral<"ACTIONS">;
|
|
152
8
|
data: z.ZodObject<{
|
|
153
9
|
actions: z.ZodArray<z.ZodObject<{
|
|
154
10
|
type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO", "OFFER_MANUAL"]>;
|
|
@@ -160,26 +16,6 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
160
16
|
}, {
|
|
161
17
|
type: "EMPTY";
|
|
162
18
|
}>, z.ZodObject<{
|
|
163
|
-
type: z.ZodLiteral<"WAIT">;
|
|
164
|
-
data: z.ZodObject<{
|
|
165
|
-
seconds: z.ZodNumber;
|
|
166
|
-
}, "strip", z.ZodTypeAny, {
|
|
167
|
-
seconds: number;
|
|
168
|
-
}, {
|
|
169
|
-
seconds: number;
|
|
170
|
-
}>;
|
|
171
|
-
}, "strip", z.ZodTypeAny, {
|
|
172
|
-
type: "WAIT";
|
|
173
|
-
data: {
|
|
174
|
-
seconds: number;
|
|
175
|
-
};
|
|
176
|
-
}, {
|
|
177
|
-
type: "WAIT";
|
|
178
|
-
data: {
|
|
179
|
-
seconds: number;
|
|
180
|
-
};
|
|
181
|
-
}>, z.ZodObject<{
|
|
182
|
-
type: z.ZodLiteral<"PRICE">;
|
|
183
19
|
data: z.ZodObject<{
|
|
184
20
|
type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
|
|
185
21
|
value: z.ZodNumber;
|
|
@@ -199,6 +35,7 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
199
35
|
roundStep?: number | null | undefined;
|
|
200
36
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
201
37
|
}>;
|
|
38
|
+
type: z.ZodLiteral<"PRICE">;
|
|
202
39
|
}, "strip", z.ZodTypeAny, {
|
|
203
40
|
type: "PRICE";
|
|
204
41
|
data: {
|
|
@@ -218,7 +55,6 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
218
55
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
219
56
|
};
|
|
220
57
|
}>, z.ZodObject<{
|
|
221
|
-
type: z.ZodLiteral<"TEXT">;
|
|
222
58
|
data: z.ZodObject<{
|
|
223
59
|
text: z.ZodString;
|
|
224
60
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -226,6 +62,7 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
226
62
|
}, {
|
|
227
63
|
text: string;
|
|
228
64
|
}>;
|
|
65
|
+
type: z.ZodLiteral<"TEXT">;
|
|
229
66
|
}, "strip", z.ZodTypeAny, {
|
|
230
67
|
type: "TEXT";
|
|
231
68
|
data: {
|
|
@@ -236,17 +73,31 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
236
73
|
data: {
|
|
237
74
|
text: string;
|
|
238
75
|
};
|
|
76
|
+
}>, z.ZodObject<{
|
|
77
|
+
data: z.ZodObject<{
|
|
78
|
+
seconds: z.ZodNumber;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
seconds: number;
|
|
81
|
+
}, {
|
|
82
|
+
seconds: number;
|
|
83
|
+
}>;
|
|
84
|
+
type: z.ZodLiteral<"WAIT">;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
type: "WAIT";
|
|
87
|
+
data: {
|
|
88
|
+
seconds: number;
|
|
89
|
+
};
|
|
90
|
+
}, {
|
|
91
|
+
type: "WAIT";
|
|
92
|
+
data: {
|
|
93
|
+
seconds: number;
|
|
94
|
+
};
|
|
239
95
|
}>]>;
|
|
240
96
|
mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
241
97
|
}, "strip", z.ZodTypeAny, {
|
|
242
98
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
243
99
|
payload: {
|
|
244
100
|
type: "EMPTY";
|
|
245
|
-
} | {
|
|
246
|
-
type: "WAIT";
|
|
247
|
-
data: {
|
|
248
|
-
seconds: number;
|
|
249
|
-
};
|
|
250
101
|
} | {
|
|
251
102
|
type: "PRICE";
|
|
252
103
|
data: {
|
|
@@ -261,6 +112,11 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
261
112
|
data: {
|
|
262
113
|
text: string;
|
|
263
114
|
};
|
|
115
|
+
} | {
|
|
116
|
+
type: "WAIT";
|
|
117
|
+
data: {
|
|
118
|
+
seconds: number;
|
|
119
|
+
};
|
|
264
120
|
};
|
|
265
121
|
enabled: boolean;
|
|
266
122
|
mandatory?: boolean | null | undefined;
|
|
@@ -268,11 +124,6 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
268
124
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
269
125
|
payload: {
|
|
270
126
|
type: "EMPTY";
|
|
271
|
-
} | {
|
|
272
|
-
type: "WAIT";
|
|
273
|
-
data: {
|
|
274
|
-
seconds: number;
|
|
275
|
-
};
|
|
276
127
|
} | {
|
|
277
128
|
type: "PRICE";
|
|
278
129
|
data: {
|
|
@@ -287,6 +138,11 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
287
138
|
data: {
|
|
288
139
|
text: string;
|
|
289
140
|
};
|
|
141
|
+
} | {
|
|
142
|
+
type: "WAIT";
|
|
143
|
+
data: {
|
|
144
|
+
seconds: number;
|
|
145
|
+
};
|
|
290
146
|
};
|
|
291
147
|
enabled: boolean;
|
|
292
148
|
mandatory?: boolean | null | undefined;
|
|
@@ -296,11 +152,6 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
296
152
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
297
153
|
payload: {
|
|
298
154
|
type: "EMPTY";
|
|
299
|
-
} | {
|
|
300
|
-
type: "WAIT";
|
|
301
|
-
data: {
|
|
302
|
-
seconds: number;
|
|
303
|
-
};
|
|
304
155
|
} | {
|
|
305
156
|
type: "PRICE";
|
|
306
157
|
data: {
|
|
@@ -315,6 +166,11 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
315
166
|
data: {
|
|
316
167
|
text: string;
|
|
317
168
|
};
|
|
169
|
+
} | {
|
|
170
|
+
type: "WAIT";
|
|
171
|
+
data: {
|
|
172
|
+
seconds: number;
|
|
173
|
+
};
|
|
318
174
|
};
|
|
319
175
|
enabled: boolean;
|
|
320
176
|
mandatory?: boolean | null | undefined;
|
|
@@ -324,11 +180,6 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
324
180
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
325
181
|
payload: {
|
|
326
182
|
type: "EMPTY";
|
|
327
|
-
} | {
|
|
328
|
-
type: "WAIT";
|
|
329
|
-
data: {
|
|
330
|
-
seconds: number;
|
|
331
|
-
};
|
|
332
183
|
} | {
|
|
333
184
|
type: "PRICE";
|
|
334
185
|
data: {
|
|
@@ -343,11 +194,17 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
343
194
|
data: {
|
|
344
195
|
text: string;
|
|
345
196
|
};
|
|
197
|
+
} | {
|
|
198
|
+
type: "WAIT";
|
|
199
|
+
data: {
|
|
200
|
+
seconds: number;
|
|
201
|
+
};
|
|
346
202
|
};
|
|
347
203
|
enabled: boolean;
|
|
348
204
|
mandatory?: boolean | null | undefined;
|
|
349
205
|
}[];
|
|
350
206
|
}>;
|
|
207
|
+
type: z.ZodLiteral<"ACTIONS">;
|
|
351
208
|
}, "strip", z.ZodTypeAny, {
|
|
352
209
|
type: "ACTIONS";
|
|
353
210
|
data: {
|
|
@@ -355,11 +212,6 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
355
212
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
356
213
|
payload: {
|
|
357
214
|
type: "EMPTY";
|
|
358
|
-
} | {
|
|
359
|
-
type: "WAIT";
|
|
360
|
-
data: {
|
|
361
|
-
seconds: number;
|
|
362
|
-
};
|
|
363
215
|
} | {
|
|
364
216
|
type: "PRICE";
|
|
365
217
|
data: {
|
|
@@ -374,6 +226,11 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
374
226
|
data: {
|
|
375
227
|
text: string;
|
|
376
228
|
};
|
|
229
|
+
} | {
|
|
230
|
+
type: "WAIT";
|
|
231
|
+
data: {
|
|
232
|
+
seconds: number;
|
|
233
|
+
};
|
|
377
234
|
};
|
|
378
235
|
enabled: boolean;
|
|
379
236
|
mandatory?: boolean | null | undefined;
|
|
@@ -386,11 +243,6 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
386
243
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
387
244
|
payload: {
|
|
388
245
|
type: "EMPTY";
|
|
389
|
-
} | {
|
|
390
|
-
type: "WAIT";
|
|
391
|
-
data: {
|
|
392
|
-
seconds: number;
|
|
393
|
-
};
|
|
394
246
|
} | {
|
|
395
247
|
type: "PRICE";
|
|
396
248
|
data: {
|
|
@@ -405,13 +257,23 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
405
257
|
data: {
|
|
406
258
|
text: string;
|
|
407
259
|
};
|
|
260
|
+
} | {
|
|
261
|
+
type: "WAIT";
|
|
262
|
+
data: {
|
|
263
|
+
seconds: number;
|
|
264
|
+
};
|
|
408
265
|
};
|
|
409
266
|
enabled: boolean;
|
|
410
267
|
mandatory?: boolean | null | undefined;
|
|
411
268
|
}[];
|
|
412
269
|
};
|
|
413
270
|
}>, z.ZodObject<{
|
|
414
|
-
type: z.ZodLiteral<"
|
|
271
|
+
type: z.ZodLiteral<"EMPTY">;
|
|
272
|
+
}, "strip", z.ZodTypeAny, {
|
|
273
|
+
type: "EMPTY";
|
|
274
|
+
}, {
|
|
275
|
+
type: "EMPTY";
|
|
276
|
+
}>, z.ZodObject<{
|
|
415
277
|
data: z.ZodObject<{
|
|
416
278
|
fees: z.ZodArray<z.ZodObject<{
|
|
417
279
|
name: z.ZodString;
|
|
@@ -434,6 +296,7 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
434
296
|
name: string;
|
|
435
297
|
}[];
|
|
436
298
|
}>;
|
|
299
|
+
type: z.ZodLiteral<"FEES">;
|
|
437
300
|
}, "strip", z.ZodTypeAny, {
|
|
438
301
|
type: "FEES";
|
|
439
302
|
data: {
|
|
@@ -450,13 +313,28 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
450
313
|
name: string;
|
|
451
314
|
}[];
|
|
452
315
|
};
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
316
|
+
}>, z.ZodObject<{
|
|
317
|
+
data: z.ZodObject<{
|
|
318
|
+
type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
|
|
319
|
+
value: z.ZodNumber;
|
|
320
|
+
roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
|
|
321
|
+
roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
322
|
+
negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
|
|
323
|
+
}, "strip", z.ZodTypeAny, {
|
|
324
|
+
value: number;
|
|
325
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
326
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
327
|
+
roundStep?: number | null | undefined;
|
|
328
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
329
|
+
}, {
|
|
330
|
+
value: number;
|
|
331
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
332
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
333
|
+
roundStep?: number | null | undefined;
|
|
334
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
335
|
+
}>;
|
|
336
|
+
type: z.ZodLiteral<"PRICE">;
|
|
337
|
+
}, "strip", z.ZodTypeAny, {
|
|
460
338
|
type: "PRICE";
|
|
461
339
|
data: {
|
|
462
340
|
value: number;
|
|
@@ -465,7 +343,80 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
465
343
|
roundStep?: number | null | undefined;
|
|
466
344
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
467
345
|
};
|
|
468
|
-
}
|
|
346
|
+
}, {
|
|
347
|
+
type: "PRICE";
|
|
348
|
+
data: {
|
|
349
|
+
value: number;
|
|
350
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
351
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
352
|
+
roundStep?: number | null | undefined;
|
|
353
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
354
|
+
};
|
|
355
|
+
}>, z.ZodObject<{
|
|
356
|
+
data: z.ZodObject<{
|
|
357
|
+
text: z.ZodString;
|
|
358
|
+
}, "strip", z.ZodTypeAny, {
|
|
359
|
+
text: string;
|
|
360
|
+
}, {
|
|
361
|
+
text: string;
|
|
362
|
+
}>;
|
|
363
|
+
type: z.ZodLiteral<"TEXT">;
|
|
364
|
+
}, "strip", z.ZodTypeAny, {
|
|
365
|
+
type: "TEXT";
|
|
366
|
+
data: {
|
|
367
|
+
text: string;
|
|
368
|
+
};
|
|
369
|
+
}, {
|
|
370
|
+
type: "TEXT";
|
|
371
|
+
data: {
|
|
372
|
+
text: string;
|
|
373
|
+
};
|
|
374
|
+
}>, z.ZodObject<{
|
|
375
|
+
data: z.ZodObject<{
|
|
376
|
+
doRemoveBackground: z.ZodBoolean;
|
|
377
|
+
doSmartCrop: z.ZodBoolean;
|
|
378
|
+
doChangeBackground: z.ZodBoolean;
|
|
379
|
+
doRotate: z.ZodBoolean;
|
|
380
|
+
doAddBorders: z.ZodBoolean;
|
|
381
|
+
shadow: z.ZodBoolean;
|
|
382
|
+
targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
383
|
+
targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
384
|
+
newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
385
|
+
newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
386
|
+
rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
387
|
+
borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
388
|
+
borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
389
|
+
}, "strip", z.ZodTypeAny, {
|
|
390
|
+
doRemoveBackground: boolean;
|
|
391
|
+
doSmartCrop: boolean;
|
|
392
|
+
doChangeBackground: boolean;
|
|
393
|
+
doRotate: boolean;
|
|
394
|
+
doAddBorders: boolean;
|
|
395
|
+
shadow: boolean;
|
|
396
|
+
targetWidth?: number | null | undefined;
|
|
397
|
+
targetHeight?: number | null | undefined;
|
|
398
|
+
newBackgroundColor?: string | null | undefined;
|
|
399
|
+
newBackgroundUrl?: string | null | undefined;
|
|
400
|
+
rotationAngle?: number | null | undefined;
|
|
401
|
+
borderSize?: number | null | undefined;
|
|
402
|
+
borderColor?: string | null | undefined;
|
|
403
|
+
}, {
|
|
404
|
+
doRemoveBackground: boolean;
|
|
405
|
+
doSmartCrop: boolean;
|
|
406
|
+
doChangeBackground: boolean;
|
|
407
|
+
doRotate: boolean;
|
|
408
|
+
doAddBorders: boolean;
|
|
409
|
+
shadow: boolean;
|
|
410
|
+
targetWidth?: number | null | undefined;
|
|
411
|
+
targetHeight?: number | null | undefined;
|
|
412
|
+
newBackgroundColor?: string | null | undefined;
|
|
413
|
+
newBackgroundUrl?: string | null | undefined;
|
|
414
|
+
rotationAngle?: number | null | undefined;
|
|
415
|
+
borderSize?: number | null | undefined;
|
|
416
|
+
borderColor?: string | null | undefined;
|
|
417
|
+
}>;
|
|
418
|
+
type: z.ZodLiteral<"VISION">;
|
|
419
|
+
}, "strip", z.ZodTypeAny, {
|
|
469
420
|
type: "VISION";
|
|
470
421
|
data: {
|
|
471
422
|
doRemoveBackground: boolean;
|
|
@@ -482,23 +433,34 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
482
433
|
borderSize?: number | null | undefined;
|
|
483
434
|
borderColor?: string | null | undefined;
|
|
484
435
|
};
|
|
485
|
-
}
|
|
486
|
-
type: "
|
|
436
|
+
}, {
|
|
437
|
+
type: "VISION";
|
|
487
438
|
data: {
|
|
488
|
-
|
|
439
|
+
doRemoveBackground: boolean;
|
|
440
|
+
doSmartCrop: boolean;
|
|
441
|
+
doChangeBackground: boolean;
|
|
442
|
+
doRotate: boolean;
|
|
443
|
+
doAddBorders: boolean;
|
|
444
|
+
shadow: boolean;
|
|
445
|
+
targetWidth?: number | null | undefined;
|
|
446
|
+
targetHeight?: number | null | undefined;
|
|
447
|
+
newBackgroundColor?: string | null | undefined;
|
|
448
|
+
newBackgroundUrl?: string | null | undefined;
|
|
449
|
+
rotationAngle?: number | null | undefined;
|
|
450
|
+
borderSize?: number | null | undefined;
|
|
451
|
+
borderColor?: string | null | undefined;
|
|
489
452
|
};
|
|
490
|
-
}
|
|
453
|
+
}>]>;
|
|
454
|
+
}, "strip", z.ZodTypeAny, {
|
|
455
|
+
id: string;
|
|
456
|
+
name: string;
|
|
457
|
+
payload: {
|
|
491
458
|
type: "ACTIONS";
|
|
492
459
|
data: {
|
|
493
460
|
actions: {
|
|
494
461
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
495
462
|
payload: {
|
|
496
463
|
type: "EMPTY";
|
|
497
|
-
} | {
|
|
498
|
-
type: "WAIT";
|
|
499
|
-
data: {
|
|
500
|
-
seconds: number;
|
|
501
|
-
};
|
|
502
464
|
} | {
|
|
503
465
|
type: "PRICE";
|
|
504
466
|
data: {
|
|
@@ -513,11 +475,18 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
513
475
|
data: {
|
|
514
476
|
text: string;
|
|
515
477
|
};
|
|
478
|
+
} | {
|
|
479
|
+
type: "WAIT";
|
|
480
|
+
data: {
|
|
481
|
+
seconds: number;
|
|
482
|
+
};
|
|
516
483
|
};
|
|
517
484
|
enabled: boolean;
|
|
518
485
|
mandatory?: boolean | null | undefined;
|
|
519
486
|
}[];
|
|
520
487
|
};
|
|
488
|
+
} | {
|
|
489
|
+
type: "EMPTY";
|
|
521
490
|
} | {
|
|
522
491
|
type: "FEES";
|
|
523
492
|
data: {
|
|
@@ -526,14 +495,6 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
526
495
|
name: string;
|
|
527
496
|
}[];
|
|
528
497
|
};
|
|
529
|
-
};
|
|
530
|
-
caseId: string;
|
|
531
|
-
weight: number;
|
|
532
|
-
}, {
|
|
533
|
-
id: string;
|
|
534
|
-
name: string;
|
|
535
|
-
payload: {
|
|
536
|
-
type: "EMPTY";
|
|
537
498
|
} | {
|
|
538
499
|
type: "PRICE";
|
|
539
500
|
data: {
|
|
@@ -543,6 +504,11 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
543
504
|
roundStep?: number | null | undefined;
|
|
544
505
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
545
506
|
};
|
|
507
|
+
} | {
|
|
508
|
+
type: "TEXT";
|
|
509
|
+
data: {
|
|
510
|
+
text: string;
|
|
511
|
+
};
|
|
546
512
|
} | {
|
|
547
513
|
type: "VISION";
|
|
548
514
|
data: {
|
|
@@ -560,23 +526,19 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
560
526
|
borderSize?: number | null | undefined;
|
|
561
527
|
borderColor?: string | null | undefined;
|
|
562
528
|
};
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
529
|
+
};
|
|
530
|
+
caseId: string;
|
|
531
|
+
weight: number;
|
|
532
|
+
}, {
|
|
533
|
+
id: string;
|
|
534
|
+
name: string;
|
|
535
|
+
payload: {
|
|
569
536
|
type: "ACTIONS";
|
|
570
537
|
data: {
|
|
571
538
|
actions: {
|
|
572
539
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
573
540
|
payload: {
|
|
574
541
|
type: "EMPTY";
|
|
575
|
-
} | {
|
|
576
|
-
type: "WAIT";
|
|
577
|
-
data: {
|
|
578
|
-
seconds: number;
|
|
579
|
-
};
|
|
580
542
|
} | {
|
|
581
543
|
type: "PRICE";
|
|
582
544
|
data: {
|
|
@@ -591,11 +553,18 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
591
553
|
data: {
|
|
592
554
|
text: string;
|
|
593
555
|
};
|
|
556
|
+
} | {
|
|
557
|
+
type: "WAIT";
|
|
558
|
+
data: {
|
|
559
|
+
seconds: number;
|
|
560
|
+
};
|
|
594
561
|
};
|
|
595
562
|
enabled: boolean;
|
|
596
563
|
mandatory?: boolean | null | undefined;
|
|
597
564
|
}[];
|
|
598
565
|
};
|
|
566
|
+
} | {
|
|
567
|
+
type: "EMPTY";
|
|
599
568
|
} | {
|
|
600
569
|
type: "FEES";
|
|
601
570
|
data: {
|
|
@@ -604,6 +573,37 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
604
573
|
name: string;
|
|
605
574
|
}[];
|
|
606
575
|
};
|
|
576
|
+
} | {
|
|
577
|
+
type: "PRICE";
|
|
578
|
+
data: {
|
|
579
|
+
value: number;
|
|
580
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
581
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
582
|
+
roundStep?: number | null | undefined;
|
|
583
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
584
|
+
};
|
|
585
|
+
} | {
|
|
586
|
+
type: "TEXT";
|
|
587
|
+
data: {
|
|
588
|
+
text: string;
|
|
589
|
+
};
|
|
590
|
+
} | {
|
|
591
|
+
type: "VISION";
|
|
592
|
+
data: {
|
|
593
|
+
doRemoveBackground: boolean;
|
|
594
|
+
doSmartCrop: boolean;
|
|
595
|
+
doChangeBackground: boolean;
|
|
596
|
+
doRotate: boolean;
|
|
597
|
+
doAddBorders: boolean;
|
|
598
|
+
shadow: boolean;
|
|
599
|
+
targetWidth?: number | null | undefined;
|
|
600
|
+
targetHeight?: number | null | undefined;
|
|
601
|
+
newBackgroundColor?: string | null | undefined;
|
|
602
|
+
newBackgroundUrl?: string | null | undefined;
|
|
603
|
+
rotationAngle?: number | null | undefined;
|
|
604
|
+
borderSize?: number | null | undefined;
|
|
605
|
+
borderColor?: string | null | undefined;
|
|
606
|
+
};
|
|
607
607
|
};
|
|
608
608
|
caseId: string;
|
|
609
609
|
weight: number;
|