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
@@ -10,26 +10,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
10
10
  }, {
11
11
  type: "EMPTY";
12
12
  }>, z.ZodObject<{
13
- type: z.ZodLiteral<"WAIT">;
14
- data: z.ZodObject<{
15
- seconds: z.ZodNumber;
16
- }, "strip", z.ZodTypeAny, {
17
- seconds: number;
18
- }, {
19
- seconds: number;
20
- }>;
21
- }, "strip", z.ZodTypeAny, {
22
- type: "WAIT";
23
- data: {
24
- seconds: number;
25
- };
26
- }, {
27
- type: "WAIT";
28
- data: {
29
- seconds: number;
30
- };
31
- }>, z.ZodObject<{
32
- type: z.ZodLiteral<"PRICE">;
33
13
  data: z.ZodObject<{
34
14
  type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
35
15
  value: z.ZodNumber;
@@ -49,6 +29,7 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
49
29
  roundStep?: number | null | undefined;
50
30
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
51
31
  }>;
32
+ type: z.ZodLiteral<"PRICE">;
52
33
  }, "strip", z.ZodTypeAny, {
53
34
  type: "PRICE";
54
35
  data: {
@@ -68,7 +49,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
68
49
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
69
50
  };
70
51
  }>, z.ZodObject<{
71
- type: z.ZodLiteral<"TEXT">;
72
52
  data: z.ZodObject<{
73
53
  text: z.ZodString;
74
54
  }, "strip", z.ZodTypeAny, {
@@ -76,6 +56,7 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
76
56
  }, {
77
57
  text: string;
78
58
  }>;
59
+ type: z.ZodLiteral<"TEXT">;
79
60
  }, "strip", z.ZodTypeAny, {
80
61
  type: "TEXT";
81
62
  data: {
@@ -86,17 +67,31 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
86
67
  data: {
87
68
  text: string;
88
69
  };
70
+ }>, z.ZodObject<{
71
+ data: z.ZodObject<{
72
+ seconds: z.ZodNumber;
73
+ }, "strip", z.ZodTypeAny, {
74
+ seconds: number;
75
+ }, {
76
+ seconds: number;
77
+ }>;
78
+ type: z.ZodLiteral<"WAIT">;
79
+ }, "strip", z.ZodTypeAny, {
80
+ type: "WAIT";
81
+ data: {
82
+ seconds: number;
83
+ };
84
+ }, {
85
+ type: "WAIT";
86
+ data: {
87
+ seconds: number;
88
+ };
89
89
  }>]>;
90
90
  mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
91
91
  }, "strip", z.ZodTypeAny, {
92
92
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
93
93
  payload: {
94
94
  type: "EMPTY";
95
- } | {
96
- type: "WAIT";
97
- data: {
98
- seconds: number;
99
- };
100
95
  } | {
101
96
  type: "PRICE";
102
97
  data: {
@@ -111,6 +106,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
111
106
  data: {
112
107
  text: string;
113
108
  };
109
+ } | {
110
+ type: "WAIT";
111
+ data: {
112
+ seconds: number;
113
+ };
114
114
  };
115
115
  enabled: boolean;
116
116
  mandatory?: boolean | null | undefined;
@@ -118,11 +118,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
118
118
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
119
119
  payload: {
120
120
  type: "EMPTY";
121
- } | {
122
- type: "WAIT";
123
- data: {
124
- seconds: number;
125
- };
126
121
  } | {
127
122
  type: "PRICE";
128
123
  data: {
@@ -137,6 +132,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
137
132
  data: {
138
133
  text: string;
139
134
  };
135
+ } | {
136
+ type: "WAIT";
137
+ data: {
138
+ seconds: number;
139
+ };
140
140
  };
141
141
  enabled: boolean;
142
142
  mandatory?: boolean | null | undefined;
@@ -167,150 +167,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
167
167
  name: z.ZodString;
168
168
  weight: z.ZodNumber;
169
169
  payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
170
- type: z.ZodLiteral<"EMPTY">;
171
- }, "strip", z.ZodTypeAny, {
172
- type: "EMPTY";
173
- }, {
174
- type: "EMPTY";
175
- }>, z.ZodObject<{
176
- type: z.ZodLiteral<"PRICE">;
177
- data: z.ZodObject<{
178
- type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
179
- value: z.ZodNumber;
180
- roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
181
- roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
182
- negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
183
- }, "strip", z.ZodTypeAny, {
184
- value: number;
185
- type: "PERCENTAGE" | "ABSOLUTE";
186
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
187
- roundStep?: number | null | undefined;
188
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
189
- }, {
190
- value: number;
191
- type: "PERCENTAGE" | "ABSOLUTE";
192
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
193
- roundStep?: number | null | undefined;
194
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
195
- }>;
196
- }, "strip", z.ZodTypeAny, {
197
- type: "PRICE";
198
- data: {
199
- value: number;
200
- type: "PERCENTAGE" | "ABSOLUTE";
201
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
202
- roundStep?: number | null | undefined;
203
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
204
- };
205
- }, {
206
- type: "PRICE";
207
- data: {
208
- value: number;
209
- type: "PERCENTAGE" | "ABSOLUTE";
210
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
211
- roundStep?: number | null | undefined;
212
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
213
- };
214
- }>, z.ZodObject<{
215
- type: z.ZodLiteral<"VISION">;
216
- data: z.ZodObject<{
217
- doRemoveBackground: z.ZodBoolean;
218
- doSmartCrop: z.ZodBoolean;
219
- doChangeBackground: z.ZodBoolean;
220
- doRotate: z.ZodBoolean;
221
- doAddBorders: z.ZodBoolean;
222
- shadow: z.ZodBoolean;
223
- targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
224
- targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
225
- newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
226
- newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
227
- rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
228
- borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
229
- borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
230
- }, "strip", z.ZodTypeAny, {
231
- doRemoveBackground: boolean;
232
- doSmartCrop: boolean;
233
- doChangeBackground: boolean;
234
- doRotate: boolean;
235
- doAddBorders: boolean;
236
- shadow: boolean;
237
- targetWidth?: number | null | undefined;
238
- targetHeight?: number | null | undefined;
239
- newBackgroundColor?: string | null | undefined;
240
- newBackgroundUrl?: string | null | undefined;
241
- rotationAngle?: number | null | undefined;
242
- borderSize?: number | null | undefined;
243
- borderColor?: string | null | undefined;
244
- }, {
245
- doRemoveBackground: boolean;
246
- doSmartCrop: boolean;
247
- doChangeBackground: boolean;
248
- doRotate: boolean;
249
- doAddBorders: boolean;
250
- shadow: boolean;
251
- targetWidth?: number | null | undefined;
252
- targetHeight?: number | null | undefined;
253
- newBackgroundColor?: string | null | undefined;
254
- newBackgroundUrl?: string | null | undefined;
255
- rotationAngle?: number | null | undefined;
256
- borderSize?: number | null | undefined;
257
- borderColor?: string | null | undefined;
258
- }>;
259
- }, "strip", z.ZodTypeAny, {
260
- type: "VISION";
261
- data: {
262
- doRemoveBackground: boolean;
263
- doSmartCrop: boolean;
264
- doChangeBackground: boolean;
265
- doRotate: boolean;
266
- doAddBorders: boolean;
267
- shadow: boolean;
268
- targetWidth?: number | null | undefined;
269
- targetHeight?: number | null | undefined;
270
- newBackgroundColor?: string | null | undefined;
271
- newBackgroundUrl?: string | null | undefined;
272
- rotationAngle?: number | null | undefined;
273
- borderSize?: number | null | undefined;
274
- borderColor?: string | null | undefined;
275
- };
276
- }, {
277
- type: "VISION";
278
- data: {
279
- doRemoveBackground: boolean;
280
- doSmartCrop: boolean;
281
- doChangeBackground: boolean;
282
- doRotate: boolean;
283
- doAddBorders: boolean;
284
- shadow: boolean;
285
- targetWidth?: number | null | undefined;
286
- targetHeight?: number | null | undefined;
287
- newBackgroundColor?: string | null | undefined;
288
- newBackgroundUrl?: string | null | undefined;
289
- rotationAngle?: number | null | undefined;
290
- borderSize?: number | null | undefined;
291
- borderColor?: string | null | undefined;
292
- };
293
- }>, z.ZodObject<{
294
- type: z.ZodLiteral<"TEXT">;
295
- data: z.ZodObject<{
296
- text: z.ZodString;
297
- }, "strip", z.ZodTypeAny, {
298
- text: string;
299
- }, {
300
- text: string;
301
- }>;
302
- }, "strip", z.ZodTypeAny, {
303
- type: "TEXT";
304
- data: {
305
- text: string;
306
- };
307
- }, {
308
- type: "TEXT";
309
- data: {
310
- text: string;
311
- };
312
- }>, z.ZodObject<{
313
- type: z.ZodLiteral<"ACTIONS">;
314
170
  data: z.ZodObject<{
315
171
  actions: z.ZodArray<z.ZodObject<{
316
172
  type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO", "OFFER_MANUAL"]>;
@@ -322,26 +178,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
322
178
  }, {
323
179
  type: "EMPTY";
324
180
  }>, z.ZodObject<{
325
- type: z.ZodLiteral<"WAIT">;
326
- data: z.ZodObject<{
327
- seconds: z.ZodNumber;
328
- }, "strip", z.ZodTypeAny, {
329
- seconds: number;
330
- }, {
331
- seconds: number;
332
- }>;
333
- }, "strip", z.ZodTypeAny, {
334
- type: "WAIT";
335
- data: {
336
- seconds: number;
337
- };
338
- }, {
339
- type: "WAIT";
340
- data: {
341
- seconds: number;
342
- };
343
- }>, z.ZodObject<{
344
- type: z.ZodLiteral<"PRICE">;
345
181
  data: z.ZodObject<{
346
182
  type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
347
183
  value: z.ZodNumber;
@@ -361,6 +197,7 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
361
197
  roundStep?: number | null | undefined;
362
198
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
363
199
  }>;
200
+ type: z.ZodLiteral<"PRICE">;
364
201
  }, "strip", z.ZodTypeAny, {
365
202
  type: "PRICE";
366
203
  data: {
@@ -380,7 +217,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
380
217
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
381
218
  };
382
219
  }>, z.ZodObject<{
383
- type: z.ZodLiteral<"TEXT">;
384
220
  data: z.ZodObject<{
385
221
  text: z.ZodString;
386
222
  }, "strip", z.ZodTypeAny, {
@@ -388,6 +224,7 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
388
224
  }, {
389
225
  text: string;
390
226
  }>;
227
+ type: z.ZodLiteral<"TEXT">;
391
228
  }, "strip", z.ZodTypeAny, {
392
229
  type: "TEXT";
393
230
  data: {
@@ -398,17 +235,31 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
398
235
  data: {
399
236
  text: string;
400
237
  };
238
+ }>, z.ZodObject<{
239
+ data: z.ZodObject<{
240
+ seconds: z.ZodNumber;
241
+ }, "strip", z.ZodTypeAny, {
242
+ seconds: number;
243
+ }, {
244
+ seconds: number;
245
+ }>;
246
+ type: z.ZodLiteral<"WAIT">;
247
+ }, "strip", z.ZodTypeAny, {
248
+ type: "WAIT";
249
+ data: {
250
+ seconds: number;
251
+ };
252
+ }, {
253
+ type: "WAIT";
254
+ data: {
255
+ seconds: number;
256
+ };
401
257
  }>]>;
402
258
  mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
403
259
  }, "strip", z.ZodTypeAny, {
404
260
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
405
261
  payload: {
406
262
  type: "EMPTY";
407
- } | {
408
- type: "WAIT";
409
- data: {
410
- seconds: number;
411
- };
412
263
  } | {
413
264
  type: "PRICE";
414
265
  data: {
@@ -423,18 +274,18 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
423
274
  data: {
424
275
  text: string;
425
276
  };
426
- };
427
- enabled: boolean;
428
- mandatory?: boolean | null | undefined;
429
- }, {
430
- type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
431
- payload: {
432
- type: "EMPTY";
433
277
  } | {
434
278
  type: "WAIT";
435
279
  data: {
436
280
  seconds: number;
437
281
  };
282
+ };
283
+ enabled: boolean;
284
+ mandatory?: boolean | null | undefined;
285
+ }, {
286
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
287
+ payload: {
288
+ type: "EMPTY";
438
289
  } | {
439
290
  type: "PRICE";
440
291
  data: {
@@ -449,6 +300,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
449
300
  data: {
450
301
  text: string;
451
302
  };
303
+ } | {
304
+ type: "WAIT";
305
+ data: {
306
+ seconds: number;
307
+ };
452
308
  };
453
309
  enabled: boolean;
454
310
  mandatory?: boolean | null | undefined;
@@ -458,11 +314,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
458
314
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
459
315
  payload: {
460
316
  type: "EMPTY";
461
- } | {
462
- type: "WAIT";
463
- data: {
464
- seconds: number;
465
- };
466
317
  } | {
467
318
  type: "PRICE";
468
319
  data: {
@@ -477,6 +328,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
477
328
  data: {
478
329
  text: string;
479
330
  };
331
+ } | {
332
+ type: "WAIT";
333
+ data: {
334
+ seconds: number;
335
+ };
480
336
  };
481
337
  enabled: boolean;
482
338
  mandatory?: boolean | null | undefined;
@@ -486,11 +342,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
486
342
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
487
343
  payload: {
488
344
  type: "EMPTY";
489
- } | {
490
- type: "WAIT";
491
- data: {
492
- seconds: number;
493
- };
494
345
  } | {
495
346
  type: "PRICE";
496
347
  data: {
@@ -505,11 +356,17 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
505
356
  data: {
506
357
  text: string;
507
358
  };
359
+ } | {
360
+ type: "WAIT";
361
+ data: {
362
+ seconds: number;
363
+ };
508
364
  };
509
365
  enabled: boolean;
510
366
  mandatory?: boolean | null | undefined;
511
367
  }[];
512
368
  }>;
369
+ type: z.ZodLiteral<"ACTIONS">;
513
370
  }, "strip", z.ZodTypeAny, {
514
371
  type: "ACTIONS";
515
372
  data: {
@@ -517,11 +374,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
517
374
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
518
375
  payload: {
519
376
  type: "EMPTY";
520
- } | {
521
- type: "WAIT";
522
- data: {
523
- seconds: number;
524
- };
525
377
  } | {
526
378
  type: "PRICE";
527
379
  data: {
@@ -536,6 +388,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
536
388
  data: {
537
389
  text: string;
538
390
  };
391
+ } | {
392
+ type: "WAIT";
393
+ data: {
394
+ seconds: number;
395
+ };
539
396
  };
540
397
  enabled: boolean;
541
398
  mandatory?: boolean | null | undefined;
@@ -548,11 +405,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
548
405
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
549
406
  payload: {
550
407
  type: "EMPTY";
551
- } | {
552
- type: "WAIT";
553
- data: {
554
- seconds: number;
555
- };
556
408
  } | {
557
409
  type: "PRICE";
558
410
  data: {
@@ -567,13 +419,23 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
567
419
  data: {
568
420
  text: string;
569
421
  };
422
+ } | {
423
+ type: "WAIT";
424
+ data: {
425
+ seconds: number;
426
+ };
570
427
  };
571
428
  enabled: boolean;
572
429
  mandatory?: boolean | null | undefined;
573
430
  }[];
574
431
  };
575
432
  }>, z.ZodObject<{
576
- type: z.ZodLiteral<"FEES">;
433
+ type: z.ZodLiteral<"EMPTY">;
434
+ }, "strip", z.ZodTypeAny, {
435
+ type: "EMPTY";
436
+ }, {
437
+ type: "EMPTY";
438
+ }>, z.ZodObject<{
577
439
  data: z.ZodObject<{
578
440
  fees: z.ZodArray<z.ZodObject<{
579
441
  name: z.ZodString;
@@ -596,6 +458,7 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
596
458
  name: string;
597
459
  }[];
598
460
  }>;
461
+ type: z.ZodLiteral<"FEES">;
599
462
  }, "strip", z.ZodTypeAny, {
600
463
  type: "FEES";
601
464
  data: {
@@ -612,13 +475,28 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
612
475
  name: string;
613
476
  }[];
614
477
  };
615
- }>]>;
616
- }, "strip", z.ZodTypeAny, {
617
- id: string;
618
- name: string;
619
- payload: {
620
- type: "EMPTY";
621
- } | {
478
+ }>, z.ZodObject<{
479
+ data: z.ZodObject<{
480
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
481
+ value: z.ZodNumber;
482
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
483
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
484
+ negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
485
+ }, "strip", z.ZodTypeAny, {
486
+ value: number;
487
+ type: "PERCENTAGE" | "ABSOLUTE";
488
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
489
+ roundStep?: number | null | undefined;
490
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
491
+ }, {
492
+ value: number;
493
+ type: "PERCENTAGE" | "ABSOLUTE";
494
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
495
+ roundStep?: number | null | undefined;
496
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
497
+ }>;
498
+ type: z.ZodLiteral<"PRICE">;
499
+ }, "strip", z.ZodTypeAny, {
622
500
  type: "PRICE";
623
501
  data: {
624
502
  value: number;
@@ -627,7 +505,80 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
627
505
  roundStep?: number | null | undefined;
628
506
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
629
507
  };
630
- } | {
508
+ }, {
509
+ type: "PRICE";
510
+ data: {
511
+ value: number;
512
+ type: "PERCENTAGE" | "ABSOLUTE";
513
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
514
+ roundStep?: number | null | undefined;
515
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
516
+ };
517
+ }>, z.ZodObject<{
518
+ data: z.ZodObject<{
519
+ text: z.ZodString;
520
+ }, "strip", z.ZodTypeAny, {
521
+ text: string;
522
+ }, {
523
+ text: string;
524
+ }>;
525
+ type: z.ZodLiteral<"TEXT">;
526
+ }, "strip", z.ZodTypeAny, {
527
+ type: "TEXT";
528
+ data: {
529
+ text: string;
530
+ };
531
+ }, {
532
+ type: "TEXT";
533
+ data: {
534
+ text: string;
535
+ };
536
+ }>, z.ZodObject<{
537
+ data: z.ZodObject<{
538
+ doRemoveBackground: z.ZodBoolean;
539
+ doSmartCrop: z.ZodBoolean;
540
+ doChangeBackground: z.ZodBoolean;
541
+ doRotate: z.ZodBoolean;
542
+ doAddBorders: z.ZodBoolean;
543
+ shadow: z.ZodBoolean;
544
+ targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
545
+ targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
546
+ newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
547
+ newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
548
+ rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
549
+ borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
550
+ borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
551
+ }, "strip", z.ZodTypeAny, {
552
+ doRemoveBackground: boolean;
553
+ doSmartCrop: boolean;
554
+ doChangeBackground: boolean;
555
+ doRotate: boolean;
556
+ doAddBorders: boolean;
557
+ shadow: boolean;
558
+ targetWidth?: number | null | undefined;
559
+ targetHeight?: number | null | undefined;
560
+ newBackgroundColor?: string | null | undefined;
561
+ newBackgroundUrl?: string | null | undefined;
562
+ rotationAngle?: number | null | undefined;
563
+ borderSize?: number | null | undefined;
564
+ borderColor?: string | null | undefined;
565
+ }, {
566
+ doRemoveBackground: boolean;
567
+ doSmartCrop: boolean;
568
+ doChangeBackground: boolean;
569
+ doRotate: boolean;
570
+ doAddBorders: boolean;
571
+ shadow: boolean;
572
+ targetWidth?: number | null | undefined;
573
+ targetHeight?: number | null | undefined;
574
+ newBackgroundColor?: string | null | undefined;
575
+ newBackgroundUrl?: string | null | undefined;
576
+ rotationAngle?: number | null | undefined;
577
+ borderSize?: number | null | undefined;
578
+ borderColor?: string | null | undefined;
579
+ }>;
580
+ type: z.ZodLiteral<"VISION">;
581
+ }, "strip", z.ZodTypeAny, {
631
582
  type: "VISION";
632
583
  data: {
633
584
  doRemoveBackground: boolean;
@@ -644,23 +595,34 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
644
595
  borderSize?: number | null | undefined;
645
596
  borderColor?: string | null | undefined;
646
597
  };
647
- } | {
648
- type: "TEXT";
598
+ }, {
599
+ type: "VISION";
649
600
  data: {
650
- text: string;
601
+ doRemoveBackground: boolean;
602
+ doSmartCrop: boolean;
603
+ doChangeBackground: boolean;
604
+ doRotate: boolean;
605
+ doAddBorders: boolean;
606
+ shadow: boolean;
607
+ targetWidth?: number | null | undefined;
608
+ targetHeight?: number | null | undefined;
609
+ newBackgroundColor?: string | null | undefined;
610
+ newBackgroundUrl?: string | null | undefined;
611
+ rotationAngle?: number | null | undefined;
612
+ borderSize?: number | null | undefined;
613
+ borderColor?: string | null | undefined;
651
614
  };
652
- } | {
615
+ }>]>;
616
+ }, "strip", z.ZodTypeAny, {
617
+ id: string;
618
+ name: string;
619
+ payload: {
653
620
  type: "ACTIONS";
654
621
  data: {
655
622
  actions: {
656
623
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
657
624
  payload: {
658
625
  type: "EMPTY";
659
- } | {
660
- type: "WAIT";
661
- data: {
662
- seconds: number;
663
- };
664
626
  } | {
665
627
  type: "PRICE";
666
628
  data: {
@@ -675,11 +637,18 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
675
637
  data: {
676
638
  text: string;
677
639
  };
640
+ } | {
641
+ type: "WAIT";
642
+ data: {
643
+ seconds: number;
644
+ };
678
645
  };
679
646
  enabled: boolean;
680
647
  mandatory?: boolean | null | undefined;
681
648
  }[];
682
649
  };
650
+ } | {
651
+ type: "EMPTY";
683
652
  } | {
684
653
  type: "FEES";
685
654
  data: {
@@ -688,14 +657,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
688
657
  name: string;
689
658
  }[];
690
659
  };
691
- };
692
- caseId: string;
693
- weight: number;
694
- }, {
695
- id: string;
696
- name: string;
697
- payload: {
698
- type: "EMPTY";
699
660
  } | {
700
661
  type: "PRICE";
701
662
  data: {
@@ -705,6 +666,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
705
666
  roundStep?: number | null | undefined;
706
667
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
707
668
  };
669
+ } | {
670
+ type: "TEXT";
671
+ data: {
672
+ text: string;
673
+ };
708
674
  } | {
709
675
  type: "VISION";
710
676
  data: {
@@ -722,23 +688,19 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
722
688
  borderSize?: number | null | undefined;
723
689
  borderColor?: string | null | undefined;
724
690
  };
725
- } | {
726
- type: "TEXT";
727
- data: {
728
- text: string;
729
- };
730
- } | {
691
+ };
692
+ caseId: string;
693
+ weight: number;
694
+ }, {
695
+ id: string;
696
+ name: string;
697
+ payload: {
731
698
  type: "ACTIONS";
732
699
  data: {
733
700
  actions: {
734
701
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
735
702
  payload: {
736
703
  type: "EMPTY";
737
- } | {
738
- type: "WAIT";
739
- data: {
740
- seconds: number;
741
- };
742
704
  } | {
743
705
  type: "PRICE";
744
706
  data: {
@@ -753,11 +715,18 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
753
715
  data: {
754
716
  text: string;
755
717
  };
718
+ } | {
719
+ type: "WAIT";
720
+ data: {
721
+ seconds: number;
722
+ };
756
723
  };
757
724
  enabled: boolean;
758
725
  mandatory?: boolean | null | undefined;
759
726
  }[];
760
727
  };
728
+ } | {
729
+ type: "EMPTY";
761
730
  } | {
762
731
  type: "FEES";
763
732
  data: {
@@ -766,22 +735,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
766
735
  name: string;
767
736
  }[];
768
737
  };
769
- };
770
- caseId: string;
771
- weight: number;
772
- }>, "many">>>;
773
- }, "strip", z.ZodTypeAny, {
774
- id: string;
775
- enabled: boolean;
776
- testMode: boolean;
777
- preferenceId: string;
778
- abTest: boolean;
779
- savedFiltersId?: string | null | undefined;
780
- variants?: {
781
- id: string;
782
- name: string;
783
- payload: {
784
- type: "EMPTY";
785
738
  } | {
786
739
  type: "PRICE";
787
740
  data: {
@@ -791,6 +744,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
791
744
  roundStep?: number | null | undefined;
792
745
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
793
746
  };
747
+ } | {
748
+ type: "TEXT";
749
+ data: {
750
+ text: string;
751
+ };
794
752
  } | {
795
753
  type: "VISION";
796
754
  data: {
@@ -808,23 +766,27 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
808
766
  borderSize?: number | null | undefined;
809
767
  borderColor?: string | null | undefined;
810
768
  };
811
- } | {
812
- type: "TEXT";
813
- data: {
814
- text: string;
815
- };
816
- } | {
769
+ };
770
+ caseId: string;
771
+ weight: number;
772
+ }>, "many">>>;
773
+ }, "strip", z.ZodTypeAny, {
774
+ id: string;
775
+ enabled: boolean;
776
+ testMode: boolean;
777
+ preferenceId: string;
778
+ abTest: boolean;
779
+ savedFiltersId?: string | null | undefined;
780
+ variants?: {
781
+ id: string;
782
+ name: string;
783
+ payload: {
817
784
  type: "ACTIONS";
818
785
  data: {
819
786
  actions: {
820
787
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
821
788
  payload: {
822
789
  type: "EMPTY";
823
- } | {
824
- type: "WAIT";
825
- data: {
826
- seconds: number;
827
- };
828
790
  } | {
829
791
  type: "PRICE";
830
792
  data: {
@@ -839,11 +801,18 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
839
801
  data: {
840
802
  text: string;
841
803
  };
804
+ } | {
805
+ type: "WAIT";
806
+ data: {
807
+ seconds: number;
808
+ };
842
809
  };
843
810
  enabled: boolean;
844
811
  mandatory?: boolean | null | undefined;
845
812
  }[];
846
813
  };
814
+ } | {
815
+ type: "EMPTY";
847
816
  } | {
848
817
  type: "FEES";
849
818
  data: {
@@ -852,22 +821,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
852
821
  name: string;
853
822
  }[];
854
823
  };
855
- };
856
- caseId: string;
857
- weight: number;
858
- }[] | null | undefined;
859
- }, {
860
- id: string;
861
- enabled: boolean;
862
- testMode: boolean;
863
- preferenceId: string;
864
- abTest: boolean;
865
- savedFiltersId?: string | null | undefined;
866
- variants?: {
867
- id: string;
868
- name: string;
869
- payload: {
870
- type: "EMPTY";
871
824
  } | {
872
825
  type: "PRICE";
873
826
  data: {
@@ -877,6 +830,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
877
830
  roundStep?: number | null | undefined;
878
831
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
879
832
  };
833
+ } | {
834
+ type: "TEXT";
835
+ data: {
836
+ text: string;
837
+ };
880
838
  } | {
881
839
  type: "VISION";
882
840
  data: {
@@ -894,23 +852,27 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
894
852
  borderSize?: number | null | undefined;
895
853
  borderColor?: string | null | undefined;
896
854
  };
897
- } | {
898
- type: "TEXT";
899
- data: {
900
- text: string;
901
- };
902
- } | {
855
+ };
856
+ caseId: string;
857
+ weight: number;
858
+ }[] | null | undefined;
859
+ }, {
860
+ id: string;
861
+ enabled: boolean;
862
+ testMode: boolean;
863
+ preferenceId: string;
864
+ abTest: boolean;
865
+ savedFiltersId?: string | null | undefined;
866
+ variants?: {
867
+ id: string;
868
+ name: string;
869
+ payload: {
903
870
  type: "ACTIONS";
904
871
  data: {
905
872
  actions: {
906
873
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
907
874
  payload: {
908
875
  type: "EMPTY";
909
- } | {
910
- type: "WAIT";
911
- data: {
912
- seconds: number;
913
- };
914
876
  } | {
915
877
  type: "PRICE";
916
878
  data: {
@@ -925,11 +887,18 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
925
887
  data: {
926
888
  text: string;
927
889
  };
890
+ } | {
891
+ type: "WAIT";
892
+ data: {
893
+ seconds: number;
894
+ };
928
895
  };
929
896
  enabled: boolean;
930
897
  mandatory?: boolean | null | undefined;
931
898
  }[];
932
899
  };
900
+ } | {
901
+ type: "EMPTY";
933
902
  } | {
934
903
  type: "FEES";
935
904
  data: {
@@ -938,30 +907,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
938
907
  name: string;
939
908
  }[];
940
909
  };
941
- };
942
- caseId: string;
943
- weight: number;
944
- }[] | null | undefined;
945
- }>, "many">>>;
946
- }, "strip", z.ZodTypeAny, {
947
- type: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE";
948
- id: string;
949
- userId: string | number;
950
- enabled: boolean;
951
- testMode: boolean;
952
- parentPreferenceId?: string | null | undefined;
953
- cases?: {
954
- id: string;
955
- enabled: boolean;
956
- testMode: boolean;
957
- preferenceId: string;
958
- abTest: boolean;
959
- savedFiltersId?: string | null | undefined;
960
- variants?: {
961
- id: string;
962
- name: string;
963
- payload: {
964
- type: "EMPTY";
965
910
  } | {
966
911
  type: "PRICE";
967
912
  data: {
@@ -971,6 +916,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
971
916
  roundStep?: number | null | undefined;
972
917
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
973
918
  };
919
+ } | {
920
+ type: "TEXT";
921
+ data: {
922
+ text: string;
923
+ };
974
924
  } | {
975
925
  type: "VISION";
976
926
  data: {
@@ -988,23 +938,35 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
988
938
  borderSize?: number | null | undefined;
989
939
  borderColor?: string | null | undefined;
990
940
  };
991
- } | {
992
- type: "TEXT";
993
- data: {
994
- text: string;
995
- };
996
- } | {
941
+ };
942
+ caseId: string;
943
+ weight: number;
944
+ }[] | null | undefined;
945
+ }>, "many">>>;
946
+ }, "strip", z.ZodTypeAny, {
947
+ type: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE";
948
+ id: string;
949
+ userId: string | number;
950
+ enabled: boolean;
951
+ testMode: boolean;
952
+ parentPreferenceId?: string | null | undefined;
953
+ cases?: {
954
+ id: string;
955
+ enabled: boolean;
956
+ testMode: boolean;
957
+ preferenceId: string;
958
+ abTest: boolean;
959
+ savedFiltersId?: string | null | undefined;
960
+ variants?: {
961
+ id: string;
962
+ name: string;
963
+ payload: {
997
964
  type: "ACTIONS";
998
965
  data: {
999
966
  actions: {
1000
967
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1001
968
  payload: {
1002
969
  type: "EMPTY";
1003
- } | {
1004
- type: "WAIT";
1005
- data: {
1006
- seconds: number;
1007
- };
1008
970
  } | {
1009
971
  type: "PRICE";
1010
972
  data: {
@@ -1019,11 +981,18 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1019
981
  data: {
1020
982
  text: string;
1021
983
  };
984
+ } | {
985
+ type: "WAIT";
986
+ data: {
987
+ seconds: number;
988
+ };
1022
989
  };
1023
990
  enabled: boolean;
1024
991
  mandatory?: boolean | null | undefined;
1025
992
  }[];
1026
993
  };
994
+ } | {
995
+ type: "EMPTY";
1027
996
  } | {
1028
997
  type: "FEES";
1029
998
  data: {
@@ -1032,30 +1001,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1032
1001
  name: string;
1033
1002
  }[];
1034
1003
  };
1035
- };
1036
- caseId: string;
1037
- weight: number;
1038
- }[] | null | undefined;
1039
- }[] | null | undefined;
1040
- }, {
1041
- type: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE";
1042
- id: string;
1043
- userId: string | number;
1044
- enabled: boolean;
1045
- testMode: boolean;
1046
- parentPreferenceId?: string | null | undefined;
1047
- cases?: {
1048
- id: string;
1049
- enabled: boolean;
1050
- testMode: boolean;
1051
- preferenceId: string;
1052
- abTest: boolean;
1053
- savedFiltersId?: string | null | undefined;
1054
- variants?: {
1055
- id: string;
1056
- name: string;
1057
- payload: {
1058
- type: "EMPTY";
1059
1004
  } | {
1060
1005
  type: "PRICE";
1061
1006
  data: {
@@ -1065,6 +1010,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1065
1010
  roundStep?: number | null | undefined;
1066
1011
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1067
1012
  };
1013
+ } | {
1014
+ type: "TEXT";
1015
+ data: {
1016
+ text: string;
1017
+ };
1068
1018
  } | {
1069
1019
  type: "VISION";
1070
1020
  data: {
@@ -1082,23 +1032,35 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1082
1032
  borderSize?: number | null | undefined;
1083
1033
  borderColor?: string | null | undefined;
1084
1034
  };
1085
- } | {
1086
- type: "TEXT";
1087
- data: {
1088
- text: string;
1089
- };
1090
- } | {
1035
+ };
1036
+ caseId: string;
1037
+ weight: number;
1038
+ }[] | null | undefined;
1039
+ }[] | null | undefined;
1040
+ }, {
1041
+ type: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE";
1042
+ id: string;
1043
+ userId: string | number;
1044
+ enabled: boolean;
1045
+ testMode: boolean;
1046
+ parentPreferenceId?: string | null | undefined;
1047
+ cases?: {
1048
+ id: string;
1049
+ enabled: boolean;
1050
+ testMode: boolean;
1051
+ preferenceId: string;
1052
+ abTest: boolean;
1053
+ savedFiltersId?: string | null | undefined;
1054
+ variants?: {
1055
+ id: string;
1056
+ name: string;
1057
+ payload: {
1091
1058
  type: "ACTIONS";
1092
1059
  data: {
1093
1060
  actions: {
1094
1061
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1095
1062
  payload: {
1096
1063
  type: "EMPTY";
1097
- } | {
1098
- type: "WAIT";
1099
- data: {
1100
- seconds: number;
1101
- };
1102
1064
  } | {
1103
1065
  type: "PRICE";
1104
1066
  data: {
@@ -1113,11 +1075,18 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1113
1075
  data: {
1114
1076
  text: string;
1115
1077
  };
1078
+ } | {
1079
+ type: "WAIT";
1080
+ data: {
1081
+ seconds: number;
1082
+ };
1116
1083
  };
1117
1084
  enabled: boolean;
1118
1085
  mandatory?: boolean | null | undefined;
1119
1086
  }[];
1120
1087
  };
1088
+ } | {
1089
+ type: "EMPTY";
1121
1090
  } | {
1122
1091
  type: "FEES";
1123
1092
  data: {
@@ -1126,169 +1095,56 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1126
1095
  name: string;
1127
1096
  }[];
1128
1097
  };
1098
+ } | {
1099
+ type: "PRICE";
1100
+ data: {
1101
+ value: number;
1102
+ type: "PERCENTAGE" | "ABSOLUTE";
1103
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1104
+ roundStep?: number | null | undefined;
1105
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1106
+ };
1107
+ } | {
1108
+ type: "TEXT";
1109
+ data: {
1110
+ text: string;
1111
+ };
1112
+ } | {
1113
+ type: "VISION";
1114
+ data: {
1115
+ doRemoveBackground: boolean;
1116
+ doSmartCrop: boolean;
1117
+ doChangeBackground: boolean;
1118
+ doRotate: boolean;
1119
+ doAddBorders: boolean;
1120
+ shadow: boolean;
1121
+ targetWidth?: number | null | undefined;
1122
+ targetHeight?: number | null | undefined;
1123
+ newBackgroundColor?: string | null | undefined;
1124
+ newBackgroundUrl?: string | null | undefined;
1125
+ rotationAngle?: number | null | undefined;
1126
+ borderSize?: number | null | undefined;
1127
+ borderColor?: string | null | undefined;
1128
+ };
1129
1129
  };
1130
- caseId: string;
1131
- weight: number;
1132
- }[] | null | undefined;
1133
- }[] | null | undefined;
1134
- }>;
1135
- case: z.ZodObject<{
1136
- id: z.ZodString;
1137
- preferenceId: z.ZodString;
1138
- savedFiltersId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1139
- enabled: z.ZodBoolean;
1140
- testMode: z.ZodBoolean;
1141
- abTest: z.ZodBoolean;
1142
- variants: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1143
- id: z.ZodString;
1144
- caseId: z.ZodString;
1145
- name: z.ZodString;
1146
- weight: z.ZodNumber;
1147
- payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1148
- type: z.ZodLiteral<"EMPTY">;
1149
- }, "strip", z.ZodTypeAny, {
1150
- type: "EMPTY";
1151
- }, {
1152
- type: "EMPTY";
1153
- }>, z.ZodObject<{
1154
- type: z.ZodLiteral<"PRICE">;
1155
- data: z.ZodObject<{
1156
- type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
1157
- value: z.ZodNumber;
1158
- roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
1159
- roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1160
- negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
1161
- }, "strip", z.ZodTypeAny, {
1162
- value: number;
1163
- type: "PERCENTAGE" | "ABSOLUTE";
1164
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1165
- roundStep?: number | null | undefined;
1166
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1167
- }, {
1168
- value: number;
1169
- type: "PERCENTAGE" | "ABSOLUTE";
1170
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1171
- roundStep?: number | null | undefined;
1172
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1173
- }>;
1174
- }, "strip", z.ZodTypeAny, {
1175
- type: "PRICE";
1176
- data: {
1177
- value: number;
1178
- type: "PERCENTAGE" | "ABSOLUTE";
1179
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1180
- roundStep?: number | null | undefined;
1181
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1182
- };
1183
- }, {
1184
- type: "PRICE";
1185
- data: {
1186
- value: number;
1187
- type: "PERCENTAGE" | "ABSOLUTE";
1188
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1189
- roundStep?: number | null | undefined;
1190
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1191
- };
1192
- }>, z.ZodObject<{
1193
- type: z.ZodLiteral<"VISION">;
1194
- data: z.ZodObject<{
1195
- doRemoveBackground: z.ZodBoolean;
1196
- doSmartCrop: z.ZodBoolean;
1197
- doChangeBackground: z.ZodBoolean;
1198
- doRotate: z.ZodBoolean;
1199
- doAddBorders: z.ZodBoolean;
1200
- shadow: z.ZodBoolean;
1201
- targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1202
- targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1203
- newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1204
- newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1205
- rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1206
- borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1207
- borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1208
- }, "strip", z.ZodTypeAny, {
1209
- doRemoveBackground: boolean;
1210
- doSmartCrop: boolean;
1211
- doChangeBackground: boolean;
1212
- doRotate: boolean;
1213
- doAddBorders: boolean;
1214
- shadow: boolean;
1215
- targetWidth?: number | null | undefined;
1216
- targetHeight?: number | null | undefined;
1217
- newBackgroundColor?: string | null | undefined;
1218
- newBackgroundUrl?: string | null | undefined;
1219
- rotationAngle?: number | null | undefined;
1220
- borderSize?: number | null | undefined;
1221
- borderColor?: string | null | undefined;
1222
- }, {
1223
- doRemoveBackground: boolean;
1224
- doSmartCrop: boolean;
1225
- doChangeBackground: boolean;
1226
- doRotate: boolean;
1227
- doAddBorders: boolean;
1228
- shadow: boolean;
1229
- targetWidth?: number | null | undefined;
1230
- targetHeight?: number | null | undefined;
1231
- newBackgroundColor?: string | null | undefined;
1232
- newBackgroundUrl?: string | null | undefined;
1233
- rotationAngle?: number | null | undefined;
1234
- borderSize?: number | null | undefined;
1235
- borderColor?: string | null | undefined;
1236
- }>;
1237
- }, "strip", z.ZodTypeAny, {
1238
- type: "VISION";
1239
- data: {
1240
- doRemoveBackground: boolean;
1241
- doSmartCrop: boolean;
1242
- doChangeBackground: boolean;
1243
- doRotate: boolean;
1244
- doAddBorders: boolean;
1245
- shadow: boolean;
1246
- targetWidth?: number | null | undefined;
1247
- targetHeight?: number | null | undefined;
1248
- newBackgroundColor?: string | null | undefined;
1249
- newBackgroundUrl?: string | null | undefined;
1250
- rotationAngle?: number | null | undefined;
1251
- borderSize?: number | null | undefined;
1252
- borderColor?: string | null | undefined;
1253
- };
1254
- }, {
1255
- type: "VISION";
1256
- data: {
1257
- doRemoveBackground: boolean;
1258
- doSmartCrop: boolean;
1259
- doChangeBackground: boolean;
1260
- doRotate: boolean;
1261
- doAddBorders: boolean;
1262
- shadow: boolean;
1263
- targetWidth?: number | null | undefined;
1264
- targetHeight?: number | null | undefined;
1265
- newBackgroundColor?: string | null | undefined;
1266
- newBackgroundUrl?: string | null | undefined;
1267
- rotationAngle?: number | null | undefined;
1268
- borderSize?: number | null | undefined;
1269
- borderColor?: string | null | undefined;
1270
- };
1271
- }>, z.ZodObject<{
1272
- type: z.ZodLiteral<"TEXT">;
1273
- data: z.ZodObject<{
1274
- text: z.ZodString;
1275
- }, "strip", z.ZodTypeAny, {
1276
- text: string;
1277
- }, {
1278
- text: string;
1279
- }>;
1280
- }, "strip", z.ZodTypeAny, {
1281
- type: "TEXT";
1282
- data: {
1283
- text: string;
1284
- };
1285
- }, {
1286
- type: "TEXT";
1287
- data: {
1288
- text: string;
1289
- };
1290
- }>, z.ZodObject<{
1291
- type: z.ZodLiteral<"ACTIONS">;
1130
+ caseId: string;
1131
+ weight: number;
1132
+ }[] | null | undefined;
1133
+ }[] | null | undefined;
1134
+ }>;
1135
+ case: z.ZodObject<{
1136
+ id: z.ZodString;
1137
+ preferenceId: z.ZodString;
1138
+ savedFiltersId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1139
+ enabled: z.ZodBoolean;
1140
+ testMode: z.ZodBoolean;
1141
+ abTest: z.ZodBoolean;
1142
+ variants: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1143
+ id: z.ZodString;
1144
+ caseId: z.ZodString;
1145
+ name: z.ZodString;
1146
+ weight: z.ZodNumber;
1147
+ payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1292
1148
  data: z.ZodObject<{
1293
1149
  actions: z.ZodArray<z.ZodObject<{
1294
1150
  type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO", "OFFER_MANUAL"]>;
@@ -1300,26 +1156,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1300
1156
  }, {
1301
1157
  type: "EMPTY";
1302
1158
  }>, z.ZodObject<{
1303
- type: z.ZodLiteral<"WAIT">;
1304
- data: z.ZodObject<{
1305
- seconds: z.ZodNumber;
1306
- }, "strip", z.ZodTypeAny, {
1307
- seconds: number;
1308
- }, {
1309
- seconds: number;
1310
- }>;
1311
- }, "strip", z.ZodTypeAny, {
1312
- type: "WAIT";
1313
- data: {
1314
- seconds: number;
1315
- };
1316
- }, {
1317
- type: "WAIT";
1318
- data: {
1319
- seconds: number;
1320
- };
1321
- }>, z.ZodObject<{
1322
- type: z.ZodLiteral<"PRICE">;
1323
1159
  data: z.ZodObject<{
1324
1160
  type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
1325
1161
  value: z.ZodNumber;
@@ -1339,6 +1175,7 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1339
1175
  roundStep?: number | null | undefined;
1340
1176
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1341
1177
  }>;
1178
+ type: z.ZodLiteral<"PRICE">;
1342
1179
  }, "strip", z.ZodTypeAny, {
1343
1180
  type: "PRICE";
1344
1181
  data: {
@@ -1358,7 +1195,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1358
1195
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1359
1196
  };
1360
1197
  }>, z.ZodObject<{
1361
- type: z.ZodLiteral<"TEXT">;
1362
1198
  data: z.ZodObject<{
1363
1199
  text: z.ZodString;
1364
1200
  }, "strip", z.ZodTypeAny, {
@@ -1366,6 +1202,7 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1366
1202
  }, {
1367
1203
  text: string;
1368
1204
  }>;
1205
+ type: z.ZodLiteral<"TEXT">;
1369
1206
  }, "strip", z.ZodTypeAny, {
1370
1207
  type: "TEXT";
1371
1208
  data: {
@@ -1376,17 +1213,31 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1376
1213
  data: {
1377
1214
  text: string;
1378
1215
  };
1216
+ }>, z.ZodObject<{
1217
+ data: z.ZodObject<{
1218
+ seconds: z.ZodNumber;
1219
+ }, "strip", z.ZodTypeAny, {
1220
+ seconds: number;
1221
+ }, {
1222
+ seconds: number;
1223
+ }>;
1224
+ type: z.ZodLiteral<"WAIT">;
1225
+ }, "strip", z.ZodTypeAny, {
1226
+ type: "WAIT";
1227
+ data: {
1228
+ seconds: number;
1229
+ };
1230
+ }, {
1231
+ type: "WAIT";
1232
+ data: {
1233
+ seconds: number;
1234
+ };
1379
1235
  }>]>;
1380
1236
  mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1381
1237
  }, "strip", z.ZodTypeAny, {
1382
1238
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1383
1239
  payload: {
1384
1240
  type: "EMPTY";
1385
- } | {
1386
- type: "WAIT";
1387
- data: {
1388
- seconds: number;
1389
- };
1390
1241
  } | {
1391
1242
  type: "PRICE";
1392
1243
  data: {
@@ -1401,6 +1252,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1401
1252
  data: {
1402
1253
  text: string;
1403
1254
  };
1255
+ } | {
1256
+ type: "WAIT";
1257
+ data: {
1258
+ seconds: number;
1259
+ };
1404
1260
  };
1405
1261
  enabled: boolean;
1406
1262
  mandatory?: boolean | null | undefined;
@@ -1408,11 +1264,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1408
1264
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1409
1265
  payload: {
1410
1266
  type: "EMPTY";
1411
- } | {
1412
- type: "WAIT";
1413
- data: {
1414
- seconds: number;
1415
- };
1416
1267
  } | {
1417
1268
  type: "PRICE";
1418
1269
  data: {
@@ -1427,6 +1278,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1427
1278
  data: {
1428
1279
  text: string;
1429
1280
  };
1281
+ } | {
1282
+ type: "WAIT";
1283
+ data: {
1284
+ seconds: number;
1285
+ };
1430
1286
  };
1431
1287
  enabled: boolean;
1432
1288
  mandatory?: boolean | null | undefined;
@@ -1437,12 +1293,7 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1437
1293
  payload: {
1438
1294
  type: "EMPTY";
1439
1295
  } | {
1440
- type: "WAIT";
1441
- data: {
1442
- seconds: number;
1443
- };
1444
- } | {
1445
- type: "PRICE";
1296
+ type: "PRICE";
1446
1297
  data: {
1447
1298
  value: number;
1448
1299
  type: "PERCENTAGE" | "ABSOLUTE";
@@ -1455,6 +1306,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1455
1306
  data: {
1456
1307
  text: string;
1457
1308
  };
1309
+ } | {
1310
+ type: "WAIT";
1311
+ data: {
1312
+ seconds: number;
1313
+ };
1458
1314
  };
1459
1315
  enabled: boolean;
1460
1316
  mandatory?: boolean | null | undefined;
@@ -1464,11 +1320,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1464
1320
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1465
1321
  payload: {
1466
1322
  type: "EMPTY";
1467
- } | {
1468
- type: "WAIT";
1469
- data: {
1470
- seconds: number;
1471
- };
1472
1323
  } | {
1473
1324
  type: "PRICE";
1474
1325
  data: {
@@ -1483,11 +1334,17 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1483
1334
  data: {
1484
1335
  text: string;
1485
1336
  };
1337
+ } | {
1338
+ type: "WAIT";
1339
+ data: {
1340
+ seconds: number;
1341
+ };
1486
1342
  };
1487
1343
  enabled: boolean;
1488
1344
  mandatory?: boolean | null | undefined;
1489
1345
  }[];
1490
1346
  }>;
1347
+ type: z.ZodLiteral<"ACTIONS">;
1491
1348
  }, "strip", z.ZodTypeAny, {
1492
1349
  type: "ACTIONS";
1493
1350
  data: {
@@ -1495,11 +1352,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1495
1352
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1496
1353
  payload: {
1497
1354
  type: "EMPTY";
1498
- } | {
1499
- type: "WAIT";
1500
- data: {
1501
- seconds: number;
1502
- };
1503
1355
  } | {
1504
1356
  type: "PRICE";
1505
1357
  data: {
@@ -1514,6 +1366,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1514
1366
  data: {
1515
1367
  text: string;
1516
1368
  };
1369
+ } | {
1370
+ type: "WAIT";
1371
+ data: {
1372
+ seconds: number;
1373
+ };
1517
1374
  };
1518
1375
  enabled: boolean;
1519
1376
  mandatory?: boolean | null | undefined;
@@ -1526,11 +1383,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1526
1383
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1527
1384
  payload: {
1528
1385
  type: "EMPTY";
1529
- } | {
1530
- type: "WAIT";
1531
- data: {
1532
- seconds: number;
1533
- };
1534
1386
  } | {
1535
1387
  type: "PRICE";
1536
1388
  data: {
@@ -1545,13 +1397,23 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1545
1397
  data: {
1546
1398
  text: string;
1547
1399
  };
1400
+ } | {
1401
+ type: "WAIT";
1402
+ data: {
1403
+ seconds: number;
1404
+ };
1548
1405
  };
1549
1406
  enabled: boolean;
1550
1407
  mandatory?: boolean | null | undefined;
1551
1408
  }[];
1552
1409
  };
1553
1410
  }>, z.ZodObject<{
1554
- type: z.ZodLiteral<"FEES">;
1411
+ type: z.ZodLiteral<"EMPTY">;
1412
+ }, "strip", z.ZodTypeAny, {
1413
+ type: "EMPTY";
1414
+ }, {
1415
+ type: "EMPTY";
1416
+ }>, z.ZodObject<{
1555
1417
  data: z.ZodObject<{
1556
1418
  fees: z.ZodArray<z.ZodObject<{
1557
1419
  name: z.ZodString;
@@ -1574,6 +1436,7 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1574
1436
  name: string;
1575
1437
  }[];
1576
1438
  }>;
1439
+ type: z.ZodLiteral<"FEES">;
1577
1440
  }, "strip", z.ZodTypeAny, {
1578
1441
  type: "FEES";
1579
1442
  data: {
@@ -1590,13 +1453,28 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1590
1453
  name: string;
1591
1454
  }[];
1592
1455
  };
1593
- }>]>;
1594
- }, "strip", z.ZodTypeAny, {
1595
- id: string;
1596
- name: string;
1597
- payload: {
1598
- type: "EMPTY";
1599
- } | {
1456
+ }>, z.ZodObject<{
1457
+ data: z.ZodObject<{
1458
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
1459
+ value: z.ZodNumber;
1460
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
1461
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1462
+ negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
1463
+ }, "strip", z.ZodTypeAny, {
1464
+ value: number;
1465
+ type: "PERCENTAGE" | "ABSOLUTE";
1466
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1467
+ roundStep?: number | null | undefined;
1468
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1469
+ }, {
1470
+ value: number;
1471
+ type: "PERCENTAGE" | "ABSOLUTE";
1472
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1473
+ roundStep?: number | null | undefined;
1474
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1475
+ }>;
1476
+ type: z.ZodLiteral<"PRICE">;
1477
+ }, "strip", z.ZodTypeAny, {
1600
1478
  type: "PRICE";
1601
1479
  data: {
1602
1480
  value: number;
@@ -1605,7 +1483,80 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1605
1483
  roundStep?: number | null | undefined;
1606
1484
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1607
1485
  };
1608
- } | {
1486
+ }, {
1487
+ type: "PRICE";
1488
+ data: {
1489
+ value: number;
1490
+ type: "PERCENTAGE" | "ABSOLUTE";
1491
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1492
+ roundStep?: number | null | undefined;
1493
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1494
+ };
1495
+ }>, z.ZodObject<{
1496
+ data: z.ZodObject<{
1497
+ text: z.ZodString;
1498
+ }, "strip", z.ZodTypeAny, {
1499
+ text: string;
1500
+ }, {
1501
+ text: string;
1502
+ }>;
1503
+ type: z.ZodLiteral<"TEXT">;
1504
+ }, "strip", z.ZodTypeAny, {
1505
+ type: "TEXT";
1506
+ data: {
1507
+ text: string;
1508
+ };
1509
+ }, {
1510
+ type: "TEXT";
1511
+ data: {
1512
+ text: string;
1513
+ };
1514
+ }>, z.ZodObject<{
1515
+ data: z.ZodObject<{
1516
+ doRemoveBackground: z.ZodBoolean;
1517
+ doSmartCrop: z.ZodBoolean;
1518
+ doChangeBackground: z.ZodBoolean;
1519
+ doRotate: z.ZodBoolean;
1520
+ doAddBorders: z.ZodBoolean;
1521
+ shadow: z.ZodBoolean;
1522
+ targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1523
+ targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1524
+ newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1525
+ newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1526
+ rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1527
+ borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1528
+ borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1529
+ }, "strip", z.ZodTypeAny, {
1530
+ doRemoveBackground: boolean;
1531
+ doSmartCrop: boolean;
1532
+ doChangeBackground: boolean;
1533
+ doRotate: boolean;
1534
+ doAddBorders: boolean;
1535
+ shadow: boolean;
1536
+ targetWidth?: number | null | undefined;
1537
+ targetHeight?: number | null | undefined;
1538
+ newBackgroundColor?: string | null | undefined;
1539
+ newBackgroundUrl?: string | null | undefined;
1540
+ rotationAngle?: number | null | undefined;
1541
+ borderSize?: number | null | undefined;
1542
+ borderColor?: string | null | undefined;
1543
+ }, {
1544
+ doRemoveBackground: boolean;
1545
+ doSmartCrop: boolean;
1546
+ doChangeBackground: boolean;
1547
+ doRotate: boolean;
1548
+ doAddBorders: boolean;
1549
+ shadow: boolean;
1550
+ targetWidth?: number | null | undefined;
1551
+ targetHeight?: number | null | undefined;
1552
+ newBackgroundColor?: string | null | undefined;
1553
+ newBackgroundUrl?: string | null | undefined;
1554
+ rotationAngle?: number | null | undefined;
1555
+ borderSize?: number | null | undefined;
1556
+ borderColor?: string | null | undefined;
1557
+ }>;
1558
+ type: z.ZodLiteral<"VISION">;
1559
+ }, "strip", z.ZodTypeAny, {
1609
1560
  type: "VISION";
1610
1561
  data: {
1611
1562
  doRemoveBackground: boolean;
@@ -1622,23 +1573,34 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1622
1573
  borderSize?: number | null | undefined;
1623
1574
  borderColor?: string | null | undefined;
1624
1575
  };
1625
- } | {
1626
- type: "TEXT";
1576
+ }, {
1577
+ type: "VISION";
1627
1578
  data: {
1628
- text: string;
1579
+ doRemoveBackground: boolean;
1580
+ doSmartCrop: boolean;
1581
+ doChangeBackground: boolean;
1582
+ doRotate: boolean;
1583
+ doAddBorders: boolean;
1584
+ shadow: boolean;
1585
+ targetWidth?: number | null | undefined;
1586
+ targetHeight?: number | null | undefined;
1587
+ newBackgroundColor?: string | null | undefined;
1588
+ newBackgroundUrl?: string | null | undefined;
1589
+ rotationAngle?: number | null | undefined;
1590
+ borderSize?: number | null | undefined;
1591
+ borderColor?: string | null | undefined;
1629
1592
  };
1630
- } | {
1593
+ }>]>;
1594
+ }, "strip", z.ZodTypeAny, {
1595
+ id: string;
1596
+ name: string;
1597
+ payload: {
1631
1598
  type: "ACTIONS";
1632
1599
  data: {
1633
1600
  actions: {
1634
1601
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1635
1602
  payload: {
1636
1603
  type: "EMPTY";
1637
- } | {
1638
- type: "WAIT";
1639
- data: {
1640
- seconds: number;
1641
- };
1642
1604
  } | {
1643
1605
  type: "PRICE";
1644
1606
  data: {
@@ -1653,11 +1615,18 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1653
1615
  data: {
1654
1616
  text: string;
1655
1617
  };
1618
+ } | {
1619
+ type: "WAIT";
1620
+ data: {
1621
+ seconds: number;
1622
+ };
1656
1623
  };
1657
1624
  enabled: boolean;
1658
1625
  mandatory?: boolean | null | undefined;
1659
1626
  }[];
1660
1627
  };
1628
+ } | {
1629
+ type: "EMPTY";
1661
1630
  } | {
1662
1631
  type: "FEES";
1663
1632
  data: {
@@ -1666,14 +1635,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1666
1635
  name: string;
1667
1636
  }[];
1668
1637
  };
1669
- };
1670
- caseId: string;
1671
- weight: number;
1672
- }, {
1673
- id: string;
1674
- name: string;
1675
- payload: {
1676
- type: "EMPTY";
1677
1638
  } | {
1678
1639
  type: "PRICE";
1679
1640
  data: {
@@ -1683,6 +1644,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1683
1644
  roundStep?: number | null | undefined;
1684
1645
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1685
1646
  };
1647
+ } | {
1648
+ type: "TEXT";
1649
+ data: {
1650
+ text: string;
1651
+ };
1686
1652
  } | {
1687
1653
  type: "VISION";
1688
1654
  data: {
@@ -1700,23 +1666,19 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1700
1666
  borderSize?: number | null | undefined;
1701
1667
  borderColor?: string | null | undefined;
1702
1668
  };
1703
- } | {
1704
- type: "TEXT";
1705
- data: {
1706
- text: string;
1707
- };
1708
- } | {
1669
+ };
1670
+ caseId: string;
1671
+ weight: number;
1672
+ }, {
1673
+ id: string;
1674
+ name: string;
1675
+ payload: {
1709
1676
  type: "ACTIONS";
1710
1677
  data: {
1711
1678
  actions: {
1712
1679
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1713
1680
  payload: {
1714
1681
  type: "EMPTY";
1715
- } | {
1716
- type: "WAIT";
1717
- data: {
1718
- seconds: number;
1719
- };
1720
1682
  } | {
1721
1683
  type: "PRICE";
1722
1684
  data: {
@@ -1731,11 +1693,18 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1731
1693
  data: {
1732
1694
  text: string;
1733
1695
  };
1696
+ } | {
1697
+ type: "WAIT";
1698
+ data: {
1699
+ seconds: number;
1700
+ };
1734
1701
  };
1735
1702
  enabled: boolean;
1736
1703
  mandatory?: boolean | null | undefined;
1737
1704
  }[];
1738
1705
  };
1706
+ } | {
1707
+ type: "EMPTY";
1739
1708
  } | {
1740
1709
  type: "FEES";
1741
1710
  data: {
@@ -1744,22 +1713,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1744
1713
  name: string;
1745
1714
  }[];
1746
1715
  };
1747
- };
1748
- caseId: string;
1749
- weight: number;
1750
- }>, "many">>>;
1751
- }, "strip", z.ZodTypeAny, {
1752
- id: string;
1753
- enabled: boolean;
1754
- testMode: boolean;
1755
- preferenceId: string;
1756
- abTest: boolean;
1757
- savedFiltersId?: string | null | undefined;
1758
- variants?: {
1759
- id: string;
1760
- name: string;
1761
- payload: {
1762
- type: "EMPTY";
1763
1716
  } | {
1764
1717
  type: "PRICE";
1765
1718
  data: {
@@ -1769,6 +1722,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1769
1722
  roundStep?: number | null | undefined;
1770
1723
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1771
1724
  };
1725
+ } | {
1726
+ type: "TEXT";
1727
+ data: {
1728
+ text: string;
1729
+ };
1772
1730
  } | {
1773
1731
  type: "VISION";
1774
1732
  data: {
@@ -1786,23 +1744,27 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1786
1744
  borderSize?: number | null | undefined;
1787
1745
  borderColor?: string | null | undefined;
1788
1746
  };
1789
- } | {
1790
- type: "TEXT";
1791
- data: {
1792
- text: string;
1793
- };
1794
- } | {
1795
- type: "ACTIONS";
1796
- data: {
1797
- actions: {
1798
- type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1747
+ };
1748
+ caseId: string;
1749
+ weight: number;
1750
+ }>, "many">>>;
1751
+ }, "strip", z.ZodTypeAny, {
1752
+ id: string;
1753
+ enabled: boolean;
1754
+ testMode: boolean;
1755
+ preferenceId: string;
1756
+ abTest: boolean;
1757
+ savedFiltersId?: string | null | undefined;
1758
+ variants?: {
1759
+ id: string;
1760
+ name: string;
1761
+ payload: {
1762
+ type: "ACTIONS";
1763
+ data: {
1764
+ actions: {
1765
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1799
1766
  payload: {
1800
1767
  type: "EMPTY";
1801
- } | {
1802
- type: "WAIT";
1803
- data: {
1804
- seconds: number;
1805
- };
1806
1768
  } | {
1807
1769
  type: "PRICE";
1808
1770
  data: {
@@ -1817,11 +1779,18 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1817
1779
  data: {
1818
1780
  text: string;
1819
1781
  };
1782
+ } | {
1783
+ type: "WAIT";
1784
+ data: {
1785
+ seconds: number;
1786
+ };
1820
1787
  };
1821
1788
  enabled: boolean;
1822
1789
  mandatory?: boolean | null | undefined;
1823
1790
  }[];
1824
1791
  };
1792
+ } | {
1793
+ type: "EMPTY";
1825
1794
  } | {
1826
1795
  type: "FEES";
1827
1796
  data: {
@@ -1830,22 +1799,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1830
1799
  name: string;
1831
1800
  }[];
1832
1801
  };
1833
- };
1834
- caseId: string;
1835
- weight: number;
1836
- }[] | null | undefined;
1837
- }, {
1838
- id: string;
1839
- enabled: boolean;
1840
- testMode: boolean;
1841
- preferenceId: string;
1842
- abTest: boolean;
1843
- savedFiltersId?: string | null | undefined;
1844
- variants?: {
1845
- id: string;
1846
- name: string;
1847
- payload: {
1848
- type: "EMPTY";
1849
1802
  } | {
1850
1803
  type: "PRICE";
1851
1804
  data: {
@@ -1855,6 +1808,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1855
1808
  roundStep?: number | null | undefined;
1856
1809
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1857
1810
  };
1811
+ } | {
1812
+ type: "TEXT";
1813
+ data: {
1814
+ text: string;
1815
+ };
1858
1816
  } | {
1859
1817
  type: "VISION";
1860
1818
  data: {
@@ -1872,23 +1830,27 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1872
1830
  borderSize?: number | null | undefined;
1873
1831
  borderColor?: string | null | undefined;
1874
1832
  };
1875
- } | {
1876
- type: "TEXT";
1877
- data: {
1878
- text: string;
1879
- };
1880
- } | {
1833
+ };
1834
+ caseId: string;
1835
+ weight: number;
1836
+ }[] | null | undefined;
1837
+ }, {
1838
+ id: string;
1839
+ enabled: boolean;
1840
+ testMode: boolean;
1841
+ preferenceId: string;
1842
+ abTest: boolean;
1843
+ savedFiltersId?: string | null | undefined;
1844
+ variants?: {
1845
+ id: string;
1846
+ name: string;
1847
+ payload: {
1881
1848
  type: "ACTIONS";
1882
1849
  data: {
1883
1850
  actions: {
1884
1851
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1885
1852
  payload: {
1886
1853
  type: "EMPTY";
1887
- } | {
1888
- type: "WAIT";
1889
- data: {
1890
- seconds: number;
1891
- };
1892
1854
  } | {
1893
1855
  type: "PRICE";
1894
1856
  data: {
@@ -1903,11 +1865,18 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1903
1865
  data: {
1904
1866
  text: string;
1905
1867
  };
1868
+ } | {
1869
+ type: "WAIT";
1870
+ data: {
1871
+ seconds: number;
1872
+ };
1906
1873
  };
1907
1874
  enabled: boolean;
1908
1875
  mandatory?: boolean | null | undefined;
1909
1876
  }[];
1910
1877
  };
1878
+ } | {
1879
+ type: "EMPTY";
1911
1880
  } | {
1912
1881
  type: "FEES";
1913
1882
  data: {
@@ -1916,6 +1885,37 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1916
1885
  name: string;
1917
1886
  }[];
1918
1887
  };
1888
+ } | {
1889
+ type: "PRICE";
1890
+ data: {
1891
+ value: number;
1892
+ type: "PERCENTAGE" | "ABSOLUTE";
1893
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1894
+ roundStep?: number | null | undefined;
1895
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1896
+ };
1897
+ } | {
1898
+ type: "TEXT";
1899
+ data: {
1900
+ text: string;
1901
+ };
1902
+ } | {
1903
+ type: "VISION";
1904
+ data: {
1905
+ doRemoveBackground: boolean;
1906
+ doSmartCrop: boolean;
1907
+ doChangeBackground: boolean;
1908
+ doRotate: boolean;
1909
+ doAddBorders: boolean;
1910
+ shadow: boolean;
1911
+ targetWidth?: number | null | undefined;
1912
+ targetHeight?: number | null | undefined;
1913
+ newBackgroundColor?: string | null | undefined;
1914
+ newBackgroundUrl?: string | null | undefined;
1915
+ rotationAngle?: number | null | undefined;
1916
+ borderSize?: number | null | undefined;
1917
+ borderColor?: string | null | undefined;
1918
+ };
1919
1919
  };
1920
1920
  caseId: string;
1921
1921
  weight: number;
@@ -1927,181 +1927,17 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
1927
1927
  name: z.ZodString;
1928
1928
  weight: z.ZodNumber;
1929
1929
  payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1930
- type: z.ZodLiteral<"EMPTY">;
1931
- }, "strip", z.ZodTypeAny, {
1932
- type: "EMPTY";
1933
- }, {
1934
- type: "EMPTY";
1935
- }>, z.ZodObject<{
1936
- type: z.ZodLiteral<"PRICE">;
1937
- data: z.ZodObject<{
1938
- type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
1939
- value: z.ZodNumber;
1940
- roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
1941
- roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1942
- negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
1943
- }, "strip", z.ZodTypeAny, {
1944
- value: number;
1945
- type: "PERCENTAGE" | "ABSOLUTE";
1946
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1947
- roundStep?: number | null | undefined;
1948
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1949
- }, {
1950
- value: number;
1951
- type: "PERCENTAGE" | "ABSOLUTE";
1952
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1953
- roundStep?: number | null | undefined;
1954
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1955
- }>;
1956
- }, "strip", z.ZodTypeAny, {
1957
- type: "PRICE";
1958
- data: {
1959
- value: number;
1960
- type: "PERCENTAGE" | "ABSOLUTE";
1961
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1962
- roundStep?: number | null | undefined;
1963
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1964
- };
1965
- }, {
1966
- type: "PRICE";
1967
- data: {
1968
- value: number;
1969
- type: "PERCENTAGE" | "ABSOLUTE";
1970
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1971
- roundStep?: number | null | undefined;
1972
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1973
- };
1974
- }>, z.ZodObject<{
1975
- type: z.ZodLiteral<"VISION">;
1976
- data: z.ZodObject<{
1977
- doRemoveBackground: z.ZodBoolean;
1978
- doSmartCrop: z.ZodBoolean;
1979
- doChangeBackground: z.ZodBoolean;
1980
- doRotate: z.ZodBoolean;
1981
- doAddBorders: z.ZodBoolean;
1982
- shadow: z.ZodBoolean;
1983
- targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1984
- targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1985
- newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1986
- newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1987
- rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1988
- borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1989
- borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1990
- }, "strip", z.ZodTypeAny, {
1991
- doRemoveBackground: boolean;
1992
- doSmartCrop: boolean;
1993
- doChangeBackground: boolean;
1994
- doRotate: boolean;
1995
- doAddBorders: boolean;
1996
- shadow: boolean;
1997
- targetWidth?: number | null | undefined;
1998
- targetHeight?: number | null | undefined;
1999
- newBackgroundColor?: string | null | undefined;
2000
- newBackgroundUrl?: string | null | undefined;
2001
- rotationAngle?: number | null | undefined;
2002
- borderSize?: number | null | undefined;
2003
- borderColor?: string | null | undefined;
2004
- }, {
2005
- doRemoveBackground: boolean;
2006
- doSmartCrop: boolean;
2007
- doChangeBackground: boolean;
2008
- doRotate: boolean;
2009
- doAddBorders: boolean;
2010
- shadow: boolean;
2011
- targetWidth?: number | null | undefined;
2012
- targetHeight?: number | null | undefined;
2013
- newBackgroundColor?: string | null | undefined;
2014
- newBackgroundUrl?: string | null | undefined;
2015
- rotationAngle?: number | null | undefined;
2016
- borderSize?: number | null | undefined;
2017
- borderColor?: string | null | undefined;
2018
- }>;
2019
- }, "strip", z.ZodTypeAny, {
2020
- type: "VISION";
2021
- data: {
2022
- doRemoveBackground: boolean;
2023
- doSmartCrop: boolean;
2024
- doChangeBackground: boolean;
2025
- doRotate: boolean;
2026
- doAddBorders: boolean;
2027
- shadow: boolean;
2028
- targetWidth?: number | null | undefined;
2029
- targetHeight?: number | null | undefined;
2030
- newBackgroundColor?: string | null | undefined;
2031
- newBackgroundUrl?: string | null | undefined;
2032
- rotationAngle?: number | null | undefined;
2033
- borderSize?: number | null | undefined;
2034
- borderColor?: string | null | undefined;
2035
- };
2036
- }, {
2037
- type: "VISION";
2038
- data: {
2039
- doRemoveBackground: boolean;
2040
- doSmartCrop: boolean;
2041
- doChangeBackground: boolean;
2042
- doRotate: boolean;
2043
- doAddBorders: boolean;
2044
- shadow: boolean;
2045
- targetWidth?: number | null | undefined;
2046
- targetHeight?: number | null | undefined;
2047
- newBackgroundColor?: string | null | undefined;
2048
- newBackgroundUrl?: string | null | undefined;
2049
- rotationAngle?: number | null | undefined;
2050
- borderSize?: number | null | undefined;
2051
- borderColor?: string | null | undefined;
2052
- };
2053
- }>, z.ZodObject<{
2054
- type: z.ZodLiteral<"TEXT">;
2055
- data: z.ZodObject<{
2056
- text: z.ZodString;
2057
- }, "strip", z.ZodTypeAny, {
2058
- text: string;
2059
- }, {
2060
- text: string;
2061
- }>;
2062
- }, "strip", z.ZodTypeAny, {
2063
- type: "TEXT";
2064
- data: {
2065
- text: string;
2066
- };
2067
- }, {
2068
- type: "TEXT";
2069
- data: {
2070
- text: string;
2071
- };
2072
- }>, z.ZodObject<{
2073
- type: z.ZodLiteral<"ACTIONS">;
2074
1930
  data: z.ZodObject<{
2075
1931
  actions: z.ZodArray<z.ZodObject<{
2076
1932
  type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO", "OFFER_MANUAL"]>;
2077
1933
  enabled: z.ZodBoolean;
2078
1934
  payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2079
- type: z.ZodLiteral<"EMPTY">;
2080
- }, "strip", z.ZodTypeAny, {
2081
- type: "EMPTY";
2082
- }, {
2083
- type: "EMPTY";
2084
- }>, z.ZodObject<{
2085
- type: z.ZodLiteral<"WAIT">;
2086
- data: z.ZodObject<{
2087
- seconds: z.ZodNumber;
2088
- }, "strip", z.ZodTypeAny, {
2089
- seconds: number;
2090
- }, {
2091
- seconds: number;
2092
- }>;
1935
+ type: z.ZodLiteral<"EMPTY">;
2093
1936
  }, "strip", z.ZodTypeAny, {
2094
- type: "WAIT";
2095
- data: {
2096
- seconds: number;
2097
- };
1937
+ type: "EMPTY";
2098
1938
  }, {
2099
- type: "WAIT";
2100
- data: {
2101
- seconds: number;
2102
- };
1939
+ type: "EMPTY";
2103
1940
  }>, z.ZodObject<{
2104
- type: z.ZodLiteral<"PRICE">;
2105
1941
  data: z.ZodObject<{
2106
1942
  type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
2107
1943
  value: z.ZodNumber;
@@ -2121,6 +1957,7 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2121
1957
  roundStep?: number | null | undefined;
2122
1958
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2123
1959
  }>;
1960
+ type: z.ZodLiteral<"PRICE">;
2124
1961
  }, "strip", z.ZodTypeAny, {
2125
1962
  type: "PRICE";
2126
1963
  data: {
@@ -2140,7 +1977,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2140
1977
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2141
1978
  };
2142
1979
  }>, z.ZodObject<{
2143
- type: z.ZodLiteral<"TEXT">;
2144
1980
  data: z.ZodObject<{
2145
1981
  text: z.ZodString;
2146
1982
  }, "strip", z.ZodTypeAny, {
@@ -2148,6 +1984,7 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2148
1984
  }, {
2149
1985
  text: string;
2150
1986
  }>;
1987
+ type: z.ZodLiteral<"TEXT">;
2151
1988
  }, "strip", z.ZodTypeAny, {
2152
1989
  type: "TEXT";
2153
1990
  data: {
@@ -2158,17 +1995,31 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2158
1995
  data: {
2159
1996
  text: string;
2160
1997
  };
1998
+ }>, z.ZodObject<{
1999
+ data: z.ZodObject<{
2000
+ seconds: z.ZodNumber;
2001
+ }, "strip", z.ZodTypeAny, {
2002
+ seconds: number;
2003
+ }, {
2004
+ seconds: number;
2005
+ }>;
2006
+ type: z.ZodLiteral<"WAIT">;
2007
+ }, "strip", z.ZodTypeAny, {
2008
+ type: "WAIT";
2009
+ data: {
2010
+ seconds: number;
2011
+ };
2012
+ }, {
2013
+ type: "WAIT";
2014
+ data: {
2015
+ seconds: number;
2016
+ };
2161
2017
  }>]>;
2162
2018
  mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2163
2019
  }, "strip", z.ZodTypeAny, {
2164
2020
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2165
2021
  payload: {
2166
2022
  type: "EMPTY";
2167
- } | {
2168
- type: "WAIT";
2169
- data: {
2170
- seconds: number;
2171
- };
2172
2023
  } | {
2173
2024
  type: "PRICE";
2174
2025
  data: {
@@ -2183,6 +2034,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2183
2034
  data: {
2184
2035
  text: string;
2185
2036
  };
2037
+ } | {
2038
+ type: "WAIT";
2039
+ data: {
2040
+ seconds: number;
2041
+ };
2186
2042
  };
2187
2043
  enabled: boolean;
2188
2044
  mandatory?: boolean | null | undefined;
@@ -2190,11 +2046,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2190
2046
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2191
2047
  payload: {
2192
2048
  type: "EMPTY";
2193
- } | {
2194
- type: "WAIT";
2195
- data: {
2196
- seconds: number;
2197
- };
2198
2049
  } | {
2199
2050
  type: "PRICE";
2200
2051
  data: {
@@ -2209,6 +2060,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2209
2060
  data: {
2210
2061
  text: string;
2211
2062
  };
2063
+ } | {
2064
+ type: "WAIT";
2065
+ data: {
2066
+ seconds: number;
2067
+ };
2212
2068
  };
2213
2069
  enabled: boolean;
2214
2070
  mandatory?: boolean | null | undefined;
@@ -2218,11 +2074,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2218
2074
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2219
2075
  payload: {
2220
2076
  type: "EMPTY";
2221
- } | {
2222
- type: "WAIT";
2223
- data: {
2224
- seconds: number;
2225
- };
2226
2077
  } | {
2227
2078
  type: "PRICE";
2228
2079
  data: {
@@ -2237,6 +2088,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2237
2088
  data: {
2238
2089
  text: string;
2239
2090
  };
2091
+ } | {
2092
+ type: "WAIT";
2093
+ data: {
2094
+ seconds: number;
2095
+ };
2240
2096
  };
2241
2097
  enabled: boolean;
2242
2098
  mandatory?: boolean | null | undefined;
@@ -2246,11 +2102,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2246
2102
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2247
2103
  payload: {
2248
2104
  type: "EMPTY";
2249
- } | {
2250
- type: "WAIT";
2251
- data: {
2252
- seconds: number;
2253
- };
2254
2105
  } | {
2255
2106
  type: "PRICE";
2256
2107
  data: {
@@ -2265,11 +2116,17 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2265
2116
  data: {
2266
2117
  text: string;
2267
2118
  };
2119
+ } | {
2120
+ type: "WAIT";
2121
+ data: {
2122
+ seconds: number;
2123
+ };
2268
2124
  };
2269
2125
  enabled: boolean;
2270
2126
  mandatory?: boolean | null | undefined;
2271
2127
  }[];
2272
2128
  }>;
2129
+ type: z.ZodLiteral<"ACTIONS">;
2273
2130
  }, "strip", z.ZodTypeAny, {
2274
2131
  type: "ACTIONS";
2275
2132
  data: {
@@ -2277,11 +2134,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2277
2134
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2278
2135
  payload: {
2279
2136
  type: "EMPTY";
2280
- } | {
2281
- type: "WAIT";
2282
- data: {
2283
- seconds: number;
2284
- };
2285
2137
  } | {
2286
2138
  type: "PRICE";
2287
2139
  data: {
@@ -2296,6 +2148,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2296
2148
  data: {
2297
2149
  text: string;
2298
2150
  };
2151
+ } | {
2152
+ type: "WAIT";
2153
+ data: {
2154
+ seconds: number;
2155
+ };
2299
2156
  };
2300
2157
  enabled: boolean;
2301
2158
  mandatory?: boolean | null | undefined;
@@ -2308,11 +2165,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2308
2165
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2309
2166
  payload: {
2310
2167
  type: "EMPTY";
2311
- } | {
2312
- type: "WAIT";
2313
- data: {
2314
- seconds: number;
2315
- };
2316
2168
  } | {
2317
2169
  type: "PRICE";
2318
2170
  data: {
@@ -2327,13 +2179,23 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2327
2179
  data: {
2328
2180
  text: string;
2329
2181
  };
2182
+ } | {
2183
+ type: "WAIT";
2184
+ data: {
2185
+ seconds: number;
2186
+ };
2330
2187
  };
2331
2188
  enabled: boolean;
2332
2189
  mandatory?: boolean | null | undefined;
2333
2190
  }[];
2334
2191
  };
2335
2192
  }>, z.ZodObject<{
2336
- type: z.ZodLiteral<"FEES">;
2193
+ type: z.ZodLiteral<"EMPTY">;
2194
+ }, "strip", z.ZodTypeAny, {
2195
+ type: "EMPTY";
2196
+ }, {
2197
+ type: "EMPTY";
2198
+ }>, z.ZodObject<{
2337
2199
  data: z.ZodObject<{
2338
2200
  fees: z.ZodArray<z.ZodObject<{
2339
2201
  name: z.ZodString;
@@ -2356,6 +2218,7 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2356
2218
  name: string;
2357
2219
  }[];
2358
2220
  }>;
2221
+ type: z.ZodLiteral<"FEES">;
2359
2222
  }, "strip", z.ZodTypeAny, {
2360
2223
  type: "FEES";
2361
2224
  data: {
@@ -2372,13 +2235,28 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2372
2235
  name: string;
2373
2236
  }[];
2374
2237
  };
2375
- }>]>;
2376
- }, "strip", z.ZodTypeAny, {
2377
- id: string;
2378
- name: string;
2379
- payload: {
2380
- type: "EMPTY";
2381
- } | {
2238
+ }>, z.ZodObject<{
2239
+ data: z.ZodObject<{
2240
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
2241
+ value: z.ZodNumber;
2242
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
2243
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2244
+ negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
2245
+ }, "strip", z.ZodTypeAny, {
2246
+ value: number;
2247
+ type: "PERCENTAGE" | "ABSOLUTE";
2248
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2249
+ roundStep?: number | null | undefined;
2250
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2251
+ }, {
2252
+ value: number;
2253
+ type: "PERCENTAGE" | "ABSOLUTE";
2254
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2255
+ roundStep?: number | null | undefined;
2256
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2257
+ }>;
2258
+ type: z.ZodLiteral<"PRICE">;
2259
+ }, "strip", z.ZodTypeAny, {
2382
2260
  type: "PRICE";
2383
2261
  data: {
2384
2262
  value: number;
@@ -2387,7 +2265,80 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2387
2265
  roundStep?: number | null | undefined;
2388
2266
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2389
2267
  };
2390
- } | {
2268
+ }, {
2269
+ type: "PRICE";
2270
+ data: {
2271
+ value: number;
2272
+ type: "PERCENTAGE" | "ABSOLUTE";
2273
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2274
+ roundStep?: number | null | undefined;
2275
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2276
+ };
2277
+ }>, z.ZodObject<{
2278
+ data: z.ZodObject<{
2279
+ text: z.ZodString;
2280
+ }, "strip", z.ZodTypeAny, {
2281
+ text: string;
2282
+ }, {
2283
+ text: string;
2284
+ }>;
2285
+ type: z.ZodLiteral<"TEXT">;
2286
+ }, "strip", z.ZodTypeAny, {
2287
+ type: "TEXT";
2288
+ data: {
2289
+ text: string;
2290
+ };
2291
+ }, {
2292
+ type: "TEXT";
2293
+ data: {
2294
+ text: string;
2295
+ };
2296
+ }>, z.ZodObject<{
2297
+ data: z.ZodObject<{
2298
+ doRemoveBackground: z.ZodBoolean;
2299
+ doSmartCrop: z.ZodBoolean;
2300
+ doChangeBackground: z.ZodBoolean;
2301
+ doRotate: z.ZodBoolean;
2302
+ doAddBorders: z.ZodBoolean;
2303
+ shadow: z.ZodBoolean;
2304
+ targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2305
+ targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2306
+ newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2307
+ newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2308
+ rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2309
+ borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2310
+ borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2311
+ }, "strip", z.ZodTypeAny, {
2312
+ doRemoveBackground: boolean;
2313
+ doSmartCrop: boolean;
2314
+ doChangeBackground: boolean;
2315
+ doRotate: boolean;
2316
+ doAddBorders: boolean;
2317
+ shadow: boolean;
2318
+ targetWidth?: number | null | undefined;
2319
+ targetHeight?: number | null | undefined;
2320
+ newBackgroundColor?: string | null | undefined;
2321
+ newBackgroundUrl?: string | null | undefined;
2322
+ rotationAngle?: number | null | undefined;
2323
+ borderSize?: number | null | undefined;
2324
+ borderColor?: string | null | undefined;
2325
+ }, {
2326
+ doRemoveBackground: boolean;
2327
+ doSmartCrop: boolean;
2328
+ doChangeBackground: boolean;
2329
+ doRotate: boolean;
2330
+ doAddBorders: boolean;
2331
+ shadow: boolean;
2332
+ targetWidth?: number | null | undefined;
2333
+ targetHeight?: number | null | undefined;
2334
+ newBackgroundColor?: string | null | undefined;
2335
+ newBackgroundUrl?: string | null | undefined;
2336
+ rotationAngle?: number | null | undefined;
2337
+ borderSize?: number | null | undefined;
2338
+ borderColor?: string | null | undefined;
2339
+ }>;
2340
+ type: z.ZodLiteral<"VISION">;
2341
+ }, "strip", z.ZodTypeAny, {
2391
2342
  type: "VISION";
2392
2343
  data: {
2393
2344
  doRemoveBackground: boolean;
@@ -2404,23 +2355,34 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2404
2355
  borderSize?: number | null | undefined;
2405
2356
  borderColor?: string | null | undefined;
2406
2357
  };
2407
- } | {
2408
- type: "TEXT";
2358
+ }, {
2359
+ type: "VISION";
2409
2360
  data: {
2410
- text: string;
2361
+ doRemoveBackground: boolean;
2362
+ doSmartCrop: boolean;
2363
+ doChangeBackground: boolean;
2364
+ doRotate: boolean;
2365
+ doAddBorders: boolean;
2366
+ shadow: boolean;
2367
+ targetWidth?: number | null | undefined;
2368
+ targetHeight?: number | null | undefined;
2369
+ newBackgroundColor?: string | null | undefined;
2370
+ newBackgroundUrl?: string | null | undefined;
2371
+ rotationAngle?: number | null | undefined;
2372
+ borderSize?: number | null | undefined;
2373
+ borderColor?: string | null | undefined;
2411
2374
  };
2412
- } | {
2375
+ }>]>;
2376
+ }, "strip", z.ZodTypeAny, {
2377
+ id: string;
2378
+ name: string;
2379
+ payload: {
2413
2380
  type: "ACTIONS";
2414
2381
  data: {
2415
2382
  actions: {
2416
2383
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2417
2384
  payload: {
2418
2385
  type: "EMPTY";
2419
- } | {
2420
- type: "WAIT";
2421
- data: {
2422
- seconds: number;
2423
- };
2424
2386
  } | {
2425
2387
  type: "PRICE";
2426
2388
  data: {
@@ -2435,27 +2397,26 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2435
2397
  data: {
2436
2398
  text: string;
2437
2399
  };
2400
+ } | {
2401
+ type: "WAIT";
2402
+ data: {
2403
+ seconds: number;
2404
+ };
2438
2405
  };
2439
2406
  enabled: boolean;
2440
2407
  mandatory?: boolean | null | undefined;
2441
2408
  }[];
2442
2409
  };
2443
2410
  } | {
2444
- type: "FEES";
2445
- data: {
2446
- fees: {
2447
- value: number;
2448
- name: string;
2449
- }[];
2450
- };
2451
- };
2452
- caseId: string;
2453
- weight: number;
2454
- }, {
2455
- id: string;
2456
- name: string;
2457
- payload: {
2458
2411
  type: "EMPTY";
2412
+ } | {
2413
+ type: "FEES";
2414
+ data: {
2415
+ fees: {
2416
+ value: number;
2417
+ name: string;
2418
+ }[];
2419
+ };
2459
2420
  } | {
2460
2421
  type: "PRICE";
2461
2422
  data: {
@@ -2465,6 +2426,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2465
2426
  roundStep?: number | null | undefined;
2466
2427
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2467
2428
  };
2429
+ } | {
2430
+ type: "TEXT";
2431
+ data: {
2432
+ text: string;
2433
+ };
2468
2434
  } | {
2469
2435
  type: "VISION";
2470
2436
  data: {
@@ -2482,23 +2448,19 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2482
2448
  borderSize?: number | null | undefined;
2483
2449
  borderColor?: string | null | undefined;
2484
2450
  };
2485
- } | {
2486
- type: "TEXT";
2487
- data: {
2488
- text: string;
2489
- };
2490
- } | {
2451
+ };
2452
+ caseId: string;
2453
+ weight: number;
2454
+ }, {
2455
+ id: string;
2456
+ name: string;
2457
+ payload: {
2491
2458
  type: "ACTIONS";
2492
2459
  data: {
2493
2460
  actions: {
2494
2461
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2495
2462
  payload: {
2496
2463
  type: "EMPTY";
2497
- } | {
2498
- type: "WAIT";
2499
- data: {
2500
- seconds: number;
2501
- };
2502
2464
  } | {
2503
2465
  type: "PRICE";
2504
2466
  data: {
@@ -2513,11 +2475,18 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2513
2475
  data: {
2514
2476
  text: string;
2515
2477
  };
2478
+ } | {
2479
+ type: "WAIT";
2480
+ data: {
2481
+ seconds: number;
2482
+ };
2516
2483
  };
2517
2484
  enabled: boolean;
2518
2485
  mandatory?: boolean | null | undefined;
2519
2486
  }[];
2520
2487
  };
2488
+ } | {
2489
+ type: "EMPTY";
2521
2490
  } | {
2522
2491
  type: "FEES";
2523
2492
  data: {
@@ -2526,6 +2495,37 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2526
2495
  name: string;
2527
2496
  }[];
2528
2497
  };
2498
+ } | {
2499
+ type: "PRICE";
2500
+ data: {
2501
+ value: number;
2502
+ type: "PERCENTAGE" | "ABSOLUTE";
2503
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2504
+ roundStep?: number | null | undefined;
2505
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2506
+ };
2507
+ } | {
2508
+ type: "TEXT";
2509
+ data: {
2510
+ text: string;
2511
+ };
2512
+ } | {
2513
+ type: "VISION";
2514
+ data: {
2515
+ doRemoveBackground: boolean;
2516
+ doSmartCrop: boolean;
2517
+ doChangeBackground: boolean;
2518
+ doRotate: boolean;
2519
+ doAddBorders: boolean;
2520
+ shadow: boolean;
2521
+ targetWidth?: number | null | undefined;
2522
+ targetHeight?: number | null | undefined;
2523
+ newBackgroundColor?: string | null | undefined;
2524
+ newBackgroundUrl?: string | null | undefined;
2525
+ rotationAngle?: number | null | undefined;
2526
+ borderSize?: number | null | undefined;
2527
+ borderColor?: string | null | undefined;
2528
+ };
2529
2529
  };
2530
2530
  caseId: string;
2531
2531
  weight: number;
@@ -2549,50 +2549,12 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2549
2549
  id: string;
2550
2550
  name: string;
2551
2551
  payload: {
2552
- type: "EMPTY";
2553
- } | {
2554
- type: "PRICE";
2555
- data: {
2556
- value: number;
2557
- type: "PERCENTAGE" | "ABSOLUTE";
2558
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2559
- roundStep?: number | null | undefined;
2560
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2561
- };
2562
- } | {
2563
- type: "VISION";
2564
- data: {
2565
- doRemoveBackground: boolean;
2566
- doSmartCrop: boolean;
2567
- doChangeBackground: boolean;
2568
- doRotate: boolean;
2569
- doAddBorders: boolean;
2570
- shadow: boolean;
2571
- targetWidth?: number | null | undefined;
2572
- targetHeight?: number | null | undefined;
2573
- newBackgroundColor?: string | null | undefined;
2574
- newBackgroundUrl?: string | null | undefined;
2575
- rotationAngle?: number | null | undefined;
2576
- borderSize?: number | null | undefined;
2577
- borderColor?: string | null | undefined;
2578
- };
2579
- } | {
2580
- type: "TEXT";
2581
- data: {
2582
- text: string;
2583
- };
2584
- } | {
2585
2552
  type: "ACTIONS";
2586
2553
  data: {
2587
2554
  actions: {
2588
2555
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2589
2556
  payload: {
2590
2557
  type: "EMPTY";
2591
- } | {
2592
- type: "WAIT";
2593
- data: {
2594
- seconds: number;
2595
- };
2596
2558
  } | {
2597
2559
  type: "PRICE";
2598
2560
  data: {
@@ -2607,11 +2569,18 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2607
2569
  data: {
2608
2570
  text: string;
2609
2571
  };
2572
+ } | {
2573
+ type: "WAIT";
2574
+ data: {
2575
+ seconds: number;
2576
+ };
2610
2577
  };
2611
2578
  enabled: boolean;
2612
2579
  mandatory?: boolean | null | undefined;
2613
2580
  }[];
2614
2581
  };
2582
+ } | {
2583
+ type: "EMPTY";
2615
2584
  } | {
2616
2585
  type: "FEES";
2617
2586
  data: {
@@ -2620,6 +2589,37 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2620
2589
  name: string;
2621
2590
  }[];
2622
2591
  };
2592
+ } | {
2593
+ type: "PRICE";
2594
+ data: {
2595
+ value: number;
2596
+ type: "PERCENTAGE" | "ABSOLUTE";
2597
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2598
+ roundStep?: number | null | undefined;
2599
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2600
+ };
2601
+ } | {
2602
+ type: "TEXT";
2603
+ data: {
2604
+ text: string;
2605
+ };
2606
+ } | {
2607
+ type: "VISION";
2608
+ data: {
2609
+ doRemoveBackground: boolean;
2610
+ doSmartCrop: boolean;
2611
+ doChangeBackground: boolean;
2612
+ doRotate: boolean;
2613
+ doAddBorders: boolean;
2614
+ shadow: boolean;
2615
+ targetWidth?: number | null | undefined;
2616
+ targetHeight?: number | null | undefined;
2617
+ newBackgroundColor?: string | null | undefined;
2618
+ newBackgroundUrl?: string | null | undefined;
2619
+ rotationAngle?: number | null | undefined;
2620
+ borderSize?: number | null | undefined;
2621
+ borderColor?: string | null | undefined;
2622
+ };
2623
2623
  };
2624
2624
  caseId: string;
2625
2625
  weight: number;
@@ -2637,50 +2637,12 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2637
2637
  id: string;
2638
2638
  name: string;
2639
2639
  payload: {
2640
- type: "EMPTY";
2641
- } | {
2642
- type: "PRICE";
2643
- data: {
2644
- value: number;
2645
- type: "PERCENTAGE" | "ABSOLUTE";
2646
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2647
- roundStep?: number | null | undefined;
2648
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2649
- };
2650
- } | {
2651
- type: "VISION";
2652
- data: {
2653
- doRemoveBackground: boolean;
2654
- doSmartCrop: boolean;
2655
- doChangeBackground: boolean;
2656
- doRotate: boolean;
2657
- doAddBorders: boolean;
2658
- shadow: boolean;
2659
- targetWidth?: number | null | undefined;
2660
- targetHeight?: number | null | undefined;
2661
- newBackgroundColor?: string | null | undefined;
2662
- newBackgroundUrl?: string | null | undefined;
2663
- rotationAngle?: number | null | undefined;
2664
- borderSize?: number | null | undefined;
2665
- borderColor?: string | null | undefined;
2666
- };
2667
- } | {
2668
- type: "TEXT";
2669
- data: {
2670
- text: string;
2671
- };
2672
- } | {
2673
2640
  type: "ACTIONS";
2674
2641
  data: {
2675
2642
  actions: {
2676
2643
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2677
2644
  payload: {
2678
2645
  type: "EMPTY";
2679
- } | {
2680
- type: "WAIT";
2681
- data: {
2682
- seconds: number;
2683
- };
2684
2646
  } | {
2685
2647
  type: "PRICE";
2686
2648
  data: {
@@ -2695,11 +2657,18 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2695
2657
  data: {
2696
2658
  text: string;
2697
2659
  };
2660
+ } | {
2661
+ type: "WAIT";
2662
+ data: {
2663
+ seconds: number;
2664
+ };
2698
2665
  };
2699
2666
  enabled: boolean;
2700
2667
  mandatory?: boolean | null | undefined;
2701
2668
  }[];
2702
2669
  };
2670
+ } | {
2671
+ type: "EMPTY";
2703
2672
  } | {
2704
2673
  type: "FEES";
2705
2674
  data: {
@@ -2708,59 +2677,52 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2708
2677
  name: string;
2709
2678
  }[];
2710
2679
  };
2680
+ } | {
2681
+ type: "PRICE";
2682
+ data: {
2683
+ value: number;
2684
+ type: "PERCENTAGE" | "ABSOLUTE";
2685
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2686
+ roundStep?: number | null | undefined;
2687
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2688
+ };
2689
+ } | {
2690
+ type: "TEXT";
2691
+ data: {
2692
+ text: string;
2693
+ };
2694
+ } | {
2695
+ type: "VISION";
2696
+ data: {
2697
+ doRemoveBackground: boolean;
2698
+ doSmartCrop: boolean;
2699
+ doChangeBackground: boolean;
2700
+ doRotate: boolean;
2701
+ doAddBorders: boolean;
2702
+ shadow: boolean;
2703
+ targetWidth?: number | null | undefined;
2704
+ targetHeight?: number | null | undefined;
2705
+ newBackgroundColor?: string | null | undefined;
2706
+ newBackgroundUrl?: string | null | undefined;
2707
+ rotationAngle?: number | null | undefined;
2708
+ borderSize?: number | null | undefined;
2709
+ borderColor?: string | null | undefined;
2710
+ };
2711
2711
  };
2712
2712
  caseId: string;
2713
2713
  weight: number;
2714
2714
  }[] | null | undefined;
2715
2715
  };
2716
2716
  variant: {
2717
- id: string;
2718
- name: string;
2719
- payload: {
2720
- type: "EMPTY";
2721
- } | {
2722
- type: "PRICE";
2723
- data: {
2724
- value: number;
2725
- type: "PERCENTAGE" | "ABSOLUTE";
2726
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2727
- roundStep?: number | null | undefined;
2728
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2729
- };
2730
- } | {
2731
- type: "VISION";
2732
- data: {
2733
- doRemoveBackground: boolean;
2734
- doSmartCrop: boolean;
2735
- doChangeBackground: boolean;
2736
- doRotate: boolean;
2737
- doAddBorders: boolean;
2738
- shadow: boolean;
2739
- targetWidth?: number | null | undefined;
2740
- targetHeight?: number | null | undefined;
2741
- newBackgroundColor?: string | null | undefined;
2742
- newBackgroundUrl?: string | null | undefined;
2743
- rotationAngle?: number | null | undefined;
2744
- borderSize?: number | null | undefined;
2745
- borderColor?: string | null | undefined;
2746
- };
2747
- } | {
2748
- type: "TEXT";
2749
- data: {
2750
- text: string;
2751
- };
2752
- } | {
2717
+ id: string;
2718
+ name: string;
2719
+ payload: {
2753
2720
  type: "ACTIONS";
2754
2721
  data: {
2755
2722
  actions: {
2756
2723
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2757
2724
  payload: {
2758
2725
  type: "EMPTY";
2759
- } | {
2760
- type: "WAIT";
2761
- data: {
2762
- seconds: number;
2763
- };
2764
2726
  } | {
2765
2727
  type: "PRICE";
2766
2728
  data: {
@@ -2775,11 +2737,18 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2775
2737
  data: {
2776
2738
  text: string;
2777
2739
  };
2740
+ } | {
2741
+ type: "WAIT";
2742
+ data: {
2743
+ seconds: number;
2744
+ };
2778
2745
  };
2779
2746
  enabled: boolean;
2780
2747
  mandatory?: boolean | null | undefined;
2781
2748
  }[];
2782
2749
  };
2750
+ } | {
2751
+ type: "EMPTY";
2783
2752
  } | {
2784
2753
  type: "FEES";
2785
2754
  data: {
@@ -2788,6 +2757,37 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2788
2757
  name: string;
2789
2758
  }[];
2790
2759
  };
2760
+ } | {
2761
+ type: "PRICE";
2762
+ data: {
2763
+ value: number;
2764
+ type: "PERCENTAGE" | "ABSOLUTE";
2765
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2766
+ roundStep?: number | null | undefined;
2767
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2768
+ };
2769
+ } | {
2770
+ type: "TEXT";
2771
+ data: {
2772
+ text: string;
2773
+ };
2774
+ } | {
2775
+ type: "VISION";
2776
+ data: {
2777
+ doRemoveBackground: boolean;
2778
+ doSmartCrop: boolean;
2779
+ doChangeBackground: boolean;
2780
+ doRotate: boolean;
2781
+ doAddBorders: boolean;
2782
+ shadow: boolean;
2783
+ targetWidth?: number | null | undefined;
2784
+ targetHeight?: number | null | undefined;
2785
+ newBackgroundColor?: string | null | undefined;
2786
+ newBackgroundUrl?: string | null | undefined;
2787
+ rotationAngle?: number | null | undefined;
2788
+ borderSize?: number | null | undefined;
2789
+ borderColor?: string | null | undefined;
2790
+ };
2791
2791
  };
2792
2792
  caseId: string;
2793
2793
  weight: number;
@@ -2811,50 +2811,12 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2811
2811
  id: string;
2812
2812
  name: string;
2813
2813
  payload: {
2814
- type: "EMPTY";
2815
- } | {
2816
- type: "PRICE";
2817
- data: {
2818
- value: number;
2819
- type: "PERCENTAGE" | "ABSOLUTE";
2820
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2821
- roundStep?: number | null | undefined;
2822
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2823
- };
2824
- } | {
2825
- type: "VISION";
2826
- data: {
2827
- doRemoveBackground: boolean;
2828
- doSmartCrop: boolean;
2829
- doChangeBackground: boolean;
2830
- doRotate: boolean;
2831
- doAddBorders: boolean;
2832
- shadow: boolean;
2833
- targetWidth?: number | null | undefined;
2834
- targetHeight?: number | null | undefined;
2835
- newBackgroundColor?: string | null | undefined;
2836
- newBackgroundUrl?: string | null | undefined;
2837
- rotationAngle?: number | null | undefined;
2838
- borderSize?: number | null | undefined;
2839
- borderColor?: string | null | undefined;
2840
- };
2841
- } | {
2842
- type: "TEXT";
2843
- data: {
2844
- text: string;
2845
- };
2846
- } | {
2847
2814
  type: "ACTIONS";
2848
2815
  data: {
2849
2816
  actions: {
2850
2817
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2851
2818
  payload: {
2852
2819
  type: "EMPTY";
2853
- } | {
2854
- type: "WAIT";
2855
- data: {
2856
- seconds: number;
2857
- };
2858
2820
  } | {
2859
2821
  type: "PRICE";
2860
2822
  data: {
@@ -2869,11 +2831,18 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2869
2831
  data: {
2870
2832
  text: string;
2871
2833
  };
2834
+ } | {
2835
+ type: "WAIT";
2836
+ data: {
2837
+ seconds: number;
2838
+ };
2872
2839
  };
2873
2840
  enabled: boolean;
2874
2841
  mandatory?: boolean | null | undefined;
2875
2842
  }[];
2876
2843
  };
2844
+ } | {
2845
+ type: "EMPTY";
2877
2846
  } | {
2878
2847
  type: "FEES";
2879
2848
  data: {
@@ -2882,6 +2851,37 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2882
2851
  name: string;
2883
2852
  }[];
2884
2853
  };
2854
+ } | {
2855
+ type: "PRICE";
2856
+ data: {
2857
+ value: number;
2858
+ type: "PERCENTAGE" | "ABSOLUTE";
2859
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2860
+ roundStep?: number | null | undefined;
2861
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2862
+ };
2863
+ } | {
2864
+ type: "TEXT";
2865
+ data: {
2866
+ text: string;
2867
+ };
2868
+ } | {
2869
+ type: "VISION";
2870
+ data: {
2871
+ doRemoveBackground: boolean;
2872
+ doSmartCrop: boolean;
2873
+ doChangeBackground: boolean;
2874
+ doRotate: boolean;
2875
+ doAddBorders: boolean;
2876
+ shadow: boolean;
2877
+ targetWidth?: number | null | undefined;
2878
+ targetHeight?: number | null | undefined;
2879
+ newBackgroundColor?: string | null | undefined;
2880
+ newBackgroundUrl?: string | null | undefined;
2881
+ rotationAngle?: number | null | undefined;
2882
+ borderSize?: number | null | undefined;
2883
+ borderColor?: string | null | undefined;
2884
+ };
2885
2885
  };
2886
2886
  caseId: string;
2887
2887
  weight: number;
@@ -2899,50 +2899,12 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2899
2899
  id: string;
2900
2900
  name: string;
2901
2901
  payload: {
2902
- type: "EMPTY";
2903
- } | {
2904
- type: "PRICE";
2905
- data: {
2906
- value: number;
2907
- type: "PERCENTAGE" | "ABSOLUTE";
2908
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2909
- roundStep?: number | null | undefined;
2910
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2911
- };
2912
- } | {
2913
- type: "VISION";
2914
- data: {
2915
- doRemoveBackground: boolean;
2916
- doSmartCrop: boolean;
2917
- doChangeBackground: boolean;
2918
- doRotate: boolean;
2919
- doAddBorders: boolean;
2920
- shadow: boolean;
2921
- targetWidth?: number | null | undefined;
2922
- targetHeight?: number | null | undefined;
2923
- newBackgroundColor?: string | null | undefined;
2924
- newBackgroundUrl?: string | null | undefined;
2925
- rotationAngle?: number | null | undefined;
2926
- borderSize?: number | null | undefined;
2927
- borderColor?: string | null | undefined;
2928
- };
2929
- } | {
2930
- type: "TEXT";
2931
- data: {
2932
- text: string;
2933
- };
2934
- } | {
2935
2902
  type: "ACTIONS";
2936
2903
  data: {
2937
2904
  actions: {
2938
2905
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2939
2906
  payload: {
2940
2907
  type: "EMPTY";
2941
- } | {
2942
- type: "WAIT";
2943
- data: {
2944
- seconds: number;
2945
- };
2946
2908
  } | {
2947
2909
  type: "PRICE";
2948
2910
  data: {
@@ -2957,11 +2919,18 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2957
2919
  data: {
2958
2920
  text: string;
2959
2921
  };
2922
+ } | {
2923
+ type: "WAIT";
2924
+ data: {
2925
+ seconds: number;
2926
+ };
2960
2927
  };
2961
2928
  enabled: boolean;
2962
2929
  mandatory?: boolean | null | undefined;
2963
2930
  }[];
2964
2931
  };
2932
+ } | {
2933
+ type: "EMPTY";
2965
2934
  } | {
2966
2935
  type: "FEES";
2967
2936
  data: {
@@ -2970,6 +2939,37 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2970
2939
  name: string;
2971
2940
  }[];
2972
2941
  };
2942
+ } | {
2943
+ type: "PRICE";
2944
+ data: {
2945
+ value: number;
2946
+ type: "PERCENTAGE" | "ABSOLUTE";
2947
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2948
+ roundStep?: number | null | undefined;
2949
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2950
+ };
2951
+ } | {
2952
+ type: "TEXT";
2953
+ data: {
2954
+ text: string;
2955
+ };
2956
+ } | {
2957
+ type: "VISION";
2958
+ data: {
2959
+ doRemoveBackground: boolean;
2960
+ doSmartCrop: boolean;
2961
+ doChangeBackground: boolean;
2962
+ doRotate: boolean;
2963
+ doAddBorders: boolean;
2964
+ shadow: boolean;
2965
+ targetWidth?: number | null | undefined;
2966
+ targetHeight?: number | null | undefined;
2967
+ newBackgroundColor?: string | null | undefined;
2968
+ newBackgroundUrl?: string | null | undefined;
2969
+ rotationAngle?: number | null | undefined;
2970
+ borderSize?: number | null | undefined;
2971
+ borderColor?: string | null | undefined;
2972
+ };
2973
2973
  };
2974
2974
  caseId: string;
2975
2975
  weight: number;
@@ -2979,50 +2979,12 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
2979
2979
  id: string;
2980
2980
  name: string;
2981
2981
  payload: {
2982
- type: "EMPTY";
2983
- } | {
2984
- type: "PRICE";
2985
- data: {
2986
- value: number;
2987
- type: "PERCENTAGE" | "ABSOLUTE";
2988
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2989
- roundStep?: number | null | undefined;
2990
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2991
- };
2992
- } | {
2993
- type: "VISION";
2994
- data: {
2995
- doRemoveBackground: boolean;
2996
- doSmartCrop: boolean;
2997
- doChangeBackground: boolean;
2998
- doRotate: boolean;
2999
- doAddBorders: boolean;
3000
- shadow: boolean;
3001
- targetWidth?: number | null | undefined;
3002
- targetHeight?: number | null | undefined;
3003
- newBackgroundColor?: string | null | undefined;
3004
- newBackgroundUrl?: string | null | undefined;
3005
- rotationAngle?: number | null | undefined;
3006
- borderSize?: number | null | undefined;
3007
- borderColor?: string | null | undefined;
3008
- };
3009
- } | {
3010
- type: "TEXT";
3011
- data: {
3012
- text: string;
3013
- };
3014
- } | {
3015
2982
  type: "ACTIONS";
3016
2983
  data: {
3017
2984
  actions: {
3018
2985
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
3019
2986
  payload: {
3020
2987
  type: "EMPTY";
3021
- } | {
3022
- type: "WAIT";
3023
- data: {
3024
- seconds: number;
3025
- };
3026
2988
  } | {
3027
2989
  type: "PRICE";
3028
2990
  data: {
@@ -3037,18 +2999,56 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
3037
2999
  data: {
3038
3000
  text: string;
3039
3001
  };
3002
+ } | {
3003
+ type: "WAIT";
3004
+ data: {
3005
+ seconds: number;
3006
+ };
3040
3007
  };
3041
3008
  enabled: boolean;
3042
3009
  mandatory?: boolean | null | undefined;
3043
3010
  }[];
3044
3011
  };
3045
3012
  } | {
3046
- type: "FEES";
3013
+ type: "EMPTY";
3014
+ } | {
3015
+ type: "FEES";
3016
+ data: {
3017
+ fees: {
3018
+ value: number;
3019
+ name: string;
3020
+ }[];
3021
+ };
3022
+ } | {
3023
+ type: "PRICE";
3024
+ data: {
3025
+ value: number;
3026
+ type: "PERCENTAGE" | "ABSOLUTE";
3027
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3028
+ roundStep?: number | null | undefined;
3029
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
3030
+ };
3031
+ } | {
3032
+ type: "TEXT";
3047
3033
  data: {
3048
- fees: {
3049
- value: number;
3050
- name: string;
3051
- }[];
3034
+ text: string;
3035
+ };
3036
+ } | {
3037
+ type: "VISION";
3038
+ data: {
3039
+ doRemoveBackground: boolean;
3040
+ doSmartCrop: boolean;
3041
+ doChangeBackground: boolean;
3042
+ doRotate: boolean;
3043
+ doAddBorders: boolean;
3044
+ shadow: boolean;
3045
+ targetWidth?: number | null | undefined;
3046
+ targetHeight?: number | null | undefined;
3047
+ newBackgroundColor?: string | null | undefined;
3048
+ newBackgroundUrl?: string | null | undefined;
3049
+ rotationAngle?: number | null | undefined;
3050
+ borderSize?: number | null | undefined;
3051
+ borderColor?: string | null | undefined;
3052
3052
  };
3053
3053
  };
3054
3054
  caseId: string;
@@ -3061,11 +3061,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
3061
3061
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
3062
3062
  payload: {
3063
3063
  type: "EMPTY";
3064
- } | {
3065
- type: "WAIT";
3066
- data: {
3067
- seconds: number;
3068
- };
3069
3064
  } | {
3070
3065
  type: "PRICE";
3071
3066
  data: {
@@ -3080,6 +3075,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
3080
3075
  data: {
3081
3076
  text: string;
3082
3077
  };
3078
+ } | {
3079
+ type: "WAIT";
3080
+ data: {
3081
+ seconds: number;
3082
+ };
3083
3083
  };
3084
3084
  enabled: boolean;
3085
3085
  mandatory?: boolean | null | undefined;
@@ -3103,50 +3103,12 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
3103
3103
  id: string;
3104
3104
  name: string;
3105
3105
  payload: {
3106
- type: "EMPTY";
3107
- } | {
3108
- type: "PRICE";
3109
- data: {
3110
- value: number;
3111
- type: "PERCENTAGE" | "ABSOLUTE";
3112
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3113
- roundStep?: number | null | undefined;
3114
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
3115
- };
3116
- } | {
3117
- type: "VISION";
3118
- data: {
3119
- doRemoveBackground: boolean;
3120
- doSmartCrop: boolean;
3121
- doChangeBackground: boolean;
3122
- doRotate: boolean;
3123
- doAddBorders: boolean;
3124
- shadow: boolean;
3125
- targetWidth?: number | null | undefined;
3126
- targetHeight?: number | null | undefined;
3127
- newBackgroundColor?: string | null | undefined;
3128
- newBackgroundUrl?: string | null | undefined;
3129
- rotationAngle?: number | null | undefined;
3130
- borderSize?: number | null | undefined;
3131
- borderColor?: string | null | undefined;
3132
- };
3133
- } | {
3134
- type: "TEXT";
3135
- data: {
3136
- text: string;
3137
- };
3138
- } | {
3139
3106
  type: "ACTIONS";
3140
3107
  data: {
3141
3108
  actions: {
3142
3109
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
3143
3110
  payload: {
3144
3111
  type: "EMPTY";
3145
- } | {
3146
- type: "WAIT";
3147
- data: {
3148
- seconds: number;
3149
- };
3150
3112
  } | {
3151
3113
  type: "PRICE";
3152
3114
  data: {
@@ -3161,11 +3123,18 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
3161
3123
  data: {
3162
3124
  text: string;
3163
3125
  };
3126
+ } | {
3127
+ type: "WAIT";
3128
+ data: {
3129
+ seconds: number;
3130
+ };
3164
3131
  };
3165
3132
  enabled: boolean;
3166
3133
  mandatory?: boolean | null | undefined;
3167
3134
  }[];
3168
3135
  };
3136
+ } | {
3137
+ type: "EMPTY";
3169
3138
  } | {
3170
3139
  type: "FEES";
3171
3140
  data: {
@@ -3174,6 +3143,37 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
3174
3143
  name: string;
3175
3144
  }[];
3176
3145
  };
3146
+ } | {
3147
+ type: "PRICE";
3148
+ data: {
3149
+ value: number;
3150
+ type: "PERCENTAGE" | "ABSOLUTE";
3151
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3152
+ roundStep?: number | null | undefined;
3153
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
3154
+ };
3155
+ } | {
3156
+ type: "TEXT";
3157
+ data: {
3158
+ text: string;
3159
+ };
3160
+ } | {
3161
+ type: "VISION";
3162
+ data: {
3163
+ doRemoveBackground: boolean;
3164
+ doSmartCrop: boolean;
3165
+ doChangeBackground: boolean;
3166
+ doRotate: boolean;
3167
+ doAddBorders: boolean;
3168
+ shadow: boolean;
3169
+ targetWidth?: number | null | undefined;
3170
+ targetHeight?: number | null | undefined;
3171
+ newBackgroundColor?: string | null | undefined;
3172
+ newBackgroundUrl?: string | null | undefined;
3173
+ rotationAngle?: number | null | undefined;
3174
+ borderSize?: number | null | undefined;
3175
+ borderColor?: string | null | undefined;
3176
+ };
3177
3177
  };
3178
3178
  caseId: string;
3179
3179
  weight: number;
@@ -3191,50 +3191,12 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
3191
3191
  id: string;
3192
3192
  name: string;
3193
3193
  payload: {
3194
- type: "EMPTY";
3195
- } | {
3196
- type: "PRICE";
3197
- data: {
3198
- value: number;
3199
- type: "PERCENTAGE" | "ABSOLUTE";
3200
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3201
- roundStep?: number | null | undefined;
3202
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
3203
- };
3204
- } | {
3205
- type: "VISION";
3206
- data: {
3207
- doRemoveBackground: boolean;
3208
- doSmartCrop: boolean;
3209
- doChangeBackground: boolean;
3210
- doRotate: boolean;
3211
- doAddBorders: boolean;
3212
- shadow: boolean;
3213
- targetWidth?: number | null | undefined;
3214
- targetHeight?: number | null | undefined;
3215
- newBackgroundColor?: string | null | undefined;
3216
- newBackgroundUrl?: string | null | undefined;
3217
- rotationAngle?: number | null | undefined;
3218
- borderSize?: number | null | undefined;
3219
- borderColor?: string | null | undefined;
3220
- };
3221
- } | {
3222
- type: "TEXT";
3223
- data: {
3224
- text: string;
3225
- };
3226
- } | {
3227
3194
  type: "ACTIONS";
3228
3195
  data: {
3229
3196
  actions: {
3230
3197
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
3231
3198
  payload: {
3232
3199
  type: "EMPTY";
3233
- } | {
3234
- type: "WAIT";
3235
- data: {
3236
- seconds: number;
3237
- };
3238
3200
  } | {
3239
3201
  type: "PRICE";
3240
3202
  data: {
@@ -3249,11 +3211,18 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
3249
3211
  data: {
3250
3212
  text: string;
3251
3213
  };
3214
+ } | {
3215
+ type: "WAIT";
3216
+ data: {
3217
+ seconds: number;
3218
+ };
3252
3219
  };
3253
3220
  enabled: boolean;
3254
3221
  mandatory?: boolean | null | undefined;
3255
3222
  }[];
3256
3223
  };
3224
+ } | {
3225
+ type: "EMPTY";
3257
3226
  } | {
3258
3227
  type: "FEES";
3259
3228
  data: {
@@ -3262,6 +3231,37 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
3262
3231
  name: string;
3263
3232
  }[];
3264
3233
  };
3234
+ } | {
3235
+ type: "PRICE";
3236
+ data: {
3237
+ value: number;
3238
+ type: "PERCENTAGE" | "ABSOLUTE";
3239
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3240
+ roundStep?: number | null | undefined;
3241
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
3242
+ };
3243
+ } | {
3244
+ type: "TEXT";
3245
+ data: {
3246
+ text: string;
3247
+ };
3248
+ } | {
3249
+ type: "VISION";
3250
+ data: {
3251
+ doRemoveBackground: boolean;
3252
+ doSmartCrop: boolean;
3253
+ doChangeBackground: boolean;
3254
+ doRotate: boolean;
3255
+ doAddBorders: boolean;
3256
+ shadow: boolean;
3257
+ targetWidth?: number | null | undefined;
3258
+ targetHeight?: number | null | undefined;
3259
+ newBackgroundColor?: string | null | undefined;
3260
+ newBackgroundUrl?: string | null | undefined;
3261
+ rotationAngle?: number | null | undefined;
3262
+ borderSize?: number | null | undefined;
3263
+ borderColor?: string | null | undefined;
3264
+ };
3265
3265
  };
3266
3266
  caseId: string;
3267
3267
  weight: number;
@@ -3271,50 +3271,12 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
3271
3271
  id: string;
3272
3272
  name: string;
3273
3273
  payload: {
3274
- type: "EMPTY";
3275
- } | {
3276
- type: "PRICE";
3277
- data: {
3278
- value: number;
3279
- type: "PERCENTAGE" | "ABSOLUTE";
3280
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3281
- roundStep?: number | null | undefined;
3282
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
3283
- };
3284
- } | {
3285
- type: "VISION";
3286
- data: {
3287
- doRemoveBackground: boolean;
3288
- doSmartCrop: boolean;
3289
- doChangeBackground: boolean;
3290
- doRotate: boolean;
3291
- doAddBorders: boolean;
3292
- shadow: boolean;
3293
- targetWidth?: number | null | undefined;
3294
- targetHeight?: number | null | undefined;
3295
- newBackgroundColor?: string | null | undefined;
3296
- newBackgroundUrl?: string | null | undefined;
3297
- rotationAngle?: number | null | undefined;
3298
- borderSize?: number | null | undefined;
3299
- borderColor?: string | null | undefined;
3300
- };
3301
- } | {
3302
- type: "TEXT";
3303
- data: {
3304
- text: string;
3305
- };
3306
- } | {
3307
3274
  type: "ACTIONS";
3308
3275
  data: {
3309
3276
  actions: {
3310
3277
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
3311
3278
  payload: {
3312
3279
  type: "EMPTY";
3313
- } | {
3314
- type: "WAIT";
3315
- data: {
3316
- seconds: number;
3317
- };
3318
3280
  } | {
3319
3281
  type: "PRICE";
3320
3282
  data: {
@@ -3329,18 +3291,56 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
3329
3291
  data: {
3330
3292
  text: string;
3331
3293
  };
3294
+ } | {
3295
+ type: "WAIT";
3296
+ data: {
3297
+ seconds: number;
3298
+ };
3332
3299
  };
3333
3300
  enabled: boolean;
3334
3301
  mandatory?: boolean | null | undefined;
3335
3302
  }[];
3336
3303
  };
3304
+ } | {
3305
+ type: "EMPTY";
3337
3306
  } | {
3338
3307
  type: "FEES";
3339
3308
  data: {
3340
- fees: {
3341
- value: number;
3342
- name: string;
3343
- }[];
3309
+ fees: {
3310
+ value: number;
3311
+ name: string;
3312
+ }[];
3313
+ };
3314
+ } | {
3315
+ type: "PRICE";
3316
+ data: {
3317
+ value: number;
3318
+ type: "PERCENTAGE" | "ABSOLUTE";
3319
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3320
+ roundStep?: number | null | undefined;
3321
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
3322
+ };
3323
+ } | {
3324
+ type: "TEXT";
3325
+ data: {
3326
+ text: string;
3327
+ };
3328
+ } | {
3329
+ type: "VISION";
3330
+ data: {
3331
+ doRemoveBackground: boolean;
3332
+ doSmartCrop: boolean;
3333
+ doChangeBackground: boolean;
3334
+ doRotate: boolean;
3335
+ doAddBorders: boolean;
3336
+ shadow: boolean;
3337
+ targetWidth?: number | null | undefined;
3338
+ targetHeight?: number | null | undefined;
3339
+ newBackgroundColor?: string | null | undefined;
3340
+ newBackgroundUrl?: string | null | undefined;
3341
+ rotationAngle?: number | null | undefined;
3342
+ borderSize?: number | null | undefined;
3343
+ borderColor?: string | null | undefined;
3344
3344
  };
3345
3345
  };
3346
3346
  caseId: string;
@@ -3357,11 +3357,6 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
3357
3357
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
3358
3358
  payload: {
3359
3359
  type: "EMPTY";
3360
- } | {
3361
- type: "WAIT";
3362
- data: {
3363
- seconds: number;
3364
- };
3365
3360
  } | {
3366
3361
  type: "PRICE";
3367
3362
  data: {
@@ -3376,6 +3371,11 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
3376
3371
  data: {
3377
3372
  text: string;
3378
3373
  };
3374
+ } | {
3375
+ type: "WAIT";
3376
+ data: {
3377
+ seconds: number;
3378
+ };
3379
3379
  };
3380
3380
  enabled: boolean;
3381
3381
  mandatory?: boolean | null | undefined;
@@ -3399,50 +3399,12 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
3399
3399
  id: string;
3400
3400
  name: string;
3401
3401
  payload: {
3402
- type: "EMPTY";
3403
- } | {
3404
- type: "PRICE";
3405
- data: {
3406
- value: number;
3407
- type: "PERCENTAGE" | "ABSOLUTE";
3408
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3409
- roundStep?: number | null | undefined;
3410
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
3411
- };
3412
- } | {
3413
- type: "VISION";
3414
- data: {
3415
- doRemoveBackground: boolean;
3416
- doSmartCrop: boolean;
3417
- doChangeBackground: boolean;
3418
- doRotate: boolean;
3419
- doAddBorders: boolean;
3420
- shadow: boolean;
3421
- targetWidth?: number | null | undefined;
3422
- targetHeight?: number | null | undefined;
3423
- newBackgroundColor?: string | null | undefined;
3424
- newBackgroundUrl?: string | null | undefined;
3425
- rotationAngle?: number | null | undefined;
3426
- borderSize?: number | null | undefined;
3427
- borderColor?: string | null | undefined;
3428
- };
3429
- } | {
3430
- type: "TEXT";
3431
- data: {
3432
- text: string;
3433
- };
3434
- } | {
3435
3402
  type: "ACTIONS";
3436
3403
  data: {
3437
3404
  actions: {
3438
3405
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
3439
3406
  payload: {
3440
3407
  type: "EMPTY";
3441
- } | {
3442
- type: "WAIT";
3443
- data: {
3444
- seconds: number;
3445
- };
3446
3408
  } | {
3447
3409
  type: "PRICE";
3448
3410
  data: {
@@ -3457,11 +3419,18 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
3457
3419
  data: {
3458
3420
  text: string;
3459
3421
  };
3422
+ } | {
3423
+ type: "WAIT";
3424
+ data: {
3425
+ seconds: number;
3426
+ };
3460
3427
  };
3461
3428
  enabled: boolean;
3462
3429
  mandatory?: boolean | null | undefined;
3463
3430
  }[];
3464
3431
  };
3432
+ } | {
3433
+ type: "EMPTY";
3465
3434
  } | {
3466
3435
  type: "FEES";
3467
3436
  data: {
@@ -3470,6 +3439,37 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
3470
3439
  name: string;
3471
3440
  }[];
3472
3441
  };
3442
+ } | {
3443
+ type: "PRICE";
3444
+ data: {
3445
+ value: number;
3446
+ type: "PERCENTAGE" | "ABSOLUTE";
3447
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3448
+ roundStep?: number | null | undefined;
3449
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
3450
+ };
3451
+ } | {
3452
+ type: "TEXT";
3453
+ data: {
3454
+ text: string;
3455
+ };
3456
+ } | {
3457
+ type: "VISION";
3458
+ data: {
3459
+ doRemoveBackground: boolean;
3460
+ doSmartCrop: boolean;
3461
+ doChangeBackground: boolean;
3462
+ doRotate: boolean;
3463
+ doAddBorders: boolean;
3464
+ shadow: boolean;
3465
+ targetWidth?: number | null | undefined;
3466
+ targetHeight?: number | null | undefined;
3467
+ newBackgroundColor?: string | null | undefined;
3468
+ newBackgroundUrl?: string | null | undefined;
3469
+ rotationAngle?: number | null | undefined;
3470
+ borderSize?: number | null | undefined;
3471
+ borderColor?: string | null | undefined;
3472
+ };
3473
3473
  };
3474
3474
  caseId: string;
3475
3475
  weight: number;
@@ -3487,50 +3487,12 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
3487
3487
  id: string;
3488
3488
  name: string;
3489
3489
  payload: {
3490
- type: "EMPTY";
3491
- } | {
3492
- type: "PRICE";
3493
- data: {
3494
- value: number;
3495
- type: "PERCENTAGE" | "ABSOLUTE";
3496
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3497
- roundStep?: number | null | undefined;
3498
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
3499
- };
3500
- } | {
3501
- type: "VISION";
3502
- data: {
3503
- doRemoveBackground: boolean;
3504
- doSmartCrop: boolean;
3505
- doChangeBackground: boolean;
3506
- doRotate: boolean;
3507
- doAddBorders: boolean;
3508
- shadow: boolean;
3509
- targetWidth?: number | null | undefined;
3510
- targetHeight?: number | null | undefined;
3511
- newBackgroundColor?: string | null | undefined;
3512
- newBackgroundUrl?: string | null | undefined;
3513
- rotationAngle?: number | null | undefined;
3514
- borderSize?: number | null | undefined;
3515
- borderColor?: string | null | undefined;
3516
- };
3517
- } | {
3518
- type: "TEXT";
3519
- data: {
3520
- text: string;
3521
- };
3522
- } | {
3523
3490
  type: "ACTIONS";
3524
3491
  data: {
3525
3492
  actions: {
3526
3493
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
3527
3494
  payload: {
3528
3495
  type: "EMPTY";
3529
- } | {
3530
- type: "WAIT";
3531
- data: {
3532
- seconds: number;
3533
- };
3534
3496
  } | {
3535
3497
  type: "PRICE";
3536
3498
  data: {
@@ -3545,11 +3507,18 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
3545
3507
  data: {
3546
3508
  text: string;
3547
3509
  };
3510
+ } | {
3511
+ type: "WAIT";
3512
+ data: {
3513
+ seconds: number;
3514
+ };
3548
3515
  };
3549
3516
  enabled: boolean;
3550
3517
  mandatory?: boolean | null | undefined;
3551
3518
  }[];
3552
3519
  };
3520
+ } | {
3521
+ type: "EMPTY";
3553
3522
  } | {
3554
3523
  type: "FEES";
3555
3524
  data: {
@@ -3558,6 +3527,37 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
3558
3527
  name: string;
3559
3528
  }[];
3560
3529
  };
3530
+ } | {
3531
+ type: "PRICE";
3532
+ data: {
3533
+ value: number;
3534
+ type: "PERCENTAGE" | "ABSOLUTE";
3535
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3536
+ roundStep?: number | null | undefined;
3537
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
3538
+ };
3539
+ } | {
3540
+ type: "TEXT";
3541
+ data: {
3542
+ text: string;
3543
+ };
3544
+ } | {
3545
+ type: "VISION";
3546
+ data: {
3547
+ doRemoveBackground: boolean;
3548
+ doSmartCrop: boolean;
3549
+ doChangeBackground: boolean;
3550
+ doRotate: boolean;
3551
+ doAddBorders: boolean;
3552
+ shadow: boolean;
3553
+ targetWidth?: number | null | undefined;
3554
+ targetHeight?: number | null | undefined;
3555
+ newBackgroundColor?: string | null | undefined;
3556
+ newBackgroundUrl?: string | null | undefined;
3557
+ rotationAngle?: number | null | undefined;
3558
+ borderSize?: number | null | undefined;
3559
+ borderColor?: string | null | undefined;
3560
+ };
3561
3561
  };
3562
3562
  caseId: string;
3563
3563
  weight: number;
@@ -3567,50 +3567,12 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
3567
3567
  id: string;
3568
3568
  name: string;
3569
3569
  payload: {
3570
- type: "EMPTY";
3571
- } | {
3572
- type: "PRICE";
3573
- data: {
3574
- value: number;
3575
- type: "PERCENTAGE" | "ABSOLUTE";
3576
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3577
- roundStep?: number | null | undefined;
3578
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
3579
- };
3580
- } | {
3581
- type: "VISION";
3582
- data: {
3583
- doRemoveBackground: boolean;
3584
- doSmartCrop: boolean;
3585
- doChangeBackground: boolean;
3586
- doRotate: boolean;
3587
- doAddBorders: boolean;
3588
- shadow: boolean;
3589
- targetWidth?: number | null | undefined;
3590
- targetHeight?: number | null | undefined;
3591
- newBackgroundColor?: string | null | undefined;
3592
- newBackgroundUrl?: string | null | undefined;
3593
- rotationAngle?: number | null | undefined;
3594
- borderSize?: number | null | undefined;
3595
- borderColor?: string | null | undefined;
3596
- };
3597
- } | {
3598
- type: "TEXT";
3599
- data: {
3600
- text: string;
3601
- };
3602
- } | {
3603
3570
  type: "ACTIONS";
3604
3571
  data: {
3605
3572
  actions: {
3606
3573
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
3607
3574
  payload: {
3608
3575
  type: "EMPTY";
3609
- } | {
3610
- type: "WAIT";
3611
- data: {
3612
- seconds: number;
3613
- };
3614
3576
  } | {
3615
3577
  type: "PRICE";
3616
3578
  data: {
@@ -3625,11 +3587,18 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
3625
3587
  data: {
3626
3588
  text: string;
3627
3589
  };
3590
+ } | {
3591
+ type: "WAIT";
3592
+ data: {
3593
+ seconds: number;
3594
+ };
3628
3595
  };
3629
3596
  enabled: boolean;
3630
3597
  mandatory?: boolean | null | undefined;
3631
3598
  }[];
3632
3599
  };
3600
+ } | {
3601
+ type: "EMPTY";
3633
3602
  } | {
3634
3603
  type: "FEES";
3635
3604
  data: {
@@ -3638,6 +3607,37 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
3638
3607
  name: string;
3639
3608
  }[];
3640
3609
  };
3610
+ } | {
3611
+ type: "PRICE";
3612
+ data: {
3613
+ value: number;
3614
+ type: "PERCENTAGE" | "ABSOLUTE";
3615
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3616
+ roundStep?: number | null | undefined;
3617
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
3618
+ };
3619
+ } | {
3620
+ type: "TEXT";
3621
+ data: {
3622
+ text: string;
3623
+ };
3624
+ } | {
3625
+ type: "VISION";
3626
+ data: {
3627
+ doRemoveBackground: boolean;
3628
+ doSmartCrop: boolean;
3629
+ doChangeBackground: boolean;
3630
+ doRotate: boolean;
3631
+ doAddBorders: boolean;
3632
+ shadow: boolean;
3633
+ targetWidth?: number | null | undefined;
3634
+ targetHeight?: number | null | undefined;
3635
+ newBackgroundColor?: string | null | undefined;
3636
+ newBackgroundUrl?: string | null | undefined;
3637
+ rotationAngle?: number | null | undefined;
3638
+ borderSize?: number | null | undefined;
3639
+ borderColor?: string | null | undefined;
3640
+ };
3641
3641
  };
3642
3642
  caseId: string;
3643
3643
  weight: number;