controlresell 2.2.12 → 2.3.2

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