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