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
|
@@ -7,150 +7,6 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
7
7
|
name: z.ZodString;
|
|
8
8
|
weight: z.ZodNumber;
|
|
9
9
|
payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
10
|
-
type: z.ZodLiteral<"EMPTY">;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
type: "EMPTY";
|
|
13
|
-
}, {
|
|
14
|
-
type: "EMPTY";
|
|
15
|
-
}>, z.ZodObject<{
|
|
16
|
-
type: z.ZodLiteral<"PRICE">;
|
|
17
|
-
data: z.ZodObject<{
|
|
18
|
-
type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
|
|
19
|
-
value: z.ZodNumber;
|
|
20
|
-
roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
|
|
21
|
-
roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
-
negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
|
|
23
|
-
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
value: number;
|
|
25
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
26
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
27
|
-
roundStep?: number | null | undefined;
|
|
28
|
-
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
29
|
-
}, {
|
|
30
|
-
value: number;
|
|
31
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
32
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
33
|
-
roundStep?: number | null | undefined;
|
|
34
|
-
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
35
|
-
}>;
|
|
36
|
-
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
type: "PRICE";
|
|
38
|
-
data: {
|
|
39
|
-
value: number;
|
|
40
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
41
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
42
|
-
roundStep?: number | null | undefined;
|
|
43
|
-
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
44
|
-
};
|
|
45
|
-
}, {
|
|
46
|
-
type: "PRICE";
|
|
47
|
-
data: {
|
|
48
|
-
value: number;
|
|
49
|
-
type: "PERCENTAGE" | "ABSOLUTE";
|
|
50
|
-
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
51
|
-
roundStep?: number | null | undefined;
|
|
52
|
-
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
53
|
-
};
|
|
54
|
-
}>, z.ZodObject<{
|
|
55
|
-
type: z.ZodLiteral<"VISION">;
|
|
56
|
-
data: z.ZodObject<{
|
|
57
|
-
doRemoveBackground: z.ZodBoolean;
|
|
58
|
-
doSmartCrop: z.ZodBoolean;
|
|
59
|
-
doChangeBackground: z.ZodBoolean;
|
|
60
|
-
doRotate: z.ZodBoolean;
|
|
61
|
-
doAddBorders: z.ZodBoolean;
|
|
62
|
-
shadow: z.ZodBoolean;
|
|
63
|
-
targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
64
|
-
targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
65
|
-
newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
-
newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
-
rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
68
|
-
borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
69
|
-
borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
-
}, "strip", z.ZodTypeAny, {
|
|
71
|
-
doRemoveBackground: boolean;
|
|
72
|
-
doSmartCrop: boolean;
|
|
73
|
-
doChangeBackground: boolean;
|
|
74
|
-
doRotate: boolean;
|
|
75
|
-
doAddBorders: boolean;
|
|
76
|
-
shadow: boolean;
|
|
77
|
-
targetWidth?: number | null | undefined;
|
|
78
|
-
targetHeight?: number | null | undefined;
|
|
79
|
-
newBackgroundColor?: string | null | undefined;
|
|
80
|
-
newBackgroundUrl?: string | null | undefined;
|
|
81
|
-
rotationAngle?: number | null | undefined;
|
|
82
|
-
borderSize?: number | null | undefined;
|
|
83
|
-
borderColor?: string | null | undefined;
|
|
84
|
-
}, {
|
|
85
|
-
doRemoveBackground: boolean;
|
|
86
|
-
doSmartCrop: boolean;
|
|
87
|
-
doChangeBackground: boolean;
|
|
88
|
-
doRotate: boolean;
|
|
89
|
-
doAddBorders: boolean;
|
|
90
|
-
shadow: boolean;
|
|
91
|
-
targetWidth?: number | null | undefined;
|
|
92
|
-
targetHeight?: number | null | undefined;
|
|
93
|
-
newBackgroundColor?: string | null | undefined;
|
|
94
|
-
newBackgroundUrl?: string | null | undefined;
|
|
95
|
-
rotationAngle?: number | null | undefined;
|
|
96
|
-
borderSize?: number | null | undefined;
|
|
97
|
-
borderColor?: string | null | undefined;
|
|
98
|
-
}>;
|
|
99
|
-
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
type: "VISION";
|
|
101
|
-
data: {
|
|
102
|
-
doRemoveBackground: boolean;
|
|
103
|
-
doSmartCrop: boolean;
|
|
104
|
-
doChangeBackground: boolean;
|
|
105
|
-
doRotate: boolean;
|
|
106
|
-
doAddBorders: boolean;
|
|
107
|
-
shadow: boolean;
|
|
108
|
-
targetWidth?: number | null | undefined;
|
|
109
|
-
targetHeight?: number | null | undefined;
|
|
110
|
-
newBackgroundColor?: string | null | undefined;
|
|
111
|
-
newBackgroundUrl?: string | null | undefined;
|
|
112
|
-
rotationAngle?: number | null | undefined;
|
|
113
|
-
borderSize?: number | null | undefined;
|
|
114
|
-
borderColor?: string | null | undefined;
|
|
115
|
-
};
|
|
116
|
-
}, {
|
|
117
|
-
type: "VISION";
|
|
118
|
-
data: {
|
|
119
|
-
doRemoveBackground: boolean;
|
|
120
|
-
doSmartCrop: boolean;
|
|
121
|
-
doChangeBackground: boolean;
|
|
122
|
-
doRotate: boolean;
|
|
123
|
-
doAddBorders: boolean;
|
|
124
|
-
shadow: boolean;
|
|
125
|
-
targetWidth?: number | null | undefined;
|
|
126
|
-
targetHeight?: number | null | undefined;
|
|
127
|
-
newBackgroundColor?: string | null | undefined;
|
|
128
|
-
newBackgroundUrl?: string | null | undefined;
|
|
129
|
-
rotationAngle?: number | null | undefined;
|
|
130
|
-
borderSize?: number | null | undefined;
|
|
131
|
-
borderColor?: string | null | undefined;
|
|
132
|
-
};
|
|
133
|
-
}>, z.ZodObject<{
|
|
134
|
-
type: z.ZodLiteral<"TEXT">;
|
|
135
|
-
data: z.ZodObject<{
|
|
136
|
-
text: z.ZodString;
|
|
137
|
-
}, "strip", z.ZodTypeAny, {
|
|
138
|
-
text: string;
|
|
139
|
-
}, {
|
|
140
|
-
text: string;
|
|
141
|
-
}>;
|
|
142
|
-
}, "strip", z.ZodTypeAny, {
|
|
143
|
-
type: "TEXT";
|
|
144
|
-
data: {
|
|
145
|
-
text: string;
|
|
146
|
-
};
|
|
147
|
-
}, {
|
|
148
|
-
type: "TEXT";
|
|
149
|
-
data: {
|
|
150
|
-
text: string;
|
|
151
|
-
};
|
|
152
|
-
}>, z.ZodObject<{
|
|
153
|
-
type: z.ZodLiteral<"ACTIONS">;
|
|
154
10
|
data: z.ZodObject<{
|
|
155
11
|
actions: z.ZodArray<z.ZodObject<{
|
|
156
12
|
type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO", "OFFER_MANUAL"]>;
|
|
@@ -162,26 +18,6 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
162
18
|
}, {
|
|
163
19
|
type: "EMPTY";
|
|
164
20
|
}>, z.ZodObject<{
|
|
165
|
-
type: z.ZodLiteral<"WAIT">;
|
|
166
|
-
data: z.ZodObject<{
|
|
167
|
-
seconds: z.ZodNumber;
|
|
168
|
-
}, "strip", z.ZodTypeAny, {
|
|
169
|
-
seconds: number;
|
|
170
|
-
}, {
|
|
171
|
-
seconds: number;
|
|
172
|
-
}>;
|
|
173
|
-
}, "strip", z.ZodTypeAny, {
|
|
174
|
-
type: "WAIT";
|
|
175
|
-
data: {
|
|
176
|
-
seconds: number;
|
|
177
|
-
};
|
|
178
|
-
}, {
|
|
179
|
-
type: "WAIT";
|
|
180
|
-
data: {
|
|
181
|
-
seconds: number;
|
|
182
|
-
};
|
|
183
|
-
}>, z.ZodObject<{
|
|
184
|
-
type: z.ZodLiteral<"PRICE">;
|
|
185
21
|
data: z.ZodObject<{
|
|
186
22
|
type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
|
|
187
23
|
value: z.ZodNumber;
|
|
@@ -201,6 +37,7 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
201
37
|
roundStep?: number | null | undefined;
|
|
202
38
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
203
39
|
}>;
|
|
40
|
+
type: z.ZodLiteral<"PRICE">;
|
|
204
41
|
}, "strip", z.ZodTypeAny, {
|
|
205
42
|
type: "PRICE";
|
|
206
43
|
data: {
|
|
@@ -220,7 +57,6 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
220
57
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
221
58
|
};
|
|
222
59
|
}>, z.ZodObject<{
|
|
223
|
-
type: z.ZodLiteral<"TEXT">;
|
|
224
60
|
data: z.ZodObject<{
|
|
225
61
|
text: z.ZodString;
|
|
226
62
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -228,6 +64,7 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
228
64
|
}, {
|
|
229
65
|
text: string;
|
|
230
66
|
}>;
|
|
67
|
+
type: z.ZodLiteral<"TEXT">;
|
|
231
68
|
}, "strip", z.ZodTypeAny, {
|
|
232
69
|
type: "TEXT";
|
|
233
70
|
data: {
|
|
@@ -238,17 +75,31 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
238
75
|
data: {
|
|
239
76
|
text: string;
|
|
240
77
|
};
|
|
78
|
+
}>, z.ZodObject<{
|
|
79
|
+
data: z.ZodObject<{
|
|
80
|
+
seconds: z.ZodNumber;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
seconds: number;
|
|
83
|
+
}, {
|
|
84
|
+
seconds: number;
|
|
85
|
+
}>;
|
|
86
|
+
type: z.ZodLiteral<"WAIT">;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
type: "WAIT";
|
|
89
|
+
data: {
|
|
90
|
+
seconds: number;
|
|
91
|
+
};
|
|
92
|
+
}, {
|
|
93
|
+
type: "WAIT";
|
|
94
|
+
data: {
|
|
95
|
+
seconds: number;
|
|
96
|
+
};
|
|
241
97
|
}>]>;
|
|
242
98
|
mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
243
99
|
}, "strip", z.ZodTypeAny, {
|
|
244
100
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
245
101
|
payload: {
|
|
246
102
|
type: "EMPTY";
|
|
247
|
-
} | {
|
|
248
|
-
type: "WAIT";
|
|
249
|
-
data: {
|
|
250
|
-
seconds: number;
|
|
251
|
-
};
|
|
252
103
|
} | {
|
|
253
104
|
type: "PRICE";
|
|
254
105
|
data: {
|
|
@@ -263,6 +114,11 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
263
114
|
data: {
|
|
264
115
|
text: string;
|
|
265
116
|
};
|
|
117
|
+
} | {
|
|
118
|
+
type: "WAIT";
|
|
119
|
+
data: {
|
|
120
|
+
seconds: number;
|
|
121
|
+
};
|
|
266
122
|
};
|
|
267
123
|
enabled: boolean;
|
|
268
124
|
mandatory?: boolean | null | undefined;
|
|
@@ -270,11 +126,6 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
270
126
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
271
127
|
payload: {
|
|
272
128
|
type: "EMPTY";
|
|
273
|
-
} | {
|
|
274
|
-
type: "WAIT";
|
|
275
|
-
data: {
|
|
276
|
-
seconds: number;
|
|
277
|
-
};
|
|
278
129
|
} | {
|
|
279
130
|
type: "PRICE";
|
|
280
131
|
data: {
|
|
@@ -289,6 +140,11 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
289
140
|
data: {
|
|
290
141
|
text: string;
|
|
291
142
|
};
|
|
143
|
+
} | {
|
|
144
|
+
type: "WAIT";
|
|
145
|
+
data: {
|
|
146
|
+
seconds: number;
|
|
147
|
+
};
|
|
292
148
|
};
|
|
293
149
|
enabled: boolean;
|
|
294
150
|
mandatory?: boolean | null | undefined;
|
|
@@ -298,11 +154,6 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
298
154
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
299
155
|
payload: {
|
|
300
156
|
type: "EMPTY";
|
|
301
|
-
} | {
|
|
302
|
-
type: "WAIT";
|
|
303
|
-
data: {
|
|
304
|
-
seconds: number;
|
|
305
|
-
};
|
|
306
157
|
} | {
|
|
307
158
|
type: "PRICE";
|
|
308
159
|
data: {
|
|
@@ -317,6 +168,11 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
317
168
|
data: {
|
|
318
169
|
text: string;
|
|
319
170
|
};
|
|
171
|
+
} | {
|
|
172
|
+
type: "WAIT";
|
|
173
|
+
data: {
|
|
174
|
+
seconds: number;
|
|
175
|
+
};
|
|
320
176
|
};
|
|
321
177
|
enabled: boolean;
|
|
322
178
|
mandatory?: boolean | null | undefined;
|
|
@@ -326,11 +182,6 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
326
182
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
327
183
|
payload: {
|
|
328
184
|
type: "EMPTY";
|
|
329
|
-
} | {
|
|
330
|
-
type: "WAIT";
|
|
331
|
-
data: {
|
|
332
|
-
seconds: number;
|
|
333
|
-
};
|
|
334
185
|
} | {
|
|
335
186
|
type: "PRICE";
|
|
336
187
|
data: {
|
|
@@ -345,11 +196,17 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
345
196
|
data: {
|
|
346
197
|
text: string;
|
|
347
198
|
};
|
|
199
|
+
} | {
|
|
200
|
+
type: "WAIT";
|
|
201
|
+
data: {
|
|
202
|
+
seconds: number;
|
|
203
|
+
};
|
|
348
204
|
};
|
|
349
205
|
enabled: boolean;
|
|
350
206
|
mandatory?: boolean | null | undefined;
|
|
351
207
|
}[];
|
|
352
208
|
}>;
|
|
209
|
+
type: z.ZodLiteral<"ACTIONS">;
|
|
353
210
|
}, "strip", z.ZodTypeAny, {
|
|
354
211
|
type: "ACTIONS";
|
|
355
212
|
data: {
|
|
@@ -357,11 +214,6 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
357
214
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
358
215
|
payload: {
|
|
359
216
|
type: "EMPTY";
|
|
360
|
-
} | {
|
|
361
|
-
type: "WAIT";
|
|
362
|
-
data: {
|
|
363
|
-
seconds: number;
|
|
364
|
-
};
|
|
365
217
|
} | {
|
|
366
218
|
type: "PRICE";
|
|
367
219
|
data: {
|
|
@@ -376,6 +228,11 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
376
228
|
data: {
|
|
377
229
|
text: string;
|
|
378
230
|
};
|
|
231
|
+
} | {
|
|
232
|
+
type: "WAIT";
|
|
233
|
+
data: {
|
|
234
|
+
seconds: number;
|
|
235
|
+
};
|
|
379
236
|
};
|
|
380
237
|
enabled: boolean;
|
|
381
238
|
mandatory?: boolean | null | undefined;
|
|
@@ -388,11 +245,6 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
388
245
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
389
246
|
payload: {
|
|
390
247
|
type: "EMPTY";
|
|
391
|
-
} | {
|
|
392
|
-
type: "WAIT";
|
|
393
|
-
data: {
|
|
394
|
-
seconds: number;
|
|
395
|
-
};
|
|
396
248
|
} | {
|
|
397
249
|
type: "PRICE";
|
|
398
250
|
data: {
|
|
@@ -407,13 +259,23 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
407
259
|
data: {
|
|
408
260
|
text: string;
|
|
409
261
|
};
|
|
262
|
+
} | {
|
|
263
|
+
type: "WAIT";
|
|
264
|
+
data: {
|
|
265
|
+
seconds: number;
|
|
266
|
+
};
|
|
410
267
|
};
|
|
411
268
|
enabled: boolean;
|
|
412
269
|
mandatory?: boolean | null | undefined;
|
|
413
270
|
}[];
|
|
414
271
|
};
|
|
415
272
|
}>, z.ZodObject<{
|
|
416
|
-
type: z.ZodLiteral<"
|
|
273
|
+
type: z.ZodLiteral<"EMPTY">;
|
|
274
|
+
}, "strip", z.ZodTypeAny, {
|
|
275
|
+
type: "EMPTY";
|
|
276
|
+
}, {
|
|
277
|
+
type: "EMPTY";
|
|
278
|
+
}>, z.ZodObject<{
|
|
417
279
|
data: z.ZodObject<{
|
|
418
280
|
fees: z.ZodArray<z.ZodObject<{
|
|
419
281
|
name: z.ZodString;
|
|
@@ -436,6 +298,7 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
436
298
|
name: string;
|
|
437
299
|
}[];
|
|
438
300
|
}>;
|
|
301
|
+
type: z.ZodLiteral<"FEES">;
|
|
439
302
|
}, "strip", z.ZodTypeAny, {
|
|
440
303
|
type: "FEES";
|
|
441
304
|
data: {
|
|
@@ -452,12 +315,28 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
452
315
|
name: string;
|
|
453
316
|
}[];
|
|
454
317
|
};
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
318
|
+
}>, z.ZodObject<{
|
|
319
|
+
data: z.ZodObject<{
|
|
320
|
+
type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
|
|
321
|
+
value: z.ZodNumber;
|
|
322
|
+
roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
|
|
323
|
+
roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
324
|
+
negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
|
|
325
|
+
}, "strip", z.ZodTypeAny, {
|
|
326
|
+
value: number;
|
|
327
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
328
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
329
|
+
roundStep?: number | null | undefined;
|
|
330
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
331
|
+
}, {
|
|
332
|
+
value: number;
|
|
333
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
334
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
335
|
+
roundStep?: number | null | undefined;
|
|
336
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
337
|
+
}>;
|
|
338
|
+
type: z.ZodLiteral<"PRICE">;
|
|
339
|
+
}, "strip", z.ZodTypeAny, {
|
|
461
340
|
type: "PRICE";
|
|
462
341
|
data: {
|
|
463
342
|
value: number;
|
|
@@ -466,7 +345,80 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
466
345
|
roundStep?: number | null | undefined;
|
|
467
346
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
468
347
|
};
|
|
469
|
-
}
|
|
348
|
+
}, {
|
|
349
|
+
type: "PRICE";
|
|
350
|
+
data: {
|
|
351
|
+
value: number;
|
|
352
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
353
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
354
|
+
roundStep?: number | null | undefined;
|
|
355
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
356
|
+
};
|
|
357
|
+
}>, z.ZodObject<{
|
|
358
|
+
data: z.ZodObject<{
|
|
359
|
+
text: z.ZodString;
|
|
360
|
+
}, "strip", z.ZodTypeAny, {
|
|
361
|
+
text: string;
|
|
362
|
+
}, {
|
|
363
|
+
text: string;
|
|
364
|
+
}>;
|
|
365
|
+
type: z.ZodLiteral<"TEXT">;
|
|
366
|
+
}, "strip", z.ZodTypeAny, {
|
|
367
|
+
type: "TEXT";
|
|
368
|
+
data: {
|
|
369
|
+
text: string;
|
|
370
|
+
};
|
|
371
|
+
}, {
|
|
372
|
+
type: "TEXT";
|
|
373
|
+
data: {
|
|
374
|
+
text: string;
|
|
375
|
+
};
|
|
376
|
+
}>, z.ZodObject<{
|
|
377
|
+
data: z.ZodObject<{
|
|
378
|
+
doRemoveBackground: z.ZodBoolean;
|
|
379
|
+
doSmartCrop: z.ZodBoolean;
|
|
380
|
+
doChangeBackground: z.ZodBoolean;
|
|
381
|
+
doRotate: z.ZodBoolean;
|
|
382
|
+
doAddBorders: z.ZodBoolean;
|
|
383
|
+
shadow: z.ZodBoolean;
|
|
384
|
+
targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
385
|
+
targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
386
|
+
newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
387
|
+
newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
388
|
+
rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
389
|
+
borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
390
|
+
borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
391
|
+
}, "strip", z.ZodTypeAny, {
|
|
392
|
+
doRemoveBackground: boolean;
|
|
393
|
+
doSmartCrop: boolean;
|
|
394
|
+
doChangeBackground: boolean;
|
|
395
|
+
doRotate: boolean;
|
|
396
|
+
doAddBorders: boolean;
|
|
397
|
+
shadow: boolean;
|
|
398
|
+
targetWidth?: number | null | undefined;
|
|
399
|
+
targetHeight?: number | null | undefined;
|
|
400
|
+
newBackgroundColor?: string | null | undefined;
|
|
401
|
+
newBackgroundUrl?: string | null | undefined;
|
|
402
|
+
rotationAngle?: number | null | undefined;
|
|
403
|
+
borderSize?: number | null | undefined;
|
|
404
|
+
borderColor?: string | null | undefined;
|
|
405
|
+
}, {
|
|
406
|
+
doRemoveBackground: boolean;
|
|
407
|
+
doSmartCrop: boolean;
|
|
408
|
+
doChangeBackground: boolean;
|
|
409
|
+
doRotate: boolean;
|
|
410
|
+
doAddBorders: boolean;
|
|
411
|
+
shadow: boolean;
|
|
412
|
+
targetWidth?: number | null | undefined;
|
|
413
|
+
targetHeight?: number | null | undefined;
|
|
414
|
+
newBackgroundColor?: string | null | undefined;
|
|
415
|
+
newBackgroundUrl?: string | null | undefined;
|
|
416
|
+
rotationAngle?: number | null | undefined;
|
|
417
|
+
borderSize?: number | null | undefined;
|
|
418
|
+
borderColor?: string | null | undefined;
|
|
419
|
+
}>;
|
|
420
|
+
type: z.ZodLiteral<"VISION">;
|
|
421
|
+
}, "strip", z.ZodTypeAny, {
|
|
470
422
|
type: "VISION";
|
|
471
423
|
data: {
|
|
472
424
|
doRemoveBackground: boolean;
|
|
@@ -483,23 +435,33 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
483
435
|
borderSize?: number | null | undefined;
|
|
484
436
|
borderColor?: string | null | undefined;
|
|
485
437
|
};
|
|
486
|
-
}
|
|
487
|
-
type: "
|
|
438
|
+
}, {
|
|
439
|
+
type: "VISION";
|
|
488
440
|
data: {
|
|
489
|
-
|
|
441
|
+
doRemoveBackground: boolean;
|
|
442
|
+
doSmartCrop: boolean;
|
|
443
|
+
doChangeBackground: boolean;
|
|
444
|
+
doRotate: boolean;
|
|
445
|
+
doAddBorders: boolean;
|
|
446
|
+
shadow: boolean;
|
|
447
|
+
targetWidth?: number | null | undefined;
|
|
448
|
+
targetHeight?: number | null | undefined;
|
|
449
|
+
newBackgroundColor?: string | null | undefined;
|
|
450
|
+
newBackgroundUrl?: string | null | undefined;
|
|
451
|
+
rotationAngle?: number | null | undefined;
|
|
452
|
+
borderSize?: number | null | undefined;
|
|
453
|
+
borderColor?: string | null | undefined;
|
|
490
454
|
};
|
|
491
|
-
}
|
|
455
|
+
}>]>;
|
|
456
|
+
}, "strip", z.ZodTypeAny, {
|
|
457
|
+
name: string;
|
|
458
|
+
payload: {
|
|
492
459
|
type: "ACTIONS";
|
|
493
460
|
data: {
|
|
494
461
|
actions: {
|
|
495
462
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
496
463
|
payload: {
|
|
497
464
|
type: "EMPTY";
|
|
498
|
-
} | {
|
|
499
|
-
type: "WAIT";
|
|
500
|
-
data: {
|
|
501
|
-
seconds: number;
|
|
502
|
-
};
|
|
503
465
|
} | {
|
|
504
466
|
type: "PRICE";
|
|
505
467
|
data: {
|
|
@@ -514,11 +476,18 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
514
476
|
data: {
|
|
515
477
|
text: string;
|
|
516
478
|
};
|
|
479
|
+
} | {
|
|
480
|
+
type: "WAIT";
|
|
481
|
+
data: {
|
|
482
|
+
seconds: number;
|
|
483
|
+
};
|
|
517
484
|
};
|
|
518
485
|
enabled: boolean;
|
|
519
486
|
mandatory?: boolean | null | undefined;
|
|
520
487
|
}[];
|
|
521
488
|
};
|
|
489
|
+
} | {
|
|
490
|
+
type: "EMPTY";
|
|
522
491
|
} | {
|
|
523
492
|
type: "FEES";
|
|
524
493
|
data: {
|
|
@@ -527,12 +496,6 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
527
496
|
name: string;
|
|
528
497
|
}[];
|
|
529
498
|
};
|
|
530
|
-
};
|
|
531
|
-
weight: number;
|
|
532
|
-
}, {
|
|
533
|
-
name: string;
|
|
534
|
-
payload: {
|
|
535
|
-
type: "EMPTY";
|
|
536
499
|
} | {
|
|
537
500
|
type: "PRICE";
|
|
538
501
|
data: {
|
|
@@ -542,6 +505,11 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
542
505
|
roundStep?: number | null | undefined;
|
|
543
506
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
544
507
|
};
|
|
508
|
+
} | {
|
|
509
|
+
type: "TEXT";
|
|
510
|
+
data: {
|
|
511
|
+
text: string;
|
|
512
|
+
};
|
|
545
513
|
} | {
|
|
546
514
|
type: "VISION";
|
|
547
515
|
data: {
|
|
@@ -559,23 +527,17 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
559
527
|
borderSize?: number | null | undefined;
|
|
560
528
|
borderColor?: string | null | undefined;
|
|
561
529
|
};
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
} | {
|
|
530
|
+
};
|
|
531
|
+
weight: number;
|
|
532
|
+
}, {
|
|
533
|
+
name: string;
|
|
534
|
+
payload: {
|
|
568
535
|
type: "ACTIONS";
|
|
569
536
|
data: {
|
|
570
537
|
actions: {
|
|
571
538
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
572
539
|
payload: {
|
|
573
540
|
type: "EMPTY";
|
|
574
|
-
} | {
|
|
575
|
-
type: "WAIT";
|
|
576
|
-
data: {
|
|
577
|
-
seconds: number;
|
|
578
|
-
};
|
|
579
541
|
} | {
|
|
580
542
|
type: "PRICE";
|
|
581
543
|
data: {
|
|
@@ -590,11 +552,18 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
590
552
|
data: {
|
|
591
553
|
text: string;
|
|
592
554
|
};
|
|
555
|
+
} | {
|
|
556
|
+
type: "WAIT";
|
|
557
|
+
data: {
|
|
558
|
+
seconds: number;
|
|
559
|
+
};
|
|
593
560
|
};
|
|
594
561
|
enabled: boolean;
|
|
595
562
|
mandatory?: boolean | null | undefined;
|
|
596
563
|
}[];
|
|
597
564
|
};
|
|
565
|
+
} | {
|
|
566
|
+
type: "EMPTY";
|
|
598
567
|
} | {
|
|
599
568
|
type: "FEES";
|
|
600
569
|
data: {
|
|
@@ -603,18 +572,6 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
603
572
|
name: string;
|
|
604
573
|
}[];
|
|
605
574
|
};
|
|
606
|
-
};
|
|
607
|
-
weight: number;
|
|
608
|
-
}>, "many">;
|
|
609
|
-
savedFiltersId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
610
|
-
}, "strip", z.ZodTypeAny, {
|
|
611
|
-
enabled: boolean;
|
|
612
|
-
testMode: boolean;
|
|
613
|
-
abTest: boolean;
|
|
614
|
-
variants: {
|
|
615
|
-
name: string;
|
|
616
|
-
payload: {
|
|
617
|
-
type: "EMPTY";
|
|
618
575
|
} | {
|
|
619
576
|
type: "PRICE";
|
|
620
577
|
data: {
|
|
@@ -624,6 +581,11 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
624
581
|
roundStep?: number | null | undefined;
|
|
625
582
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
626
583
|
};
|
|
584
|
+
} | {
|
|
585
|
+
type: "TEXT";
|
|
586
|
+
data: {
|
|
587
|
+
text: string;
|
|
588
|
+
};
|
|
627
589
|
} | {
|
|
628
590
|
type: "VISION";
|
|
629
591
|
data: {
|
|
@@ -641,23 +603,23 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
641
603
|
borderSize?: number | null | undefined;
|
|
642
604
|
borderColor?: string | null | undefined;
|
|
643
605
|
};
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
606
|
+
};
|
|
607
|
+
weight: number;
|
|
608
|
+
}>, "many">;
|
|
609
|
+
savedFiltersId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
610
|
+
}, "strip", z.ZodTypeAny, {
|
|
611
|
+
enabled: boolean;
|
|
612
|
+
testMode: boolean;
|
|
613
|
+
abTest: boolean;
|
|
614
|
+
variants: {
|
|
615
|
+
name: string;
|
|
616
|
+
payload: {
|
|
650
617
|
type: "ACTIONS";
|
|
651
618
|
data: {
|
|
652
619
|
actions: {
|
|
653
620
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
654
621
|
payload: {
|
|
655
622
|
type: "EMPTY";
|
|
656
|
-
} | {
|
|
657
|
-
type: "WAIT";
|
|
658
|
-
data: {
|
|
659
|
-
seconds: number;
|
|
660
|
-
};
|
|
661
623
|
} | {
|
|
662
624
|
type: "PRICE";
|
|
663
625
|
data: {
|
|
@@ -672,11 +634,18 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
672
634
|
data: {
|
|
673
635
|
text: string;
|
|
674
636
|
};
|
|
637
|
+
} | {
|
|
638
|
+
type: "WAIT";
|
|
639
|
+
data: {
|
|
640
|
+
seconds: number;
|
|
641
|
+
};
|
|
675
642
|
};
|
|
676
643
|
enabled: boolean;
|
|
677
644
|
mandatory?: boolean | null | undefined;
|
|
678
645
|
}[];
|
|
679
646
|
};
|
|
647
|
+
} | {
|
|
648
|
+
type: "EMPTY";
|
|
680
649
|
} | {
|
|
681
650
|
type: "FEES";
|
|
682
651
|
data: {
|
|
@@ -685,18 +654,6 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
685
654
|
name: string;
|
|
686
655
|
}[];
|
|
687
656
|
};
|
|
688
|
-
};
|
|
689
|
-
weight: number;
|
|
690
|
-
}[];
|
|
691
|
-
savedFiltersId?: string | null | undefined;
|
|
692
|
-
}, {
|
|
693
|
-
enabled: boolean;
|
|
694
|
-
testMode: boolean;
|
|
695
|
-
abTest: boolean;
|
|
696
|
-
variants: {
|
|
697
|
-
name: string;
|
|
698
|
-
payload: {
|
|
699
|
-
type: "EMPTY";
|
|
700
657
|
} | {
|
|
701
658
|
type: "PRICE";
|
|
702
659
|
data: {
|
|
@@ -706,6 +663,11 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
706
663
|
roundStep?: number | null | undefined;
|
|
707
664
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
708
665
|
};
|
|
666
|
+
} | {
|
|
667
|
+
type: "TEXT";
|
|
668
|
+
data: {
|
|
669
|
+
text: string;
|
|
670
|
+
};
|
|
709
671
|
} | {
|
|
710
672
|
type: "VISION";
|
|
711
673
|
data: {
|
|
@@ -723,23 +685,23 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
723
685
|
borderSize?: number | null | undefined;
|
|
724
686
|
borderColor?: string | null | undefined;
|
|
725
687
|
};
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
688
|
+
};
|
|
689
|
+
weight: number;
|
|
690
|
+
}[];
|
|
691
|
+
savedFiltersId?: string | null | undefined;
|
|
692
|
+
}, {
|
|
693
|
+
enabled: boolean;
|
|
694
|
+
testMode: boolean;
|
|
695
|
+
abTest: boolean;
|
|
696
|
+
variants: {
|
|
697
|
+
name: string;
|
|
698
|
+
payload: {
|
|
732
699
|
type: "ACTIONS";
|
|
733
700
|
data: {
|
|
734
701
|
actions: {
|
|
735
702
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
736
703
|
payload: {
|
|
737
704
|
type: "EMPTY";
|
|
738
|
-
} | {
|
|
739
|
-
type: "WAIT";
|
|
740
|
-
data: {
|
|
741
|
-
seconds: number;
|
|
742
|
-
};
|
|
743
705
|
} | {
|
|
744
706
|
type: "PRICE";
|
|
745
707
|
data: {
|
|
@@ -754,11 +716,18 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
754
716
|
data: {
|
|
755
717
|
text: string;
|
|
756
718
|
};
|
|
719
|
+
} | {
|
|
720
|
+
type: "WAIT";
|
|
721
|
+
data: {
|
|
722
|
+
seconds: number;
|
|
723
|
+
};
|
|
757
724
|
};
|
|
758
725
|
enabled: boolean;
|
|
759
726
|
mandatory?: boolean | null | undefined;
|
|
760
727
|
}[];
|
|
761
728
|
};
|
|
729
|
+
} | {
|
|
730
|
+
type: "EMPTY";
|
|
762
731
|
} | {
|
|
763
732
|
type: "FEES";
|
|
764
733
|
data: {
|
|
@@ -767,6 +736,37 @@ export declare const CreatePreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
767
736
|
name: string;
|
|
768
737
|
}[];
|
|
769
738
|
};
|
|
739
|
+
} | {
|
|
740
|
+
type: "PRICE";
|
|
741
|
+
data: {
|
|
742
|
+
value: number;
|
|
743
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
744
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
745
|
+
roundStep?: number | null | undefined;
|
|
746
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
747
|
+
};
|
|
748
|
+
} | {
|
|
749
|
+
type: "TEXT";
|
|
750
|
+
data: {
|
|
751
|
+
text: string;
|
|
752
|
+
};
|
|
753
|
+
} | {
|
|
754
|
+
type: "VISION";
|
|
755
|
+
data: {
|
|
756
|
+
doRemoveBackground: boolean;
|
|
757
|
+
doSmartCrop: boolean;
|
|
758
|
+
doChangeBackground: boolean;
|
|
759
|
+
doRotate: boolean;
|
|
760
|
+
doAddBorders: boolean;
|
|
761
|
+
shadow: boolean;
|
|
762
|
+
targetWidth?: number | null | undefined;
|
|
763
|
+
targetHeight?: number | null | undefined;
|
|
764
|
+
newBackgroundColor?: string | null | undefined;
|
|
765
|
+
newBackgroundUrl?: string | null | undefined;
|
|
766
|
+
rotationAngle?: number | null | undefined;
|
|
767
|
+
borderSize?: number | null | undefined;
|
|
768
|
+
borderColor?: string | null | undefined;
|
|
769
|
+
};
|
|
770
770
|
};
|
|
771
771
|
weight: number;
|
|
772
772
|
}[];
|