controlresell 2.2.6 → 2.2.7
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/application/RabbitMQRoutingKey.d.ts +1 -1
- package/src/com/controlresell/models/application/RabbitMQRoutingKey.js +1 -1
- package/src/com/controlresell/models/application/RabbitMQRoutingKey.ts +1 -1
- package/src/com/controlresell/models/items/CreatedItems.d.ts +205 -7
- package/src/com/controlresell/models/items/Item.d.ts +163 -5
- package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +205 -7
- package/src/com/controlresell/models/items/UpdatedItem.d.ts +205 -7
- package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +121 -3
- package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.js +2 -1
- package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.ts +2 -1
- package/src/com/controlresell/models/items/history/ItemHistory.d.ts +121 -3
- package/src/com/controlresell/models/items/history/ItemHistory.js +2 -1
- package/src/com/controlresell/models/items/history/ItemHistory.ts +2 -1
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.d.ts +81 -0
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.js +24 -0
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.ts +24 -0
- package/src/com/controlresell/models/items/history/data/ItemHistoryBuyerPaidPayload.d.ts +15 -0
- package/src/com/controlresell/models/items/history/data/ItemHistoryBuyerPaidPayload.js +9 -0
- package/src/com/controlresell/models/items/history/data/ItemHistoryBuyerPaidPayload.ts +8 -0
- package/src/com/controlresell/models/items/history/data/ItemHistoryDeliveredPayload.d.ts +15 -0
- package/src/com/controlresell/models/items/history/data/ItemHistoryDeliveredPayload.js +9 -0
- package/src/com/controlresell/models/items/history/data/ItemHistoryDeliveredPayload.ts +8 -0
- package/src/com/controlresell/models/platforms/favorites/CreateFavoritePayload.d.ts +15 -0
- package/src/com/controlresell/models/platforms/favorites/CreateFavoritePayload.js +9 -0
- package/src/com/controlresell/models/platforms/favorites/CreateFavoritePayload.ts +8 -0
- package/src/com/controlresell/models/platforms/favorites/Favorite.d.ts +559 -0
- package/src/com/controlresell/models/platforms/favorites/Favorite.js +15 -0
- package/src/com/controlresell/models/platforms/favorites/Favorite.ts +14 -0
- package/src/com/controlresell/models/platforms/favorites/FavoriteOnPlatformUpdateRequest.d.ts +52 -0
- package/src/com/controlresell/models/platforms/favorites/FavoriteOnPlatformUpdateRequest.js +10 -0
- package/src/com/controlresell/models/platforms/favorites/FavoriteOnPlatformUpdateRequest.ts +9 -0
- package/src/com/controlresell/models/platforms/favorites/UpdateFavoritePayload.d.ts +12 -0
- package/src/com/controlresell/models/platforms/favorites/UpdateFavoritePayload.js +8 -0
- package/src/com/controlresell/models/platforms/favorites/UpdateFavoritePayload.ts +7 -0
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +205 -7
- package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +205 -7
- package/src/com/controlresell/models/preferences/Preference.d.ts +13 -13
- package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +205 -7
- package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts +39 -39
- package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts +11 -11
- package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts +11 -11
- package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +11 -11
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +3 -3
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadType.d.ts +1 -1
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadType.js +1 -1
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadType.ts +1 -1
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +5 -5
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +355 -0
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.js +13 -0
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.ts +12 -0
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayloadType.d.ts +3 -0
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayloadType.js +7 -0
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayloadType.ts +6 -0
- package/src/com/controlresell/models/preferences/variables/PreferenceVariable.d.ts +3 -3
- package/src/com/controlresell/models/preferences/variables/PreferenceVariableName.d.ts +1 -1
- package/src/com/controlresell/models/preferences/variables/PreferenceVariableName.js +1 -1
- package/src/com/controlresell/models/preferences/variables/PreferenceVariableName.ts +1 -1
- package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +9 -9
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts +9 -9
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts +7 -7
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +9 -9
- package/src/index.d.ts +9 -3
- package/src/index.js +21 -9
- package/src/index.ts +9 -3
- package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.d.ts +0 -36
- package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.js +0 -17
- package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.ts +0 -16
- package/src/com/controlresell/models/platforms/preferences/PlatformPreference.d.ts +0 -42
- package/src/com/controlresell/models/platforms/preferences/PlatformPreference.js +0 -20
- package/src/com/controlresell/models/platforms/preferences/PlatformPreference.ts +0 -19
- package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.d.ts +0 -30
- package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.js +0 -14
- package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.ts +0 -13
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PreferenceNextActionPayloadSchema: z.ZodObject<{
|
|
3
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
4
|
+
type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO", "OFFER_MANUAL"]>;
|
|
5
|
+
enabled: z.ZodBoolean;
|
|
6
|
+
payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
7
|
+
type: z.ZodLiteral<"EMPTY">;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
type: "EMPTY";
|
|
10
|
+
}, {
|
|
11
|
+
type: "EMPTY";
|
|
12
|
+
}>, z.ZodObject<{
|
|
13
|
+
type: z.ZodLiteral<"WAIT">;
|
|
14
|
+
data: z.ZodObject<{
|
|
15
|
+
seconds: z.ZodNumber;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
seconds: number;
|
|
18
|
+
}, {
|
|
19
|
+
seconds: number;
|
|
20
|
+
}>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
type: "WAIT";
|
|
23
|
+
data: {
|
|
24
|
+
seconds: number;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
type: "WAIT";
|
|
28
|
+
data: {
|
|
29
|
+
seconds: number;
|
|
30
|
+
};
|
|
31
|
+
}>, z.ZodObject<{
|
|
32
|
+
type: z.ZodLiteral<"PRICE">;
|
|
33
|
+
data: z.ZodObject<{
|
|
34
|
+
type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
|
|
35
|
+
value: z.ZodNumber;
|
|
36
|
+
roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
|
|
37
|
+
roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
38
|
+
negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
value: number;
|
|
41
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
42
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
43
|
+
roundStep?: number | null | undefined;
|
|
44
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
value: number;
|
|
47
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
48
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
49
|
+
roundStep?: number | null | undefined;
|
|
50
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
type: "PRICE";
|
|
54
|
+
data: {
|
|
55
|
+
value: number;
|
|
56
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
57
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
58
|
+
roundStep?: number | null | undefined;
|
|
59
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
60
|
+
};
|
|
61
|
+
}, {
|
|
62
|
+
type: "PRICE";
|
|
63
|
+
data: {
|
|
64
|
+
value: number;
|
|
65
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
66
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
67
|
+
roundStep?: number | null | undefined;
|
|
68
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
69
|
+
};
|
|
70
|
+
}>, z.ZodObject<{
|
|
71
|
+
type: z.ZodLiteral<"VISION">;
|
|
72
|
+
data: z.ZodObject<{
|
|
73
|
+
doRemoveBackground: z.ZodBoolean;
|
|
74
|
+
doSmartCrop: z.ZodBoolean;
|
|
75
|
+
doChangeBackground: z.ZodBoolean;
|
|
76
|
+
doRotate: z.ZodBoolean;
|
|
77
|
+
doAddBorders: z.ZodBoolean;
|
|
78
|
+
shadow: z.ZodBoolean;
|
|
79
|
+
targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
80
|
+
targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
81
|
+
newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
|
+
newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
+
rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
84
|
+
borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
85
|
+
borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
doRemoveBackground: boolean;
|
|
88
|
+
doSmartCrop: boolean;
|
|
89
|
+
doChangeBackground: boolean;
|
|
90
|
+
doRotate: boolean;
|
|
91
|
+
doAddBorders: boolean;
|
|
92
|
+
shadow: boolean;
|
|
93
|
+
targetWidth?: number | null | undefined;
|
|
94
|
+
targetHeight?: number | null | undefined;
|
|
95
|
+
newBackgroundColor?: string | null | undefined;
|
|
96
|
+
newBackgroundUrl?: string | null | undefined;
|
|
97
|
+
rotationAngle?: number | null | undefined;
|
|
98
|
+
borderSize?: number | null | undefined;
|
|
99
|
+
borderColor?: string | null | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
doRemoveBackground: boolean;
|
|
102
|
+
doSmartCrop: boolean;
|
|
103
|
+
doChangeBackground: boolean;
|
|
104
|
+
doRotate: boolean;
|
|
105
|
+
doAddBorders: boolean;
|
|
106
|
+
shadow: boolean;
|
|
107
|
+
targetWidth?: number | null | undefined;
|
|
108
|
+
targetHeight?: number | null | undefined;
|
|
109
|
+
newBackgroundColor?: string | null | undefined;
|
|
110
|
+
newBackgroundUrl?: string | null | undefined;
|
|
111
|
+
rotationAngle?: number | null | undefined;
|
|
112
|
+
borderSize?: number | null | undefined;
|
|
113
|
+
borderColor?: string | null | undefined;
|
|
114
|
+
}>;
|
|
115
|
+
}, "strip", z.ZodTypeAny, {
|
|
116
|
+
type: "VISION";
|
|
117
|
+
data: {
|
|
118
|
+
doRemoveBackground: boolean;
|
|
119
|
+
doSmartCrop: boolean;
|
|
120
|
+
doChangeBackground: boolean;
|
|
121
|
+
doRotate: boolean;
|
|
122
|
+
doAddBorders: boolean;
|
|
123
|
+
shadow: boolean;
|
|
124
|
+
targetWidth?: number | null | undefined;
|
|
125
|
+
targetHeight?: number | null | undefined;
|
|
126
|
+
newBackgroundColor?: string | null | undefined;
|
|
127
|
+
newBackgroundUrl?: string | null | undefined;
|
|
128
|
+
rotationAngle?: number | null | undefined;
|
|
129
|
+
borderSize?: number | null | undefined;
|
|
130
|
+
borderColor?: string | null | undefined;
|
|
131
|
+
};
|
|
132
|
+
}, {
|
|
133
|
+
type: "VISION";
|
|
134
|
+
data: {
|
|
135
|
+
doRemoveBackground: boolean;
|
|
136
|
+
doSmartCrop: boolean;
|
|
137
|
+
doChangeBackground: boolean;
|
|
138
|
+
doRotate: boolean;
|
|
139
|
+
doAddBorders: boolean;
|
|
140
|
+
shadow: boolean;
|
|
141
|
+
targetWidth?: number | null | undefined;
|
|
142
|
+
targetHeight?: number | null | undefined;
|
|
143
|
+
newBackgroundColor?: string | null | undefined;
|
|
144
|
+
newBackgroundUrl?: string | null | undefined;
|
|
145
|
+
rotationAngle?: number | null | undefined;
|
|
146
|
+
borderSize?: number | null | undefined;
|
|
147
|
+
borderColor?: string | null | undefined;
|
|
148
|
+
};
|
|
149
|
+
}>, z.ZodObject<{
|
|
150
|
+
type: z.ZodLiteral<"TEXT">;
|
|
151
|
+
data: z.ZodObject<{
|
|
152
|
+
text: z.ZodString;
|
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
|
154
|
+
text: string;
|
|
155
|
+
}, {
|
|
156
|
+
text: string;
|
|
157
|
+
}>;
|
|
158
|
+
}, "strip", z.ZodTypeAny, {
|
|
159
|
+
type: "TEXT";
|
|
160
|
+
data: {
|
|
161
|
+
text: string;
|
|
162
|
+
};
|
|
163
|
+
}, {
|
|
164
|
+
type: "TEXT";
|
|
165
|
+
data: {
|
|
166
|
+
text: string;
|
|
167
|
+
};
|
|
168
|
+
}>]>;
|
|
169
|
+
}, "strip", z.ZodTypeAny, {
|
|
170
|
+
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
171
|
+
payload: {
|
|
172
|
+
type: "EMPTY";
|
|
173
|
+
} | {
|
|
174
|
+
type: "WAIT";
|
|
175
|
+
data: {
|
|
176
|
+
seconds: number;
|
|
177
|
+
};
|
|
178
|
+
} | {
|
|
179
|
+
type: "PRICE";
|
|
180
|
+
data: {
|
|
181
|
+
value: number;
|
|
182
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
183
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
184
|
+
roundStep?: number | null | undefined;
|
|
185
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
186
|
+
};
|
|
187
|
+
} | {
|
|
188
|
+
type: "VISION";
|
|
189
|
+
data: {
|
|
190
|
+
doRemoveBackground: boolean;
|
|
191
|
+
doSmartCrop: boolean;
|
|
192
|
+
doChangeBackground: boolean;
|
|
193
|
+
doRotate: boolean;
|
|
194
|
+
doAddBorders: boolean;
|
|
195
|
+
shadow: boolean;
|
|
196
|
+
targetWidth?: number | null | undefined;
|
|
197
|
+
targetHeight?: number | null | undefined;
|
|
198
|
+
newBackgroundColor?: string | null | undefined;
|
|
199
|
+
newBackgroundUrl?: string | null | undefined;
|
|
200
|
+
rotationAngle?: number | null | undefined;
|
|
201
|
+
borderSize?: number | null | undefined;
|
|
202
|
+
borderColor?: string | null | undefined;
|
|
203
|
+
};
|
|
204
|
+
} | {
|
|
205
|
+
type: "TEXT";
|
|
206
|
+
data: {
|
|
207
|
+
text: string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
enabled: boolean;
|
|
211
|
+
}, {
|
|
212
|
+
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
213
|
+
payload: {
|
|
214
|
+
type: "EMPTY";
|
|
215
|
+
} | {
|
|
216
|
+
type: "WAIT";
|
|
217
|
+
data: {
|
|
218
|
+
seconds: number;
|
|
219
|
+
};
|
|
220
|
+
} | {
|
|
221
|
+
type: "PRICE";
|
|
222
|
+
data: {
|
|
223
|
+
value: number;
|
|
224
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
225
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
226
|
+
roundStep?: number | null | undefined;
|
|
227
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
228
|
+
};
|
|
229
|
+
} | {
|
|
230
|
+
type: "VISION";
|
|
231
|
+
data: {
|
|
232
|
+
doRemoveBackground: boolean;
|
|
233
|
+
doSmartCrop: boolean;
|
|
234
|
+
doChangeBackground: boolean;
|
|
235
|
+
doRotate: boolean;
|
|
236
|
+
doAddBorders: boolean;
|
|
237
|
+
shadow: boolean;
|
|
238
|
+
targetWidth?: number | null | undefined;
|
|
239
|
+
targetHeight?: number | null | undefined;
|
|
240
|
+
newBackgroundColor?: string | null | undefined;
|
|
241
|
+
newBackgroundUrl?: string | null | undefined;
|
|
242
|
+
rotationAngle?: number | null | undefined;
|
|
243
|
+
borderSize?: number | null | undefined;
|
|
244
|
+
borderColor?: string | null | undefined;
|
|
245
|
+
};
|
|
246
|
+
} | {
|
|
247
|
+
type: "TEXT";
|
|
248
|
+
data: {
|
|
249
|
+
text: string;
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
enabled: boolean;
|
|
253
|
+
}>, "many">;
|
|
254
|
+
type: z.ZodEnum<["ITEM", "CONVERSATION"]>;
|
|
255
|
+
resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
256
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
257
|
+
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
258
|
+
}, "strip", z.ZodTypeAny, {
|
|
259
|
+
type: "ITEM" | "CONVERSATION";
|
|
260
|
+
actions: {
|
|
261
|
+
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
262
|
+
payload: {
|
|
263
|
+
type: "EMPTY";
|
|
264
|
+
} | {
|
|
265
|
+
type: "WAIT";
|
|
266
|
+
data: {
|
|
267
|
+
seconds: number;
|
|
268
|
+
};
|
|
269
|
+
} | {
|
|
270
|
+
type: "PRICE";
|
|
271
|
+
data: {
|
|
272
|
+
value: number;
|
|
273
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
274
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
275
|
+
roundStep?: number | null | undefined;
|
|
276
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
277
|
+
};
|
|
278
|
+
} | {
|
|
279
|
+
type: "VISION";
|
|
280
|
+
data: {
|
|
281
|
+
doRemoveBackground: boolean;
|
|
282
|
+
doSmartCrop: boolean;
|
|
283
|
+
doChangeBackground: boolean;
|
|
284
|
+
doRotate: boolean;
|
|
285
|
+
doAddBorders: boolean;
|
|
286
|
+
shadow: boolean;
|
|
287
|
+
targetWidth?: number | null | undefined;
|
|
288
|
+
targetHeight?: number | null | undefined;
|
|
289
|
+
newBackgroundColor?: string | null | undefined;
|
|
290
|
+
newBackgroundUrl?: string | null | undefined;
|
|
291
|
+
rotationAngle?: number | null | undefined;
|
|
292
|
+
borderSize?: number | null | undefined;
|
|
293
|
+
borderColor?: string | null | undefined;
|
|
294
|
+
};
|
|
295
|
+
} | {
|
|
296
|
+
type: "TEXT";
|
|
297
|
+
data: {
|
|
298
|
+
text: string;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
enabled: boolean;
|
|
302
|
+
}[];
|
|
303
|
+
userId?: number | null | undefined;
|
|
304
|
+
accountId?: string | null | undefined;
|
|
305
|
+
resourceId?: string | null | undefined;
|
|
306
|
+
}, {
|
|
307
|
+
type: "ITEM" | "CONVERSATION";
|
|
308
|
+
actions: {
|
|
309
|
+
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
310
|
+
payload: {
|
|
311
|
+
type: "EMPTY";
|
|
312
|
+
} | {
|
|
313
|
+
type: "WAIT";
|
|
314
|
+
data: {
|
|
315
|
+
seconds: number;
|
|
316
|
+
};
|
|
317
|
+
} | {
|
|
318
|
+
type: "PRICE";
|
|
319
|
+
data: {
|
|
320
|
+
value: number;
|
|
321
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
322
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
323
|
+
roundStep?: number | null | undefined;
|
|
324
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
325
|
+
};
|
|
326
|
+
} | {
|
|
327
|
+
type: "VISION";
|
|
328
|
+
data: {
|
|
329
|
+
doRemoveBackground: boolean;
|
|
330
|
+
doSmartCrop: boolean;
|
|
331
|
+
doChangeBackground: boolean;
|
|
332
|
+
doRotate: boolean;
|
|
333
|
+
doAddBorders: boolean;
|
|
334
|
+
shadow: boolean;
|
|
335
|
+
targetWidth?: number | null | undefined;
|
|
336
|
+
targetHeight?: number | null | undefined;
|
|
337
|
+
newBackgroundColor?: string | null | undefined;
|
|
338
|
+
newBackgroundUrl?: string | null | undefined;
|
|
339
|
+
rotationAngle?: number | null | undefined;
|
|
340
|
+
borderSize?: number | null | undefined;
|
|
341
|
+
borderColor?: string | null | undefined;
|
|
342
|
+
};
|
|
343
|
+
} | {
|
|
344
|
+
type: "TEXT";
|
|
345
|
+
data: {
|
|
346
|
+
text: string;
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
enabled: boolean;
|
|
350
|
+
}[];
|
|
351
|
+
userId?: number | null | undefined;
|
|
352
|
+
accountId?: string | null | undefined;
|
|
353
|
+
resourceId?: string | null | undefined;
|
|
354
|
+
}>;
|
|
355
|
+
export type PreferenceNextActionPayload = z.infer<typeof PreferenceNextActionPayloadSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PreferenceNextActionPayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const PreferenceActionPayload_1 = require("../payloads/actions/PreferenceActionPayload");
|
|
6
|
+
const PreferenceNextActionPayloadType_1 = require("./PreferenceNextActionPayloadType");
|
|
7
|
+
exports.PreferenceNextActionPayloadSchema = zod_1.z.object({
|
|
8
|
+
actions: zod_1.z.array(PreferenceActionPayload_1.PreferenceActionPayloadSchema),
|
|
9
|
+
type: PreferenceNextActionPayloadType_1.PreferenceNextActionPayloadTypeSchema,
|
|
10
|
+
resourceId: zod_1.z.string().nullish(),
|
|
11
|
+
userId: zod_1.z.number().nullish(),
|
|
12
|
+
accountId: zod_1.z.string().uuid().nullish()
|
|
13
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {PreferenceActionPayloadSchema} from "../payloads/actions/PreferenceActionPayload"
|
|
3
|
+
import {PreferenceNextActionPayloadTypeSchema} from "./PreferenceNextActionPayloadType"
|
|
4
|
+
|
|
5
|
+
export const PreferenceNextActionPayloadSchema = z.object({
|
|
6
|
+
actions: z.array(PreferenceActionPayloadSchema),
|
|
7
|
+
type: PreferenceNextActionPayloadTypeSchema,
|
|
8
|
+
resourceId: z.string().nullish(),
|
|
9
|
+
userId: z.number().nullish(),
|
|
10
|
+
accountId: z.string().uuid().nullish()
|
|
11
|
+
})
|
|
12
|
+
export type PreferenceNextActionPayload = z.infer<typeof PreferenceNextActionPayloadSchema>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const PreferenceVariableSchema: z.ZodObject<{
|
|
3
|
-
name: z.ZodEnum<["NAME", "ITEM_TITLE", "ITEM_PRICE_INITIAL", "OFFER_PRICE", "NEGOTIATION_PERCENTAGE", "NEGOTIATION_PRICE"]>;
|
|
3
|
+
name: z.ZodEnum<["NAME", "ITEM_TITLE", "ITEM_PRICE_INITIAL", "OFFER_PRICE", "NEGOTIATION_PERCENTAGE", "NEGOTIATION_PRICE", "SIMILAR_ITEMS"]>;
|
|
4
4
|
allowedTemplates: z.ZodArray<z.ZodEnum<["TITLE", "DESCRIPTION", "MESSAGE"]>, "many">;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
name: "NAME" | "ITEM_TITLE" | "ITEM_PRICE_INITIAL" | "OFFER_PRICE" | "NEGOTIATION_PERCENTAGE" | "NEGOTIATION_PRICE";
|
|
6
|
+
name: "NAME" | "ITEM_TITLE" | "ITEM_PRICE_INITIAL" | "OFFER_PRICE" | "NEGOTIATION_PERCENTAGE" | "NEGOTIATION_PRICE" | "SIMILAR_ITEMS";
|
|
7
7
|
allowedTemplates: ("MESSAGE" | "TITLE" | "DESCRIPTION")[];
|
|
8
8
|
}, {
|
|
9
|
-
name: "NAME" | "ITEM_TITLE" | "ITEM_PRICE_INITIAL" | "OFFER_PRICE" | "NEGOTIATION_PERCENTAGE" | "NEGOTIATION_PRICE";
|
|
9
|
+
name: "NAME" | "ITEM_TITLE" | "ITEM_PRICE_INITIAL" | "OFFER_PRICE" | "NEGOTIATION_PERCENTAGE" | "NEGOTIATION_PRICE" | "SIMILAR_ITEMS";
|
|
10
10
|
allowedTemplates: ("MESSAGE" | "TITLE" | "DESCRIPTION")[];
|
|
11
11
|
}>;
|
|
12
12
|
export type PreferenceVariable = z.infer<typeof PreferenceVariableSchema>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const PreferenceVariableNameSchema: z.ZodEnum<["NAME", "ITEM_TITLE", "ITEM_PRICE_INITIAL", "OFFER_PRICE", "NEGOTIATION_PERCENTAGE", "NEGOTIATION_PRICE"]>;
|
|
2
|
+
export declare const PreferenceVariableNameSchema: z.ZodEnum<["NAME", "ITEM_TITLE", "ITEM_PRICE_INITIAL", "OFFER_PRICE", "NEGOTIATION_PERCENTAGE", "NEGOTIATION_PRICE", "SIMILAR_ITEMS"]>;
|
|
3
3
|
export type PreferenceVariableName = z.infer<typeof PreferenceVariableNameSchema>;
|
|
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PreferenceVariableNameSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.PreferenceVariableNameSchema = zod_1.z.enum([
|
|
6
|
-
"NAME", "ITEM_TITLE", "ITEM_PRICE_INITIAL", "OFFER_PRICE", "NEGOTIATION_PERCENTAGE", "NEGOTIATION_PRICE"
|
|
6
|
+
"NAME", "ITEM_TITLE", "ITEM_PRICE_INITIAL", "OFFER_PRICE", "NEGOTIATION_PERCENTAGE", "NEGOTIATION_PRICE", "SIMILAR_ITEMS"
|
|
7
7
|
]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {z} from "zod"
|
|
2
2
|
|
|
3
3
|
export const PreferenceVariableNameSchema = z.enum([
|
|
4
|
-
"NAME", "ITEM_TITLE", "ITEM_PRICE_INITIAL", "OFFER_PRICE", "NEGOTIATION_PERCENTAGE", "NEGOTIATION_PRICE"
|
|
4
|
+
"NAME", "ITEM_TITLE", "ITEM_PRICE_INITIAL", "OFFER_PRICE", "NEGOTIATION_PERCENTAGE", "NEGOTIATION_PRICE", "SIMILAR_ITEMS"
|
|
5
5
|
])
|
|
6
6
|
export type PreferenceVariableName = z.infer<typeof PreferenceVariableNameSchema>
|
package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts
CHANGED
|
@@ -149,7 +149,7 @@ export declare const PartialPreferenceCaseVariantPayloadSchema: z.ZodObject<{
|
|
|
149
149
|
type: z.ZodLiteral<"ACTIONS">;
|
|
150
150
|
data: z.ZodObject<{
|
|
151
151
|
actions: z.ZodArray<z.ZodObject<{
|
|
152
|
-
type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO"]>;
|
|
152
|
+
type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO", "OFFER_MANUAL"]>;
|
|
153
153
|
enabled: z.ZodBoolean;
|
|
154
154
|
payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
155
155
|
type: z.ZodLiteral<"EMPTY">;
|
|
@@ -315,7 +315,7 @@ export declare const PartialPreferenceCaseVariantPayloadSchema: z.ZodObject<{
|
|
|
315
315
|
};
|
|
316
316
|
}>]>;
|
|
317
317
|
}, "strip", z.ZodTypeAny, {
|
|
318
|
-
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
|
|
318
|
+
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
319
319
|
payload: {
|
|
320
320
|
type: "EMPTY";
|
|
321
321
|
} | {
|
|
@@ -357,7 +357,7 @@ export declare const PartialPreferenceCaseVariantPayloadSchema: z.ZodObject<{
|
|
|
357
357
|
};
|
|
358
358
|
enabled: boolean;
|
|
359
359
|
}, {
|
|
360
|
-
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
|
|
360
|
+
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
361
361
|
payload: {
|
|
362
362
|
type: "EMPTY";
|
|
363
363
|
} | {
|
|
@@ -401,7 +401,7 @@ export declare const PartialPreferenceCaseVariantPayloadSchema: z.ZodObject<{
|
|
|
401
401
|
}>, "many">;
|
|
402
402
|
}, "strip", z.ZodTypeAny, {
|
|
403
403
|
actions: {
|
|
404
|
-
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
|
|
404
|
+
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
405
405
|
payload: {
|
|
406
406
|
type: "EMPTY";
|
|
407
407
|
} | {
|
|
@@ -445,7 +445,7 @@ export declare const PartialPreferenceCaseVariantPayloadSchema: z.ZodObject<{
|
|
|
445
445
|
}[];
|
|
446
446
|
}, {
|
|
447
447
|
actions: {
|
|
448
|
-
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
|
|
448
|
+
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
449
449
|
payload: {
|
|
450
450
|
type: "EMPTY";
|
|
451
451
|
} | {
|
|
@@ -492,7 +492,7 @@ export declare const PartialPreferenceCaseVariantPayloadSchema: z.ZodObject<{
|
|
|
492
492
|
type: "ACTIONS";
|
|
493
493
|
data: {
|
|
494
494
|
actions: {
|
|
495
|
-
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
|
|
495
|
+
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
496
496
|
payload: {
|
|
497
497
|
type: "EMPTY";
|
|
498
498
|
} | {
|
|
@@ -539,7 +539,7 @@ export declare const PartialPreferenceCaseVariantPayloadSchema: z.ZodObject<{
|
|
|
539
539
|
type: "ACTIONS";
|
|
540
540
|
data: {
|
|
541
541
|
actions: {
|
|
542
|
-
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
|
|
542
|
+
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
543
543
|
payload: {
|
|
544
544
|
type: "EMPTY";
|
|
545
545
|
} | {
|
|
@@ -662,7 +662,7 @@ export declare const PartialPreferenceCaseVariantPayloadSchema: z.ZodObject<{
|
|
|
662
662
|
type: "ACTIONS";
|
|
663
663
|
data: {
|
|
664
664
|
actions: {
|
|
665
|
-
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
|
|
665
|
+
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
666
666
|
payload: {
|
|
667
667
|
type: "EMPTY";
|
|
668
668
|
} | {
|
|
@@ -754,7 +754,7 @@ export declare const PartialPreferenceCaseVariantPayloadSchema: z.ZodObject<{
|
|
|
754
754
|
type: "ACTIONS";
|
|
755
755
|
data: {
|
|
756
756
|
actions: {
|
|
757
|
-
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
|
|
757
|
+
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
758
758
|
payload: {
|
|
759
759
|
type: "EMPTY";
|
|
760
760
|
} | {
|
|
@@ -151,7 +151,7 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
151
151
|
type: z.ZodLiteral<"ACTIONS">;
|
|
152
152
|
data: z.ZodObject<{
|
|
153
153
|
actions: z.ZodArray<z.ZodObject<{
|
|
154
|
-
type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO"]>;
|
|
154
|
+
type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO", "OFFER_MANUAL"]>;
|
|
155
155
|
enabled: z.ZodBoolean;
|
|
156
156
|
payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
157
157
|
type: z.ZodLiteral<"EMPTY">;
|
|
@@ -317,7 +317,7 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
317
317
|
};
|
|
318
318
|
}>]>;
|
|
319
319
|
}, "strip", z.ZodTypeAny, {
|
|
320
|
-
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
|
|
320
|
+
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
321
321
|
payload: {
|
|
322
322
|
type: "EMPTY";
|
|
323
323
|
} | {
|
|
@@ -359,7 +359,7 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
359
359
|
};
|
|
360
360
|
enabled: boolean;
|
|
361
361
|
}, {
|
|
362
|
-
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
|
|
362
|
+
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
363
363
|
payload: {
|
|
364
364
|
type: "EMPTY";
|
|
365
365
|
} | {
|
|
@@ -403,7 +403,7 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
403
403
|
}>, "many">;
|
|
404
404
|
}, "strip", z.ZodTypeAny, {
|
|
405
405
|
actions: {
|
|
406
|
-
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
|
|
406
|
+
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
407
407
|
payload: {
|
|
408
408
|
type: "EMPTY";
|
|
409
409
|
} | {
|
|
@@ -447,7 +447,7 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
447
447
|
}[];
|
|
448
448
|
}, {
|
|
449
449
|
actions: {
|
|
450
|
-
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
|
|
450
|
+
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
451
451
|
payload: {
|
|
452
452
|
type: "EMPTY";
|
|
453
453
|
} | {
|
|
@@ -494,7 +494,7 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
494
494
|
type: "ACTIONS";
|
|
495
495
|
data: {
|
|
496
496
|
actions: {
|
|
497
|
-
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
|
|
497
|
+
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
498
498
|
payload: {
|
|
499
499
|
type: "EMPTY";
|
|
500
500
|
} | {
|
|
@@ -541,7 +541,7 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
541
541
|
type: "ACTIONS";
|
|
542
542
|
data: {
|
|
543
543
|
actions: {
|
|
544
|
-
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
|
|
544
|
+
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
545
545
|
payload: {
|
|
546
546
|
type: "EMPTY";
|
|
547
547
|
} | {
|
|
@@ -665,7 +665,7 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
665
665
|
type: "ACTIONS";
|
|
666
666
|
data: {
|
|
667
667
|
actions: {
|
|
668
|
-
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
|
|
668
|
+
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
669
669
|
payload: {
|
|
670
670
|
type: "EMPTY";
|
|
671
671
|
} | {
|
|
@@ -759,7 +759,7 @@ export declare const PreferenceCaseVariantSchema: z.ZodObject<{
|
|
|
759
759
|
type: "ACTIONS";
|
|
760
760
|
data: {
|
|
761
761
|
actions: {
|
|
762
|
-
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
|
|
762
|
+
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
763
763
|
payload: {
|
|
764
764
|
type: "EMPTY";
|
|
765
765
|
} | {
|