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.
Files changed (37) hide show
  1. package/package.json +2 -2
  2. package/src/com/controlresell/models/items/CreatedItems.d.ts +130 -130
  3. package/src/com/controlresell/models/items/Item.d.ts +104 -104
  4. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +130 -130
  5. package/src/com/controlresell/models/items/UpdatedItem.d.ts +130 -130
  6. package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +71 -71
  7. package/src/com/controlresell/models/items/history/ItemHistory.d.ts +78 -78
  8. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.d.ts +156 -18
  9. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.js +32 -26
  10. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.ts +43 -26
  11. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +130 -130
  12. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +130 -130
  13. package/src/com/controlresell/models/preferences/Preference.d.ts +356 -356
  14. package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +130 -130
  15. package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts +1121 -1121
  16. package/src/com/controlresell/models/preferences/PreferenceWithChildren.d.ts +815 -815
  17. package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts +275 -275
  18. package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts +276 -276
  19. package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +286 -286
  20. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +31 -31
  21. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.d.ts +96 -5
  22. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.js +20 -16
  23. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.ts +27 -16
  24. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +41 -41
  25. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +1417 -1417
  26. package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +229 -229
  27. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts +232 -232
  28. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts +541 -83
  29. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.js +33 -27
  30. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.ts +44 -27
  31. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +229 -229
  32. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +1205 -0
  33. package/src/com/controlresell/models/users/ws/UserWsPayload.js +34 -0
  34. package/src/com/controlresell/models/users/ws/UserWsPayload.ts +43 -0
  35. package/src/index.d.ts +1 -0
  36. package/src/index.js +3 -1
  37. package/src/index.ts +1 -0
@@ -12,150 +12,6 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
12
12
  name: z.ZodString;
13
13
  weight: z.ZodNumber;
14
14
  payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15
- type: z.ZodLiteral<"EMPTY">;
16
- }, "strip", z.ZodTypeAny, {
17
- type: "EMPTY";
18
- }, {
19
- type: "EMPTY";
20
- }>, z.ZodObject<{
21
- type: z.ZodLiteral<"PRICE">;
22
- data: z.ZodObject<{
23
- type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
24
- value: z.ZodNumber;
25
- roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
26
- roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
- negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
28
- }, "strip", z.ZodTypeAny, {
29
- value: number;
30
- type: "PERCENTAGE" | "ABSOLUTE";
31
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
32
- roundStep?: number | null | undefined;
33
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
34
- }, {
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
- }, "strip", z.ZodTypeAny, {
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
- }, {
51
- type: "PRICE";
52
- data: {
53
- value: number;
54
- type: "PERCENTAGE" | "ABSOLUTE";
55
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
56
- roundStep?: number | null | undefined;
57
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
58
- };
59
- }>, z.ZodObject<{
60
- type: z.ZodLiteral<"VISION">;
61
- data: z.ZodObject<{
62
- doRemoveBackground: z.ZodBoolean;
63
- doSmartCrop: z.ZodBoolean;
64
- doChangeBackground: z.ZodBoolean;
65
- doRotate: z.ZodBoolean;
66
- doAddBorders: z.ZodBoolean;
67
- shadow: z.ZodBoolean;
68
- targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
69
- targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
70
- newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
- newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
- rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
73
- borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
74
- borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
- }, "strip", z.ZodTypeAny, {
76
- doRemoveBackground: boolean;
77
- doSmartCrop: boolean;
78
- doChangeBackground: boolean;
79
- doRotate: boolean;
80
- doAddBorders: boolean;
81
- shadow: boolean;
82
- targetWidth?: number | null | undefined;
83
- targetHeight?: number | null | undefined;
84
- newBackgroundColor?: string | null | undefined;
85
- newBackgroundUrl?: string | null | undefined;
86
- rotationAngle?: number | null | undefined;
87
- borderSize?: number | null | undefined;
88
- borderColor?: string | null | undefined;
89
- }, {
90
- doRemoveBackground: boolean;
91
- doSmartCrop: boolean;
92
- doChangeBackground: boolean;
93
- doRotate: boolean;
94
- doAddBorders: boolean;
95
- shadow: boolean;
96
- targetWidth?: number | null | undefined;
97
- targetHeight?: number | null | undefined;
98
- newBackgroundColor?: string | null | undefined;
99
- newBackgroundUrl?: string | null | undefined;
100
- rotationAngle?: number | null | undefined;
101
- borderSize?: number | null | undefined;
102
- borderColor?: string | null | undefined;
103
- }>;
104
- }, "strip", z.ZodTypeAny, {
105
- type: "VISION";
106
- data: {
107
- doRemoveBackground: boolean;
108
- doSmartCrop: boolean;
109
- doChangeBackground: boolean;
110
- doRotate: boolean;
111
- doAddBorders: boolean;
112
- shadow: boolean;
113
- targetWidth?: number | null | undefined;
114
- targetHeight?: number | null | undefined;
115
- newBackgroundColor?: string | null | undefined;
116
- newBackgroundUrl?: string | null | undefined;
117
- rotationAngle?: number | null | undefined;
118
- borderSize?: number | null | undefined;
119
- borderColor?: string | null | undefined;
120
- };
121
- }, {
122
- type: "VISION";
123
- data: {
124
- doRemoveBackground: boolean;
125
- doSmartCrop: boolean;
126
- doChangeBackground: boolean;
127
- doRotate: boolean;
128
- doAddBorders: boolean;
129
- shadow: boolean;
130
- targetWidth?: number | null | undefined;
131
- targetHeight?: number | null | undefined;
132
- newBackgroundColor?: string | null | undefined;
133
- newBackgroundUrl?: string | null | undefined;
134
- rotationAngle?: number | null | undefined;
135
- borderSize?: number | null | undefined;
136
- borderColor?: string | null | undefined;
137
- };
138
- }>, z.ZodObject<{
139
- type: z.ZodLiteral<"TEXT">;
140
- data: z.ZodObject<{
141
- text: z.ZodString;
142
- }, "strip", z.ZodTypeAny, {
143
- text: string;
144
- }, {
145
- text: string;
146
- }>;
147
- }, "strip", z.ZodTypeAny, {
148
- type: "TEXT";
149
- data: {
150
- text: string;
151
- };
152
- }, {
153
- type: "TEXT";
154
- data: {
155
- text: string;
156
- };
157
- }>, z.ZodObject<{
158
- type: z.ZodLiteral<"ACTIONS">;
159
15
  data: z.ZodObject<{
160
16
  actions: z.ZodArray<z.ZodObject<{
161
17
  type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO", "OFFER_MANUAL"]>;
@@ -167,26 +23,6 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
167
23
  }, {
168
24
  type: "EMPTY";
169
25
  }>, z.ZodObject<{
170
- type: z.ZodLiteral<"WAIT">;
171
- data: z.ZodObject<{
172
- seconds: z.ZodNumber;
173
- }, "strip", z.ZodTypeAny, {
174
- seconds: number;
175
- }, {
176
- seconds: number;
177
- }>;
178
- }, "strip", z.ZodTypeAny, {
179
- type: "WAIT";
180
- data: {
181
- seconds: number;
182
- };
183
- }, {
184
- type: "WAIT";
185
- data: {
186
- seconds: number;
187
- };
188
- }>, z.ZodObject<{
189
- type: z.ZodLiteral<"PRICE">;
190
26
  data: z.ZodObject<{
191
27
  type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
192
28
  value: z.ZodNumber;
@@ -206,6 +42,7 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
206
42
  roundStep?: number | null | undefined;
207
43
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
208
44
  }>;
45
+ type: z.ZodLiteral<"PRICE">;
209
46
  }, "strip", z.ZodTypeAny, {
210
47
  type: "PRICE";
211
48
  data: {
@@ -225,7 +62,6 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
225
62
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
226
63
  };
227
64
  }>, z.ZodObject<{
228
- type: z.ZodLiteral<"TEXT">;
229
65
  data: z.ZodObject<{
230
66
  text: z.ZodString;
231
67
  }, "strip", z.ZodTypeAny, {
@@ -233,6 +69,7 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
233
69
  }, {
234
70
  text: string;
235
71
  }>;
72
+ type: z.ZodLiteral<"TEXT">;
236
73
  }, "strip", z.ZodTypeAny, {
237
74
  type: "TEXT";
238
75
  data: {
@@ -243,17 +80,31 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
243
80
  data: {
244
81
  text: string;
245
82
  };
83
+ }>, z.ZodObject<{
84
+ data: z.ZodObject<{
85
+ seconds: z.ZodNumber;
86
+ }, "strip", z.ZodTypeAny, {
87
+ seconds: number;
88
+ }, {
89
+ seconds: number;
90
+ }>;
91
+ type: z.ZodLiteral<"WAIT">;
92
+ }, "strip", z.ZodTypeAny, {
93
+ type: "WAIT";
94
+ data: {
95
+ seconds: number;
96
+ };
97
+ }, {
98
+ type: "WAIT";
99
+ data: {
100
+ seconds: number;
101
+ };
246
102
  }>]>;
247
103
  mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
248
104
  }, "strip", z.ZodTypeAny, {
249
105
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
250
106
  payload: {
251
107
  type: "EMPTY";
252
- } | {
253
- type: "WAIT";
254
- data: {
255
- seconds: number;
256
- };
257
108
  } | {
258
109
  type: "PRICE";
259
110
  data: {
@@ -268,6 +119,11 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
268
119
  data: {
269
120
  text: string;
270
121
  };
122
+ } | {
123
+ type: "WAIT";
124
+ data: {
125
+ seconds: number;
126
+ };
271
127
  };
272
128
  enabled: boolean;
273
129
  mandatory?: boolean | null | undefined;
@@ -275,11 +131,6 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
275
131
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
276
132
  payload: {
277
133
  type: "EMPTY";
278
- } | {
279
- type: "WAIT";
280
- data: {
281
- seconds: number;
282
- };
283
134
  } | {
284
135
  type: "PRICE";
285
136
  data: {
@@ -294,6 +145,11 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
294
145
  data: {
295
146
  text: string;
296
147
  };
148
+ } | {
149
+ type: "WAIT";
150
+ data: {
151
+ seconds: number;
152
+ };
297
153
  };
298
154
  enabled: boolean;
299
155
  mandatory?: boolean | null | undefined;
@@ -303,11 +159,6 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
303
159
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
304
160
  payload: {
305
161
  type: "EMPTY";
306
- } | {
307
- type: "WAIT";
308
- data: {
309
- seconds: number;
310
- };
311
162
  } | {
312
163
  type: "PRICE";
313
164
  data: {
@@ -322,6 +173,11 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
322
173
  data: {
323
174
  text: string;
324
175
  };
176
+ } | {
177
+ type: "WAIT";
178
+ data: {
179
+ seconds: number;
180
+ };
325
181
  };
326
182
  enabled: boolean;
327
183
  mandatory?: boolean | null | undefined;
@@ -331,11 +187,6 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
331
187
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
332
188
  payload: {
333
189
  type: "EMPTY";
334
- } | {
335
- type: "WAIT";
336
- data: {
337
- seconds: number;
338
- };
339
190
  } | {
340
191
  type: "PRICE";
341
192
  data: {
@@ -350,11 +201,17 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
350
201
  data: {
351
202
  text: string;
352
203
  };
204
+ } | {
205
+ type: "WAIT";
206
+ data: {
207
+ seconds: number;
208
+ };
353
209
  };
354
210
  enabled: boolean;
355
211
  mandatory?: boolean | null | undefined;
356
212
  }[];
357
213
  }>;
214
+ type: z.ZodLiteral<"ACTIONS">;
358
215
  }, "strip", z.ZodTypeAny, {
359
216
  type: "ACTIONS";
360
217
  data: {
@@ -362,11 +219,6 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
362
219
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
363
220
  payload: {
364
221
  type: "EMPTY";
365
- } | {
366
- type: "WAIT";
367
- data: {
368
- seconds: number;
369
- };
370
222
  } | {
371
223
  type: "PRICE";
372
224
  data: {
@@ -381,6 +233,11 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
381
233
  data: {
382
234
  text: string;
383
235
  };
236
+ } | {
237
+ type: "WAIT";
238
+ data: {
239
+ seconds: number;
240
+ };
384
241
  };
385
242
  enabled: boolean;
386
243
  mandatory?: boolean | null | undefined;
@@ -393,11 +250,6 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
393
250
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
394
251
  payload: {
395
252
  type: "EMPTY";
396
- } | {
397
- type: "WAIT";
398
- data: {
399
- seconds: number;
400
- };
401
253
  } | {
402
254
  type: "PRICE";
403
255
  data: {
@@ -412,13 +264,23 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
412
264
  data: {
413
265
  text: string;
414
266
  };
267
+ } | {
268
+ type: "WAIT";
269
+ data: {
270
+ seconds: number;
271
+ };
415
272
  };
416
273
  enabled: boolean;
417
274
  mandatory?: boolean | null | undefined;
418
275
  }[];
419
276
  };
420
277
  }>, z.ZodObject<{
421
- type: z.ZodLiteral<"FEES">;
278
+ type: z.ZodLiteral<"EMPTY">;
279
+ }, "strip", z.ZodTypeAny, {
280
+ type: "EMPTY";
281
+ }, {
282
+ type: "EMPTY";
283
+ }>, z.ZodObject<{
422
284
  data: z.ZodObject<{
423
285
  fees: z.ZodArray<z.ZodObject<{
424
286
  name: z.ZodString;
@@ -441,6 +303,7 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
441
303
  name: string;
442
304
  }[];
443
305
  }>;
306
+ type: z.ZodLiteral<"FEES">;
444
307
  }, "strip", z.ZodTypeAny, {
445
308
  type: "FEES";
446
309
  data: {
@@ -457,13 +320,28 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
457
320
  name: string;
458
321
  }[];
459
322
  };
460
- }>]>;
461
- }, "strip", z.ZodTypeAny, {
462
- id: string;
463
- name: string;
464
- payload: {
465
- type: "EMPTY";
466
- } | {
323
+ }>, z.ZodObject<{
324
+ data: z.ZodObject<{
325
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
326
+ value: z.ZodNumber;
327
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
328
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
329
+ negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
330
+ }, "strip", z.ZodTypeAny, {
331
+ value: number;
332
+ type: "PERCENTAGE" | "ABSOLUTE";
333
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
334
+ roundStep?: number | null | undefined;
335
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
336
+ }, {
337
+ value: number;
338
+ type: "PERCENTAGE" | "ABSOLUTE";
339
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
340
+ roundStep?: number | null | undefined;
341
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
342
+ }>;
343
+ type: z.ZodLiteral<"PRICE">;
344
+ }, "strip", z.ZodTypeAny, {
467
345
  type: "PRICE";
468
346
  data: {
469
347
  value: number;
@@ -472,7 +350,80 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
472
350
  roundStep?: number | null | undefined;
473
351
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
474
352
  };
475
- } | {
353
+ }, {
354
+ type: "PRICE";
355
+ data: {
356
+ value: number;
357
+ type: "PERCENTAGE" | "ABSOLUTE";
358
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
359
+ roundStep?: number | null | undefined;
360
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
361
+ };
362
+ }>, z.ZodObject<{
363
+ data: z.ZodObject<{
364
+ text: z.ZodString;
365
+ }, "strip", z.ZodTypeAny, {
366
+ text: string;
367
+ }, {
368
+ text: string;
369
+ }>;
370
+ type: z.ZodLiteral<"TEXT">;
371
+ }, "strip", z.ZodTypeAny, {
372
+ type: "TEXT";
373
+ data: {
374
+ text: string;
375
+ };
376
+ }, {
377
+ type: "TEXT";
378
+ data: {
379
+ text: string;
380
+ };
381
+ }>, z.ZodObject<{
382
+ data: z.ZodObject<{
383
+ doRemoveBackground: z.ZodBoolean;
384
+ doSmartCrop: z.ZodBoolean;
385
+ doChangeBackground: z.ZodBoolean;
386
+ doRotate: z.ZodBoolean;
387
+ doAddBorders: z.ZodBoolean;
388
+ shadow: z.ZodBoolean;
389
+ targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
390
+ targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
391
+ newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
392
+ newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
393
+ rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
394
+ borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
395
+ borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
396
+ }, "strip", z.ZodTypeAny, {
397
+ doRemoveBackground: boolean;
398
+ doSmartCrop: boolean;
399
+ doChangeBackground: boolean;
400
+ doRotate: boolean;
401
+ doAddBorders: boolean;
402
+ shadow: boolean;
403
+ targetWidth?: number | null | undefined;
404
+ targetHeight?: number | null | undefined;
405
+ newBackgroundColor?: string | null | undefined;
406
+ newBackgroundUrl?: string | null | undefined;
407
+ rotationAngle?: number | null | undefined;
408
+ borderSize?: number | null | undefined;
409
+ borderColor?: string | null | undefined;
410
+ }, {
411
+ doRemoveBackground: boolean;
412
+ doSmartCrop: boolean;
413
+ doChangeBackground: boolean;
414
+ doRotate: boolean;
415
+ doAddBorders: boolean;
416
+ shadow: boolean;
417
+ targetWidth?: number | null | undefined;
418
+ targetHeight?: number | null | undefined;
419
+ newBackgroundColor?: string | null | undefined;
420
+ newBackgroundUrl?: string | null | undefined;
421
+ rotationAngle?: number | null | undefined;
422
+ borderSize?: number | null | undefined;
423
+ borderColor?: string | null | undefined;
424
+ }>;
425
+ type: z.ZodLiteral<"VISION">;
426
+ }, "strip", z.ZodTypeAny, {
476
427
  type: "VISION";
477
428
  data: {
478
429
  doRemoveBackground: boolean;
@@ -489,23 +440,34 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
489
440
  borderSize?: number | null | undefined;
490
441
  borderColor?: string | null | undefined;
491
442
  };
492
- } | {
493
- type: "TEXT";
443
+ }, {
444
+ type: "VISION";
494
445
  data: {
495
- text: string;
446
+ doRemoveBackground: boolean;
447
+ doSmartCrop: boolean;
448
+ doChangeBackground: boolean;
449
+ doRotate: boolean;
450
+ doAddBorders: boolean;
451
+ shadow: boolean;
452
+ targetWidth?: number | null | undefined;
453
+ targetHeight?: number | null | undefined;
454
+ newBackgroundColor?: string | null | undefined;
455
+ newBackgroundUrl?: string | null | undefined;
456
+ rotationAngle?: number | null | undefined;
457
+ borderSize?: number | null | undefined;
458
+ borderColor?: string | null | undefined;
496
459
  };
497
- } | {
460
+ }>]>;
461
+ }, "strip", z.ZodTypeAny, {
462
+ id: string;
463
+ name: string;
464
+ payload: {
498
465
  type: "ACTIONS";
499
466
  data: {
500
467
  actions: {
501
468
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
502
469
  payload: {
503
470
  type: "EMPTY";
504
- } | {
505
- type: "WAIT";
506
- data: {
507
- seconds: number;
508
- };
509
471
  } | {
510
472
  type: "PRICE";
511
473
  data: {
@@ -520,11 +482,18 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
520
482
  data: {
521
483
  text: string;
522
484
  };
485
+ } | {
486
+ type: "WAIT";
487
+ data: {
488
+ seconds: number;
489
+ };
523
490
  };
524
491
  enabled: boolean;
525
492
  mandatory?: boolean | null | undefined;
526
493
  }[];
527
494
  };
495
+ } | {
496
+ type: "EMPTY";
528
497
  } | {
529
498
  type: "FEES";
530
499
  data: {
@@ -533,14 +502,6 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
533
502
  name: string;
534
503
  }[];
535
504
  };
536
- };
537
- caseId: string;
538
- weight: number;
539
- }, {
540
- id: string;
541
- name: string;
542
- payload: {
543
- type: "EMPTY";
544
505
  } | {
545
506
  type: "PRICE";
546
507
  data: {
@@ -550,6 +511,11 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
550
511
  roundStep?: number | null | undefined;
551
512
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
552
513
  };
514
+ } | {
515
+ type: "TEXT";
516
+ data: {
517
+ text: string;
518
+ };
553
519
  } | {
554
520
  type: "VISION";
555
521
  data: {
@@ -567,23 +533,19 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
567
533
  borderSize?: number | null | undefined;
568
534
  borderColor?: string | null | undefined;
569
535
  };
570
- } | {
571
- type: "TEXT";
572
- data: {
573
- text: string;
574
- };
575
- } | {
536
+ };
537
+ caseId: string;
538
+ weight: number;
539
+ }, {
540
+ id: string;
541
+ name: string;
542
+ payload: {
576
543
  type: "ACTIONS";
577
544
  data: {
578
545
  actions: {
579
546
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
580
547
  payload: {
581
548
  type: "EMPTY";
582
- } | {
583
- type: "WAIT";
584
- data: {
585
- seconds: number;
586
- };
587
549
  } | {
588
550
  type: "PRICE";
589
551
  data: {
@@ -598,11 +560,18 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
598
560
  data: {
599
561
  text: string;
600
562
  };
563
+ } | {
564
+ type: "WAIT";
565
+ data: {
566
+ seconds: number;
567
+ };
601
568
  };
602
569
  enabled: boolean;
603
570
  mandatory?: boolean | null | undefined;
604
571
  }[];
605
572
  };
573
+ } | {
574
+ type: "EMPTY";
606
575
  } | {
607
576
  type: "FEES";
608
577
  data: {
@@ -611,22 +580,6 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
611
580
  name: string;
612
581
  }[];
613
582
  };
614
- };
615
- caseId: string;
616
- weight: number;
617
- }>, "many">>>;
618
- }, "strip", z.ZodTypeAny, {
619
- id: string;
620
- enabled: boolean;
621
- testMode: boolean;
622
- preferenceId: string;
623
- abTest: boolean;
624
- savedFiltersId?: string | null | undefined;
625
- variants?: {
626
- id: string;
627
- name: string;
628
- payload: {
629
- type: "EMPTY";
630
583
  } | {
631
584
  type: "PRICE";
632
585
  data: {
@@ -636,6 +589,11 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
636
589
  roundStep?: number | null | undefined;
637
590
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
638
591
  };
592
+ } | {
593
+ type: "TEXT";
594
+ data: {
595
+ text: string;
596
+ };
639
597
  } | {
640
598
  type: "VISION";
641
599
  data: {
@@ -653,23 +611,27 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
653
611
  borderSize?: number | null | undefined;
654
612
  borderColor?: string | null | undefined;
655
613
  };
656
- } | {
657
- type: "TEXT";
658
- data: {
659
- text: string;
660
- };
661
- } | {
614
+ };
615
+ caseId: string;
616
+ weight: number;
617
+ }>, "many">>>;
618
+ }, "strip", z.ZodTypeAny, {
619
+ id: string;
620
+ enabled: boolean;
621
+ testMode: boolean;
622
+ preferenceId: string;
623
+ abTest: boolean;
624
+ savedFiltersId?: string | null | undefined;
625
+ variants?: {
626
+ id: string;
627
+ name: string;
628
+ payload: {
662
629
  type: "ACTIONS";
663
630
  data: {
664
631
  actions: {
665
632
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
666
633
  payload: {
667
634
  type: "EMPTY";
668
- } | {
669
- type: "WAIT";
670
- data: {
671
- seconds: number;
672
- };
673
635
  } | {
674
636
  type: "PRICE";
675
637
  data: {
@@ -684,11 +646,18 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
684
646
  data: {
685
647
  text: string;
686
648
  };
649
+ } | {
650
+ type: "WAIT";
651
+ data: {
652
+ seconds: number;
653
+ };
687
654
  };
688
655
  enabled: boolean;
689
656
  mandatory?: boolean | null | undefined;
690
657
  }[];
691
658
  };
659
+ } | {
660
+ type: "EMPTY";
692
661
  } | {
693
662
  type: "FEES";
694
663
  data: {
@@ -697,22 +666,6 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
697
666
  name: string;
698
667
  }[];
699
668
  };
700
- };
701
- caseId: string;
702
- weight: number;
703
- }[] | null | undefined;
704
- }, {
705
- id: string;
706
- enabled: boolean;
707
- testMode: boolean;
708
- preferenceId: string;
709
- abTest: boolean;
710
- savedFiltersId?: string | null | undefined;
711
- variants?: {
712
- id: string;
713
- name: string;
714
- payload: {
715
- type: "EMPTY";
716
669
  } | {
717
670
  type: "PRICE";
718
671
  data: {
@@ -722,6 +675,11 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
722
675
  roundStep?: number | null | undefined;
723
676
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
724
677
  };
678
+ } | {
679
+ type: "TEXT";
680
+ data: {
681
+ text: string;
682
+ };
725
683
  } | {
726
684
  type: "VISION";
727
685
  data: {
@@ -739,23 +697,27 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
739
697
  borderSize?: number | null | undefined;
740
698
  borderColor?: string | null | undefined;
741
699
  };
742
- } | {
743
- type: "TEXT";
744
- data: {
745
- text: string;
746
- };
747
- } | {
700
+ };
701
+ caseId: string;
702
+ weight: number;
703
+ }[] | null | undefined;
704
+ }, {
705
+ id: string;
706
+ enabled: boolean;
707
+ testMode: boolean;
708
+ preferenceId: string;
709
+ abTest: boolean;
710
+ savedFiltersId?: string | null | undefined;
711
+ variants?: {
712
+ id: string;
713
+ name: string;
714
+ payload: {
748
715
  type: "ACTIONS";
749
716
  data: {
750
717
  actions: {
751
718
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
752
719
  payload: {
753
720
  type: "EMPTY";
754
- } | {
755
- type: "WAIT";
756
- data: {
757
- seconds: number;
758
- };
759
721
  } | {
760
722
  type: "PRICE";
761
723
  data: {
@@ -770,11 +732,18 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
770
732
  data: {
771
733
  text: string;
772
734
  };
735
+ } | {
736
+ type: "WAIT";
737
+ data: {
738
+ seconds: number;
739
+ };
773
740
  };
774
741
  enabled: boolean;
775
742
  mandatory?: boolean | null | undefined;
776
743
  }[];
777
744
  };
745
+ } | {
746
+ type: "EMPTY";
778
747
  } | {
779
748
  type: "FEES";
780
749
  data: {
@@ -783,6 +752,37 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
783
752
  name: string;
784
753
  }[];
785
754
  };
755
+ } | {
756
+ type: "PRICE";
757
+ data: {
758
+ value: number;
759
+ type: "PERCENTAGE" | "ABSOLUTE";
760
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
761
+ roundStep?: number | null | undefined;
762
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
763
+ };
764
+ } | {
765
+ type: "TEXT";
766
+ data: {
767
+ text: string;
768
+ };
769
+ } | {
770
+ type: "VISION";
771
+ data: {
772
+ doRemoveBackground: boolean;
773
+ doSmartCrop: boolean;
774
+ doChangeBackground: boolean;
775
+ doRotate: boolean;
776
+ doAddBorders: boolean;
777
+ shadow: boolean;
778
+ targetWidth?: number | null | undefined;
779
+ targetHeight?: number | null | undefined;
780
+ newBackgroundColor?: string | null | undefined;
781
+ newBackgroundUrl?: string | null | undefined;
782
+ rotationAngle?: number | null | undefined;
783
+ borderSize?: number | null | undefined;
784
+ borderColor?: string | null | undefined;
785
+ };
786
786
  };
787
787
  caseId: string;
788
788
  weight: number;