controlresell 2.2.5 → 2.2.6
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 +1 -1
- package/src/com/controlresell/models/preferences/Preference.d.ts +1155 -7
- package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts +3496 -19
- package/src/com/controlresell/models/preferences/PreferenceWithCase.js +3 -1
- package/src/com/controlresell/models/preferences/PreferenceWithCase.ts +3 -1
- package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts +977 -5
- package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts +977 -5
- package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +977 -5
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +241 -3
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.js +2 -1
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.ts +2 -1
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.d.ts +165 -0
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.js +29 -0
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.ts +29 -0
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +319 -5
- package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +799 -3
- package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.js +2 -1
- package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.ts +2 -1
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts +799 -3
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.js +2 -1
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.ts +2 -1
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts +623 -0
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.js +34 -0
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.ts +34 -0
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +799 -3
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.js +2 -1
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.ts +2 -1
- package/src/index.d.ts +2 -0
- package/src/index.js +6 -2
- package/src/index.ts +2 -0
package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts
CHANGED
|
@@ -3,26 +3,340 @@ export declare const PreferenceActionsPayloadSchema: z.ZodObject<{
|
|
|
3
3
|
actions: z.ZodArray<z.ZodObject<{
|
|
4
4
|
type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO"]>;
|
|
5
5
|
enabled: z.ZodBoolean;
|
|
6
|
-
payload: z.
|
|
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
|
+
}>]>;
|
|
7
169
|
}, "strip", z.ZodTypeAny, {
|
|
8
170
|
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
|
|
9
|
-
payload:
|
|
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
|
+
};
|
|
10
210
|
enabled: boolean;
|
|
11
211
|
}, {
|
|
12
212
|
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
|
|
13
|
-
payload:
|
|
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
|
+
};
|
|
14
252
|
enabled: boolean;
|
|
15
253
|
}>, "many">;
|
|
16
254
|
}, "strip", z.ZodTypeAny, {
|
|
17
255
|
actions: {
|
|
18
256
|
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
|
|
19
|
-
payload:
|
|
257
|
+
payload: {
|
|
258
|
+
type: "EMPTY";
|
|
259
|
+
} | {
|
|
260
|
+
type: "WAIT";
|
|
261
|
+
data: {
|
|
262
|
+
seconds: number;
|
|
263
|
+
};
|
|
264
|
+
} | {
|
|
265
|
+
type: "PRICE";
|
|
266
|
+
data: {
|
|
267
|
+
value: number;
|
|
268
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
269
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
270
|
+
roundStep?: number | null | undefined;
|
|
271
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
272
|
+
};
|
|
273
|
+
} | {
|
|
274
|
+
type: "VISION";
|
|
275
|
+
data: {
|
|
276
|
+
doRemoveBackground: boolean;
|
|
277
|
+
doSmartCrop: boolean;
|
|
278
|
+
doChangeBackground: boolean;
|
|
279
|
+
doRotate: boolean;
|
|
280
|
+
doAddBorders: boolean;
|
|
281
|
+
shadow: boolean;
|
|
282
|
+
targetWidth?: number | null | undefined;
|
|
283
|
+
targetHeight?: number | null | undefined;
|
|
284
|
+
newBackgroundColor?: string | null | undefined;
|
|
285
|
+
newBackgroundUrl?: string | null | undefined;
|
|
286
|
+
rotationAngle?: number | null | undefined;
|
|
287
|
+
borderSize?: number | null | undefined;
|
|
288
|
+
borderColor?: string | null | undefined;
|
|
289
|
+
};
|
|
290
|
+
} | {
|
|
291
|
+
type: "TEXT";
|
|
292
|
+
data: {
|
|
293
|
+
text: string;
|
|
294
|
+
};
|
|
295
|
+
};
|
|
20
296
|
enabled: boolean;
|
|
21
297
|
}[];
|
|
22
298
|
}, {
|
|
23
299
|
actions: {
|
|
24
300
|
type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
|
|
25
|
-
payload:
|
|
301
|
+
payload: {
|
|
302
|
+
type: "EMPTY";
|
|
303
|
+
} | {
|
|
304
|
+
type: "WAIT";
|
|
305
|
+
data: {
|
|
306
|
+
seconds: number;
|
|
307
|
+
};
|
|
308
|
+
} | {
|
|
309
|
+
type: "PRICE";
|
|
310
|
+
data: {
|
|
311
|
+
value: number;
|
|
312
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
313
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
314
|
+
roundStep?: number | null | undefined;
|
|
315
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
316
|
+
};
|
|
317
|
+
} | {
|
|
318
|
+
type: "VISION";
|
|
319
|
+
data: {
|
|
320
|
+
doRemoveBackground: boolean;
|
|
321
|
+
doSmartCrop: boolean;
|
|
322
|
+
doChangeBackground: boolean;
|
|
323
|
+
doRotate: boolean;
|
|
324
|
+
doAddBorders: boolean;
|
|
325
|
+
shadow: boolean;
|
|
326
|
+
targetWidth?: number | null | undefined;
|
|
327
|
+
targetHeight?: number | null | undefined;
|
|
328
|
+
newBackgroundColor?: string | null | undefined;
|
|
329
|
+
newBackgroundUrl?: string | null | undefined;
|
|
330
|
+
rotationAngle?: number | null | undefined;
|
|
331
|
+
borderSize?: number | null | undefined;
|
|
332
|
+
borderColor?: string | null | undefined;
|
|
333
|
+
};
|
|
334
|
+
} | {
|
|
335
|
+
type: "TEXT";
|
|
336
|
+
data: {
|
|
337
|
+
text: string;
|
|
338
|
+
};
|
|
339
|
+
};
|
|
26
340
|
enabled: boolean;
|
|
27
341
|
}[];
|
|
28
342
|
}>;
|