controlresell 2.2.4 → 2.2.6

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 (38) hide show
  1. package/package.json +1 -1
  2. package/src/com/controlresell/models/preferences/Preference.d.ts +1155 -7
  3. package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts +3496 -19
  4. package/src/com/controlresell/models/preferences/PreferenceWithCase.js +3 -1
  5. package/src/com/controlresell/models/preferences/PreferenceWithCase.ts +3 -1
  6. package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts +1013 -0
  7. package/src/com/controlresell/models/preferences/cases/{PreferenceCasePayload.js → CreatePreferenceCasePayload.js} +2 -2
  8. package/src/com/controlresell/models/preferences/cases/{PreferenceCasePayload.ts → CreatePreferenceCasePayload.ts} +2 -2
  9. package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts +987 -15
  10. package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.js +2 -2
  11. package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.ts +2 -2
  12. package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +977 -5
  13. package/src/com/controlresell/models/preferences/cases/UpdatePreferenceCasePayload.d.ts +18 -0
  14. package/src/com/controlresell/models/preferences/cases/UpdatePreferenceCasePayload.js +10 -0
  15. package/src/com/controlresell/models/preferences/cases/UpdatePreferenceCasePayload.ts +9 -0
  16. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +244 -3
  17. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.js +3 -1
  18. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.ts +3 -1
  19. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.d.ts +165 -0
  20. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.js +29 -0
  21. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.ts +29 -0
  22. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +324 -5
  23. package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +811 -0
  24. package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.js +10 -0
  25. package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.ts +9 -0
  26. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts +799 -3
  27. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.js +2 -1
  28. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.ts +2 -1
  29. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts +623 -0
  30. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.js +34 -0
  31. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.ts +34 -0
  32. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +799 -3
  33. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.js +2 -1
  34. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.ts +2 -1
  35. package/src/index.d.ts +5 -1
  36. package/src/index.js +12 -4
  37. package/src/index.ts +5 -1
  38. package/src/com/controlresell/models/preferences/cases/PreferenceCasePayload.d.ts +0 -41
@@ -18,17 +18,813 @@ export declare const PreferenceSchema: z.ZodObject<{
18
18
  caseId: z.ZodString;
19
19
  name: z.ZodString;
20
20
  weight: z.ZodNumber;
21
- payload: z.ZodString;
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"]>;
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<"VISION">;
236
+ data: z.ZodObject<{
237
+ doRemoveBackground: z.ZodBoolean;
238
+ doSmartCrop: z.ZodBoolean;
239
+ doChangeBackground: z.ZodBoolean;
240
+ doRotate: z.ZodBoolean;
241
+ doAddBorders: z.ZodBoolean;
242
+ shadow: z.ZodBoolean;
243
+ targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
244
+ targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
245
+ newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
246
+ newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
247
+ rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
248
+ borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
249
+ borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
+ }, "strip", z.ZodTypeAny, {
251
+ doRemoveBackground: boolean;
252
+ doSmartCrop: boolean;
253
+ doChangeBackground: boolean;
254
+ doRotate: boolean;
255
+ doAddBorders: boolean;
256
+ shadow: boolean;
257
+ targetWidth?: number | null | undefined;
258
+ targetHeight?: number | null | undefined;
259
+ newBackgroundColor?: string | null | undefined;
260
+ newBackgroundUrl?: string | null | undefined;
261
+ rotationAngle?: number | null | undefined;
262
+ borderSize?: number | null | undefined;
263
+ borderColor?: string | null | undefined;
264
+ }, {
265
+ doRemoveBackground: boolean;
266
+ doSmartCrop: boolean;
267
+ doChangeBackground: boolean;
268
+ doRotate: boolean;
269
+ doAddBorders: boolean;
270
+ shadow: boolean;
271
+ targetWidth?: number | null | undefined;
272
+ targetHeight?: number | null | undefined;
273
+ newBackgroundColor?: string | null | undefined;
274
+ newBackgroundUrl?: string | null | undefined;
275
+ rotationAngle?: number | null | undefined;
276
+ borderSize?: number | null | undefined;
277
+ borderColor?: string | null | undefined;
278
+ }>;
279
+ }, "strip", z.ZodTypeAny, {
280
+ type: "VISION";
281
+ data: {
282
+ doRemoveBackground: boolean;
283
+ doSmartCrop: boolean;
284
+ doChangeBackground: boolean;
285
+ doRotate: boolean;
286
+ doAddBorders: boolean;
287
+ shadow: boolean;
288
+ targetWidth?: number | null | undefined;
289
+ targetHeight?: number | null | undefined;
290
+ newBackgroundColor?: string | null | undefined;
291
+ newBackgroundUrl?: string | null | undefined;
292
+ rotationAngle?: number | null | undefined;
293
+ borderSize?: number | null | undefined;
294
+ borderColor?: string | null | undefined;
295
+ };
296
+ }, {
297
+ type: "VISION";
298
+ data: {
299
+ doRemoveBackground: boolean;
300
+ doSmartCrop: boolean;
301
+ doChangeBackground: boolean;
302
+ doRotate: boolean;
303
+ doAddBorders: boolean;
304
+ shadow: boolean;
305
+ targetWidth?: number | null | undefined;
306
+ targetHeight?: number | null | undefined;
307
+ newBackgroundColor?: string | null | undefined;
308
+ newBackgroundUrl?: string | null | undefined;
309
+ rotationAngle?: number | null | undefined;
310
+ borderSize?: number | null | undefined;
311
+ borderColor?: string | null | undefined;
312
+ };
313
+ }>, z.ZodObject<{
314
+ type: z.ZodLiteral<"TEXT">;
315
+ data: z.ZodObject<{
316
+ text: z.ZodString;
317
+ }, "strip", z.ZodTypeAny, {
318
+ text: string;
319
+ }, {
320
+ text: string;
321
+ }>;
322
+ }, "strip", z.ZodTypeAny, {
323
+ type: "TEXT";
324
+ data: {
325
+ text: string;
326
+ };
327
+ }, {
328
+ type: "TEXT";
329
+ data: {
330
+ text: string;
331
+ };
332
+ }>]>;
333
+ }, "strip", z.ZodTypeAny, {
334
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
335
+ payload: {
336
+ type: "EMPTY";
337
+ } | {
338
+ type: "WAIT";
339
+ data: {
340
+ seconds: number;
341
+ };
342
+ } | {
343
+ type: "PRICE";
344
+ data: {
345
+ value: number;
346
+ type: "PERCENTAGE" | "ABSOLUTE";
347
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
348
+ roundStep?: number | null | undefined;
349
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
350
+ };
351
+ } | {
352
+ type: "VISION";
353
+ data: {
354
+ doRemoveBackground: boolean;
355
+ doSmartCrop: boolean;
356
+ doChangeBackground: boolean;
357
+ doRotate: boolean;
358
+ doAddBorders: boolean;
359
+ shadow: boolean;
360
+ targetWidth?: number | null | undefined;
361
+ targetHeight?: number | null | undefined;
362
+ newBackgroundColor?: string | null | undefined;
363
+ newBackgroundUrl?: string | null | undefined;
364
+ rotationAngle?: number | null | undefined;
365
+ borderSize?: number | null | undefined;
366
+ borderColor?: string | null | undefined;
367
+ };
368
+ } | {
369
+ type: "TEXT";
370
+ data: {
371
+ text: string;
372
+ };
373
+ };
374
+ enabled: boolean;
375
+ }, {
376
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
377
+ payload: {
378
+ type: "EMPTY";
379
+ } | {
380
+ type: "WAIT";
381
+ data: {
382
+ seconds: number;
383
+ };
384
+ } | {
385
+ type: "PRICE";
386
+ data: {
387
+ value: number;
388
+ type: "PERCENTAGE" | "ABSOLUTE";
389
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
390
+ roundStep?: number | null | undefined;
391
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
392
+ };
393
+ } | {
394
+ type: "VISION";
395
+ data: {
396
+ doRemoveBackground: boolean;
397
+ doSmartCrop: boolean;
398
+ doChangeBackground: boolean;
399
+ doRotate: boolean;
400
+ doAddBorders: boolean;
401
+ shadow: boolean;
402
+ targetWidth?: number | null | undefined;
403
+ targetHeight?: number | null | undefined;
404
+ newBackgroundColor?: string | null | undefined;
405
+ newBackgroundUrl?: string | null | undefined;
406
+ rotationAngle?: number | null | undefined;
407
+ borderSize?: number | null | undefined;
408
+ borderColor?: string | null | undefined;
409
+ };
410
+ } | {
411
+ type: "TEXT";
412
+ data: {
413
+ text: string;
414
+ };
415
+ };
416
+ enabled: boolean;
417
+ }>, "many">;
418
+ }, "strip", z.ZodTypeAny, {
419
+ actions: {
420
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
421
+ payload: {
422
+ type: "EMPTY";
423
+ } | {
424
+ type: "WAIT";
425
+ data: {
426
+ seconds: number;
427
+ };
428
+ } | {
429
+ type: "PRICE";
430
+ data: {
431
+ value: number;
432
+ type: "PERCENTAGE" | "ABSOLUTE";
433
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
434
+ roundStep?: number | null | undefined;
435
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
436
+ };
437
+ } | {
438
+ type: "VISION";
439
+ data: {
440
+ doRemoveBackground: boolean;
441
+ doSmartCrop: boolean;
442
+ doChangeBackground: boolean;
443
+ doRotate: boolean;
444
+ doAddBorders: boolean;
445
+ shadow: boolean;
446
+ targetWidth?: number | null | undefined;
447
+ targetHeight?: number | null | undefined;
448
+ newBackgroundColor?: string | null | undefined;
449
+ newBackgroundUrl?: string | null | undefined;
450
+ rotationAngle?: number | null | undefined;
451
+ borderSize?: number | null | undefined;
452
+ borderColor?: string | null | undefined;
453
+ };
454
+ } | {
455
+ type: "TEXT";
456
+ data: {
457
+ text: string;
458
+ };
459
+ };
460
+ enabled: boolean;
461
+ }[];
462
+ }, {
463
+ actions: {
464
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
465
+ payload: {
466
+ type: "EMPTY";
467
+ } | {
468
+ type: "WAIT";
469
+ data: {
470
+ seconds: number;
471
+ };
472
+ } | {
473
+ type: "PRICE";
474
+ data: {
475
+ value: number;
476
+ type: "PERCENTAGE" | "ABSOLUTE";
477
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
478
+ roundStep?: number | null | undefined;
479
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
480
+ };
481
+ } | {
482
+ type: "VISION";
483
+ data: {
484
+ doRemoveBackground: boolean;
485
+ doSmartCrop: boolean;
486
+ doChangeBackground: boolean;
487
+ doRotate: boolean;
488
+ doAddBorders: boolean;
489
+ shadow: boolean;
490
+ targetWidth?: number | null | undefined;
491
+ targetHeight?: number | null | undefined;
492
+ newBackgroundColor?: string | null | undefined;
493
+ newBackgroundUrl?: string | null | undefined;
494
+ rotationAngle?: number | null | undefined;
495
+ borderSize?: number | null | undefined;
496
+ borderColor?: string | null | undefined;
497
+ };
498
+ } | {
499
+ type: "TEXT";
500
+ data: {
501
+ text: string;
502
+ };
503
+ };
504
+ enabled: boolean;
505
+ }[];
506
+ }>;
507
+ }, "strip", z.ZodTypeAny, {
508
+ type: "ACTIONS";
509
+ data: {
510
+ actions: {
511
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
512
+ payload: {
513
+ type: "EMPTY";
514
+ } | {
515
+ type: "WAIT";
516
+ data: {
517
+ seconds: number;
518
+ };
519
+ } | {
520
+ type: "PRICE";
521
+ data: {
522
+ value: number;
523
+ type: "PERCENTAGE" | "ABSOLUTE";
524
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
525
+ roundStep?: number | null | undefined;
526
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
527
+ };
528
+ } | {
529
+ type: "VISION";
530
+ data: {
531
+ doRemoveBackground: boolean;
532
+ doSmartCrop: boolean;
533
+ doChangeBackground: boolean;
534
+ doRotate: boolean;
535
+ doAddBorders: boolean;
536
+ shadow: boolean;
537
+ targetWidth?: number | null | undefined;
538
+ targetHeight?: number | null | undefined;
539
+ newBackgroundColor?: string | null | undefined;
540
+ newBackgroundUrl?: string | null | undefined;
541
+ rotationAngle?: number | null | undefined;
542
+ borderSize?: number | null | undefined;
543
+ borderColor?: string | null | undefined;
544
+ };
545
+ } | {
546
+ type: "TEXT";
547
+ data: {
548
+ text: string;
549
+ };
550
+ };
551
+ enabled: boolean;
552
+ }[];
553
+ };
554
+ }, {
555
+ type: "ACTIONS";
556
+ data: {
557
+ actions: {
558
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
559
+ payload: {
560
+ type: "EMPTY";
561
+ } | {
562
+ type: "WAIT";
563
+ data: {
564
+ seconds: number;
565
+ };
566
+ } | {
567
+ type: "PRICE";
568
+ data: {
569
+ value: number;
570
+ type: "PERCENTAGE" | "ABSOLUTE";
571
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
572
+ roundStep?: number | null | undefined;
573
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
574
+ };
575
+ } | {
576
+ type: "VISION";
577
+ data: {
578
+ doRemoveBackground: boolean;
579
+ doSmartCrop: boolean;
580
+ doChangeBackground: boolean;
581
+ doRotate: boolean;
582
+ doAddBorders: boolean;
583
+ shadow: boolean;
584
+ targetWidth?: number | null | undefined;
585
+ targetHeight?: number | null | undefined;
586
+ newBackgroundColor?: string | null | undefined;
587
+ newBackgroundUrl?: string | null | undefined;
588
+ rotationAngle?: number | null | undefined;
589
+ borderSize?: number | null | undefined;
590
+ borderColor?: string | null | undefined;
591
+ };
592
+ } | {
593
+ type: "TEXT";
594
+ data: {
595
+ text: string;
596
+ };
597
+ };
598
+ enabled: boolean;
599
+ }[];
600
+ };
601
+ }>, z.ZodObject<{
602
+ type: z.ZodLiteral<"FEES">;
603
+ data: z.ZodObject<{
604
+ fees: z.ZodArray<z.ZodObject<{
605
+ name: z.ZodString;
606
+ value: z.ZodNumber;
607
+ }, "strip", z.ZodTypeAny, {
608
+ value: number;
609
+ name: string;
610
+ }, {
611
+ value: number;
612
+ name: string;
613
+ }>, "many">;
614
+ }, "strip", z.ZodTypeAny, {
615
+ fees: {
616
+ value: number;
617
+ name: string;
618
+ }[];
619
+ }, {
620
+ fees: {
621
+ value: number;
622
+ name: string;
623
+ }[];
624
+ }>;
625
+ }, "strip", z.ZodTypeAny, {
626
+ type: "FEES";
627
+ data: {
628
+ fees: {
629
+ value: number;
630
+ name: string;
631
+ }[];
632
+ };
633
+ }, {
634
+ type: "FEES";
635
+ data: {
636
+ fees: {
637
+ value: number;
638
+ name: string;
639
+ }[];
640
+ };
641
+ }>]>;
22
642
  }, "strip", z.ZodTypeAny, {
23
643
  id: string;
24
644
  name: string;
25
- payload: string;
645
+ payload: {
646
+ type: "EMPTY";
647
+ } | {
648
+ type: "PRICE";
649
+ data: {
650
+ value: number;
651
+ type: "PERCENTAGE" | "ABSOLUTE";
652
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
653
+ roundStep?: number | null | undefined;
654
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
655
+ };
656
+ } | {
657
+ type: "VISION";
658
+ data: {
659
+ doRemoveBackground: boolean;
660
+ doSmartCrop: boolean;
661
+ doChangeBackground: boolean;
662
+ doRotate: boolean;
663
+ doAddBorders: boolean;
664
+ shadow: boolean;
665
+ targetWidth?: number | null | undefined;
666
+ targetHeight?: number | null | undefined;
667
+ newBackgroundColor?: string | null | undefined;
668
+ newBackgroundUrl?: string | null | undefined;
669
+ rotationAngle?: number | null | undefined;
670
+ borderSize?: number | null | undefined;
671
+ borderColor?: string | null | undefined;
672
+ };
673
+ } | {
674
+ type: "TEXT";
675
+ data: {
676
+ text: string;
677
+ };
678
+ } | {
679
+ type: "ACTIONS";
680
+ data: {
681
+ actions: {
682
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
683
+ payload: {
684
+ type: "EMPTY";
685
+ } | {
686
+ type: "WAIT";
687
+ data: {
688
+ seconds: number;
689
+ };
690
+ } | {
691
+ type: "PRICE";
692
+ data: {
693
+ value: number;
694
+ type: "PERCENTAGE" | "ABSOLUTE";
695
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
696
+ roundStep?: number | null | undefined;
697
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
698
+ };
699
+ } | {
700
+ type: "VISION";
701
+ data: {
702
+ doRemoveBackground: boolean;
703
+ doSmartCrop: boolean;
704
+ doChangeBackground: boolean;
705
+ doRotate: boolean;
706
+ doAddBorders: boolean;
707
+ shadow: boolean;
708
+ targetWidth?: number | null | undefined;
709
+ targetHeight?: number | null | undefined;
710
+ newBackgroundColor?: string | null | undefined;
711
+ newBackgroundUrl?: string | null | undefined;
712
+ rotationAngle?: number | null | undefined;
713
+ borderSize?: number | null | undefined;
714
+ borderColor?: string | null | undefined;
715
+ };
716
+ } | {
717
+ type: "TEXT";
718
+ data: {
719
+ text: string;
720
+ };
721
+ };
722
+ enabled: boolean;
723
+ }[];
724
+ };
725
+ } | {
726
+ type: "FEES";
727
+ data: {
728
+ fees: {
729
+ value: number;
730
+ name: string;
731
+ }[];
732
+ };
733
+ };
26
734
  caseId: string;
27
735
  weight: number;
28
736
  }, {
29
737
  id: string;
30
738
  name: string;
31
- payload: string;
739
+ payload: {
740
+ type: "EMPTY";
741
+ } | {
742
+ type: "PRICE";
743
+ data: {
744
+ value: number;
745
+ type: "PERCENTAGE" | "ABSOLUTE";
746
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
747
+ roundStep?: number | null | undefined;
748
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
749
+ };
750
+ } | {
751
+ type: "VISION";
752
+ data: {
753
+ doRemoveBackground: boolean;
754
+ doSmartCrop: boolean;
755
+ doChangeBackground: boolean;
756
+ doRotate: boolean;
757
+ doAddBorders: boolean;
758
+ shadow: boolean;
759
+ targetWidth?: number | null | undefined;
760
+ targetHeight?: number | null | undefined;
761
+ newBackgroundColor?: string | null | undefined;
762
+ newBackgroundUrl?: string | null | undefined;
763
+ rotationAngle?: number | null | undefined;
764
+ borderSize?: number | null | undefined;
765
+ borderColor?: string | null | undefined;
766
+ };
767
+ } | {
768
+ type: "TEXT";
769
+ data: {
770
+ text: string;
771
+ };
772
+ } | {
773
+ type: "ACTIONS";
774
+ data: {
775
+ actions: {
776
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
777
+ payload: {
778
+ type: "EMPTY";
779
+ } | {
780
+ type: "WAIT";
781
+ data: {
782
+ seconds: number;
783
+ };
784
+ } | {
785
+ type: "PRICE";
786
+ data: {
787
+ value: number;
788
+ type: "PERCENTAGE" | "ABSOLUTE";
789
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
790
+ roundStep?: number | null | undefined;
791
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
792
+ };
793
+ } | {
794
+ type: "VISION";
795
+ data: {
796
+ doRemoveBackground: boolean;
797
+ doSmartCrop: boolean;
798
+ doChangeBackground: boolean;
799
+ doRotate: boolean;
800
+ doAddBorders: boolean;
801
+ shadow: boolean;
802
+ targetWidth?: number | null | undefined;
803
+ targetHeight?: number | null | undefined;
804
+ newBackgroundColor?: string | null | undefined;
805
+ newBackgroundUrl?: string | null | undefined;
806
+ rotationAngle?: number | null | undefined;
807
+ borderSize?: number | null | undefined;
808
+ borderColor?: string | null | undefined;
809
+ };
810
+ } | {
811
+ type: "TEXT";
812
+ data: {
813
+ text: string;
814
+ };
815
+ };
816
+ enabled: boolean;
817
+ }[];
818
+ };
819
+ } | {
820
+ type: "FEES";
821
+ data: {
822
+ fees: {
823
+ value: number;
824
+ name: string;
825
+ }[];
826
+ };
827
+ };
32
828
  caseId: string;
33
829
  weight: number;
34
830
  }>, "many">>>;
@@ -42,7 +838,95 @@ export declare const PreferenceSchema: z.ZodObject<{
42
838
  variants?: {
43
839
  id: string;
44
840
  name: string;
45
- payload: string;
841
+ payload: {
842
+ type: "EMPTY";
843
+ } | {
844
+ type: "PRICE";
845
+ data: {
846
+ value: number;
847
+ type: "PERCENTAGE" | "ABSOLUTE";
848
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
849
+ roundStep?: number | null | undefined;
850
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
851
+ };
852
+ } | {
853
+ type: "VISION";
854
+ data: {
855
+ doRemoveBackground: boolean;
856
+ doSmartCrop: boolean;
857
+ doChangeBackground: boolean;
858
+ doRotate: boolean;
859
+ doAddBorders: boolean;
860
+ shadow: boolean;
861
+ targetWidth?: number | null | undefined;
862
+ targetHeight?: number | null | undefined;
863
+ newBackgroundColor?: string | null | undefined;
864
+ newBackgroundUrl?: string | null | undefined;
865
+ rotationAngle?: number | null | undefined;
866
+ borderSize?: number | null | undefined;
867
+ borderColor?: string | null | undefined;
868
+ };
869
+ } | {
870
+ type: "TEXT";
871
+ data: {
872
+ text: string;
873
+ };
874
+ } | {
875
+ type: "ACTIONS";
876
+ data: {
877
+ actions: {
878
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
879
+ payload: {
880
+ type: "EMPTY";
881
+ } | {
882
+ type: "WAIT";
883
+ data: {
884
+ seconds: number;
885
+ };
886
+ } | {
887
+ type: "PRICE";
888
+ data: {
889
+ value: number;
890
+ type: "PERCENTAGE" | "ABSOLUTE";
891
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
892
+ roundStep?: number | null | undefined;
893
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
894
+ };
895
+ } | {
896
+ type: "VISION";
897
+ data: {
898
+ doRemoveBackground: boolean;
899
+ doSmartCrop: boolean;
900
+ doChangeBackground: boolean;
901
+ doRotate: boolean;
902
+ doAddBorders: boolean;
903
+ shadow: boolean;
904
+ targetWidth?: number | null | undefined;
905
+ targetHeight?: number | null | undefined;
906
+ newBackgroundColor?: string | null | undefined;
907
+ newBackgroundUrl?: string | null | undefined;
908
+ rotationAngle?: number | null | undefined;
909
+ borderSize?: number | null | undefined;
910
+ borderColor?: string | null | undefined;
911
+ };
912
+ } | {
913
+ type: "TEXT";
914
+ data: {
915
+ text: string;
916
+ };
917
+ };
918
+ enabled: boolean;
919
+ }[];
920
+ };
921
+ } | {
922
+ type: "FEES";
923
+ data: {
924
+ fees: {
925
+ value: number;
926
+ name: string;
927
+ }[];
928
+ };
929
+ };
46
930
  caseId: string;
47
931
  weight: number;
48
932
  }[] | null | undefined;
@@ -56,7 +940,95 @@ export declare const PreferenceSchema: z.ZodObject<{
56
940
  variants?: {
57
941
  id: string;
58
942
  name: string;
59
- payload: string;
943
+ payload: {
944
+ type: "EMPTY";
945
+ } | {
946
+ type: "PRICE";
947
+ data: {
948
+ value: number;
949
+ type: "PERCENTAGE" | "ABSOLUTE";
950
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
951
+ roundStep?: number | null | undefined;
952
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
953
+ };
954
+ } | {
955
+ type: "VISION";
956
+ data: {
957
+ doRemoveBackground: boolean;
958
+ doSmartCrop: boolean;
959
+ doChangeBackground: boolean;
960
+ doRotate: boolean;
961
+ doAddBorders: boolean;
962
+ shadow: boolean;
963
+ targetWidth?: number | null | undefined;
964
+ targetHeight?: number | null | undefined;
965
+ newBackgroundColor?: string | null | undefined;
966
+ newBackgroundUrl?: string | null | undefined;
967
+ rotationAngle?: number | null | undefined;
968
+ borderSize?: number | null | undefined;
969
+ borderColor?: string | null | undefined;
970
+ };
971
+ } | {
972
+ type: "TEXT";
973
+ data: {
974
+ text: string;
975
+ };
976
+ } | {
977
+ type: "ACTIONS";
978
+ data: {
979
+ actions: {
980
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
981
+ payload: {
982
+ type: "EMPTY";
983
+ } | {
984
+ type: "WAIT";
985
+ data: {
986
+ seconds: number;
987
+ };
988
+ } | {
989
+ type: "PRICE";
990
+ data: {
991
+ value: number;
992
+ type: "PERCENTAGE" | "ABSOLUTE";
993
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
994
+ roundStep?: number | null | undefined;
995
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
996
+ };
997
+ } | {
998
+ type: "VISION";
999
+ data: {
1000
+ doRemoveBackground: boolean;
1001
+ doSmartCrop: boolean;
1002
+ doChangeBackground: boolean;
1003
+ doRotate: boolean;
1004
+ doAddBorders: boolean;
1005
+ shadow: boolean;
1006
+ targetWidth?: number | null | undefined;
1007
+ targetHeight?: number | null | undefined;
1008
+ newBackgroundColor?: string | null | undefined;
1009
+ newBackgroundUrl?: string | null | undefined;
1010
+ rotationAngle?: number | null | undefined;
1011
+ borderSize?: number | null | undefined;
1012
+ borderColor?: string | null | undefined;
1013
+ };
1014
+ } | {
1015
+ type: "TEXT";
1016
+ data: {
1017
+ text: string;
1018
+ };
1019
+ };
1020
+ enabled: boolean;
1021
+ }[];
1022
+ };
1023
+ } | {
1024
+ type: "FEES";
1025
+ data: {
1026
+ fees: {
1027
+ value: number;
1028
+ name: string;
1029
+ }[];
1030
+ };
1031
+ };
60
1032
  caseId: string;
61
1033
  weight: number;
62
1034
  }[] | null | undefined;
@@ -78,7 +1050,95 @@ export declare const PreferenceSchema: z.ZodObject<{
78
1050
  variants?: {
79
1051
  id: string;
80
1052
  name: string;
81
- payload: string;
1053
+ payload: {
1054
+ type: "EMPTY";
1055
+ } | {
1056
+ type: "PRICE";
1057
+ data: {
1058
+ value: number;
1059
+ type: "PERCENTAGE" | "ABSOLUTE";
1060
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1061
+ roundStep?: number | null | undefined;
1062
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1063
+ };
1064
+ } | {
1065
+ type: "VISION";
1066
+ data: {
1067
+ doRemoveBackground: boolean;
1068
+ doSmartCrop: boolean;
1069
+ doChangeBackground: boolean;
1070
+ doRotate: boolean;
1071
+ doAddBorders: boolean;
1072
+ shadow: boolean;
1073
+ targetWidth?: number | null | undefined;
1074
+ targetHeight?: number | null | undefined;
1075
+ newBackgroundColor?: string | null | undefined;
1076
+ newBackgroundUrl?: string | null | undefined;
1077
+ rotationAngle?: number | null | undefined;
1078
+ borderSize?: number | null | undefined;
1079
+ borderColor?: string | null | undefined;
1080
+ };
1081
+ } | {
1082
+ type: "TEXT";
1083
+ data: {
1084
+ text: string;
1085
+ };
1086
+ } | {
1087
+ type: "ACTIONS";
1088
+ data: {
1089
+ actions: {
1090
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
1091
+ payload: {
1092
+ type: "EMPTY";
1093
+ } | {
1094
+ type: "WAIT";
1095
+ data: {
1096
+ seconds: number;
1097
+ };
1098
+ } | {
1099
+ type: "PRICE";
1100
+ data: {
1101
+ value: number;
1102
+ type: "PERCENTAGE" | "ABSOLUTE";
1103
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1104
+ roundStep?: number | null | undefined;
1105
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1106
+ };
1107
+ } | {
1108
+ type: "VISION";
1109
+ data: {
1110
+ doRemoveBackground: boolean;
1111
+ doSmartCrop: boolean;
1112
+ doChangeBackground: boolean;
1113
+ doRotate: boolean;
1114
+ doAddBorders: boolean;
1115
+ shadow: boolean;
1116
+ targetWidth?: number | null | undefined;
1117
+ targetHeight?: number | null | undefined;
1118
+ newBackgroundColor?: string | null | undefined;
1119
+ newBackgroundUrl?: string | null | undefined;
1120
+ rotationAngle?: number | null | undefined;
1121
+ borderSize?: number | null | undefined;
1122
+ borderColor?: string | null | undefined;
1123
+ };
1124
+ } | {
1125
+ type: "TEXT";
1126
+ data: {
1127
+ text: string;
1128
+ };
1129
+ };
1130
+ enabled: boolean;
1131
+ }[];
1132
+ };
1133
+ } | {
1134
+ type: "FEES";
1135
+ data: {
1136
+ fees: {
1137
+ value: number;
1138
+ name: string;
1139
+ }[];
1140
+ };
1141
+ };
82
1142
  caseId: string;
83
1143
  weight: number;
84
1144
  }[] | null | undefined;
@@ -100,7 +1160,95 @@ export declare const PreferenceSchema: z.ZodObject<{
100
1160
  variants?: {
101
1161
  id: string;
102
1162
  name: string;
103
- payload: string;
1163
+ payload: {
1164
+ type: "EMPTY";
1165
+ } | {
1166
+ type: "PRICE";
1167
+ data: {
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
+ } | {
1175
+ type: "VISION";
1176
+ data: {
1177
+ doRemoveBackground: boolean;
1178
+ doSmartCrop: boolean;
1179
+ doChangeBackground: boolean;
1180
+ doRotate: boolean;
1181
+ doAddBorders: boolean;
1182
+ shadow: boolean;
1183
+ targetWidth?: number | null | undefined;
1184
+ targetHeight?: number | null | undefined;
1185
+ newBackgroundColor?: string | null | undefined;
1186
+ newBackgroundUrl?: string | null | undefined;
1187
+ rotationAngle?: number | null | undefined;
1188
+ borderSize?: number | null | undefined;
1189
+ borderColor?: string | null | undefined;
1190
+ };
1191
+ } | {
1192
+ type: "TEXT";
1193
+ data: {
1194
+ text: string;
1195
+ };
1196
+ } | {
1197
+ type: "ACTIONS";
1198
+ data: {
1199
+ actions: {
1200
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
1201
+ payload: {
1202
+ type: "EMPTY";
1203
+ } | {
1204
+ type: "WAIT";
1205
+ data: {
1206
+ seconds: number;
1207
+ };
1208
+ } | {
1209
+ type: "PRICE";
1210
+ data: {
1211
+ value: number;
1212
+ type: "PERCENTAGE" | "ABSOLUTE";
1213
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1214
+ roundStep?: number | null | undefined;
1215
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1216
+ };
1217
+ } | {
1218
+ type: "VISION";
1219
+ data: {
1220
+ doRemoveBackground: boolean;
1221
+ doSmartCrop: boolean;
1222
+ doChangeBackground: boolean;
1223
+ doRotate: boolean;
1224
+ doAddBorders: boolean;
1225
+ shadow: boolean;
1226
+ targetWidth?: number | null | undefined;
1227
+ targetHeight?: number | null | undefined;
1228
+ newBackgroundColor?: string | null | undefined;
1229
+ newBackgroundUrl?: string | null | undefined;
1230
+ rotationAngle?: number | null | undefined;
1231
+ borderSize?: number | null | undefined;
1232
+ borderColor?: string | null | undefined;
1233
+ };
1234
+ } | {
1235
+ type: "TEXT";
1236
+ data: {
1237
+ text: string;
1238
+ };
1239
+ };
1240
+ enabled: boolean;
1241
+ }[];
1242
+ };
1243
+ } | {
1244
+ type: "FEES";
1245
+ data: {
1246
+ fees: {
1247
+ value: number;
1248
+ name: string;
1249
+ }[];
1250
+ };
1251
+ };
104
1252
  caseId: string;
105
1253
  weight: number;
106
1254
  }[] | null | undefined;