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 PartialPreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
7
7
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
8
|
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9
9
|
payload: z.ZodOptional<z.ZodNullable<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 PartialPreferenceCasePayloadSchema: 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 PartialPreferenceCasePayloadSchema: 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 PartialPreferenceCasePayloadSchema: 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 PartialPreferenceCasePayloadSchema: 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 PartialPreferenceCasePayloadSchema: 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 PartialPreferenceCasePayloadSchema: 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 PartialPreferenceCasePayloadSchema: 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 PartialPreferenceCasePayloadSchema: 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 PartialPreferenceCasePayloadSchema: 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 PartialPreferenceCasePayloadSchema: 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 PartialPreferenceCasePayloadSchema: 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 PartialPreferenceCasePayloadSchema: 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 PartialPreferenceCasePayloadSchema: 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 PartialPreferenceCasePayloadSchema: 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 PartialPreferenceCasePayloadSchema: 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 PartialPreferenceCasePayloadSchema: 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 PartialPreferenceCasePayloadSchema: 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 PartialPreferenceCasePayloadSchema: 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 PartialPreferenceCasePayloadSchema: 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 PartialPreferenceCasePayloadSchema: 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 | null | undefined;
|
|
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 PartialPreferenceCasePayloadSchema: 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 PartialPreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
527
496
|
name: string;
|
|
528
497
|
}[];
|
|
529
498
|
};
|
|
530
|
-
} | null | undefined;
|
|
531
|
-
weight?: number | null | undefined;
|
|
532
|
-
}, {
|
|
533
|
-
name?: string | null | undefined;
|
|
534
|
-
payload?: {
|
|
535
|
-
type: "EMPTY";
|
|
536
499
|
} | {
|
|
537
500
|
type: "PRICE";
|
|
538
501
|
data: {
|
|
@@ -542,6 +505,11 @@ export declare const PartialPreferenceCasePayloadSchema: 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 PartialPreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
559
527
|
borderSize?: number | null | undefined;
|
|
560
528
|
borderColor?: string | null | undefined;
|
|
561
529
|
};
|
|
562
|
-
} |
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
} | {
|
|
530
|
+
} | null | undefined;
|
|
531
|
+
weight?: number | null | undefined;
|
|
532
|
+
}, {
|
|
533
|
+
name?: string | null | undefined;
|
|
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 PartialPreferenceCasePayloadSchema: 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,19 +572,6 @@ export declare const PartialPreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
603
572
|
name: string;
|
|
604
573
|
}[];
|
|
605
574
|
};
|
|
606
|
-
} | null | undefined;
|
|
607
|
-
weight?: number | null | undefined;
|
|
608
|
-
}>, "many">>>;
|
|
609
|
-
savedFiltersId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
610
|
-
}, "strip", z.ZodTypeAny, {
|
|
611
|
-
enabled?: boolean | null | undefined;
|
|
612
|
-
testMode?: boolean | null | undefined;
|
|
613
|
-
savedFiltersId?: string | null | undefined;
|
|
614
|
-
abTest?: boolean | null | undefined;
|
|
615
|
-
variants?: {
|
|
616
|
-
name?: string | null | undefined;
|
|
617
|
-
payload?: {
|
|
618
|
-
type: "EMPTY";
|
|
619
575
|
} | {
|
|
620
576
|
type: "PRICE";
|
|
621
577
|
data: {
|
|
@@ -625,6 +581,11 @@ export declare const PartialPreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
625
581
|
roundStep?: number | null | undefined;
|
|
626
582
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
627
583
|
};
|
|
584
|
+
} | {
|
|
585
|
+
type: "TEXT";
|
|
586
|
+
data: {
|
|
587
|
+
text: string;
|
|
588
|
+
};
|
|
628
589
|
} | {
|
|
629
590
|
type: "VISION";
|
|
630
591
|
data: {
|
|
@@ -642,23 +603,24 @@ export declare const PartialPreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
642
603
|
borderSize?: number | null | undefined;
|
|
643
604
|
borderColor?: string | null | undefined;
|
|
644
605
|
};
|
|
645
|
-
} |
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
606
|
+
} | null | undefined;
|
|
607
|
+
weight?: number | null | undefined;
|
|
608
|
+
}>, "many">>>;
|
|
609
|
+
savedFiltersId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
610
|
+
}, "strip", z.ZodTypeAny, {
|
|
611
|
+
enabled?: boolean | null | undefined;
|
|
612
|
+
testMode?: boolean | null | undefined;
|
|
613
|
+
savedFiltersId?: string | null | undefined;
|
|
614
|
+
abTest?: boolean | null | undefined;
|
|
615
|
+
variants?: {
|
|
616
|
+
name?: string | null | undefined;
|
|
617
|
+
payload?: {
|
|
651
618
|
type: "ACTIONS";
|
|
652
619
|
data: {
|
|
653
620
|
actions: {
|
|
654
621
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
655
622
|
payload: {
|
|
656
623
|
type: "EMPTY";
|
|
657
|
-
} | {
|
|
658
|
-
type: "WAIT";
|
|
659
|
-
data: {
|
|
660
|
-
seconds: number;
|
|
661
|
-
};
|
|
662
624
|
} | {
|
|
663
625
|
type: "PRICE";
|
|
664
626
|
data: {
|
|
@@ -673,11 +635,18 @@ export declare const PartialPreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
673
635
|
data: {
|
|
674
636
|
text: string;
|
|
675
637
|
};
|
|
638
|
+
} | {
|
|
639
|
+
type: "WAIT";
|
|
640
|
+
data: {
|
|
641
|
+
seconds: number;
|
|
642
|
+
};
|
|
676
643
|
};
|
|
677
644
|
enabled: boolean;
|
|
678
645
|
mandatory?: boolean | null | undefined;
|
|
679
646
|
}[];
|
|
680
647
|
};
|
|
648
|
+
} | {
|
|
649
|
+
type: "EMPTY";
|
|
681
650
|
} | {
|
|
682
651
|
type: "FEES";
|
|
683
652
|
data: {
|
|
@@ -686,18 +655,6 @@ export declare const PartialPreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
686
655
|
name: string;
|
|
687
656
|
}[];
|
|
688
657
|
};
|
|
689
|
-
} | null | undefined;
|
|
690
|
-
weight?: number | null | undefined;
|
|
691
|
-
}[] | null | undefined;
|
|
692
|
-
}, {
|
|
693
|
-
enabled?: boolean | null | undefined;
|
|
694
|
-
testMode?: boolean | null | undefined;
|
|
695
|
-
savedFiltersId?: string | null | undefined;
|
|
696
|
-
abTest?: boolean | null | undefined;
|
|
697
|
-
variants?: {
|
|
698
|
-
name?: string | null | undefined;
|
|
699
|
-
payload?: {
|
|
700
|
-
type: "EMPTY";
|
|
701
658
|
} | {
|
|
702
659
|
type: "PRICE";
|
|
703
660
|
data: {
|
|
@@ -707,6 +664,11 @@ export declare const PartialPreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
707
664
|
roundStep?: number | null | undefined;
|
|
708
665
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
709
666
|
};
|
|
667
|
+
} | {
|
|
668
|
+
type: "TEXT";
|
|
669
|
+
data: {
|
|
670
|
+
text: string;
|
|
671
|
+
};
|
|
710
672
|
} | {
|
|
711
673
|
type: "VISION";
|
|
712
674
|
data: {
|
|
@@ -724,23 +686,23 @@ export declare const PartialPreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
724
686
|
borderSize?: number | null | undefined;
|
|
725
687
|
borderColor?: string | null | undefined;
|
|
726
688
|
};
|
|
727
|
-
} |
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
689
|
+
} | null | undefined;
|
|
690
|
+
weight?: number | null | undefined;
|
|
691
|
+
}[] | null | undefined;
|
|
692
|
+
}, {
|
|
693
|
+
enabled?: boolean | null | undefined;
|
|
694
|
+
testMode?: boolean | null | undefined;
|
|
695
|
+
savedFiltersId?: string | null | undefined;
|
|
696
|
+
abTest?: boolean | null | undefined;
|
|
697
|
+
variants?: {
|
|
698
|
+
name?: string | null | undefined;
|
|
699
|
+
payload?: {
|
|
733
700
|
type: "ACTIONS";
|
|
734
701
|
data: {
|
|
735
702
|
actions: {
|
|
736
703
|
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
737
704
|
payload: {
|
|
738
705
|
type: "EMPTY";
|
|
739
|
-
} | {
|
|
740
|
-
type: "WAIT";
|
|
741
|
-
data: {
|
|
742
|
-
seconds: number;
|
|
743
|
-
};
|
|
744
706
|
} | {
|
|
745
707
|
type: "PRICE";
|
|
746
708
|
data: {
|
|
@@ -755,11 +717,18 @@ export declare const PartialPreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
755
717
|
data: {
|
|
756
718
|
text: string;
|
|
757
719
|
};
|
|
720
|
+
} | {
|
|
721
|
+
type: "WAIT";
|
|
722
|
+
data: {
|
|
723
|
+
seconds: number;
|
|
724
|
+
};
|
|
758
725
|
};
|
|
759
726
|
enabled: boolean;
|
|
760
727
|
mandatory?: boolean | null | undefined;
|
|
761
728
|
}[];
|
|
762
729
|
};
|
|
730
|
+
} | {
|
|
731
|
+
type: "EMPTY";
|
|
763
732
|
} | {
|
|
764
733
|
type: "FEES";
|
|
765
734
|
data: {
|
|
@@ -768,6 +737,37 @@ export declare const PartialPreferenceCasePayloadSchema: z.ZodObject<{
|
|
|
768
737
|
name: string;
|
|
769
738
|
}[];
|
|
770
739
|
};
|
|
740
|
+
} | {
|
|
741
|
+
type: "PRICE";
|
|
742
|
+
data: {
|
|
743
|
+
value: number;
|
|
744
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
745
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
746
|
+
roundStep?: number | null | undefined;
|
|
747
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
748
|
+
};
|
|
749
|
+
} | {
|
|
750
|
+
type: "TEXT";
|
|
751
|
+
data: {
|
|
752
|
+
text: string;
|
|
753
|
+
};
|
|
754
|
+
} | {
|
|
755
|
+
type: "VISION";
|
|
756
|
+
data: {
|
|
757
|
+
doRemoveBackground: boolean;
|
|
758
|
+
doSmartCrop: boolean;
|
|
759
|
+
doChangeBackground: boolean;
|
|
760
|
+
doRotate: boolean;
|
|
761
|
+
doAddBorders: boolean;
|
|
762
|
+
shadow: boolean;
|
|
763
|
+
targetWidth?: number | null | undefined;
|
|
764
|
+
targetHeight?: number | null | undefined;
|
|
765
|
+
newBackgroundColor?: string | null | undefined;
|
|
766
|
+
newBackgroundUrl?: string | null | undefined;
|
|
767
|
+
rotationAngle?: number | null | undefined;
|
|
768
|
+
borderSize?: number | null | undefined;
|
|
769
|
+
borderColor?: string | null | undefined;
|
|
770
|
+
};
|
|
771
771
|
} | null | undefined;
|
|
772
772
|
weight?: number | null | undefined;
|
|
773
773
|
}[] | null | undefined;
|