controlresell 2.2.5 → 2.2.7

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