controlresell 2.2.0 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/package.json +2 -2
  2. package/src/com/controlresell/models/filters/SavedFilters.d.ts +133 -0
  3. package/src/com/controlresell/models/filters/SavedFilters.js +13 -0
  4. package/src/com/controlresell/models/filters/SavedFilters.ts +12 -0
  5. package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts +127 -0
  6. package/src/com/controlresell/models/filters/SavedFiltersPayload.js +10 -0
  7. package/src/com/controlresell/models/filters/SavedFiltersPayload.ts +9 -0
  8. package/src/com/controlresell/models/items/CreatedItems.d.ts +70 -70
  9. package/src/com/controlresell/models/items/Item.d.ts +36 -36
  10. package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +2 -2
  11. package/src/com/controlresell/models/items/ItemPayload.d.ts +2 -2
  12. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +70 -70
  13. package/src/com/controlresell/models/items/UpdatedItem.d.ts +70 -70
  14. package/src/com/controlresell/models/items/platforms/CreateItemOnPlatformPayload.d.ts +2 -2
  15. package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +2 -2
  16. package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +4 -4
  17. package/src/com/controlresell/models/items/platforms/UpdateItemOnPlatformPayload.d.ts +2 -2
  18. package/src/com/controlresell/models/platforms/PlatformFiltersContext.d.ts +12 -0
  19. package/src/com/controlresell/models/platforms/PlatformFiltersContext.js +9 -0
  20. package/src/com/controlresell/models/platforms/PlatformFiltersContext.ts +8 -0
  21. package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts +6 -6
  22. package/src/com/controlresell/models/platforms/orders/Order.d.ts +6 -6
  23. package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +4 -4
  24. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +78 -78
  25. package/src/com/controlresell/models/platforms/transactions/Transaction.d.ts +6 -6
  26. package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.d.ts +4 -4
  27. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +78 -78
  28. package/src/com/controlresell/models/preferences/Preference.d.ts +10 -0
  29. package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +6 -0
  30. package/src/com/controlresell/models/preferences/cases/PreferenceCase.js +2 -0
  31. package/src/com/controlresell/models/preferences/cases/PreferenceCase.ts +2 -0
  32. package/src/com/controlresell/models/preferences/cases/PreferenceCasePayload.d.ts +9 -3
  33. package/src/com/controlresell/models/preferences/cases/PreferenceCasePayload.js +4 -2
  34. package/src/com/controlresell/models/preferences/cases/PreferenceCasePayload.ts +4 -2
  35. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePriceNegotiationProfile.d.ts +3 -0
  36. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePriceNegotiationProfile.js +7 -0
  37. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePriceNegotiationProfile.ts +6 -0
  38. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayload.d.ts +3 -0
  39. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayload.js +3 -1
  40. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayload.ts +3 -1
  41. package/src/com/controlresell/models/preferences/payloads/wait/PreferenceWaitPayload.d.ts +9 -0
  42. package/src/com/controlresell/models/preferences/payloads/wait/PreferenceWaitPayload.js +7 -0
  43. package/src/com/controlresell/models/preferences/payloads/wait/PreferenceWaitPayload.ts +6 -0
  44. package/src/com/controlresell/models/preferences/variables/PreferenceVariable.d.ts +12 -0
  45. package/src/com/controlresell/models/preferences/variables/PreferenceVariable.js +10 -0
  46. package/src/com/controlresell/models/preferences/variables/PreferenceVariable.ts +9 -0
  47. package/src/com/controlresell/models/preferences/variables/PreferenceVariableName.d.ts +3 -0
  48. package/src/com/controlresell/models/preferences/variables/PreferenceVariableName.js +7 -0
  49. package/src/com/controlresell/models/preferences/variables/PreferenceVariableName.ts +6 -0
  50. package/src/com/controlresell/models/preferences/variables/PreferenceVariableTemplate.d.ts +3 -0
  51. package/src/com/controlresell/models/preferences/variables/PreferenceVariableTemplate.js +7 -0
  52. package/src/com/controlresell/models/preferences/variables/PreferenceVariableTemplate.ts +6 -0
  53. package/src/index.d.ts +8 -1
  54. package/src/index.js +20 -6
  55. package/src/index.ts +8 -1
  56. package/src/com/controlresell/models/users/preferences/UserPreference.d.ts +0 -18
  57. package/src/com/controlresell/models/users/preferences/UserPreference.js +0 -11
  58. package/src/com/controlresell/models/users/preferences/UserPreference.ts +0 -10
@@ -39,7 +39,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
39
39
  accountId: string;
40
40
  }>>>;
41
41
  }, "strip", z.ZodTypeAny, {
42
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
42
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
43
43
  id: string;
44
44
  itemId: string | number;
45
45
  accountId: string;
@@ -54,7 +54,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
54
54
  accountId: string;
55
55
  } | null | undefined;
56
56
  }, {
57
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
57
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
58
58
  id: string;
59
59
  itemId: string | number;
60
60
  accountId: string;
@@ -73,7 +73,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
73
73
  transactionId: string;
74
74
  itemOnPlatformId: string;
75
75
  itemOnPlatform?: {
76
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
76
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
77
77
  id: string;
78
78
  itemId: string | number;
79
79
  accountId: string;
@@ -92,7 +92,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
92
92
  transactionId: string;
93
93
  itemOnPlatformId: string;
94
94
  itemOnPlatform?: {
95
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
95
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
96
96
  id: string;
97
97
  itemId: string | number;
98
98
  accountId: string;
@@ -116,7 +116,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
116
116
  transactionId: string;
117
117
  itemOnPlatformId: string;
118
118
  itemOnPlatform?: {
119
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
119
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
120
120
  id: string;
121
121
  itemId: string | number;
122
122
  accountId: string;
@@ -144,7 +144,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
144
144
  transactionId: string;
145
145
  itemOnPlatformId: string;
146
146
  itemOnPlatform?: {
147
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
147
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
148
148
  id: string;
149
149
  itemId: string | number;
150
150
  accountId: string;
@@ -429,7 +429,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
429
429
  accountId: string;
430
430
  }>>>;
431
431
  }, "strip", z.ZodTypeAny, {
432
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
432
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
433
433
  id: string;
434
434
  itemId: string | number;
435
435
  accountId: string;
@@ -444,7 +444,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
444
444
  accountId: string;
445
445
  } | null | undefined;
446
446
  }, {
447
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
447
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
448
448
  id: string;
449
449
  itemId: string | number;
450
450
  accountId: string;
@@ -470,6 +470,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
470
470
  sold: boolean;
471
471
  description?: string | null | undefined;
472
472
  customerId?: string | number | null | undefined;
473
+ sex?: string | null | undefined;
473
474
  state?: number | null | undefined;
474
475
  colorIds?: number[] | null | undefined;
475
476
  packageSizeId?: number | null | undefined;
@@ -486,6 +487,22 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
486
487
  userId?: string | number | null | undefined;
487
488
  } | null | undefined;
488
489
  }[] | null | undefined;
490
+ platforms?: {
491
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
492
+ id: string;
493
+ itemId: string | number;
494
+ accountId: string;
495
+ platformId: string;
496
+ platformUrl: string;
497
+ platformPrice: number;
498
+ account?: {
499
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
500
+ userId: string | number;
501
+ name: string;
502
+ platform: "VINTED" | "SHOPIFY";
503
+ accountId: string;
504
+ } | null | undefined;
505
+ }[] | null | undefined;
489
506
  files?: {
490
507
  fileId: string;
491
508
  itemId: string | number;
@@ -500,7 +517,6 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
500
517
  }[] | null | undefined;
501
518
  categoryId?: number | null | undefined;
502
519
  brandId?: string | number | null | undefined;
503
- sex?: string | null | undefined;
504
520
  purchasePrice?: number | null | undefined;
505
521
  purchaseDate?: Date | null | undefined;
506
522
  purchasePlaceId?: string | number | null | undefined;
@@ -555,22 +571,6 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
555
571
  itemId: string | number;
556
572
  data?: string | null | undefined;
557
573
  } | null | undefined;
558
- platforms?: {
559
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
560
- id: string;
561
- itemId: string | number;
562
- accountId: string;
563
- platformId: string;
564
- platformUrl: string;
565
- platformPrice: number;
566
- account?: {
567
- status: "ERROR" | "CONNECTED" | "DISCONNECTED";
568
- userId: string | number;
569
- name: string;
570
- platform: "VINTED" | "SHOPIFY";
571
- accountId: string;
572
- } | null | undefined;
573
- }[] | null | undefined;
574
574
  }, {
575
575
  id: string | number;
576
576
  userId: string | number;
@@ -580,6 +580,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
580
580
  sold: boolean;
581
581
  description?: string | null | undefined;
582
582
  customerId?: string | number | null | undefined;
583
+ sex?: string | null | undefined;
583
584
  state?: number | null | undefined;
584
585
  colorIds?: number[] | null | undefined;
585
586
  packageSizeId?: number | null | undefined;
@@ -596,6 +597,22 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
596
597
  userId?: string | number | null | undefined;
597
598
  } | null | undefined;
598
599
  }[] | null | undefined;
600
+ platforms?: {
601
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
602
+ id: string;
603
+ itemId: string | number;
604
+ accountId: string;
605
+ platformId: string;
606
+ platformUrl: string;
607
+ platformPrice: number;
608
+ account?: {
609
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
610
+ userId: string | number;
611
+ name: string;
612
+ platform: "VINTED" | "SHOPIFY";
613
+ accountId: string;
614
+ } | null | undefined;
615
+ }[] | null | undefined;
599
616
  files?: {
600
617
  fileId: string;
601
618
  itemId: string | number;
@@ -610,7 +627,6 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
610
627
  }[] | null | undefined;
611
628
  categoryId?: number | null | undefined;
612
629
  brandId?: string | number | null | undefined;
613
- sex?: string | null | undefined;
614
630
  purchasePrice?: number | null | undefined;
615
631
  purchaseDate?: Date | null | undefined;
616
632
  purchasePlaceId?: string | number | null | undefined;
@@ -665,22 +681,6 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
665
681
  itemId: string | number;
666
682
  data?: string | null | undefined;
667
683
  } | null | undefined;
668
- platforms?: {
669
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
670
- id: string;
671
- itemId: string | number;
672
- accountId: string;
673
- platformId: string;
674
- platformUrl: string;
675
- platformPrice: number;
676
- account?: {
677
- status: "ERROR" | "CONNECTED" | "DISCONNECTED";
678
- userId: string | number;
679
- name: string;
680
- platform: "VINTED" | "SHOPIFY";
681
- accountId: string;
682
- } | null | undefined;
683
- }[] | null | undefined;
684
684
  }>, "many">;
685
685
  }, "strip", z.ZodTypeAny, {
686
686
  items: {
@@ -692,6 +692,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
692
692
  sold: boolean;
693
693
  description?: string | null | undefined;
694
694
  customerId?: string | number | null | undefined;
695
+ sex?: string | null | undefined;
695
696
  state?: number | null | undefined;
696
697
  colorIds?: number[] | null | undefined;
697
698
  packageSizeId?: number | null | undefined;
@@ -708,6 +709,22 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
708
709
  userId?: string | number | null | undefined;
709
710
  } | null | undefined;
710
711
  }[] | null | undefined;
712
+ platforms?: {
713
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
714
+ id: string;
715
+ itemId: string | number;
716
+ accountId: string;
717
+ platformId: string;
718
+ platformUrl: string;
719
+ platformPrice: number;
720
+ account?: {
721
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
722
+ userId: string | number;
723
+ name: string;
724
+ platform: "VINTED" | "SHOPIFY";
725
+ accountId: string;
726
+ } | null | undefined;
727
+ }[] | null | undefined;
711
728
  files?: {
712
729
  fileId: string;
713
730
  itemId: string | number;
@@ -722,7 +739,6 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
722
739
  }[] | null | undefined;
723
740
  categoryId?: number | null | undefined;
724
741
  brandId?: string | number | null | undefined;
725
- sex?: string | null | undefined;
726
742
  purchasePrice?: number | null | undefined;
727
743
  purchaseDate?: Date | null | undefined;
728
744
  purchasePlaceId?: string | number | null | undefined;
@@ -777,22 +793,6 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
777
793
  itemId: string | number;
778
794
  data?: string | null | undefined;
779
795
  } | null | undefined;
780
- platforms?: {
781
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
782
- id: string;
783
- itemId: string | number;
784
- accountId: string;
785
- platformId: string;
786
- platformUrl: string;
787
- platformPrice: number;
788
- account?: {
789
- status: "ERROR" | "CONNECTED" | "DISCONNECTED";
790
- userId: string | number;
791
- name: string;
792
- platform: "VINTED" | "SHOPIFY";
793
- accountId: string;
794
- } | null | undefined;
795
- }[] | null | undefined;
796
796
  }[];
797
797
  transaction: {
798
798
  id: string;
@@ -802,7 +802,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
802
802
  transactionId: string;
803
803
  itemOnPlatformId: string;
804
804
  itemOnPlatform?: {
805
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
805
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
806
806
  id: string;
807
807
  itemId: string | number;
808
808
  accountId: string;
@@ -833,6 +833,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
833
833
  sold: boolean;
834
834
  description?: string | null | undefined;
835
835
  customerId?: string | number | null | undefined;
836
+ sex?: string | null | undefined;
836
837
  state?: number | null | undefined;
837
838
  colorIds?: number[] | null | undefined;
838
839
  packageSizeId?: number | null | undefined;
@@ -849,6 +850,22 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
849
850
  userId?: string | number | null | undefined;
850
851
  } | null | undefined;
851
852
  }[] | null | undefined;
853
+ platforms?: {
854
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
855
+ id: string;
856
+ itemId: string | number;
857
+ accountId: string;
858
+ platformId: string;
859
+ platformUrl: string;
860
+ platformPrice: number;
861
+ account?: {
862
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
863
+ userId: string | number;
864
+ name: string;
865
+ platform: "VINTED" | "SHOPIFY";
866
+ accountId: string;
867
+ } | null | undefined;
868
+ }[] | null | undefined;
852
869
  files?: {
853
870
  fileId: string;
854
871
  itemId: string | number;
@@ -863,7 +880,6 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
863
880
  }[] | null | undefined;
864
881
  categoryId?: number | null | undefined;
865
882
  brandId?: string | number | null | undefined;
866
- sex?: string | null | undefined;
867
883
  purchasePrice?: number | null | undefined;
868
884
  purchaseDate?: Date | null | undefined;
869
885
  purchasePlaceId?: string | number | null | undefined;
@@ -918,22 +934,6 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
918
934
  itemId: string | number;
919
935
  data?: string | null | undefined;
920
936
  } | null | undefined;
921
- platforms?: {
922
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
923
- id: string;
924
- itemId: string | number;
925
- accountId: string;
926
- platformId: string;
927
- platformUrl: string;
928
- platformPrice: number;
929
- account?: {
930
- status: "ERROR" | "CONNECTED" | "DISCONNECTED";
931
- userId: string | number;
932
- name: string;
933
- platform: "VINTED" | "SHOPIFY";
934
- accountId: string;
935
- } | null | undefined;
936
- }[] | null | undefined;
937
937
  }[];
938
938
  transaction: {
939
939
  id: string;
@@ -943,7 +943,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
943
943
  transactionId: string;
944
944
  itemOnPlatformId: string;
945
945
  itemOnPlatform?: {
946
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
946
+ status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
947
947
  id: string;
948
948
  itemId: string | number;
949
949
  accountId: string;
@@ -10,15 +10,21 @@ export declare const PreferenceSchema: z.ZodObject<{
10
10
  id: z.ZodString;
11
11
  preferenceId: z.ZodString;
12
12
  savedFiltersId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ enabled: z.ZodBoolean;
14
+ testMode: z.ZodBoolean;
13
15
  payload: z.ZodString;
14
16
  }, "strip", z.ZodTypeAny, {
15
17
  id: string;
16
18
  payload: string;
19
+ enabled: boolean;
20
+ testMode: boolean;
17
21
  preferenceId: string;
18
22
  savedFiltersId?: string | null | undefined;
19
23
  }, {
20
24
  id: string;
21
25
  payload: string;
26
+ enabled: boolean;
27
+ testMode: boolean;
22
28
  preferenceId: string;
23
29
  savedFiltersId?: string | null | undefined;
24
30
  }>, "many">>>;
@@ -32,6 +38,8 @@ export declare const PreferenceSchema: z.ZodObject<{
32
38
  cases?: {
33
39
  id: string;
34
40
  payload: string;
41
+ enabled: boolean;
42
+ testMode: boolean;
35
43
  preferenceId: string;
36
44
  savedFiltersId?: string | null | undefined;
37
45
  }[] | null | undefined;
@@ -45,6 +53,8 @@ export declare const PreferenceSchema: z.ZodObject<{
45
53
  cases?: {
46
54
  id: string;
47
55
  payload: string;
56
+ enabled: boolean;
57
+ testMode: boolean;
48
58
  preferenceId: string;
49
59
  savedFiltersId?: string | null | undefined;
50
60
  }[] | null | undefined;
@@ -3,15 +3,21 @@ export declare const PreferenceCaseSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  preferenceId: z.ZodString;
5
5
  savedFiltersId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ enabled: z.ZodBoolean;
7
+ testMode: z.ZodBoolean;
6
8
  payload: z.ZodString;
7
9
  }, "strip", z.ZodTypeAny, {
8
10
  id: string;
9
11
  payload: string;
12
+ enabled: boolean;
13
+ testMode: boolean;
10
14
  preferenceId: string;
11
15
  savedFiltersId?: string | null | undefined;
12
16
  }, {
13
17
  id: string;
14
18
  payload: string;
19
+ enabled: boolean;
20
+ testMode: boolean;
15
21
  preferenceId: string;
16
22
  savedFiltersId?: string | null | undefined;
17
23
  }>;
@@ -6,5 +6,7 @@ exports.PreferenceCaseSchema = zod_1.z.object({
6
6
  id: zod_1.z.string().uuid(),
7
7
  preferenceId: zod_1.z.string().uuid(),
8
8
  savedFiltersId: zod_1.z.string().uuid().nullish(),
9
+ enabled: zod_1.z.boolean(),
10
+ testMode: zod_1.z.boolean(),
9
11
  payload: zod_1.z.string()
10
12
  });
@@ -4,6 +4,8 @@ export const PreferenceCaseSchema = z.object({
4
4
  id: z.string().uuid(),
5
5
  preferenceId: z.string().uuid(),
6
6
  savedFiltersId: z.string().uuid().nullish(),
7
+ enabled: z.boolean(),
8
+ testMode: z.boolean(),
7
9
  payload: z.string()
8
10
  })
9
11
  export type PreferenceCase = z.infer<typeof PreferenceCaseSchema>
@@ -1,12 +1,18 @@
1
1
  import { z } from "zod";
2
2
  export declare const PreferenceCasePayloadSchema: z.ZodObject<{
3
+ enabled: z.ZodBoolean;
4
+ testMode: z.ZodBoolean;
5
+ payload: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3
6
  savedFiltersId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
- payload: z.ZodString;
5
7
  }, "strip", z.ZodTypeAny, {
6
- payload: string;
8
+ enabled: boolean;
9
+ testMode: boolean;
10
+ payload?: string | null | undefined;
7
11
  savedFiltersId?: string | null | undefined;
8
12
  }, {
9
- payload: string;
13
+ enabled: boolean;
14
+ testMode: boolean;
15
+ payload?: string | null | undefined;
10
16
  savedFiltersId?: string | null | undefined;
11
17
  }>;
12
18
  export type PreferenceCasePayload = z.infer<typeof PreferenceCasePayloadSchema>;
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PreferenceCasePayloadSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.PreferenceCasePayloadSchema = zod_1.z.object({
6
- savedFiltersId: zod_1.z.string().uuid().nullish(),
7
- payload: zod_1.z.string()
6
+ enabled: zod_1.z.boolean(),
7
+ testMode: zod_1.z.boolean(),
8
+ payload: zod_1.z.string().nullish(),
9
+ savedFiltersId: zod_1.z.string().uuid().nullish()
8
10
  });
@@ -1,7 +1,9 @@
1
1
  import {z} from "zod"
2
2
 
3
3
  export const PreferenceCasePayloadSchema = z.object({
4
- savedFiltersId: z.string().uuid().nullish(),
5
- payload: z.string()
4
+ enabled: z.boolean(),
5
+ testMode: z.boolean(),
6
+ payload: z.string().nullish(),
7
+ savedFiltersId: z.string().uuid().nullish()
6
8
  })
7
9
  export type PreferenceCasePayload = z.infer<typeof PreferenceCasePayloadSchema>
@@ -0,0 +1,3 @@
1
+ import { z } from "zod";
2
+ export declare const PreferencePriceNegotiationProfileSchema: z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>;
3
+ export type PreferencePriceNegotiationProfile = z.infer<typeof PreferencePriceNegotiationProfileSchema>;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreferencePriceNegotiationProfileSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PreferencePriceNegotiationProfileSchema = zod_1.z.enum([
6
+ "AUTO", "MODERATE", "CONSERVATIVE"
7
+ ]);
@@ -0,0 +1,6 @@
1
+ import {z} from "zod"
2
+
3
+ export const PreferencePriceNegotiationProfileSchema = z.enum([
4
+ "AUTO", "MODERATE", "CONSERVATIVE"
5
+ ])
6
+ export type PreferencePriceNegotiationProfile = z.infer<typeof PreferencePriceNegotiationProfileSchema>
@@ -4,15 +4,18 @@ export declare const PreferencePricePayloadSchema: z.ZodObject<{
4
4
  value: z.ZodNumber;
5
5
  roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
6
6
  roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7
+ negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
7
8
  }, "strip", z.ZodTypeAny, {
8
9
  value: number;
9
10
  type: "PERCENTAGE" | "ABSOLUTE";
10
11
  roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
11
12
  roundStep?: number | null | undefined;
13
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
12
14
  }, {
13
15
  value: number;
14
16
  type: "PERCENTAGE" | "ABSOLUTE";
15
17
  roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
16
18
  roundStep?: number | null | undefined;
19
+ negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
17
20
  }>;
18
21
  export type PreferencePricePayload = z.infer<typeof PreferencePricePayloadSchema>;
@@ -4,9 +4,11 @@ exports.PreferencePricePayloadSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const PreferencePricePayloadType_1 = require("./PreferencePricePayloadType");
6
6
  const PreferencePricePayloadRoundType_1 = require("./PreferencePricePayloadRoundType");
7
+ const PreferencePriceNegotiationProfile_1 = require("./PreferencePriceNegotiationProfile");
7
8
  exports.PreferencePricePayloadSchema = zod_1.z.object({
8
9
  type: PreferencePricePayloadType_1.PreferencePricePayloadTypeSchema,
9
10
  value: zod_1.z.number(),
10
11
  roundType: PreferencePricePayloadRoundType_1.PreferencePricePayloadRoundTypeSchema.nullish(),
11
- roundStep: zod_1.z.number().nullish()
12
+ roundStep: zod_1.z.number().nullish(),
13
+ negotiationProfile: PreferencePriceNegotiationProfile_1.PreferencePriceNegotiationProfileSchema.nullish()
12
14
  });
@@ -1,11 +1,13 @@
1
1
  import {z} from "zod"
2
2
  import {PreferencePricePayloadTypeSchema} from "./PreferencePricePayloadType"
3
3
  import {PreferencePricePayloadRoundTypeSchema} from "./PreferencePricePayloadRoundType"
4
+ import {PreferencePriceNegotiationProfileSchema} from "./PreferencePriceNegotiationProfile"
4
5
 
5
6
  export const PreferencePricePayloadSchema = z.object({
6
7
  type: PreferencePricePayloadTypeSchema,
7
8
  value: z.number(),
8
9
  roundType: PreferencePricePayloadRoundTypeSchema.nullish(),
9
- roundStep: z.number().nullish()
10
+ roundStep: z.number().nullish(),
11
+ negotiationProfile: PreferencePriceNegotiationProfileSchema.nullish()
10
12
  })
11
13
  export type PreferencePricePayload = z.infer<typeof PreferencePricePayloadSchema>
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+ export declare const PreferenceWaitPayloadSchema: z.ZodObject<{
3
+ seconds: z.ZodNumber;
4
+ }, "strip", z.ZodTypeAny, {
5
+ seconds: number;
6
+ }, {
7
+ seconds: number;
8
+ }>;
9
+ export type PreferenceWaitPayload = z.infer<typeof PreferenceWaitPayloadSchema>;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreferenceWaitPayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PreferenceWaitPayloadSchema = zod_1.z.object({
6
+ seconds: zod_1.z.number().int()
7
+ });
@@ -0,0 +1,6 @@
1
+ import {z} from "zod"
2
+
3
+ export const PreferenceWaitPayloadSchema = z.object({
4
+ seconds: z.number().int()
5
+ })
6
+ export type PreferenceWaitPayload = z.infer<typeof PreferenceWaitPayloadSchema>
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ export declare const PreferenceVariableSchema: z.ZodObject<{
3
+ name: z.ZodEnum<["NAME", "ITEM_TITLE", "ITEM_PRICE_INITIAL", "OFFER_PRICE", "NEGOTIATION_PERCENTAGE", "NEGOTIATION_PRICE"]>;
4
+ allowedTemplates: z.ZodArray<z.ZodEnum<["TITLE", "DESCRIPTION", "MESSAGE"]>, "many">;
5
+ }, "strip", z.ZodTypeAny, {
6
+ name: "NAME" | "ITEM_TITLE" | "ITEM_PRICE_INITIAL" | "OFFER_PRICE" | "NEGOTIATION_PERCENTAGE" | "NEGOTIATION_PRICE";
7
+ allowedTemplates: ("MESSAGE" | "TITLE" | "DESCRIPTION")[];
8
+ }, {
9
+ name: "NAME" | "ITEM_TITLE" | "ITEM_PRICE_INITIAL" | "OFFER_PRICE" | "NEGOTIATION_PERCENTAGE" | "NEGOTIATION_PRICE";
10
+ allowedTemplates: ("MESSAGE" | "TITLE" | "DESCRIPTION")[];
11
+ }>;
12
+ export type PreferenceVariable = z.infer<typeof PreferenceVariableSchema>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreferenceVariableSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const PreferenceVariableName_1 = require("./PreferenceVariableName");
6
+ const PreferenceVariableTemplate_1 = require("./PreferenceVariableTemplate");
7
+ exports.PreferenceVariableSchema = zod_1.z.object({
8
+ name: PreferenceVariableName_1.PreferenceVariableNameSchema,
9
+ allowedTemplates: zod_1.z.array(PreferenceVariableTemplate_1.PreferenceVariableTemplateSchema)
10
+ });
@@ -0,0 +1,9 @@
1
+ import {z} from "zod"
2
+ import {PreferenceVariableNameSchema} from "./PreferenceVariableName"
3
+ import {PreferenceVariableTemplateSchema} from "./PreferenceVariableTemplate"
4
+
5
+ export const PreferenceVariableSchema = z.object({
6
+ name: PreferenceVariableNameSchema,
7
+ allowedTemplates: z.array(PreferenceVariableTemplateSchema)
8
+ })
9
+ export type PreferenceVariable = z.infer<typeof PreferenceVariableSchema>
@@ -0,0 +1,3 @@
1
+ import { z } from "zod";
2
+ export declare const PreferenceVariableNameSchema: z.ZodEnum<["NAME", "ITEM_TITLE", "ITEM_PRICE_INITIAL", "OFFER_PRICE", "NEGOTIATION_PERCENTAGE", "NEGOTIATION_PRICE"]>;
3
+ export type PreferenceVariableName = z.infer<typeof PreferenceVariableNameSchema>;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreferenceVariableNameSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PreferenceVariableNameSchema = zod_1.z.enum([
6
+ "NAME", "ITEM_TITLE", "ITEM_PRICE_INITIAL", "OFFER_PRICE", "NEGOTIATION_PERCENTAGE", "NEGOTIATION_PRICE"
7
+ ]);
@@ -0,0 +1,6 @@
1
+ import {z} from "zod"
2
+
3
+ export const PreferenceVariableNameSchema = z.enum([
4
+ "NAME", "ITEM_TITLE", "ITEM_PRICE_INITIAL", "OFFER_PRICE", "NEGOTIATION_PERCENTAGE", "NEGOTIATION_PRICE"
5
+ ])
6
+ export type PreferenceVariableName = z.infer<typeof PreferenceVariableNameSchema>
@@ -0,0 +1,3 @@
1
+ import { z } from "zod";
2
+ export declare const PreferenceVariableTemplateSchema: z.ZodEnum<["TITLE", "DESCRIPTION", "MESSAGE"]>;
3
+ export type PreferenceVariableTemplate = z.infer<typeof PreferenceVariableTemplateSchema>;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreferenceVariableTemplateSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PreferenceVariableTemplateSchema = zod_1.z.enum([
6
+ "TITLE", "DESCRIPTION", "MESSAGE"
7
+ ]);
@@ -0,0 +1,6 @@
1
+ import {z} from "zod"
2
+
3
+ export const PreferenceVariableTemplateSchema = z.enum([
4
+ "TITLE", "DESCRIPTION", "MESSAGE"
5
+ ])
6
+ export type PreferenceVariableTemplate = z.infer<typeof PreferenceVariableTemplateSchema>