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.
Files changed (34) hide show
  1. package/package.json +1 -1
  2. package/src/com/controlresell/models/items/platforms/PriceDropRequest.d.ts +42 -0
  3. package/src/com/controlresell/models/items/platforms/PriceDropRequest.js +9 -0
  4. package/src/com/controlresell/models/items/platforms/PriceDropRequest.ts +8 -0
  5. package/src/com/controlresell/models/items/platforms/RepublishRequest.d.ts +82 -0
  6. package/src/com/controlresell/models/items/platforms/RepublishRequest.js +9 -0
  7. package/src/com/controlresell/models/items/platforms/RepublishRequest.ts +8 -0
  8. package/src/com/controlresell/models/preferences/CreatePreferencePayload.d.ts +3 -3
  9. package/src/com/controlresell/models/preferences/Preference.d.ts +28 -298
  10. package/src/com/controlresell/models/preferences/PreferenceType.d.ts +1 -1
  11. package/src/com/controlresell/models/preferences/PreferenceType.js +1 -1
  12. package/src/com/controlresell/models/preferences/PreferenceType.ts +1 -1
  13. package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts +80 -890
  14. package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts +21 -259
  15. package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts +21 -259
  16. package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +21 -259
  17. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +5 -115
  18. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.js +2 -1
  19. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.ts +2 -1
  20. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.d.ts +0 -79
  21. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.js +0 -5
  22. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.ts +0 -5
  23. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +9 -151
  24. package/src/com/controlresell/models/preferences/payloads/vision/TryVisionPayload.d.ts +82 -0
  25. package/src/com/controlresell/models/preferences/payloads/vision/TryVisionPayload.js +9 -0
  26. package/src/com/controlresell/models/preferences/payloads/vision/TryVisionPayload.ts +8 -0
  27. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +9 -151
  28. package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +17 -223
  29. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts +17 -223
  30. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts +13 -187
  31. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +17 -223
  32. package/src/index.d.ts +3 -0
  33. package/src/index.js +9 -3
  34. package/src/index.ts +3 -0
@@ -224,85 +224,6 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
224
224
  roundStep?: number | null | undefined;
225
225
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
226
226
  };
227
- }>, z.ZodObject<{
228
- type: z.ZodLiteral<"VISION">;
229
- data: z.ZodObject<{
230
- doRemoveBackground: z.ZodBoolean;
231
- doSmartCrop: z.ZodBoolean;
232
- doChangeBackground: z.ZodBoolean;
233
- doRotate: z.ZodBoolean;
234
- doAddBorders: z.ZodBoolean;
235
- shadow: z.ZodBoolean;
236
- targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
237
- targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
238
- newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
239
- newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
240
- rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
241
- borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
242
- borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
243
- }, "strip", z.ZodTypeAny, {
244
- doRemoveBackground: boolean;
245
- doSmartCrop: boolean;
246
- doChangeBackground: boolean;
247
- doRotate: boolean;
248
- doAddBorders: boolean;
249
- shadow: boolean;
250
- targetWidth?: number | null | undefined;
251
- targetHeight?: number | null | undefined;
252
- newBackgroundColor?: string | null | undefined;
253
- newBackgroundUrl?: string | null | undefined;
254
- rotationAngle?: number | null | undefined;
255
- borderSize?: number | null | undefined;
256
- borderColor?: string | null | undefined;
257
- }, {
258
- doRemoveBackground: boolean;
259
- doSmartCrop: boolean;
260
- doChangeBackground: boolean;
261
- doRotate: boolean;
262
- doAddBorders: boolean;
263
- shadow: boolean;
264
- targetWidth?: number | null | undefined;
265
- targetHeight?: number | null | undefined;
266
- newBackgroundColor?: string | null | undefined;
267
- newBackgroundUrl?: string | null | undefined;
268
- rotationAngle?: number | null | undefined;
269
- borderSize?: number | null | undefined;
270
- borderColor?: string | null | undefined;
271
- }>;
272
- }, "strip", z.ZodTypeAny, {
273
- type: "VISION";
274
- data: {
275
- doRemoveBackground: boolean;
276
- doSmartCrop: boolean;
277
- doChangeBackground: boolean;
278
- doRotate: boolean;
279
- doAddBorders: boolean;
280
- shadow: boolean;
281
- targetWidth?: number | null | undefined;
282
- targetHeight?: number | null | undefined;
283
- newBackgroundColor?: string | null | undefined;
284
- newBackgroundUrl?: string | null | undefined;
285
- rotationAngle?: number | null | undefined;
286
- borderSize?: number | null | undefined;
287
- borderColor?: string | null | undefined;
288
- };
289
- }, {
290
- type: "VISION";
291
- data: {
292
- doRemoveBackground: boolean;
293
- doSmartCrop: boolean;
294
- doChangeBackground: boolean;
295
- doRotate: boolean;
296
- doAddBorders: boolean;
297
- shadow: boolean;
298
- targetWidth?: number | null | undefined;
299
- targetHeight?: number | null | undefined;
300
- newBackgroundColor?: string | null | undefined;
301
- newBackgroundUrl?: string | null | undefined;
302
- rotationAngle?: number | null | undefined;
303
- borderSize?: number | null | undefined;
304
- borderColor?: string | null | undefined;
305
- };
306
227
  }>, z.ZodObject<{
307
228
  type: z.ZodLiteral<"TEXT">;
308
229
  data: z.ZodObject<{
@@ -323,8 +244,9 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
323
244
  text: string;
324
245
  };
325
246
  }>]>;
247
+ mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
326
248
  }, "strip", z.ZodTypeAny, {
327
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
249
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
328
250
  payload: {
329
251
  type: "EMPTY";
330
252
  } | {
@@ -341,23 +263,6 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
341
263
  roundStep?: number | null | undefined;
342
264
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
343
265
  };
344
- } | {
345
- type: "VISION";
346
- data: {
347
- doRemoveBackground: boolean;
348
- doSmartCrop: boolean;
349
- doChangeBackground: boolean;
350
- doRotate: boolean;
351
- doAddBorders: boolean;
352
- shadow: boolean;
353
- targetWidth?: number | null | undefined;
354
- targetHeight?: number | null | undefined;
355
- newBackgroundColor?: string | null | undefined;
356
- newBackgroundUrl?: string | null | undefined;
357
- rotationAngle?: number | null | undefined;
358
- borderSize?: number | null | undefined;
359
- borderColor?: string | null | undefined;
360
- };
361
266
  } | {
362
267
  type: "TEXT";
363
268
  data: {
@@ -365,8 +270,9 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
365
270
  };
366
271
  };
367
272
  enabled: boolean;
273
+ mandatory?: boolean | null | undefined;
368
274
  }, {
369
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
275
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
370
276
  payload: {
371
277
  type: "EMPTY";
372
278
  } | {
@@ -383,23 +289,6 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
383
289
  roundStep?: number | null | undefined;
384
290
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
385
291
  };
386
- } | {
387
- type: "VISION";
388
- data: {
389
- doRemoveBackground: boolean;
390
- doSmartCrop: boolean;
391
- doChangeBackground: boolean;
392
- doRotate: boolean;
393
- doAddBorders: boolean;
394
- shadow: boolean;
395
- targetWidth?: number | null | undefined;
396
- targetHeight?: number | null | undefined;
397
- newBackgroundColor?: string | null | undefined;
398
- newBackgroundUrl?: string | null | undefined;
399
- rotationAngle?: number | null | undefined;
400
- borderSize?: number | null | undefined;
401
- borderColor?: string | null | undefined;
402
- };
403
292
  } | {
404
293
  type: "TEXT";
405
294
  data: {
@@ -407,10 +296,11 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
407
296
  };
408
297
  };
409
298
  enabled: boolean;
299
+ mandatory?: boolean | null | undefined;
410
300
  }>, "many">;
411
301
  }, "strip", z.ZodTypeAny, {
412
302
  actions: {
413
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
303
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
414
304
  payload: {
415
305
  type: "EMPTY";
416
306
  } | {
@@ -427,23 +317,6 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
427
317
  roundStep?: number | null | undefined;
428
318
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
429
319
  };
430
- } | {
431
- type: "VISION";
432
- data: {
433
- doRemoveBackground: boolean;
434
- doSmartCrop: boolean;
435
- doChangeBackground: boolean;
436
- doRotate: boolean;
437
- doAddBorders: boolean;
438
- shadow: boolean;
439
- targetWidth?: number | null | undefined;
440
- targetHeight?: number | null | undefined;
441
- newBackgroundColor?: string | null | undefined;
442
- newBackgroundUrl?: string | null | undefined;
443
- rotationAngle?: number | null | undefined;
444
- borderSize?: number | null | undefined;
445
- borderColor?: string | null | undefined;
446
- };
447
320
  } | {
448
321
  type: "TEXT";
449
322
  data: {
@@ -451,10 +324,11 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
451
324
  };
452
325
  };
453
326
  enabled: boolean;
327
+ mandatory?: boolean | null | undefined;
454
328
  }[];
455
329
  }, {
456
330
  actions: {
457
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
331
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
458
332
  payload: {
459
333
  type: "EMPTY";
460
334
  } | {
@@ -471,23 +345,6 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
471
345
  roundStep?: number | null | undefined;
472
346
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
473
347
  };
474
- } | {
475
- type: "VISION";
476
- data: {
477
- doRemoveBackground: boolean;
478
- doSmartCrop: boolean;
479
- doChangeBackground: boolean;
480
- doRotate: boolean;
481
- doAddBorders: boolean;
482
- shadow: boolean;
483
- targetWidth?: number | null | undefined;
484
- targetHeight?: number | null | undefined;
485
- newBackgroundColor?: string | null | undefined;
486
- newBackgroundUrl?: string | null | undefined;
487
- rotationAngle?: number | null | undefined;
488
- borderSize?: number | null | undefined;
489
- borderColor?: string | null | undefined;
490
- };
491
348
  } | {
492
349
  type: "TEXT";
493
350
  data: {
@@ -495,13 +352,14 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
495
352
  };
496
353
  };
497
354
  enabled: boolean;
355
+ mandatory?: boolean | null | undefined;
498
356
  }[];
499
357
  }>;
500
358
  }, "strip", z.ZodTypeAny, {
501
359
  type: "ACTIONS";
502
360
  data: {
503
361
  actions: {
504
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
362
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
505
363
  payload: {
506
364
  type: "EMPTY";
507
365
  } | {
@@ -518,23 +376,6 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
518
376
  roundStep?: number | null | undefined;
519
377
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
520
378
  };
521
- } | {
522
- type: "VISION";
523
- data: {
524
- doRemoveBackground: boolean;
525
- doSmartCrop: boolean;
526
- doChangeBackground: boolean;
527
- doRotate: boolean;
528
- doAddBorders: boolean;
529
- shadow: boolean;
530
- targetWidth?: number | null | undefined;
531
- targetHeight?: number | null | undefined;
532
- newBackgroundColor?: string | null | undefined;
533
- newBackgroundUrl?: string | null | undefined;
534
- rotationAngle?: number | null | undefined;
535
- borderSize?: number | null | undefined;
536
- borderColor?: string | null | undefined;
537
- };
538
379
  } | {
539
380
  type: "TEXT";
540
381
  data: {
@@ -542,13 +383,14 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
542
383
  };
543
384
  };
544
385
  enabled: boolean;
386
+ mandatory?: boolean | null | undefined;
545
387
  }[];
546
388
  };
547
389
  }, {
548
390
  type: "ACTIONS";
549
391
  data: {
550
392
  actions: {
551
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
393
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
552
394
  payload: {
553
395
  type: "EMPTY";
554
396
  } | {
@@ -565,23 +407,6 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
565
407
  roundStep?: number | null | undefined;
566
408
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
567
409
  };
568
- } | {
569
- type: "VISION";
570
- data: {
571
- doRemoveBackground: boolean;
572
- doSmartCrop: boolean;
573
- doChangeBackground: boolean;
574
- doRotate: boolean;
575
- doAddBorders: boolean;
576
- shadow: boolean;
577
- targetWidth?: number | null | undefined;
578
- targetHeight?: number | null | undefined;
579
- newBackgroundColor?: string | null | undefined;
580
- newBackgroundUrl?: string | null | undefined;
581
- rotationAngle?: number | null | undefined;
582
- borderSize?: number | null | undefined;
583
- borderColor?: string | null | undefined;
584
- };
585
410
  } | {
586
411
  type: "TEXT";
587
412
  data: {
@@ -589,6 +414,7 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
589
414
  };
590
415
  };
591
416
  enabled: boolean;
417
+ mandatory?: boolean | null | undefined;
592
418
  }[];
593
419
  };
594
420
  }>, z.ZodObject<{
@@ -672,7 +498,7 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
672
498
  type: "ACTIONS";
673
499
  data: {
674
500
  actions: {
675
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
501
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
676
502
  payload: {
677
503
  type: "EMPTY";
678
504
  } | {
@@ -689,23 +515,6 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
689
515
  roundStep?: number | null | undefined;
690
516
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
691
517
  };
692
- } | {
693
- type: "VISION";
694
- data: {
695
- doRemoveBackground: boolean;
696
- doSmartCrop: boolean;
697
- doChangeBackground: boolean;
698
- doRotate: boolean;
699
- doAddBorders: boolean;
700
- shadow: boolean;
701
- targetWidth?: number | null | undefined;
702
- targetHeight?: number | null | undefined;
703
- newBackgroundColor?: string | null | undefined;
704
- newBackgroundUrl?: string | null | undefined;
705
- rotationAngle?: number | null | undefined;
706
- borderSize?: number | null | undefined;
707
- borderColor?: string | null | undefined;
708
- };
709
518
  } | {
710
519
  type: "TEXT";
711
520
  data: {
@@ -713,6 +522,7 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
713
522
  };
714
523
  };
715
524
  enabled: boolean;
525
+ mandatory?: boolean | null | undefined;
716
526
  }[];
717
527
  };
718
528
  } | {
@@ -766,7 +576,7 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
766
576
  type: "ACTIONS";
767
577
  data: {
768
578
  actions: {
769
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
579
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
770
580
  payload: {
771
581
  type: "EMPTY";
772
582
  } | {
@@ -783,23 +593,6 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
783
593
  roundStep?: number | null | undefined;
784
594
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
785
595
  };
786
- } | {
787
- type: "VISION";
788
- data: {
789
- doRemoveBackground: boolean;
790
- doSmartCrop: boolean;
791
- doChangeBackground: boolean;
792
- doRotate: boolean;
793
- doAddBorders: boolean;
794
- shadow: boolean;
795
- targetWidth?: number | null | undefined;
796
- targetHeight?: number | null | undefined;
797
- newBackgroundColor?: string | null | undefined;
798
- newBackgroundUrl?: string | null | undefined;
799
- rotationAngle?: number | null | undefined;
800
- borderSize?: number | null | undefined;
801
- borderColor?: string | null | undefined;
802
- };
803
596
  } | {
804
597
  type: "TEXT";
805
598
  data: {
@@ -807,6 +600,7 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
807
600
  };
808
601
  };
809
602
  enabled: boolean;
603
+ mandatory?: boolean | null | undefined;
810
604
  }[];
811
605
  };
812
606
  } | {
@@ -868,7 +662,7 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
868
662
  type: "ACTIONS";
869
663
  data: {
870
664
  actions: {
871
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
665
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
872
666
  payload: {
873
667
  type: "EMPTY";
874
668
  } | {
@@ -885,23 +679,6 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
885
679
  roundStep?: number | null | undefined;
886
680
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
887
681
  };
888
- } | {
889
- type: "VISION";
890
- data: {
891
- doRemoveBackground: boolean;
892
- doSmartCrop: boolean;
893
- doChangeBackground: boolean;
894
- doRotate: boolean;
895
- doAddBorders: boolean;
896
- shadow: boolean;
897
- targetWidth?: number | null | undefined;
898
- targetHeight?: number | null | undefined;
899
- newBackgroundColor?: string | null | undefined;
900
- newBackgroundUrl?: string | null | undefined;
901
- rotationAngle?: number | null | undefined;
902
- borderSize?: number | null | undefined;
903
- borderColor?: string | null | undefined;
904
- };
905
682
  } | {
906
683
  type: "TEXT";
907
684
  data: {
@@ -909,6 +686,7 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
909
686
  };
910
687
  };
911
688
  enabled: boolean;
689
+ mandatory?: boolean | null | undefined;
912
690
  }[];
913
691
  };
914
692
  } | {
@@ -970,7 +748,7 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
970
748
  type: "ACTIONS";
971
749
  data: {
972
750
  actions: {
973
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
751
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
974
752
  payload: {
975
753
  type: "EMPTY";
976
754
  } | {
@@ -987,23 +765,6 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
987
765
  roundStep?: number | null | undefined;
988
766
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
989
767
  };
990
- } | {
991
- type: "VISION";
992
- data: {
993
- doRemoveBackground: boolean;
994
- doSmartCrop: boolean;
995
- doChangeBackground: boolean;
996
- doRotate: boolean;
997
- doAddBorders: boolean;
998
- shadow: boolean;
999
- targetWidth?: number | null | undefined;
1000
- targetHeight?: number | null | undefined;
1001
- newBackgroundColor?: string | null | undefined;
1002
- newBackgroundUrl?: string | null | undefined;
1003
- rotationAngle?: number | null | undefined;
1004
- borderSize?: number | null | undefined;
1005
- borderColor?: string | null | undefined;
1006
- };
1007
768
  } | {
1008
769
  type: "TEXT";
1009
770
  data: {
@@ -1011,6 +772,7 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
1011
772
  };
1012
773
  };
1013
774
  enabled: boolean;
775
+ mandatory?: boolean | null | undefined;
1014
776
  }[];
1015
777
  };
1016
778
  } | {
@@ -66,85 +66,6 @@ export declare const PreferenceActionPayloadSchema: z.ZodObject<{
66
66
  roundStep?: number | null | undefined;
67
67
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
68
68
  };
69
- }>, z.ZodObject<{
70
- type: z.ZodLiteral<"VISION">;
71
- data: z.ZodObject<{
72
- doRemoveBackground: z.ZodBoolean;
73
- doSmartCrop: z.ZodBoolean;
74
- doChangeBackground: z.ZodBoolean;
75
- doRotate: z.ZodBoolean;
76
- doAddBorders: z.ZodBoolean;
77
- shadow: z.ZodBoolean;
78
- targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
79
- targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
80
- newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
- newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
- rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
83
- borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
84
- borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
- }, "strip", z.ZodTypeAny, {
86
- doRemoveBackground: boolean;
87
- doSmartCrop: boolean;
88
- doChangeBackground: boolean;
89
- doRotate: boolean;
90
- doAddBorders: boolean;
91
- shadow: boolean;
92
- targetWidth?: number | null | undefined;
93
- targetHeight?: number | null | undefined;
94
- newBackgroundColor?: string | null | undefined;
95
- newBackgroundUrl?: string | null | undefined;
96
- rotationAngle?: number | null | undefined;
97
- borderSize?: number | null | undefined;
98
- borderColor?: string | null | undefined;
99
- }, {
100
- doRemoveBackground: boolean;
101
- doSmartCrop: boolean;
102
- doChangeBackground: boolean;
103
- doRotate: boolean;
104
- doAddBorders: boolean;
105
- shadow: boolean;
106
- targetWidth?: number | null | undefined;
107
- targetHeight?: number | null | undefined;
108
- newBackgroundColor?: string | null | undefined;
109
- newBackgroundUrl?: string | null | undefined;
110
- rotationAngle?: number | null | undefined;
111
- borderSize?: number | null | undefined;
112
- borderColor?: string | null | undefined;
113
- }>;
114
- }, "strip", z.ZodTypeAny, {
115
- type: "VISION";
116
- data: {
117
- doRemoveBackground: boolean;
118
- doSmartCrop: boolean;
119
- doChangeBackground: boolean;
120
- doRotate: boolean;
121
- doAddBorders: boolean;
122
- shadow: boolean;
123
- targetWidth?: number | null | undefined;
124
- targetHeight?: number | null | undefined;
125
- newBackgroundColor?: string | null | undefined;
126
- newBackgroundUrl?: string | null | undefined;
127
- rotationAngle?: number | null | undefined;
128
- borderSize?: number | null | undefined;
129
- borderColor?: string | null | undefined;
130
- };
131
- }, {
132
- type: "VISION";
133
- data: {
134
- doRemoveBackground: boolean;
135
- doSmartCrop: boolean;
136
- doChangeBackground: boolean;
137
- doRotate: boolean;
138
- doAddBorders: boolean;
139
- shadow: boolean;
140
- targetWidth?: number | null | undefined;
141
- targetHeight?: number | null | undefined;
142
- newBackgroundColor?: string | null | undefined;
143
- newBackgroundUrl?: string | null | undefined;
144
- rotationAngle?: number | null | undefined;
145
- borderSize?: number | null | undefined;
146
- borderColor?: string | null | undefined;
147
- };
148
69
  }>, z.ZodObject<{
149
70
  type: z.ZodLiteral<"TEXT">;
150
71
  data: z.ZodObject<{
@@ -165,8 +86,9 @@ export declare const PreferenceActionPayloadSchema: z.ZodObject<{
165
86
  text: string;
166
87
  };
167
88
  }>]>;
89
+ mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
168
90
  }, "strip", z.ZodTypeAny, {
169
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
91
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
170
92
  payload: {
171
93
  type: "EMPTY";
172
94
  } | {
@@ -183,23 +105,6 @@ export declare const PreferenceActionPayloadSchema: z.ZodObject<{
183
105
  roundStep?: number | null | undefined;
184
106
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
185
107
  };
186
- } | {
187
- type: "VISION";
188
- data: {
189
- doRemoveBackground: boolean;
190
- doSmartCrop: boolean;
191
- doChangeBackground: boolean;
192
- doRotate: boolean;
193
- doAddBorders: boolean;
194
- shadow: boolean;
195
- targetWidth?: number | null | undefined;
196
- targetHeight?: number | null | undefined;
197
- newBackgroundColor?: string | null | undefined;
198
- newBackgroundUrl?: string | null | undefined;
199
- rotationAngle?: number | null | undefined;
200
- borderSize?: number | null | undefined;
201
- borderColor?: string | null | undefined;
202
- };
203
108
  } | {
204
109
  type: "TEXT";
205
110
  data: {
@@ -207,8 +112,9 @@ export declare const PreferenceActionPayloadSchema: z.ZodObject<{
207
112
  };
208
113
  };
209
114
  enabled: boolean;
115
+ mandatory?: boolean | null | undefined;
210
116
  }, {
211
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
117
+ type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
212
118
  payload: {
213
119
  type: "EMPTY";
214
120
  } | {
@@ -225,23 +131,6 @@ export declare const PreferenceActionPayloadSchema: z.ZodObject<{
225
131
  roundStep?: number | null | undefined;
226
132
  negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
227
133
  };
228
- } | {
229
- type: "VISION";
230
- data: {
231
- doRemoveBackground: boolean;
232
- doSmartCrop: boolean;
233
- doChangeBackground: boolean;
234
- doRotate: boolean;
235
- doAddBorders: boolean;
236
- shadow: boolean;
237
- targetWidth?: number | null | undefined;
238
- targetHeight?: number | null | undefined;
239
- newBackgroundColor?: string | null | undefined;
240
- newBackgroundUrl?: string | null | undefined;
241
- rotationAngle?: number | null | undefined;
242
- borderSize?: number | null | undefined;
243
- borderColor?: string | null | undefined;
244
- };
245
134
  } | {
246
135
  type: "TEXT";
247
136
  data: {
@@ -249,5 +138,6 @@ export declare const PreferenceActionPayloadSchema: z.ZodObject<{
249
138
  };
250
139
  };
251
140
  enabled: boolean;
141
+ mandatory?: boolean | null | undefined;
252
142
  }>;
253
143
  export type PreferenceActionPayload = z.infer<typeof PreferenceActionPayloadSchema>;
@@ -7,5 +7,6 @@ const PreferenceActionPayloadDecodedPayload_1 = require("./PreferenceActionPaylo
7
7
  exports.PreferenceActionPayloadSchema = zod_1.z.object({
8
8
  type: PreferenceActionPayloadType_1.PreferenceActionPayloadTypeSchema,
9
9
  enabled: zod_1.z.boolean(),
10
- payload: PreferenceActionPayloadDecodedPayload_1.PreferenceActionPayloadDecodedPayloadSchema
10
+ payload: PreferenceActionPayloadDecodedPayload_1.PreferenceActionPayloadDecodedPayloadSchema,
11
+ mandatory: zod_1.z.boolean().nullish()
11
12
  });
@@ -5,6 +5,7 @@ import {PreferenceActionPayloadDecodedPayloadSchema} from "./PreferenceActionPay
5
5
  export const PreferenceActionPayloadSchema = z.object({
6
6
  type: PreferenceActionPayloadTypeSchema,
7
7
  enabled: z.boolean(),
8
- payload: PreferenceActionPayloadDecodedPayloadSchema
8
+ payload: PreferenceActionPayloadDecodedPayloadSchema,
9
+ mandatory: z.boolean().nullish()
9
10
  })
10
11
  export type PreferenceActionPayload = z.infer<typeof PreferenceActionPayloadSchema>