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.
- package/package.json +2 -2
- package/src/com/controlresell/models/catalogs/Catalog.d.ts +3 -6
- package/src/com/controlresell/models/catalogs/Catalog.js +2 -3
- package/src/com/controlresell/models/catalogs/Catalog.ts +2 -3
- package/src/com/controlresell/models/catalogs/CatalogRoot.d.ts +5 -10
- package/src/com/controlresell/models/items/CreatedItems.d.ts +139 -130
- package/src/com/controlresell/models/items/Item.d.ts +111 -104
- package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +139 -130
- package/src/com/controlresell/models/items/UpdatedItem.d.ts +139 -130
- package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +71 -71
- package/src/com/controlresell/models/items/history/ItemHistory.d.ts +78 -78
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.d.ts +156 -18
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.js +32 -26
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.ts +43 -26
- package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +5 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +5 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.d.ts +2 -2
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +4 -4
- package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +15 -0
- package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts +5 -0
- package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +21 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts +6 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.js +4 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.ts +4 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.d.ts +6 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.js +4 -1
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.ts +4 -1
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.d.ts +3 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.js +7 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.ts +6 -0
- package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.d.ts +6 -0
- package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.js +4 -0
- package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.ts +4 -0
- package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.d.ts +10 -0
- package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.d.ts +6 -0
- package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.js +4 -0
- package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.ts +4 -0
- package/src/com/controlresell/models/platforms/favorites/Favorite.d.ts +26 -0
- package/src/com/controlresell/models/platforms/favorites/FavoriteOnPlatformUpdateRequest.d.ts +5 -0
- package/src/com/controlresell/models/platforms/orders/Order.d.ts +9 -0
- package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.d.ts +5 -0
- package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +7 -0
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +150 -130
- package/src/com/controlresell/models/platforms/transactions/Transaction.d.ts +9 -0
- package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.d.ts +7 -0
- package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +150 -130
- package/src/com/controlresell/models/preferences/Preference.d.ts +356 -356
- package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +144 -130
- package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts +1121 -1121
- package/src/com/controlresell/models/preferences/PreferenceWithChildren.d.ts +815 -815
- package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts +275 -275
- package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts +276 -276
- package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +286 -286
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +31 -31
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.d.ts +96 -5
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.js +20 -16
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.ts +27 -16
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +41 -41
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +3476 -41
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.js +3 -1
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.ts +3 -1
- package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +229 -229
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts +232 -232
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts +541 -83
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.js +33 -27
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.ts +44 -27
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +229 -229
- package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts +5 -0
- package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +5 -0
- package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.d.ts +3 -0
- package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.js +1 -0
- package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.ts +1 -0
- package/src/com/controlresell/models/users/platforms/UserOnPlatform.d.ts +3 -0
- package/src/com/controlresell/models/users/platforms/UserOnPlatform.js +1 -0
- package/src/com/controlresell/models/users/platforms/UserOnPlatform.ts +1 -0
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +1205 -0
- package/src/com/controlresell/models/users/ws/UserWsPayload.js +34 -0
- package/src/com/controlresell/models/users/ws/UserWsPayload.ts +43 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +7 -3
- package/src/index.ts +2 -0
|
@@ -19,150 +19,6 @@ export declare const PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: 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<"
|
|
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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
464
327
|
name: string;
|
|
465
328
|
}[];
|
|
466
329
|
};
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
496
447
|
borderSize?: number | null | undefined;
|
|
497
448
|
borderColor?: string | null | undefined;
|
|
498
449
|
};
|
|
499
|
-
}
|
|
500
|
-
type: "
|
|
450
|
+
}, {
|
|
451
|
+
type: "VISION";
|
|
501
452
|
data: {
|
|
502
|
-
|
|
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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
574
540
|
borderSize?: number | null | undefined;
|
|
575
541
|
borderColor?: string | null | undefined;
|
|
576
542
|
};
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
660
618
|
borderSize?: number | null | undefined;
|
|
661
619
|
borderColor?: string | null | undefined;
|
|
662
620
|
};
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: 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 PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
746
704
|
borderSize?: number | null | undefined;
|
|
747
705
|
borderColor?: string | null | undefined;
|
|
748
706
|
};
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
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 PreferenceWithChildrenSchema: 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,6 +759,37 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
790
759
|
name: string;
|
|
791
760
|
}[];
|
|
792
761
|
};
|
|
762
|
+
} | {
|
|
763
|
+
type: "PRICE";
|
|
764
|
+
data: {
|
|
765
|
+
value: number;
|
|
766
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
767
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
768
|
+
roundStep?: number | null | undefined;
|
|
769
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
770
|
+
};
|
|
771
|
+
} | {
|
|
772
|
+
type: "TEXT";
|
|
773
|
+
data: {
|
|
774
|
+
text: string;
|
|
775
|
+
};
|
|
776
|
+
} | {
|
|
777
|
+
type: "VISION";
|
|
778
|
+
data: {
|
|
779
|
+
doRemoveBackground: boolean;
|
|
780
|
+
doSmartCrop: boolean;
|
|
781
|
+
doChangeBackground: boolean;
|
|
782
|
+
doRotate: boolean;
|
|
783
|
+
doAddBorders: boolean;
|
|
784
|
+
shadow: boolean;
|
|
785
|
+
targetWidth?: number | null | undefined;
|
|
786
|
+
targetHeight?: number | null | undefined;
|
|
787
|
+
newBackgroundColor?: string | null | undefined;
|
|
788
|
+
newBackgroundUrl?: string | null | undefined;
|
|
789
|
+
rotationAngle?: number | null | undefined;
|
|
790
|
+
borderSize?: number | null | undefined;
|
|
791
|
+
borderColor?: string | null | undefined;
|
|
792
|
+
};
|
|
793
793
|
};
|
|
794
794
|
caseId: string;
|
|
795
795
|
weight: number;
|
|
@@ -816,150 +816,6 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
816
816
|
name: z.ZodString;
|
|
817
817
|
weight: z.ZodNumber;
|
|
818
818
|
payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
819
|
-
type: z.ZodLiteral<"EMPTY">;
|
|
820
|
-
}, "strip", z.ZodTypeAny, {
|
|
821
|
-
type: "EMPTY";
|
|
822
|
-
}, {
|
|
823
|
-
type: "EMPTY";
|
|
824
|
-
}>, z.ZodObject<{
|
|
825
|
-
type: z.ZodLiteral<"PRICE">;
|
|
826
|
-
data: z.ZodObject<{
|
|
827
|
-
type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
|
|
828
|
-
value: z.ZodNumber;
|
|
829
|
-
roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
|
|
830
|
-
roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
831
|
-
negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
|
|
832
|
-
}, "strip", z.ZodTypeAny, {
|
|
833
|
-
value: number;
|
|
834
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
835
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
836
|
-
roundStep?: number | null | undefined;
|
|
837
|
-
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
838
|
-
}, {
|
|
839
|
-
value: number;
|
|
840
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
841
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
842
|
-
roundStep?: number | null | undefined;
|
|
843
|
-
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
844
|
-
}>;
|
|
845
|
-
}, "strip", z.ZodTypeAny, {
|
|
846
|
-
type: "PRICE";
|
|
847
|
-
data: {
|
|
848
|
-
value: number;
|
|
849
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
850
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
851
|
-
roundStep?: number | null | undefined;
|
|
852
|
-
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
853
|
-
};
|
|
854
|
-
}, {
|
|
855
|
-
type: "PRICE";
|
|
856
|
-
data: {
|
|
857
|
-
value: number;
|
|
858
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
859
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
860
|
-
roundStep?: number | null | undefined;
|
|
861
|
-
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
862
|
-
};
|
|
863
|
-
}>, z.ZodObject<{
|
|
864
|
-
type: z.ZodLiteral<"VISION">;
|
|
865
|
-
data: z.ZodObject<{
|
|
866
|
-
doRemoveBackground: z.ZodBoolean;
|
|
867
|
-
doSmartCrop: z.ZodBoolean;
|
|
868
|
-
doChangeBackground: z.ZodBoolean;
|
|
869
|
-
doRotate: z.ZodBoolean;
|
|
870
|
-
doAddBorders: z.ZodBoolean;
|
|
871
|
-
shadow: z.ZodBoolean;
|
|
872
|
-
targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
873
|
-
targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
874
|
-
newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
875
|
-
newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
876
|
-
rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
877
|
-
borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
878
|
-
borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
879
|
-
}, "strip", z.ZodTypeAny, {
|
|
880
|
-
doRemoveBackground: boolean;
|
|
881
|
-
doSmartCrop: boolean;
|
|
882
|
-
doChangeBackground: boolean;
|
|
883
|
-
doRotate: boolean;
|
|
884
|
-
doAddBorders: boolean;
|
|
885
|
-
shadow: boolean;
|
|
886
|
-
targetWidth?: number | null | undefined;
|
|
887
|
-
targetHeight?: number | null | undefined;
|
|
888
|
-
newBackgroundColor?: string | null | undefined;
|
|
889
|
-
newBackgroundUrl?: string | null | undefined;
|
|
890
|
-
rotationAngle?: number | null | undefined;
|
|
891
|
-
borderSize?: number | null | undefined;
|
|
892
|
-
borderColor?: string | null | undefined;
|
|
893
|
-
}, {
|
|
894
|
-
doRemoveBackground: boolean;
|
|
895
|
-
doSmartCrop: boolean;
|
|
896
|
-
doChangeBackground: boolean;
|
|
897
|
-
doRotate: boolean;
|
|
898
|
-
doAddBorders: boolean;
|
|
899
|
-
shadow: boolean;
|
|
900
|
-
targetWidth?: number | null | undefined;
|
|
901
|
-
targetHeight?: number | null | undefined;
|
|
902
|
-
newBackgroundColor?: string | null | undefined;
|
|
903
|
-
newBackgroundUrl?: string | null | undefined;
|
|
904
|
-
rotationAngle?: number | null | undefined;
|
|
905
|
-
borderSize?: number | null | undefined;
|
|
906
|
-
borderColor?: string | null | undefined;
|
|
907
|
-
}>;
|
|
908
|
-
}, "strip", z.ZodTypeAny, {
|
|
909
|
-
type: "VISION";
|
|
910
|
-
data: {
|
|
911
|
-
doRemoveBackground: boolean;
|
|
912
|
-
doSmartCrop: boolean;
|
|
913
|
-
doChangeBackground: boolean;
|
|
914
|
-
doRotate: boolean;
|
|
915
|
-
doAddBorders: boolean;
|
|
916
|
-
shadow: boolean;
|
|
917
|
-
targetWidth?: number | null | undefined;
|
|
918
|
-
targetHeight?: number | null | undefined;
|
|
919
|
-
newBackgroundColor?: string | null | undefined;
|
|
920
|
-
newBackgroundUrl?: string | null | undefined;
|
|
921
|
-
rotationAngle?: number | null | undefined;
|
|
922
|
-
borderSize?: number | null | undefined;
|
|
923
|
-
borderColor?: string | null | undefined;
|
|
924
|
-
};
|
|
925
|
-
}, {
|
|
926
|
-
type: "VISION";
|
|
927
|
-
data: {
|
|
928
|
-
doRemoveBackground: boolean;
|
|
929
|
-
doSmartCrop: boolean;
|
|
930
|
-
doChangeBackground: boolean;
|
|
931
|
-
doRotate: boolean;
|
|
932
|
-
doAddBorders: boolean;
|
|
933
|
-
shadow: boolean;
|
|
934
|
-
targetWidth?: number | null | undefined;
|
|
935
|
-
targetHeight?: number | null | undefined;
|
|
936
|
-
newBackgroundColor?: string | null | undefined;
|
|
937
|
-
newBackgroundUrl?: string | null | undefined;
|
|
938
|
-
rotationAngle?: number | null | undefined;
|
|
939
|
-
borderSize?: number | null | undefined;
|
|
940
|
-
borderColor?: string | null | undefined;
|
|
941
|
-
};
|
|
942
|
-
}>, z.ZodObject<{
|
|
943
|
-
type: z.ZodLiteral<"TEXT">;
|
|
944
|
-
data: z.ZodObject<{
|
|
945
|
-
text: z.ZodString;
|
|
946
|
-
}, "strip", z.ZodTypeAny, {
|
|
947
|
-
text: string;
|
|
948
|
-
}, {
|
|
949
|
-
text: string;
|
|
950
|
-
}>;
|
|
951
|
-
}, "strip", z.ZodTypeAny, {
|
|
952
|
-
type: "TEXT";
|
|
953
|
-
data: {
|
|
954
|
-
text: string;
|
|
955
|
-
};
|
|
956
|
-
}, {
|
|
957
|
-
type: "TEXT";
|
|
958
|
-
data: {
|
|
959
|
-
text: string;
|
|
960
|
-
};
|
|
961
|
-
}>, z.ZodObject<{
|
|
962
|
-
type: z.ZodLiteral<"ACTIONS">;
|
|
963
819
|
data: z.ZodObject<{
|
|
964
820
|
actions: z.ZodArray<z.ZodObject<{
|
|
965
821
|
type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO", "OFFER_MANUAL"]>;
|
|
@@ -971,26 +827,6 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
971
827
|
}, {
|
|
972
828
|
type: "EMPTY";
|
|
973
829
|
}>, z.ZodObject<{
|
|
974
|
-
type: z.ZodLiteral<"WAIT">;
|
|
975
|
-
data: z.ZodObject<{
|
|
976
|
-
seconds: z.ZodNumber;
|
|
977
|
-
}, "strip", z.ZodTypeAny, {
|
|
978
|
-
seconds: number;
|
|
979
|
-
}, {
|
|
980
|
-
seconds: number;
|
|
981
|
-
}>;
|
|
982
|
-
}, "strip", z.ZodTypeAny, {
|
|
983
|
-
type: "WAIT";
|
|
984
|
-
data: {
|
|
985
|
-
seconds: number;
|
|
986
|
-
};
|
|
987
|
-
}, {
|
|
988
|
-
type: "WAIT";
|
|
989
|
-
data: {
|
|
990
|
-
seconds: number;
|
|
991
|
-
};
|
|
992
|
-
}>, z.ZodObject<{
|
|
993
|
-
type: z.ZodLiteral<"PRICE">;
|
|
994
830
|
data: z.ZodObject<{
|
|
995
831
|
type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
|
|
996
832
|
value: z.ZodNumber;
|
|
@@ -1010,6 +846,7 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1010
846
|
roundStep?: number | null | undefined;
|
|
1011
847
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
1012
848
|
}>;
|
|
849
|
+
type: z.ZodLiteral<"PRICE">;
|
|
1013
850
|
}, "strip", z.ZodTypeAny, {
|
|
1014
851
|
type: "PRICE";
|
|
1015
852
|
data: {
|
|
@@ -1029,7 +866,6 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1029
866
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
1030
867
|
};
|
|
1031
868
|
}>, z.ZodObject<{
|
|
1032
|
-
type: z.ZodLiteral<"TEXT">;
|
|
1033
869
|
data: z.ZodObject<{
|
|
1034
870
|
text: z.ZodString;
|
|
1035
871
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1037,6 +873,7 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1037
873
|
}, {
|
|
1038
874
|
text: string;
|
|
1039
875
|
}>;
|
|
876
|
+
type: z.ZodLiteral<"TEXT">;
|
|
1040
877
|
}, "strip", z.ZodTypeAny, {
|
|
1041
878
|
type: "TEXT";
|
|
1042
879
|
data: {
|
|
@@ -1047,17 +884,31 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1047
884
|
data: {
|
|
1048
885
|
text: string;
|
|
1049
886
|
};
|
|
887
|
+
}>, z.ZodObject<{
|
|
888
|
+
data: z.ZodObject<{
|
|
889
|
+
seconds: z.ZodNumber;
|
|
890
|
+
}, "strip", z.ZodTypeAny, {
|
|
891
|
+
seconds: number;
|
|
892
|
+
}, {
|
|
893
|
+
seconds: number;
|
|
894
|
+
}>;
|
|
895
|
+
type: z.ZodLiteral<"WAIT">;
|
|
896
|
+
}, "strip", z.ZodTypeAny, {
|
|
897
|
+
type: "WAIT";
|
|
898
|
+
data: {
|
|
899
|
+
seconds: number;
|
|
900
|
+
};
|
|
901
|
+
}, {
|
|
902
|
+
type: "WAIT";
|
|
903
|
+
data: {
|
|
904
|
+
seconds: number;
|
|
905
|
+
};
|
|
1050
906
|
}>]>;
|
|
1051
907
|
mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1052
908
|
}, "strip", z.ZodTypeAny, {
|
|
1053
909
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
1054
910
|
payload: {
|
|
1055
911
|
type: "EMPTY";
|
|
1056
|
-
} | {
|
|
1057
|
-
type: "WAIT";
|
|
1058
|
-
data: {
|
|
1059
|
-
seconds: number;
|
|
1060
|
-
};
|
|
1061
912
|
} | {
|
|
1062
913
|
type: "PRICE";
|
|
1063
914
|
data: {
|
|
@@ -1072,6 +923,11 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1072
923
|
data: {
|
|
1073
924
|
text: string;
|
|
1074
925
|
};
|
|
926
|
+
} | {
|
|
927
|
+
type: "WAIT";
|
|
928
|
+
data: {
|
|
929
|
+
seconds: number;
|
|
930
|
+
};
|
|
1075
931
|
};
|
|
1076
932
|
enabled: boolean;
|
|
1077
933
|
mandatory?: boolean | null | undefined;
|
|
@@ -1079,11 +935,6 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1079
935
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
1080
936
|
payload: {
|
|
1081
937
|
type: "EMPTY";
|
|
1082
|
-
} | {
|
|
1083
|
-
type: "WAIT";
|
|
1084
|
-
data: {
|
|
1085
|
-
seconds: number;
|
|
1086
|
-
};
|
|
1087
938
|
} | {
|
|
1088
939
|
type: "PRICE";
|
|
1089
940
|
data: {
|
|
@@ -1098,6 +949,11 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1098
949
|
data: {
|
|
1099
950
|
text: string;
|
|
1100
951
|
};
|
|
952
|
+
} | {
|
|
953
|
+
type: "WAIT";
|
|
954
|
+
data: {
|
|
955
|
+
seconds: number;
|
|
956
|
+
};
|
|
1101
957
|
};
|
|
1102
958
|
enabled: boolean;
|
|
1103
959
|
mandatory?: boolean | null | undefined;
|
|
@@ -1107,11 +963,6 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1107
963
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
1108
964
|
payload: {
|
|
1109
965
|
type: "EMPTY";
|
|
1110
|
-
} | {
|
|
1111
|
-
type: "WAIT";
|
|
1112
|
-
data: {
|
|
1113
|
-
seconds: number;
|
|
1114
|
-
};
|
|
1115
966
|
} | {
|
|
1116
967
|
type: "PRICE";
|
|
1117
968
|
data: {
|
|
@@ -1126,6 +977,11 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1126
977
|
data: {
|
|
1127
978
|
text: string;
|
|
1128
979
|
};
|
|
980
|
+
} | {
|
|
981
|
+
type: "WAIT";
|
|
982
|
+
data: {
|
|
983
|
+
seconds: number;
|
|
984
|
+
};
|
|
1129
985
|
};
|
|
1130
986
|
enabled: boolean;
|
|
1131
987
|
mandatory?: boolean | null | undefined;
|
|
@@ -1135,11 +991,6 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1135
991
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
1136
992
|
payload: {
|
|
1137
993
|
type: "EMPTY";
|
|
1138
|
-
} | {
|
|
1139
|
-
type: "WAIT";
|
|
1140
|
-
data: {
|
|
1141
|
-
seconds: number;
|
|
1142
|
-
};
|
|
1143
994
|
} | {
|
|
1144
995
|
type: "PRICE";
|
|
1145
996
|
data: {
|
|
@@ -1154,11 +1005,17 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1154
1005
|
data: {
|
|
1155
1006
|
text: string;
|
|
1156
1007
|
};
|
|
1008
|
+
} | {
|
|
1009
|
+
type: "WAIT";
|
|
1010
|
+
data: {
|
|
1011
|
+
seconds: number;
|
|
1012
|
+
};
|
|
1157
1013
|
};
|
|
1158
1014
|
enabled: boolean;
|
|
1159
1015
|
mandatory?: boolean | null | undefined;
|
|
1160
1016
|
}[];
|
|
1161
1017
|
}>;
|
|
1018
|
+
type: z.ZodLiteral<"ACTIONS">;
|
|
1162
1019
|
}, "strip", z.ZodTypeAny, {
|
|
1163
1020
|
type: "ACTIONS";
|
|
1164
1021
|
data: {
|
|
@@ -1166,11 +1023,6 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1166
1023
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
1167
1024
|
payload: {
|
|
1168
1025
|
type: "EMPTY";
|
|
1169
|
-
} | {
|
|
1170
|
-
type: "WAIT";
|
|
1171
|
-
data: {
|
|
1172
|
-
seconds: number;
|
|
1173
|
-
};
|
|
1174
1026
|
} | {
|
|
1175
1027
|
type: "PRICE";
|
|
1176
1028
|
data: {
|
|
@@ -1185,6 +1037,11 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1185
1037
|
data: {
|
|
1186
1038
|
text: string;
|
|
1187
1039
|
};
|
|
1040
|
+
} | {
|
|
1041
|
+
type: "WAIT";
|
|
1042
|
+
data: {
|
|
1043
|
+
seconds: number;
|
|
1044
|
+
};
|
|
1188
1045
|
};
|
|
1189
1046
|
enabled: boolean;
|
|
1190
1047
|
mandatory?: boolean | null | undefined;
|
|
@@ -1197,11 +1054,6 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1197
1054
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
1198
1055
|
payload: {
|
|
1199
1056
|
type: "EMPTY";
|
|
1200
|
-
} | {
|
|
1201
|
-
type: "WAIT";
|
|
1202
|
-
data: {
|
|
1203
|
-
seconds: number;
|
|
1204
|
-
};
|
|
1205
1057
|
} | {
|
|
1206
1058
|
type: "PRICE";
|
|
1207
1059
|
data: {
|
|
@@ -1216,13 +1068,23 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1216
1068
|
data: {
|
|
1217
1069
|
text: string;
|
|
1218
1070
|
};
|
|
1071
|
+
} | {
|
|
1072
|
+
type: "WAIT";
|
|
1073
|
+
data: {
|
|
1074
|
+
seconds: number;
|
|
1075
|
+
};
|
|
1219
1076
|
};
|
|
1220
1077
|
enabled: boolean;
|
|
1221
1078
|
mandatory?: boolean | null | undefined;
|
|
1222
1079
|
}[];
|
|
1223
1080
|
};
|
|
1224
1081
|
}>, z.ZodObject<{
|
|
1225
|
-
type: z.ZodLiteral<"
|
|
1082
|
+
type: z.ZodLiteral<"EMPTY">;
|
|
1083
|
+
}, "strip", z.ZodTypeAny, {
|
|
1084
|
+
type: "EMPTY";
|
|
1085
|
+
}, {
|
|
1086
|
+
type: "EMPTY";
|
|
1087
|
+
}>, z.ZodObject<{
|
|
1226
1088
|
data: z.ZodObject<{
|
|
1227
1089
|
fees: z.ZodArray<z.ZodObject<{
|
|
1228
1090
|
name: z.ZodString;
|
|
@@ -1240,34 +1102,59 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1240
1102
|
name: string;
|
|
1241
1103
|
}[];
|
|
1242
1104
|
}, {
|
|
1243
|
-
fees: {
|
|
1244
|
-
value: number;
|
|
1245
|
-
name: string;
|
|
1246
|
-
}[];
|
|
1105
|
+
fees: {
|
|
1106
|
+
value: number;
|
|
1107
|
+
name: string;
|
|
1108
|
+
}[];
|
|
1109
|
+
}>;
|
|
1110
|
+
type: z.ZodLiteral<"FEES">;
|
|
1111
|
+
}, "strip", z.ZodTypeAny, {
|
|
1112
|
+
type: "FEES";
|
|
1113
|
+
data: {
|
|
1114
|
+
fees: {
|
|
1115
|
+
value: number;
|
|
1116
|
+
name: string;
|
|
1117
|
+
}[];
|
|
1118
|
+
};
|
|
1119
|
+
}, {
|
|
1120
|
+
type: "FEES";
|
|
1121
|
+
data: {
|
|
1122
|
+
fees: {
|
|
1123
|
+
value: number;
|
|
1124
|
+
name: string;
|
|
1125
|
+
}[];
|
|
1126
|
+
};
|
|
1127
|
+
}>, z.ZodObject<{
|
|
1128
|
+
data: z.ZodObject<{
|
|
1129
|
+
type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
|
|
1130
|
+
value: z.ZodNumber;
|
|
1131
|
+
roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
|
|
1132
|
+
roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1133
|
+
negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
|
|
1134
|
+
}, "strip", z.ZodTypeAny, {
|
|
1135
|
+
value: number;
|
|
1136
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
1137
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
1138
|
+
roundStep?: number | null | undefined;
|
|
1139
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
1140
|
+
}, {
|
|
1141
|
+
value: number;
|
|
1142
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
1143
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
1144
|
+
roundStep?: number | null | undefined;
|
|
1145
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
1247
1146
|
}>;
|
|
1147
|
+
type: z.ZodLiteral<"PRICE">;
|
|
1248
1148
|
}, "strip", z.ZodTypeAny, {
|
|
1249
|
-
type: "
|
|
1149
|
+
type: "PRICE";
|
|
1250
1150
|
data: {
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1151
|
+
value: number;
|
|
1152
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
1153
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
1154
|
+
roundStep?: number | null | undefined;
|
|
1155
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
1255
1156
|
};
|
|
1256
1157
|
}, {
|
|
1257
|
-
type: "FEES";
|
|
1258
|
-
data: {
|
|
1259
|
-
fees: {
|
|
1260
|
-
value: number;
|
|
1261
|
-
name: string;
|
|
1262
|
-
}[];
|
|
1263
|
-
};
|
|
1264
|
-
}>]>;
|
|
1265
|
-
}, "strip", z.ZodTypeAny, {
|
|
1266
|
-
id: string;
|
|
1267
|
-
name: string;
|
|
1268
|
-
payload: {
|
|
1269
|
-
type: "EMPTY";
|
|
1270
|
-
} | {
|
|
1271
1158
|
type: "PRICE";
|
|
1272
1159
|
data: {
|
|
1273
1160
|
value: number;
|
|
@@ -1276,7 +1163,71 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1276
1163
|
roundStep?: number | null | undefined;
|
|
1277
1164
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
1278
1165
|
};
|
|
1279
|
-
}
|
|
1166
|
+
}>, z.ZodObject<{
|
|
1167
|
+
data: z.ZodObject<{
|
|
1168
|
+
text: z.ZodString;
|
|
1169
|
+
}, "strip", z.ZodTypeAny, {
|
|
1170
|
+
text: string;
|
|
1171
|
+
}, {
|
|
1172
|
+
text: string;
|
|
1173
|
+
}>;
|
|
1174
|
+
type: z.ZodLiteral<"TEXT">;
|
|
1175
|
+
}, "strip", z.ZodTypeAny, {
|
|
1176
|
+
type: "TEXT";
|
|
1177
|
+
data: {
|
|
1178
|
+
text: string;
|
|
1179
|
+
};
|
|
1180
|
+
}, {
|
|
1181
|
+
type: "TEXT";
|
|
1182
|
+
data: {
|
|
1183
|
+
text: string;
|
|
1184
|
+
};
|
|
1185
|
+
}>, z.ZodObject<{
|
|
1186
|
+
data: z.ZodObject<{
|
|
1187
|
+
doRemoveBackground: z.ZodBoolean;
|
|
1188
|
+
doSmartCrop: z.ZodBoolean;
|
|
1189
|
+
doChangeBackground: z.ZodBoolean;
|
|
1190
|
+
doRotate: z.ZodBoolean;
|
|
1191
|
+
doAddBorders: z.ZodBoolean;
|
|
1192
|
+
shadow: z.ZodBoolean;
|
|
1193
|
+
targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1194
|
+
targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1195
|
+
newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1196
|
+
newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1197
|
+
rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1198
|
+
borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1199
|
+
borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1200
|
+
}, "strip", z.ZodTypeAny, {
|
|
1201
|
+
doRemoveBackground: boolean;
|
|
1202
|
+
doSmartCrop: boolean;
|
|
1203
|
+
doChangeBackground: boolean;
|
|
1204
|
+
doRotate: boolean;
|
|
1205
|
+
doAddBorders: boolean;
|
|
1206
|
+
shadow: boolean;
|
|
1207
|
+
targetWidth?: number | null | undefined;
|
|
1208
|
+
targetHeight?: number | null | undefined;
|
|
1209
|
+
newBackgroundColor?: string | null | undefined;
|
|
1210
|
+
newBackgroundUrl?: string | null | undefined;
|
|
1211
|
+
rotationAngle?: number | null | undefined;
|
|
1212
|
+
borderSize?: number | null | undefined;
|
|
1213
|
+
borderColor?: string | null | undefined;
|
|
1214
|
+
}, {
|
|
1215
|
+
doRemoveBackground: boolean;
|
|
1216
|
+
doSmartCrop: boolean;
|
|
1217
|
+
doChangeBackground: boolean;
|
|
1218
|
+
doRotate: boolean;
|
|
1219
|
+
doAddBorders: boolean;
|
|
1220
|
+
shadow: boolean;
|
|
1221
|
+
targetWidth?: number | null | undefined;
|
|
1222
|
+
targetHeight?: number | null | undefined;
|
|
1223
|
+
newBackgroundColor?: string | null | undefined;
|
|
1224
|
+
newBackgroundUrl?: string | null | undefined;
|
|
1225
|
+
rotationAngle?: number | null | undefined;
|
|
1226
|
+
borderSize?: number | null | undefined;
|
|
1227
|
+
borderColor?: string | null | undefined;
|
|
1228
|
+
}>;
|
|
1229
|
+
type: z.ZodLiteral<"VISION">;
|
|
1230
|
+
}, "strip", z.ZodTypeAny, {
|
|
1280
1231
|
type: "VISION";
|
|
1281
1232
|
data: {
|
|
1282
1233
|
doRemoveBackground: boolean;
|
|
@@ -1293,23 +1244,34 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1293
1244
|
borderSize?: number | null | undefined;
|
|
1294
1245
|
borderColor?: string | null | undefined;
|
|
1295
1246
|
};
|
|
1296
|
-
}
|
|
1297
|
-
type: "
|
|
1247
|
+
}, {
|
|
1248
|
+
type: "VISION";
|
|
1298
1249
|
data: {
|
|
1299
|
-
|
|
1250
|
+
doRemoveBackground: boolean;
|
|
1251
|
+
doSmartCrop: boolean;
|
|
1252
|
+
doChangeBackground: boolean;
|
|
1253
|
+
doRotate: boolean;
|
|
1254
|
+
doAddBorders: boolean;
|
|
1255
|
+
shadow: boolean;
|
|
1256
|
+
targetWidth?: number | null | undefined;
|
|
1257
|
+
targetHeight?: number | null | undefined;
|
|
1258
|
+
newBackgroundColor?: string | null | undefined;
|
|
1259
|
+
newBackgroundUrl?: string | null | undefined;
|
|
1260
|
+
rotationAngle?: number | null | undefined;
|
|
1261
|
+
borderSize?: number | null | undefined;
|
|
1262
|
+
borderColor?: string | null | undefined;
|
|
1300
1263
|
};
|
|
1301
|
-
}
|
|
1264
|
+
}>]>;
|
|
1265
|
+
}, "strip", z.ZodTypeAny, {
|
|
1266
|
+
id: string;
|
|
1267
|
+
name: string;
|
|
1268
|
+
payload: {
|
|
1302
1269
|
type: "ACTIONS";
|
|
1303
1270
|
data: {
|
|
1304
1271
|
actions: {
|
|
1305
1272
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
1306
1273
|
payload: {
|
|
1307
1274
|
type: "EMPTY";
|
|
1308
|
-
} | {
|
|
1309
|
-
type: "WAIT";
|
|
1310
|
-
data: {
|
|
1311
|
-
seconds: number;
|
|
1312
|
-
};
|
|
1313
1275
|
} | {
|
|
1314
1276
|
type: "PRICE";
|
|
1315
1277
|
data: {
|
|
@@ -1324,11 +1286,18 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1324
1286
|
data: {
|
|
1325
1287
|
text: string;
|
|
1326
1288
|
};
|
|
1289
|
+
} | {
|
|
1290
|
+
type: "WAIT";
|
|
1291
|
+
data: {
|
|
1292
|
+
seconds: number;
|
|
1293
|
+
};
|
|
1327
1294
|
};
|
|
1328
1295
|
enabled: boolean;
|
|
1329
1296
|
mandatory?: boolean | null | undefined;
|
|
1330
1297
|
}[];
|
|
1331
1298
|
};
|
|
1299
|
+
} | {
|
|
1300
|
+
type: "EMPTY";
|
|
1332
1301
|
} | {
|
|
1333
1302
|
type: "FEES";
|
|
1334
1303
|
data: {
|
|
@@ -1337,14 +1306,6 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1337
1306
|
name: string;
|
|
1338
1307
|
}[];
|
|
1339
1308
|
};
|
|
1340
|
-
};
|
|
1341
|
-
caseId: string;
|
|
1342
|
-
weight: number;
|
|
1343
|
-
}, {
|
|
1344
|
-
id: string;
|
|
1345
|
-
name: string;
|
|
1346
|
-
payload: {
|
|
1347
|
-
type: "EMPTY";
|
|
1348
1309
|
} | {
|
|
1349
1310
|
type: "PRICE";
|
|
1350
1311
|
data: {
|
|
@@ -1354,6 +1315,11 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1354
1315
|
roundStep?: number | null | undefined;
|
|
1355
1316
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
1356
1317
|
};
|
|
1318
|
+
} | {
|
|
1319
|
+
type: "TEXT";
|
|
1320
|
+
data: {
|
|
1321
|
+
text: string;
|
|
1322
|
+
};
|
|
1357
1323
|
} | {
|
|
1358
1324
|
type: "VISION";
|
|
1359
1325
|
data: {
|
|
@@ -1371,23 +1337,19 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1371
1337
|
borderSize?: number | null | undefined;
|
|
1372
1338
|
borderColor?: string | null | undefined;
|
|
1373
1339
|
};
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1340
|
+
};
|
|
1341
|
+
caseId: string;
|
|
1342
|
+
weight: number;
|
|
1343
|
+
}, {
|
|
1344
|
+
id: string;
|
|
1345
|
+
name: string;
|
|
1346
|
+
payload: {
|
|
1380
1347
|
type: "ACTIONS";
|
|
1381
1348
|
data: {
|
|
1382
1349
|
actions: {
|
|
1383
1350
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
1384
1351
|
payload: {
|
|
1385
1352
|
type: "EMPTY";
|
|
1386
|
-
} | {
|
|
1387
|
-
type: "WAIT";
|
|
1388
|
-
data: {
|
|
1389
|
-
seconds: number;
|
|
1390
|
-
};
|
|
1391
1353
|
} | {
|
|
1392
1354
|
type: "PRICE";
|
|
1393
1355
|
data: {
|
|
@@ -1402,11 +1364,18 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1402
1364
|
data: {
|
|
1403
1365
|
text: string;
|
|
1404
1366
|
};
|
|
1367
|
+
} | {
|
|
1368
|
+
type: "WAIT";
|
|
1369
|
+
data: {
|
|
1370
|
+
seconds: number;
|
|
1371
|
+
};
|
|
1405
1372
|
};
|
|
1406
1373
|
enabled: boolean;
|
|
1407
1374
|
mandatory?: boolean | null | undefined;
|
|
1408
1375
|
}[];
|
|
1409
1376
|
};
|
|
1377
|
+
} | {
|
|
1378
|
+
type: "EMPTY";
|
|
1410
1379
|
} | {
|
|
1411
1380
|
type: "FEES";
|
|
1412
1381
|
data: {
|
|
@@ -1415,22 +1384,6 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1415
1384
|
name: string;
|
|
1416
1385
|
}[];
|
|
1417
1386
|
};
|
|
1418
|
-
};
|
|
1419
|
-
caseId: string;
|
|
1420
|
-
weight: number;
|
|
1421
|
-
}>, "many">>>;
|
|
1422
|
-
}, "strip", z.ZodTypeAny, {
|
|
1423
|
-
id: string;
|
|
1424
|
-
enabled: boolean;
|
|
1425
|
-
testMode: boolean;
|
|
1426
|
-
preferenceId: string;
|
|
1427
|
-
abTest: boolean;
|
|
1428
|
-
savedFiltersId?: string | null | undefined;
|
|
1429
|
-
variants?: {
|
|
1430
|
-
id: string;
|
|
1431
|
-
name: string;
|
|
1432
|
-
payload: {
|
|
1433
|
-
type: "EMPTY";
|
|
1434
1387
|
} | {
|
|
1435
1388
|
type: "PRICE";
|
|
1436
1389
|
data: {
|
|
@@ -1440,6 +1393,11 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1440
1393
|
roundStep?: number | null | undefined;
|
|
1441
1394
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
1442
1395
|
};
|
|
1396
|
+
} | {
|
|
1397
|
+
type: "TEXT";
|
|
1398
|
+
data: {
|
|
1399
|
+
text: string;
|
|
1400
|
+
};
|
|
1443
1401
|
} | {
|
|
1444
1402
|
type: "VISION";
|
|
1445
1403
|
data: {
|
|
@@ -1457,23 +1415,27 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1457
1415
|
borderSize?: number | null | undefined;
|
|
1458
1416
|
borderColor?: string | null | undefined;
|
|
1459
1417
|
};
|
|
1460
|
-
}
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1418
|
+
};
|
|
1419
|
+
caseId: string;
|
|
1420
|
+
weight: number;
|
|
1421
|
+
}>, "many">>>;
|
|
1422
|
+
}, "strip", z.ZodTypeAny, {
|
|
1423
|
+
id: string;
|
|
1424
|
+
enabled: boolean;
|
|
1425
|
+
testMode: boolean;
|
|
1426
|
+
preferenceId: string;
|
|
1427
|
+
abTest: boolean;
|
|
1428
|
+
savedFiltersId?: string | null | undefined;
|
|
1429
|
+
variants?: {
|
|
1430
|
+
id: string;
|
|
1431
|
+
name: string;
|
|
1432
|
+
payload: {
|
|
1466
1433
|
type: "ACTIONS";
|
|
1467
1434
|
data: {
|
|
1468
1435
|
actions: {
|
|
1469
1436
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
1470
1437
|
payload: {
|
|
1471
1438
|
type: "EMPTY";
|
|
1472
|
-
} | {
|
|
1473
|
-
type: "WAIT";
|
|
1474
|
-
data: {
|
|
1475
|
-
seconds: number;
|
|
1476
|
-
};
|
|
1477
1439
|
} | {
|
|
1478
1440
|
type: "PRICE";
|
|
1479
1441
|
data: {
|
|
@@ -1488,11 +1450,18 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1488
1450
|
data: {
|
|
1489
1451
|
text: string;
|
|
1490
1452
|
};
|
|
1453
|
+
} | {
|
|
1454
|
+
type: "WAIT";
|
|
1455
|
+
data: {
|
|
1456
|
+
seconds: number;
|
|
1457
|
+
};
|
|
1491
1458
|
};
|
|
1492
1459
|
enabled: boolean;
|
|
1493
1460
|
mandatory?: boolean | null | undefined;
|
|
1494
1461
|
}[];
|
|
1495
1462
|
};
|
|
1463
|
+
} | {
|
|
1464
|
+
type: "EMPTY";
|
|
1496
1465
|
} | {
|
|
1497
1466
|
type: "FEES";
|
|
1498
1467
|
data: {
|
|
@@ -1501,22 +1470,6 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1501
1470
|
name: string;
|
|
1502
1471
|
}[];
|
|
1503
1472
|
};
|
|
1504
|
-
};
|
|
1505
|
-
caseId: string;
|
|
1506
|
-
weight: number;
|
|
1507
|
-
}[] | null | undefined;
|
|
1508
|
-
}, {
|
|
1509
|
-
id: string;
|
|
1510
|
-
enabled: boolean;
|
|
1511
|
-
testMode: boolean;
|
|
1512
|
-
preferenceId: string;
|
|
1513
|
-
abTest: boolean;
|
|
1514
|
-
savedFiltersId?: string | null | undefined;
|
|
1515
|
-
variants?: {
|
|
1516
|
-
id: string;
|
|
1517
|
-
name: string;
|
|
1518
|
-
payload: {
|
|
1519
|
-
type: "EMPTY";
|
|
1520
1473
|
} | {
|
|
1521
1474
|
type: "PRICE";
|
|
1522
1475
|
data: {
|
|
@@ -1526,6 +1479,11 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1526
1479
|
roundStep?: number | null | undefined;
|
|
1527
1480
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
1528
1481
|
};
|
|
1482
|
+
} | {
|
|
1483
|
+
type: "TEXT";
|
|
1484
|
+
data: {
|
|
1485
|
+
text: string;
|
|
1486
|
+
};
|
|
1529
1487
|
} | {
|
|
1530
1488
|
type: "VISION";
|
|
1531
1489
|
data: {
|
|
@@ -1543,23 +1501,27 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1543
1501
|
borderSize?: number | null | undefined;
|
|
1544
1502
|
borderColor?: string | null | undefined;
|
|
1545
1503
|
};
|
|
1546
|
-
}
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1504
|
+
};
|
|
1505
|
+
caseId: string;
|
|
1506
|
+
weight: number;
|
|
1507
|
+
}[] | null | undefined;
|
|
1508
|
+
}, {
|
|
1509
|
+
id: string;
|
|
1510
|
+
enabled: boolean;
|
|
1511
|
+
testMode: boolean;
|
|
1512
|
+
preferenceId: string;
|
|
1513
|
+
abTest: boolean;
|
|
1514
|
+
savedFiltersId?: string | null | undefined;
|
|
1515
|
+
variants?: {
|
|
1516
|
+
id: string;
|
|
1517
|
+
name: string;
|
|
1518
|
+
payload: {
|
|
1552
1519
|
type: "ACTIONS";
|
|
1553
1520
|
data: {
|
|
1554
1521
|
actions: {
|
|
1555
1522
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
1556
1523
|
payload: {
|
|
1557
1524
|
type: "EMPTY";
|
|
1558
|
-
} | {
|
|
1559
|
-
type: "WAIT";
|
|
1560
|
-
data: {
|
|
1561
|
-
seconds: number;
|
|
1562
|
-
};
|
|
1563
1525
|
} | {
|
|
1564
1526
|
type: "PRICE";
|
|
1565
1527
|
data: {
|
|
@@ -1574,11 +1536,18 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1574
1536
|
data: {
|
|
1575
1537
|
text: string;
|
|
1576
1538
|
};
|
|
1539
|
+
} | {
|
|
1540
|
+
type: "WAIT";
|
|
1541
|
+
data: {
|
|
1542
|
+
seconds: number;
|
|
1543
|
+
};
|
|
1577
1544
|
};
|
|
1578
1545
|
enabled: boolean;
|
|
1579
1546
|
mandatory?: boolean | null | undefined;
|
|
1580
1547
|
}[];
|
|
1581
1548
|
};
|
|
1549
|
+
} | {
|
|
1550
|
+
type: "EMPTY";
|
|
1582
1551
|
} | {
|
|
1583
1552
|
type: "FEES";
|
|
1584
1553
|
data: {
|
|
@@ -1587,30 +1556,6 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1587
1556
|
name: string;
|
|
1588
1557
|
}[];
|
|
1589
1558
|
};
|
|
1590
|
-
};
|
|
1591
|
-
caseId: string;
|
|
1592
|
-
weight: number;
|
|
1593
|
-
}[] | null | undefined;
|
|
1594
|
-
}>, "many">>>;
|
|
1595
|
-
}, "strip", z.ZodTypeAny, {
|
|
1596
|
-
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";
|
|
1597
|
-
id: string;
|
|
1598
|
-
userId: string | number;
|
|
1599
|
-
enabled: boolean;
|
|
1600
|
-
testMode: boolean;
|
|
1601
|
-
parentPreferenceId?: string | null | undefined;
|
|
1602
|
-
cases?: {
|
|
1603
|
-
id: string;
|
|
1604
|
-
enabled: boolean;
|
|
1605
|
-
testMode: boolean;
|
|
1606
|
-
preferenceId: string;
|
|
1607
|
-
abTest: boolean;
|
|
1608
|
-
savedFiltersId?: string | null | undefined;
|
|
1609
|
-
variants?: {
|
|
1610
|
-
id: string;
|
|
1611
|
-
name: string;
|
|
1612
|
-
payload: {
|
|
1613
|
-
type: "EMPTY";
|
|
1614
1559
|
} | {
|
|
1615
1560
|
type: "PRICE";
|
|
1616
1561
|
data: {
|
|
@@ -1620,6 +1565,11 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1620
1565
|
roundStep?: number | null | undefined;
|
|
1621
1566
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
1622
1567
|
};
|
|
1568
|
+
} | {
|
|
1569
|
+
type: "TEXT";
|
|
1570
|
+
data: {
|
|
1571
|
+
text: string;
|
|
1572
|
+
};
|
|
1623
1573
|
} | {
|
|
1624
1574
|
type: "VISION";
|
|
1625
1575
|
data: {
|
|
@@ -1637,23 +1587,35 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1637
1587
|
borderSize?: number | null | undefined;
|
|
1638
1588
|
borderColor?: string | null | undefined;
|
|
1639
1589
|
};
|
|
1640
|
-
}
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1590
|
+
};
|
|
1591
|
+
caseId: string;
|
|
1592
|
+
weight: number;
|
|
1593
|
+
}[] | null | undefined;
|
|
1594
|
+
}>, "many">>>;
|
|
1595
|
+
}, "strip", z.ZodTypeAny, {
|
|
1596
|
+
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";
|
|
1597
|
+
id: string;
|
|
1598
|
+
userId: string | number;
|
|
1599
|
+
enabled: boolean;
|
|
1600
|
+
testMode: boolean;
|
|
1601
|
+
parentPreferenceId?: string | null | undefined;
|
|
1602
|
+
cases?: {
|
|
1603
|
+
id: string;
|
|
1604
|
+
enabled: boolean;
|
|
1605
|
+
testMode: boolean;
|
|
1606
|
+
preferenceId: string;
|
|
1607
|
+
abTest: boolean;
|
|
1608
|
+
savedFiltersId?: string | null | undefined;
|
|
1609
|
+
variants?: {
|
|
1610
|
+
id: string;
|
|
1611
|
+
name: string;
|
|
1612
|
+
payload: {
|
|
1646
1613
|
type: "ACTIONS";
|
|
1647
1614
|
data: {
|
|
1648
1615
|
actions: {
|
|
1649
1616
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
1650
1617
|
payload: {
|
|
1651
1618
|
type: "EMPTY";
|
|
1652
|
-
} | {
|
|
1653
|
-
type: "WAIT";
|
|
1654
|
-
data: {
|
|
1655
|
-
seconds: number;
|
|
1656
|
-
};
|
|
1657
1619
|
} | {
|
|
1658
1620
|
type: "PRICE";
|
|
1659
1621
|
data: {
|
|
@@ -1668,11 +1630,18 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1668
1630
|
data: {
|
|
1669
1631
|
text: string;
|
|
1670
1632
|
};
|
|
1633
|
+
} | {
|
|
1634
|
+
type: "WAIT";
|
|
1635
|
+
data: {
|
|
1636
|
+
seconds: number;
|
|
1637
|
+
};
|
|
1671
1638
|
};
|
|
1672
1639
|
enabled: boolean;
|
|
1673
1640
|
mandatory?: boolean | null | undefined;
|
|
1674
1641
|
}[];
|
|
1675
1642
|
};
|
|
1643
|
+
} | {
|
|
1644
|
+
type: "EMPTY";
|
|
1676
1645
|
} | {
|
|
1677
1646
|
type: "FEES";
|
|
1678
1647
|
data: {
|
|
@@ -1681,30 +1650,6 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1681
1650
|
name: string;
|
|
1682
1651
|
}[];
|
|
1683
1652
|
};
|
|
1684
|
-
};
|
|
1685
|
-
caseId: string;
|
|
1686
|
-
weight: number;
|
|
1687
|
-
}[] | null | undefined;
|
|
1688
|
-
}[] | null | undefined;
|
|
1689
|
-
}, {
|
|
1690
|
-
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";
|
|
1691
|
-
id: string;
|
|
1692
|
-
userId: string | number;
|
|
1693
|
-
enabled: boolean;
|
|
1694
|
-
testMode: boolean;
|
|
1695
|
-
parentPreferenceId?: string | null | undefined;
|
|
1696
|
-
cases?: {
|
|
1697
|
-
id: string;
|
|
1698
|
-
enabled: boolean;
|
|
1699
|
-
testMode: boolean;
|
|
1700
|
-
preferenceId: string;
|
|
1701
|
-
abTest: boolean;
|
|
1702
|
-
savedFiltersId?: string | null | undefined;
|
|
1703
|
-
variants?: {
|
|
1704
|
-
id: string;
|
|
1705
|
-
name: string;
|
|
1706
|
-
payload: {
|
|
1707
|
-
type: "EMPTY";
|
|
1708
1653
|
} | {
|
|
1709
1654
|
type: "PRICE";
|
|
1710
1655
|
data: {
|
|
@@ -1714,6 +1659,11 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1714
1659
|
roundStep?: number | null | undefined;
|
|
1715
1660
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
1716
1661
|
};
|
|
1662
|
+
} | {
|
|
1663
|
+
type: "TEXT";
|
|
1664
|
+
data: {
|
|
1665
|
+
text: string;
|
|
1666
|
+
};
|
|
1717
1667
|
} | {
|
|
1718
1668
|
type: "VISION";
|
|
1719
1669
|
data: {
|
|
@@ -1731,23 +1681,35 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1731
1681
|
borderSize?: number | null | undefined;
|
|
1732
1682
|
borderColor?: string | null | undefined;
|
|
1733
1683
|
};
|
|
1734
|
-
}
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1684
|
+
};
|
|
1685
|
+
caseId: string;
|
|
1686
|
+
weight: number;
|
|
1687
|
+
}[] | null | undefined;
|
|
1688
|
+
}[] | null | undefined;
|
|
1689
|
+
}, {
|
|
1690
|
+
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";
|
|
1691
|
+
id: string;
|
|
1692
|
+
userId: string | number;
|
|
1693
|
+
enabled: boolean;
|
|
1694
|
+
testMode: boolean;
|
|
1695
|
+
parentPreferenceId?: string | null | undefined;
|
|
1696
|
+
cases?: {
|
|
1697
|
+
id: string;
|
|
1698
|
+
enabled: boolean;
|
|
1699
|
+
testMode: boolean;
|
|
1700
|
+
preferenceId: string;
|
|
1701
|
+
abTest: boolean;
|
|
1702
|
+
savedFiltersId?: string | null | undefined;
|
|
1703
|
+
variants?: {
|
|
1704
|
+
id: string;
|
|
1705
|
+
name: string;
|
|
1706
|
+
payload: {
|
|
1740
1707
|
type: "ACTIONS";
|
|
1741
1708
|
data: {
|
|
1742
1709
|
actions: {
|
|
1743
1710
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
1744
1711
|
payload: {
|
|
1745
1712
|
type: "EMPTY";
|
|
1746
|
-
} | {
|
|
1747
|
-
type: "WAIT";
|
|
1748
|
-
data: {
|
|
1749
|
-
seconds: number;
|
|
1750
|
-
};
|
|
1751
1713
|
} | {
|
|
1752
1714
|
type: "PRICE";
|
|
1753
1715
|
data: {
|
|
@@ -1762,11 +1724,18 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1762
1724
|
data: {
|
|
1763
1725
|
text: string;
|
|
1764
1726
|
};
|
|
1727
|
+
} | {
|
|
1728
|
+
type: "WAIT";
|
|
1729
|
+
data: {
|
|
1730
|
+
seconds: number;
|
|
1731
|
+
};
|
|
1765
1732
|
};
|
|
1766
1733
|
enabled: boolean;
|
|
1767
1734
|
mandatory?: boolean | null | undefined;
|
|
1768
1735
|
}[];
|
|
1769
1736
|
};
|
|
1737
|
+
} | {
|
|
1738
|
+
type: "EMPTY";
|
|
1770
1739
|
} | {
|
|
1771
1740
|
type: "FEES";
|
|
1772
1741
|
data: {
|
|
@@ -1775,6 +1744,37 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1775
1744
|
name: string;
|
|
1776
1745
|
}[];
|
|
1777
1746
|
};
|
|
1747
|
+
} | {
|
|
1748
|
+
type: "PRICE";
|
|
1749
|
+
data: {
|
|
1750
|
+
value: number;
|
|
1751
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
1752
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
1753
|
+
roundStep?: number | null | undefined;
|
|
1754
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
1755
|
+
};
|
|
1756
|
+
} | {
|
|
1757
|
+
type: "TEXT";
|
|
1758
|
+
data: {
|
|
1759
|
+
text: string;
|
|
1760
|
+
};
|
|
1761
|
+
} | {
|
|
1762
|
+
type: "VISION";
|
|
1763
|
+
data: {
|
|
1764
|
+
doRemoveBackground: boolean;
|
|
1765
|
+
doSmartCrop: boolean;
|
|
1766
|
+
doChangeBackground: boolean;
|
|
1767
|
+
doRotate: boolean;
|
|
1768
|
+
doAddBorders: boolean;
|
|
1769
|
+
shadow: boolean;
|
|
1770
|
+
targetWidth?: number | null | undefined;
|
|
1771
|
+
targetHeight?: number | null | undefined;
|
|
1772
|
+
newBackgroundColor?: string | null | undefined;
|
|
1773
|
+
newBackgroundUrl?: string | null | undefined;
|
|
1774
|
+
rotationAngle?: number | null | undefined;
|
|
1775
|
+
borderSize?: number | null | undefined;
|
|
1776
|
+
borderColor?: string | null | undefined;
|
|
1777
|
+
};
|
|
1778
1778
|
};
|
|
1779
1779
|
caseId: string;
|
|
1780
1780
|
weight: number;
|
|
@@ -1799,50 +1799,12 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1799
1799
|
id: string;
|
|
1800
1800
|
name: string;
|
|
1801
1801
|
payload: {
|
|
1802
|
-
type: "EMPTY";
|
|
1803
|
-
} | {
|
|
1804
|
-
type: "PRICE";
|
|
1805
|
-
data: {
|
|
1806
|
-
value: number;
|
|
1807
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
1808
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
1809
|
-
roundStep?: number | null | undefined;
|
|
1810
|
-
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
1811
|
-
};
|
|
1812
|
-
} | {
|
|
1813
|
-
type: "VISION";
|
|
1814
|
-
data: {
|
|
1815
|
-
doRemoveBackground: boolean;
|
|
1816
|
-
doSmartCrop: boolean;
|
|
1817
|
-
doChangeBackground: boolean;
|
|
1818
|
-
doRotate: boolean;
|
|
1819
|
-
doAddBorders: boolean;
|
|
1820
|
-
shadow: boolean;
|
|
1821
|
-
targetWidth?: number | null | undefined;
|
|
1822
|
-
targetHeight?: number | null | undefined;
|
|
1823
|
-
newBackgroundColor?: string | null | undefined;
|
|
1824
|
-
newBackgroundUrl?: string | null | undefined;
|
|
1825
|
-
rotationAngle?: number | null | undefined;
|
|
1826
|
-
borderSize?: number | null | undefined;
|
|
1827
|
-
borderColor?: string | null | undefined;
|
|
1828
|
-
};
|
|
1829
|
-
} | {
|
|
1830
|
-
type: "TEXT";
|
|
1831
|
-
data: {
|
|
1832
|
-
text: string;
|
|
1833
|
-
};
|
|
1834
|
-
} | {
|
|
1835
1802
|
type: "ACTIONS";
|
|
1836
1803
|
data: {
|
|
1837
1804
|
actions: {
|
|
1838
1805
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
1839
1806
|
payload: {
|
|
1840
1807
|
type: "EMPTY";
|
|
1841
|
-
} | {
|
|
1842
|
-
type: "WAIT";
|
|
1843
|
-
data: {
|
|
1844
|
-
seconds: number;
|
|
1845
|
-
};
|
|
1846
1808
|
} | {
|
|
1847
1809
|
type: "PRICE";
|
|
1848
1810
|
data: {
|
|
@@ -1857,18 +1819,56 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1857
1819
|
data: {
|
|
1858
1820
|
text: string;
|
|
1859
1821
|
};
|
|
1822
|
+
} | {
|
|
1823
|
+
type: "WAIT";
|
|
1824
|
+
data: {
|
|
1825
|
+
seconds: number;
|
|
1826
|
+
};
|
|
1860
1827
|
};
|
|
1861
1828
|
enabled: boolean;
|
|
1862
1829
|
mandatory?: boolean | null | undefined;
|
|
1863
1830
|
}[];
|
|
1864
1831
|
};
|
|
1865
1832
|
} | {
|
|
1866
|
-
type: "
|
|
1833
|
+
type: "EMPTY";
|
|
1834
|
+
} | {
|
|
1835
|
+
type: "FEES";
|
|
1836
|
+
data: {
|
|
1837
|
+
fees: {
|
|
1838
|
+
value: number;
|
|
1839
|
+
name: string;
|
|
1840
|
+
}[];
|
|
1841
|
+
};
|
|
1842
|
+
} | {
|
|
1843
|
+
type: "PRICE";
|
|
1844
|
+
data: {
|
|
1845
|
+
value: number;
|
|
1846
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
1847
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
1848
|
+
roundStep?: number | null | undefined;
|
|
1849
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
1850
|
+
};
|
|
1851
|
+
} | {
|
|
1852
|
+
type: "TEXT";
|
|
1867
1853
|
data: {
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1854
|
+
text: string;
|
|
1855
|
+
};
|
|
1856
|
+
} | {
|
|
1857
|
+
type: "VISION";
|
|
1858
|
+
data: {
|
|
1859
|
+
doRemoveBackground: boolean;
|
|
1860
|
+
doSmartCrop: boolean;
|
|
1861
|
+
doChangeBackground: boolean;
|
|
1862
|
+
doRotate: boolean;
|
|
1863
|
+
doAddBorders: boolean;
|
|
1864
|
+
shadow: boolean;
|
|
1865
|
+
targetWidth?: number | null | undefined;
|
|
1866
|
+
targetHeight?: number | null | undefined;
|
|
1867
|
+
newBackgroundColor?: string | null | undefined;
|
|
1868
|
+
newBackgroundUrl?: string | null | undefined;
|
|
1869
|
+
rotationAngle?: number | null | undefined;
|
|
1870
|
+
borderSize?: number | null | undefined;
|
|
1871
|
+
borderColor?: string | null | undefined;
|
|
1872
1872
|
};
|
|
1873
1873
|
};
|
|
1874
1874
|
caseId: string;
|
|
@@ -1893,50 +1893,12 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1893
1893
|
id: string;
|
|
1894
1894
|
name: string;
|
|
1895
1895
|
payload: {
|
|
1896
|
-
type: "EMPTY";
|
|
1897
|
-
} | {
|
|
1898
|
-
type: "PRICE";
|
|
1899
|
-
data: {
|
|
1900
|
-
value: number;
|
|
1901
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
1902
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
1903
|
-
roundStep?: number | null | undefined;
|
|
1904
|
-
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
1905
|
-
};
|
|
1906
|
-
} | {
|
|
1907
|
-
type: "VISION";
|
|
1908
|
-
data: {
|
|
1909
|
-
doRemoveBackground: boolean;
|
|
1910
|
-
doSmartCrop: boolean;
|
|
1911
|
-
doChangeBackground: boolean;
|
|
1912
|
-
doRotate: boolean;
|
|
1913
|
-
doAddBorders: boolean;
|
|
1914
|
-
shadow: boolean;
|
|
1915
|
-
targetWidth?: number | null | undefined;
|
|
1916
|
-
targetHeight?: number | null | undefined;
|
|
1917
|
-
newBackgroundColor?: string | null | undefined;
|
|
1918
|
-
newBackgroundUrl?: string | null | undefined;
|
|
1919
|
-
rotationAngle?: number | null | undefined;
|
|
1920
|
-
borderSize?: number | null | undefined;
|
|
1921
|
-
borderColor?: string | null | undefined;
|
|
1922
|
-
};
|
|
1923
|
-
} | {
|
|
1924
|
-
type: "TEXT";
|
|
1925
|
-
data: {
|
|
1926
|
-
text: string;
|
|
1927
|
-
};
|
|
1928
|
-
} | {
|
|
1929
1896
|
type: "ACTIONS";
|
|
1930
1897
|
data: {
|
|
1931
1898
|
actions: {
|
|
1932
1899
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
1933
1900
|
payload: {
|
|
1934
1901
|
type: "EMPTY";
|
|
1935
|
-
} | {
|
|
1936
|
-
type: "WAIT";
|
|
1937
|
-
data: {
|
|
1938
|
-
seconds: number;
|
|
1939
|
-
};
|
|
1940
1902
|
} | {
|
|
1941
1903
|
type: "PRICE";
|
|
1942
1904
|
data: {
|
|
@@ -1951,11 +1913,18 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1951
1913
|
data: {
|
|
1952
1914
|
text: string;
|
|
1953
1915
|
};
|
|
1916
|
+
} | {
|
|
1917
|
+
type: "WAIT";
|
|
1918
|
+
data: {
|
|
1919
|
+
seconds: number;
|
|
1920
|
+
};
|
|
1954
1921
|
};
|
|
1955
1922
|
enabled: boolean;
|
|
1956
1923
|
mandatory?: boolean | null | undefined;
|
|
1957
1924
|
}[];
|
|
1958
1925
|
};
|
|
1926
|
+
} | {
|
|
1927
|
+
type: "EMPTY";
|
|
1959
1928
|
} | {
|
|
1960
1929
|
type: "FEES";
|
|
1961
1930
|
data: {
|
|
@@ -1964,6 +1933,37 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1964
1933
|
name: string;
|
|
1965
1934
|
}[];
|
|
1966
1935
|
};
|
|
1936
|
+
} | {
|
|
1937
|
+
type: "PRICE";
|
|
1938
|
+
data: {
|
|
1939
|
+
value: number;
|
|
1940
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
1941
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
1942
|
+
roundStep?: number | null | undefined;
|
|
1943
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
1944
|
+
};
|
|
1945
|
+
} | {
|
|
1946
|
+
type: "TEXT";
|
|
1947
|
+
data: {
|
|
1948
|
+
text: string;
|
|
1949
|
+
};
|
|
1950
|
+
} | {
|
|
1951
|
+
type: "VISION";
|
|
1952
|
+
data: {
|
|
1953
|
+
doRemoveBackground: boolean;
|
|
1954
|
+
doSmartCrop: boolean;
|
|
1955
|
+
doChangeBackground: boolean;
|
|
1956
|
+
doRotate: boolean;
|
|
1957
|
+
doAddBorders: boolean;
|
|
1958
|
+
shadow: boolean;
|
|
1959
|
+
targetWidth?: number | null | undefined;
|
|
1960
|
+
targetHeight?: number | null | undefined;
|
|
1961
|
+
newBackgroundColor?: string | null | undefined;
|
|
1962
|
+
newBackgroundUrl?: string | null | undefined;
|
|
1963
|
+
rotationAngle?: number | null | undefined;
|
|
1964
|
+
borderSize?: number | null | undefined;
|
|
1965
|
+
borderColor?: string | null | undefined;
|
|
1966
|
+
};
|
|
1967
1967
|
};
|
|
1968
1968
|
caseId: string;
|
|
1969
1969
|
weight: number;
|
|
@@ -1988,50 +1988,12 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
1988
1988
|
id: string;
|
|
1989
1989
|
name: string;
|
|
1990
1990
|
payload: {
|
|
1991
|
-
type: "EMPTY";
|
|
1992
|
-
} | {
|
|
1993
|
-
type: "PRICE";
|
|
1994
|
-
data: {
|
|
1995
|
-
value: number;
|
|
1996
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
1997
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
1998
|
-
roundStep?: number | null | undefined;
|
|
1999
|
-
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
2000
|
-
};
|
|
2001
|
-
} | {
|
|
2002
|
-
type: "VISION";
|
|
2003
|
-
data: {
|
|
2004
|
-
doRemoveBackground: boolean;
|
|
2005
|
-
doSmartCrop: boolean;
|
|
2006
|
-
doChangeBackground: boolean;
|
|
2007
|
-
doRotate: boolean;
|
|
2008
|
-
doAddBorders: boolean;
|
|
2009
|
-
shadow: boolean;
|
|
2010
|
-
targetWidth?: number | null | undefined;
|
|
2011
|
-
targetHeight?: number | null | undefined;
|
|
2012
|
-
newBackgroundColor?: string | null | undefined;
|
|
2013
|
-
newBackgroundUrl?: string | null | undefined;
|
|
2014
|
-
rotationAngle?: number | null | undefined;
|
|
2015
|
-
borderSize?: number | null | undefined;
|
|
2016
|
-
borderColor?: string | null | undefined;
|
|
2017
|
-
};
|
|
2018
|
-
} | {
|
|
2019
|
-
type: "TEXT";
|
|
2020
|
-
data: {
|
|
2021
|
-
text: string;
|
|
2022
|
-
};
|
|
2023
|
-
} | {
|
|
2024
1991
|
type: "ACTIONS";
|
|
2025
1992
|
data: {
|
|
2026
1993
|
actions: {
|
|
2027
1994
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
2028
1995
|
payload: {
|
|
2029
1996
|
type: "EMPTY";
|
|
2030
|
-
} | {
|
|
2031
|
-
type: "WAIT";
|
|
2032
|
-
data: {
|
|
2033
|
-
seconds: number;
|
|
2034
|
-
};
|
|
2035
1997
|
} | {
|
|
2036
1998
|
type: "PRICE";
|
|
2037
1999
|
data: {
|
|
@@ -2046,11 +2008,18 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
2046
2008
|
data: {
|
|
2047
2009
|
text: string;
|
|
2048
2010
|
};
|
|
2011
|
+
} | {
|
|
2012
|
+
type: "WAIT";
|
|
2013
|
+
data: {
|
|
2014
|
+
seconds: number;
|
|
2015
|
+
};
|
|
2049
2016
|
};
|
|
2050
2017
|
enabled: boolean;
|
|
2051
2018
|
mandatory?: boolean | null | undefined;
|
|
2052
2019
|
}[];
|
|
2053
2020
|
};
|
|
2021
|
+
} | {
|
|
2022
|
+
type: "EMPTY";
|
|
2054
2023
|
} | {
|
|
2055
2024
|
type: "FEES";
|
|
2056
2025
|
data: {
|
|
@@ -2059,6 +2028,37 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
2059
2028
|
name: string;
|
|
2060
2029
|
}[];
|
|
2061
2030
|
};
|
|
2031
|
+
} | {
|
|
2032
|
+
type: "PRICE";
|
|
2033
|
+
data: {
|
|
2034
|
+
value: number;
|
|
2035
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2036
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2037
|
+
roundStep?: number | null | undefined;
|
|
2038
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
2039
|
+
};
|
|
2040
|
+
} | {
|
|
2041
|
+
type: "TEXT";
|
|
2042
|
+
data: {
|
|
2043
|
+
text: string;
|
|
2044
|
+
};
|
|
2045
|
+
} | {
|
|
2046
|
+
type: "VISION";
|
|
2047
|
+
data: {
|
|
2048
|
+
doRemoveBackground: boolean;
|
|
2049
|
+
doSmartCrop: boolean;
|
|
2050
|
+
doChangeBackground: boolean;
|
|
2051
|
+
doRotate: boolean;
|
|
2052
|
+
doAddBorders: boolean;
|
|
2053
|
+
shadow: boolean;
|
|
2054
|
+
targetWidth?: number | null | undefined;
|
|
2055
|
+
targetHeight?: number | null | undefined;
|
|
2056
|
+
newBackgroundColor?: string | null | undefined;
|
|
2057
|
+
newBackgroundUrl?: string | null | undefined;
|
|
2058
|
+
rotationAngle?: number | null | undefined;
|
|
2059
|
+
borderSize?: number | null | undefined;
|
|
2060
|
+
borderColor?: string | null | undefined;
|
|
2061
|
+
};
|
|
2062
2062
|
};
|
|
2063
2063
|
caseId: string;
|
|
2064
2064
|
weight: number;
|
|
@@ -2082,50 +2082,12 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
2082
2082
|
id: string;
|
|
2083
2083
|
name: string;
|
|
2084
2084
|
payload: {
|
|
2085
|
-
type: "EMPTY";
|
|
2086
|
-
} | {
|
|
2087
|
-
type: "PRICE";
|
|
2088
|
-
data: {
|
|
2089
|
-
value: number;
|
|
2090
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2091
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2092
|
-
roundStep?: number | null | undefined;
|
|
2093
|
-
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
2094
|
-
};
|
|
2095
|
-
} | {
|
|
2096
|
-
type: "VISION";
|
|
2097
|
-
data: {
|
|
2098
|
-
doRemoveBackground: boolean;
|
|
2099
|
-
doSmartCrop: boolean;
|
|
2100
|
-
doChangeBackground: boolean;
|
|
2101
|
-
doRotate: boolean;
|
|
2102
|
-
doAddBorders: boolean;
|
|
2103
|
-
shadow: boolean;
|
|
2104
|
-
targetWidth?: number | null | undefined;
|
|
2105
|
-
targetHeight?: number | null | undefined;
|
|
2106
|
-
newBackgroundColor?: string | null | undefined;
|
|
2107
|
-
newBackgroundUrl?: string | null | undefined;
|
|
2108
|
-
rotationAngle?: number | null | undefined;
|
|
2109
|
-
borderSize?: number | null | undefined;
|
|
2110
|
-
borderColor?: string | null | undefined;
|
|
2111
|
-
};
|
|
2112
|
-
} | {
|
|
2113
|
-
type: "TEXT";
|
|
2114
|
-
data: {
|
|
2115
|
-
text: string;
|
|
2116
|
-
};
|
|
2117
|
-
} | {
|
|
2118
2085
|
type: "ACTIONS";
|
|
2119
2086
|
data: {
|
|
2120
2087
|
actions: {
|
|
2121
2088
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
2122
2089
|
payload: {
|
|
2123
2090
|
type: "EMPTY";
|
|
2124
|
-
} | {
|
|
2125
|
-
type: "WAIT";
|
|
2126
|
-
data: {
|
|
2127
|
-
seconds: number;
|
|
2128
|
-
};
|
|
2129
2091
|
} | {
|
|
2130
2092
|
type: "PRICE";
|
|
2131
2093
|
data: {
|
|
@@ -2140,11 +2102,18 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
2140
2102
|
data: {
|
|
2141
2103
|
text: string;
|
|
2142
2104
|
};
|
|
2105
|
+
} | {
|
|
2106
|
+
type: "WAIT";
|
|
2107
|
+
data: {
|
|
2108
|
+
seconds: number;
|
|
2109
|
+
};
|
|
2143
2110
|
};
|
|
2144
2111
|
enabled: boolean;
|
|
2145
2112
|
mandatory?: boolean | null | undefined;
|
|
2146
2113
|
}[];
|
|
2147
2114
|
};
|
|
2115
|
+
} | {
|
|
2116
|
+
type: "EMPTY";
|
|
2148
2117
|
} | {
|
|
2149
2118
|
type: "FEES";
|
|
2150
2119
|
data: {
|
|
@@ -2153,6 +2122,37 @@ export declare const PreferenceWithChildrenSchema: z.ZodObject<{
|
|
|
2153
2122
|
name: string;
|
|
2154
2123
|
}[];
|
|
2155
2124
|
};
|
|
2125
|
+
} | {
|
|
2126
|
+
type: "PRICE";
|
|
2127
|
+
data: {
|
|
2128
|
+
value: number;
|
|
2129
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2130
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2131
|
+
roundStep?: number | null | undefined;
|
|
2132
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
2133
|
+
};
|
|
2134
|
+
} | {
|
|
2135
|
+
type: "TEXT";
|
|
2136
|
+
data: {
|
|
2137
|
+
text: string;
|
|
2138
|
+
};
|
|
2139
|
+
} | {
|
|
2140
|
+
type: "VISION";
|
|
2141
|
+
data: {
|
|
2142
|
+
doRemoveBackground: boolean;
|
|
2143
|
+
doSmartCrop: boolean;
|
|
2144
|
+
doChangeBackground: boolean;
|
|
2145
|
+
doRotate: boolean;
|
|
2146
|
+
doAddBorders: boolean;
|
|
2147
|
+
shadow: boolean;
|
|
2148
|
+
targetWidth?: number | null | undefined;
|
|
2149
|
+
targetHeight?: number | null | undefined;
|
|
2150
|
+
newBackgroundColor?: string | null | undefined;
|
|
2151
|
+
newBackgroundUrl?: string | null | undefined;
|
|
2152
|
+
rotationAngle?: number | null | undefined;
|
|
2153
|
+
borderSize?: number | null | undefined;
|
|
2154
|
+
borderColor?: string | null | undefined;
|
|
2155
|
+
};
|
|
2156
2156
|
};
|
|
2157
2157
|
caseId: string;
|
|
2158
2158
|
weight: number;
|