controlresell 2.2.12 → 2.2.18

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 (56) hide show
  1. package/package.json +1 -1
  2. package/src/com/controlresell/models/catalogs/Catalog.d.ts +3 -6
  3. package/src/com/controlresell/models/catalogs/Catalog.js +2 -3
  4. package/src/com/controlresell/models/catalogs/Catalog.ts +2 -3
  5. package/src/com/controlresell/models/catalogs/CatalogRoot.d.ts +5 -10
  6. package/src/com/controlresell/models/items/CreatedItems.d.ts +9 -0
  7. package/src/com/controlresell/models/items/Item.d.ts +7 -0
  8. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +9 -0
  9. package/src/com/controlresell/models/items/UpdatedItem.d.ts +9 -0
  10. package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +5 -0
  11. package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +5 -0
  12. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.d.ts +2 -2
  13. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +4 -4
  14. package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +15 -0
  15. package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts +5 -0
  16. package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +21 -0
  17. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts +6 -0
  18. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.js +4 -0
  19. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.ts +4 -0
  20. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.d.ts +6 -0
  21. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.js +4 -1
  22. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.ts +4 -1
  23. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.d.ts +3 -0
  24. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.js +7 -0
  25. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.ts +6 -0
  26. package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.d.ts +6 -0
  27. package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.js +4 -0
  28. package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.ts +4 -0
  29. package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.d.ts +10 -0
  30. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.d.ts +6 -0
  31. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.js +4 -0
  32. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.ts +4 -0
  33. package/src/com/controlresell/models/platforms/favorites/Favorite.d.ts +26 -0
  34. package/src/com/controlresell/models/platforms/favorites/FavoriteOnPlatformUpdateRequest.d.ts +5 -0
  35. package/src/com/controlresell/models/platforms/orders/Order.d.ts +9 -0
  36. package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.d.ts +5 -0
  37. package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +7 -0
  38. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +20 -0
  39. package/src/com/controlresell/models/platforms/transactions/Transaction.d.ts +9 -0
  40. package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.d.ts +7 -0
  41. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +20 -0
  42. package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +14 -0
  43. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +3435 -0
  44. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.js +3 -1
  45. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.ts +3 -1
  46. package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts +5 -0
  47. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +5 -0
  48. package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.d.ts +3 -0
  49. package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.js +1 -0
  50. package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.ts +1 -0
  51. package/src/com/controlresell/models/users/platforms/UserOnPlatform.d.ts +3 -0
  52. package/src/com/controlresell/models/users/platforms/UserOnPlatform.js +1 -0
  53. package/src/com/controlresell/models/users/platforms/UserOnPlatform.ts +1 -0
  54. package/src/index.d.ts +1 -0
  55. package/src/index.js +5 -3
  56. package/src/index.ts +1 -0
@@ -146,6 +146,2915 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
146
146
  userId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
147
147
  accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
148
  referenceTime: z.ZodDate;
149
+ preference: z.ZodObject<{
150
+ preference: z.ZodObject<{
151
+ id: z.ZodString;
152
+ parentPreferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
154
+ type: z.ZodEnum<["NEGOTIATION", "REPUBLISH", "VISION", "TITLE", "DESCRIPTION", "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"]>;
155
+ enabled: z.ZodBoolean;
156
+ testMode: z.ZodBoolean;
157
+ cases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
158
+ id: z.ZodString;
159
+ preferenceId: z.ZodString;
160
+ savedFiltersId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
161
+ enabled: z.ZodBoolean;
162
+ testMode: z.ZodBoolean;
163
+ abTest: z.ZodBoolean;
164
+ variants: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
165
+ id: z.ZodString;
166
+ caseId: z.ZodString;
167
+ name: z.ZodString;
168
+ weight: z.ZodNumber;
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
+ data: z.ZodObject<{
315
+ actions: z.ZodArray<z.ZodObject<{
316
+ type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO", "OFFER_MANUAL"]>;
317
+ enabled: z.ZodBoolean;
318
+ payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
319
+ type: z.ZodLiteral<"EMPTY">;
320
+ }, "strip", z.ZodTypeAny, {
321
+ type: "EMPTY";
322
+ }, {
323
+ type: "EMPTY";
324
+ }>, 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
+ data: z.ZodObject<{
346
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
347
+ value: z.ZodNumber;
348
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
349
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
350
+ negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
351
+ }, "strip", z.ZodTypeAny, {
352
+ value: number;
353
+ type: "PERCENTAGE" | "ABSOLUTE";
354
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
355
+ roundStep?: number | null | undefined;
356
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
357
+ }, {
358
+ value: number;
359
+ type: "PERCENTAGE" | "ABSOLUTE";
360
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
361
+ roundStep?: number | null | undefined;
362
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
363
+ }>;
364
+ }, "strip", z.ZodTypeAny, {
365
+ type: "PRICE";
366
+ data: {
367
+ value: number;
368
+ type: "PERCENTAGE" | "ABSOLUTE";
369
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
370
+ roundStep?: number | null | undefined;
371
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
372
+ };
373
+ }, {
374
+ type: "PRICE";
375
+ data: {
376
+ value: number;
377
+ type: "PERCENTAGE" | "ABSOLUTE";
378
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
379
+ roundStep?: number | null | undefined;
380
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
381
+ };
382
+ }>, z.ZodObject<{
383
+ type: z.ZodLiteral<"TEXT">;
384
+ data: z.ZodObject<{
385
+ text: z.ZodString;
386
+ }, "strip", z.ZodTypeAny, {
387
+ text: string;
388
+ }, {
389
+ text: string;
390
+ }>;
391
+ }, "strip", z.ZodTypeAny, {
392
+ type: "TEXT";
393
+ data: {
394
+ text: string;
395
+ };
396
+ }, {
397
+ type: "TEXT";
398
+ data: {
399
+ text: string;
400
+ };
401
+ }>]>;
402
+ mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
403
+ }, "strip", z.ZodTypeAny, {
404
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
405
+ payload: {
406
+ type: "EMPTY";
407
+ } | {
408
+ type: "WAIT";
409
+ data: {
410
+ seconds: number;
411
+ };
412
+ } | {
413
+ type: "PRICE";
414
+ data: {
415
+ value: number;
416
+ type: "PERCENTAGE" | "ABSOLUTE";
417
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
418
+ roundStep?: number | null | undefined;
419
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
420
+ };
421
+ } | {
422
+ type: "TEXT";
423
+ data: {
424
+ text: string;
425
+ };
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
+ } | {
434
+ type: "WAIT";
435
+ data: {
436
+ seconds: number;
437
+ };
438
+ } | {
439
+ type: "PRICE";
440
+ data: {
441
+ value: number;
442
+ type: "PERCENTAGE" | "ABSOLUTE";
443
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
444
+ roundStep?: number | null | undefined;
445
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
446
+ };
447
+ } | {
448
+ type: "TEXT";
449
+ data: {
450
+ text: string;
451
+ };
452
+ };
453
+ enabled: boolean;
454
+ mandatory?: boolean | null | undefined;
455
+ }>, "many">;
456
+ }, "strip", z.ZodTypeAny, {
457
+ actions: {
458
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
459
+ payload: {
460
+ type: "EMPTY";
461
+ } | {
462
+ type: "WAIT";
463
+ data: {
464
+ seconds: number;
465
+ };
466
+ } | {
467
+ type: "PRICE";
468
+ data: {
469
+ value: number;
470
+ type: "PERCENTAGE" | "ABSOLUTE";
471
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
472
+ roundStep?: number | null | undefined;
473
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
474
+ };
475
+ } | {
476
+ type: "TEXT";
477
+ data: {
478
+ text: string;
479
+ };
480
+ };
481
+ enabled: boolean;
482
+ mandatory?: boolean | null | undefined;
483
+ }[];
484
+ }, {
485
+ actions: {
486
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
487
+ payload: {
488
+ type: "EMPTY";
489
+ } | {
490
+ type: "WAIT";
491
+ data: {
492
+ seconds: number;
493
+ };
494
+ } | {
495
+ type: "PRICE";
496
+ data: {
497
+ value: number;
498
+ type: "PERCENTAGE" | "ABSOLUTE";
499
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
500
+ roundStep?: number | null | undefined;
501
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
502
+ };
503
+ } | {
504
+ type: "TEXT";
505
+ data: {
506
+ text: string;
507
+ };
508
+ };
509
+ enabled: boolean;
510
+ mandatory?: boolean | null | undefined;
511
+ }[];
512
+ }>;
513
+ }, "strip", z.ZodTypeAny, {
514
+ type: "ACTIONS";
515
+ data: {
516
+ actions: {
517
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
518
+ payload: {
519
+ type: "EMPTY";
520
+ } | {
521
+ type: "WAIT";
522
+ data: {
523
+ seconds: number;
524
+ };
525
+ } | {
526
+ type: "PRICE";
527
+ data: {
528
+ value: number;
529
+ type: "PERCENTAGE" | "ABSOLUTE";
530
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
531
+ roundStep?: number | null | undefined;
532
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
533
+ };
534
+ } | {
535
+ type: "TEXT";
536
+ data: {
537
+ text: string;
538
+ };
539
+ };
540
+ enabled: boolean;
541
+ mandatory?: boolean | null | undefined;
542
+ }[];
543
+ };
544
+ }, {
545
+ type: "ACTIONS";
546
+ data: {
547
+ actions: {
548
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
549
+ payload: {
550
+ type: "EMPTY";
551
+ } | {
552
+ type: "WAIT";
553
+ data: {
554
+ seconds: number;
555
+ };
556
+ } | {
557
+ type: "PRICE";
558
+ data: {
559
+ value: number;
560
+ type: "PERCENTAGE" | "ABSOLUTE";
561
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
562
+ roundStep?: number | null | undefined;
563
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
564
+ };
565
+ } | {
566
+ type: "TEXT";
567
+ data: {
568
+ text: string;
569
+ };
570
+ };
571
+ enabled: boolean;
572
+ mandatory?: boolean | null | undefined;
573
+ }[];
574
+ };
575
+ }>, z.ZodObject<{
576
+ type: z.ZodLiteral<"FEES">;
577
+ data: z.ZodObject<{
578
+ fees: z.ZodArray<z.ZodObject<{
579
+ name: z.ZodString;
580
+ value: z.ZodNumber;
581
+ }, "strip", z.ZodTypeAny, {
582
+ value: number;
583
+ name: string;
584
+ }, {
585
+ value: number;
586
+ name: string;
587
+ }>, "many">;
588
+ }, "strip", z.ZodTypeAny, {
589
+ fees: {
590
+ value: number;
591
+ name: string;
592
+ }[];
593
+ }, {
594
+ fees: {
595
+ value: number;
596
+ name: string;
597
+ }[];
598
+ }>;
599
+ }, "strip", z.ZodTypeAny, {
600
+ type: "FEES";
601
+ data: {
602
+ fees: {
603
+ value: number;
604
+ name: string;
605
+ }[];
606
+ };
607
+ }, {
608
+ type: "FEES";
609
+ data: {
610
+ fees: {
611
+ value: number;
612
+ name: string;
613
+ }[];
614
+ };
615
+ }>]>;
616
+ }, "strip", z.ZodTypeAny, {
617
+ id: string;
618
+ name: string;
619
+ payload: {
620
+ type: "EMPTY";
621
+ } | {
622
+ type: "PRICE";
623
+ data: {
624
+ value: number;
625
+ type: "PERCENTAGE" | "ABSOLUTE";
626
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
627
+ roundStep?: number | null | undefined;
628
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
629
+ };
630
+ } | {
631
+ type: "VISION";
632
+ data: {
633
+ doRemoveBackground: boolean;
634
+ doSmartCrop: boolean;
635
+ doChangeBackground: boolean;
636
+ doRotate: boolean;
637
+ doAddBorders: boolean;
638
+ shadow: boolean;
639
+ targetWidth?: number | null | undefined;
640
+ targetHeight?: number | null | undefined;
641
+ newBackgroundColor?: string | null | undefined;
642
+ newBackgroundUrl?: string | null | undefined;
643
+ rotationAngle?: number | null | undefined;
644
+ borderSize?: number | null | undefined;
645
+ borderColor?: string | null | undefined;
646
+ };
647
+ } | {
648
+ type: "TEXT";
649
+ data: {
650
+ text: string;
651
+ };
652
+ } | {
653
+ type: "ACTIONS";
654
+ data: {
655
+ actions: {
656
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
657
+ payload: {
658
+ type: "EMPTY";
659
+ } | {
660
+ type: "WAIT";
661
+ data: {
662
+ seconds: number;
663
+ };
664
+ } | {
665
+ type: "PRICE";
666
+ data: {
667
+ value: number;
668
+ type: "PERCENTAGE" | "ABSOLUTE";
669
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
670
+ roundStep?: number | null | undefined;
671
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
672
+ };
673
+ } | {
674
+ type: "TEXT";
675
+ data: {
676
+ text: string;
677
+ };
678
+ };
679
+ enabled: boolean;
680
+ mandatory?: boolean | null | undefined;
681
+ }[];
682
+ };
683
+ } | {
684
+ type: "FEES";
685
+ data: {
686
+ fees: {
687
+ value: number;
688
+ name: string;
689
+ }[];
690
+ };
691
+ };
692
+ caseId: string;
693
+ weight: number;
694
+ }, {
695
+ id: string;
696
+ name: string;
697
+ payload: {
698
+ type: "EMPTY";
699
+ } | {
700
+ type: "PRICE";
701
+ data: {
702
+ value: number;
703
+ type: "PERCENTAGE" | "ABSOLUTE";
704
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
705
+ roundStep?: number | null | undefined;
706
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
707
+ };
708
+ } | {
709
+ type: "VISION";
710
+ data: {
711
+ doRemoveBackground: boolean;
712
+ doSmartCrop: boolean;
713
+ doChangeBackground: boolean;
714
+ doRotate: boolean;
715
+ doAddBorders: boolean;
716
+ shadow: boolean;
717
+ targetWidth?: number | null | undefined;
718
+ targetHeight?: number | null | undefined;
719
+ newBackgroundColor?: string | null | undefined;
720
+ newBackgroundUrl?: string | null | undefined;
721
+ rotationAngle?: number | null | undefined;
722
+ borderSize?: number | null | undefined;
723
+ borderColor?: string | null | undefined;
724
+ };
725
+ } | {
726
+ type: "TEXT";
727
+ data: {
728
+ text: string;
729
+ };
730
+ } | {
731
+ type: "ACTIONS";
732
+ data: {
733
+ actions: {
734
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
735
+ payload: {
736
+ type: "EMPTY";
737
+ } | {
738
+ type: "WAIT";
739
+ data: {
740
+ seconds: number;
741
+ };
742
+ } | {
743
+ type: "PRICE";
744
+ data: {
745
+ value: number;
746
+ type: "PERCENTAGE" | "ABSOLUTE";
747
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
748
+ roundStep?: number | null | undefined;
749
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
750
+ };
751
+ } | {
752
+ type: "TEXT";
753
+ data: {
754
+ text: string;
755
+ };
756
+ };
757
+ enabled: boolean;
758
+ mandatory?: boolean | null | undefined;
759
+ }[];
760
+ };
761
+ } | {
762
+ type: "FEES";
763
+ data: {
764
+ fees: {
765
+ value: number;
766
+ name: string;
767
+ }[];
768
+ };
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
+ } | {
786
+ type: "PRICE";
787
+ data: {
788
+ value: number;
789
+ type: "PERCENTAGE" | "ABSOLUTE";
790
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
791
+ roundStep?: number | null | undefined;
792
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
793
+ };
794
+ } | {
795
+ type: "VISION";
796
+ data: {
797
+ doRemoveBackground: boolean;
798
+ doSmartCrop: boolean;
799
+ doChangeBackground: boolean;
800
+ doRotate: boolean;
801
+ doAddBorders: boolean;
802
+ shadow: boolean;
803
+ targetWidth?: number | null | undefined;
804
+ targetHeight?: number | null | undefined;
805
+ newBackgroundColor?: string | null | undefined;
806
+ newBackgroundUrl?: string | null | undefined;
807
+ rotationAngle?: number | null | undefined;
808
+ borderSize?: number | null | undefined;
809
+ borderColor?: string | null | undefined;
810
+ };
811
+ } | {
812
+ type: "TEXT";
813
+ data: {
814
+ text: string;
815
+ };
816
+ } | {
817
+ type: "ACTIONS";
818
+ data: {
819
+ actions: {
820
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
821
+ payload: {
822
+ type: "EMPTY";
823
+ } | {
824
+ type: "WAIT";
825
+ data: {
826
+ seconds: number;
827
+ };
828
+ } | {
829
+ type: "PRICE";
830
+ data: {
831
+ value: number;
832
+ type: "PERCENTAGE" | "ABSOLUTE";
833
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
834
+ roundStep?: number | null | undefined;
835
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
836
+ };
837
+ } | {
838
+ type: "TEXT";
839
+ data: {
840
+ text: string;
841
+ };
842
+ };
843
+ enabled: boolean;
844
+ mandatory?: boolean | null | undefined;
845
+ }[];
846
+ };
847
+ } | {
848
+ type: "FEES";
849
+ data: {
850
+ fees: {
851
+ value: number;
852
+ name: string;
853
+ }[];
854
+ };
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
+ } | {
872
+ type: "PRICE";
873
+ data: {
874
+ value: number;
875
+ type: "PERCENTAGE" | "ABSOLUTE";
876
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
877
+ roundStep?: number | null | undefined;
878
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
879
+ };
880
+ } | {
881
+ type: "VISION";
882
+ data: {
883
+ doRemoveBackground: boolean;
884
+ doSmartCrop: boolean;
885
+ doChangeBackground: boolean;
886
+ doRotate: boolean;
887
+ doAddBorders: boolean;
888
+ shadow: boolean;
889
+ targetWidth?: number | null | undefined;
890
+ targetHeight?: number | null | undefined;
891
+ newBackgroundColor?: string | null | undefined;
892
+ newBackgroundUrl?: string | null | undefined;
893
+ rotationAngle?: number | null | undefined;
894
+ borderSize?: number | null | undefined;
895
+ borderColor?: string | null | undefined;
896
+ };
897
+ } | {
898
+ type: "TEXT";
899
+ data: {
900
+ text: string;
901
+ };
902
+ } | {
903
+ type: "ACTIONS";
904
+ data: {
905
+ actions: {
906
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
907
+ payload: {
908
+ type: "EMPTY";
909
+ } | {
910
+ type: "WAIT";
911
+ data: {
912
+ seconds: number;
913
+ };
914
+ } | {
915
+ type: "PRICE";
916
+ data: {
917
+ value: number;
918
+ type: "PERCENTAGE" | "ABSOLUTE";
919
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
920
+ roundStep?: number | null | undefined;
921
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
922
+ };
923
+ } | {
924
+ type: "TEXT";
925
+ data: {
926
+ text: string;
927
+ };
928
+ };
929
+ enabled: boolean;
930
+ mandatory?: boolean | null | undefined;
931
+ }[];
932
+ };
933
+ } | {
934
+ type: "FEES";
935
+ data: {
936
+ fees: {
937
+ value: number;
938
+ name: string;
939
+ }[];
940
+ };
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
+ } | {
966
+ type: "PRICE";
967
+ data: {
968
+ value: number;
969
+ type: "PERCENTAGE" | "ABSOLUTE";
970
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
971
+ roundStep?: number | null | undefined;
972
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
973
+ };
974
+ } | {
975
+ type: "VISION";
976
+ data: {
977
+ doRemoveBackground: boolean;
978
+ doSmartCrop: boolean;
979
+ doChangeBackground: boolean;
980
+ doRotate: boolean;
981
+ doAddBorders: boolean;
982
+ shadow: boolean;
983
+ targetWidth?: number | null | undefined;
984
+ targetHeight?: number | null | undefined;
985
+ newBackgroundColor?: string | null | undefined;
986
+ newBackgroundUrl?: string | null | undefined;
987
+ rotationAngle?: number | null | undefined;
988
+ borderSize?: number | null | undefined;
989
+ borderColor?: string | null | undefined;
990
+ };
991
+ } | {
992
+ type: "TEXT";
993
+ data: {
994
+ text: string;
995
+ };
996
+ } | {
997
+ type: "ACTIONS";
998
+ data: {
999
+ actions: {
1000
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1001
+ payload: {
1002
+ type: "EMPTY";
1003
+ } | {
1004
+ type: "WAIT";
1005
+ data: {
1006
+ seconds: number;
1007
+ };
1008
+ } | {
1009
+ type: "PRICE";
1010
+ data: {
1011
+ value: number;
1012
+ type: "PERCENTAGE" | "ABSOLUTE";
1013
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1014
+ roundStep?: number | null | undefined;
1015
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1016
+ };
1017
+ } | {
1018
+ type: "TEXT";
1019
+ data: {
1020
+ text: string;
1021
+ };
1022
+ };
1023
+ enabled: boolean;
1024
+ mandatory?: boolean | null | undefined;
1025
+ }[];
1026
+ };
1027
+ } | {
1028
+ type: "FEES";
1029
+ data: {
1030
+ fees: {
1031
+ value: number;
1032
+ name: string;
1033
+ }[];
1034
+ };
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
+ } | {
1060
+ type: "PRICE";
1061
+ data: {
1062
+ value: number;
1063
+ type: "PERCENTAGE" | "ABSOLUTE";
1064
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1065
+ roundStep?: number | null | undefined;
1066
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1067
+ };
1068
+ } | {
1069
+ type: "VISION";
1070
+ data: {
1071
+ doRemoveBackground: boolean;
1072
+ doSmartCrop: boolean;
1073
+ doChangeBackground: boolean;
1074
+ doRotate: boolean;
1075
+ doAddBorders: boolean;
1076
+ shadow: boolean;
1077
+ targetWidth?: number | null | undefined;
1078
+ targetHeight?: number | null | undefined;
1079
+ newBackgroundColor?: string | null | undefined;
1080
+ newBackgroundUrl?: string | null | undefined;
1081
+ rotationAngle?: number | null | undefined;
1082
+ borderSize?: number | null | undefined;
1083
+ borderColor?: string | null | undefined;
1084
+ };
1085
+ } | {
1086
+ type: "TEXT";
1087
+ data: {
1088
+ text: string;
1089
+ };
1090
+ } | {
1091
+ type: "ACTIONS";
1092
+ data: {
1093
+ actions: {
1094
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1095
+ payload: {
1096
+ type: "EMPTY";
1097
+ } | {
1098
+ type: "WAIT";
1099
+ data: {
1100
+ seconds: number;
1101
+ };
1102
+ } | {
1103
+ type: "PRICE";
1104
+ data: {
1105
+ value: number;
1106
+ type: "PERCENTAGE" | "ABSOLUTE";
1107
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1108
+ roundStep?: number | null | undefined;
1109
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1110
+ };
1111
+ } | {
1112
+ type: "TEXT";
1113
+ data: {
1114
+ text: string;
1115
+ };
1116
+ };
1117
+ enabled: boolean;
1118
+ mandatory?: boolean | null | undefined;
1119
+ }[];
1120
+ };
1121
+ } | {
1122
+ type: "FEES";
1123
+ data: {
1124
+ fees: {
1125
+ value: number;
1126
+ name: string;
1127
+ }[];
1128
+ };
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">;
1292
+ data: z.ZodObject<{
1293
+ actions: z.ZodArray<z.ZodObject<{
1294
+ type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO", "OFFER_MANUAL"]>;
1295
+ enabled: z.ZodBoolean;
1296
+ payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1297
+ type: z.ZodLiteral<"EMPTY">;
1298
+ }, "strip", z.ZodTypeAny, {
1299
+ type: "EMPTY";
1300
+ }, {
1301
+ type: "EMPTY";
1302
+ }>, 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
+ data: z.ZodObject<{
1324
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
1325
+ value: z.ZodNumber;
1326
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
1327
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1328
+ negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
1329
+ }, "strip", z.ZodTypeAny, {
1330
+ value: number;
1331
+ type: "PERCENTAGE" | "ABSOLUTE";
1332
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1333
+ roundStep?: number | null | undefined;
1334
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1335
+ }, {
1336
+ value: number;
1337
+ type: "PERCENTAGE" | "ABSOLUTE";
1338
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1339
+ roundStep?: number | null | undefined;
1340
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1341
+ }>;
1342
+ }, "strip", z.ZodTypeAny, {
1343
+ type: "PRICE";
1344
+ data: {
1345
+ value: number;
1346
+ type: "PERCENTAGE" | "ABSOLUTE";
1347
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1348
+ roundStep?: number | null | undefined;
1349
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1350
+ };
1351
+ }, {
1352
+ type: "PRICE";
1353
+ data: {
1354
+ value: number;
1355
+ type: "PERCENTAGE" | "ABSOLUTE";
1356
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1357
+ roundStep?: number | null | undefined;
1358
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1359
+ };
1360
+ }>, z.ZodObject<{
1361
+ type: z.ZodLiteral<"TEXT">;
1362
+ data: z.ZodObject<{
1363
+ text: z.ZodString;
1364
+ }, "strip", z.ZodTypeAny, {
1365
+ text: string;
1366
+ }, {
1367
+ text: string;
1368
+ }>;
1369
+ }, "strip", z.ZodTypeAny, {
1370
+ type: "TEXT";
1371
+ data: {
1372
+ text: string;
1373
+ };
1374
+ }, {
1375
+ type: "TEXT";
1376
+ data: {
1377
+ text: string;
1378
+ };
1379
+ }>]>;
1380
+ mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1381
+ }, "strip", z.ZodTypeAny, {
1382
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1383
+ payload: {
1384
+ type: "EMPTY";
1385
+ } | {
1386
+ type: "WAIT";
1387
+ data: {
1388
+ seconds: number;
1389
+ };
1390
+ } | {
1391
+ type: "PRICE";
1392
+ data: {
1393
+ value: number;
1394
+ type: "PERCENTAGE" | "ABSOLUTE";
1395
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1396
+ roundStep?: number | null | undefined;
1397
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1398
+ };
1399
+ } | {
1400
+ type: "TEXT";
1401
+ data: {
1402
+ text: string;
1403
+ };
1404
+ };
1405
+ enabled: boolean;
1406
+ mandatory?: boolean | null | undefined;
1407
+ }, {
1408
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1409
+ payload: {
1410
+ type: "EMPTY";
1411
+ } | {
1412
+ type: "WAIT";
1413
+ data: {
1414
+ seconds: number;
1415
+ };
1416
+ } | {
1417
+ type: "PRICE";
1418
+ data: {
1419
+ value: number;
1420
+ type: "PERCENTAGE" | "ABSOLUTE";
1421
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1422
+ roundStep?: number | null | undefined;
1423
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1424
+ };
1425
+ } | {
1426
+ type: "TEXT";
1427
+ data: {
1428
+ text: string;
1429
+ };
1430
+ };
1431
+ enabled: boolean;
1432
+ mandatory?: boolean | null | undefined;
1433
+ }>, "many">;
1434
+ }, "strip", z.ZodTypeAny, {
1435
+ actions: {
1436
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1437
+ payload: {
1438
+ type: "EMPTY";
1439
+ } | {
1440
+ type: "WAIT";
1441
+ data: {
1442
+ seconds: number;
1443
+ };
1444
+ } | {
1445
+ type: "PRICE";
1446
+ data: {
1447
+ value: number;
1448
+ type: "PERCENTAGE" | "ABSOLUTE";
1449
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1450
+ roundStep?: number | null | undefined;
1451
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1452
+ };
1453
+ } | {
1454
+ type: "TEXT";
1455
+ data: {
1456
+ text: string;
1457
+ };
1458
+ };
1459
+ enabled: boolean;
1460
+ mandatory?: boolean | null | undefined;
1461
+ }[];
1462
+ }, {
1463
+ actions: {
1464
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1465
+ payload: {
1466
+ type: "EMPTY";
1467
+ } | {
1468
+ type: "WAIT";
1469
+ data: {
1470
+ seconds: number;
1471
+ };
1472
+ } | {
1473
+ type: "PRICE";
1474
+ data: {
1475
+ value: number;
1476
+ type: "PERCENTAGE" | "ABSOLUTE";
1477
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1478
+ roundStep?: number | null | undefined;
1479
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1480
+ };
1481
+ } | {
1482
+ type: "TEXT";
1483
+ data: {
1484
+ text: string;
1485
+ };
1486
+ };
1487
+ enabled: boolean;
1488
+ mandatory?: boolean | null | undefined;
1489
+ }[];
1490
+ }>;
1491
+ }, "strip", z.ZodTypeAny, {
1492
+ type: "ACTIONS";
1493
+ data: {
1494
+ actions: {
1495
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1496
+ payload: {
1497
+ type: "EMPTY";
1498
+ } | {
1499
+ type: "WAIT";
1500
+ data: {
1501
+ seconds: number;
1502
+ };
1503
+ } | {
1504
+ type: "PRICE";
1505
+ data: {
1506
+ value: number;
1507
+ type: "PERCENTAGE" | "ABSOLUTE";
1508
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1509
+ roundStep?: number | null | undefined;
1510
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1511
+ };
1512
+ } | {
1513
+ type: "TEXT";
1514
+ data: {
1515
+ text: string;
1516
+ };
1517
+ };
1518
+ enabled: boolean;
1519
+ mandatory?: boolean | null | undefined;
1520
+ }[];
1521
+ };
1522
+ }, {
1523
+ type: "ACTIONS";
1524
+ data: {
1525
+ actions: {
1526
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1527
+ payload: {
1528
+ type: "EMPTY";
1529
+ } | {
1530
+ type: "WAIT";
1531
+ data: {
1532
+ seconds: number;
1533
+ };
1534
+ } | {
1535
+ type: "PRICE";
1536
+ data: {
1537
+ value: number;
1538
+ type: "PERCENTAGE" | "ABSOLUTE";
1539
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1540
+ roundStep?: number | null | undefined;
1541
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1542
+ };
1543
+ } | {
1544
+ type: "TEXT";
1545
+ data: {
1546
+ text: string;
1547
+ };
1548
+ };
1549
+ enabled: boolean;
1550
+ mandatory?: boolean | null | undefined;
1551
+ }[];
1552
+ };
1553
+ }>, z.ZodObject<{
1554
+ type: z.ZodLiteral<"FEES">;
1555
+ data: z.ZodObject<{
1556
+ fees: z.ZodArray<z.ZodObject<{
1557
+ name: z.ZodString;
1558
+ value: z.ZodNumber;
1559
+ }, "strip", z.ZodTypeAny, {
1560
+ value: number;
1561
+ name: string;
1562
+ }, {
1563
+ value: number;
1564
+ name: string;
1565
+ }>, "many">;
1566
+ }, "strip", z.ZodTypeAny, {
1567
+ fees: {
1568
+ value: number;
1569
+ name: string;
1570
+ }[];
1571
+ }, {
1572
+ fees: {
1573
+ value: number;
1574
+ name: string;
1575
+ }[];
1576
+ }>;
1577
+ }, "strip", z.ZodTypeAny, {
1578
+ type: "FEES";
1579
+ data: {
1580
+ fees: {
1581
+ value: number;
1582
+ name: string;
1583
+ }[];
1584
+ };
1585
+ }, {
1586
+ type: "FEES";
1587
+ data: {
1588
+ fees: {
1589
+ value: number;
1590
+ name: string;
1591
+ }[];
1592
+ };
1593
+ }>]>;
1594
+ }, "strip", z.ZodTypeAny, {
1595
+ id: string;
1596
+ name: string;
1597
+ payload: {
1598
+ type: "EMPTY";
1599
+ } | {
1600
+ type: "PRICE";
1601
+ data: {
1602
+ value: number;
1603
+ type: "PERCENTAGE" | "ABSOLUTE";
1604
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1605
+ roundStep?: number | null | undefined;
1606
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1607
+ };
1608
+ } | {
1609
+ type: "VISION";
1610
+ data: {
1611
+ doRemoveBackground: boolean;
1612
+ doSmartCrop: boolean;
1613
+ doChangeBackground: boolean;
1614
+ doRotate: boolean;
1615
+ doAddBorders: boolean;
1616
+ shadow: boolean;
1617
+ targetWidth?: number | null | undefined;
1618
+ targetHeight?: number | null | undefined;
1619
+ newBackgroundColor?: string | null | undefined;
1620
+ newBackgroundUrl?: string | null | undefined;
1621
+ rotationAngle?: number | null | undefined;
1622
+ borderSize?: number | null | undefined;
1623
+ borderColor?: string | null | undefined;
1624
+ };
1625
+ } | {
1626
+ type: "TEXT";
1627
+ data: {
1628
+ text: string;
1629
+ };
1630
+ } | {
1631
+ type: "ACTIONS";
1632
+ data: {
1633
+ actions: {
1634
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1635
+ payload: {
1636
+ type: "EMPTY";
1637
+ } | {
1638
+ type: "WAIT";
1639
+ data: {
1640
+ seconds: number;
1641
+ };
1642
+ } | {
1643
+ type: "PRICE";
1644
+ data: {
1645
+ value: number;
1646
+ type: "PERCENTAGE" | "ABSOLUTE";
1647
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1648
+ roundStep?: number | null | undefined;
1649
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1650
+ };
1651
+ } | {
1652
+ type: "TEXT";
1653
+ data: {
1654
+ text: string;
1655
+ };
1656
+ };
1657
+ enabled: boolean;
1658
+ mandatory?: boolean | null | undefined;
1659
+ }[];
1660
+ };
1661
+ } | {
1662
+ type: "FEES";
1663
+ data: {
1664
+ fees: {
1665
+ value: number;
1666
+ name: string;
1667
+ }[];
1668
+ };
1669
+ };
1670
+ caseId: string;
1671
+ weight: number;
1672
+ }, {
1673
+ id: string;
1674
+ name: string;
1675
+ payload: {
1676
+ type: "EMPTY";
1677
+ } | {
1678
+ type: "PRICE";
1679
+ data: {
1680
+ value: number;
1681
+ type: "PERCENTAGE" | "ABSOLUTE";
1682
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1683
+ roundStep?: number | null | undefined;
1684
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1685
+ };
1686
+ } | {
1687
+ type: "VISION";
1688
+ data: {
1689
+ doRemoveBackground: boolean;
1690
+ doSmartCrop: boolean;
1691
+ doChangeBackground: boolean;
1692
+ doRotate: boolean;
1693
+ doAddBorders: boolean;
1694
+ shadow: boolean;
1695
+ targetWidth?: number | null | undefined;
1696
+ targetHeight?: number | null | undefined;
1697
+ newBackgroundColor?: string | null | undefined;
1698
+ newBackgroundUrl?: string | null | undefined;
1699
+ rotationAngle?: number | null | undefined;
1700
+ borderSize?: number | null | undefined;
1701
+ borderColor?: string | null | undefined;
1702
+ };
1703
+ } | {
1704
+ type: "TEXT";
1705
+ data: {
1706
+ text: string;
1707
+ };
1708
+ } | {
1709
+ type: "ACTIONS";
1710
+ data: {
1711
+ actions: {
1712
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1713
+ payload: {
1714
+ type: "EMPTY";
1715
+ } | {
1716
+ type: "WAIT";
1717
+ data: {
1718
+ seconds: number;
1719
+ };
1720
+ } | {
1721
+ type: "PRICE";
1722
+ data: {
1723
+ value: number;
1724
+ type: "PERCENTAGE" | "ABSOLUTE";
1725
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1726
+ roundStep?: number | null | undefined;
1727
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1728
+ };
1729
+ } | {
1730
+ type: "TEXT";
1731
+ data: {
1732
+ text: string;
1733
+ };
1734
+ };
1735
+ enabled: boolean;
1736
+ mandatory?: boolean | null | undefined;
1737
+ }[];
1738
+ };
1739
+ } | {
1740
+ type: "FEES";
1741
+ data: {
1742
+ fees: {
1743
+ value: number;
1744
+ name: string;
1745
+ }[];
1746
+ };
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
+ } | {
1764
+ type: "PRICE";
1765
+ data: {
1766
+ value: number;
1767
+ type: "PERCENTAGE" | "ABSOLUTE";
1768
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1769
+ roundStep?: number | null | undefined;
1770
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1771
+ };
1772
+ } | {
1773
+ type: "VISION";
1774
+ data: {
1775
+ doRemoveBackground: boolean;
1776
+ doSmartCrop: boolean;
1777
+ doChangeBackground: boolean;
1778
+ doRotate: boolean;
1779
+ doAddBorders: boolean;
1780
+ shadow: boolean;
1781
+ targetWidth?: number | null | undefined;
1782
+ targetHeight?: number | null | undefined;
1783
+ newBackgroundColor?: string | null | undefined;
1784
+ newBackgroundUrl?: string | null | undefined;
1785
+ rotationAngle?: number | null | undefined;
1786
+ borderSize?: number | null | undefined;
1787
+ borderColor?: string | null | undefined;
1788
+ };
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";
1799
+ payload: {
1800
+ type: "EMPTY";
1801
+ } | {
1802
+ type: "WAIT";
1803
+ data: {
1804
+ seconds: number;
1805
+ };
1806
+ } | {
1807
+ type: "PRICE";
1808
+ data: {
1809
+ value: number;
1810
+ type: "PERCENTAGE" | "ABSOLUTE";
1811
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1812
+ roundStep?: number | null | undefined;
1813
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1814
+ };
1815
+ } | {
1816
+ type: "TEXT";
1817
+ data: {
1818
+ text: string;
1819
+ };
1820
+ };
1821
+ enabled: boolean;
1822
+ mandatory?: boolean | null | undefined;
1823
+ }[];
1824
+ };
1825
+ } | {
1826
+ type: "FEES";
1827
+ data: {
1828
+ fees: {
1829
+ value: number;
1830
+ name: string;
1831
+ }[];
1832
+ };
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
+ } | {
1850
+ type: "PRICE";
1851
+ data: {
1852
+ value: number;
1853
+ type: "PERCENTAGE" | "ABSOLUTE";
1854
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1855
+ roundStep?: number | null | undefined;
1856
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1857
+ };
1858
+ } | {
1859
+ type: "VISION";
1860
+ data: {
1861
+ doRemoveBackground: boolean;
1862
+ doSmartCrop: boolean;
1863
+ doChangeBackground: boolean;
1864
+ doRotate: boolean;
1865
+ doAddBorders: boolean;
1866
+ shadow: boolean;
1867
+ targetWidth?: number | null | undefined;
1868
+ targetHeight?: number | null | undefined;
1869
+ newBackgroundColor?: string | null | undefined;
1870
+ newBackgroundUrl?: string | null | undefined;
1871
+ rotationAngle?: number | null | undefined;
1872
+ borderSize?: number | null | undefined;
1873
+ borderColor?: string | null | undefined;
1874
+ };
1875
+ } | {
1876
+ type: "TEXT";
1877
+ data: {
1878
+ text: string;
1879
+ };
1880
+ } | {
1881
+ type: "ACTIONS";
1882
+ data: {
1883
+ actions: {
1884
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1885
+ payload: {
1886
+ type: "EMPTY";
1887
+ } | {
1888
+ type: "WAIT";
1889
+ data: {
1890
+ seconds: number;
1891
+ };
1892
+ } | {
1893
+ type: "PRICE";
1894
+ data: {
1895
+ value: number;
1896
+ type: "PERCENTAGE" | "ABSOLUTE";
1897
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1898
+ roundStep?: number | null | undefined;
1899
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1900
+ };
1901
+ } | {
1902
+ type: "TEXT";
1903
+ data: {
1904
+ text: string;
1905
+ };
1906
+ };
1907
+ enabled: boolean;
1908
+ mandatory?: boolean | null | undefined;
1909
+ }[];
1910
+ };
1911
+ } | {
1912
+ type: "FEES";
1913
+ data: {
1914
+ fees: {
1915
+ value: number;
1916
+ name: string;
1917
+ }[];
1918
+ };
1919
+ };
1920
+ caseId: string;
1921
+ weight: number;
1922
+ }[] | null | undefined;
1923
+ }>;
1924
+ variant: z.ZodObject<{
1925
+ id: z.ZodString;
1926
+ caseId: z.ZodString;
1927
+ name: z.ZodString;
1928
+ weight: z.ZodNumber;
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
+ data: z.ZodObject<{
2075
+ actions: z.ZodArray<z.ZodObject<{
2076
+ type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO", "OFFER_MANUAL"]>;
2077
+ enabled: z.ZodBoolean;
2078
+ 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
+ }>;
2093
+ }, "strip", z.ZodTypeAny, {
2094
+ type: "WAIT";
2095
+ data: {
2096
+ seconds: number;
2097
+ };
2098
+ }, {
2099
+ type: "WAIT";
2100
+ data: {
2101
+ seconds: number;
2102
+ };
2103
+ }>, z.ZodObject<{
2104
+ type: z.ZodLiteral<"PRICE">;
2105
+ data: z.ZodObject<{
2106
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
2107
+ value: z.ZodNumber;
2108
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
2109
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2110
+ negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
2111
+ }, "strip", z.ZodTypeAny, {
2112
+ value: number;
2113
+ type: "PERCENTAGE" | "ABSOLUTE";
2114
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2115
+ roundStep?: number | null | undefined;
2116
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2117
+ }, {
2118
+ value: number;
2119
+ type: "PERCENTAGE" | "ABSOLUTE";
2120
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2121
+ roundStep?: number | null | undefined;
2122
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2123
+ }>;
2124
+ }, "strip", z.ZodTypeAny, {
2125
+ type: "PRICE";
2126
+ data: {
2127
+ value: number;
2128
+ type: "PERCENTAGE" | "ABSOLUTE";
2129
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2130
+ roundStep?: number | null | undefined;
2131
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2132
+ };
2133
+ }, {
2134
+ type: "PRICE";
2135
+ data: {
2136
+ value: number;
2137
+ type: "PERCENTAGE" | "ABSOLUTE";
2138
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2139
+ roundStep?: number | null | undefined;
2140
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2141
+ };
2142
+ }>, z.ZodObject<{
2143
+ type: z.ZodLiteral<"TEXT">;
2144
+ data: z.ZodObject<{
2145
+ text: z.ZodString;
2146
+ }, "strip", z.ZodTypeAny, {
2147
+ text: string;
2148
+ }, {
2149
+ text: string;
2150
+ }>;
2151
+ }, "strip", z.ZodTypeAny, {
2152
+ type: "TEXT";
2153
+ data: {
2154
+ text: string;
2155
+ };
2156
+ }, {
2157
+ type: "TEXT";
2158
+ data: {
2159
+ text: string;
2160
+ };
2161
+ }>]>;
2162
+ mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2163
+ }, "strip", z.ZodTypeAny, {
2164
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2165
+ payload: {
2166
+ type: "EMPTY";
2167
+ } | {
2168
+ type: "WAIT";
2169
+ data: {
2170
+ seconds: number;
2171
+ };
2172
+ } | {
2173
+ type: "PRICE";
2174
+ data: {
2175
+ value: number;
2176
+ type: "PERCENTAGE" | "ABSOLUTE";
2177
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2178
+ roundStep?: number | null | undefined;
2179
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2180
+ };
2181
+ } | {
2182
+ type: "TEXT";
2183
+ data: {
2184
+ text: string;
2185
+ };
2186
+ };
2187
+ enabled: boolean;
2188
+ mandatory?: boolean | null | undefined;
2189
+ }, {
2190
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2191
+ payload: {
2192
+ type: "EMPTY";
2193
+ } | {
2194
+ type: "WAIT";
2195
+ data: {
2196
+ seconds: number;
2197
+ };
2198
+ } | {
2199
+ type: "PRICE";
2200
+ data: {
2201
+ value: number;
2202
+ type: "PERCENTAGE" | "ABSOLUTE";
2203
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2204
+ roundStep?: number | null | undefined;
2205
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2206
+ };
2207
+ } | {
2208
+ type: "TEXT";
2209
+ data: {
2210
+ text: string;
2211
+ };
2212
+ };
2213
+ enabled: boolean;
2214
+ mandatory?: boolean | null | undefined;
2215
+ }>, "many">;
2216
+ }, "strip", z.ZodTypeAny, {
2217
+ actions: {
2218
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2219
+ payload: {
2220
+ type: "EMPTY";
2221
+ } | {
2222
+ type: "WAIT";
2223
+ data: {
2224
+ seconds: number;
2225
+ };
2226
+ } | {
2227
+ type: "PRICE";
2228
+ data: {
2229
+ value: number;
2230
+ type: "PERCENTAGE" | "ABSOLUTE";
2231
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2232
+ roundStep?: number | null | undefined;
2233
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2234
+ };
2235
+ } | {
2236
+ type: "TEXT";
2237
+ data: {
2238
+ text: string;
2239
+ };
2240
+ };
2241
+ enabled: boolean;
2242
+ mandatory?: boolean | null | undefined;
2243
+ }[];
2244
+ }, {
2245
+ actions: {
2246
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2247
+ payload: {
2248
+ type: "EMPTY";
2249
+ } | {
2250
+ type: "WAIT";
2251
+ data: {
2252
+ seconds: number;
2253
+ };
2254
+ } | {
2255
+ type: "PRICE";
2256
+ data: {
2257
+ value: number;
2258
+ type: "PERCENTAGE" | "ABSOLUTE";
2259
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2260
+ roundStep?: number | null | undefined;
2261
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2262
+ };
2263
+ } | {
2264
+ type: "TEXT";
2265
+ data: {
2266
+ text: string;
2267
+ };
2268
+ };
2269
+ enabled: boolean;
2270
+ mandatory?: boolean | null | undefined;
2271
+ }[];
2272
+ }>;
2273
+ }, "strip", z.ZodTypeAny, {
2274
+ type: "ACTIONS";
2275
+ data: {
2276
+ actions: {
2277
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2278
+ payload: {
2279
+ type: "EMPTY";
2280
+ } | {
2281
+ type: "WAIT";
2282
+ data: {
2283
+ seconds: number;
2284
+ };
2285
+ } | {
2286
+ type: "PRICE";
2287
+ data: {
2288
+ value: number;
2289
+ type: "PERCENTAGE" | "ABSOLUTE";
2290
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2291
+ roundStep?: number | null | undefined;
2292
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2293
+ };
2294
+ } | {
2295
+ type: "TEXT";
2296
+ data: {
2297
+ text: string;
2298
+ };
2299
+ };
2300
+ enabled: boolean;
2301
+ mandatory?: boolean | null | undefined;
2302
+ }[];
2303
+ };
2304
+ }, {
2305
+ type: "ACTIONS";
2306
+ data: {
2307
+ actions: {
2308
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2309
+ payload: {
2310
+ type: "EMPTY";
2311
+ } | {
2312
+ type: "WAIT";
2313
+ data: {
2314
+ seconds: number;
2315
+ };
2316
+ } | {
2317
+ type: "PRICE";
2318
+ data: {
2319
+ value: number;
2320
+ type: "PERCENTAGE" | "ABSOLUTE";
2321
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2322
+ roundStep?: number | null | undefined;
2323
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2324
+ };
2325
+ } | {
2326
+ type: "TEXT";
2327
+ data: {
2328
+ text: string;
2329
+ };
2330
+ };
2331
+ enabled: boolean;
2332
+ mandatory?: boolean | null | undefined;
2333
+ }[];
2334
+ };
2335
+ }>, z.ZodObject<{
2336
+ type: z.ZodLiteral<"FEES">;
2337
+ data: z.ZodObject<{
2338
+ fees: z.ZodArray<z.ZodObject<{
2339
+ name: z.ZodString;
2340
+ value: z.ZodNumber;
2341
+ }, "strip", z.ZodTypeAny, {
2342
+ value: number;
2343
+ name: string;
2344
+ }, {
2345
+ value: number;
2346
+ name: string;
2347
+ }>, "many">;
2348
+ }, "strip", z.ZodTypeAny, {
2349
+ fees: {
2350
+ value: number;
2351
+ name: string;
2352
+ }[];
2353
+ }, {
2354
+ fees: {
2355
+ value: number;
2356
+ name: string;
2357
+ }[];
2358
+ }>;
2359
+ }, "strip", z.ZodTypeAny, {
2360
+ type: "FEES";
2361
+ data: {
2362
+ fees: {
2363
+ value: number;
2364
+ name: string;
2365
+ }[];
2366
+ };
2367
+ }, {
2368
+ type: "FEES";
2369
+ data: {
2370
+ fees: {
2371
+ value: number;
2372
+ name: string;
2373
+ }[];
2374
+ };
2375
+ }>]>;
2376
+ }, "strip", z.ZodTypeAny, {
2377
+ id: string;
2378
+ name: string;
2379
+ payload: {
2380
+ type: "EMPTY";
2381
+ } | {
2382
+ type: "PRICE";
2383
+ data: {
2384
+ value: number;
2385
+ type: "PERCENTAGE" | "ABSOLUTE";
2386
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2387
+ roundStep?: number | null | undefined;
2388
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2389
+ };
2390
+ } | {
2391
+ type: "VISION";
2392
+ data: {
2393
+ doRemoveBackground: boolean;
2394
+ doSmartCrop: boolean;
2395
+ doChangeBackground: boolean;
2396
+ doRotate: boolean;
2397
+ doAddBorders: boolean;
2398
+ shadow: boolean;
2399
+ targetWidth?: number | null | undefined;
2400
+ targetHeight?: number | null | undefined;
2401
+ newBackgroundColor?: string | null | undefined;
2402
+ newBackgroundUrl?: string | null | undefined;
2403
+ rotationAngle?: number | null | undefined;
2404
+ borderSize?: number | null | undefined;
2405
+ borderColor?: string | null | undefined;
2406
+ };
2407
+ } | {
2408
+ type: "TEXT";
2409
+ data: {
2410
+ text: string;
2411
+ };
2412
+ } | {
2413
+ type: "ACTIONS";
2414
+ data: {
2415
+ actions: {
2416
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2417
+ payload: {
2418
+ type: "EMPTY";
2419
+ } | {
2420
+ type: "WAIT";
2421
+ data: {
2422
+ seconds: number;
2423
+ };
2424
+ } | {
2425
+ type: "PRICE";
2426
+ data: {
2427
+ value: number;
2428
+ type: "PERCENTAGE" | "ABSOLUTE";
2429
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2430
+ roundStep?: number | null | undefined;
2431
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2432
+ };
2433
+ } | {
2434
+ type: "TEXT";
2435
+ data: {
2436
+ text: string;
2437
+ };
2438
+ };
2439
+ enabled: boolean;
2440
+ mandatory?: boolean | null | undefined;
2441
+ }[];
2442
+ };
2443
+ } | {
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
+ type: "EMPTY";
2459
+ } | {
2460
+ type: "PRICE";
2461
+ data: {
2462
+ value: number;
2463
+ type: "PERCENTAGE" | "ABSOLUTE";
2464
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2465
+ roundStep?: number | null | undefined;
2466
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2467
+ };
2468
+ } | {
2469
+ type: "VISION";
2470
+ data: {
2471
+ doRemoveBackground: boolean;
2472
+ doSmartCrop: boolean;
2473
+ doChangeBackground: boolean;
2474
+ doRotate: boolean;
2475
+ doAddBorders: boolean;
2476
+ shadow: boolean;
2477
+ targetWidth?: number | null | undefined;
2478
+ targetHeight?: number | null | undefined;
2479
+ newBackgroundColor?: string | null | undefined;
2480
+ newBackgroundUrl?: string | null | undefined;
2481
+ rotationAngle?: number | null | undefined;
2482
+ borderSize?: number | null | undefined;
2483
+ borderColor?: string | null | undefined;
2484
+ };
2485
+ } | {
2486
+ type: "TEXT";
2487
+ data: {
2488
+ text: string;
2489
+ };
2490
+ } | {
2491
+ type: "ACTIONS";
2492
+ data: {
2493
+ actions: {
2494
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2495
+ payload: {
2496
+ type: "EMPTY";
2497
+ } | {
2498
+ type: "WAIT";
2499
+ data: {
2500
+ seconds: number;
2501
+ };
2502
+ } | {
2503
+ type: "PRICE";
2504
+ data: {
2505
+ value: number;
2506
+ type: "PERCENTAGE" | "ABSOLUTE";
2507
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2508
+ roundStep?: number | null | undefined;
2509
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2510
+ };
2511
+ } | {
2512
+ type: "TEXT";
2513
+ data: {
2514
+ text: string;
2515
+ };
2516
+ };
2517
+ enabled: boolean;
2518
+ mandatory?: boolean | null | undefined;
2519
+ }[];
2520
+ };
2521
+ } | {
2522
+ type: "FEES";
2523
+ data: {
2524
+ fees: {
2525
+ value: number;
2526
+ name: string;
2527
+ }[];
2528
+ };
2529
+ };
2530
+ caseId: string;
2531
+ weight: number;
2532
+ }>;
2533
+ }, "strip", z.ZodTypeAny, {
2534
+ preference: {
2535
+ 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";
2536
+ id: string;
2537
+ userId: string | number;
2538
+ enabled: boolean;
2539
+ testMode: boolean;
2540
+ parentPreferenceId?: string | null | undefined;
2541
+ cases?: {
2542
+ id: string;
2543
+ enabled: boolean;
2544
+ testMode: boolean;
2545
+ preferenceId: string;
2546
+ abTest: boolean;
2547
+ savedFiltersId?: string | null | undefined;
2548
+ variants?: {
2549
+ id: string;
2550
+ name: string;
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
+ type: "ACTIONS";
2586
+ data: {
2587
+ actions: {
2588
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2589
+ payload: {
2590
+ type: "EMPTY";
2591
+ } | {
2592
+ type: "WAIT";
2593
+ data: {
2594
+ seconds: number;
2595
+ };
2596
+ } | {
2597
+ type: "PRICE";
2598
+ data: {
2599
+ value: number;
2600
+ type: "PERCENTAGE" | "ABSOLUTE";
2601
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2602
+ roundStep?: number | null | undefined;
2603
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2604
+ };
2605
+ } | {
2606
+ type: "TEXT";
2607
+ data: {
2608
+ text: string;
2609
+ };
2610
+ };
2611
+ enabled: boolean;
2612
+ mandatory?: boolean | null | undefined;
2613
+ }[];
2614
+ };
2615
+ } | {
2616
+ type: "FEES";
2617
+ data: {
2618
+ fees: {
2619
+ value: number;
2620
+ name: string;
2621
+ }[];
2622
+ };
2623
+ };
2624
+ caseId: string;
2625
+ weight: number;
2626
+ }[] | null | undefined;
2627
+ }[] | null | undefined;
2628
+ };
2629
+ case: {
2630
+ id: string;
2631
+ enabled: boolean;
2632
+ testMode: boolean;
2633
+ preferenceId: string;
2634
+ abTest: boolean;
2635
+ savedFiltersId?: string | null | undefined;
2636
+ variants?: {
2637
+ id: string;
2638
+ name: string;
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
+ type: "ACTIONS";
2674
+ data: {
2675
+ actions: {
2676
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2677
+ payload: {
2678
+ type: "EMPTY";
2679
+ } | {
2680
+ type: "WAIT";
2681
+ data: {
2682
+ seconds: number;
2683
+ };
2684
+ } | {
2685
+ type: "PRICE";
2686
+ data: {
2687
+ value: number;
2688
+ type: "PERCENTAGE" | "ABSOLUTE";
2689
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2690
+ roundStep?: number | null | undefined;
2691
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2692
+ };
2693
+ } | {
2694
+ type: "TEXT";
2695
+ data: {
2696
+ text: string;
2697
+ };
2698
+ };
2699
+ enabled: boolean;
2700
+ mandatory?: boolean | null | undefined;
2701
+ }[];
2702
+ };
2703
+ } | {
2704
+ type: "FEES";
2705
+ data: {
2706
+ fees: {
2707
+ value: number;
2708
+ name: string;
2709
+ }[];
2710
+ };
2711
+ };
2712
+ caseId: string;
2713
+ weight: number;
2714
+ }[] | null | undefined;
2715
+ };
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
+ } | {
2753
+ type: "ACTIONS";
2754
+ data: {
2755
+ actions: {
2756
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2757
+ payload: {
2758
+ type: "EMPTY";
2759
+ } | {
2760
+ type: "WAIT";
2761
+ data: {
2762
+ seconds: number;
2763
+ };
2764
+ } | {
2765
+ type: "PRICE";
2766
+ data: {
2767
+ value: number;
2768
+ type: "PERCENTAGE" | "ABSOLUTE";
2769
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2770
+ roundStep?: number | null | undefined;
2771
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2772
+ };
2773
+ } | {
2774
+ type: "TEXT";
2775
+ data: {
2776
+ text: string;
2777
+ };
2778
+ };
2779
+ enabled: boolean;
2780
+ mandatory?: boolean | null | undefined;
2781
+ }[];
2782
+ };
2783
+ } | {
2784
+ type: "FEES";
2785
+ data: {
2786
+ fees: {
2787
+ value: number;
2788
+ name: string;
2789
+ }[];
2790
+ };
2791
+ };
2792
+ caseId: string;
2793
+ weight: number;
2794
+ };
2795
+ }, {
2796
+ preference: {
2797
+ 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";
2798
+ id: string;
2799
+ userId: string | number;
2800
+ enabled: boolean;
2801
+ testMode: boolean;
2802
+ parentPreferenceId?: string | null | undefined;
2803
+ cases?: {
2804
+ id: string;
2805
+ enabled: boolean;
2806
+ testMode: boolean;
2807
+ preferenceId: string;
2808
+ abTest: boolean;
2809
+ savedFiltersId?: string | null | undefined;
2810
+ variants?: {
2811
+ id: string;
2812
+ name: string;
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
+ type: "ACTIONS";
2848
+ data: {
2849
+ actions: {
2850
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2851
+ payload: {
2852
+ type: "EMPTY";
2853
+ } | {
2854
+ type: "WAIT";
2855
+ data: {
2856
+ seconds: number;
2857
+ };
2858
+ } | {
2859
+ type: "PRICE";
2860
+ data: {
2861
+ value: number;
2862
+ type: "PERCENTAGE" | "ABSOLUTE";
2863
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2864
+ roundStep?: number | null | undefined;
2865
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2866
+ };
2867
+ } | {
2868
+ type: "TEXT";
2869
+ data: {
2870
+ text: string;
2871
+ };
2872
+ };
2873
+ enabled: boolean;
2874
+ mandatory?: boolean | null | undefined;
2875
+ }[];
2876
+ };
2877
+ } | {
2878
+ type: "FEES";
2879
+ data: {
2880
+ fees: {
2881
+ value: number;
2882
+ name: string;
2883
+ }[];
2884
+ };
2885
+ };
2886
+ caseId: string;
2887
+ weight: number;
2888
+ }[] | null | undefined;
2889
+ }[] | null | undefined;
2890
+ };
2891
+ case: {
2892
+ id: string;
2893
+ enabled: boolean;
2894
+ testMode: boolean;
2895
+ preferenceId: string;
2896
+ abTest: boolean;
2897
+ savedFiltersId?: string | null | undefined;
2898
+ variants?: {
2899
+ id: string;
2900
+ name: string;
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
+ type: "ACTIONS";
2936
+ data: {
2937
+ actions: {
2938
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2939
+ payload: {
2940
+ type: "EMPTY";
2941
+ } | {
2942
+ type: "WAIT";
2943
+ data: {
2944
+ seconds: number;
2945
+ };
2946
+ } | {
2947
+ type: "PRICE";
2948
+ data: {
2949
+ value: number;
2950
+ type: "PERCENTAGE" | "ABSOLUTE";
2951
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2952
+ roundStep?: number | null | undefined;
2953
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2954
+ };
2955
+ } | {
2956
+ type: "TEXT";
2957
+ data: {
2958
+ text: string;
2959
+ };
2960
+ };
2961
+ enabled: boolean;
2962
+ mandatory?: boolean | null | undefined;
2963
+ }[];
2964
+ };
2965
+ } | {
2966
+ type: "FEES";
2967
+ data: {
2968
+ fees: {
2969
+ value: number;
2970
+ name: string;
2971
+ }[];
2972
+ };
2973
+ };
2974
+ caseId: string;
2975
+ weight: number;
2976
+ }[] | null | undefined;
2977
+ };
2978
+ variant: {
2979
+ id: string;
2980
+ name: string;
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
+ type: "ACTIONS";
3016
+ data: {
3017
+ actions: {
3018
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
3019
+ payload: {
3020
+ type: "EMPTY";
3021
+ } | {
3022
+ type: "WAIT";
3023
+ data: {
3024
+ seconds: number;
3025
+ };
3026
+ } | {
3027
+ type: "PRICE";
3028
+ data: {
3029
+ value: number;
3030
+ type: "PERCENTAGE" | "ABSOLUTE";
3031
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3032
+ roundStep?: number | null | undefined;
3033
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
3034
+ };
3035
+ } | {
3036
+ type: "TEXT";
3037
+ data: {
3038
+ text: string;
3039
+ };
3040
+ };
3041
+ enabled: boolean;
3042
+ mandatory?: boolean | null | undefined;
3043
+ }[];
3044
+ };
3045
+ } | {
3046
+ type: "FEES";
3047
+ data: {
3048
+ fees: {
3049
+ value: number;
3050
+ name: string;
3051
+ }[];
3052
+ };
3053
+ };
3054
+ caseId: string;
3055
+ weight: number;
3056
+ };
3057
+ }>;
149
3058
  }, "strip", z.ZodTypeAny, {
150
3059
  type: "ITEM" | "CONVERSATION";
151
3060
  actions: {
@@ -175,6 +3084,269 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
175
3084
  enabled: boolean;
176
3085
  mandatory?: boolean | null | undefined;
177
3086
  }[];
3087
+ preference: {
3088
+ preference: {
3089
+ 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";
3090
+ id: string;
3091
+ userId: string | number;
3092
+ enabled: boolean;
3093
+ testMode: boolean;
3094
+ parentPreferenceId?: string | null | undefined;
3095
+ cases?: {
3096
+ id: string;
3097
+ enabled: boolean;
3098
+ testMode: boolean;
3099
+ preferenceId: string;
3100
+ abTest: boolean;
3101
+ savedFiltersId?: string | null | undefined;
3102
+ variants?: {
3103
+ id: string;
3104
+ name: string;
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
+ type: "ACTIONS";
3140
+ data: {
3141
+ actions: {
3142
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
3143
+ payload: {
3144
+ type: "EMPTY";
3145
+ } | {
3146
+ type: "WAIT";
3147
+ data: {
3148
+ seconds: number;
3149
+ };
3150
+ } | {
3151
+ type: "PRICE";
3152
+ data: {
3153
+ value: number;
3154
+ type: "PERCENTAGE" | "ABSOLUTE";
3155
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3156
+ roundStep?: number | null | undefined;
3157
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
3158
+ };
3159
+ } | {
3160
+ type: "TEXT";
3161
+ data: {
3162
+ text: string;
3163
+ };
3164
+ };
3165
+ enabled: boolean;
3166
+ mandatory?: boolean | null | undefined;
3167
+ }[];
3168
+ };
3169
+ } | {
3170
+ type: "FEES";
3171
+ data: {
3172
+ fees: {
3173
+ value: number;
3174
+ name: string;
3175
+ }[];
3176
+ };
3177
+ };
3178
+ caseId: string;
3179
+ weight: number;
3180
+ }[] | null | undefined;
3181
+ }[] | null | undefined;
3182
+ };
3183
+ case: {
3184
+ id: string;
3185
+ enabled: boolean;
3186
+ testMode: boolean;
3187
+ preferenceId: string;
3188
+ abTest: boolean;
3189
+ savedFiltersId?: string | null | undefined;
3190
+ variants?: {
3191
+ id: string;
3192
+ name: string;
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
+ type: "ACTIONS";
3228
+ data: {
3229
+ actions: {
3230
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
3231
+ payload: {
3232
+ type: "EMPTY";
3233
+ } | {
3234
+ type: "WAIT";
3235
+ data: {
3236
+ seconds: number;
3237
+ };
3238
+ } | {
3239
+ type: "PRICE";
3240
+ data: {
3241
+ value: number;
3242
+ type: "PERCENTAGE" | "ABSOLUTE";
3243
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3244
+ roundStep?: number | null | undefined;
3245
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
3246
+ };
3247
+ } | {
3248
+ type: "TEXT";
3249
+ data: {
3250
+ text: string;
3251
+ };
3252
+ };
3253
+ enabled: boolean;
3254
+ mandatory?: boolean | null | undefined;
3255
+ }[];
3256
+ };
3257
+ } | {
3258
+ type: "FEES";
3259
+ data: {
3260
+ fees: {
3261
+ value: number;
3262
+ name: string;
3263
+ }[];
3264
+ };
3265
+ };
3266
+ caseId: string;
3267
+ weight: number;
3268
+ }[] | null | undefined;
3269
+ };
3270
+ variant: {
3271
+ id: string;
3272
+ name: string;
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
+ type: "ACTIONS";
3308
+ data: {
3309
+ actions: {
3310
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
3311
+ payload: {
3312
+ type: "EMPTY";
3313
+ } | {
3314
+ type: "WAIT";
3315
+ data: {
3316
+ seconds: number;
3317
+ };
3318
+ } | {
3319
+ type: "PRICE";
3320
+ data: {
3321
+ value: number;
3322
+ type: "PERCENTAGE" | "ABSOLUTE";
3323
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3324
+ roundStep?: number | null | undefined;
3325
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
3326
+ };
3327
+ } | {
3328
+ type: "TEXT";
3329
+ data: {
3330
+ text: string;
3331
+ };
3332
+ };
3333
+ enabled: boolean;
3334
+ mandatory?: boolean | null | undefined;
3335
+ }[];
3336
+ };
3337
+ } | {
3338
+ type: "FEES";
3339
+ data: {
3340
+ fees: {
3341
+ value: number;
3342
+ name: string;
3343
+ }[];
3344
+ };
3345
+ };
3346
+ caseId: string;
3347
+ weight: number;
3348
+ };
3349
+ };
178
3350
  referenceTime: Date;
179
3351
  userId?: number | null | undefined;
180
3352
  accountId?: string | null | undefined;
@@ -208,6 +3380,269 @@ export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
208
3380
  enabled: boolean;
209
3381
  mandatory?: boolean | null | undefined;
210
3382
  }[];
3383
+ preference: {
3384
+ preference: {
3385
+ 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";
3386
+ id: string;
3387
+ userId: string | number;
3388
+ enabled: boolean;
3389
+ testMode: boolean;
3390
+ parentPreferenceId?: string | null | undefined;
3391
+ cases?: {
3392
+ id: string;
3393
+ enabled: boolean;
3394
+ testMode: boolean;
3395
+ preferenceId: string;
3396
+ abTest: boolean;
3397
+ savedFiltersId?: string | null | undefined;
3398
+ variants?: {
3399
+ id: string;
3400
+ name: string;
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
+ type: "ACTIONS";
3436
+ data: {
3437
+ actions: {
3438
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
3439
+ payload: {
3440
+ type: "EMPTY";
3441
+ } | {
3442
+ type: "WAIT";
3443
+ data: {
3444
+ seconds: number;
3445
+ };
3446
+ } | {
3447
+ type: "PRICE";
3448
+ data: {
3449
+ value: number;
3450
+ type: "PERCENTAGE" | "ABSOLUTE";
3451
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3452
+ roundStep?: number | null | undefined;
3453
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
3454
+ };
3455
+ } | {
3456
+ type: "TEXT";
3457
+ data: {
3458
+ text: string;
3459
+ };
3460
+ };
3461
+ enabled: boolean;
3462
+ mandatory?: boolean | null | undefined;
3463
+ }[];
3464
+ };
3465
+ } | {
3466
+ type: "FEES";
3467
+ data: {
3468
+ fees: {
3469
+ value: number;
3470
+ name: string;
3471
+ }[];
3472
+ };
3473
+ };
3474
+ caseId: string;
3475
+ weight: number;
3476
+ }[] | null | undefined;
3477
+ }[] | null | undefined;
3478
+ };
3479
+ case: {
3480
+ id: string;
3481
+ enabled: boolean;
3482
+ testMode: boolean;
3483
+ preferenceId: string;
3484
+ abTest: boolean;
3485
+ savedFiltersId?: string | null | undefined;
3486
+ variants?: {
3487
+ id: string;
3488
+ name: string;
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
+ type: "ACTIONS";
3524
+ data: {
3525
+ actions: {
3526
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
3527
+ payload: {
3528
+ type: "EMPTY";
3529
+ } | {
3530
+ type: "WAIT";
3531
+ data: {
3532
+ seconds: number;
3533
+ };
3534
+ } | {
3535
+ type: "PRICE";
3536
+ data: {
3537
+ value: number;
3538
+ type: "PERCENTAGE" | "ABSOLUTE";
3539
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3540
+ roundStep?: number | null | undefined;
3541
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
3542
+ };
3543
+ } | {
3544
+ type: "TEXT";
3545
+ data: {
3546
+ text: string;
3547
+ };
3548
+ };
3549
+ enabled: boolean;
3550
+ mandatory?: boolean | null | undefined;
3551
+ }[];
3552
+ };
3553
+ } | {
3554
+ type: "FEES";
3555
+ data: {
3556
+ fees: {
3557
+ value: number;
3558
+ name: string;
3559
+ }[];
3560
+ };
3561
+ };
3562
+ caseId: string;
3563
+ weight: number;
3564
+ }[] | null | undefined;
3565
+ };
3566
+ variant: {
3567
+ id: string;
3568
+ name: string;
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
+ type: "ACTIONS";
3604
+ data: {
3605
+ actions: {
3606
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
3607
+ payload: {
3608
+ type: "EMPTY";
3609
+ } | {
3610
+ type: "WAIT";
3611
+ data: {
3612
+ seconds: number;
3613
+ };
3614
+ } | {
3615
+ type: "PRICE";
3616
+ data: {
3617
+ value: number;
3618
+ type: "PERCENTAGE" | "ABSOLUTE";
3619
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3620
+ roundStep?: number | null | undefined;
3621
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
3622
+ };
3623
+ } | {
3624
+ type: "TEXT";
3625
+ data: {
3626
+ text: string;
3627
+ };
3628
+ };
3629
+ enabled: boolean;
3630
+ mandatory?: boolean | null | undefined;
3631
+ }[];
3632
+ };
3633
+ } | {
3634
+ type: "FEES";
3635
+ data: {
3636
+ fees: {
3637
+ value: number;
3638
+ name: string;
3639
+ }[];
3640
+ };
3641
+ };
3642
+ caseId: string;
3643
+ weight: number;
3644
+ };
3645
+ };
211
3646
  referenceTime: Date;
212
3647
  userId?: number | null | undefined;
213
3648
  accountId?: string | null | undefined;