controlresell 2.2.12 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/package.json +2 -2
  2. package/src/com/controlresell/models/catalogs/Catalog.d.ts +3 -6
  3. package/src/com/controlresell/models/catalogs/Catalog.js +2 -3
  4. package/src/com/controlresell/models/catalogs/Catalog.ts +2 -3
  5. package/src/com/controlresell/models/catalogs/CatalogRoot.d.ts +5 -10
  6. package/src/com/controlresell/models/items/CreatedItems.d.ts +139 -130
  7. package/src/com/controlresell/models/items/Item.d.ts +111 -104
  8. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +139 -130
  9. package/src/com/controlresell/models/items/UpdatedItem.d.ts +139 -130
  10. package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +71 -71
  11. package/src/com/controlresell/models/items/history/ItemHistory.d.ts +78 -78
  12. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.d.ts +156 -18
  13. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.js +32 -26
  14. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.ts +43 -26
  15. package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +5 -0
  16. package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +5 -0
  17. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.d.ts +2 -2
  18. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +4 -4
  19. package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +15 -0
  20. package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts +5 -0
  21. package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +21 -0
  22. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts +6 -0
  23. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.js +4 -0
  24. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.ts +4 -0
  25. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.d.ts +6 -0
  26. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.js +4 -1
  27. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.ts +4 -1
  28. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.d.ts +3 -0
  29. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.js +7 -0
  30. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.ts +6 -0
  31. package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.d.ts +6 -0
  32. package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.js +4 -0
  33. package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.ts +4 -0
  34. package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.d.ts +10 -0
  35. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.d.ts +6 -0
  36. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.js +4 -0
  37. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.ts +4 -0
  38. package/src/com/controlresell/models/platforms/favorites/Favorite.d.ts +26 -0
  39. package/src/com/controlresell/models/platforms/favorites/FavoriteOnPlatformUpdateRequest.d.ts +5 -0
  40. package/src/com/controlresell/models/platforms/orders/Order.d.ts +9 -0
  41. package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.d.ts +5 -0
  42. package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +7 -0
  43. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +150 -130
  44. package/src/com/controlresell/models/platforms/transactions/Transaction.d.ts +9 -0
  45. package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.d.ts +7 -0
  46. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +150 -130
  47. package/src/com/controlresell/models/preferences/Preference.d.ts +356 -356
  48. package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +144 -130
  49. package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts +1121 -1121
  50. package/src/com/controlresell/models/preferences/PreferenceWithChildren.d.ts +815 -815
  51. package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts +275 -275
  52. package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts +276 -276
  53. package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +286 -286
  54. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +31 -31
  55. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.d.ts +96 -5
  56. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.js +20 -16
  57. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.ts +27 -16
  58. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +41 -41
  59. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +3476 -41
  60. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.js +3 -1
  61. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.ts +3 -1
  62. package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +229 -229
  63. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts +232 -232
  64. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts +541 -83
  65. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.js +33 -27
  66. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.ts +44 -27
  67. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +229 -229
  68. package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts +5 -0
  69. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +5 -0
  70. package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.d.ts +3 -0
  71. package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.js +1 -0
  72. package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.ts +1 -0
  73. package/src/com/controlresell/models/users/platforms/UserOnPlatform.d.ts +3 -0
  74. package/src/com/controlresell/models/users/platforms/UserOnPlatform.js +1 -0
  75. package/src/com/controlresell/models/users/platforms/UserOnPlatform.ts +1 -0
  76. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +1205 -0
  77. package/src/com/controlresell/models/users/ws/UserWsPayload.js +34 -0
  78. package/src/com/controlresell/models/users/ws/UserWsPayload.ts +43 -0
  79. package/src/index.d.ts +2 -0
  80. package/src/index.js +7 -3
  81. package/src/index.ts +2 -0
@@ -19,150 +19,6 @@ export declare const PreferenceSchema: z.ZodObject<{
19
19
  name: z.ZodString;
20
20
  weight: z.ZodNumber;
21
21
  payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
22
- type: z.ZodLiteral<"EMPTY">;
23
- }, "strip", z.ZodTypeAny, {
24
- type: "EMPTY";
25
- }, {
26
- type: "EMPTY";
27
- }>, z.ZodObject<{
28
- type: z.ZodLiteral<"PRICE">;
29
- data: z.ZodObject<{
30
- type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
31
- value: z.ZodNumber;
32
- roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
33
- roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
- negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
35
- }, "strip", z.ZodTypeAny, {
36
- value: number;
37
- type: "PERCENTAGE" | "ABSOLUTE";
38
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
39
- roundStep?: number | null | undefined;
40
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
41
- }, {
42
- value: number;
43
- type: "PERCENTAGE" | "ABSOLUTE";
44
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
45
- roundStep?: number | null | undefined;
46
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
47
- }>;
48
- }, "strip", z.ZodTypeAny, {
49
- type: "PRICE";
50
- data: {
51
- value: number;
52
- type: "PERCENTAGE" | "ABSOLUTE";
53
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
54
- roundStep?: number | null | undefined;
55
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
56
- };
57
- }, {
58
- type: "PRICE";
59
- data: {
60
- value: number;
61
- type: "PERCENTAGE" | "ABSOLUTE";
62
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
63
- roundStep?: number | null | undefined;
64
- negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
65
- };
66
- }>, z.ZodObject<{
67
- type: z.ZodLiteral<"VISION">;
68
- data: z.ZodObject<{
69
- doRemoveBackground: z.ZodBoolean;
70
- doSmartCrop: z.ZodBoolean;
71
- doChangeBackground: z.ZodBoolean;
72
- doRotate: z.ZodBoolean;
73
- doAddBorders: z.ZodBoolean;
74
- shadow: z.ZodBoolean;
75
- targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
76
- targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
77
- newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
- newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
- rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
80
- borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
81
- borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
- }, "strip", z.ZodTypeAny, {
83
- doRemoveBackground: boolean;
84
- doSmartCrop: boolean;
85
- doChangeBackground: boolean;
86
- doRotate: boolean;
87
- doAddBorders: boolean;
88
- shadow: boolean;
89
- targetWidth?: number | null | undefined;
90
- targetHeight?: number | null | undefined;
91
- newBackgroundColor?: string | null | undefined;
92
- newBackgroundUrl?: string | null | undefined;
93
- rotationAngle?: number | null | undefined;
94
- borderSize?: number | null | undefined;
95
- borderColor?: string | null | undefined;
96
- }, {
97
- doRemoveBackground: boolean;
98
- doSmartCrop: boolean;
99
- doChangeBackground: boolean;
100
- doRotate: boolean;
101
- doAddBorders: boolean;
102
- shadow: boolean;
103
- targetWidth?: number | null | undefined;
104
- targetHeight?: number | null | undefined;
105
- newBackgroundColor?: string | null | undefined;
106
- newBackgroundUrl?: string | null | undefined;
107
- rotationAngle?: number | null | undefined;
108
- borderSize?: number | null | undefined;
109
- borderColor?: string | null | undefined;
110
- }>;
111
- }, "strip", z.ZodTypeAny, {
112
- type: "VISION";
113
- data: {
114
- doRemoveBackground: boolean;
115
- doSmartCrop: boolean;
116
- doChangeBackground: boolean;
117
- doRotate: boolean;
118
- doAddBorders: boolean;
119
- shadow: boolean;
120
- targetWidth?: number | null | undefined;
121
- targetHeight?: number | null | undefined;
122
- newBackgroundColor?: string | null | undefined;
123
- newBackgroundUrl?: string | null | undefined;
124
- rotationAngle?: number | null | undefined;
125
- borderSize?: number | null | undefined;
126
- borderColor?: string | null | undefined;
127
- };
128
- }, {
129
- type: "VISION";
130
- data: {
131
- doRemoveBackground: boolean;
132
- doSmartCrop: boolean;
133
- doChangeBackground: boolean;
134
- doRotate: boolean;
135
- doAddBorders: boolean;
136
- shadow: boolean;
137
- targetWidth?: number | null | undefined;
138
- targetHeight?: number | null | undefined;
139
- newBackgroundColor?: string | null | undefined;
140
- newBackgroundUrl?: string | null | undefined;
141
- rotationAngle?: number | null | undefined;
142
- borderSize?: number | null | undefined;
143
- borderColor?: string | null | undefined;
144
- };
145
- }>, z.ZodObject<{
146
- type: z.ZodLiteral<"TEXT">;
147
- data: z.ZodObject<{
148
- text: z.ZodString;
149
- }, "strip", z.ZodTypeAny, {
150
- text: string;
151
- }, {
152
- text: string;
153
- }>;
154
- }, "strip", z.ZodTypeAny, {
155
- type: "TEXT";
156
- data: {
157
- text: string;
158
- };
159
- }, {
160
- type: "TEXT";
161
- data: {
162
- text: string;
163
- };
164
- }>, z.ZodObject<{
165
- type: z.ZodLiteral<"ACTIONS">;
166
22
  data: z.ZodObject<{
167
23
  actions: z.ZodArray<z.ZodObject<{
168
24
  type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO", "OFFER_MANUAL"]>;
@@ -174,26 +30,6 @@ export declare const PreferenceSchema: z.ZodObject<{
174
30
  }, {
175
31
  type: "EMPTY";
176
32
  }>, z.ZodObject<{
177
- type: z.ZodLiteral<"WAIT">;
178
- data: z.ZodObject<{
179
- seconds: z.ZodNumber;
180
- }, "strip", z.ZodTypeAny, {
181
- seconds: number;
182
- }, {
183
- seconds: number;
184
- }>;
185
- }, "strip", z.ZodTypeAny, {
186
- type: "WAIT";
187
- data: {
188
- seconds: number;
189
- };
190
- }, {
191
- type: "WAIT";
192
- data: {
193
- seconds: number;
194
- };
195
- }>, z.ZodObject<{
196
- type: z.ZodLiteral<"PRICE">;
197
33
  data: z.ZodObject<{
198
34
  type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
199
35
  value: z.ZodNumber;
@@ -213,6 +49,7 @@ export declare const PreferenceSchema: z.ZodObject<{
213
49
  roundStep?: number | null | undefined;
214
50
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
215
51
  }>;
52
+ type: z.ZodLiteral<"PRICE">;
216
53
  }, "strip", z.ZodTypeAny, {
217
54
  type: "PRICE";
218
55
  data: {
@@ -232,7 +69,6 @@ export declare const PreferenceSchema: z.ZodObject<{
232
69
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
233
70
  };
234
71
  }>, z.ZodObject<{
235
- type: z.ZodLiteral<"TEXT">;
236
72
  data: z.ZodObject<{
237
73
  text: z.ZodString;
238
74
  }, "strip", z.ZodTypeAny, {
@@ -240,6 +76,7 @@ export declare const PreferenceSchema: z.ZodObject<{
240
76
  }, {
241
77
  text: string;
242
78
  }>;
79
+ type: z.ZodLiteral<"TEXT">;
243
80
  }, "strip", z.ZodTypeAny, {
244
81
  type: "TEXT";
245
82
  data: {
@@ -250,17 +87,31 @@ export declare const PreferenceSchema: z.ZodObject<{
250
87
  data: {
251
88
  text: string;
252
89
  };
90
+ }>, z.ZodObject<{
91
+ data: z.ZodObject<{
92
+ seconds: z.ZodNumber;
93
+ }, "strip", z.ZodTypeAny, {
94
+ seconds: number;
95
+ }, {
96
+ seconds: number;
97
+ }>;
98
+ type: z.ZodLiteral<"WAIT">;
99
+ }, "strip", z.ZodTypeAny, {
100
+ type: "WAIT";
101
+ data: {
102
+ seconds: number;
103
+ };
104
+ }, {
105
+ type: "WAIT";
106
+ data: {
107
+ seconds: number;
108
+ };
253
109
  }>]>;
254
110
  mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
255
111
  }, "strip", z.ZodTypeAny, {
256
112
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
257
113
  payload: {
258
114
  type: "EMPTY";
259
- } | {
260
- type: "WAIT";
261
- data: {
262
- seconds: number;
263
- };
264
115
  } | {
265
116
  type: "PRICE";
266
117
  data: {
@@ -275,6 +126,11 @@ export declare const PreferenceSchema: z.ZodObject<{
275
126
  data: {
276
127
  text: string;
277
128
  };
129
+ } | {
130
+ type: "WAIT";
131
+ data: {
132
+ seconds: number;
133
+ };
278
134
  };
279
135
  enabled: boolean;
280
136
  mandatory?: boolean | null | undefined;
@@ -282,11 +138,6 @@ export declare const PreferenceSchema: z.ZodObject<{
282
138
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
283
139
  payload: {
284
140
  type: "EMPTY";
285
- } | {
286
- type: "WAIT";
287
- data: {
288
- seconds: number;
289
- };
290
141
  } | {
291
142
  type: "PRICE";
292
143
  data: {
@@ -301,6 +152,11 @@ export declare const PreferenceSchema: z.ZodObject<{
301
152
  data: {
302
153
  text: string;
303
154
  };
155
+ } | {
156
+ type: "WAIT";
157
+ data: {
158
+ seconds: number;
159
+ };
304
160
  };
305
161
  enabled: boolean;
306
162
  mandatory?: boolean | null | undefined;
@@ -310,11 +166,6 @@ export declare const PreferenceSchema: z.ZodObject<{
310
166
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
311
167
  payload: {
312
168
  type: "EMPTY";
313
- } | {
314
- type: "WAIT";
315
- data: {
316
- seconds: number;
317
- };
318
169
  } | {
319
170
  type: "PRICE";
320
171
  data: {
@@ -329,6 +180,11 @@ export declare const PreferenceSchema: z.ZodObject<{
329
180
  data: {
330
181
  text: string;
331
182
  };
183
+ } | {
184
+ type: "WAIT";
185
+ data: {
186
+ seconds: number;
187
+ };
332
188
  };
333
189
  enabled: boolean;
334
190
  mandatory?: boolean | null | undefined;
@@ -338,11 +194,6 @@ export declare const PreferenceSchema: z.ZodObject<{
338
194
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
339
195
  payload: {
340
196
  type: "EMPTY";
341
- } | {
342
- type: "WAIT";
343
- data: {
344
- seconds: number;
345
- };
346
197
  } | {
347
198
  type: "PRICE";
348
199
  data: {
@@ -357,11 +208,17 @@ export declare const PreferenceSchema: z.ZodObject<{
357
208
  data: {
358
209
  text: string;
359
210
  };
211
+ } | {
212
+ type: "WAIT";
213
+ data: {
214
+ seconds: number;
215
+ };
360
216
  };
361
217
  enabled: boolean;
362
218
  mandatory?: boolean | null | undefined;
363
219
  }[];
364
220
  }>;
221
+ type: z.ZodLiteral<"ACTIONS">;
365
222
  }, "strip", z.ZodTypeAny, {
366
223
  type: "ACTIONS";
367
224
  data: {
@@ -369,11 +226,6 @@ export declare const PreferenceSchema: z.ZodObject<{
369
226
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
370
227
  payload: {
371
228
  type: "EMPTY";
372
- } | {
373
- type: "WAIT";
374
- data: {
375
- seconds: number;
376
- };
377
229
  } | {
378
230
  type: "PRICE";
379
231
  data: {
@@ -388,6 +240,11 @@ export declare const PreferenceSchema: z.ZodObject<{
388
240
  data: {
389
241
  text: string;
390
242
  };
243
+ } | {
244
+ type: "WAIT";
245
+ data: {
246
+ seconds: number;
247
+ };
391
248
  };
392
249
  enabled: boolean;
393
250
  mandatory?: boolean | null | undefined;
@@ -400,11 +257,6 @@ export declare const PreferenceSchema: z.ZodObject<{
400
257
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
401
258
  payload: {
402
259
  type: "EMPTY";
403
- } | {
404
- type: "WAIT";
405
- data: {
406
- seconds: number;
407
- };
408
260
  } | {
409
261
  type: "PRICE";
410
262
  data: {
@@ -419,13 +271,23 @@ export declare const PreferenceSchema: z.ZodObject<{
419
271
  data: {
420
272
  text: string;
421
273
  };
274
+ } | {
275
+ type: "WAIT";
276
+ data: {
277
+ seconds: number;
278
+ };
422
279
  };
423
280
  enabled: boolean;
424
281
  mandatory?: boolean | null | undefined;
425
282
  }[];
426
283
  };
427
284
  }>, z.ZodObject<{
428
- type: z.ZodLiteral<"FEES">;
285
+ type: z.ZodLiteral<"EMPTY">;
286
+ }, "strip", z.ZodTypeAny, {
287
+ type: "EMPTY";
288
+ }, {
289
+ type: "EMPTY";
290
+ }>, z.ZodObject<{
429
291
  data: z.ZodObject<{
430
292
  fees: z.ZodArray<z.ZodObject<{
431
293
  name: z.ZodString;
@@ -448,6 +310,7 @@ export declare const PreferenceSchema: z.ZodObject<{
448
310
  name: string;
449
311
  }[];
450
312
  }>;
313
+ type: z.ZodLiteral<"FEES">;
451
314
  }, "strip", z.ZodTypeAny, {
452
315
  type: "FEES";
453
316
  data: {
@@ -464,13 +327,28 @@ export declare const PreferenceSchema: z.ZodObject<{
464
327
  name: string;
465
328
  }[];
466
329
  };
467
- }>]>;
468
- }, "strip", z.ZodTypeAny, {
469
- id: string;
470
- name: string;
471
- payload: {
472
- type: "EMPTY";
473
- } | {
330
+ }>, z.ZodObject<{
331
+ data: z.ZodObject<{
332
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
333
+ value: z.ZodNumber;
334
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
335
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
336
+ negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
337
+ }, "strip", z.ZodTypeAny, {
338
+ value: number;
339
+ type: "PERCENTAGE" | "ABSOLUTE";
340
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
341
+ roundStep?: number | null | undefined;
342
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
343
+ }, {
344
+ value: number;
345
+ type: "PERCENTAGE" | "ABSOLUTE";
346
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
347
+ roundStep?: number | null | undefined;
348
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
349
+ }>;
350
+ type: z.ZodLiteral<"PRICE">;
351
+ }, "strip", z.ZodTypeAny, {
474
352
  type: "PRICE";
475
353
  data: {
476
354
  value: number;
@@ -479,7 +357,80 @@ export declare const PreferenceSchema: z.ZodObject<{
479
357
  roundStep?: number | null | undefined;
480
358
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
481
359
  };
482
- } | {
360
+ }, {
361
+ type: "PRICE";
362
+ data: {
363
+ value: number;
364
+ type: "PERCENTAGE" | "ABSOLUTE";
365
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
366
+ roundStep?: number | null | undefined;
367
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
368
+ };
369
+ }>, z.ZodObject<{
370
+ data: z.ZodObject<{
371
+ text: z.ZodString;
372
+ }, "strip", z.ZodTypeAny, {
373
+ text: string;
374
+ }, {
375
+ text: string;
376
+ }>;
377
+ type: z.ZodLiteral<"TEXT">;
378
+ }, "strip", z.ZodTypeAny, {
379
+ type: "TEXT";
380
+ data: {
381
+ text: string;
382
+ };
383
+ }, {
384
+ type: "TEXT";
385
+ data: {
386
+ text: string;
387
+ };
388
+ }>, z.ZodObject<{
389
+ data: z.ZodObject<{
390
+ doRemoveBackground: z.ZodBoolean;
391
+ doSmartCrop: z.ZodBoolean;
392
+ doChangeBackground: z.ZodBoolean;
393
+ doRotate: z.ZodBoolean;
394
+ doAddBorders: z.ZodBoolean;
395
+ shadow: z.ZodBoolean;
396
+ targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
397
+ targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
398
+ newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
399
+ newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
400
+ rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
401
+ borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
402
+ borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
403
+ }, "strip", z.ZodTypeAny, {
404
+ doRemoveBackground: boolean;
405
+ doSmartCrop: boolean;
406
+ doChangeBackground: boolean;
407
+ doRotate: boolean;
408
+ doAddBorders: boolean;
409
+ shadow: boolean;
410
+ targetWidth?: number | null | undefined;
411
+ targetHeight?: number | null | undefined;
412
+ newBackgroundColor?: string | null | undefined;
413
+ newBackgroundUrl?: string | null | undefined;
414
+ rotationAngle?: number | null | undefined;
415
+ borderSize?: number | null | undefined;
416
+ borderColor?: string | null | undefined;
417
+ }, {
418
+ doRemoveBackground: boolean;
419
+ doSmartCrop: boolean;
420
+ doChangeBackground: boolean;
421
+ doRotate: boolean;
422
+ doAddBorders: boolean;
423
+ shadow: boolean;
424
+ targetWidth?: number | null | undefined;
425
+ targetHeight?: number | null | undefined;
426
+ newBackgroundColor?: string | null | undefined;
427
+ newBackgroundUrl?: string | null | undefined;
428
+ rotationAngle?: number | null | undefined;
429
+ borderSize?: number | null | undefined;
430
+ borderColor?: string | null | undefined;
431
+ }>;
432
+ type: z.ZodLiteral<"VISION">;
433
+ }, "strip", z.ZodTypeAny, {
483
434
  type: "VISION";
484
435
  data: {
485
436
  doRemoveBackground: boolean;
@@ -496,23 +447,34 @@ export declare const PreferenceSchema: z.ZodObject<{
496
447
  borderSize?: number | null | undefined;
497
448
  borderColor?: string | null | undefined;
498
449
  };
499
- } | {
500
- type: "TEXT";
450
+ }, {
451
+ type: "VISION";
501
452
  data: {
502
- text: string;
453
+ doRemoveBackground: boolean;
454
+ doSmartCrop: boolean;
455
+ doChangeBackground: boolean;
456
+ doRotate: boolean;
457
+ doAddBorders: boolean;
458
+ shadow: boolean;
459
+ targetWidth?: number | null | undefined;
460
+ targetHeight?: number | null | undefined;
461
+ newBackgroundColor?: string | null | undefined;
462
+ newBackgroundUrl?: string | null | undefined;
463
+ rotationAngle?: number | null | undefined;
464
+ borderSize?: number | null | undefined;
465
+ borderColor?: string | null | undefined;
503
466
  };
504
- } | {
467
+ }>]>;
468
+ }, "strip", z.ZodTypeAny, {
469
+ id: string;
470
+ name: string;
471
+ payload: {
505
472
  type: "ACTIONS";
506
473
  data: {
507
474
  actions: {
508
475
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
509
476
  payload: {
510
477
  type: "EMPTY";
511
- } | {
512
- type: "WAIT";
513
- data: {
514
- seconds: number;
515
- };
516
478
  } | {
517
479
  type: "PRICE";
518
480
  data: {
@@ -527,11 +489,18 @@ export declare const PreferenceSchema: z.ZodObject<{
527
489
  data: {
528
490
  text: string;
529
491
  };
492
+ } | {
493
+ type: "WAIT";
494
+ data: {
495
+ seconds: number;
496
+ };
530
497
  };
531
498
  enabled: boolean;
532
499
  mandatory?: boolean | null | undefined;
533
500
  }[];
534
501
  };
502
+ } | {
503
+ type: "EMPTY";
535
504
  } | {
536
505
  type: "FEES";
537
506
  data: {
@@ -540,14 +509,6 @@ export declare const PreferenceSchema: z.ZodObject<{
540
509
  name: string;
541
510
  }[];
542
511
  };
543
- };
544
- caseId: string;
545
- weight: number;
546
- }, {
547
- id: string;
548
- name: string;
549
- payload: {
550
- type: "EMPTY";
551
512
  } | {
552
513
  type: "PRICE";
553
514
  data: {
@@ -557,6 +518,11 @@ export declare const PreferenceSchema: z.ZodObject<{
557
518
  roundStep?: number | null | undefined;
558
519
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
559
520
  };
521
+ } | {
522
+ type: "TEXT";
523
+ data: {
524
+ text: string;
525
+ };
560
526
  } | {
561
527
  type: "VISION";
562
528
  data: {
@@ -574,23 +540,19 @@ export declare const PreferenceSchema: z.ZodObject<{
574
540
  borderSize?: number | null | undefined;
575
541
  borderColor?: string | null | undefined;
576
542
  };
577
- } | {
578
- type: "TEXT";
579
- data: {
580
- text: string;
581
- };
582
- } | {
543
+ };
544
+ caseId: string;
545
+ weight: number;
546
+ }, {
547
+ id: string;
548
+ name: string;
549
+ payload: {
583
550
  type: "ACTIONS";
584
551
  data: {
585
552
  actions: {
586
553
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
587
554
  payload: {
588
555
  type: "EMPTY";
589
- } | {
590
- type: "WAIT";
591
- data: {
592
- seconds: number;
593
- };
594
556
  } | {
595
557
  type: "PRICE";
596
558
  data: {
@@ -605,11 +567,18 @@ export declare const PreferenceSchema: z.ZodObject<{
605
567
  data: {
606
568
  text: string;
607
569
  };
570
+ } | {
571
+ type: "WAIT";
572
+ data: {
573
+ seconds: number;
574
+ };
608
575
  };
609
576
  enabled: boolean;
610
577
  mandatory?: boolean | null | undefined;
611
578
  }[];
612
579
  };
580
+ } | {
581
+ type: "EMPTY";
613
582
  } | {
614
583
  type: "FEES";
615
584
  data: {
@@ -618,22 +587,6 @@ export declare const PreferenceSchema: z.ZodObject<{
618
587
  name: string;
619
588
  }[];
620
589
  };
621
- };
622
- caseId: string;
623
- weight: number;
624
- }>, "many">>>;
625
- }, "strip", z.ZodTypeAny, {
626
- id: string;
627
- enabled: boolean;
628
- testMode: boolean;
629
- preferenceId: string;
630
- abTest: boolean;
631
- savedFiltersId?: string | null | undefined;
632
- variants?: {
633
- id: string;
634
- name: string;
635
- payload: {
636
- type: "EMPTY";
637
590
  } | {
638
591
  type: "PRICE";
639
592
  data: {
@@ -643,6 +596,11 @@ export declare const PreferenceSchema: z.ZodObject<{
643
596
  roundStep?: number | null | undefined;
644
597
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
645
598
  };
599
+ } | {
600
+ type: "TEXT";
601
+ data: {
602
+ text: string;
603
+ };
646
604
  } | {
647
605
  type: "VISION";
648
606
  data: {
@@ -660,23 +618,27 @@ export declare const PreferenceSchema: z.ZodObject<{
660
618
  borderSize?: number | null | undefined;
661
619
  borderColor?: string | null | undefined;
662
620
  };
663
- } | {
664
- type: "TEXT";
665
- data: {
666
- text: string;
667
- };
668
- } | {
621
+ };
622
+ caseId: string;
623
+ weight: number;
624
+ }>, "many">>>;
625
+ }, "strip", z.ZodTypeAny, {
626
+ id: string;
627
+ enabled: boolean;
628
+ testMode: boolean;
629
+ preferenceId: string;
630
+ abTest: boolean;
631
+ savedFiltersId?: string | null | undefined;
632
+ variants?: {
633
+ id: string;
634
+ name: string;
635
+ payload: {
669
636
  type: "ACTIONS";
670
637
  data: {
671
638
  actions: {
672
639
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
673
640
  payload: {
674
641
  type: "EMPTY";
675
- } | {
676
- type: "WAIT";
677
- data: {
678
- seconds: number;
679
- };
680
642
  } | {
681
643
  type: "PRICE";
682
644
  data: {
@@ -691,11 +653,18 @@ export declare const PreferenceSchema: z.ZodObject<{
691
653
  data: {
692
654
  text: string;
693
655
  };
656
+ } | {
657
+ type: "WAIT";
658
+ data: {
659
+ seconds: number;
660
+ };
694
661
  };
695
662
  enabled: boolean;
696
663
  mandatory?: boolean | null | undefined;
697
664
  }[];
698
665
  };
666
+ } | {
667
+ type: "EMPTY";
699
668
  } | {
700
669
  type: "FEES";
701
670
  data: {
@@ -704,22 +673,6 @@ export declare const PreferenceSchema: z.ZodObject<{
704
673
  name: string;
705
674
  }[];
706
675
  };
707
- };
708
- caseId: string;
709
- weight: number;
710
- }[] | null | undefined;
711
- }, {
712
- id: string;
713
- enabled: boolean;
714
- testMode: boolean;
715
- preferenceId: string;
716
- abTest: boolean;
717
- savedFiltersId?: string | null | undefined;
718
- variants?: {
719
- id: string;
720
- name: string;
721
- payload: {
722
- type: "EMPTY";
723
676
  } | {
724
677
  type: "PRICE";
725
678
  data: {
@@ -729,6 +682,11 @@ export declare const PreferenceSchema: z.ZodObject<{
729
682
  roundStep?: number | null | undefined;
730
683
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
731
684
  };
685
+ } | {
686
+ type: "TEXT";
687
+ data: {
688
+ text: string;
689
+ };
732
690
  } | {
733
691
  type: "VISION";
734
692
  data: {
@@ -746,23 +704,27 @@ export declare const PreferenceSchema: z.ZodObject<{
746
704
  borderSize?: number | null | undefined;
747
705
  borderColor?: string | null | undefined;
748
706
  };
749
- } | {
750
- type: "TEXT";
751
- data: {
752
- text: string;
753
- };
754
- } | {
707
+ };
708
+ caseId: string;
709
+ weight: number;
710
+ }[] | null | undefined;
711
+ }, {
712
+ id: string;
713
+ enabled: boolean;
714
+ testMode: boolean;
715
+ preferenceId: string;
716
+ abTest: boolean;
717
+ savedFiltersId?: string | null | undefined;
718
+ variants?: {
719
+ id: string;
720
+ name: string;
721
+ payload: {
755
722
  type: "ACTIONS";
756
723
  data: {
757
724
  actions: {
758
725
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
759
726
  payload: {
760
727
  type: "EMPTY";
761
- } | {
762
- type: "WAIT";
763
- data: {
764
- seconds: number;
765
- };
766
728
  } | {
767
729
  type: "PRICE";
768
730
  data: {
@@ -777,11 +739,18 @@ export declare const PreferenceSchema: z.ZodObject<{
777
739
  data: {
778
740
  text: string;
779
741
  };
742
+ } | {
743
+ type: "WAIT";
744
+ data: {
745
+ seconds: number;
746
+ };
780
747
  };
781
748
  enabled: boolean;
782
749
  mandatory?: boolean | null | undefined;
783
750
  }[];
784
751
  };
752
+ } | {
753
+ type: "EMPTY";
785
754
  } | {
786
755
  type: "FEES";
787
756
  data: {
@@ -790,30 +759,6 @@ export declare const PreferenceSchema: z.ZodObject<{
790
759
  name: string;
791
760
  }[];
792
761
  };
793
- };
794
- caseId: string;
795
- weight: number;
796
- }[] | null | undefined;
797
- }>, "many">>>;
798
- }, "strip", z.ZodTypeAny, {
799
- type: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE";
800
- id: string;
801
- userId: string | number;
802
- enabled: boolean;
803
- testMode: boolean;
804
- parentPreferenceId?: string | null | undefined;
805
- cases?: {
806
- id: string;
807
- enabled: boolean;
808
- testMode: boolean;
809
- preferenceId: string;
810
- abTest: boolean;
811
- savedFiltersId?: string | null | undefined;
812
- variants?: {
813
- id: string;
814
- name: string;
815
- payload: {
816
- type: "EMPTY";
817
762
  } | {
818
763
  type: "PRICE";
819
764
  data: {
@@ -823,6 +768,11 @@ export declare const PreferenceSchema: z.ZodObject<{
823
768
  roundStep?: number | null | undefined;
824
769
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
825
770
  };
771
+ } | {
772
+ type: "TEXT";
773
+ data: {
774
+ text: string;
775
+ };
826
776
  } | {
827
777
  type: "VISION";
828
778
  data: {
@@ -840,23 +790,35 @@ export declare const PreferenceSchema: z.ZodObject<{
840
790
  borderSize?: number | null | undefined;
841
791
  borderColor?: string | null | undefined;
842
792
  };
843
- } | {
844
- type: "TEXT";
845
- data: {
846
- text: string;
847
- };
848
- } | {
793
+ };
794
+ caseId: string;
795
+ weight: number;
796
+ }[] | null | undefined;
797
+ }>, "many">>>;
798
+ }, "strip", z.ZodTypeAny, {
799
+ type: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE";
800
+ id: string;
801
+ userId: string | number;
802
+ enabled: boolean;
803
+ testMode: boolean;
804
+ parentPreferenceId?: string | null | undefined;
805
+ cases?: {
806
+ id: string;
807
+ enabled: boolean;
808
+ testMode: boolean;
809
+ preferenceId: string;
810
+ abTest: boolean;
811
+ savedFiltersId?: string | null | undefined;
812
+ variants?: {
813
+ id: string;
814
+ name: string;
815
+ payload: {
849
816
  type: "ACTIONS";
850
817
  data: {
851
818
  actions: {
852
819
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
853
820
  payload: {
854
821
  type: "EMPTY";
855
- } | {
856
- type: "WAIT";
857
- data: {
858
- seconds: number;
859
- };
860
822
  } | {
861
823
  type: "PRICE";
862
824
  data: {
@@ -871,11 +833,18 @@ export declare const PreferenceSchema: z.ZodObject<{
871
833
  data: {
872
834
  text: string;
873
835
  };
836
+ } | {
837
+ type: "WAIT";
838
+ data: {
839
+ seconds: number;
840
+ };
874
841
  };
875
842
  enabled: boolean;
876
843
  mandatory?: boolean | null | undefined;
877
844
  }[];
878
845
  };
846
+ } | {
847
+ type: "EMPTY";
879
848
  } | {
880
849
  type: "FEES";
881
850
  data: {
@@ -884,30 +853,6 @@ export declare const PreferenceSchema: z.ZodObject<{
884
853
  name: string;
885
854
  }[];
886
855
  };
887
- };
888
- caseId: string;
889
- weight: number;
890
- }[] | null | undefined;
891
- }[] | null | undefined;
892
- }, {
893
- type: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE";
894
- id: string;
895
- userId: string | number;
896
- enabled: boolean;
897
- testMode: boolean;
898
- parentPreferenceId?: string | null | undefined;
899
- cases?: {
900
- id: string;
901
- enabled: boolean;
902
- testMode: boolean;
903
- preferenceId: string;
904
- abTest: boolean;
905
- savedFiltersId?: string | null | undefined;
906
- variants?: {
907
- id: string;
908
- name: string;
909
- payload: {
910
- type: "EMPTY";
911
856
  } | {
912
857
  type: "PRICE";
913
858
  data: {
@@ -917,6 +862,11 @@ export declare const PreferenceSchema: z.ZodObject<{
917
862
  roundStep?: number | null | undefined;
918
863
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
919
864
  };
865
+ } | {
866
+ type: "TEXT";
867
+ data: {
868
+ text: string;
869
+ };
920
870
  } | {
921
871
  type: "VISION";
922
872
  data: {
@@ -934,23 +884,35 @@ export declare const PreferenceSchema: z.ZodObject<{
934
884
  borderSize?: number | null | undefined;
935
885
  borderColor?: string | null | undefined;
936
886
  };
937
- } | {
938
- type: "TEXT";
939
- data: {
940
- text: string;
941
- };
942
- } | {
887
+ };
888
+ caseId: string;
889
+ weight: number;
890
+ }[] | null | undefined;
891
+ }[] | null | undefined;
892
+ }, {
893
+ type: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE";
894
+ id: string;
895
+ userId: string | number;
896
+ enabled: boolean;
897
+ testMode: boolean;
898
+ parentPreferenceId?: string | null | undefined;
899
+ cases?: {
900
+ id: string;
901
+ enabled: boolean;
902
+ testMode: boolean;
903
+ preferenceId: string;
904
+ abTest: boolean;
905
+ savedFiltersId?: string | null | undefined;
906
+ variants?: {
907
+ id: string;
908
+ name: string;
909
+ payload: {
943
910
  type: "ACTIONS";
944
911
  data: {
945
912
  actions: {
946
913
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
947
914
  payload: {
948
915
  type: "EMPTY";
949
- } | {
950
- type: "WAIT";
951
- data: {
952
- seconds: number;
953
- };
954
916
  } | {
955
917
  type: "PRICE";
956
918
  data: {
@@ -965,11 +927,18 @@ export declare const PreferenceSchema: z.ZodObject<{
965
927
  data: {
966
928
  text: string;
967
929
  };
930
+ } | {
931
+ type: "WAIT";
932
+ data: {
933
+ seconds: number;
934
+ };
968
935
  };
969
936
  enabled: boolean;
970
937
  mandatory?: boolean | null | undefined;
971
938
  }[];
972
939
  };
940
+ } | {
941
+ type: "EMPTY";
973
942
  } | {
974
943
  type: "FEES";
975
944
  data: {
@@ -978,6 +947,37 @@ export declare const PreferenceSchema: z.ZodObject<{
978
947
  name: string;
979
948
  }[];
980
949
  };
950
+ } | {
951
+ type: "PRICE";
952
+ data: {
953
+ value: number;
954
+ type: "PERCENTAGE" | "ABSOLUTE";
955
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
956
+ roundStep?: number | null | undefined;
957
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
958
+ };
959
+ } | {
960
+ type: "TEXT";
961
+ data: {
962
+ text: string;
963
+ };
964
+ } | {
965
+ type: "VISION";
966
+ data: {
967
+ doRemoveBackground: boolean;
968
+ doSmartCrop: boolean;
969
+ doChangeBackground: boolean;
970
+ doRotate: boolean;
971
+ doAddBorders: boolean;
972
+ shadow: boolean;
973
+ targetWidth?: number | null | undefined;
974
+ targetHeight?: number | null | undefined;
975
+ newBackgroundColor?: string | null | undefined;
976
+ newBackgroundUrl?: string | null | undefined;
977
+ rotationAngle?: number | null | undefined;
978
+ borderSize?: number | null | undefined;
979
+ borderColor?: string | null | undefined;
980
+ };
981
981
  };
982
982
  caseId: string;
983
983
  weight: number;