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
@@ -20,150 +20,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
20
20
  name: z.ZodString;
21
21
  weight: z.ZodNumber;
22
22
  payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
23
- type: z.ZodLiteral<"EMPTY">;
24
- }, "strip", z.ZodTypeAny, {
25
- type: "EMPTY";
26
- }, {
27
- type: "EMPTY";
28
- }>, z.ZodObject<{
29
- type: z.ZodLiteral<"PRICE">;
30
- data: z.ZodObject<{
31
- type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
32
- value: z.ZodNumber;
33
- roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
34
- roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
- negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
36
- }, "strip", z.ZodTypeAny, {
37
- value: number;
38
- type: "PERCENTAGE" | "ABSOLUTE";
39
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
40
- roundStep?: number | null | undefined;
41
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
42
- }, {
43
- value: number;
44
- type: "PERCENTAGE" | "ABSOLUTE";
45
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
46
- roundStep?: number | null | undefined;
47
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
48
- }>;
49
- }, "strip", z.ZodTypeAny, {
50
- type: "PRICE";
51
- data: {
52
- value: number;
53
- type: "PERCENTAGE" | "ABSOLUTE";
54
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
55
- roundStep?: number | null | undefined;
56
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
57
- };
58
- }, {
59
- type: "PRICE";
60
- data: {
61
- value: number;
62
- type: "PERCENTAGE" | "ABSOLUTE";
63
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
64
- roundStep?: number | null | undefined;
65
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
66
- };
67
- }>, z.ZodObject<{
68
- type: z.ZodLiteral<"VISION">;
69
- data: z.ZodObject<{
70
- doRemoveBackground: z.ZodBoolean;
71
- doSmartCrop: z.ZodBoolean;
72
- doChangeBackground: z.ZodBoolean;
73
- doRotate: z.ZodBoolean;
74
- doAddBorders: z.ZodBoolean;
75
- shadow: z.ZodBoolean;
76
- targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
77
- targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
78
- newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
- newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
- rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
81
- borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
82
- borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
- }, "strip", z.ZodTypeAny, {
84
- doRemoveBackground: boolean;
85
- doSmartCrop: boolean;
86
- doChangeBackground: boolean;
87
- doRotate: boolean;
88
- doAddBorders: boolean;
89
- shadow: boolean;
90
- targetWidth?: number | null | undefined;
91
- targetHeight?: number | null | undefined;
92
- newBackgroundColor?: string | null | undefined;
93
- newBackgroundUrl?: string | null | undefined;
94
- rotationAngle?: number | null | undefined;
95
- borderSize?: number | null | undefined;
96
- borderColor?: string | null | undefined;
97
- }, {
98
- doRemoveBackground: boolean;
99
- doSmartCrop: boolean;
100
- doChangeBackground: boolean;
101
- doRotate: boolean;
102
- doAddBorders: boolean;
103
- shadow: boolean;
104
- targetWidth?: number | null | undefined;
105
- targetHeight?: number | null | undefined;
106
- newBackgroundColor?: string | null | undefined;
107
- newBackgroundUrl?: string | null | undefined;
108
- rotationAngle?: number | null | undefined;
109
- borderSize?: number | null | undefined;
110
- borderColor?: string | null | undefined;
111
- }>;
112
- }, "strip", z.ZodTypeAny, {
113
- type: "VISION";
114
- data: {
115
- doRemoveBackground: boolean;
116
- doSmartCrop: boolean;
117
- doChangeBackground: boolean;
118
- doRotate: boolean;
119
- doAddBorders: boolean;
120
- shadow: boolean;
121
- targetWidth?: number | null | undefined;
122
- targetHeight?: number | null | undefined;
123
- newBackgroundColor?: string | null | undefined;
124
- newBackgroundUrl?: string | null | undefined;
125
- rotationAngle?: number | null | undefined;
126
- borderSize?: number | null | undefined;
127
- borderColor?: string | null | undefined;
128
- };
129
- }, {
130
- type: "VISION";
131
- data: {
132
- doRemoveBackground: boolean;
133
- doSmartCrop: boolean;
134
- doChangeBackground: boolean;
135
- doRotate: boolean;
136
- doAddBorders: boolean;
137
- shadow: boolean;
138
- targetWidth?: number | null | undefined;
139
- targetHeight?: number | null | undefined;
140
- newBackgroundColor?: string | null | undefined;
141
- newBackgroundUrl?: string | null | undefined;
142
- rotationAngle?: number | null | undefined;
143
- borderSize?: number | null | undefined;
144
- borderColor?: string | null | undefined;
145
- };
146
- }>, z.ZodObject<{
147
- type: z.ZodLiteral<"TEXT">;
148
- data: z.ZodObject<{
149
- text: z.ZodString;
150
- }, "strip", z.ZodTypeAny, {
151
- text: string;
152
- }, {
153
- text: string;
154
- }>;
155
- }, "strip", z.ZodTypeAny, {
156
- type: "TEXT";
157
- data: {
158
- text: string;
159
- };
160
- }, {
161
- type: "TEXT";
162
- data: {
163
- text: string;
164
- };
165
- }>, z.ZodObject<{
166
- type: z.ZodLiteral<"ACTIONS">;
167
23
  data: z.ZodObject<{
168
24
  actions: z.ZodArray<z.ZodObject<{
169
25
  type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO", "OFFER_MANUAL"]>;
@@ -175,26 +31,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
175
31
  }, {
176
32
  type: "EMPTY";
177
33
  }>, z.ZodObject<{
178
- type: z.ZodLiteral<"WAIT">;
179
- data: z.ZodObject<{
180
- seconds: z.ZodNumber;
181
- }, "strip", z.ZodTypeAny, {
182
- seconds: number;
183
- }, {
184
- seconds: number;
185
- }>;
186
- }, "strip", z.ZodTypeAny, {
187
- type: "WAIT";
188
- data: {
189
- seconds: number;
190
- };
191
- }, {
192
- type: "WAIT";
193
- data: {
194
- seconds: number;
195
- };
196
- }>, z.ZodObject<{
197
- type: z.ZodLiteral<"PRICE">;
198
34
  data: z.ZodObject<{
199
35
  type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
200
36
  value: z.ZodNumber;
@@ -214,6 +50,7 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
214
50
  roundStep?: number | null | undefined;
215
51
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
216
52
  }>;
53
+ type: z.ZodLiteral<"PRICE">;
217
54
  }, "strip", z.ZodTypeAny, {
218
55
  type: "PRICE";
219
56
  data: {
@@ -233,7 +70,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
233
70
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
234
71
  };
235
72
  }>, z.ZodObject<{
236
- type: z.ZodLiteral<"TEXT">;
237
73
  data: z.ZodObject<{
238
74
  text: z.ZodString;
239
75
  }, "strip", z.ZodTypeAny, {
@@ -241,6 +77,7 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
241
77
  }, {
242
78
  text: string;
243
79
  }>;
80
+ type: z.ZodLiteral<"TEXT">;
244
81
  }, "strip", z.ZodTypeAny, {
245
82
  type: "TEXT";
246
83
  data: {
@@ -251,17 +88,31 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
251
88
  data: {
252
89
  text: string;
253
90
  };
91
+ }>, z.ZodObject<{
92
+ data: z.ZodObject<{
93
+ seconds: z.ZodNumber;
94
+ }, "strip", z.ZodTypeAny, {
95
+ seconds: number;
96
+ }, {
97
+ seconds: number;
98
+ }>;
99
+ type: z.ZodLiteral<"WAIT">;
100
+ }, "strip", z.ZodTypeAny, {
101
+ type: "WAIT";
102
+ data: {
103
+ seconds: number;
104
+ };
105
+ }, {
106
+ type: "WAIT";
107
+ data: {
108
+ seconds: number;
109
+ };
254
110
  }>]>;
255
111
  mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
256
112
  }, "strip", z.ZodTypeAny, {
257
113
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
258
114
  payload: {
259
115
  type: "EMPTY";
260
- } | {
261
- type: "WAIT";
262
- data: {
263
- seconds: number;
264
- };
265
116
  } | {
266
117
  type: "PRICE";
267
118
  data: {
@@ -276,6 +127,11 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
276
127
  data: {
277
128
  text: string;
278
129
  };
130
+ } | {
131
+ type: "WAIT";
132
+ data: {
133
+ seconds: number;
134
+ };
279
135
  };
280
136
  enabled: boolean;
281
137
  mandatory?: boolean | null | undefined;
@@ -283,11 +139,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
283
139
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
284
140
  payload: {
285
141
  type: "EMPTY";
286
- } | {
287
- type: "WAIT";
288
- data: {
289
- seconds: number;
290
- };
291
142
  } | {
292
143
  type: "PRICE";
293
144
  data: {
@@ -302,6 +153,11 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
302
153
  data: {
303
154
  text: string;
304
155
  };
156
+ } | {
157
+ type: "WAIT";
158
+ data: {
159
+ seconds: number;
160
+ };
305
161
  };
306
162
  enabled: boolean;
307
163
  mandatory?: boolean | null | undefined;
@@ -311,11 +167,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
311
167
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
312
168
  payload: {
313
169
  type: "EMPTY";
314
- } | {
315
- type: "WAIT";
316
- data: {
317
- seconds: number;
318
- };
319
170
  } | {
320
171
  type: "PRICE";
321
172
  data: {
@@ -330,6 +181,11 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
330
181
  data: {
331
182
  text: string;
332
183
  };
184
+ } | {
185
+ type: "WAIT";
186
+ data: {
187
+ seconds: number;
188
+ };
333
189
  };
334
190
  enabled: boolean;
335
191
  mandatory?: boolean | null | undefined;
@@ -339,11 +195,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
339
195
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
340
196
  payload: {
341
197
  type: "EMPTY";
342
- } | {
343
- type: "WAIT";
344
- data: {
345
- seconds: number;
346
- };
347
198
  } | {
348
199
  type: "PRICE";
349
200
  data: {
@@ -358,11 +209,17 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
358
209
  data: {
359
210
  text: string;
360
211
  };
212
+ } | {
213
+ type: "WAIT";
214
+ data: {
215
+ seconds: number;
216
+ };
361
217
  };
362
218
  enabled: boolean;
363
219
  mandatory?: boolean | null | undefined;
364
220
  }[];
365
221
  }>;
222
+ type: z.ZodLiteral<"ACTIONS">;
366
223
  }, "strip", z.ZodTypeAny, {
367
224
  type: "ACTIONS";
368
225
  data: {
@@ -370,11 +227,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
370
227
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
371
228
  payload: {
372
229
  type: "EMPTY";
373
- } | {
374
- type: "WAIT";
375
- data: {
376
- seconds: number;
377
- };
378
230
  } | {
379
231
  type: "PRICE";
380
232
  data: {
@@ -389,6 +241,11 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
389
241
  data: {
390
242
  text: string;
391
243
  };
244
+ } | {
245
+ type: "WAIT";
246
+ data: {
247
+ seconds: number;
248
+ };
392
249
  };
393
250
  enabled: boolean;
394
251
  mandatory?: boolean | null | undefined;
@@ -401,11 +258,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
401
258
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
402
259
  payload: {
403
260
  type: "EMPTY";
404
- } | {
405
- type: "WAIT";
406
- data: {
407
- seconds: number;
408
- };
409
261
  } | {
410
262
  type: "PRICE";
411
263
  data: {
@@ -420,13 +272,23 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
420
272
  data: {
421
273
  text: string;
422
274
  };
275
+ } | {
276
+ type: "WAIT";
277
+ data: {
278
+ seconds: number;
279
+ };
423
280
  };
424
281
  enabled: boolean;
425
282
  mandatory?: boolean | null | undefined;
426
283
  }[];
427
284
  };
428
285
  }>, z.ZodObject<{
429
- type: z.ZodLiteral<"FEES">;
286
+ type: z.ZodLiteral<"EMPTY">;
287
+ }, "strip", z.ZodTypeAny, {
288
+ type: "EMPTY";
289
+ }, {
290
+ type: "EMPTY";
291
+ }>, z.ZodObject<{
430
292
  data: z.ZodObject<{
431
293
  fees: z.ZodArray<z.ZodObject<{
432
294
  name: z.ZodString;
@@ -449,6 +311,7 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
449
311
  name: string;
450
312
  }[];
451
313
  }>;
314
+ type: z.ZodLiteral<"FEES">;
452
315
  }, "strip", z.ZodTypeAny, {
453
316
  type: "FEES";
454
317
  data: {
@@ -465,13 +328,28 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
465
328
  name: string;
466
329
  }[];
467
330
  };
468
- }>]>;
469
- }, "strip", z.ZodTypeAny, {
470
- id: string;
471
- name: string;
472
- payload: {
473
- type: "EMPTY";
474
- } | {
331
+ }>, z.ZodObject<{
332
+ data: z.ZodObject<{
333
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
334
+ value: z.ZodNumber;
335
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
336
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
337
+ negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
338
+ }, "strip", z.ZodTypeAny, {
339
+ value: number;
340
+ type: "PERCENTAGE" | "ABSOLUTE";
341
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
342
+ roundStep?: number | null | undefined;
343
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
344
+ }, {
345
+ value: number;
346
+ type: "PERCENTAGE" | "ABSOLUTE";
347
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
348
+ roundStep?: number | null | undefined;
349
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
350
+ }>;
351
+ type: z.ZodLiteral<"PRICE">;
352
+ }, "strip", z.ZodTypeAny, {
475
353
  type: "PRICE";
476
354
  data: {
477
355
  value: number;
@@ -480,7 +358,80 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
480
358
  roundStep?: number | null | undefined;
481
359
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
482
360
  };
483
- } | {
361
+ }, {
362
+ type: "PRICE";
363
+ data: {
364
+ value: number;
365
+ type: "PERCENTAGE" | "ABSOLUTE";
366
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
367
+ roundStep?: number | null | undefined;
368
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
369
+ };
370
+ }>, z.ZodObject<{
371
+ data: z.ZodObject<{
372
+ text: z.ZodString;
373
+ }, "strip", z.ZodTypeAny, {
374
+ text: string;
375
+ }, {
376
+ text: string;
377
+ }>;
378
+ type: z.ZodLiteral<"TEXT">;
379
+ }, "strip", z.ZodTypeAny, {
380
+ type: "TEXT";
381
+ data: {
382
+ text: string;
383
+ };
384
+ }, {
385
+ type: "TEXT";
386
+ data: {
387
+ text: string;
388
+ };
389
+ }>, z.ZodObject<{
390
+ data: z.ZodObject<{
391
+ doRemoveBackground: z.ZodBoolean;
392
+ doSmartCrop: z.ZodBoolean;
393
+ doChangeBackground: z.ZodBoolean;
394
+ doRotate: z.ZodBoolean;
395
+ doAddBorders: z.ZodBoolean;
396
+ shadow: z.ZodBoolean;
397
+ targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
398
+ targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
399
+ newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
400
+ newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
401
+ rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
402
+ borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
403
+ borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
404
+ }, "strip", z.ZodTypeAny, {
405
+ doRemoveBackground: boolean;
406
+ doSmartCrop: boolean;
407
+ doChangeBackground: boolean;
408
+ doRotate: boolean;
409
+ doAddBorders: boolean;
410
+ shadow: boolean;
411
+ targetWidth?: number | null | undefined;
412
+ targetHeight?: number | null | undefined;
413
+ newBackgroundColor?: string | null | undefined;
414
+ newBackgroundUrl?: string | null | undefined;
415
+ rotationAngle?: number | null | undefined;
416
+ borderSize?: number | null | undefined;
417
+ borderColor?: string | null | undefined;
418
+ }, {
419
+ doRemoveBackground: boolean;
420
+ doSmartCrop: boolean;
421
+ doChangeBackground: boolean;
422
+ doRotate: boolean;
423
+ doAddBorders: boolean;
424
+ shadow: boolean;
425
+ targetWidth?: number | null | undefined;
426
+ targetHeight?: number | null | undefined;
427
+ newBackgroundColor?: string | null | undefined;
428
+ newBackgroundUrl?: string | null | undefined;
429
+ rotationAngle?: number | null | undefined;
430
+ borderSize?: number | null | undefined;
431
+ borderColor?: string | null | undefined;
432
+ }>;
433
+ type: z.ZodLiteral<"VISION">;
434
+ }, "strip", z.ZodTypeAny, {
484
435
  type: "VISION";
485
436
  data: {
486
437
  doRemoveBackground: boolean;
@@ -497,23 +448,34 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
497
448
  borderSize?: number | null | undefined;
498
449
  borderColor?: string | null | undefined;
499
450
  };
500
- } | {
501
- type: "TEXT";
451
+ }, {
452
+ type: "VISION";
502
453
  data: {
503
- text: string;
454
+ doRemoveBackground: boolean;
455
+ doSmartCrop: boolean;
456
+ doChangeBackground: boolean;
457
+ doRotate: boolean;
458
+ doAddBorders: boolean;
459
+ shadow: boolean;
460
+ targetWidth?: number | null | undefined;
461
+ targetHeight?: number | null | undefined;
462
+ newBackgroundColor?: string | null | undefined;
463
+ newBackgroundUrl?: string | null | undefined;
464
+ rotationAngle?: number | null | undefined;
465
+ borderSize?: number | null | undefined;
466
+ borderColor?: string | null | undefined;
504
467
  };
505
- } | {
468
+ }>]>;
469
+ }, "strip", z.ZodTypeAny, {
470
+ id: string;
471
+ name: string;
472
+ payload: {
506
473
  type: "ACTIONS";
507
474
  data: {
508
475
  actions: {
509
476
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
510
477
  payload: {
511
478
  type: "EMPTY";
512
- } | {
513
- type: "WAIT";
514
- data: {
515
- seconds: number;
516
- };
517
479
  } | {
518
480
  type: "PRICE";
519
481
  data: {
@@ -528,11 +490,18 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
528
490
  data: {
529
491
  text: string;
530
492
  };
493
+ } | {
494
+ type: "WAIT";
495
+ data: {
496
+ seconds: number;
497
+ };
531
498
  };
532
499
  enabled: boolean;
533
500
  mandatory?: boolean | null | undefined;
534
501
  }[];
535
502
  };
503
+ } | {
504
+ type: "EMPTY";
536
505
  } | {
537
506
  type: "FEES";
538
507
  data: {
@@ -541,14 +510,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
541
510
  name: string;
542
511
  }[];
543
512
  };
544
- };
545
- caseId: string;
546
- weight: number;
547
- }, {
548
- id: string;
549
- name: string;
550
- payload: {
551
- type: "EMPTY";
552
513
  } | {
553
514
  type: "PRICE";
554
515
  data: {
@@ -558,6 +519,11 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
558
519
  roundStep?: number | null | undefined;
559
520
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
560
521
  };
522
+ } | {
523
+ type: "TEXT";
524
+ data: {
525
+ text: string;
526
+ };
561
527
  } | {
562
528
  type: "VISION";
563
529
  data: {
@@ -575,23 +541,19 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
575
541
  borderSize?: number | null | undefined;
576
542
  borderColor?: string | null | undefined;
577
543
  };
578
- } | {
579
- type: "TEXT";
580
- data: {
581
- text: string;
582
- };
583
- } | {
544
+ };
545
+ caseId: string;
546
+ weight: number;
547
+ }, {
548
+ id: string;
549
+ name: string;
550
+ payload: {
584
551
  type: "ACTIONS";
585
552
  data: {
586
553
  actions: {
587
554
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
588
555
  payload: {
589
556
  type: "EMPTY";
590
- } | {
591
- type: "WAIT";
592
- data: {
593
- seconds: number;
594
- };
595
557
  } | {
596
558
  type: "PRICE";
597
559
  data: {
@@ -606,11 +568,18 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
606
568
  data: {
607
569
  text: string;
608
570
  };
571
+ } | {
572
+ type: "WAIT";
573
+ data: {
574
+ seconds: number;
575
+ };
609
576
  };
610
577
  enabled: boolean;
611
578
  mandatory?: boolean | null | undefined;
612
579
  }[];
613
580
  };
581
+ } | {
582
+ type: "EMPTY";
614
583
  } | {
615
584
  type: "FEES";
616
585
  data: {
@@ -619,22 +588,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
619
588
  name: string;
620
589
  }[];
621
590
  };
622
- };
623
- caseId: string;
624
- weight: number;
625
- }>, "many">>>;
626
- }, "strip", z.ZodTypeAny, {
627
- id: string;
628
- enabled: boolean;
629
- testMode: boolean;
630
- preferenceId: string;
631
- abTest: boolean;
632
- savedFiltersId?: string | null | undefined;
633
- variants?: {
634
- id: string;
635
- name: string;
636
- payload: {
637
- type: "EMPTY";
638
591
  } | {
639
592
  type: "PRICE";
640
593
  data: {
@@ -644,6 +597,11 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
644
597
  roundStep?: number | null | undefined;
645
598
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
646
599
  };
600
+ } | {
601
+ type: "TEXT";
602
+ data: {
603
+ text: string;
604
+ };
647
605
  } | {
648
606
  type: "VISION";
649
607
  data: {
@@ -661,23 +619,27 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
661
619
  borderSize?: number | null | undefined;
662
620
  borderColor?: string | null | undefined;
663
621
  };
664
- } | {
665
- type: "TEXT";
666
- data: {
667
- text: string;
668
- };
669
- } | {
622
+ };
623
+ caseId: string;
624
+ weight: number;
625
+ }>, "many">>>;
626
+ }, "strip", z.ZodTypeAny, {
627
+ id: string;
628
+ enabled: boolean;
629
+ testMode: boolean;
630
+ preferenceId: string;
631
+ abTest: boolean;
632
+ savedFiltersId?: string | null | undefined;
633
+ variants?: {
634
+ id: string;
635
+ name: string;
636
+ payload: {
670
637
  type: "ACTIONS";
671
638
  data: {
672
639
  actions: {
673
640
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
674
641
  payload: {
675
642
  type: "EMPTY";
676
- } | {
677
- type: "WAIT";
678
- data: {
679
- seconds: number;
680
- };
681
643
  } | {
682
644
  type: "PRICE";
683
645
  data: {
@@ -692,11 +654,18 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
692
654
  data: {
693
655
  text: string;
694
656
  };
657
+ } | {
658
+ type: "WAIT";
659
+ data: {
660
+ seconds: number;
661
+ };
695
662
  };
696
663
  enabled: boolean;
697
664
  mandatory?: boolean | null | undefined;
698
665
  }[];
699
666
  };
667
+ } | {
668
+ type: "EMPTY";
700
669
  } | {
701
670
  type: "FEES";
702
671
  data: {
@@ -705,22 +674,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
705
674
  name: string;
706
675
  }[];
707
676
  };
708
- };
709
- caseId: string;
710
- weight: number;
711
- }[] | null | undefined;
712
- }, {
713
- id: string;
714
- enabled: boolean;
715
- testMode: boolean;
716
- preferenceId: string;
717
- abTest: boolean;
718
- savedFiltersId?: string | null | undefined;
719
- variants?: {
720
- id: string;
721
- name: string;
722
- payload: {
723
- type: "EMPTY";
724
677
  } | {
725
678
  type: "PRICE";
726
679
  data: {
@@ -730,6 +683,11 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
730
683
  roundStep?: number | null | undefined;
731
684
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
732
685
  };
686
+ } | {
687
+ type: "TEXT";
688
+ data: {
689
+ text: string;
690
+ };
733
691
  } | {
734
692
  type: "VISION";
735
693
  data: {
@@ -747,23 +705,27 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
747
705
  borderSize?: number | null | undefined;
748
706
  borderColor?: string | null | undefined;
749
707
  };
750
- } | {
751
- type: "TEXT";
752
- data: {
753
- text: string;
754
- };
755
- } | {
708
+ };
709
+ caseId: string;
710
+ weight: number;
711
+ }[] | null | undefined;
712
+ }, {
713
+ id: string;
714
+ enabled: boolean;
715
+ testMode: boolean;
716
+ preferenceId: string;
717
+ abTest: boolean;
718
+ savedFiltersId?: string | null | undefined;
719
+ variants?: {
720
+ id: string;
721
+ name: string;
722
+ payload: {
756
723
  type: "ACTIONS";
757
724
  data: {
758
725
  actions: {
759
726
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
760
727
  payload: {
761
728
  type: "EMPTY";
762
- } | {
763
- type: "WAIT";
764
- data: {
765
- seconds: number;
766
- };
767
729
  } | {
768
730
  type: "PRICE";
769
731
  data: {
@@ -778,11 +740,18 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
778
740
  data: {
779
741
  text: string;
780
742
  };
743
+ } | {
744
+ type: "WAIT";
745
+ data: {
746
+ seconds: number;
747
+ };
781
748
  };
782
749
  enabled: boolean;
783
750
  mandatory?: boolean | null | undefined;
784
751
  }[];
785
752
  };
753
+ } | {
754
+ type: "EMPTY";
786
755
  } | {
787
756
  type: "FEES";
788
757
  data: {
@@ -791,30 +760,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
791
760
  name: string;
792
761
  }[];
793
762
  };
794
- };
795
- caseId: string;
796
- weight: number;
797
- }[] | null | undefined;
798
- }>, "many">>>;
799
- }, "strip", z.ZodTypeAny, {
800
- 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";
801
- id: string;
802
- userId: string | number;
803
- enabled: boolean;
804
- testMode: boolean;
805
- parentPreferenceId?: string | null | undefined;
806
- cases?: {
807
- id: string;
808
- enabled: boolean;
809
- testMode: boolean;
810
- preferenceId: string;
811
- abTest: boolean;
812
- savedFiltersId?: string | null | undefined;
813
- variants?: {
814
- id: string;
815
- name: string;
816
- payload: {
817
- type: "EMPTY";
818
763
  } | {
819
764
  type: "PRICE";
820
765
  data: {
@@ -824,6 +769,11 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
824
769
  roundStep?: number | null | undefined;
825
770
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
826
771
  };
772
+ } | {
773
+ type: "TEXT";
774
+ data: {
775
+ text: string;
776
+ };
827
777
  } | {
828
778
  type: "VISION";
829
779
  data: {
@@ -841,23 +791,35 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
841
791
  borderSize?: number | null | undefined;
842
792
  borderColor?: string | null | undefined;
843
793
  };
844
- } | {
845
- type: "TEXT";
846
- data: {
847
- text: string;
848
- };
849
- } | {
794
+ };
795
+ caseId: string;
796
+ weight: number;
797
+ }[] | null | undefined;
798
+ }>, "many">>>;
799
+ }, "strip", z.ZodTypeAny, {
800
+ 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";
801
+ id: string;
802
+ userId: string | number;
803
+ enabled: boolean;
804
+ testMode: boolean;
805
+ parentPreferenceId?: string | null | undefined;
806
+ cases?: {
807
+ id: string;
808
+ enabled: boolean;
809
+ testMode: boolean;
810
+ preferenceId: string;
811
+ abTest: boolean;
812
+ savedFiltersId?: string | null | undefined;
813
+ variants?: {
814
+ id: string;
815
+ name: string;
816
+ payload: {
850
817
  type: "ACTIONS";
851
818
  data: {
852
819
  actions: {
853
820
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
854
821
  payload: {
855
822
  type: "EMPTY";
856
- } | {
857
- type: "WAIT";
858
- data: {
859
- seconds: number;
860
- };
861
823
  } | {
862
824
  type: "PRICE";
863
825
  data: {
@@ -872,11 +834,18 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
872
834
  data: {
873
835
  text: string;
874
836
  };
837
+ } | {
838
+ type: "WAIT";
839
+ data: {
840
+ seconds: number;
841
+ };
875
842
  };
876
843
  enabled: boolean;
877
844
  mandatory?: boolean | null | undefined;
878
845
  }[];
879
846
  };
847
+ } | {
848
+ type: "EMPTY";
880
849
  } | {
881
850
  type: "FEES";
882
851
  data: {
@@ -885,30 +854,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
885
854
  name: string;
886
855
  }[];
887
856
  };
888
- };
889
- caseId: string;
890
- weight: number;
891
- }[] | null | undefined;
892
- }[] | null | undefined;
893
- }, {
894
- 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";
895
- id: string;
896
- userId: string | number;
897
- enabled: boolean;
898
- testMode: boolean;
899
- parentPreferenceId?: string | null | undefined;
900
- cases?: {
901
- id: string;
902
- enabled: boolean;
903
- testMode: boolean;
904
- preferenceId: string;
905
- abTest: boolean;
906
- savedFiltersId?: string | null | undefined;
907
- variants?: {
908
- id: string;
909
- name: string;
910
- payload: {
911
- type: "EMPTY";
912
857
  } | {
913
858
  type: "PRICE";
914
859
  data: {
@@ -918,6 +863,11 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
918
863
  roundStep?: number | null | undefined;
919
864
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
920
865
  };
866
+ } | {
867
+ type: "TEXT";
868
+ data: {
869
+ text: string;
870
+ };
921
871
  } | {
922
872
  type: "VISION";
923
873
  data: {
@@ -935,23 +885,35 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
935
885
  borderSize?: number | null | undefined;
936
886
  borderColor?: string | null | undefined;
937
887
  };
938
- } | {
939
- type: "TEXT";
940
- data: {
941
- text: string;
942
- };
943
- } | {
888
+ };
889
+ caseId: string;
890
+ weight: number;
891
+ }[] | null | undefined;
892
+ }[] | null | undefined;
893
+ }, {
894
+ 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";
895
+ id: string;
896
+ userId: string | number;
897
+ enabled: boolean;
898
+ testMode: boolean;
899
+ parentPreferenceId?: string | null | undefined;
900
+ cases?: {
901
+ id: string;
902
+ enabled: boolean;
903
+ testMode: boolean;
904
+ preferenceId: string;
905
+ abTest: boolean;
906
+ savedFiltersId?: string | null | undefined;
907
+ variants?: {
908
+ id: string;
909
+ name: string;
910
+ payload: {
944
911
  type: "ACTIONS";
945
912
  data: {
946
913
  actions: {
947
914
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
948
915
  payload: {
949
916
  type: "EMPTY";
950
- } | {
951
- type: "WAIT";
952
- data: {
953
- seconds: number;
954
- };
955
917
  } | {
956
918
  type: "PRICE";
957
919
  data: {
@@ -966,11 +928,18 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
966
928
  data: {
967
929
  text: string;
968
930
  };
931
+ } | {
932
+ type: "WAIT";
933
+ data: {
934
+ seconds: number;
935
+ };
969
936
  };
970
937
  enabled: boolean;
971
938
  mandatory?: boolean | null | undefined;
972
939
  }[];
973
940
  };
941
+ } | {
942
+ type: "EMPTY";
974
943
  } | {
975
944
  type: "FEES";
976
945
  data: {
@@ -979,6 +948,37 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
979
948
  name: string;
980
949
  }[];
981
950
  };
951
+ } | {
952
+ type: "PRICE";
953
+ data: {
954
+ value: number;
955
+ type: "PERCENTAGE" | "ABSOLUTE";
956
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
957
+ roundStep?: number | null | undefined;
958
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
959
+ };
960
+ } | {
961
+ type: "TEXT";
962
+ data: {
963
+ text: string;
964
+ };
965
+ } | {
966
+ type: "VISION";
967
+ data: {
968
+ doRemoveBackground: boolean;
969
+ doSmartCrop: boolean;
970
+ doChangeBackground: boolean;
971
+ doRotate: boolean;
972
+ doAddBorders: boolean;
973
+ shadow: boolean;
974
+ targetWidth?: number | null | undefined;
975
+ targetHeight?: number | null | undefined;
976
+ newBackgroundColor?: string | null | undefined;
977
+ newBackgroundUrl?: string | null | undefined;
978
+ rotationAngle?: number | null | undefined;
979
+ borderSize?: number | null | undefined;
980
+ borderColor?: string | null | undefined;
981
+ };
982
982
  };
983
983
  caseId: string;
984
984
  weight: number;
@@ -998,150 +998,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
998
998
  name: z.ZodString;
999
999
  weight: z.ZodNumber;
1000
1000
  payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1001
- type: z.ZodLiteral<"EMPTY">;
1002
- }, "strip", z.ZodTypeAny, {
1003
- type: "EMPTY";
1004
- }, {
1005
- type: "EMPTY";
1006
- }>, z.ZodObject<{
1007
- type: z.ZodLiteral<"PRICE">;
1008
- data: z.ZodObject<{
1009
- type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
1010
- value: z.ZodNumber;
1011
- roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
1012
- roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1013
- negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
1014
- }, "strip", z.ZodTypeAny, {
1015
- value: number;
1016
- type: "PERCENTAGE" | "ABSOLUTE";
1017
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1018
- roundStep?: number | null | undefined;
1019
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1020
- }, {
1021
- value: number;
1022
- type: "PERCENTAGE" | "ABSOLUTE";
1023
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1024
- roundStep?: number | null | undefined;
1025
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1026
- }>;
1027
- }, "strip", z.ZodTypeAny, {
1028
- type: "PRICE";
1029
- data: {
1030
- value: number;
1031
- type: "PERCENTAGE" | "ABSOLUTE";
1032
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1033
- roundStep?: number | null | undefined;
1034
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1035
- };
1036
- }, {
1037
- type: "PRICE";
1038
- data: {
1039
- value: number;
1040
- type: "PERCENTAGE" | "ABSOLUTE";
1041
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1042
- roundStep?: number | null | undefined;
1043
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1044
- };
1045
- }>, z.ZodObject<{
1046
- type: z.ZodLiteral<"VISION">;
1047
- data: z.ZodObject<{
1048
- doRemoveBackground: z.ZodBoolean;
1049
- doSmartCrop: z.ZodBoolean;
1050
- doChangeBackground: z.ZodBoolean;
1051
- doRotate: z.ZodBoolean;
1052
- doAddBorders: z.ZodBoolean;
1053
- shadow: z.ZodBoolean;
1054
- targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1055
- targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1056
- newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1057
- newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1058
- rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1059
- borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1060
- borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1061
- }, "strip", z.ZodTypeAny, {
1062
- doRemoveBackground: boolean;
1063
- doSmartCrop: boolean;
1064
- doChangeBackground: boolean;
1065
- doRotate: boolean;
1066
- doAddBorders: boolean;
1067
- shadow: boolean;
1068
- targetWidth?: number | null | undefined;
1069
- targetHeight?: number | null | undefined;
1070
- newBackgroundColor?: string | null | undefined;
1071
- newBackgroundUrl?: string | null | undefined;
1072
- rotationAngle?: number | null | undefined;
1073
- borderSize?: number | null | undefined;
1074
- borderColor?: string | null | undefined;
1075
- }, {
1076
- doRemoveBackground: boolean;
1077
- doSmartCrop: boolean;
1078
- doChangeBackground: boolean;
1079
- doRotate: boolean;
1080
- doAddBorders: boolean;
1081
- shadow: boolean;
1082
- targetWidth?: number | null | undefined;
1083
- targetHeight?: number | null | undefined;
1084
- newBackgroundColor?: string | null | undefined;
1085
- newBackgroundUrl?: string | null | undefined;
1086
- rotationAngle?: number | null | undefined;
1087
- borderSize?: number | null | undefined;
1088
- borderColor?: string | null | undefined;
1089
- }>;
1090
- }, "strip", z.ZodTypeAny, {
1091
- type: "VISION";
1092
- data: {
1093
- doRemoveBackground: boolean;
1094
- doSmartCrop: boolean;
1095
- doChangeBackground: boolean;
1096
- doRotate: boolean;
1097
- doAddBorders: boolean;
1098
- shadow: boolean;
1099
- targetWidth?: number | null | undefined;
1100
- targetHeight?: number | null | undefined;
1101
- newBackgroundColor?: string | null | undefined;
1102
- newBackgroundUrl?: string | null | undefined;
1103
- rotationAngle?: number | null | undefined;
1104
- borderSize?: number | null | undefined;
1105
- borderColor?: string | null | undefined;
1106
- };
1107
- }, {
1108
- type: "VISION";
1109
- data: {
1110
- doRemoveBackground: boolean;
1111
- doSmartCrop: boolean;
1112
- doChangeBackground: boolean;
1113
- doRotate: boolean;
1114
- doAddBorders: boolean;
1115
- shadow: boolean;
1116
- targetWidth?: number | null | undefined;
1117
- targetHeight?: number | null | undefined;
1118
- newBackgroundColor?: string | null | undefined;
1119
- newBackgroundUrl?: string | null | undefined;
1120
- rotationAngle?: number | null | undefined;
1121
- borderSize?: number | null | undefined;
1122
- borderColor?: string | null | undefined;
1123
- };
1124
- }>, z.ZodObject<{
1125
- type: z.ZodLiteral<"TEXT">;
1126
- data: z.ZodObject<{
1127
- text: z.ZodString;
1128
- }, "strip", z.ZodTypeAny, {
1129
- text: string;
1130
- }, {
1131
- text: string;
1132
- }>;
1133
- }, "strip", z.ZodTypeAny, {
1134
- type: "TEXT";
1135
- data: {
1136
- text: string;
1137
- };
1138
- }, {
1139
- type: "TEXT";
1140
- data: {
1141
- text: string;
1142
- };
1143
- }>, z.ZodObject<{
1144
- type: z.ZodLiteral<"ACTIONS">;
1145
1001
  data: z.ZodObject<{
1146
1002
  actions: z.ZodArray<z.ZodObject<{
1147
1003
  type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO", "OFFER_MANUAL"]>;
@@ -1153,26 +1009,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1153
1009
  }, {
1154
1010
  type: "EMPTY";
1155
1011
  }>, z.ZodObject<{
1156
- type: z.ZodLiteral<"WAIT">;
1157
- data: z.ZodObject<{
1158
- seconds: z.ZodNumber;
1159
- }, "strip", z.ZodTypeAny, {
1160
- seconds: number;
1161
- }, {
1162
- seconds: number;
1163
- }>;
1164
- }, "strip", z.ZodTypeAny, {
1165
- type: "WAIT";
1166
- data: {
1167
- seconds: number;
1168
- };
1169
- }, {
1170
- type: "WAIT";
1171
- data: {
1172
- seconds: number;
1173
- };
1174
- }>, z.ZodObject<{
1175
- type: z.ZodLiteral<"PRICE">;
1176
1012
  data: z.ZodObject<{
1177
1013
  type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
1178
1014
  value: z.ZodNumber;
@@ -1192,6 +1028,7 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1192
1028
  roundStep?: number | null | undefined;
1193
1029
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1194
1030
  }>;
1031
+ type: z.ZodLiteral<"PRICE">;
1195
1032
  }, "strip", z.ZodTypeAny, {
1196
1033
  type: "PRICE";
1197
1034
  data: {
@@ -1211,7 +1048,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1211
1048
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1212
1049
  };
1213
1050
  }>, z.ZodObject<{
1214
- type: z.ZodLiteral<"TEXT">;
1215
1051
  data: z.ZodObject<{
1216
1052
  text: z.ZodString;
1217
1053
  }, "strip", z.ZodTypeAny, {
@@ -1219,6 +1055,7 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1219
1055
  }, {
1220
1056
  text: string;
1221
1057
  }>;
1058
+ type: z.ZodLiteral<"TEXT">;
1222
1059
  }, "strip", z.ZodTypeAny, {
1223
1060
  type: "TEXT";
1224
1061
  data: {
@@ -1229,17 +1066,31 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1229
1066
  data: {
1230
1067
  text: string;
1231
1068
  };
1069
+ }>, z.ZodObject<{
1070
+ data: z.ZodObject<{
1071
+ seconds: z.ZodNumber;
1072
+ }, "strip", z.ZodTypeAny, {
1073
+ seconds: number;
1074
+ }, {
1075
+ seconds: number;
1076
+ }>;
1077
+ type: z.ZodLiteral<"WAIT">;
1078
+ }, "strip", z.ZodTypeAny, {
1079
+ type: "WAIT";
1080
+ data: {
1081
+ seconds: number;
1082
+ };
1083
+ }, {
1084
+ type: "WAIT";
1085
+ data: {
1086
+ seconds: number;
1087
+ };
1232
1088
  }>]>;
1233
1089
  mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1234
1090
  }, "strip", z.ZodTypeAny, {
1235
1091
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1236
1092
  payload: {
1237
1093
  type: "EMPTY";
1238
- } | {
1239
- type: "WAIT";
1240
- data: {
1241
- seconds: number;
1242
- };
1243
1094
  } | {
1244
1095
  type: "PRICE";
1245
1096
  data: {
@@ -1254,6 +1105,11 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1254
1105
  data: {
1255
1106
  text: string;
1256
1107
  };
1108
+ } | {
1109
+ type: "WAIT";
1110
+ data: {
1111
+ seconds: number;
1112
+ };
1257
1113
  };
1258
1114
  enabled: boolean;
1259
1115
  mandatory?: boolean | null | undefined;
@@ -1261,11 +1117,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1261
1117
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1262
1118
  payload: {
1263
1119
  type: "EMPTY";
1264
- } | {
1265
- type: "WAIT";
1266
- data: {
1267
- seconds: number;
1268
- };
1269
1120
  } | {
1270
1121
  type: "PRICE";
1271
1122
  data: {
@@ -1280,6 +1131,11 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1280
1131
  data: {
1281
1132
  text: string;
1282
1133
  };
1134
+ } | {
1135
+ type: "WAIT";
1136
+ data: {
1137
+ seconds: number;
1138
+ };
1283
1139
  };
1284
1140
  enabled: boolean;
1285
1141
  mandatory?: boolean | null | undefined;
@@ -1289,11 +1145,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1289
1145
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1290
1146
  payload: {
1291
1147
  type: "EMPTY";
1292
- } | {
1293
- type: "WAIT";
1294
- data: {
1295
- seconds: number;
1296
- };
1297
1148
  } | {
1298
1149
  type: "PRICE";
1299
1150
  data: {
@@ -1308,6 +1159,11 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1308
1159
  data: {
1309
1160
  text: string;
1310
1161
  };
1162
+ } | {
1163
+ type: "WAIT";
1164
+ data: {
1165
+ seconds: number;
1166
+ };
1311
1167
  };
1312
1168
  enabled: boolean;
1313
1169
  mandatory?: boolean | null | undefined;
@@ -1317,11 +1173,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1317
1173
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1318
1174
  payload: {
1319
1175
  type: "EMPTY";
1320
- } | {
1321
- type: "WAIT";
1322
- data: {
1323
- seconds: number;
1324
- };
1325
1176
  } | {
1326
1177
  type: "PRICE";
1327
1178
  data: {
@@ -1336,11 +1187,17 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1336
1187
  data: {
1337
1188
  text: string;
1338
1189
  };
1190
+ } | {
1191
+ type: "WAIT";
1192
+ data: {
1193
+ seconds: number;
1194
+ };
1339
1195
  };
1340
1196
  enabled: boolean;
1341
1197
  mandatory?: boolean | null | undefined;
1342
1198
  }[];
1343
1199
  }>;
1200
+ type: z.ZodLiteral<"ACTIONS">;
1344
1201
  }, "strip", z.ZodTypeAny, {
1345
1202
  type: "ACTIONS";
1346
1203
  data: {
@@ -1348,11 +1205,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1348
1205
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1349
1206
  payload: {
1350
1207
  type: "EMPTY";
1351
- } | {
1352
- type: "WAIT";
1353
- data: {
1354
- seconds: number;
1355
- };
1356
1208
  } | {
1357
1209
  type: "PRICE";
1358
1210
  data: {
@@ -1367,6 +1219,11 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1367
1219
  data: {
1368
1220
  text: string;
1369
1221
  };
1222
+ } | {
1223
+ type: "WAIT";
1224
+ data: {
1225
+ seconds: number;
1226
+ };
1370
1227
  };
1371
1228
  enabled: boolean;
1372
1229
  mandatory?: boolean | null | undefined;
@@ -1379,11 +1236,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1379
1236
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1380
1237
  payload: {
1381
1238
  type: "EMPTY";
1382
- } | {
1383
- type: "WAIT";
1384
- data: {
1385
- seconds: number;
1386
- };
1387
1239
  } | {
1388
1240
  type: "PRICE";
1389
1241
  data: {
@@ -1398,13 +1250,23 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1398
1250
  data: {
1399
1251
  text: string;
1400
1252
  };
1253
+ } | {
1254
+ type: "WAIT";
1255
+ data: {
1256
+ seconds: number;
1257
+ };
1401
1258
  };
1402
1259
  enabled: boolean;
1403
1260
  mandatory?: boolean | null | undefined;
1404
1261
  }[];
1405
1262
  };
1406
1263
  }>, z.ZodObject<{
1407
- type: z.ZodLiteral<"FEES">;
1264
+ type: z.ZodLiteral<"EMPTY">;
1265
+ }, "strip", z.ZodTypeAny, {
1266
+ type: "EMPTY";
1267
+ }, {
1268
+ type: "EMPTY";
1269
+ }>, z.ZodObject<{
1408
1270
  data: z.ZodObject<{
1409
1271
  fees: z.ZodArray<z.ZodObject<{
1410
1272
  name: z.ZodString;
@@ -1427,6 +1289,7 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1427
1289
  name: string;
1428
1290
  }[];
1429
1291
  }>;
1292
+ type: z.ZodLiteral<"FEES">;
1430
1293
  }, "strip", z.ZodTypeAny, {
1431
1294
  type: "FEES";
1432
1295
  data: {
@@ -1443,13 +1306,28 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1443
1306
  name: string;
1444
1307
  }[];
1445
1308
  };
1446
- }>]>;
1447
- }, "strip", z.ZodTypeAny, {
1448
- id: string;
1449
- name: string;
1450
- payload: {
1451
- type: "EMPTY";
1452
- } | {
1309
+ }>, z.ZodObject<{
1310
+ data: z.ZodObject<{
1311
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
1312
+ value: z.ZodNumber;
1313
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
1314
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1315
+ negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
1316
+ }, "strip", z.ZodTypeAny, {
1317
+ value: number;
1318
+ type: "PERCENTAGE" | "ABSOLUTE";
1319
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1320
+ roundStep?: number | null | undefined;
1321
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1322
+ }, {
1323
+ value: number;
1324
+ type: "PERCENTAGE" | "ABSOLUTE";
1325
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1326
+ roundStep?: number | null | undefined;
1327
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1328
+ }>;
1329
+ type: z.ZodLiteral<"PRICE">;
1330
+ }, "strip", z.ZodTypeAny, {
1453
1331
  type: "PRICE";
1454
1332
  data: {
1455
1333
  value: number;
@@ -1458,40 +1336,124 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1458
1336
  roundStep?: number | null | undefined;
1459
1337
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1460
1338
  };
1461
- } | {
1462
- type: "VISION";
1463
- data: {
1464
- doRemoveBackground: boolean;
1465
- doSmartCrop: boolean;
1466
- doChangeBackground: boolean;
1467
- doRotate: boolean;
1468
- doAddBorders: boolean;
1469
- shadow: boolean;
1470
- targetWidth?: number | null | undefined;
1471
- targetHeight?: number | null | undefined;
1472
- newBackgroundColor?: string | null | undefined;
1473
- newBackgroundUrl?: string | null | undefined;
1474
- rotationAngle?: number | null | undefined;
1475
- borderSize?: number | null | undefined;
1476
- borderColor?: string | null | undefined;
1477
- };
1478
- } | {
1479
- type: "TEXT";
1339
+ }, {
1340
+ type: "PRICE";
1480
1341
  data: {
1481
- text: string;
1342
+ value: number;
1343
+ type: "PERCENTAGE" | "ABSOLUTE";
1344
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1345
+ roundStep?: number | null | undefined;
1346
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1482
1347
  };
1483
- } | {
1348
+ }>, z.ZodObject<{
1349
+ data: z.ZodObject<{
1350
+ text: z.ZodString;
1351
+ }, "strip", z.ZodTypeAny, {
1352
+ text: string;
1353
+ }, {
1354
+ text: string;
1355
+ }>;
1356
+ type: z.ZodLiteral<"TEXT">;
1357
+ }, "strip", z.ZodTypeAny, {
1358
+ type: "TEXT";
1359
+ data: {
1360
+ text: string;
1361
+ };
1362
+ }, {
1363
+ type: "TEXT";
1364
+ data: {
1365
+ text: string;
1366
+ };
1367
+ }>, z.ZodObject<{
1368
+ data: z.ZodObject<{
1369
+ doRemoveBackground: z.ZodBoolean;
1370
+ doSmartCrop: z.ZodBoolean;
1371
+ doChangeBackground: z.ZodBoolean;
1372
+ doRotate: z.ZodBoolean;
1373
+ doAddBorders: z.ZodBoolean;
1374
+ shadow: z.ZodBoolean;
1375
+ targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1376
+ targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1377
+ newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1378
+ newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1379
+ rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1380
+ borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1381
+ borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1382
+ }, "strip", z.ZodTypeAny, {
1383
+ doRemoveBackground: boolean;
1384
+ doSmartCrop: boolean;
1385
+ doChangeBackground: boolean;
1386
+ doRotate: boolean;
1387
+ doAddBorders: boolean;
1388
+ shadow: boolean;
1389
+ targetWidth?: number | null | undefined;
1390
+ targetHeight?: number | null | undefined;
1391
+ newBackgroundColor?: string | null | undefined;
1392
+ newBackgroundUrl?: string | null | undefined;
1393
+ rotationAngle?: number | null | undefined;
1394
+ borderSize?: number | null | undefined;
1395
+ borderColor?: string | null | undefined;
1396
+ }, {
1397
+ doRemoveBackground: boolean;
1398
+ doSmartCrop: boolean;
1399
+ doChangeBackground: boolean;
1400
+ doRotate: boolean;
1401
+ doAddBorders: boolean;
1402
+ shadow: boolean;
1403
+ targetWidth?: number | null | undefined;
1404
+ targetHeight?: number | null | undefined;
1405
+ newBackgroundColor?: string | null | undefined;
1406
+ newBackgroundUrl?: string | null | undefined;
1407
+ rotationAngle?: number | null | undefined;
1408
+ borderSize?: number | null | undefined;
1409
+ borderColor?: string | null | undefined;
1410
+ }>;
1411
+ type: z.ZodLiteral<"VISION">;
1412
+ }, "strip", z.ZodTypeAny, {
1413
+ type: "VISION";
1414
+ data: {
1415
+ doRemoveBackground: boolean;
1416
+ doSmartCrop: boolean;
1417
+ doChangeBackground: boolean;
1418
+ doRotate: boolean;
1419
+ doAddBorders: boolean;
1420
+ shadow: boolean;
1421
+ targetWidth?: number | null | undefined;
1422
+ targetHeight?: number | null | undefined;
1423
+ newBackgroundColor?: string | null | undefined;
1424
+ newBackgroundUrl?: string | null | undefined;
1425
+ rotationAngle?: number | null | undefined;
1426
+ borderSize?: number | null | undefined;
1427
+ borderColor?: string | null | undefined;
1428
+ };
1429
+ }, {
1430
+ type: "VISION";
1431
+ data: {
1432
+ doRemoveBackground: boolean;
1433
+ doSmartCrop: boolean;
1434
+ doChangeBackground: boolean;
1435
+ doRotate: boolean;
1436
+ doAddBorders: boolean;
1437
+ shadow: boolean;
1438
+ targetWidth?: number | null | undefined;
1439
+ targetHeight?: number | null | undefined;
1440
+ newBackgroundColor?: string | null | undefined;
1441
+ newBackgroundUrl?: string | null | undefined;
1442
+ rotationAngle?: number | null | undefined;
1443
+ borderSize?: number | null | undefined;
1444
+ borderColor?: string | null | undefined;
1445
+ };
1446
+ }>]>;
1447
+ }, "strip", z.ZodTypeAny, {
1448
+ id: string;
1449
+ name: string;
1450
+ payload: {
1484
1451
  type: "ACTIONS";
1485
1452
  data: {
1486
1453
  actions: {
1487
1454
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1488
1455
  payload: {
1489
1456
  type: "EMPTY";
1490
- } | {
1491
- type: "WAIT";
1492
- data: {
1493
- seconds: number;
1494
- };
1495
1457
  } | {
1496
1458
  type: "PRICE";
1497
1459
  data: {
@@ -1506,11 +1468,18 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1506
1468
  data: {
1507
1469
  text: string;
1508
1470
  };
1471
+ } | {
1472
+ type: "WAIT";
1473
+ data: {
1474
+ seconds: number;
1475
+ };
1509
1476
  };
1510
1477
  enabled: boolean;
1511
1478
  mandatory?: boolean | null | undefined;
1512
1479
  }[];
1513
1480
  };
1481
+ } | {
1482
+ type: "EMPTY";
1514
1483
  } | {
1515
1484
  type: "FEES";
1516
1485
  data: {
@@ -1519,14 +1488,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1519
1488
  name: string;
1520
1489
  }[];
1521
1490
  };
1522
- };
1523
- caseId: string;
1524
- weight: number;
1525
- }, {
1526
- id: string;
1527
- name: string;
1528
- payload: {
1529
- type: "EMPTY";
1530
1491
  } | {
1531
1492
  type: "PRICE";
1532
1493
  data: {
@@ -1536,6 +1497,11 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1536
1497
  roundStep?: number | null | undefined;
1537
1498
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1538
1499
  };
1500
+ } | {
1501
+ type: "TEXT";
1502
+ data: {
1503
+ text: string;
1504
+ };
1539
1505
  } | {
1540
1506
  type: "VISION";
1541
1507
  data: {
@@ -1553,23 +1519,19 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1553
1519
  borderSize?: number | null | undefined;
1554
1520
  borderColor?: string | null | undefined;
1555
1521
  };
1556
- } | {
1557
- type: "TEXT";
1558
- data: {
1559
- text: string;
1560
- };
1561
- } | {
1522
+ };
1523
+ caseId: string;
1524
+ weight: number;
1525
+ }, {
1526
+ id: string;
1527
+ name: string;
1528
+ payload: {
1562
1529
  type: "ACTIONS";
1563
1530
  data: {
1564
1531
  actions: {
1565
1532
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1566
1533
  payload: {
1567
1534
  type: "EMPTY";
1568
- } | {
1569
- type: "WAIT";
1570
- data: {
1571
- seconds: number;
1572
- };
1573
1535
  } | {
1574
1536
  type: "PRICE";
1575
1537
  data: {
@@ -1584,11 +1546,18 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1584
1546
  data: {
1585
1547
  text: string;
1586
1548
  };
1549
+ } | {
1550
+ type: "WAIT";
1551
+ data: {
1552
+ seconds: number;
1553
+ };
1587
1554
  };
1588
1555
  enabled: boolean;
1589
1556
  mandatory?: boolean | null | undefined;
1590
1557
  }[];
1591
1558
  };
1559
+ } | {
1560
+ type: "EMPTY";
1592
1561
  } | {
1593
1562
  type: "FEES";
1594
1563
  data: {
@@ -1597,22 +1566,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1597
1566
  name: string;
1598
1567
  }[];
1599
1568
  };
1600
- };
1601
- caseId: string;
1602
- weight: number;
1603
- }>, "many">>>;
1604
- }, "strip", z.ZodTypeAny, {
1605
- id: string;
1606
- enabled: boolean;
1607
- testMode: boolean;
1608
- preferenceId: string;
1609
- abTest: boolean;
1610
- savedFiltersId?: string | null | undefined;
1611
- variants?: {
1612
- id: string;
1613
- name: string;
1614
- payload: {
1615
- type: "EMPTY";
1616
1569
  } | {
1617
1570
  type: "PRICE";
1618
1571
  data: {
@@ -1622,6 +1575,11 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1622
1575
  roundStep?: number | null | undefined;
1623
1576
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1624
1577
  };
1578
+ } | {
1579
+ type: "TEXT";
1580
+ data: {
1581
+ text: string;
1582
+ };
1625
1583
  } | {
1626
1584
  type: "VISION";
1627
1585
  data: {
@@ -1639,23 +1597,27 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1639
1597
  borderSize?: number | null | undefined;
1640
1598
  borderColor?: string | null | undefined;
1641
1599
  };
1642
- } | {
1643
- type: "TEXT";
1644
- data: {
1645
- text: string;
1646
- };
1647
- } | {
1600
+ };
1601
+ caseId: string;
1602
+ weight: number;
1603
+ }>, "many">>>;
1604
+ }, "strip", z.ZodTypeAny, {
1605
+ id: string;
1606
+ enabled: boolean;
1607
+ testMode: boolean;
1608
+ preferenceId: string;
1609
+ abTest: boolean;
1610
+ savedFiltersId?: string | null | undefined;
1611
+ variants?: {
1612
+ id: string;
1613
+ name: string;
1614
+ payload: {
1648
1615
  type: "ACTIONS";
1649
1616
  data: {
1650
1617
  actions: {
1651
1618
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1652
1619
  payload: {
1653
1620
  type: "EMPTY";
1654
- } | {
1655
- type: "WAIT";
1656
- data: {
1657
- seconds: number;
1658
- };
1659
1621
  } | {
1660
1622
  type: "PRICE";
1661
1623
  data: {
@@ -1670,11 +1632,18 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1670
1632
  data: {
1671
1633
  text: string;
1672
1634
  };
1635
+ } | {
1636
+ type: "WAIT";
1637
+ data: {
1638
+ seconds: number;
1639
+ };
1673
1640
  };
1674
1641
  enabled: boolean;
1675
1642
  mandatory?: boolean | null | undefined;
1676
1643
  }[];
1677
1644
  };
1645
+ } | {
1646
+ type: "EMPTY";
1678
1647
  } | {
1679
1648
  type: "FEES";
1680
1649
  data: {
@@ -1683,22 +1652,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1683
1652
  name: string;
1684
1653
  }[];
1685
1654
  };
1686
- };
1687
- caseId: string;
1688
- weight: number;
1689
- }[] | null | undefined;
1690
- }, {
1691
- id: string;
1692
- enabled: boolean;
1693
- testMode: boolean;
1694
- preferenceId: string;
1695
- abTest: boolean;
1696
- savedFiltersId?: string | null | undefined;
1697
- variants?: {
1698
- id: string;
1699
- name: string;
1700
- payload: {
1701
- type: "EMPTY";
1702
1655
  } | {
1703
1656
  type: "PRICE";
1704
1657
  data: {
@@ -1708,6 +1661,11 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1708
1661
  roundStep?: number | null | undefined;
1709
1662
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1710
1663
  };
1664
+ } | {
1665
+ type: "TEXT";
1666
+ data: {
1667
+ text: string;
1668
+ };
1711
1669
  } | {
1712
1670
  type: "VISION";
1713
1671
  data: {
@@ -1725,23 +1683,27 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1725
1683
  borderSize?: number | null | undefined;
1726
1684
  borderColor?: string | null | undefined;
1727
1685
  };
1728
- } | {
1729
- type: "TEXT";
1730
- data: {
1731
- text: string;
1732
- };
1733
- } | {
1686
+ };
1687
+ caseId: string;
1688
+ weight: number;
1689
+ }[] | null | undefined;
1690
+ }, {
1691
+ id: string;
1692
+ enabled: boolean;
1693
+ testMode: boolean;
1694
+ preferenceId: string;
1695
+ abTest: boolean;
1696
+ savedFiltersId?: string | null | undefined;
1697
+ variants?: {
1698
+ id: string;
1699
+ name: string;
1700
+ payload: {
1734
1701
  type: "ACTIONS";
1735
1702
  data: {
1736
1703
  actions: {
1737
1704
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
1738
1705
  payload: {
1739
1706
  type: "EMPTY";
1740
- } | {
1741
- type: "WAIT";
1742
- data: {
1743
- seconds: number;
1744
- };
1745
1707
  } | {
1746
1708
  type: "PRICE";
1747
1709
  data: {
@@ -1756,11 +1718,18 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1756
1718
  data: {
1757
1719
  text: string;
1758
1720
  };
1759
- };
1760
- enabled: boolean;
1721
+ } | {
1722
+ type: "WAIT";
1723
+ data: {
1724
+ seconds: number;
1725
+ };
1726
+ };
1727
+ enabled: boolean;
1761
1728
  mandatory?: boolean | null | undefined;
1762
1729
  }[];
1763
1730
  };
1731
+ } | {
1732
+ type: "EMPTY";
1764
1733
  } | {
1765
1734
  type: "FEES";
1766
1735
  data: {
@@ -1769,6 +1738,37 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1769
1738
  name: string;
1770
1739
  }[];
1771
1740
  };
1741
+ } | {
1742
+ type: "PRICE";
1743
+ data: {
1744
+ value: number;
1745
+ type: "PERCENTAGE" | "ABSOLUTE";
1746
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1747
+ roundStep?: number | null | undefined;
1748
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1749
+ };
1750
+ } | {
1751
+ type: "TEXT";
1752
+ data: {
1753
+ text: string;
1754
+ };
1755
+ } | {
1756
+ type: "VISION";
1757
+ data: {
1758
+ doRemoveBackground: boolean;
1759
+ doSmartCrop: boolean;
1760
+ doChangeBackground: boolean;
1761
+ doRotate: boolean;
1762
+ doAddBorders: boolean;
1763
+ shadow: boolean;
1764
+ targetWidth?: number | null | undefined;
1765
+ targetHeight?: number | null | undefined;
1766
+ newBackgroundColor?: string | null | undefined;
1767
+ newBackgroundUrl?: string | null | undefined;
1768
+ rotationAngle?: number | null | undefined;
1769
+ borderSize?: number | null | undefined;
1770
+ borderColor?: string | null | undefined;
1771
+ };
1772
1772
  };
1773
1773
  caseId: string;
1774
1774
  weight: number;
@@ -1780,150 +1780,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1780
1780
  name: z.ZodString;
1781
1781
  weight: z.ZodNumber;
1782
1782
  payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1783
- type: z.ZodLiteral<"EMPTY">;
1784
- }, "strip", z.ZodTypeAny, {
1785
- type: "EMPTY";
1786
- }, {
1787
- type: "EMPTY";
1788
- }>, z.ZodObject<{
1789
- type: z.ZodLiteral<"PRICE">;
1790
- data: z.ZodObject<{
1791
- type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
1792
- value: z.ZodNumber;
1793
- roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
1794
- roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1795
- negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
1796
- }, "strip", z.ZodTypeAny, {
1797
- value: number;
1798
- type: "PERCENTAGE" | "ABSOLUTE";
1799
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1800
- roundStep?: number | null | undefined;
1801
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1802
- }, {
1803
- value: number;
1804
- type: "PERCENTAGE" | "ABSOLUTE";
1805
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1806
- roundStep?: number | null | undefined;
1807
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1808
- }>;
1809
- }, "strip", z.ZodTypeAny, {
1810
- type: "PRICE";
1811
- data: {
1812
- value: number;
1813
- type: "PERCENTAGE" | "ABSOLUTE";
1814
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1815
- roundStep?: number | null | undefined;
1816
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1817
- };
1818
- }, {
1819
- type: "PRICE";
1820
- data: {
1821
- value: number;
1822
- type: "PERCENTAGE" | "ABSOLUTE";
1823
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
1824
- roundStep?: number | null | undefined;
1825
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1826
- };
1827
- }>, z.ZodObject<{
1828
- type: z.ZodLiteral<"VISION">;
1829
- data: z.ZodObject<{
1830
- doRemoveBackground: z.ZodBoolean;
1831
- doSmartCrop: z.ZodBoolean;
1832
- doChangeBackground: z.ZodBoolean;
1833
- doRotate: z.ZodBoolean;
1834
- doAddBorders: z.ZodBoolean;
1835
- shadow: z.ZodBoolean;
1836
- targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1837
- targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1838
- newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1839
- newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1840
- rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1841
- borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1842
- borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1843
- }, "strip", z.ZodTypeAny, {
1844
- doRemoveBackground: boolean;
1845
- doSmartCrop: boolean;
1846
- doChangeBackground: boolean;
1847
- doRotate: boolean;
1848
- doAddBorders: boolean;
1849
- shadow: boolean;
1850
- targetWidth?: number | null | undefined;
1851
- targetHeight?: number | null | undefined;
1852
- newBackgroundColor?: string | null | undefined;
1853
- newBackgroundUrl?: string | null | undefined;
1854
- rotationAngle?: number | null | undefined;
1855
- borderSize?: number | null | undefined;
1856
- borderColor?: string | null | undefined;
1857
- }, {
1858
- doRemoveBackground: boolean;
1859
- doSmartCrop: boolean;
1860
- doChangeBackground: boolean;
1861
- doRotate: boolean;
1862
- doAddBorders: boolean;
1863
- shadow: boolean;
1864
- targetWidth?: number | null | undefined;
1865
- targetHeight?: number | null | undefined;
1866
- newBackgroundColor?: string | null | undefined;
1867
- newBackgroundUrl?: string | null | undefined;
1868
- rotationAngle?: number | null | undefined;
1869
- borderSize?: number | null | undefined;
1870
- borderColor?: string | null | undefined;
1871
- }>;
1872
- }, "strip", z.ZodTypeAny, {
1873
- type: "VISION";
1874
- data: {
1875
- doRemoveBackground: boolean;
1876
- doSmartCrop: boolean;
1877
- doChangeBackground: boolean;
1878
- doRotate: boolean;
1879
- doAddBorders: boolean;
1880
- shadow: boolean;
1881
- targetWidth?: number | null | undefined;
1882
- targetHeight?: number | null | undefined;
1883
- newBackgroundColor?: string | null | undefined;
1884
- newBackgroundUrl?: string | null | undefined;
1885
- rotationAngle?: number | null | undefined;
1886
- borderSize?: number | null | undefined;
1887
- borderColor?: string | null | undefined;
1888
- };
1889
- }, {
1890
- type: "VISION";
1891
- data: {
1892
- doRemoveBackground: boolean;
1893
- doSmartCrop: boolean;
1894
- doChangeBackground: boolean;
1895
- doRotate: boolean;
1896
- doAddBorders: boolean;
1897
- shadow: boolean;
1898
- targetWidth?: number | null | undefined;
1899
- targetHeight?: number | null | undefined;
1900
- newBackgroundColor?: string | null | undefined;
1901
- newBackgroundUrl?: string | null | undefined;
1902
- rotationAngle?: number | null | undefined;
1903
- borderSize?: number | null | undefined;
1904
- borderColor?: string | null | undefined;
1905
- };
1906
- }>, z.ZodObject<{
1907
- type: z.ZodLiteral<"TEXT">;
1908
- data: z.ZodObject<{
1909
- text: z.ZodString;
1910
- }, "strip", z.ZodTypeAny, {
1911
- text: string;
1912
- }, {
1913
- text: string;
1914
- }>;
1915
- }, "strip", z.ZodTypeAny, {
1916
- type: "TEXT";
1917
- data: {
1918
- text: string;
1919
- };
1920
- }, {
1921
- type: "TEXT";
1922
- data: {
1923
- text: string;
1924
- };
1925
- }>, z.ZodObject<{
1926
- type: z.ZodLiteral<"ACTIONS">;
1927
1783
  data: z.ZodObject<{
1928
1784
  actions: z.ZodArray<z.ZodObject<{
1929
1785
  type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO", "OFFER_MANUAL"]>;
@@ -1935,26 +1791,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1935
1791
  }, {
1936
1792
  type: "EMPTY";
1937
1793
  }>, z.ZodObject<{
1938
- type: z.ZodLiteral<"WAIT">;
1939
- data: z.ZodObject<{
1940
- seconds: z.ZodNumber;
1941
- }, "strip", z.ZodTypeAny, {
1942
- seconds: number;
1943
- }, {
1944
- seconds: number;
1945
- }>;
1946
- }, "strip", z.ZodTypeAny, {
1947
- type: "WAIT";
1948
- data: {
1949
- seconds: number;
1950
- };
1951
- }, {
1952
- type: "WAIT";
1953
- data: {
1954
- seconds: number;
1955
- };
1956
- }>, z.ZodObject<{
1957
- type: z.ZodLiteral<"PRICE">;
1958
1794
  data: z.ZodObject<{
1959
1795
  type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
1960
1796
  value: z.ZodNumber;
@@ -1974,6 +1810,7 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1974
1810
  roundStep?: number | null | undefined;
1975
1811
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1976
1812
  }>;
1813
+ type: z.ZodLiteral<"PRICE">;
1977
1814
  }, "strip", z.ZodTypeAny, {
1978
1815
  type: "PRICE";
1979
1816
  data: {
@@ -1993,7 +1830,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
1993
1830
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
1994
1831
  };
1995
1832
  }>, z.ZodObject<{
1996
- type: z.ZodLiteral<"TEXT">;
1997
1833
  data: z.ZodObject<{
1998
1834
  text: z.ZodString;
1999
1835
  }, "strip", z.ZodTypeAny, {
@@ -2001,6 +1837,7 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2001
1837
  }, {
2002
1838
  text: string;
2003
1839
  }>;
1840
+ type: z.ZodLiteral<"TEXT">;
2004
1841
  }, "strip", z.ZodTypeAny, {
2005
1842
  type: "TEXT";
2006
1843
  data: {
@@ -2011,17 +1848,31 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2011
1848
  data: {
2012
1849
  text: string;
2013
1850
  };
1851
+ }>, z.ZodObject<{
1852
+ data: z.ZodObject<{
1853
+ seconds: z.ZodNumber;
1854
+ }, "strip", z.ZodTypeAny, {
1855
+ seconds: number;
1856
+ }, {
1857
+ seconds: number;
1858
+ }>;
1859
+ type: z.ZodLiteral<"WAIT">;
1860
+ }, "strip", z.ZodTypeAny, {
1861
+ type: "WAIT";
1862
+ data: {
1863
+ seconds: number;
1864
+ };
1865
+ }, {
1866
+ type: "WAIT";
1867
+ data: {
1868
+ seconds: number;
1869
+ };
2014
1870
  }>]>;
2015
1871
  mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2016
1872
  }, "strip", z.ZodTypeAny, {
2017
1873
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2018
1874
  payload: {
2019
1875
  type: "EMPTY";
2020
- } | {
2021
- type: "WAIT";
2022
- data: {
2023
- seconds: number;
2024
- };
2025
1876
  } | {
2026
1877
  type: "PRICE";
2027
1878
  data: {
@@ -2036,6 +1887,11 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2036
1887
  data: {
2037
1888
  text: string;
2038
1889
  };
1890
+ } | {
1891
+ type: "WAIT";
1892
+ data: {
1893
+ seconds: number;
1894
+ };
2039
1895
  };
2040
1896
  enabled: boolean;
2041
1897
  mandatory?: boolean | null | undefined;
@@ -2043,11 +1899,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2043
1899
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2044
1900
  payload: {
2045
1901
  type: "EMPTY";
2046
- } | {
2047
- type: "WAIT";
2048
- data: {
2049
- seconds: number;
2050
- };
2051
1902
  } | {
2052
1903
  type: "PRICE";
2053
1904
  data: {
@@ -2062,6 +1913,11 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2062
1913
  data: {
2063
1914
  text: string;
2064
1915
  };
1916
+ } | {
1917
+ type: "WAIT";
1918
+ data: {
1919
+ seconds: number;
1920
+ };
2065
1921
  };
2066
1922
  enabled: boolean;
2067
1923
  mandatory?: boolean | null | undefined;
@@ -2071,11 +1927,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2071
1927
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2072
1928
  payload: {
2073
1929
  type: "EMPTY";
2074
- } | {
2075
- type: "WAIT";
2076
- data: {
2077
- seconds: number;
2078
- };
2079
1930
  } | {
2080
1931
  type: "PRICE";
2081
1932
  data: {
@@ -2090,6 +1941,11 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2090
1941
  data: {
2091
1942
  text: string;
2092
1943
  };
1944
+ } | {
1945
+ type: "WAIT";
1946
+ data: {
1947
+ seconds: number;
1948
+ };
2093
1949
  };
2094
1950
  enabled: boolean;
2095
1951
  mandatory?: boolean | null | undefined;
@@ -2099,11 +1955,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2099
1955
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2100
1956
  payload: {
2101
1957
  type: "EMPTY";
2102
- } | {
2103
- type: "WAIT";
2104
- data: {
2105
- seconds: number;
2106
- };
2107
1958
  } | {
2108
1959
  type: "PRICE";
2109
1960
  data: {
@@ -2118,11 +1969,17 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2118
1969
  data: {
2119
1970
  text: string;
2120
1971
  };
1972
+ } | {
1973
+ type: "WAIT";
1974
+ data: {
1975
+ seconds: number;
1976
+ };
2121
1977
  };
2122
1978
  enabled: boolean;
2123
1979
  mandatory?: boolean | null | undefined;
2124
1980
  }[];
2125
1981
  }>;
1982
+ type: z.ZodLiteral<"ACTIONS">;
2126
1983
  }, "strip", z.ZodTypeAny, {
2127
1984
  type: "ACTIONS";
2128
1985
  data: {
@@ -2130,11 +1987,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2130
1987
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2131
1988
  payload: {
2132
1989
  type: "EMPTY";
2133
- } | {
2134
- type: "WAIT";
2135
- data: {
2136
- seconds: number;
2137
- };
2138
1990
  } | {
2139
1991
  type: "PRICE";
2140
1992
  data: {
@@ -2149,6 +2001,11 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2149
2001
  data: {
2150
2002
  text: string;
2151
2003
  };
2004
+ } | {
2005
+ type: "WAIT";
2006
+ data: {
2007
+ seconds: number;
2008
+ };
2152
2009
  };
2153
2010
  enabled: boolean;
2154
2011
  mandatory?: boolean | null | undefined;
@@ -2161,11 +2018,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2161
2018
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2162
2019
  payload: {
2163
2020
  type: "EMPTY";
2164
- } | {
2165
- type: "WAIT";
2166
- data: {
2167
- seconds: number;
2168
- };
2169
2021
  } | {
2170
2022
  type: "PRICE";
2171
2023
  data: {
@@ -2180,13 +2032,23 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2180
2032
  data: {
2181
2033
  text: string;
2182
2034
  };
2035
+ } | {
2036
+ type: "WAIT";
2037
+ data: {
2038
+ seconds: number;
2039
+ };
2183
2040
  };
2184
2041
  enabled: boolean;
2185
2042
  mandatory?: boolean | null | undefined;
2186
2043
  }[];
2187
2044
  };
2188
2045
  }>, z.ZodObject<{
2189
- type: z.ZodLiteral<"FEES">;
2046
+ type: z.ZodLiteral<"EMPTY">;
2047
+ }, "strip", z.ZodTypeAny, {
2048
+ type: "EMPTY";
2049
+ }, {
2050
+ type: "EMPTY";
2051
+ }>, z.ZodObject<{
2190
2052
  data: z.ZodObject<{
2191
2053
  fees: z.ZodArray<z.ZodObject<{
2192
2054
  name: z.ZodString;
@@ -2209,6 +2071,7 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2209
2071
  name: string;
2210
2072
  }[];
2211
2073
  }>;
2074
+ type: z.ZodLiteral<"FEES">;
2212
2075
  }, "strip", z.ZodTypeAny, {
2213
2076
  type: "FEES";
2214
2077
  data: {
@@ -2225,13 +2088,28 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2225
2088
  name: string;
2226
2089
  }[];
2227
2090
  };
2228
- }>]>;
2229
- }, "strip", z.ZodTypeAny, {
2230
- id: string;
2231
- name: string;
2232
- payload: {
2233
- type: "EMPTY";
2234
- } | {
2091
+ }>, z.ZodObject<{
2092
+ data: z.ZodObject<{
2093
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
2094
+ value: z.ZodNumber;
2095
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
2096
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2097
+ negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
2098
+ }, "strip", z.ZodTypeAny, {
2099
+ value: number;
2100
+ type: "PERCENTAGE" | "ABSOLUTE";
2101
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2102
+ roundStep?: number | null | undefined;
2103
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2104
+ }, {
2105
+ value: number;
2106
+ type: "PERCENTAGE" | "ABSOLUTE";
2107
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2108
+ roundStep?: number | null | undefined;
2109
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2110
+ }>;
2111
+ type: z.ZodLiteral<"PRICE">;
2112
+ }, "strip", z.ZodTypeAny, {
2235
2113
  type: "PRICE";
2236
2114
  data: {
2237
2115
  value: number;
@@ -2240,7 +2118,80 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2240
2118
  roundStep?: number | null | undefined;
2241
2119
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2242
2120
  };
2243
- } | {
2121
+ }, {
2122
+ type: "PRICE";
2123
+ data: {
2124
+ value: number;
2125
+ type: "PERCENTAGE" | "ABSOLUTE";
2126
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2127
+ roundStep?: number | null | undefined;
2128
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2129
+ };
2130
+ }>, z.ZodObject<{
2131
+ data: z.ZodObject<{
2132
+ text: z.ZodString;
2133
+ }, "strip", z.ZodTypeAny, {
2134
+ text: string;
2135
+ }, {
2136
+ text: string;
2137
+ }>;
2138
+ type: z.ZodLiteral<"TEXT">;
2139
+ }, "strip", z.ZodTypeAny, {
2140
+ type: "TEXT";
2141
+ data: {
2142
+ text: string;
2143
+ };
2144
+ }, {
2145
+ type: "TEXT";
2146
+ data: {
2147
+ text: string;
2148
+ };
2149
+ }>, z.ZodObject<{
2150
+ data: z.ZodObject<{
2151
+ doRemoveBackground: z.ZodBoolean;
2152
+ doSmartCrop: z.ZodBoolean;
2153
+ doChangeBackground: z.ZodBoolean;
2154
+ doRotate: z.ZodBoolean;
2155
+ doAddBorders: z.ZodBoolean;
2156
+ shadow: z.ZodBoolean;
2157
+ targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2158
+ targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2159
+ newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2160
+ newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2161
+ rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2162
+ borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2163
+ borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2164
+ }, "strip", z.ZodTypeAny, {
2165
+ doRemoveBackground: boolean;
2166
+ doSmartCrop: boolean;
2167
+ doChangeBackground: boolean;
2168
+ doRotate: boolean;
2169
+ doAddBorders: boolean;
2170
+ shadow: boolean;
2171
+ targetWidth?: number | null | undefined;
2172
+ targetHeight?: number | null | undefined;
2173
+ newBackgroundColor?: string | null | undefined;
2174
+ newBackgroundUrl?: string | null | undefined;
2175
+ rotationAngle?: number | null | undefined;
2176
+ borderSize?: number | null | undefined;
2177
+ borderColor?: string | null | undefined;
2178
+ }, {
2179
+ doRemoveBackground: boolean;
2180
+ doSmartCrop: boolean;
2181
+ doChangeBackground: boolean;
2182
+ doRotate: boolean;
2183
+ doAddBorders: boolean;
2184
+ shadow: boolean;
2185
+ targetWidth?: number | null | undefined;
2186
+ targetHeight?: number | null | undefined;
2187
+ newBackgroundColor?: string | null | undefined;
2188
+ newBackgroundUrl?: string | null | undefined;
2189
+ rotationAngle?: number | null | undefined;
2190
+ borderSize?: number | null | undefined;
2191
+ borderColor?: string | null | undefined;
2192
+ }>;
2193
+ type: z.ZodLiteral<"VISION">;
2194
+ }, "strip", z.ZodTypeAny, {
2244
2195
  type: "VISION";
2245
2196
  data: {
2246
2197
  doRemoveBackground: boolean;
@@ -2257,23 +2208,34 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2257
2208
  borderSize?: number | null | undefined;
2258
2209
  borderColor?: string | null | undefined;
2259
2210
  };
2260
- } | {
2261
- type: "TEXT";
2211
+ }, {
2212
+ type: "VISION";
2262
2213
  data: {
2263
- text: string;
2214
+ doRemoveBackground: boolean;
2215
+ doSmartCrop: boolean;
2216
+ doChangeBackground: boolean;
2217
+ doRotate: boolean;
2218
+ doAddBorders: boolean;
2219
+ shadow: boolean;
2220
+ targetWidth?: number | null | undefined;
2221
+ targetHeight?: number | null | undefined;
2222
+ newBackgroundColor?: string | null | undefined;
2223
+ newBackgroundUrl?: string | null | undefined;
2224
+ rotationAngle?: number | null | undefined;
2225
+ borderSize?: number | null | undefined;
2226
+ borderColor?: string | null | undefined;
2264
2227
  };
2265
- } | {
2228
+ }>]>;
2229
+ }, "strip", z.ZodTypeAny, {
2230
+ id: string;
2231
+ name: string;
2232
+ payload: {
2266
2233
  type: "ACTIONS";
2267
2234
  data: {
2268
2235
  actions: {
2269
2236
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2270
2237
  payload: {
2271
2238
  type: "EMPTY";
2272
- } | {
2273
- type: "WAIT";
2274
- data: {
2275
- seconds: number;
2276
- };
2277
2239
  } | {
2278
2240
  type: "PRICE";
2279
2241
  data: {
@@ -2288,11 +2250,18 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2288
2250
  data: {
2289
2251
  text: string;
2290
2252
  };
2253
+ } | {
2254
+ type: "WAIT";
2255
+ data: {
2256
+ seconds: number;
2257
+ };
2291
2258
  };
2292
2259
  enabled: boolean;
2293
2260
  mandatory?: boolean | null | undefined;
2294
2261
  }[];
2295
2262
  };
2263
+ } | {
2264
+ type: "EMPTY";
2296
2265
  } | {
2297
2266
  type: "FEES";
2298
2267
  data: {
@@ -2301,14 +2270,6 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2301
2270
  name: string;
2302
2271
  }[];
2303
2272
  };
2304
- };
2305
- caseId: string;
2306
- weight: number;
2307
- }, {
2308
- id: string;
2309
- name: string;
2310
- payload: {
2311
- type: "EMPTY";
2312
2273
  } | {
2313
2274
  type: "PRICE";
2314
2275
  data: {
@@ -2318,6 +2279,11 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2318
2279
  roundStep?: number | null | undefined;
2319
2280
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2320
2281
  };
2282
+ } | {
2283
+ type: "TEXT";
2284
+ data: {
2285
+ text: string;
2286
+ };
2321
2287
  } | {
2322
2288
  type: "VISION";
2323
2289
  data: {
@@ -2335,23 +2301,19 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2335
2301
  borderSize?: number | null | undefined;
2336
2302
  borderColor?: string | null | undefined;
2337
2303
  };
2338
- } | {
2339
- type: "TEXT";
2340
- data: {
2341
- text: string;
2342
- };
2343
- } | {
2304
+ };
2305
+ caseId: string;
2306
+ weight: number;
2307
+ }, {
2308
+ id: string;
2309
+ name: string;
2310
+ payload: {
2344
2311
  type: "ACTIONS";
2345
2312
  data: {
2346
2313
  actions: {
2347
2314
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2348
2315
  payload: {
2349
2316
  type: "EMPTY";
2350
- } | {
2351
- type: "WAIT";
2352
- data: {
2353
- seconds: number;
2354
- };
2355
2317
  } | {
2356
2318
  type: "PRICE";
2357
2319
  data: {
@@ -2366,11 +2328,18 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2366
2328
  data: {
2367
2329
  text: string;
2368
2330
  };
2331
+ } | {
2332
+ type: "WAIT";
2333
+ data: {
2334
+ seconds: number;
2335
+ };
2369
2336
  };
2370
2337
  enabled: boolean;
2371
2338
  mandatory?: boolean | null | undefined;
2372
2339
  }[];
2373
2340
  };
2341
+ } | {
2342
+ type: "EMPTY";
2374
2343
  } | {
2375
2344
  type: "FEES";
2376
2345
  data: {
@@ -2379,6 +2348,37 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2379
2348
  name: string;
2380
2349
  }[];
2381
2350
  };
2351
+ } | {
2352
+ type: "PRICE";
2353
+ data: {
2354
+ value: number;
2355
+ type: "PERCENTAGE" | "ABSOLUTE";
2356
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2357
+ roundStep?: number | null | undefined;
2358
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2359
+ };
2360
+ } | {
2361
+ type: "TEXT";
2362
+ data: {
2363
+ text: string;
2364
+ };
2365
+ } | {
2366
+ type: "VISION";
2367
+ data: {
2368
+ doRemoveBackground: boolean;
2369
+ doSmartCrop: boolean;
2370
+ doChangeBackground: boolean;
2371
+ doRotate: boolean;
2372
+ doAddBorders: boolean;
2373
+ shadow: boolean;
2374
+ targetWidth?: number | null | undefined;
2375
+ targetHeight?: number | null | undefined;
2376
+ newBackgroundColor?: string | null | undefined;
2377
+ newBackgroundUrl?: string | null | undefined;
2378
+ rotationAngle?: number | null | undefined;
2379
+ borderSize?: number | null | undefined;
2380
+ borderColor?: string | null | undefined;
2381
+ };
2382
2382
  };
2383
2383
  caseId: string;
2384
2384
  weight: number;
@@ -2402,50 +2402,12 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2402
2402
  id: string;
2403
2403
  name: string;
2404
2404
  payload: {
2405
- type: "EMPTY";
2406
- } | {
2407
- type: "PRICE";
2408
- data: {
2409
- value: number;
2410
- type: "PERCENTAGE" | "ABSOLUTE";
2411
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2412
- roundStep?: number | null | undefined;
2413
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2414
- };
2415
- } | {
2416
- type: "VISION";
2417
- data: {
2418
- doRemoveBackground: boolean;
2419
- doSmartCrop: boolean;
2420
- doChangeBackground: boolean;
2421
- doRotate: boolean;
2422
- doAddBorders: boolean;
2423
- shadow: boolean;
2424
- targetWidth?: number | null | undefined;
2425
- targetHeight?: number | null | undefined;
2426
- newBackgroundColor?: string | null | undefined;
2427
- newBackgroundUrl?: string | null | undefined;
2428
- rotationAngle?: number | null | undefined;
2429
- borderSize?: number | null | undefined;
2430
- borderColor?: string | null | undefined;
2431
- };
2432
- } | {
2433
- type: "TEXT";
2434
- data: {
2435
- text: string;
2436
- };
2437
- } | {
2438
- type: "ACTIONS";
2405
+ type: "ACTIONS";
2439
2406
  data: {
2440
2407
  actions: {
2441
2408
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2442
2409
  payload: {
2443
2410
  type: "EMPTY";
2444
- } | {
2445
- type: "WAIT";
2446
- data: {
2447
- seconds: number;
2448
- };
2449
2411
  } | {
2450
2412
  type: "PRICE";
2451
2413
  data: {
@@ -2460,11 +2422,18 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2460
2422
  data: {
2461
2423
  text: string;
2462
2424
  };
2425
+ } | {
2426
+ type: "WAIT";
2427
+ data: {
2428
+ seconds: number;
2429
+ };
2463
2430
  };
2464
2431
  enabled: boolean;
2465
2432
  mandatory?: boolean | null | undefined;
2466
2433
  }[];
2467
2434
  };
2435
+ } | {
2436
+ type: "EMPTY";
2468
2437
  } | {
2469
2438
  type: "FEES";
2470
2439
  data: {
@@ -2473,6 +2442,37 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2473
2442
  name: string;
2474
2443
  }[];
2475
2444
  };
2445
+ } | {
2446
+ type: "PRICE";
2447
+ data: {
2448
+ value: number;
2449
+ type: "PERCENTAGE" | "ABSOLUTE";
2450
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2451
+ roundStep?: number | null | undefined;
2452
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2453
+ };
2454
+ } | {
2455
+ type: "TEXT";
2456
+ data: {
2457
+ text: string;
2458
+ };
2459
+ } | {
2460
+ type: "VISION";
2461
+ data: {
2462
+ doRemoveBackground: boolean;
2463
+ doSmartCrop: boolean;
2464
+ doChangeBackground: boolean;
2465
+ doRotate: boolean;
2466
+ doAddBorders: boolean;
2467
+ shadow: boolean;
2468
+ targetWidth?: number | null | undefined;
2469
+ targetHeight?: number | null | undefined;
2470
+ newBackgroundColor?: string | null | undefined;
2471
+ newBackgroundUrl?: string | null | undefined;
2472
+ rotationAngle?: number | null | undefined;
2473
+ borderSize?: number | null | undefined;
2474
+ borderColor?: string | null | undefined;
2475
+ };
2476
2476
  };
2477
2477
  caseId: string;
2478
2478
  weight: number;
@@ -2490,50 +2490,12 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2490
2490
  id: string;
2491
2491
  name: string;
2492
2492
  payload: {
2493
- type: "EMPTY";
2494
- } | {
2495
- type: "PRICE";
2496
- data: {
2497
- value: number;
2498
- type: "PERCENTAGE" | "ABSOLUTE";
2499
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2500
- roundStep?: number | null | undefined;
2501
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2502
- };
2503
- } | {
2504
- type: "VISION";
2505
- data: {
2506
- doRemoveBackground: boolean;
2507
- doSmartCrop: boolean;
2508
- doChangeBackground: boolean;
2509
- doRotate: boolean;
2510
- doAddBorders: boolean;
2511
- shadow: boolean;
2512
- targetWidth?: number | null | undefined;
2513
- targetHeight?: number | null | undefined;
2514
- newBackgroundColor?: string | null | undefined;
2515
- newBackgroundUrl?: string | null | undefined;
2516
- rotationAngle?: number | null | undefined;
2517
- borderSize?: number | null | undefined;
2518
- borderColor?: string | null | undefined;
2519
- };
2520
- } | {
2521
- type: "TEXT";
2522
- data: {
2523
- text: string;
2524
- };
2525
- } | {
2526
2493
  type: "ACTIONS";
2527
2494
  data: {
2528
2495
  actions: {
2529
2496
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2530
2497
  payload: {
2531
2498
  type: "EMPTY";
2532
- } | {
2533
- type: "WAIT";
2534
- data: {
2535
- seconds: number;
2536
- };
2537
2499
  } | {
2538
2500
  type: "PRICE";
2539
2501
  data: {
@@ -2548,11 +2510,18 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2548
2510
  data: {
2549
2511
  text: string;
2550
2512
  };
2513
+ } | {
2514
+ type: "WAIT";
2515
+ data: {
2516
+ seconds: number;
2517
+ };
2551
2518
  };
2552
2519
  enabled: boolean;
2553
2520
  mandatory?: boolean | null | undefined;
2554
2521
  }[];
2555
2522
  };
2523
+ } | {
2524
+ type: "EMPTY";
2556
2525
  } | {
2557
2526
  type: "FEES";
2558
2527
  data: {
@@ -2561,6 +2530,37 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2561
2530
  name: string;
2562
2531
  }[];
2563
2532
  };
2533
+ } | {
2534
+ type: "PRICE";
2535
+ data: {
2536
+ value: number;
2537
+ type: "PERCENTAGE" | "ABSOLUTE";
2538
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2539
+ roundStep?: number | null | undefined;
2540
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2541
+ };
2542
+ } | {
2543
+ type: "TEXT";
2544
+ data: {
2545
+ text: string;
2546
+ };
2547
+ } | {
2548
+ type: "VISION";
2549
+ data: {
2550
+ doRemoveBackground: boolean;
2551
+ doSmartCrop: boolean;
2552
+ doChangeBackground: boolean;
2553
+ doRotate: boolean;
2554
+ doAddBorders: boolean;
2555
+ shadow: boolean;
2556
+ targetWidth?: number | null | undefined;
2557
+ targetHeight?: number | null | undefined;
2558
+ newBackgroundColor?: string | null | undefined;
2559
+ newBackgroundUrl?: string | null | undefined;
2560
+ rotationAngle?: number | null | undefined;
2561
+ borderSize?: number | null | undefined;
2562
+ borderColor?: string | null | undefined;
2563
+ };
2564
2564
  };
2565
2565
  caseId: string;
2566
2566
  weight: number;
@@ -2570,50 +2570,12 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2570
2570
  id: string;
2571
2571
  name: string;
2572
2572
  payload: {
2573
- type: "EMPTY";
2574
- } | {
2575
- type: "PRICE";
2576
- data: {
2577
- value: number;
2578
- type: "PERCENTAGE" | "ABSOLUTE";
2579
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2580
- roundStep?: number | null | undefined;
2581
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2582
- };
2583
- } | {
2584
- type: "VISION";
2585
- data: {
2586
- doRemoveBackground: boolean;
2587
- doSmartCrop: boolean;
2588
- doChangeBackground: boolean;
2589
- doRotate: boolean;
2590
- doAddBorders: boolean;
2591
- shadow: boolean;
2592
- targetWidth?: number | null | undefined;
2593
- targetHeight?: number | null | undefined;
2594
- newBackgroundColor?: string | null | undefined;
2595
- newBackgroundUrl?: string | null | undefined;
2596
- rotationAngle?: number | null | undefined;
2597
- borderSize?: number | null | undefined;
2598
- borderColor?: string | null | undefined;
2599
- };
2600
- } | {
2601
- type: "TEXT";
2602
- data: {
2603
- text: string;
2604
- };
2605
- } | {
2606
2573
  type: "ACTIONS";
2607
2574
  data: {
2608
2575
  actions: {
2609
2576
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2610
2577
  payload: {
2611
2578
  type: "EMPTY";
2612
- } | {
2613
- type: "WAIT";
2614
- data: {
2615
- seconds: number;
2616
- };
2617
2579
  } | {
2618
2580
  type: "PRICE";
2619
2581
  data: {
@@ -2628,11 +2590,18 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2628
2590
  data: {
2629
2591
  text: string;
2630
2592
  };
2593
+ } | {
2594
+ type: "WAIT";
2595
+ data: {
2596
+ seconds: number;
2597
+ };
2631
2598
  };
2632
2599
  enabled: boolean;
2633
2600
  mandatory?: boolean | null | undefined;
2634
2601
  }[];
2635
2602
  };
2603
+ } | {
2604
+ type: "EMPTY";
2636
2605
  } | {
2637
2606
  type: "FEES";
2638
2607
  data: {
@@ -2641,6 +2610,37 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2641
2610
  name: string;
2642
2611
  }[];
2643
2612
  };
2613
+ } | {
2614
+ type: "PRICE";
2615
+ data: {
2616
+ value: number;
2617
+ type: "PERCENTAGE" | "ABSOLUTE";
2618
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2619
+ roundStep?: number | null | undefined;
2620
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2621
+ };
2622
+ } | {
2623
+ type: "TEXT";
2624
+ data: {
2625
+ text: string;
2626
+ };
2627
+ } | {
2628
+ type: "VISION";
2629
+ data: {
2630
+ doRemoveBackground: boolean;
2631
+ doSmartCrop: boolean;
2632
+ doChangeBackground: boolean;
2633
+ doRotate: boolean;
2634
+ doAddBorders: boolean;
2635
+ shadow: boolean;
2636
+ targetWidth?: number | null | undefined;
2637
+ targetHeight?: number | null | undefined;
2638
+ newBackgroundColor?: string | null | undefined;
2639
+ newBackgroundUrl?: string | null | undefined;
2640
+ rotationAngle?: number | null | undefined;
2641
+ borderSize?: number | null | undefined;
2642
+ borderColor?: string | null | undefined;
2643
+ };
2644
2644
  };
2645
2645
  caseId: string;
2646
2646
  weight: number;
@@ -2664,50 +2664,12 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2664
2664
  id: string;
2665
2665
  name: string;
2666
2666
  payload: {
2667
- type: "EMPTY";
2668
- } | {
2669
- type: "PRICE";
2670
- data: {
2671
- value: number;
2672
- type: "PERCENTAGE" | "ABSOLUTE";
2673
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2674
- roundStep?: number | null | undefined;
2675
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2676
- };
2677
- } | {
2678
- type: "VISION";
2679
- data: {
2680
- doRemoveBackground: boolean;
2681
- doSmartCrop: boolean;
2682
- doChangeBackground: boolean;
2683
- doRotate: boolean;
2684
- doAddBorders: boolean;
2685
- shadow: boolean;
2686
- targetWidth?: number | null | undefined;
2687
- targetHeight?: number | null | undefined;
2688
- newBackgroundColor?: string | null | undefined;
2689
- newBackgroundUrl?: string | null | undefined;
2690
- rotationAngle?: number | null | undefined;
2691
- borderSize?: number | null | undefined;
2692
- borderColor?: string | null | undefined;
2693
- };
2694
- } | {
2695
- type: "TEXT";
2696
- data: {
2697
- text: string;
2698
- };
2699
- } | {
2700
2667
  type: "ACTIONS";
2701
2668
  data: {
2702
2669
  actions: {
2703
2670
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2704
2671
  payload: {
2705
2672
  type: "EMPTY";
2706
- } | {
2707
- type: "WAIT";
2708
- data: {
2709
- seconds: number;
2710
- };
2711
2673
  } | {
2712
2674
  type: "PRICE";
2713
2675
  data: {
@@ -2722,11 +2684,18 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2722
2684
  data: {
2723
2685
  text: string;
2724
2686
  };
2687
+ } | {
2688
+ type: "WAIT";
2689
+ data: {
2690
+ seconds: number;
2691
+ };
2725
2692
  };
2726
2693
  enabled: boolean;
2727
2694
  mandatory?: boolean | null | undefined;
2728
2695
  }[];
2729
2696
  };
2697
+ } | {
2698
+ type: "EMPTY";
2730
2699
  } | {
2731
2700
  type: "FEES";
2732
2701
  data: {
@@ -2735,6 +2704,37 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2735
2704
  name: string;
2736
2705
  }[];
2737
2706
  };
2707
+ } | {
2708
+ type: "PRICE";
2709
+ data: {
2710
+ value: number;
2711
+ type: "PERCENTAGE" | "ABSOLUTE";
2712
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2713
+ roundStep?: number | null | undefined;
2714
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2715
+ };
2716
+ } | {
2717
+ type: "TEXT";
2718
+ data: {
2719
+ text: string;
2720
+ };
2721
+ } | {
2722
+ type: "VISION";
2723
+ data: {
2724
+ doRemoveBackground: boolean;
2725
+ doSmartCrop: boolean;
2726
+ doChangeBackground: boolean;
2727
+ doRotate: boolean;
2728
+ doAddBorders: boolean;
2729
+ shadow: boolean;
2730
+ targetWidth?: number | null | undefined;
2731
+ targetHeight?: number | null | undefined;
2732
+ newBackgroundColor?: string | null | undefined;
2733
+ newBackgroundUrl?: string | null | undefined;
2734
+ rotationAngle?: number | null | undefined;
2735
+ borderSize?: number | null | undefined;
2736
+ borderColor?: string | null | undefined;
2737
+ };
2738
2738
  };
2739
2739
  caseId: string;
2740
2740
  weight: number;
@@ -2752,50 +2752,12 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2752
2752
  id: string;
2753
2753
  name: string;
2754
2754
  payload: {
2755
- type: "EMPTY";
2756
- } | {
2757
- type: "PRICE";
2758
- data: {
2759
- value: number;
2760
- type: "PERCENTAGE" | "ABSOLUTE";
2761
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2762
- roundStep?: number | null | undefined;
2763
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2764
- };
2765
- } | {
2766
- type: "VISION";
2767
- data: {
2768
- doRemoveBackground: boolean;
2769
- doSmartCrop: boolean;
2770
- doChangeBackground: boolean;
2771
- doRotate: boolean;
2772
- doAddBorders: boolean;
2773
- shadow: boolean;
2774
- targetWidth?: number | null | undefined;
2775
- targetHeight?: number | null | undefined;
2776
- newBackgroundColor?: string | null | undefined;
2777
- newBackgroundUrl?: string | null | undefined;
2778
- rotationAngle?: number | null | undefined;
2779
- borderSize?: number | null | undefined;
2780
- borderColor?: string | null | undefined;
2781
- };
2782
- } | {
2783
- type: "TEXT";
2784
- data: {
2785
- text: string;
2786
- };
2787
- } | {
2788
2755
  type: "ACTIONS";
2789
2756
  data: {
2790
2757
  actions: {
2791
2758
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2792
2759
  payload: {
2793
2760
  type: "EMPTY";
2794
- } | {
2795
- type: "WAIT";
2796
- data: {
2797
- seconds: number;
2798
- };
2799
2761
  } | {
2800
2762
  type: "PRICE";
2801
2763
  data: {
@@ -2810,11 +2772,18 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2810
2772
  data: {
2811
2773
  text: string;
2812
2774
  };
2775
+ } | {
2776
+ type: "WAIT";
2777
+ data: {
2778
+ seconds: number;
2779
+ };
2813
2780
  };
2814
2781
  enabled: boolean;
2815
2782
  mandatory?: boolean | null | undefined;
2816
2783
  }[];
2817
2784
  };
2785
+ } | {
2786
+ type: "EMPTY";
2818
2787
  } | {
2819
2788
  type: "FEES";
2820
2789
  data: {
@@ -2823,6 +2792,37 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2823
2792
  name: string;
2824
2793
  }[];
2825
2794
  };
2795
+ } | {
2796
+ type: "PRICE";
2797
+ data: {
2798
+ value: number;
2799
+ type: "PERCENTAGE" | "ABSOLUTE";
2800
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2801
+ roundStep?: number | null | undefined;
2802
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2803
+ };
2804
+ } | {
2805
+ type: "TEXT";
2806
+ data: {
2807
+ text: string;
2808
+ };
2809
+ } | {
2810
+ type: "VISION";
2811
+ data: {
2812
+ doRemoveBackground: boolean;
2813
+ doSmartCrop: boolean;
2814
+ doChangeBackground: boolean;
2815
+ doRotate: boolean;
2816
+ doAddBorders: boolean;
2817
+ shadow: boolean;
2818
+ targetWidth?: number | null | undefined;
2819
+ targetHeight?: number | null | undefined;
2820
+ newBackgroundColor?: string | null | undefined;
2821
+ newBackgroundUrl?: string | null | undefined;
2822
+ rotationAngle?: number | null | undefined;
2823
+ borderSize?: number | null | undefined;
2824
+ borderColor?: string | null | undefined;
2825
+ };
2826
2826
  };
2827
2827
  caseId: string;
2828
2828
  weight: number;
@@ -2832,50 +2832,12 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2832
2832
  id: string;
2833
2833
  name: string;
2834
2834
  payload: {
2835
- type: "EMPTY";
2836
- } | {
2837
- type: "PRICE";
2838
- data: {
2839
- value: number;
2840
- type: "PERCENTAGE" | "ABSOLUTE";
2841
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2842
- roundStep?: number | null | undefined;
2843
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2844
- };
2845
- } | {
2846
- type: "VISION";
2847
- data: {
2848
- doRemoveBackground: boolean;
2849
- doSmartCrop: boolean;
2850
- doChangeBackground: boolean;
2851
- doRotate: boolean;
2852
- doAddBorders: boolean;
2853
- shadow: boolean;
2854
- targetWidth?: number | null | undefined;
2855
- targetHeight?: number | null | undefined;
2856
- newBackgroundColor?: string | null | undefined;
2857
- newBackgroundUrl?: string | null | undefined;
2858
- rotationAngle?: number | null | undefined;
2859
- borderSize?: number | null | undefined;
2860
- borderColor?: string | null | undefined;
2861
- };
2862
- } | {
2863
- type: "TEXT";
2864
- data: {
2865
- text: string;
2866
- };
2867
- } | {
2868
2835
  type: "ACTIONS";
2869
2836
  data: {
2870
2837
  actions: {
2871
2838
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
2872
2839
  payload: {
2873
2840
  type: "EMPTY";
2874
- } | {
2875
- type: "WAIT";
2876
- data: {
2877
- seconds: number;
2878
- };
2879
2841
  } | {
2880
2842
  type: "PRICE";
2881
2843
  data: {
@@ -2890,11 +2852,18 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2890
2852
  data: {
2891
2853
  text: string;
2892
2854
  };
2855
+ } | {
2856
+ type: "WAIT";
2857
+ data: {
2858
+ seconds: number;
2859
+ };
2893
2860
  };
2894
2861
  enabled: boolean;
2895
2862
  mandatory?: boolean | null | undefined;
2896
2863
  }[];
2897
2864
  };
2865
+ } | {
2866
+ type: "EMPTY";
2898
2867
  } | {
2899
2868
  type: "FEES";
2900
2869
  data: {
@@ -2903,6 +2872,37 @@ export declare const PreferenceWithCaseSchema: z.ZodObject<{
2903
2872
  name: string;
2904
2873
  }[];
2905
2874
  };
2875
+ } | {
2876
+ type: "PRICE";
2877
+ data: {
2878
+ value: number;
2879
+ type: "PERCENTAGE" | "ABSOLUTE";
2880
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2881
+ roundStep?: number | null | undefined;
2882
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
2883
+ };
2884
+ } | {
2885
+ type: "TEXT";
2886
+ data: {
2887
+ text: string;
2888
+ };
2889
+ } | {
2890
+ type: "VISION";
2891
+ data: {
2892
+ doRemoveBackground: boolean;
2893
+ doSmartCrop: boolean;
2894
+ doChangeBackground: boolean;
2895
+ doRotate: boolean;
2896
+ doAddBorders: boolean;
2897
+ shadow: boolean;
2898
+ targetWidth?: number | null | undefined;
2899
+ targetHeight?: number | null | undefined;
2900
+ newBackgroundColor?: string | null | undefined;
2901
+ newBackgroundUrl?: string | null | undefined;
2902
+ rotationAngle?: number | null | undefined;
2903
+ borderSize?: number | null | undefined;
2904
+ borderColor?: string | null | undefined;
2905
+ };
2906
2906
  };
2907
2907
  caseId: string;
2908
2908
  weight: number;