controlresell 2.2.10 → 2.2.12

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 (22) hide show
  1. package/package.json +1 -1
  2. package/src/com/controlresell/models/catalogs/SizeGroup.d.ts +0 -3
  3. package/src/com/controlresell/models/catalogs/SizeGroup.js +0 -1
  4. package/src/com/controlresell/models/catalogs/SizeGroup.ts +0 -1
  5. package/src/com/controlresell/models/catalogs/SizeRoot.d.ts +0 -5
  6. package/src/com/controlresell/models/items/ItemPayload.d.ts +0 -3
  7. package/src/com/controlresell/models/items/ItemPayload.js +0 -1
  8. package/src/com/controlresell/models/items/ItemPayload.ts +0 -1
  9. package/src/com/controlresell/models/preferences/PreferenceWithChildren.d.ts +2163 -0
  10. package/src/com/controlresell/models/preferences/PreferenceWithChildren.js +8 -0
  11. package/src/com/controlresell/models/preferences/PreferenceWithChildren.ts +8 -0
  12. package/src/com/controlresell/models/preferences/payloads/vision/PreferenceVisionPayload.js +1 -1
  13. package/src/com/controlresell/models/preferences/payloads/vision/PreferenceVisionPayload.ts +1 -1
  14. package/src/index.d.ts +1 -2
  15. package/src/index.js +6 -8
  16. package/src/index.ts +1 -2
  17. package/src/com/controlresell/models/application/ControlResellEnvironment.d.ts +0 -3
  18. package/src/com/controlresell/models/application/ControlResellEnvironment.js +0 -7
  19. package/src/com/controlresell/models/application/ControlResellEnvironment.ts +0 -6
  20. package/src/com/controlresell/models/application/RabbitMQRoutingKey.d.ts +0 -3
  21. package/src/com/controlresell/models/application/RabbitMQRoutingKey.js +0 -7
  22. package/src/com/controlresell/models/application/RabbitMQRoutingKey.ts +0 -6
@@ -0,0 +1,2163 @@
1
+ import { z } from "zod";
2
+ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ parentPreferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
6
+ 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"]>;
7
+ enabled: z.ZodBoolean;
8
+ testMode: z.ZodBoolean;
9
+ cases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
10
+ id: z.ZodString;
11
+ preferenceId: z.ZodString;
12
+ savedFiltersId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ enabled: z.ZodBoolean;
14
+ testMode: z.ZodBoolean;
15
+ abTest: z.ZodBoolean;
16
+ variants: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
17
+ id: z.ZodString;
18
+ caseId: z.ZodString;
19
+ name: z.ZodString;
20
+ weight: z.ZodNumber;
21
+ payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
22
+ type: z.ZodLiteral<"EMPTY">;
23
+ }, "strip", z.ZodTypeAny, {
24
+ type: "EMPTY";
25
+ }, {
26
+ type: "EMPTY";
27
+ }>, z.ZodObject<{
28
+ type: z.ZodLiteral<"PRICE">;
29
+ data: z.ZodObject<{
30
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
31
+ value: z.ZodNumber;
32
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
33
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
+ negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ value: number;
37
+ type: "PERCENTAGE" | "ABSOLUTE";
38
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
39
+ roundStep?: number | null | undefined;
40
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
41
+ }, {
42
+ value: number;
43
+ type: "PERCENTAGE" | "ABSOLUTE";
44
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
45
+ roundStep?: number | null | undefined;
46
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
47
+ }>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ type: "PRICE";
50
+ data: {
51
+ value: number;
52
+ type: "PERCENTAGE" | "ABSOLUTE";
53
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
54
+ roundStep?: number | null | undefined;
55
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
56
+ };
57
+ }, {
58
+ type: "PRICE";
59
+ data: {
60
+ value: number;
61
+ type: "PERCENTAGE" | "ABSOLUTE";
62
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
63
+ roundStep?: number | null | undefined;
64
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
65
+ };
66
+ }>, z.ZodObject<{
67
+ type: z.ZodLiteral<"VISION">;
68
+ data: z.ZodObject<{
69
+ doRemoveBackground: z.ZodBoolean;
70
+ doSmartCrop: z.ZodBoolean;
71
+ doChangeBackground: z.ZodBoolean;
72
+ doRotate: z.ZodBoolean;
73
+ doAddBorders: z.ZodBoolean;
74
+ shadow: z.ZodBoolean;
75
+ targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
76
+ targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
77
+ newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
+ newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
80
+ borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
81
+ borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ doRemoveBackground: boolean;
84
+ doSmartCrop: boolean;
85
+ doChangeBackground: boolean;
86
+ doRotate: boolean;
87
+ doAddBorders: boolean;
88
+ shadow: boolean;
89
+ targetWidth?: number | null | undefined;
90
+ targetHeight?: number | null | undefined;
91
+ newBackgroundColor?: string | null | undefined;
92
+ newBackgroundUrl?: string | null | undefined;
93
+ rotationAngle?: number | null | undefined;
94
+ borderSize?: number | null | undefined;
95
+ borderColor?: string | null | undefined;
96
+ }, {
97
+ doRemoveBackground: boolean;
98
+ doSmartCrop: boolean;
99
+ doChangeBackground: boolean;
100
+ doRotate: boolean;
101
+ doAddBorders: boolean;
102
+ shadow: boolean;
103
+ targetWidth?: number | null | undefined;
104
+ targetHeight?: number | null | undefined;
105
+ newBackgroundColor?: string | null | undefined;
106
+ newBackgroundUrl?: string | null | undefined;
107
+ rotationAngle?: number | null | undefined;
108
+ borderSize?: number | null | undefined;
109
+ borderColor?: string | null | undefined;
110
+ }>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ type: "VISION";
113
+ data: {
114
+ doRemoveBackground: boolean;
115
+ doSmartCrop: boolean;
116
+ doChangeBackground: boolean;
117
+ doRotate: boolean;
118
+ doAddBorders: boolean;
119
+ shadow: boolean;
120
+ targetWidth?: number | null | undefined;
121
+ targetHeight?: number | null | undefined;
122
+ newBackgroundColor?: string | null | undefined;
123
+ newBackgroundUrl?: string | null | undefined;
124
+ rotationAngle?: number | null | undefined;
125
+ borderSize?: number | null | undefined;
126
+ borderColor?: string | null | undefined;
127
+ };
128
+ }, {
129
+ type: "VISION";
130
+ data: {
131
+ doRemoveBackground: boolean;
132
+ doSmartCrop: boolean;
133
+ doChangeBackground: boolean;
134
+ doRotate: boolean;
135
+ doAddBorders: boolean;
136
+ shadow: boolean;
137
+ targetWidth?: number | null | undefined;
138
+ targetHeight?: number | null | undefined;
139
+ newBackgroundColor?: string | null | undefined;
140
+ newBackgroundUrl?: string | null | undefined;
141
+ rotationAngle?: number | null | undefined;
142
+ borderSize?: number | null | undefined;
143
+ borderColor?: string | null | undefined;
144
+ };
145
+ }>, z.ZodObject<{
146
+ type: z.ZodLiteral<"TEXT">;
147
+ data: z.ZodObject<{
148
+ text: z.ZodString;
149
+ }, "strip", z.ZodTypeAny, {
150
+ text: string;
151
+ }, {
152
+ text: string;
153
+ }>;
154
+ }, "strip", z.ZodTypeAny, {
155
+ type: "TEXT";
156
+ data: {
157
+ text: string;
158
+ };
159
+ }, {
160
+ type: "TEXT";
161
+ data: {
162
+ text: string;
163
+ };
164
+ }>, z.ZodObject<{
165
+ type: z.ZodLiteral<"ACTIONS">;
166
+ data: z.ZodObject<{
167
+ actions: z.ZodArray<z.ZodObject<{
168
+ type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO", "OFFER_MANUAL"]>;
169
+ enabled: z.ZodBoolean;
170
+ payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
171
+ type: z.ZodLiteral<"EMPTY">;
172
+ }, "strip", z.ZodTypeAny, {
173
+ type: "EMPTY";
174
+ }, {
175
+ type: "EMPTY";
176
+ }>, z.ZodObject<{
177
+ type: z.ZodLiteral<"WAIT">;
178
+ data: z.ZodObject<{
179
+ seconds: z.ZodNumber;
180
+ }, "strip", z.ZodTypeAny, {
181
+ seconds: number;
182
+ }, {
183
+ seconds: number;
184
+ }>;
185
+ }, "strip", z.ZodTypeAny, {
186
+ type: "WAIT";
187
+ data: {
188
+ seconds: number;
189
+ };
190
+ }, {
191
+ type: "WAIT";
192
+ data: {
193
+ seconds: number;
194
+ };
195
+ }>, z.ZodObject<{
196
+ type: z.ZodLiteral<"PRICE">;
197
+ data: z.ZodObject<{
198
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
199
+ value: z.ZodNumber;
200
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
201
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
202
+ negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
203
+ }, "strip", z.ZodTypeAny, {
204
+ value: number;
205
+ type: "PERCENTAGE" | "ABSOLUTE";
206
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
207
+ roundStep?: number | null | undefined;
208
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
209
+ }, {
210
+ value: number;
211
+ type: "PERCENTAGE" | "ABSOLUTE";
212
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
213
+ roundStep?: number | null | undefined;
214
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
215
+ }>;
216
+ }, "strip", z.ZodTypeAny, {
217
+ type: "PRICE";
218
+ data: {
219
+ value: number;
220
+ type: "PERCENTAGE" | "ABSOLUTE";
221
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
222
+ roundStep?: number | null | undefined;
223
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
224
+ };
225
+ }, {
226
+ type: "PRICE";
227
+ data: {
228
+ value: number;
229
+ type: "PERCENTAGE" | "ABSOLUTE";
230
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
231
+ roundStep?: number | null | undefined;
232
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
233
+ };
234
+ }>, z.ZodObject<{
235
+ type: z.ZodLiteral<"TEXT">;
236
+ data: z.ZodObject<{
237
+ text: z.ZodString;
238
+ }, "strip", z.ZodTypeAny, {
239
+ text: string;
240
+ }, {
241
+ text: string;
242
+ }>;
243
+ }, "strip", z.ZodTypeAny, {
244
+ type: "TEXT";
245
+ data: {
246
+ text: string;
247
+ };
248
+ }, {
249
+ type: "TEXT";
250
+ data: {
251
+ text: string;
252
+ };
253
+ }>]>;
254
+ mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
255
+ }, "strip", z.ZodTypeAny, {
256
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
257
+ payload: {
258
+ type: "EMPTY";
259
+ } | {
260
+ type: "WAIT";
261
+ data: {
262
+ seconds: number;
263
+ };
264
+ } | {
265
+ type: "PRICE";
266
+ data: {
267
+ value: number;
268
+ type: "PERCENTAGE" | "ABSOLUTE";
269
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
270
+ roundStep?: number | null | undefined;
271
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
272
+ };
273
+ } | {
274
+ type: "TEXT";
275
+ data: {
276
+ text: string;
277
+ };
278
+ };
279
+ enabled: boolean;
280
+ mandatory?: boolean | null | undefined;
281
+ }, {
282
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
283
+ payload: {
284
+ type: "EMPTY";
285
+ } | {
286
+ type: "WAIT";
287
+ data: {
288
+ seconds: number;
289
+ };
290
+ } | {
291
+ type: "PRICE";
292
+ data: {
293
+ value: number;
294
+ type: "PERCENTAGE" | "ABSOLUTE";
295
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
296
+ roundStep?: number | null | undefined;
297
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
298
+ };
299
+ } | {
300
+ type: "TEXT";
301
+ data: {
302
+ text: string;
303
+ };
304
+ };
305
+ enabled: boolean;
306
+ mandatory?: boolean | null | undefined;
307
+ }>, "many">;
308
+ }, "strip", z.ZodTypeAny, {
309
+ actions: {
310
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
311
+ payload: {
312
+ type: "EMPTY";
313
+ } | {
314
+ type: "WAIT";
315
+ data: {
316
+ seconds: number;
317
+ };
318
+ } | {
319
+ type: "PRICE";
320
+ data: {
321
+ value: number;
322
+ type: "PERCENTAGE" | "ABSOLUTE";
323
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
324
+ roundStep?: number | null | undefined;
325
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
326
+ };
327
+ } | {
328
+ type: "TEXT";
329
+ data: {
330
+ text: string;
331
+ };
332
+ };
333
+ enabled: boolean;
334
+ mandatory?: boolean | null | undefined;
335
+ }[];
336
+ }, {
337
+ actions: {
338
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
339
+ payload: {
340
+ type: "EMPTY";
341
+ } | {
342
+ type: "WAIT";
343
+ data: {
344
+ seconds: number;
345
+ };
346
+ } | {
347
+ type: "PRICE";
348
+ data: {
349
+ value: number;
350
+ type: "PERCENTAGE" | "ABSOLUTE";
351
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
352
+ roundStep?: number | null | undefined;
353
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
354
+ };
355
+ } | {
356
+ type: "TEXT";
357
+ data: {
358
+ text: string;
359
+ };
360
+ };
361
+ enabled: boolean;
362
+ mandatory?: boolean | null | undefined;
363
+ }[];
364
+ }>;
365
+ }, "strip", z.ZodTypeAny, {
366
+ type: "ACTIONS";
367
+ data: {
368
+ actions: {
369
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
370
+ payload: {
371
+ type: "EMPTY";
372
+ } | {
373
+ type: "WAIT";
374
+ data: {
375
+ seconds: number;
376
+ };
377
+ } | {
378
+ type: "PRICE";
379
+ data: {
380
+ value: number;
381
+ type: "PERCENTAGE" | "ABSOLUTE";
382
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
383
+ roundStep?: number | null | undefined;
384
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
385
+ };
386
+ } | {
387
+ type: "TEXT";
388
+ data: {
389
+ text: string;
390
+ };
391
+ };
392
+ enabled: boolean;
393
+ mandatory?: boolean | null | undefined;
394
+ }[];
395
+ };
396
+ }, {
397
+ type: "ACTIONS";
398
+ data: {
399
+ actions: {
400
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
401
+ payload: {
402
+ type: "EMPTY";
403
+ } | {
404
+ type: "WAIT";
405
+ data: {
406
+ seconds: number;
407
+ };
408
+ } | {
409
+ type: "PRICE";
410
+ data: {
411
+ value: number;
412
+ type: "PERCENTAGE" | "ABSOLUTE";
413
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
414
+ roundStep?: number | null | undefined;
415
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
416
+ };
417
+ } | {
418
+ type: "TEXT";
419
+ data: {
420
+ text: string;
421
+ };
422
+ };
423
+ enabled: boolean;
424
+ mandatory?: boolean | null | undefined;
425
+ }[];
426
+ };
427
+ }>, z.ZodObject<{
428
+ type: z.ZodLiteral<"FEES">;
429
+ data: z.ZodObject<{
430
+ fees: z.ZodArray<z.ZodObject<{
431
+ name: z.ZodString;
432
+ value: z.ZodNumber;
433
+ }, "strip", z.ZodTypeAny, {
434
+ value: number;
435
+ name: string;
436
+ }, {
437
+ value: number;
438
+ name: string;
439
+ }>, "many">;
440
+ }, "strip", z.ZodTypeAny, {
441
+ fees: {
442
+ value: number;
443
+ name: string;
444
+ }[];
445
+ }, {
446
+ fees: {
447
+ value: number;
448
+ name: string;
449
+ }[];
450
+ }>;
451
+ }, "strip", z.ZodTypeAny, {
452
+ type: "FEES";
453
+ data: {
454
+ fees: {
455
+ value: number;
456
+ name: string;
457
+ }[];
458
+ };
459
+ }, {
460
+ type: "FEES";
461
+ data: {
462
+ fees: {
463
+ value: number;
464
+ name: string;
465
+ }[];
466
+ };
467
+ }>]>;
468
+ }, "strip", z.ZodTypeAny, {
469
+ id: string;
470
+ name: string;
471
+ payload: {
472
+ type: "EMPTY";
473
+ } | {
474
+ type: "PRICE";
475
+ data: {
476
+ value: number;
477
+ type: "PERCENTAGE" | "ABSOLUTE";
478
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
479
+ roundStep?: number | null | undefined;
480
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
481
+ };
482
+ } | {
483
+ type: "VISION";
484
+ data: {
485
+ doRemoveBackground: boolean;
486
+ doSmartCrop: boolean;
487
+ doChangeBackground: boolean;
488
+ doRotate: boolean;
489
+ doAddBorders: boolean;
490
+ shadow: boolean;
491
+ targetWidth?: number | null | undefined;
492
+ targetHeight?: number | null | undefined;
493
+ newBackgroundColor?: string | null | undefined;
494
+ newBackgroundUrl?: string | null | undefined;
495
+ rotationAngle?: number | null | undefined;
496
+ borderSize?: number | null | undefined;
497
+ borderColor?: string | null | undefined;
498
+ };
499
+ } | {
500
+ type: "TEXT";
501
+ data: {
502
+ text: string;
503
+ };
504
+ } | {
505
+ type: "ACTIONS";
506
+ data: {
507
+ actions: {
508
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
509
+ payload: {
510
+ type: "EMPTY";
511
+ } | {
512
+ type: "WAIT";
513
+ data: {
514
+ seconds: number;
515
+ };
516
+ } | {
517
+ type: "PRICE";
518
+ data: {
519
+ value: number;
520
+ type: "PERCENTAGE" | "ABSOLUTE";
521
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
522
+ roundStep?: number | null | undefined;
523
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
524
+ };
525
+ } | {
526
+ type: "TEXT";
527
+ data: {
528
+ text: string;
529
+ };
530
+ };
531
+ enabled: boolean;
532
+ mandatory?: boolean | null | undefined;
533
+ }[];
534
+ };
535
+ } | {
536
+ type: "FEES";
537
+ data: {
538
+ fees: {
539
+ value: number;
540
+ name: string;
541
+ }[];
542
+ };
543
+ };
544
+ caseId: string;
545
+ weight: number;
546
+ }, {
547
+ id: string;
548
+ name: string;
549
+ payload: {
550
+ type: "EMPTY";
551
+ } | {
552
+ type: "PRICE";
553
+ data: {
554
+ value: number;
555
+ type: "PERCENTAGE" | "ABSOLUTE";
556
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
557
+ roundStep?: number | null | undefined;
558
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
559
+ };
560
+ } | {
561
+ type: "VISION";
562
+ data: {
563
+ doRemoveBackground: boolean;
564
+ doSmartCrop: boolean;
565
+ doChangeBackground: boolean;
566
+ doRotate: boolean;
567
+ doAddBorders: boolean;
568
+ shadow: boolean;
569
+ targetWidth?: number | null | undefined;
570
+ targetHeight?: number | null | undefined;
571
+ newBackgroundColor?: string | null | undefined;
572
+ newBackgroundUrl?: string | null | undefined;
573
+ rotationAngle?: number | null | undefined;
574
+ borderSize?: number | null | undefined;
575
+ borderColor?: string | null | undefined;
576
+ };
577
+ } | {
578
+ type: "TEXT";
579
+ data: {
580
+ text: string;
581
+ };
582
+ } | {
583
+ type: "ACTIONS";
584
+ data: {
585
+ actions: {
586
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
587
+ payload: {
588
+ type: "EMPTY";
589
+ } | {
590
+ type: "WAIT";
591
+ data: {
592
+ seconds: number;
593
+ };
594
+ } | {
595
+ type: "PRICE";
596
+ data: {
597
+ value: number;
598
+ type: "PERCENTAGE" | "ABSOLUTE";
599
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
600
+ roundStep?: number | null | undefined;
601
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
602
+ };
603
+ } | {
604
+ type: "TEXT";
605
+ data: {
606
+ text: string;
607
+ };
608
+ };
609
+ enabled: boolean;
610
+ mandatory?: boolean | null | undefined;
611
+ }[];
612
+ };
613
+ } | {
614
+ type: "FEES";
615
+ data: {
616
+ fees: {
617
+ value: number;
618
+ name: string;
619
+ }[];
620
+ };
621
+ };
622
+ caseId: string;
623
+ weight: number;
624
+ }>, "many">>>;
625
+ }, "strip", z.ZodTypeAny, {
626
+ id: string;
627
+ enabled: boolean;
628
+ testMode: boolean;
629
+ preferenceId: string;
630
+ abTest: boolean;
631
+ savedFiltersId?: string | null | undefined;
632
+ variants?: {
633
+ id: string;
634
+ name: string;
635
+ payload: {
636
+ type: "EMPTY";
637
+ } | {
638
+ type: "PRICE";
639
+ data: {
640
+ value: number;
641
+ type: "PERCENTAGE" | "ABSOLUTE";
642
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
643
+ roundStep?: number | null | undefined;
644
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
645
+ };
646
+ } | {
647
+ type: "VISION";
648
+ data: {
649
+ doRemoveBackground: boolean;
650
+ doSmartCrop: boolean;
651
+ doChangeBackground: boolean;
652
+ doRotate: boolean;
653
+ doAddBorders: boolean;
654
+ shadow: boolean;
655
+ targetWidth?: number | null | undefined;
656
+ targetHeight?: number | null | undefined;
657
+ newBackgroundColor?: string | null | undefined;
658
+ newBackgroundUrl?: string | null | undefined;
659
+ rotationAngle?: number | null | undefined;
660
+ borderSize?: number | null | undefined;
661
+ borderColor?: string | null | undefined;
662
+ };
663
+ } | {
664
+ type: "TEXT";
665
+ data: {
666
+ text: string;
667
+ };
668
+ } | {
669
+ type: "ACTIONS";
670
+ data: {
671
+ actions: {
672
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
673
+ payload: {
674
+ type: "EMPTY";
675
+ } | {
676
+ type: "WAIT";
677
+ data: {
678
+ seconds: number;
679
+ };
680
+ } | {
681
+ type: "PRICE";
682
+ data: {
683
+ value: number;
684
+ type: "PERCENTAGE" | "ABSOLUTE";
685
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
686
+ roundStep?: number | null | undefined;
687
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
688
+ };
689
+ } | {
690
+ type: "TEXT";
691
+ data: {
692
+ text: string;
693
+ };
694
+ };
695
+ enabled: boolean;
696
+ mandatory?: boolean | null | undefined;
697
+ }[];
698
+ };
699
+ } | {
700
+ type: "FEES";
701
+ data: {
702
+ fees: {
703
+ value: number;
704
+ name: string;
705
+ }[];
706
+ };
707
+ };
708
+ caseId: string;
709
+ weight: number;
710
+ }[] | null | undefined;
711
+ }, {
712
+ id: string;
713
+ enabled: boolean;
714
+ testMode: boolean;
715
+ preferenceId: string;
716
+ abTest: boolean;
717
+ savedFiltersId?: string | null | undefined;
718
+ variants?: {
719
+ id: string;
720
+ name: string;
721
+ payload: {
722
+ type: "EMPTY";
723
+ } | {
724
+ type: "PRICE";
725
+ data: {
726
+ value: number;
727
+ type: "PERCENTAGE" | "ABSOLUTE";
728
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
729
+ roundStep?: number | null | undefined;
730
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
731
+ };
732
+ } | {
733
+ type: "VISION";
734
+ data: {
735
+ doRemoveBackground: boolean;
736
+ doSmartCrop: boolean;
737
+ doChangeBackground: boolean;
738
+ doRotate: boolean;
739
+ doAddBorders: boolean;
740
+ shadow: boolean;
741
+ targetWidth?: number | null | undefined;
742
+ targetHeight?: number | null | undefined;
743
+ newBackgroundColor?: string | null | undefined;
744
+ newBackgroundUrl?: string | null | undefined;
745
+ rotationAngle?: number | null | undefined;
746
+ borderSize?: number | null | undefined;
747
+ borderColor?: string | null | undefined;
748
+ };
749
+ } | {
750
+ type: "TEXT";
751
+ data: {
752
+ text: string;
753
+ };
754
+ } | {
755
+ type: "ACTIONS";
756
+ data: {
757
+ actions: {
758
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
759
+ payload: {
760
+ type: "EMPTY";
761
+ } | {
762
+ type: "WAIT";
763
+ data: {
764
+ seconds: number;
765
+ };
766
+ } | {
767
+ type: "PRICE";
768
+ data: {
769
+ value: number;
770
+ type: "PERCENTAGE" | "ABSOLUTE";
771
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
772
+ roundStep?: number | null | undefined;
773
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
774
+ };
775
+ } | {
776
+ type: "TEXT";
777
+ data: {
778
+ text: string;
779
+ };
780
+ };
781
+ enabled: boolean;
782
+ mandatory?: boolean | null | undefined;
783
+ }[];
784
+ };
785
+ } | {
786
+ type: "FEES";
787
+ data: {
788
+ fees: {
789
+ value: number;
790
+ name: string;
791
+ }[];
792
+ };
793
+ };
794
+ caseId: string;
795
+ weight: number;
796
+ }[] | null | undefined;
797
+ }>, "many">>>;
798
+ } & {
799
+ children: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
800
+ id: z.ZodString;
801
+ parentPreferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
802
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
803
+ 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"]>;
804
+ enabled: z.ZodBoolean;
805
+ testMode: z.ZodBoolean;
806
+ cases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
807
+ id: z.ZodString;
808
+ preferenceId: z.ZodString;
809
+ savedFiltersId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
810
+ enabled: z.ZodBoolean;
811
+ testMode: z.ZodBoolean;
812
+ abTest: z.ZodBoolean;
813
+ variants: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
814
+ id: z.ZodString;
815
+ caseId: z.ZodString;
816
+ name: z.ZodString;
817
+ weight: z.ZodNumber;
818
+ payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
819
+ type: z.ZodLiteral<"EMPTY">;
820
+ }, "strip", z.ZodTypeAny, {
821
+ type: "EMPTY";
822
+ }, {
823
+ type: "EMPTY";
824
+ }>, z.ZodObject<{
825
+ type: z.ZodLiteral<"PRICE">;
826
+ data: z.ZodObject<{
827
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
828
+ value: z.ZodNumber;
829
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
830
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
831
+ negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
832
+ }, "strip", z.ZodTypeAny, {
833
+ value: number;
834
+ type: "PERCENTAGE" | "ABSOLUTE";
835
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
836
+ roundStep?: number | null | undefined;
837
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
838
+ }, {
839
+ value: number;
840
+ type: "PERCENTAGE" | "ABSOLUTE";
841
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
842
+ roundStep?: number | null | undefined;
843
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
844
+ }>;
845
+ }, "strip", z.ZodTypeAny, {
846
+ type: "PRICE";
847
+ data: {
848
+ value: number;
849
+ type: "PERCENTAGE" | "ABSOLUTE";
850
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
851
+ roundStep?: number | null | undefined;
852
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
853
+ };
854
+ }, {
855
+ type: "PRICE";
856
+ data: {
857
+ value: number;
858
+ type: "PERCENTAGE" | "ABSOLUTE";
859
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
860
+ roundStep?: number | null | undefined;
861
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
862
+ };
863
+ }>, z.ZodObject<{
864
+ type: z.ZodLiteral<"VISION">;
865
+ data: z.ZodObject<{
866
+ doRemoveBackground: z.ZodBoolean;
867
+ doSmartCrop: z.ZodBoolean;
868
+ doChangeBackground: z.ZodBoolean;
869
+ doRotate: z.ZodBoolean;
870
+ doAddBorders: z.ZodBoolean;
871
+ shadow: z.ZodBoolean;
872
+ targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
873
+ targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
874
+ newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
875
+ newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
876
+ rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
877
+ borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
878
+ borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
879
+ }, "strip", z.ZodTypeAny, {
880
+ doRemoveBackground: boolean;
881
+ doSmartCrop: boolean;
882
+ doChangeBackground: boolean;
883
+ doRotate: boolean;
884
+ doAddBorders: boolean;
885
+ shadow: boolean;
886
+ targetWidth?: number | null | undefined;
887
+ targetHeight?: number | null | undefined;
888
+ newBackgroundColor?: string | null | undefined;
889
+ newBackgroundUrl?: string | null | undefined;
890
+ rotationAngle?: number | null | undefined;
891
+ borderSize?: number | null | undefined;
892
+ borderColor?: string | null | undefined;
893
+ }, {
894
+ doRemoveBackground: boolean;
895
+ doSmartCrop: boolean;
896
+ doChangeBackground: boolean;
897
+ doRotate: boolean;
898
+ doAddBorders: boolean;
899
+ shadow: boolean;
900
+ targetWidth?: number | null | undefined;
901
+ targetHeight?: number | null | undefined;
902
+ newBackgroundColor?: string | null | undefined;
903
+ newBackgroundUrl?: string | null | undefined;
904
+ rotationAngle?: number | null | undefined;
905
+ borderSize?: number | null | undefined;
906
+ borderColor?: string | null | undefined;
907
+ }>;
908
+ }, "strip", z.ZodTypeAny, {
909
+ type: "VISION";
910
+ data: {
911
+ doRemoveBackground: boolean;
912
+ doSmartCrop: boolean;
913
+ doChangeBackground: boolean;
914
+ doRotate: boolean;
915
+ doAddBorders: boolean;
916
+ shadow: boolean;
917
+ targetWidth?: number | null | undefined;
918
+ targetHeight?: number | null | undefined;
919
+ newBackgroundColor?: string | null | undefined;
920
+ newBackgroundUrl?: string | null | undefined;
921
+ rotationAngle?: number | null | undefined;
922
+ borderSize?: number | null | undefined;
923
+ borderColor?: string | null | undefined;
924
+ };
925
+ }, {
926
+ type: "VISION";
927
+ data: {
928
+ doRemoveBackground: boolean;
929
+ doSmartCrop: boolean;
930
+ doChangeBackground: boolean;
931
+ doRotate: boolean;
932
+ doAddBorders: boolean;
933
+ shadow: boolean;
934
+ targetWidth?: number | null | undefined;
935
+ targetHeight?: number | null | undefined;
936
+ newBackgroundColor?: string | null | undefined;
937
+ newBackgroundUrl?: string | null | undefined;
938
+ rotationAngle?: number | null | undefined;
939
+ borderSize?: number | null | undefined;
940
+ borderColor?: string | null | undefined;
941
+ };
942
+ }>, z.ZodObject<{
943
+ type: z.ZodLiteral<"TEXT">;
944
+ data: z.ZodObject<{
945
+ text: z.ZodString;
946
+ }, "strip", z.ZodTypeAny, {
947
+ text: string;
948
+ }, {
949
+ text: string;
950
+ }>;
951
+ }, "strip", z.ZodTypeAny, {
952
+ type: "TEXT";
953
+ data: {
954
+ text: string;
955
+ };
956
+ }, {
957
+ type: "TEXT";
958
+ data: {
959
+ text: string;
960
+ };
961
+ }>, z.ZodObject<{
962
+ type: z.ZodLiteral<"ACTIONS">;
963
+ data: z.ZodObject<{
964
+ actions: z.ZodArray<z.ZodObject<{
965
+ type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO", "OFFER_MANUAL"]>;
966
+ enabled: z.ZodBoolean;
967
+ payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
968
+ type: z.ZodLiteral<"EMPTY">;
969
+ }, "strip", z.ZodTypeAny, {
970
+ type: "EMPTY";
971
+ }, {
972
+ type: "EMPTY";
973
+ }>, z.ZodObject<{
974
+ type: z.ZodLiteral<"WAIT">;
975
+ data: z.ZodObject<{
976
+ seconds: z.ZodNumber;
977
+ }, "strip", z.ZodTypeAny, {
978
+ seconds: number;
979
+ }, {
980
+ seconds: number;
981
+ }>;
982
+ }, "strip", z.ZodTypeAny, {
983
+ type: "WAIT";
984
+ data: {
985
+ seconds: number;
986
+ };
987
+ }, {
988
+ type: "WAIT";
989
+ data: {
990
+ seconds: number;
991
+ };
992
+ }>, z.ZodObject<{
993
+ type: z.ZodLiteral<"PRICE">;
994
+ data: z.ZodObject<{
995
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
996
+ value: z.ZodNumber;
997
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
998
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
999
+ negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
1000
+ }, "strip", z.ZodTypeAny, {
1001
+ value: number;
1002
+ type: "PERCENTAGE" | "ABSOLUTE";
1003
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1004
+ roundStep?: number | null | undefined;
1005
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1006
+ }, {
1007
+ value: number;
1008
+ type: "PERCENTAGE" | "ABSOLUTE";
1009
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1010
+ roundStep?: number | null | undefined;
1011
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1012
+ }>;
1013
+ }, "strip", z.ZodTypeAny, {
1014
+ type: "PRICE";
1015
+ data: {
1016
+ value: number;
1017
+ type: "PERCENTAGE" | "ABSOLUTE";
1018
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1019
+ roundStep?: number | null | undefined;
1020
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1021
+ };
1022
+ }, {
1023
+ type: "PRICE";
1024
+ data: {
1025
+ value: number;
1026
+ type: "PERCENTAGE" | "ABSOLUTE";
1027
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1028
+ roundStep?: number | null | undefined;
1029
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1030
+ };
1031
+ }>, z.ZodObject<{
1032
+ type: z.ZodLiteral<"TEXT">;
1033
+ data: z.ZodObject<{
1034
+ text: z.ZodString;
1035
+ }, "strip", z.ZodTypeAny, {
1036
+ text: string;
1037
+ }, {
1038
+ text: string;
1039
+ }>;
1040
+ }, "strip", z.ZodTypeAny, {
1041
+ type: "TEXT";
1042
+ data: {
1043
+ text: string;
1044
+ };
1045
+ }, {
1046
+ type: "TEXT";
1047
+ data: {
1048
+ text: string;
1049
+ };
1050
+ }>]>;
1051
+ mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1052
+ }, "strip", z.ZodTypeAny, {
1053
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1054
+ payload: {
1055
+ type: "EMPTY";
1056
+ } | {
1057
+ type: "WAIT";
1058
+ data: {
1059
+ seconds: number;
1060
+ };
1061
+ } | {
1062
+ type: "PRICE";
1063
+ data: {
1064
+ value: number;
1065
+ type: "PERCENTAGE" | "ABSOLUTE";
1066
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1067
+ roundStep?: number | null | undefined;
1068
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1069
+ };
1070
+ } | {
1071
+ type: "TEXT";
1072
+ data: {
1073
+ text: string;
1074
+ };
1075
+ };
1076
+ enabled: boolean;
1077
+ mandatory?: boolean | null | undefined;
1078
+ }, {
1079
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1080
+ payload: {
1081
+ type: "EMPTY";
1082
+ } | {
1083
+ type: "WAIT";
1084
+ data: {
1085
+ seconds: number;
1086
+ };
1087
+ } | {
1088
+ type: "PRICE";
1089
+ data: {
1090
+ value: number;
1091
+ type: "PERCENTAGE" | "ABSOLUTE";
1092
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1093
+ roundStep?: number | null | undefined;
1094
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1095
+ };
1096
+ } | {
1097
+ type: "TEXT";
1098
+ data: {
1099
+ text: string;
1100
+ };
1101
+ };
1102
+ enabled: boolean;
1103
+ mandatory?: boolean | null | undefined;
1104
+ }>, "many">;
1105
+ }, "strip", z.ZodTypeAny, {
1106
+ actions: {
1107
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1108
+ payload: {
1109
+ type: "EMPTY";
1110
+ } | {
1111
+ type: "WAIT";
1112
+ data: {
1113
+ seconds: number;
1114
+ };
1115
+ } | {
1116
+ type: "PRICE";
1117
+ data: {
1118
+ value: number;
1119
+ type: "PERCENTAGE" | "ABSOLUTE";
1120
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1121
+ roundStep?: number | null | undefined;
1122
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1123
+ };
1124
+ } | {
1125
+ type: "TEXT";
1126
+ data: {
1127
+ text: string;
1128
+ };
1129
+ };
1130
+ enabled: boolean;
1131
+ mandatory?: boolean | null | undefined;
1132
+ }[];
1133
+ }, {
1134
+ actions: {
1135
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1136
+ payload: {
1137
+ type: "EMPTY";
1138
+ } | {
1139
+ type: "WAIT";
1140
+ data: {
1141
+ seconds: number;
1142
+ };
1143
+ } | {
1144
+ type: "PRICE";
1145
+ data: {
1146
+ value: number;
1147
+ type: "PERCENTAGE" | "ABSOLUTE";
1148
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1149
+ roundStep?: number | null | undefined;
1150
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1151
+ };
1152
+ } | {
1153
+ type: "TEXT";
1154
+ data: {
1155
+ text: string;
1156
+ };
1157
+ };
1158
+ enabled: boolean;
1159
+ mandatory?: boolean | null | undefined;
1160
+ }[];
1161
+ }>;
1162
+ }, "strip", z.ZodTypeAny, {
1163
+ type: "ACTIONS";
1164
+ data: {
1165
+ actions: {
1166
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1167
+ payload: {
1168
+ type: "EMPTY";
1169
+ } | {
1170
+ type: "WAIT";
1171
+ data: {
1172
+ seconds: number;
1173
+ };
1174
+ } | {
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: "TEXT";
1185
+ data: {
1186
+ text: string;
1187
+ };
1188
+ };
1189
+ enabled: boolean;
1190
+ mandatory?: boolean | null | undefined;
1191
+ }[];
1192
+ };
1193
+ }, {
1194
+ type: "ACTIONS";
1195
+ data: {
1196
+ actions: {
1197
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1198
+ payload: {
1199
+ type: "EMPTY";
1200
+ } | {
1201
+ type: "WAIT";
1202
+ data: {
1203
+ seconds: number;
1204
+ };
1205
+ } | {
1206
+ type: "PRICE";
1207
+ data: {
1208
+ value: number;
1209
+ type: "PERCENTAGE" | "ABSOLUTE";
1210
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1211
+ roundStep?: number | null | undefined;
1212
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1213
+ };
1214
+ } | {
1215
+ type: "TEXT";
1216
+ data: {
1217
+ text: string;
1218
+ };
1219
+ };
1220
+ enabled: boolean;
1221
+ mandatory?: boolean | null | undefined;
1222
+ }[];
1223
+ };
1224
+ }>, z.ZodObject<{
1225
+ type: z.ZodLiteral<"FEES">;
1226
+ data: z.ZodObject<{
1227
+ fees: z.ZodArray<z.ZodObject<{
1228
+ name: z.ZodString;
1229
+ value: z.ZodNumber;
1230
+ }, "strip", z.ZodTypeAny, {
1231
+ value: number;
1232
+ name: string;
1233
+ }, {
1234
+ value: number;
1235
+ name: string;
1236
+ }>, "many">;
1237
+ }, "strip", z.ZodTypeAny, {
1238
+ fees: {
1239
+ value: number;
1240
+ name: string;
1241
+ }[];
1242
+ }, {
1243
+ fees: {
1244
+ value: number;
1245
+ name: string;
1246
+ }[];
1247
+ }>;
1248
+ }, "strip", z.ZodTypeAny, {
1249
+ type: "FEES";
1250
+ data: {
1251
+ fees: {
1252
+ value: number;
1253
+ name: string;
1254
+ }[];
1255
+ };
1256
+ }, {
1257
+ type: "FEES";
1258
+ data: {
1259
+ fees: {
1260
+ value: number;
1261
+ name: string;
1262
+ }[];
1263
+ };
1264
+ }>]>;
1265
+ }, "strip", z.ZodTypeAny, {
1266
+ id: string;
1267
+ name: string;
1268
+ payload: {
1269
+ type: "EMPTY";
1270
+ } | {
1271
+ type: "PRICE";
1272
+ data: {
1273
+ value: number;
1274
+ type: "PERCENTAGE" | "ABSOLUTE";
1275
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1276
+ roundStep?: number | null | undefined;
1277
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1278
+ };
1279
+ } | {
1280
+ type: "VISION";
1281
+ data: {
1282
+ doRemoveBackground: boolean;
1283
+ doSmartCrop: boolean;
1284
+ doChangeBackground: boolean;
1285
+ doRotate: boolean;
1286
+ doAddBorders: boolean;
1287
+ shadow: boolean;
1288
+ targetWidth?: number | null | undefined;
1289
+ targetHeight?: number | null | undefined;
1290
+ newBackgroundColor?: string | null | undefined;
1291
+ newBackgroundUrl?: string | null | undefined;
1292
+ rotationAngle?: number | null | undefined;
1293
+ borderSize?: number | null | undefined;
1294
+ borderColor?: string | null | undefined;
1295
+ };
1296
+ } | {
1297
+ type: "TEXT";
1298
+ data: {
1299
+ text: string;
1300
+ };
1301
+ } | {
1302
+ type: "ACTIONS";
1303
+ data: {
1304
+ actions: {
1305
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1306
+ payload: {
1307
+ type: "EMPTY";
1308
+ } | {
1309
+ type: "WAIT";
1310
+ data: {
1311
+ seconds: number;
1312
+ };
1313
+ } | {
1314
+ type: "PRICE";
1315
+ data: {
1316
+ value: number;
1317
+ type: "PERCENTAGE" | "ABSOLUTE";
1318
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1319
+ roundStep?: number | null | undefined;
1320
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1321
+ };
1322
+ } | {
1323
+ type: "TEXT";
1324
+ data: {
1325
+ text: string;
1326
+ };
1327
+ };
1328
+ enabled: boolean;
1329
+ mandatory?: boolean | null | undefined;
1330
+ }[];
1331
+ };
1332
+ } | {
1333
+ type: "FEES";
1334
+ data: {
1335
+ fees: {
1336
+ value: number;
1337
+ name: string;
1338
+ }[];
1339
+ };
1340
+ };
1341
+ caseId: string;
1342
+ weight: number;
1343
+ }, {
1344
+ id: string;
1345
+ name: string;
1346
+ payload: {
1347
+ type: "EMPTY";
1348
+ } | {
1349
+ type: "PRICE";
1350
+ data: {
1351
+ value: number;
1352
+ type: "PERCENTAGE" | "ABSOLUTE";
1353
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1354
+ roundStep?: number | null | undefined;
1355
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1356
+ };
1357
+ } | {
1358
+ type: "VISION";
1359
+ data: {
1360
+ doRemoveBackground: boolean;
1361
+ doSmartCrop: boolean;
1362
+ doChangeBackground: boolean;
1363
+ doRotate: boolean;
1364
+ doAddBorders: boolean;
1365
+ shadow: boolean;
1366
+ targetWidth?: number | null | undefined;
1367
+ targetHeight?: number | null | undefined;
1368
+ newBackgroundColor?: string | null | undefined;
1369
+ newBackgroundUrl?: string | null | undefined;
1370
+ rotationAngle?: number | null | undefined;
1371
+ borderSize?: number | null | undefined;
1372
+ borderColor?: string | null | undefined;
1373
+ };
1374
+ } | {
1375
+ type: "TEXT";
1376
+ data: {
1377
+ text: string;
1378
+ };
1379
+ } | {
1380
+ type: "ACTIONS";
1381
+ data: {
1382
+ actions: {
1383
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1384
+ payload: {
1385
+ type: "EMPTY";
1386
+ } | {
1387
+ type: "WAIT";
1388
+ data: {
1389
+ seconds: number;
1390
+ };
1391
+ } | {
1392
+ type: "PRICE";
1393
+ data: {
1394
+ value: number;
1395
+ type: "PERCENTAGE" | "ABSOLUTE";
1396
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1397
+ roundStep?: number | null | undefined;
1398
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1399
+ };
1400
+ } | {
1401
+ type: "TEXT";
1402
+ data: {
1403
+ text: string;
1404
+ };
1405
+ };
1406
+ enabled: boolean;
1407
+ mandatory?: boolean | null | undefined;
1408
+ }[];
1409
+ };
1410
+ } | {
1411
+ type: "FEES";
1412
+ data: {
1413
+ fees: {
1414
+ value: number;
1415
+ name: string;
1416
+ }[];
1417
+ };
1418
+ };
1419
+ caseId: string;
1420
+ weight: number;
1421
+ }>, "many">>>;
1422
+ }, "strip", z.ZodTypeAny, {
1423
+ id: string;
1424
+ enabled: boolean;
1425
+ testMode: boolean;
1426
+ preferenceId: string;
1427
+ abTest: boolean;
1428
+ savedFiltersId?: string | null | undefined;
1429
+ variants?: {
1430
+ id: string;
1431
+ name: string;
1432
+ payload: {
1433
+ type: "EMPTY";
1434
+ } | {
1435
+ type: "PRICE";
1436
+ data: {
1437
+ value: number;
1438
+ type: "PERCENTAGE" | "ABSOLUTE";
1439
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1440
+ roundStep?: number | null | undefined;
1441
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1442
+ };
1443
+ } | {
1444
+ type: "VISION";
1445
+ data: {
1446
+ doRemoveBackground: boolean;
1447
+ doSmartCrop: boolean;
1448
+ doChangeBackground: boolean;
1449
+ doRotate: boolean;
1450
+ doAddBorders: boolean;
1451
+ shadow: boolean;
1452
+ targetWidth?: number | null | undefined;
1453
+ targetHeight?: number | null | undefined;
1454
+ newBackgroundColor?: string | null | undefined;
1455
+ newBackgroundUrl?: string | null | undefined;
1456
+ rotationAngle?: number | null | undefined;
1457
+ borderSize?: number | null | undefined;
1458
+ borderColor?: string | null | undefined;
1459
+ };
1460
+ } | {
1461
+ type: "TEXT";
1462
+ data: {
1463
+ text: string;
1464
+ };
1465
+ } | {
1466
+ type: "ACTIONS";
1467
+ data: {
1468
+ actions: {
1469
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1470
+ payload: {
1471
+ type: "EMPTY";
1472
+ } | {
1473
+ type: "WAIT";
1474
+ data: {
1475
+ seconds: number;
1476
+ };
1477
+ } | {
1478
+ type: "PRICE";
1479
+ data: {
1480
+ value: number;
1481
+ type: "PERCENTAGE" | "ABSOLUTE";
1482
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1483
+ roundStep?: number | null | undefined;
1484
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1485
+ };
1486
+ } | {
1487
+ type: "TEXT";
1488
+ data: {
1489
+ text: string;
1490
+ };
1491
+ };
1492
+ enabled: boolean;
1493
+ mandatory?: boolean | null | undefined;
1494
+ }[];
1495
+ };
1496
+ } | {
1497
+ type: "FEES";
1498
+ data: {
1499
+ fees: {
1500
+ value: number;
1501
+ name: string;
1502
+ }[];
1503
+ };
1504
+ };
1505
+ caseId: string;
1506
+ weight: number;
1507
+ }[] | null | undefined;
1508
+ }, {
1509
+ id: string;
1510
+ enabled: boolean;
1511
+ testMode: boolean;
1512
+ preferenceId: string;
1513
+ abTest: boolean;
1514
+ savedFiltersId?: string | null | undefined;
1515
+ variants?: {
1516
+ id: string;
1517
+ name: string;
1518
+ payload: {
1519
+ type: "EMPTY";
1520
+ } | {
1521
+ type: "PRICE";
1522
+ data: {
1523
+ value: number;
1524
+ type: "PERCENTAGE" | "ABSOLUTE";
1525
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1526
+ roundStep?: number | null | undefined;
1527
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1528
+ };
1529
+ } | {
1530
+ type: "VISION";
1531
+ data: {
1532
+ doRemoveBackground: boolean;
1533
+ doSmartCrop: boolean;
1534
+ doChangeBackground: boolean;
1535
+ doRotate: boolean;
1536
+ doAddBorders: boolean;
1537
+ shadow: boolean;
1538
+ targetWidth?: number | null | undefined;
1539
+ targetHeight?: number | null | undefined;
1540
+ newBackgroundColor?: string | null | undefined;
1541
+ newBackgroundUrl?: string | null | undefined;
1542
+ rotationAngle?: number | null | undefined;
1543
+ borderSize?: number | null | undefined;
1544
+ borderColor?: string | null | undefined;
1545
+ };
1546
+ } | {
1547
+ type: "TEXT";
1548
+ data: {
1549
+ text: string;
1550
+ };
1551
+ } | {
1552
+ type: "ACTIONS";
1553
+ data: {
1554
+ actions: {
1555
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1556
+ payload: {
1557
+ type: "EMPTY";
1558
+ } | {
1559
+ type: "WAIT";
1560
+ data: {
1561
+ seconds: number;
1562
+ };
1563
+ } | {
1564
+ type: "PRICE";
1565
+ data: {
1566
+ value: number;
1567
+ type: "PERCENTAGE" | "ABSOLUTE";
1568
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1569
+ roundStep?: number | null | undefined;
1570
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1571
+ };
1572
+ } | {
1573
+ type: "TEXT";
1574
+ data: {
1575
+ text: string;
1576
+ };
1577
+ };
1578
+ enabled: boolean;
1579
+ mandatory?: boolean | null | undefined;
1580
+ }[];
1581
+ };
1582
+ } | {
1583
+ type: "FEES";
1584
+ data: {
1585
+ fees: {
1586
+ value: number;
1587
+ name: string;
1588
+ }[];
1589
+ };
1590
+ };
1591
+ caseId: string;
1592
+ weight: number;
1593
+ }[] | null | undefined;
1594
+ }>, "many">>>;
1595
+ }, "strip", z.ZodTypeAny, {
1596
+ 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";
1597
+ id: string;
1598
+ userId: string | number;
1599
+ enabled: boolean;
1600
+ testMode: boolean;
1601
+ parentPreferenceId?: string | null | undefined;
1602
+ cases?: {
1603
+ id: string;
1604
+ enabled: boolean;
1605
+ testMode: boolean;
1606
+ preferenceId: string;
1607
+ abTest: boolean;
1608
+ savedFiltersId?: string | null | undefined;
1609
+ variants?: {
1610
+ id: string;
1611
+ name: string;
1612
+ payload: {
1613
+ type: "EMPTY";
1614
+ } | {
1615
+ type: "PRICE";
1616
+ data: {
1617
+ value: number;
1618
+ type: "PERCENTAGE" | "ABSOLUTE";
1619
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1620
+ roundStep?: number | null | undefined;
1621
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1622
+ };
1623
+ } | {
1624
+ type: "VISION";
1625
+ data: {
1626
+ doRemoveBackground: boolean;
1627
+ doSmartCrop: boolean;
1628
+ doChangeBackground: boolean;
1629
+ doRotate: boolean;
1630
+ doAddBorders: boolean;
1631
+ shadow: boolean;
1632
+ targetWidth?: number | null | undefined;
1633
+ targetHeight?: number | null | undefined;
1634
+ newBackgroundColor?: string | null | undefined;
1635
+ newBackgroundUrl?: string | null | undefined;
1636
+ rotationAngle?: number | null | undefined;
1637
+ borderSize?: number | null | undefined;
1638
+ borderColor?: string | null | undefined;
1639
+ };
1640
+ } | {
1641
+ type: "TEXT";
1642
+ data: {
1643
+ text: string;
1644
+ };
1645
+ } | {
1646
+ type: "ACTIONS";
1647
+ data: {
1648
+ actions: {
1649
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1650
+ payload: {
1651
+ type: "EMPTY";
1652
+ } | {
1653
+ type: "WAIT";
1654
+ data: {
1655
+ seconds: number;
1656
+ };
1657
+ } | {
1658
+ type: "PRICE";
1659
+ data: {
1660
+ value: number;
1661
+ type: "PERCENTAGE" | "ABSOLUTE";
1662
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1663
+ roundStep?: number | null | undefined;
1664
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1665
+ };
1666
+ } | {
1667
+ type: "TEXT";
1668
+ data: {
1669
+ text: string;
1670
+ };
1671
+ };
1672
+ enabled: boolean;
1673
+ mandatory?: boolean | null | undefined;
1674
+ }[];
1675
+ };
1676
+ } | {
1677
+ type: "FEES";
1678
+ data: {
1679
+ fees: {
1680
+ value: number;
1681
+ name: string;
1682
+ }[];
1683
+ };
1684
+ };
1685
+ caseId: string;
1686
+ weight: number;
1687
+ }[] | null | undefined;
1688
+ }[] | null | undefined;
1689
+ }, {
1690
+ 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";
1691
+ id: string;
1692
+ userId: string | number;
1693
+ enabled: boolean;
1694
+ testMode: boolean;
1695
+ parentPreferenceId?: string | null | undefined;
1696
+ cases?: {
1697
+ id: string;
1698
+ enabled: boolean;
1699
+ testMode: boolean;
1700
+ preferenceId: string;
1701
+ abTest: boolean;
1702
+ savedFiltersId?: string | null | undefined;
1703
+ variants?: {
1704
+ id: string;
1705
+ name: string;
1706
+ payload: {
1707
+ type: "EMPTY";
1708
+ } | {
1709
+ type: "PRICE";
1710
+ data: {
1711
+ value: number;
1712
+ type: "PERCENTAGE" | "ABSOLUTE";
1713
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1714
+ roundStep?: number | null | undefined;
1715
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1716
+ };
1717
+ } | {
1718
+ type: "VISION";
1719
+ data: {
1720
+ doRemoveBackground: boolean;
1721
+ doSmartCrop: boolean;
1722
+ doChangeBackground: boolean;
1723
+ doRotate: boolean;
1724
+ doAddBorders: boolean;
1725
+ shadow: boolean;
1726
+ targetWidth?: number | null | undefined;
1727
+ targetHeight?: number | null | undefined;
1728
+ newBackgroundColor?: string | null | undefined;
1729
+ newBackgroundUrl?: string | null | undefined;
1730
+ rotationAngle?: number | null | undefined;
1731
+ borderSize?: number | null | undefined;
1732
+ borderColor?: string | null | undefined;
1733
+ };
1734
+ } | {
1735
+ type: "TEXT";
1736
+ data: {
1737
+ text: string;
1738
+ };
1739
+ } | {
1740
+ type: "ACTIONS";
1741
+ data: {
1742
+ actions: {
1743
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1744
+ payload: {
1745
+ type: "EMPTY";
1746
+ } | {
1747
+ type: "WAIT";
1748
+ data: {
1749
+ seconds: number;
1750
+ };
1751
+ } | {
1752
+ type: "PRICE";
1753
+ data: {
1754
+ value: number;
1755
+ type: "PERCENTAGE" | "ABSOLUTE";
1756
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1757
+ roundStep?: number | null | undefined;
1758
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1759
+ };
1760
+ } | {
1761
+ type: "TEXT";
1762
+ data: {
1763
+ text: string;
1764
+ };
1765
+ };
1766
+ enabled: boolean;
1767
+ mandatory?: boolean | null | undefined;
1768
+ }[];
1769
+ };
1770
+ } | {
1771
+ type: "FEES";
1772
+ data: {
1773
+ fees: {
1774
+ value: number;
1775
+ name: string;
1776
+ }[];
1777
+ };
1778
+ };
1779
+ caseId: string;
1780
+ weight: number;
1781
+ }[] | null | undefined;
1782
+ }[] | null | undefined;
1783
+ }>, "many">>>;
1784
+ }, "strip", z.ZodTypeAny, {
1785
+ 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";
1786
+ id: string;
1787
+ userId: string | number;
1788
+ enabled: boolean;
1789
+ testMode: boolean;
1790
+ parentPreferenceId?: string | null | undefined;
1791
+ cases?: {
1792
+ id: string;
1793
+ enabled: boolean;
1794
+ testMode: boolean;
1795
+ preferenceId: string;
1796
+ abTest: boolean;
1797
+ savedFiltersId?: string | null | undefined;
1798
+ variants?: {
1799
+ id: string;
1800
+ name: string;
1801
+ payload: {
1802
+ type: "EMPTY";
1803
+ } | {
1804
+ type: "PRICE";
1805
+ data: {
1806
+ value: number;
1807
+ type: "PERCENTAGE" | "ABSOLUTE";
1808
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1809
+ roundStep?: number | null | undefined;
1810
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1811
+ };
1812
+ } | {
1813
+ type: "VISION";
1814
+ data: {
1815
+ doRemoveBackground: boolean;
1816
+ doSmartCrop: boolean;
1817
+ doChangeBackground: boolean;
1818
+ doRotate: boolean;
1819
+ doAddBorders: boolean;
1820
+ shadow: boolean;
1821
+ targetWidth?: number | null | undefined;
1822
+ targetHeight?: number | null | undefined;
1823
+ newBackgroundColor?: string | null | undefined;
1824
+ newBackgroundUrl?: string | null | undefined;
1825
+ rotationAngle?: number | null | undefined;
1826
+ borderSize?: number | null | undefined;
1827
+ borderColor?: string | null | undefined;
1828
+ };
1829
+ } | {
1830
+ type: "TEXT";
1831
+ data: {
1832
+ text: string;
1833
+ };
1834
+ } | {
1835
+ type: "ACTIONS";
1836
+ data: {
1837
+ actions: {
1838
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1839
+ payload: {
1840
+ type: "EMPTY";
1841
+ } | {
1842
+ type: "WAIT";
1843
+ data: {
1844
+ seconds: number;
1845
+ };
1846
+ } | {
1847
+ type: "PRICE";
1848
+ data: {
1849
+ value: number;
1850
+ type: "PERCENTAGE" | "ABSOLUTE";
1851
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1852
+ roundStep?: number | null | undefined;
1853
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1854
+ };
1855
+ } | {
1856
+ type: "TEXT";
1857
+ data: {
1858
+ text: string;
1859
+ };
1860
+ };
1861
+ enabled: boolean;
1862
+ mandatory?: boolean | null | undefined;
1863
+ }[];
1864
+ };
1865
+ } | {
1866
+ type: "FEES";
1867
+ data: {
1868
+ fees: {
1869
+ value: number;
1870
+ name: string;
1871
+ }[];
1872
+ };
1873
+ };
1874
+ caseId: string;
1875
+ weight: number;
1876
+ }[] | null | undefined;
1877
+ }[] | null | undefined;
1878
+ children?: {
1879
+ 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";
1880
+ id: string;
1881
+ userId: string | number;
1882
+ enabled: boolean;
1883
+ testMode: boolean;
1884
+ parentPreferenceId?: string | null | undefined;
1885
+ cases?: {
1886
+ id: string;
1887
+ enabled: boolean;
1888
+ testMode: boolean;
1889
+ preferenceId: string;
1890
+ abTest: boolean;
1891
+ savedFiltersId?: string | null | undefined;
1892
+ variants?: {
1893
+ id: string;
1894
+ name: string;
1895
+ payload: {
1896
+ type: "EMPTY";
1897
+ } | {
1898
+ type: "PRICE";
1899
+ data: {
1900
+ value: number;
1901
+ type: "PERCENTAGE" | "ABSOLUTE";
1902
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1903
+ roundStep?: number | null | undefined;
1904
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1905
+ };
1906
+ } | {
1907
+ type: "VISION";
1908
+ data: {
1909
+ doRemoveBackground: boolean;
1910
+ doSmartCrop: boolean;
1911
+ doChangeBackground: boolean;
1912
+ doRotate: boolean;
1913
+ doAddBorders: boolean;
1914
+ shadow: boolean;
1915
+ targetWidth?: number | null | undefined;
1916
+ targetHeight?: number | null | undefined;
1917
+ newBackgroundColor?: string | null | undefined;
1918
+ newBackgroundUrl?: string | null | undefined;
1919
+ rotationAngle?: number | null | undefined;
1920
+ borderSize?: number | null | undefined;
1921
+ borderColor?: string | null | undefined;
1922
+ };
1923
+ } | {
1924
+ type: "TEXT";
1925
+ data: {
1926
+ text: string;
1927
+ };
1928
+ } | {
1929
+ type: "ACTIONS";
1930
+ data: {
1931
+ actions: {
1932
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1933
+ payload: {
1934
+ type: "EMPTY";
1935
+ } | {
1936
+ type: "WAIT";
1937
+ data: {
1938
+ seconds: number;
1939
+ };
1940
+ } | {
1941
+ type: "PRICE";
1942
+ data: {
1943
+ value: number;
1944
+ type: "PERCENTAGE" | "ABSOLUTE";
1945
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1946
+ roundStep?: number | null | undefined;
1947
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1948
+ };
1949
+ } | {
1950
+ type: "TEXT";
1951
+ data: {
1952
+ text: string;
1953
+ };
1954
+ };
1955
+ enabled: boolean;
1956
+ mandatory?: boolean | null | undefined;
1957
+ }[];
1958
+ };
1959
+ } | {
1960
+ type: "FEES";
1961
+ data: {
1962
+ fees: {
1963
+ value: number;
1964
+ name: string;
1965
+ }[];
1966
+ };
1967
+ };
1968
+ caseId: string;
1969
+ weight: number;
1970
+ }[] | null | undefined;
1971
+ }[] | null | undefined;
1972
+ }[] | null | undefined;
1973
+ }, {
1974
+ 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";
1975
+ id: string;
1976
+ userId: string | number;
1977
+ enabled: boolean;
1978
+ testMode: boolean;
1979
+ parentPreferenceId?: string | null | undefined;
1980
+ cases?: {
1981
+ id: string;
1982
+ enabled: boolean;
1983
+ testMode: boolean;
1984
+ preferenceId: string;
1985
+ abTest: boolean;
1986
+ savedFiltersId?: string | null | undefined;
1987
+ variants?: {
1988
+ id: string;
1989
+ name: string;
1990
+ payload: {
1991
+ type: "EMPTY";
1992
+ } | {
1993
+ type: "PRICE";
1994
+ data: {
1995
+ value: number;
1996
+ type: "PERCENTAGE" | "ABSOLUTE";
1997
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1998
+ roundStep?: number | null | undefined;
1999
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2000
+ };
2001
+ } | {
2002
+ type: "VISION";
2003
+ data: {
2004
+ doRemoveBackground: boolean;
2005
+ doSmartCrop: boolean;
2006
+ doChangeBackground: boolean;
2007
+ doRotate: boolean;
2008
+ doAddBorders: boolean;
2009
+ shadow: boolean;
2010
+ targetWidth?: number | null | undefined;
2011
+ targetHeight?: number | null | undefined;
2012
+ newBackgroundColor?: string | null | undefined;
2013
+ newBackgroundUrl?: string | null | undefined;
2014
+ rotationAngle?: number | null | undefined;
2015
+ borderSize?: number | null | undefined;
2016
+ borderColor?: string | null | undefined;
2017
+ };
2018
+ } | {
2019
+ type: "TEXT";
2020
+ data: {
2021
+ text: string;
2022
+ };
2023
+ } | {
2024
+ type: "ACTIONS";
2025
+ data: {
2026
+ actions: {
2027
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2028
+ payload: {
2029
+ type: "EMPTY";
2030
+ } | {
2031
+ type: "WAIT";
2032
+ data: {
2033
+ seconds: number;
2034
+ };
2035
+ } | {
2036
+ type: "PRICE";
2037
+ data: {
2038
+ value: number;
2039
+ type: "PERCENTAGE" | "ABSOLUTE";
2040
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2041
+ roundStep?: number | null | undefined;
2042
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2043
+ };
2044
+ } | {
2045
+ type: "TEXT";
2046
+ data: {
2047
+ text: string;
2048
+ };
2049
+ };
2050
+ enabled: boolean;
2051
+ mandatory?: boolean | null | undefined;
2052
+ }[];
2053
+ };
2054
+ } | {
2055
+ type: "FEES";
2056
+ data: {
2057
+ fees: {
2058
+ value: number;
2059
+ name: string;
2060
+ }[];
2061
+ };
2062
+ };
2063
+ caseId: string;
2064
+ weight: number;
2065
+ }[] | null | undefined;
2066
+ }[] | null | undefined;
2067
+ children?: {
2068
+ 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";
2069
+ id: string;
2070
+ userId: string | number;
2071
+ enabled: boolean;
2072
+ testMode: boolean;
2073
+ parentPreferenceId?: string | null | undefined;
2074
+ cases?: {
2075
+ id: string;
2076
+ enabled: boolean;
2077
+ testMode: boolean;
2078
+ preferenceId: string;
2079
+ abTest: boolean;
2080
+ savedFiltersId?: string | null | undefined;
2081
+ variants?: {
2082
+ id: string;
2083
+ name: string;
2084
+ payload: {
2085
+ type: "EMPTY";
2086
+ } | {
2087
+ type: "PRICE";
2088
+ data: {
2089
+ value: number;
2090
+ type: "PERCENTAGE" | "ABSOLUTE";
2091
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2092
+ roundStep?: number | null | undefined;
2093
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2094
+ };
2095
+ } | {
2096
+ type: "VISION";
2097
+ data: {
2098
+ doRemoveBackground: boolean;
2099
+ doSmartCrop: boolean;
2100
+ doChangeBackground: boolean;
2101
+ doRotate: boolean;
2102
+ doAddBorders: boolean;
2103
+ shadow: boolean;
2104
+ targetWidth?: number | null | undefined;
2105
+ targetHeight?: number | null | undefined;
2106
+ newBackgroundColor?: string | null | undefined;
2107
+ newBackgroundUrl?: string | null | undefined;
2108
+ rotationAngle?: number | null | undefined;
2109
+ borderSize?: number | null | undefined;
2110
+ borderColor?: string | null | undefined;
2111
+ };
2112
+ } | {
2113
+ type: "TEXT";
2114
+ data: {
2115
+ text: string;
2116
+ };
2117
+ } | {
2118
+ type: "ACTIONS";
2119
+ data: {
2120
+ actions: {
2121
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2122
+ payload: {
2123
+ type: "EMPTY";
2124
+ } | {
2125
+ type: "WAIT";
2126
+ data: {
2127
+ seconds: number;
2128
+ };
2129
+ } | {
2130
+ type: "PRICE";
2131
+ data: {
2132
+ value: number;
2133
+ type: "PERCENTAGE" | "ABSOLUTE";
2134
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2135
+ roundStep?: number | null | undefined;
2136
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2137
+ };
2138
+ } | {
2139
+ type: "TEXT";
2140
+ data: {
2141
+ text: string;
2142
+ };
2143
+ };
2144
+ enabled: boolean;
2145
+ mandatory?: boolean | null | undefined;
2146
+ }[];
2147
+ };
2148
+ } | {
2149
+ type: "FEES";
2150
+ data: {
2151
+ fees: {
2152
+ value: number;
2153
+ name: string;
2154
+ }[];
2155
+ };
2156
+ };
2157
+ caseId: string;
2158
+ weight: number;
2159
+ }[] | null | undefined;
2160
+ }[] | null | undefined;
2161
+ }[] | null | undefined;
2162
+ }>;
2163
+ export type PreferenceWithChildren = z.infer<typeof PreferenceWithChildrenSchema>;