controlresell 2.2.7 → 2.2.8
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/items/platforms/PriceDropRequest.d.ts +42 -0
- package/src/com/controlresell/models/items/platforms/PriceDropRequest.js +9 -0
- package/src/com/controlresell/models/items/platforms/PriceDropRequest.ts +8 -0
- package/src/com/controlresell/models/items/platforms/RepublishRequest.d.ts +82 -0
- package/src/com/controlresell/models/items/platforms/RepublishRequest.js +9 -0
- package/src/com/controlresell/models/items/platforms/RepublishRequest.ts +8 -0
- package/src/com/controlresell/models/preferences/CreatePreferencePayload.d.ts +3 -3
- package/src/com/controlresell/models/preferences/Preference.d.ts +28 -298
- package/src/com/controlresell/models/preferences/PreferenceType.d.ts +1 -1
- package/src/com/controlresell/models/preferences/PreferenceType.js +1 -1
- package/src/com/controlresell/models/preferences/PreferenceType.ts +1 -1
- package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts +80 -890
- package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts +21 -259
- package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts +21 -259
- package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +21 -259
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +5 -115
- 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 +0 -79
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.js +0 -5
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.ts +0 -5
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +9 -151
- package/src/com/controlresell/models/preferences/payloads/vision/TryVisionPayload.d.ts +82 -0
- package/src/com/controlresell/models/preferences/payloads/vision/TryVisionPayload.js +9 -0
- package/src/com/controlresell/models/preferences/payloads/vision/TryVisionPayload.ts +8 -0
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +9 -151
- package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +17 -223
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts +17 -223
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts +13 -187
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +17 -223
- package/src/index.d.ts +3 -0
- package/src/index.js +9 -3
- package/src/index.ts +3 -0
package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts
CHANGED
|
@@ -212,85 +212,6 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
|
|
|
212
212
|
roundStep?: number | null | undefined;
|
|
213
213
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
214
214
|
};
|
|
215
|
-
}>, z.ZodObject<{
|
|
216
|
-
type: z.ZodLiteral<"VISION">;
|
|
217
|
-
data: z.ZodObject<{
|
|
218
|
-
doRemoveBackground: z.ZodBoolean;
|
|
219
|
-
doSmartCrop: z.ZodBoolean;
|
|
220
|
-
doChangeBackground: z.ZodBoolean;
|
|
221
|
-
doRotate: z.ZodBoolean;
|
|
222
|
-
doAddBorders: z.ZodBoolean;
|
|
223
|
-
shadow: z.ZodBoolean;
|
|
224
|
-
targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
225
|
-
targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
226
|
-
newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
227
|
-
newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
228
|
-
rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
229
|
-
borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
230
|
-
borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
231
|
-
}, "strip", z.ZodTypeAny, {
|
|
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
|
-
doRemoveBackground: boolean;
|
|
247
|
-
doSmartCrop: boolean;
|
|
248
|
-
doChangeBackground: boolean;
|
|
249
|
-
doRotate: boolean;
|
|
250
|
-
doAddBorders: boolean;
|
|
251
|
-
shadow: boolean;
|
|
252
|
-
targetWidth?: number | null | undefined;
|
|
253
|
-
targetHeight?: number | null | undefined;
|
|
254
|
-
newBackgroundColor?: string | null | undefined;
|
|
255
|
-
newBackgroundUrl?: string | null | undefined;
|
|
256
|
-
rotationAngle?: number | null | undefined;
|
|
257
|
-
borderSize?: number | null | undefined;
|
|
258
|
-
borderColor?: string | null | undefined;
|
|
259
|
-
}>;
|
|
260
|
-
}, "strip", z.ZodTypeAny, {
|
|
261
|
-
type: "VISION";
|
|
262
|
-
data: {
|
|
263
|
-
doRemoveBackground: boolean;
|
|
264
|
-
doSmartCrop: boolean;
|
|
265
|
-
doChangeBackground: boolean;
|
|
266
|
-
doRotate: boolean;
|
|
267
|
-
doAddBorders: boolean;
|
|
268
|
-
shadow: boolean;
|
|
269
|
-
targetWidth?: number | null | undefined;
|
|
270
|
-
targetHeight?: number | null | undefined;
|
|
271
|
-
newBackgroundColor?: string | null | undefined;
|
|
272
|
-
newBackgroundUrl?: string | null | undefined;
|
|
273
|
-
rotationAngle?: number | null | undefined;
|
|
274
|
-
borderSize?: number | null | undefined;
|
|
275
|
-
borderColor?: string | null | undefined;
|
|
276
|
-
};
|
|
277
|
-
}, {
|
|
278
|
-
type: "VISION";
|
|
279
|
-
data: {
|
|
280
|
-
doRemoveBackground: boolean;
|
|
281
|
-
doSmartCrop: boolean;
|
|
282
|
-
doChangeBackground: boolean;
|
|
283
|
-
doRotate: boolean;
|
|
284
|
-
doAddBorders: boolean;
|
|
285
|
-
shadow: boolean;
|
|
286
|
-
targetWidth?: number | null | undefined;
|
|
287
|
-
targetHeight?: number | null | undefined;
|
|
288
|
-
newBackgroundColor?: string | null | undefined;
|
|
289
|
-
newBackgroundUrl?: string | null | undefined;
|
|
290
|
-
rotationAngle?: number | null | undefined;
|
|
291
|
-
borderSize?: number | null | undefined;
|
|
292
|
-
borderColor?: string | null | undefined;
|
|
293
|
-
};
|
|
294
215
|
}>, z.ZodObject<{
|
|
295
216
|
type: z.ZodLiteral<"TEXT">;
|
|
296
217
|
data: z.ZodObject<{
|
|
@@ -311,8 +232,9 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
|
|
|
311
232
|
text: string;
|
|
312
233
|
};
|
|
313
234
|
}>]>;
|
|
235
|
+
mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
314
236
|
}, "strip", z.ZodTypeAny, {
|
|
315
|
-
type: "MESSAGE" | "
|
|
237
|
+
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
316
238
|
payload: {
|
|
317
239
|
type: "EMPTY";
|
|
318
240
|
} | {
|
|
@@ -329,23 +251,6 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
|
|
|
329
251
|
roundStep?: number | null | undefined;
|
|
330
252
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
331
253
|
};
|
|
332
|
-
} | {
|
|
333
|
-
type: "VISION";
|
|
334
|
-
data: {
|
|
335
|
-
doRemoveBackground: boolean;
|
|
336
|
-
doSmartCrop: boolean;
|
|
337
|
-
doChangeBackground: boolean;
|
|
338
|
-
doRotate: boolean;
|
|
339
|
-
doAddBorders: boolean;
|
|
340
|
-
shadow: boolean;
|
|
341
|
-
targetWidth?: number | null | undefined;
|
|
342
|
-
targetHeight?: number | null | undefined;
|
|
343
|
-
newBackgroundColor?: string | null | undefined;
|
|
344
|
-
newBackgroundUrl?: string | null | undefined;
|
|
345
|
-
rotationAngle?: number | null | undefined;
|
|
346
|
-
borderSize?: number | null | undefined;
|
|
347
|
-
borderColor?: string | null | undefined;
|
|
348
|
-
};
|
|
349
254
|
} | {
|
|
350
255
|
type: "TEXT";
|
|
351
256
|
data: {
|
|
@@ -353,8 +258,9 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
|
|
|
353
258
|
};
|
|
354
259
|
};
|
|
355
260
|
enabled: boolean;
|
|
261
|
+
mandatory?: boolean | null | undefined;
|
|
356
262
|
}, {
|
|
357
|
-
type: "MESSAGE" | "
|
|
263
|
+
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
358
264
|
payload: {
|
|
359
265
|
type: "EMPTY";
|
|
360
266
|
} | {
|
|
@@ -371,23 +277,6 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
|
|
|
371
277
|
roundStep?: number | null | undefined;
|
|
372
278
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
373
279
|
};
|
|
374
|
-
} | {
|
|
375
|
-
type: "VISION";
|
|
376
|
-
data: {
|
|
377
|
-
doRemoveBackground: boolean;
|
|
378
|
-
doSmartCrop: boolean;
|
|
379
|
-
doChangeBackground: boolean;
|
|
380
|
-
doRotate: boolean;
|
|
381
|
-
doAddBorders: boolean;
|
|
382
|
-
shadow: boolean;
|
|
383
|
-
targetWidth?: number | null | undefined;
|
|
384
|
-
targetHeight?: number | null | undefined;
|
|
385
|
-
newBackgroundColor?: string | null | undefined;
|
|
386
|
-
newBackgroundUrl?: string | null | undefined;
|
|
387
|
-
rotationAngle?: number | null | undefined;
|
|
388
|
-
borderSize?: number | null | undefined;
|
|
389
|
-
borderColor?: string | null | undefined;
|
|
390
|
-
};
|
|
391
280
|
} | {
|
|
392
281
|
type: "TEXT";
|
|
393
282
|
data: {
|
|
@@ -395,10 +284,11 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
|
|
|
395
284
|
};
|
|
396
285
|
};
|
|
397
286
|
enabled: boolean;
|
|
287
|
+
mandatory?: boolean | null | undefined;
|
|
398
288
|
}>, "many">;
|
|
399
289
|
}, "strip", z.ZodTypeAny, {
|
|
400
290
|
actions: {
|
|
401
|
-
type: "MESSAGE" | "
|
|
291
|
+
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
402
292
|
payload: {
|
|
403
293
|
type: "EMPTY";
|
|
404
294
|
} | {
|
|
@@ -415,23 +305,6 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
|
|
|
415
305
|
roundStep?: number | null | undefined;
|
|
416
306
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
417
307
|
};
|
|
418
|
-
} | {
|
|
419
|
-
type: "VISION";
|
|
420
|
-
data: {
|
|
421
|
-
doRemoveBackground: boolean;
|
|
422
|
-
doSmartCrop: boolean;
|
|
423
|
-
doChangeBackground: boolean;
|
|
424
|
-
doRotate: boolean;
|
|
425
|
-
doAddBorders: boolean;
|
|
426
|
-
shadow: boolean;
|
|
427
|
-
targetWidth?: number | null | undefined;
|
|
428
|
-
targetHeight?: number | null | undefined;
|
|
429
|
-
newBackgroundColor?: string | null | undefined;
|
|
430
|
-
newBackgroundUrl?: string | null | undefined;
|
|
431
|
-
rotationAngle?: number | null | undefined;
|
|
432
|
-
borderSize?: number | null | undefined;
|
|
433
|
-
borderColor?: string | null | undefined;
|
|
434
|
-
};
|
|
435
308
|
} | {
|
|
436
309
|
type: "TEXT";
|
|
437
310
|
data: {
|
|
@@ -439,10 +312,11 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
|
|
|
439
312
|
};
|
|
440
313
|
};
|
|
441
314
|
enabled: boolean;
|
|
315
|
+
mandatory?: boolean | null | undefined;
|
|
442
316
|
}[];
|
|
443
317
|
}, {
|
|
444
318
|
actions: {
|
|
445
|
-
type: "MESSAGE" | "
|
|
319
|
+
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
446
320
|
payload: {
|
|
447
321
|
type: "EMPTY";
|
|
448
322
|
} | {
|
|
@@ -459,23 +333,6 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
|
|
|
459
333
|
roundStep?: number | null | undefined;
|
|
460
334
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
461
335
|
};
|
|
462
|
-
} | {
|
|
463
|
-
type: "VISION";
|
|
464
|
-
data: {
|
|
465
|
-
doRemoveBackground: boolean;
|
|
466
|
-
doSmartCrop: boolean;
|
|
467
|
-
doChangeBackground: boolean;
|
|
468
|
-
doRotate: boolean;
|
|
469
|
-
doAddBorders: boolean;
|
|
470
|
-
shadow: boolean;
|
|
471
|
-
targetWidth?: number | null | undefined;
|
|
472
|
-
targetHeight?: number | null | undefined;
|
|
473
|
-
newBackgroundColor?: string | null | undefined;
|
|
474
|
-
newBackgroundUrl?: string | null | undefined;
|
|
475
|
-
rotationAngle?: number | null | undefined;
|
|
476
|
-
borderSize?: number | null | undefined;
|
|
477
|
-
borderColor?: string | null | undefined;
|
|
478
|
-
};
|
|
479
336
|
} | {
|
|
480
337
|
type: "TEXT";
|
|
481
338
|
data: {
|
|
@@ -483,13 +340,14 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
|
|
|
483
340
|
};
|
|
484
341
|
};
|
|
485
342
|
enabled: boolean;
|
|
343
|
+
mandatory?: boolean | null | undefined;
|
|
486
344
|
}[];
|
|
487
345
|
}>;
|
|
488
346
|
}, "strip", z.ZodTypeAny, {
|
|
489
347
|
type: "ACTIONS";
|
|
490
348
|
data: {
|
|
491
349
|
actions: {
|
|
492
|
-
type: "MESSAGE" | "
|
|
350
|
+
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
493
351
|
payload: {
|
|
494
352
|
type: "EMPTY";
|
|
495
353
|
} | {
|
|
@@ -506,23 +364,6 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
|
|
|
506
364
|
roundStep?: number | null | undefined;
|
|
507
365
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
508
366
|
};
|
|
509
|
-
} | {
|
|
510
|
-
type: "VISION";
|
|
511
|
-
data: {
|
|
512
|
-
doRemoveBackground: boolean;
|
|
513
|
-
doSmartCrop: boolean;
|
|
514
|
-
doChangeBackground: boolean;
|
|
515
|
-
doRotate: boolean;
|
|
516
|
-
doAddBorders: boolean;
|
|
517
|
-
shadow: boolean;
|
|
518
|
-
targetWidth?: number | null | undefined;
|
|
519
|
-
targetHeight?: number | null | undefined;
|
|
520
|
-
newBackgroundColor?: string | null | undefined;
|
|
521
|
-
newBackgroundUrl?: string | null | undefined;
|
|
522
|
-
rotationAngle?: number | null | undefined;
|
|
523
|
-
borderSize?: number | null | undefined;
|
|
524
|
-
borderColor?: string | null | undefined;
|
|
525
|
-
};
|
|
526
367
|
} | {
|
|
527
368
|
type: "TEXT";
|
|
528
369
|
data: {
|
|
@@ -530,13 +371,14 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
|
|
|
530
371
|
};
|
|
531
372
|
};
|
|
532
373
|
enabled: boolean;
|
|
374
|
+
mandatory?: boolean | null | undefined;
|
|
533
375
|
}[];
|
|
534
376
|
};
|
|
535
377
|
}, {
|
|
536
378
|
type: "ACTIONS";
|
|
537
379
|
data: {
|
|
538
380
|
actions: {
|
|
539
|
-
type: "MESSAGE" | "
|
|
381
|
+
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
540
382
|
payload: {
|
|
541
383
|
type: "EMPTY";
|
|
542
384
|
} | {
|
|
@@ -553,23 +395,6 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
|
|
|
553
395
|
roundStep?: number | null | undefined;
|
|
554
396
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
555
397
|
};
|
|
556
|
-
} | {
|
|
557
|
-
type: "VISION";
|
|
558
|
-
data: {
|
|
559
|
-
doRemoveBackground: boolean;
|
|
560
|
-
doSmartCrop: boolean;
|
|
561
|
-
doChangeBackground: boolean;
|
|
562
|
-
doRotate: boolean;
|
|
563
|
-
doAddBorders: boolean;
|
|
564
|
-
shadow: boolean;
|
|
565
|
-
targetWidth?: number | null | undefined;
|
|
566
|
-
targetHeight?: number | null | undefined;
|
|
567
|
-
newBackgroundColor?: string | null | undefined;
|
|
568
|
-
newBackgroundUrl?: string | null | undefined;
|
|
569
|
-
rotationAngle?: number | null | undefined;
|
|
570
|
-
borderSize?: number | null | undefined;
|
|
571
|
-
borderColor?: string | null | undefined;
|
|
572
|
-
};
|
|
573
398
|
} | {
|
|
574
399
|
type: "TEXT";
|
|
575
400
|
data: {
|
|
@@ -577,6 +402,7 @@ export declare const PreferenceCaseVariantDecodedPayloadSchema: z.ZodDiscriminat
|
|
|
577
402
|
};
|
|
578
403
|
};
|
|
579
404
|
enabled: boolean;
|
|
405
|
+
mandatory?: boolean | null | undefined;
|
|
580
406
|
}[];
|
|
581
407
|
};
|
|
582
408
|
}>, z.ZodObject<{
|