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
@@ -1,12 +1,320 @@
1
1
  import { z } from "zod";
2
- export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2
+ export declare const PreferenceCaseVariantDecodedPayloadActionsSchema: z.ZodObject<{
3
+ data: z.ZodObject<{
4
+ actions: z.ZodArray<z.ZodObject<{
5
+ type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO", "OFFER_MANUAL"]>;
6
+ enabled: z.ZodBoolean;
7
+ payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8
+ type: z.ZodLiteral<"EMPTY">;
9
+ }, "strip", z.ZodTypeAny, {
10
+ type: "EMPTY";
11
+ }, {
12
+ type: "EMPTY";
13
+ }>, z.ZodObject<{
14
+ data: z.ZodObject<{
15
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
16
+ value: z.ZodNumber;
17
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
18
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ value: number;
22
+ type: "PERCENTAGE" | "ABSOLUTE";
23
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
24
+ roundStep?: number | null | undefined;
25
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
26
+ }, {
27
+ value: number;
28
+ type: "PERCENTAGE" | "ABSOLUTE";
29
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
30
+ roundStep?: number | null | undefined;
31
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
32
+ }>;
33
+ type: z.ZodLiteral<"PRICE">;
34
+ }, "strip", z.ZodTypeAny, {
35
+ type: "PRICE";
36
+ data: {
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
+ }, {
44
+ type: "PRICE";
45
+ data: {
46
+ value: number;
47
+ type: "PERCENTAGE" | "ABSOLUTE";
48
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
49
+ roundStep?: number | null | undefined;
50
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
51
+ };
52
+ }>, z.ZodObject<{
53
+ data: z.ZodObject<{
54
+ text: z.ZodString;
55
+ }, "strip", z.ZodTypeAny, {
56
+ text: string;
57
+ }, {
58
+ text: string;
59
+ }>;
60
+ type: z.ZodLiteral<"TEXT">;
61
+ }, "strip", z.ZodTypeAny, {
62
+ type: "TEXT";
63
+ data: {
64
+ text: string;
65
+ };
66
+ }, {
67
+ type: "TEXT";
68
+ data: {
69
+ text: string;
70
+ };
71
+ }>, z.ZodObject<{
72
+ data: z.ZodObject<{
73
+ seconds: z.ZodNumber;
74
+ }, "strip", z.ZodTypeAny, {
75
+ seconds: number;
76
+ }, {
77
+ seconds: number;
78
+ }>;
79
+ type: z.ZodLiteral<"WAIT">;
80
+ }, "strip", z.ZodTypeAny, {
81
+ type: "WAIT";
82
+ data: {
83
+ seconds: number;
84
+ };
85
+ }, {
86
+ type: "WAIT";
87
+ data: {
88
+ seconds: number;
89
+ };
90
+ }>]>;
91
+ mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
94
+ payload: {
95
+ type: "EMPTY";
96
+ } | {
97
+ type: "PRICE";
98
+ data: {
99
+ value: number;
100
+ type: "PERCENTAGE" | "ABSOLUTE";
101
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
102
+ roundStep?: number | null | undefined;
103
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
104
+ };
105
+ } | {
106
+ type: "TEXT";
107
+ data: {
108
+ text: string;
109
+ };
110
+ } | {
111
+ type: "WAIT";
112
+ data: {
113
+ seconds: number;
114
+ };
115
+ };
116
+ enabled: boolean;
117
+ mandatory?: boolean | null | undefined;
118
+ }, {
119
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
120
+ payload: {
121
+ type: "EMPTY";
122
+ } | {
123
+ type: "PRICE";
124
+ data: {
125
+ value: number;
126
+ type: "PERCENTAGE" | "ABSOLUTE";
127
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
128
+ roundStep?: number | null | undefined;
129
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
130
+ };
131
+ } | {
132
+ type: "TEXT";
133
+ data: {
134
+ text: string;
135
+ };
136
+ } | {
137
+ type: "WAIT";
138
+ data: {
139
+ seconds: number;
140
+ };
141
+ };
142
+ enabled: boolean;
143
+ mandatory?: boolean | null | undefined;
144
+ }>, "many">;
145
+ }, "strip", z.ZodTypeAny, {
146
+ actions: {
147
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
148
+ payload: {
149
+ type: "EMPTY";
150
+ } | {
151
+ type: "PRICE";
152
+ data: {
153
+ value: number;
154
+ type: "PERCENTAGE" | "ABSOLUTE";
155
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
156
+ roundStep?: number | null | undefined;
157
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
158
+ };
159
+ } | {
160
+ type: "TEXT";
161
+ data: {
162
+ text: string;
163
+ };
164
+ } | {
165
+ type: "WAIT";
166
+ data: {
167
+ seconds: number;
168
+ };
169
+ };
170
+ enabled: boolean;
171
+ mandatory?: boolean | null | undefined;
172
+ }[];
173
+ }, {
174
+ actions: {
175
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
176
+ payload: {
177
+ type: "EMPTY";
178
+ } | {
179
+ type: "PRICE";
180
+ data: {
181
+ value: number;
182
+ type: "PERCENTAGE" | "ABSOLUTE";
183
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
184
+ roundStep?: number | null | undefined;
185
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
186
+ };
187
+ } | {
188
+ type: "TEXT";
189
+ data: {
190
+ text: string;
191
+ };
192
+ } | {
193
+ type: "WAIT";
194
+ data: {
195
+ seconds: number;
196
+ };
197
+ };
198
+ enabled: boolean;
199
+ mandatory?: boolean | null | undefined;
200
+ }[];
201
+ }>;
202
+ type: z.ZodLiteral<"ACTIONS">;
203
+ }, "strip", z.ZodTypeAny, {
204
+ type: "ACTIONS";
205
+ data: {
206
+ actions: {
207
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
208
+ payload: {
209
+ type: "EMPTY";
210
+ } | {
211
+ type: "PRICE";
212
+ data: {
213
+ value: number;
214
+ type: "PERCENTAGE" | "ABSOLUTE";
215
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
216
+ roundStep?: number | null | undefined;
217
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
218
+ };
219
+ } | {
220
+ type: "TEXT";
221
+ data: {
222
+ text: string;
223
+ };
224
+ } | {
225
+ type: "WAIT";
226
+ data: {
227
+ seconds: number;
228
+ };
229
+ };
230
+ enabled: boolean;
231
+ mandatory?: boolean | null | undefined;
232
+ }[];
233
+ };
234
+ }, {
235
+ type: "ACTIONS";
236
+ data: {
237
+ actions: {
238
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
239
+ payload: {
240
+ type: "EMPTY";
241
+ } | {
242
+ type: "PRICE";
243
+ data: {
244
+ value: number;
245
+ type: "PERCENTAGE" | "ABSOLUTE";
246
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
247
+ roundStep?: number | null | undefined;
248
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
249
+ };
250
+ } | {
251
+ type: "TEXT";
252
+ data: {
253
+ text: string;
254
+ };
255
+ } | {
256
+ type: "WAIT";
257
+ data: {
258
+ seconds: number;
259
+ };
260
+ };
261
+ enabled: boolean;
262
+ mandatory?: boolean | null | undefined;
263
+ }[];
264
+ };
265
+ }>;
266
+ export type PreferenceCaseVariantDecodedPayloadActions = z.infer<typeof PreferenceCaseVariantDecodedPayloadActionsSchema>;
267
+ export declare const PreferenceCaseVariantDecodedPayloadEmptySchema: z.ZodObject<{
3
268
  type: z.ZodLiteral<"EMPTY">;
4
269
  }, "strip", z.ZodTypeAny, {
5
270
  type: "EMPTY";
6
271
  }, {
7
272
  type: "EMPTY";
8
- }>, z.ZodObject<{
9
- type: z.ZodLiteral<"PRICE">;
273
+ }>;
274
+ export type PreferenceCaseVariantDecodedPayloadEmpty = z.infer<typeof PreferenceCaseVariantDecodedPayloadEmptySchema>;
275
+ export declare const PreferenceCaseVariantDecodedPayloadFeesSchema: z.ZodObject<{
276
+ data: z.ZodObject<{
277
+ fees: z.ZodArray<z.ZodObject<{
278
+ name: z.ZodString;
279
+ value: z.ZodNumber;
280
+ }, "strip", z.ZodTypeAny, {
281
+ value: number;
282
+ name: string;
283
+ }, {
284
+ value: number;
285
+ name: string;
286
+ }>, "many">;
287
+ }, "strip", z.ZodTypeAny, {
288
+ fees: {
289
+ value: number;
290
+ name: string;
291
+ }[];
292
+ }, {
293
+ fees: {
294
+ value: number;
295
+ name: string;
296
+ }[];
297
+ }>;
298
+ type: z.ZodLiteral<"FEES">;
299
+ }, "strip", z.ZodTypeAny, {
300
+ type: "FEES";
301
+ data: {
302
+ fees: {
303
+ value: number;
304
+ name: string;
305
+ }[];
306
+ };
307
+ }, {
308
+ type: "FEES";
309
+ data: {
310
+ fees: {
311
+ value: number;
312
+ name: string;
313
+ }[];
314
+ };
315
+ }>;
316
+ export type PreferenceCaseVariantDecodedPayloadFees = z.infer<typeof PreferenceCaseVariantDecodedPayloadFeesSchema>;
317
+ export declare const PreferenceCaseVariantDecodedPayloadPriceSchema: z.ZodObject<{
10
318
  data: z.ZodObject<{
11
319
  type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
12
320
  value: z.ZodNumber;
@@ -26,6 +334,7 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
26
334
  roundStep?: number | null | undefined;
27
335
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
28
336
  }>;
337
+ type: z.ZodLiteral<"PRICE">;
29
338
  }, "strip", z.ZodTypeAny, {
30
339
  type: "PRICE";
31
340
  data: {
@@ -44,8 +353,30 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
44
353
  roundStep?: number | null | undefined;
45
354
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
46
355
  };
47
- }>, z.ZodObject<{
48
- type: z.ZodLiteral<"VISION">;
356
+ }>;
357
+ export type PreferenceCaseVariantDecodedPayloadPrice = z.infer<typeof PreferenceCaseVariantDecodedPayloadPriceSchema>;
358
+ export declare const PreferenceCaseVariantDecodedPayloadTextSchema: z.ZodObject<{
359
+ data: z.ZodObject<{
360
+ text: z.ZodString;
361
+ }, "strip", z.ZodTypeAny, {
362
+ text: string;
363
+ }, {
364
+ text: string;
365
+ }>;
366
+ type: z.ZodLiteral<"TEXT">;
367
+ }, "strip", z.ZodTypeAny, {
368
+ type: "TEXT";
369
+ data: {
370
+ text: string;
371
+ };
372
+ }, {
373
+ type: "TEXT";
374
+ data: {
375
+ text: string;
376
+ };
377
+ }>;
378
+ export type PreferenceCaseVariantDecodedPayloadText = z.infer<typeof PreferenceCaseVariantDecodedPayloadTextSchema>;
379
+ export declare const PreferenceCaseVariantDecodedPayloadVisionSchema: z.ZodObject<{
49
380
  data: z.ZodObject<{
50
381
  doRemoveBackground: z.ZodBoolean;
51
382
  doSmartCrop: z.ZodBoolean;
@@ -89,6 +420,7 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
89
420
  borderSize?: number | null | undefined;
90
421
  borderColor?: string | null | undefined;
91
422
  }>;
423
+ type: z.ZodLiteral<"VISION">;
92
424
  }, "strip", z.ZodTypeAny, {
93
425
  type: "VISION";
94
426
  data: {
@@ -117,33 +449,15 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
117
449
  shadow: boolean;
118
450
  targetWidth?: number | null | undefined;
119
451
  targetHeight?: number | null | undefined;
120
- newBackgroundColor?: string | null | undefined;
121
- newBackgroundUrl?: string | null | undefined;
122
- rotationAngle?: number | null | undefined;
123
- borderSize?: number | null | undefined;
124
- borderColor?: string | null | undefined;
125
- };
126
- }>, z.ZodObject<{
127
- type: z.ZodLiteral<"TEXT">;
128
- data: z.ZodObject<{
129
- text: z.ZodString;
130
- }, "strip", z.ZodTypeAny, {
131
- text: string;
132
- }, {
133
- text: string;
134
- }>;
135
- }, "strip", z.ZodTypeAny, {
136
- type: "TEXT";
137
- data: {
138
- text: string;
139
- };
140
- }, {
141
- type: "TEXT";
142
- data: {
143
- text: string;
452
+ newBackgroundColor?: string | null | undefined;
453
+ newBackgroundUrl?: string | null | undefined;
454
+ rotationAngle?: number | null | undefined;
455
+ borderSize?: number | null | undefined;
456
+ borderColor?: string | null | undefined;
144
457
  };
145
- }>, z.ZodObject<{
146
- type: z.ZodLiteral<"ACTIONS">;
458
+ }>;
459
+ export type PreferenceCaseVariantDecodedPayloadVision = z.infer<typeof PreferenceCaseVariantDecodedPayloadVisionSchema>;
460
+ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
147
461
  data: z.ZodObject<{
148
462
  actions: z.ZodArray<z.ZodObject<{
149
463
  type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO", "OFFER_MANUAL"]>;
@@ -155,26 +469,6 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
155
469
  }, {
156
470
  type: "EMPTY";
157
471
  }>, z.ZodObject<{
158
- type: z.ZodLiteral<"WAIT">;
159
- data: z.ZodObject<{
160
- seconds: z.ZodNumber;
161
- }, "strip", z.ZodTypeAny, {
162
- seconds: number;
163
- }, {
164
- seconds: number;
165
- }>;
166
- }, "strip", z.ZodTypeAny, {
167
- type: "WAIT";
168
- data: {
169
- seconds: number;
170
- };
171
- }, {
172
- type: "WAIT";
173
- data: {
174
- seconds: number;
175
- };
176
- }>, z.ZodObject<{
177
- type: z.ZodLiteral<"PRICE">;
178
472
  data: z.ZodObject<{
179
473
  type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
180
474
  value: z.ZodNumber;
@@ -194,6 +488,7 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
194
488
  roundStep?: number | null | undefined;
195
489
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
196
490
  }>;
491
+ type: z.ZodLiteral<"PRICE">;
197
492
  }, "strip", z.ZodTypeAny, {
198
493
  type: "PRICE";
199
494
  data: {
@@ -213,7 +508,6 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
213
508
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
214
509
  };
215
510
  }>, z.ZodObject<{
216
- type: z.ZodLiteral<"TEXT">;
217
511
  data: z.ZodObject<{
218
512
  text: z.ZodString;
219
513
  }, "strip", z.ZodTypeAny, {
@@ -221,6 +515,7 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
221
515
  }, {
222
516
  text: string;
223
517
  }>;
518
+ type: z.ZodLiteral<"TEXT">;
224
519
  }, "strip", z.ZodTypeAny, {
225
520
  type: "TEXT";
226
521
  data: {
@@ -231,17 +526,31 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
231
526
  data: {
232
527
  text: string;
233
528
  };
529
+ }>, z.ZodObject<{
530
+ data: z.ZodObject<{
531
+ seconds: z.ZodNumber;
532
+ }, "strip", z.ZodTypeAny, {
533
+ seconds: number;
534
+ }, {
535
+ seconds: number;
536
+ }>;
537
+ type: z.ZodLiteral<"WAIT">;
538
+ }, "strip", z.ZodTypeAny, {
539
+ type: "WAIT";
540
+ data: {
541
+ seconds: number;
542
+ };
543
+ }, {
544
+ type: "WAIT";
545
+ data: {
546
+ seconds: number;
547
+ };
234
548
  }>]>;
235
549
  mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
236
550
  }, "strip", z.ZodTypeAny, {
237
551
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
238
552
  payload: {
239
553
  type: "EMPTY";
240
- } | {
241
- type: "WAIT";
242
- data: {
243
- seconds: number;
244
- };
245
554
  } | {
246
555
  type: "PRICE";
247
556
  data: {
@@ -256,6 +565,11 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
256
565
  data: {
257
566
  text: string;
258
567
  };
568
+ } | {
569
+ type: "WAIT";
570
+ data: {
571
+ seconds: number;
572
+ };
259
573
  };
260
574
  enabled: boolean;
261
575
  mandatory?: boolean | null | undefined;
@@ -263,11 +577,6 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
263
577
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
264
578
  payload: {
265
579
  type: "EMPTY";
266
- } | {
267
- type: "WAIT";
268
- data: {
269
- seconds: number;
270
- };
271
580
  } | {
272
581
  type: "PRICE";
273
582
  data: {
@@ -282,6 +591,11 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
282
591
  data: {
283
592
  text: string;
284
593
  };
594
+ } | {
595
+ type: "WAIT";
596
+ data: {
597
+ seconds: number;
598
+ };
285
599
  };
286
600
  enabled: boolean;
287
601
  mandatory?: boolean | null | undefined;
@@ -291,11 +605,6 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
291
605
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
292
606
  payload: {
293
607
  type: "EMPTY";
294
- } | {
295
- type: "WAIT";
296
- data: {
297
- seconds: number;
298
- };
299
608
  } | {
300
609
  type: "PRICE";
301
610
  data: {
@@ -310,6 +619,11 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
310
619
  data: {
311
620
  text: string;
312
621
  };
622
+ } | {
623
+ type: "WAIT";
624
+ data: {
625
+ seconds: number;
626
+ };
313
627
  };
314
628
  enabled: boolean;
315
629
  mandatory?: boolean | null | undefined;
@@ -319,11 +633,6 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
319
633
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
320
634
  payload: {
321
635
  type: "EMPTY";
322
- } | {
323
- type: "WAIT";
324
- data: {
325
- seconds: number;
326
- };
327
636
  } | {
328
637
  type: "PRICE";
329
638
  data: {
@@ -338,11 +647,17 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
338
647
  data: {
339
648
  text: string;
340
649
  };
650
+ } | {
651
+ type: "WAIT";
652
+ data: {
653
+ seconds: number;
654
+ };
341
655
  };
342
656
  enabled: boolean;
343
657
  mandatory?: boolean | null | undefined;
344
658
  }[];
345
659
  }>;
660
+ type: z.ZodLiteral<"ACTIONS">;
346
661
  }, "strip", z.ZodTypeAny, {
347
662
  type: "ACTIONS";
348
663
  data: {
@@ -350,11 +665,6 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
350
665
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
351
666
  payload: {
352
667
  type: "EMPTY";
353
- } | {
354
- type: "WAIT";
355
- data: {
356
- seconds: number;
357
- };
358
668
  } | {
359
669
  type: "PRICE";
360
670
  data: {
@@ -369,6 +679,11 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
369
679
  data: {
370
680
  text: string;
371
681
  };
682
+ } | {
683
+ type: "WAIT";
684
+ data: {
685
+ seconds: number;
686
+ };
372
687
  };
373
688
  enabled: boolean;
374
689
  mandatory?: boolean | null | undefined;
@@ -381,11 +696,6 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
381
696
  type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
382
697
  payload: {
383
698
  type: "EMPTY";
384
- } | {
385
- type: "WAIT";
386
- data: {
387
- seconds: number;
388
- };
389
699
  } | {
390
700
  type: "PRICE";
391
701
  data: {
@@ -400,13 +710,23 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
400
710
  data: {
401
711
  text: string;
402
712
  };
713
+ } | {
714
+ type: "WAIT";
715
+ data: {
716
+ seconds: number;
717
+ };
403
718
  };
404
719
  enabled: boolean;
405
720
  mandatory?: boolean | null | undefined;
406
721
  }[];
407
722
  };
408
723
  }>, z.ZodObject<{
409
- type: z.ZodLiteral<"FEES">;
724
+ type: z.ZodLiteral<"EMPTY">;
725
+ }, "strip", z.ZodTypeAny, {
726
+ type: "EMPTY";
727
+ }, {
728
+ type: "EMPTY";
729
+ }>, z.ZodObject<{
410
730
  data: z.ZodObject<{
411
731
  fees: z.ZodArray<z.ZodObject<{
412
732
  name: z.ZodString;
@@ -429,6 +749,7 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
429
749
  name: string;
430
750
  }[];
431
751
  }>;
752
+ type: z.ZodLiteral<"FEES">;
432
753
  }, "strip", z.ZodTypeAny, {
433
754
  type: "FEES";
434
755
  data: {
@@ -445,5 +766,142 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
445
766
  name: string;
446
767
  }[];
447
768
  };
769
+ }>, z.ZodObject<{
770
+ data: z.ZodObject<{
771
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
772
+ value: z.ZodNumber;
773
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
774
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
775
+ negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
776
+ }, "strip", z.ZodTypeAny, {
777
+ value: number;
778
+ type: "PERCENTAGE" | "ABSOLUTE";
779
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
780
+ roundStep?: number | null | undefined;
781
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
782
+ }, {
783
+ value: number;
784
+ type: "PERCENTAGE" | "ABSOLUTE";
785
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
786
+ roundStep?: number | null | undefined;
787
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
788
+ }>;
789
+ type: z.ZodLiteral<"PRICE">;
790
+ }, "strip", z.ZodTypeAny, {
791
+ type: "PRICE";
792
+ data: {
793
+ value: number;
794
+ type: "PERCENTAGE" | "ABSOLUTE";
795
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
796
+ roundStep?: number | null | undefined;
797
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
798
+ };
799
+ }, {
800
+ type: "PRICE";
801
+ data: {
802
+ value: number;
803
+ type: "PERCENTAGE" | "ABSOLUTE";
804
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
805
+ roundStep?: number | null | undefined;
806
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
807
+ };
808
+ }>, z.ZodObject<{
809
+ data: z.ZodObject<{
810
+ text: z.ZodString;
811
+ }, "strip", z.ZodTypeAny, {
812
+ text: string;
813
+ }, {
814
+ text: string;
815
+ }>;
816
+ type: z.ZodLiteral<"TEXT">;
817
+ }, "strip", z.ZodTypeAny, {
818
+ type: "TEXT";
819
+ data: {
820
+ text: string;
821
+ };
822
+ }, {
823
+ type: "TEXT";
824
+ data: {
825
+ text: string;
826
+ };
827
+ }>, z.ZodObject<{
828
+ data: z.ZodObject<{
829
+ doRemoveBackground: z.ZodBoolean;
830
+ doSmartCrop: z.ZodBoolean;
831
+ doChangeBackground: z.ZodBoolean;
832
+ doRotate: z.ZodBoolean;
833
+ doAddBorders: z.ZodBoolean;
834
+ shadow: z.ZodBoolean;
835
+ targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
836
+ targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
837
+ newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
838
+ newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
839
+ rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
840
+ borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
841
+ borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
842
+ }, "strip", z.ZodTypeAny, {
843
+ doRemoveBackground: boolean;
844
+ doSmartCrop: boolean;
845
+ doChangeBackground: boolean;
846
+ doRotate: boolean;
847
+ doAddBorders: boolean;
848
+ shadow: boolean;
849
+ targetWidth?: number | null | undefined;
850
+ targetHeight?: number | null | undefined;
851
+ newBackgroundColor?: string | null | undefined;
852
+ newBackgroundUrl?: string | null | undefined;
853
+ rotationAngle?: number | null | undefined;
854
+ borderSize?: number | null | undefined;
855
+ borderColor?: string | null | undefined;
856
+ }, {
857
+ doRemoveBackground: boolean;
858
+ doSmartCrop: boolean;
859
+ doChangeBackground: boolean;
860
+ doRotate: boolean;
861
+ doAddBorders: boolean;
862
+ shadow: boolean;
863
+ targetWidth?: number | null | undefined;
864
+ targetHeight?: number | null | undefined;
865
+ newBackgroundColor?: string | null | undefined;
866
+ newBackgroundUrl?: string | null | undefined;
867
+ rotationAngle?: number | null | undefined;
868
+ borderSize?: number | null | undefined;
869
+ borderColor?: string | null | undefined;
870
+ }>;
871
+ type: z.ZodLiteral<"VISION">;
872
+ }, "strip", z.ZodTypeAny, {
873
+ type: "VISION";
874
+ data: {
875
+ doRemoveBackground: boolean;
876
+ doSmartCrop: boolean;
877
+ doChangeBackground: boolean;
878
+ doRotate: boolean;
879
+ doAddBorders: boolean;
880
+ shadow: boolean;
881
+ targetWidth?: number | null | undefined;
882
+ targetHeight?: number | null | undefined;
883
+ newBackgroundColor?: string | null | undefined;
884
+ newBackgroundUrl?: string | null | undefined;
885
+ rotationAngle?: number | null | undefined;
886
+ borderSize?: number | null | undefined;
887
+ borderColor?: string | null | undefined;
888
+ };
889
+ }, {
890
+ type: "VISION";
891
+ data: {
892
+ doRemoveBackground: boolean;
893
+ doSmartCrop: boolean;
894
+ doChangeBackground: boolean;
895
+ doRotate: boolean;
896
+ doAddBorders: boolean;
897
+ shadow: boolean;
898
+ targetWidth?: number | null | undefined;
899
+ targetHeight?: number | null | undefined;
900
+ newBackgroundColor?: string | null | undefined;
901
+ newBackgroundUrl?: string | null | undefined;
902
+ rotationAngle?: number | null | undefined;
903
+ borderSize?: number | null | undefined;
904
+ borderColor?: string | null | undefined;
905
+ };
448
906
  }>]>;
449
907
  export type PreferenceCaseVariantDecodedPayload = z.infer<typeof PreferenceCaseVariantDecodedPayloadSchema>;