controlresell 2.2.8 → 2.2.10

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 (44) hide show
  1. package/package.json +1 -1
  2. package/src/com/controlresell/models/application/RabbitMQRoutingKey.d.ts +1 -1
  3. package/src/com/controlresell/models/application/RabbitMQRoutingKey.js +1 -1
  4. package/src/com/controlresell/models/application/RabbitMQRoutingKey.ts +1 -1
  5. package/src/com/controlresell/models/filters/SavedFilters.d.ts +5 -5
  6. package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts +5 -5
  7. package/src/com/controlresell/models/items/CreatedItems.d.ts +127 -7
  8. package/src/com/controlresell/models/items/Item.d.ts +101 -5
  9. package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +3 -3
  10. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +127 -7
  11. package/src/com/controlresell/models/items/UpdatedItem.d.ts +127 -7
  12. package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +75 -3
  13. package/src/com/controlresell/models/items/history/ItemHistory.d.ts +75 -3
  14. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.d.ts +48 -0
  15. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.js +10 -0
  16. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.ts +10 -0
  17. package/src/com/controlresell/models/items/history/ItemHistoryType.d.ts +1 -1
  18. package/src/com/controlresell/models/items/history/ItemHistoryType.js +1 -1
  19. package/src/com/controlresell/models/items/history/ItemHistoryType.ts +1 -1
  20. package/src/com/controlresell/models/items/history/ItemHistoryTypeWithCount.d.ts +3 -3
  21. package/src/com/controlresell/models/items/history/data/ItemHistoryRepublishing.d.ts +9 -0
  22. package/src/com/controlresell/models/items/history/data/ItemHistoryRepublishing.js +8 -0
  23. package/src/com/controlresell/models/items/history/data/ItemHistoryRepublishing.ts +7 -0
  24. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.d.ts +3 -0
  25. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.js +1 -0
  26. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.ts +1 -0
  27. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +8 -0
  28. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.js +2 -1
  29. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.ts +2 -1
  30. package/src/com/controlresell/models/items/platforms/PlatformInfo.d.ts +3 -0
  31. package/src/com/controlresell/models/items/platforms/PlatformInfo.js +2 -1
  32. package/src/com/controlresell/models/items/platforms/PlatformInfo.ts +2 -1
  33. package/src/com/controlresell/models/items/platforms/RepublishRequestWithItem.d.ts +131 -0
  34. package/src/com/controlresell/models/items/platforms/RepublishRequestWithItem.js +11 -0
  35. package/src/com/controlresell/models/items/platforms/RepublishRequestWithItem.ts +10 -0
  36. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +127 -7
  37. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +127 -7
  38. package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +127 -7
  39. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +3 -0
  40. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.js +2 -1
  41. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.ts +2 -1
  42. package/src/index.d.ts +2 -0
  43. package/src/index.js +7 -3
  44. package/src/index.ts +2 -0
@@ -510,7 +510,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
510
510
  lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
511
511
  id: z.ZodString;
512
512
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
513
- type: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
513
+ type: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "REPUBLISHING", "REPUBLISHED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
514
514
  data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
515
515
  type: z.ZodLiteral<"EMPTY">;
516
516
  }, "strip", z.ZodTypeAny, {
@@ -589,10 +589,58 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
589
589
  soldOrderId: string;
590
590
  soldConversationId?: string | null | undefined;
591
591
  };
592
+ }>, z.ZodObject<{
593
+ type: z.ZodLiteral<"DELIVERED">;
594
+ data: z.ZodObject<{
595
+ soldAccountId: z.ZodString;
596
+ soldOrderId: z.ZodString;
597
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
598
+ }, "strip", z.ZodTypeAny, {
599
+ soldAccountId: string;
600
+ soldOrderId: string;
601
+ soldConversationId?: string | null | undefined;
602
+ }, {
603
+ soldAccountId: string;
604
+ soldOrderId: string;
605
+ soldConversationId?: string | null | undefined;
606
+ }>;
607
+ }, "strip", z.ZodTypeAny, {
608
+ type: "DELIVERED";
609
+ data: {
610
+ soldAccountId: string;
611
+ soldOrderId: string;
612
+ soldConversationId?: string | null | undefined;
613
+ };
614
+ }, {
615
+ type: "DELIVERED";
616
+ data: {
617
+ soldAccountId: string;
618
+ soldOrderId: string;
619
+ soldConversationId?: string | null | undefined;
620
+ };
621
+ }>, z.ZodObject<{
622
+ type: z.ZodLiteral<"REPUBLISHING">;
623
+ data: z.ZodObject<{
624
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
625
+ }, "strip", z.ZodTypeAny, {
626
+ platform: "VINTED" | "SHOPIFY";
627
+ }, {
628
+ platform: "VINTED" | "SHOPIFY";
629
+ }>;
630
+ }, "strip", z.ZodTypeAny, {
631
+ type: "REPUBLISHING";
632
+ data: {
633
+ platform: "VINTED" | "SHOPIFY";
634
+ };
635
+ }, {
636
+ type: "REPUBLISHING";
637
+ data: {
638
+ platform: "VINTED" | "SHOPIFY";
639
+ };
592
640
  }>]>>>;
593
641
  createdAt: z.ZodDate;
594
642
  }, "strip", z.ZodTypeAny, {
595
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
643
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
596
644
  id: string;
597
645
  createdAt: Date;
598
646
  itemId: string | number;
@@ -616,9 +664,21 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
616
664
  soldOrderId: string;
617
665
  soldConversationId?: string | null | undefined;
618
666
  };
667
+ } | {
668
+ type: "DELIVERED";
669
+ data: {
670
+ soldAccountId: string;
671
+ soldOrderId: string;
672
+ soldConversationId?: string | null | undefined;
673
+ };
674
+ } | {
675
+ type: "REPUBLISHING";
676
+ data: {
677
+ platform: "VINTED" | "SHOPIFY";
678
+ };
619
679
  } | null | undefined;
620
680
  }, {
621
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
681
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
622
682
  id: string;
623
683
  createdAt: Date;
624
684
  itemId: string | number;
@@ -642,6 +702,18 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
642
702
  soldOrderId: string;
643
703
  soldConversationId?: string | null | undefined;
644
704
  };
705
+ } | {
706
+ type: "DELIVERED";
707
+ data: {
708
+ soldAccountId: string;
709
+ soldOrderId: string;
710
+ soldConversationId?: string | null | undefined;
711
+ };
712
+ } | {
713
+ type: "REPUBLISHING";
714
+ data: {
715
+ platform: "VINTED" | "SHOPIFY";
716
+ };
645
717
  } | null | undefined;
646
718
  }>>>;
647
719
  platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -808,7 +880,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
808
880
  fieldId: string | number;
809
881
  }[] | null | undefined;
810
882
  lastHistory?: {
811
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
883
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
812
884
  id: string;
813
885
  createdAt: Date;
814
886
  itemId: string | number;
@@ -832,6 +904,18 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
832
904
  soldOrderId: string;
833
905
  soldConversationId?: string | null | undefined;
834
906
  };
907
+ } | {
908
+ type: "DELIVERED";
909
+ data: {
910
+ soldAccountId: string;
911
+ soldOrderId: string;
912
+ soldConversationId?: string | null | undefined;
913
+ };
914
+ } | {
915
+ type: "REPUBLISHING";
916
+ data: {
917
+ platform: "VINTED" | "SHOPIFY";
918
+ };
835
919
  } | null | undefined;
836
920
  } | null | undefined;
837
921
  }, {
@@ -938,7 +1022,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
938
1022
  fieldId: string | number;
939
1023
  }[] | null | undefined;
940
1024
  lastHistory?: {
941
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1025
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
942
1026
  id: string;
943
1027
  createdAt: Date;
944
1028
  itemId: string | number;
@@ -962,6 +1046,18 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
962
1046
  soldOrderId: string;
963
1047
  soldConversationId?: string | null | undefined;
964
1048
  };
1049
+ } | {
1050
+ type: "DELIVERED";
1051
+ data: {
1052
+ soldAccountId: string;
1053
+ soldOrderId: string;
1054
+ soldConversationId?: string | null | undefined;
1055
+ };
1056
+ } | {
1057
+ type: "REPUBLISHING";
1058
+ data: {
1059
+ platform: "VINTED" | "SHOPIFY";
1060
+ };
965
1061
  } | null | undefined;
966
1062
  } | null | undefined;
967
1063
  }>, "many">;
@@ -1070,7 +1166,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1070
1166
  fieldId: string | number;
1071
1167
  }[] | null | undefined;
1072
1168
  lastHistory?: {
1073
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1169
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1074
1170
  id: string;
1075
1171
  createdAt: Date;
1076
1172
  itemId: string | number;
@@ -1094,6 +1190,18 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1094
1190
  soldOrderId: string;
1095
1191
  soldConversationId?: string | null | undefined;
1096
1192
  };
1193
+ } | {
1194
+ type: "DELIVERED";
1195
+ data: {
1196
+ soldAccountId: string;
1197
+ soldOrderId: string;
1198
+ soldConversationId?: string | null | undefined;
1199
+ };
1200
+ } | {
1201
+ type: "REPUBLISHING";
1202
+ data: {
1203
+ platform: "VINTED" | "SHOPIFY";
1204
+ };
1097
1205
  } | null | undefined;
1098
1206
  } | null | undefined;
1099
1207
  }[];
@@ -1252,7 +1360,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1252
1360
  fieldId: string | number;
1253
1361
  }[] | null | undefined;
1254
1362
  lastHistory?: {
1255
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1363
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1256
1364
  id: string;
1257
1365
  createdAt: Date;
1258
1366
  itemId: string | number;
@@ -1276,6 +1384,18 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1276
1384
  soldOrderId: string;
1277
1385
  soldConversationId?: string | null | undefined;
1278
1386
  };
1387
+ } | {
1388
+ type: "DELIVERED";
1389
+ data: {
1390
+ soldAccountId: string;
1391
+ soldOrderId: string;
1392
+ soldConversationId?: string | null | undefined;
1393
+ };
1394
+ } | {
1395
+ type: "REPUBLISHING";
1396
+ data: {
1397
+ platform: "VINTED" | "SHOPIFY";
1398
+ };
1279
1399
  } | null | undefined;
1280
1400
  } | null | undefined;
1281
1401
  }[];
@@ -385,7 +385,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
385
385
  lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
386
386
  id: z.ZodString;
387
387
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
388
- type: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
388
+ type: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "REPUBLISHING", "REPUBLISHED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
389
389
  data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
390
390
  type: z.ZodLiteral<"EMPTY">;
391
391
  }, "strip", z.ZodTypeAny, {
@@ -464,10 +464,58 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
464
464
  soldOrderId: string;
465
465
  soldConversationId?: string | null | undefined;
466
466
  };
467
+ }>, z.ZodObject<{
468
+ type: z.ZodLiteral<"DELIVERED">;
469
+ data: z.ZodObject<{
470
+ soldAccountId: z.ZodString;
471
+ soldOrderId: z.ZodString;
472
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
473
+ }, "strip", z.ZodTypeAny, {
474
+ soldAccountId: string;
475
+ soldOrderId: string;
476
+ soldConversationId?: string | null | undefined;
477
+ }, {
478
+ soldAccountId: string;
479
+ soldOrderId: string;
480
+ soldConversationId?: string | null | undefined;
481
+ }>;
482
+ }, "strip", z.ZodTypeAny, {
483
+ type: "DELIVERED";
484
+ data: {
485
+ soldAccountId: string;
486
+ soldOrderId: string;
487
+ soldConversationId?: string | null | undefined;
488
+ };
489
+ }, {
490
+ type: "DELIVERED";
491
+ data: {
492
+ soldAccountId: string;
493
+ soldOrderId: string;
494
+ soldConversationId?: string | null | undefined;
495
+ };
496
+ }>, z.ZodObject<{
497
+ type: z.ZodLiteral<"REPUBLISHING">;
498
+ data: z.ZodObject<{
499
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
500
+ }, "strip", z.ZodTypeAny, {
501
+ platform: "VINTED" | "SHOPIFY";
502
+ }, {
503
+ platform: "VINTED" | "SHOPIFY";
504
+ }>;
505
+ }, "strip", z.ZodTypeAny, {
506
+ type: "REPUBLISHING";
507
+ data: {
508
+ platform: "VINTED" | "SHOPIFY";
509
+ };
510
+ }, {
511
+ type: "REPUBLISHING";
512
+ data: {
513
+ platform: "VINTED" | "SHOPIFY";
514
+ };
467
515
  }>]>>>;
468
516
  createdAt: z.ZodDate;
469
517
  }, "strip", z.ZodTypeAny, {
470
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
518
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
471
519
  id: string;
472
520
  createdAt: Date;
473
521
  itemId: string | number;
@@ -491,9 +539,21 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
491
539
  soldOrderId: string;
492
540
  soldConversationId?: string | null | undefined;
493
541
  };
542
+ } | {
543
+ type: "DELIVERED";
544
+ data: {
545
+ soldAccountId: string;
546
+ soldOrderId: string;
547
+ soldConversationId?: string | null | undefined;
548
+ };
549
+ } | {
550
+ type: "REPUBLISHING";
551
+ data: {
552
+ platform: "VINTED" | "SHOPIFY";
553
+ };
494
554
  } | null | undefined;
495
555
  }, {
496
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
556
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
497
557
  id: string;
498
558
  createdAt: Date;
499
559
  itemId: string | number;
@@ -517,6 +577,18 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
517
577
  soldOrderId: string;
518
578
  soldConversationId?: string | null | undefined;
519
579
  };
580
+ } | {
581
+ type: "DELIVERED";
582
+ data: {
583
+ soldAccountId: string;
584
+ soldOrderId: string;
585
+ soldConversationId?: string | null | undefined;
586
+ };
587
+ } | {
588
+ type: "REPUBLISHING";
589
+ data: {
590
+ platform: "VINTED" | "SHOPIFY";
591
+ };
520
592
  } | null | undefined;
521
593
  }>>>;
522
594
  platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -683,7 +755,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
683
755
  fieldId: string | number;
684
756
  }[] | null | undefined;
685
757
  lastHistory?: {
686
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
758
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
687
759
  id: string;
688
760
  createdAt: Date;
689
761
  itemId: string | number;
@@ -707,6 +779,18 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
707
779
  soldOrderId: string;
708
780
  soldConversationId?: string | null | undefined;
709
781
  };
782
+ } | {
783
+ type: "DELIVERED";
784
+ data: {
785
+ soldAccountId: string;
786
+ soldOrderId: string;
787
+ soldConversationId?: string | null | undefined;
788
+ };
789
+ } | {
790
+ type: "REPUBLISHING";
791
+ data: {
792
+ platform: "VINTED" | "SHOPIFY";
793
+ };
710
794
  } | null | undefined;
711
795
  } | null | undefined;
712
796
  }, {
@@ -813,7 +897,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
813
897
  fieldId: string | number;
814
898
  }[] | null | undefined;
815
899
  lastHistory?: {
816
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
900
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
817
901
  id: string;
818
902
  createdAt: Date;
819
903
  itemId: string | number;
@@ -837,6 +921,18 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
837
921
  soldOrderId: string;
838
922
  soldConversationId?: string | null | undefined;
839
923
  };
924
+ } | {
925
+ type: "DELIVERED";
926
+ data: {
927
+ soldAccountId: string;
928
+ soldOrderId: string;
929
+ soldConversationId?: string | null | undefined;
930
+ };
931
+ } | {
932
+ type: "REPUBLISHING";
933
+ data: {
934
+ platform: "VINTED" | "SHOPIFY";
935
+ };
840
936
  } | null | undefined;
841
937
  } | null | undefined;
842
938
  }>, "many">;
@@ -945,7 +1041,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
945
1041
  fieldId: string | number;
946
1042
  }[] | null | undefined;
947
1043
  lastHistory?: {
948
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1044
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
949
1045
  id: string;
950
1046
  createdAt: Date;
951
1047
  itemId: string | number;
@@ -969,6 +1065,18 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
969
1065
  soldOrderId: string;
970
1066
  soldConversationId?: string | null | undefined;
971
1067
  };
1068
+ } | {
1069
+ type: "DELIVERED";
1070
+ data: {
1071
+ soldAccountId: string;
1072
+ soldOrderId: string;
1073
+ soldConversationId?: string | null | undefined;
1074
+ };
1075
+ } | {
1076
+ type: "REPUBLISHING";
1077
+ data: {
1078
+ platform: "VINTED" | "SHOPIFY";
1079
+ };
972
1080
  } | null | undefined;
973
1081
  } | null | undefined;
974
1082
  }[];
@@ -1106,7 +1214,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
1106
1214
  fieldId: string | number;
1107
1215
  }[] | null | undefined;
1108
1216
  lastHistory?: {
1109
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1217
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1110
1218
  id: string;
1111
1219
  createdAt: Date;
1112
1220
  itemId: string | number;
@@ -1130,6 +1238,18 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
1130
1238
  soldOrderId: string;
1131
1239
  soldConversationId?: string | null | undefined;
1132
1240
  };
1241
+ } | {
1242
+ type: "DELIVERED";
1243
+ data: {
1244
+ soldAccountId: string;
1245
+ soldOrderId: string;
1246
+ soldConversationId?: string | null | undefined;
1247
+ };
1248
+ } | {
1249
+ type: "REPUBLISHING";
1250
+ data: {
1251
+ platform: "VINTED" | "SHOPIFY";
1252
+ };
1133
1253
  } | null | undefined;
1134
1254
  } | null | undefined;
1135
1255
  }[];
@@ -220,7 +220,7 @@ export declare const PreferenceFilterSchema: z.ZodObject<{
220
220
  lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
221
221
  id: z.ZodString;
222
222
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
223
- type: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
223
+ type: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "REPUBLISHING", "REPUBLISHED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
224
224
  data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
225
225
  type: z.ZodLiteral<"EMPTY">;
226
226
  }, "strip", z.ZodTypeAny, {
@@ -299,10 +299,58 @@ export declare const PreferenceFilterSchema: z.ZodObject<{
299
299
  soldOrderId: string;
300
300
  soldConversationId?: string | null | undefined;
301
301
  };
302
+ }>, z.ZodObject<{
303
+ type: z.ZodLiteral<"DELIVERED">;
304
+ data: z.ZodObject<{
305
+ soldAccountId: z.ZodString;
306
+ soldOrderId: z.ZodString;
307
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
308
+ }, "strip", z.ZodTypeAny, {
309
+ soldAccountId: string;
310
+ soldOrderId: string;
311
+ soldConversationId?: string | null | undefined;
312
+ }, {
313
+ soldAccountId: string;
314
+ soldOrderId: string;
315
+ soldConversationId?: string | null | undefined;
316
+ }>;
317
+ }, "strip", z.ZodTypeAny, {
318
+ type: "DELIVERED";
319
+ data: {
320
+ soldAccountId: string;
321
+ soldOrderId: string;
322
+ soldConversationId?: string | null | undefined;
323
+ };
324
+ }, {
325
+ type: "DELIVERED";
326
+ data: {
327
+ soldAccountId: string;
328
+ soldOrderId: string;
329
+ soldConversationId?: string | null | undefined;
330
+ };
331
+ }>, z.ZodObject<{
332
+ type: z.ZodLiteral<"REPUBLISHING">;
333
+ data: z.ZodObject<{
334
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
335
+ }, "strip", z.ZodTypeAny, {
336
+ platform: "VINTED" | "SHOPIFY";
337
+ }, {
338
+ platform: "VINTED" | "SHOPIFY";
339
+ }>;
340
+ }, "strip", z.ZodTypeAny, {
341
+ type: "REPUBLISHING";
342
+ data: {
343
+ platform: "VINTED" | "SHOPIFY";
344
+ };
345
+ }, {
346
+ type: "REPUBLISHING";
347
+ data: {
348
+ platform: "VINTED" | "SHOPIFY";
349
+ };
302
350
  }>]>>>;
303
351
  createdAt: z.ZodDate;
304
352
  }, "strip", z.ZodTypeAny, {
305
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
353
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
306
354
  id: string;
307
355
  createdAt: Date;
308
356
  itemId: string | number;
@@ -326,9 +374,21 @@ export declare const PreferenceFilterSchema: z.ZodObject<{
326
374
  soldOrderId: string;
327
375
  soldConversationId?: string | null | undefined;
328
376
  };
377
+ } | {
378
+ type: "DELIVERED";
379
+ data: {
380
+ soldAccountId: string;
381
+ soldOrderId: string;
382
+ soldConversationId?: string | null | undefined;
383
+ };
384
+ } | {
385
+ type: "REPUBLISHING";
386
+ data: {
387
+ platform: "VINTED" | "SHOPIFY";
388
+ };
329
389
  } | null | undefined;
330
390
  }, {
331
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
391
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
332
392
  id: string;
333
393
  createdAt: Date;
334
394
  itemId: string | number;
@@ -352,6 +412,18 @@ export declare const PreferenceFilterSchema: z.ZodObject<{
352
412
  soldOrderId: string;
353
413
  soldConversationId?: string | null | undefined;
354
414
  };
415
+ } | {
416
+ type: "DELIVERED";
417
+ data: {
418
+ soldAccountId: string;
419
+ soldOrderId: string;
420
+ soldConversationId?: string | null | undefined;
421
+ };
422
+ } | {
423
+ type: "REPUBLISHING";
424
+ data: {
425
+ platform: "VINTED" | "SHOPIFY";
426
+ };
355
427
  } | null | undefined;
356
428
  }>>>;
357
429
  platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -518,7 +590,7 @@ export declare const PreferenceFilterSchema: z.ZodObject<{
518
590
  fieldId: string | number;
519
591
  }[] | null | undefined;
520
592
  lastHistory?: {
521
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
593
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
522
594
  id: string;
523
595
  createdAt: Date;
524
596
  itemId: string | number;
@@ -542,6 +614,18 @@ export declare const PreferenceFilterSchema: z.ZodObject<{
542
614
  soldOrderId: string;
543
615
  soldConversationId?: string | null | undefined;
544
616
  };
617
+ } | {
618
+ type: "DELIVERED";
619
+ data: {
620
+ soldAccountId: string;
621
+ soldOrderId: string;
622
+ soldConversationId?: string | null | undefined;
623
+ };
624
+ } | {
625
+ type: "REPUBLISHING";
626
+ data: {
627
+ platform: "VINTED" | "SHOPIFY";
628
+ };
545
629
  } | null | undefined;
546
630
  } | null | undefined;
547
631
  }, {
@@ -648,7 +732,7 @@ export declare const PreferenceFilterSchema: z.ZodObject<{
648
732
  fieldId: string | number;
649
733
  }[] | null | undefined;
650
734
  lastHistory?: {
651
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
735
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
652
736
  id: string;
653
737
  createdAt: Date;
654
738
  itemId: string | number;
@@ -672,6 +756,18 @@ export declare const PreferenceFilterSchema: z.ZodObject<{
672
756
  soldOrderId: string;
673
757
  soldConversationId?: string | null | undefined;
674
758
  };
759
+ } | {
760
+ type: "DELIVERED";
761
+ data: {
762
+ soldAccountId: string;
763
+ soldOrderId: string;
764
+ soldConversationId?: string | null | undefined;
765
+ };
766
+ } | {
767
+ type: "REPUBLISHING";
768
+ data: {
769
+ platform: "VINTED" | "SHOPIFY";
770
+ };
675
771
  } | null | undefined;
676
772
  } | null | undefined;
677
773
  }>, "many">>>;
@@ -799,7 +895,7 @@ export declare const PreferenceFilterSchema: z.ZodObject<{
799
895
  fieldId: string | number;
800
896
  }[] | null | undefined;
801
897
  lastHistory?: {
802
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
898
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
803
899
  id: string;
804
900
  createdAt: Date;
805
901
  itemId: string | number;
@@ -823,6 +919,18 @@ export declare const PreferenceFilterSchema: z.ZodObject<{
823
919
  soldOrderId: string;
824
920
  soldConversationId?: string | null | undefined;
825
921
  };
922
+ } | {
923
+ type: "DELIVERED";
924
+ data: {
925
+ soldAccountId: string;
926
+ soldOrderId: string;
927
+ soldConversationId?: string | null | undefined;
928
+ };
929
+ } | {
930
+ type: "REPUBLISHING";
931
+ data: {
932
+ platform: "VINTED" | "SHOPIFY";
933
+ };
826
934
  } | null | undefined;
827
935
  } | null | undefined;
828
936
  }[] | null | undefined;
@@ -938,7 +1046,7 @@ export declare const PreferenceFilterSchema: z.ZodObject<{
938
1046
  fieldId: string | number;
939
1047
  }[] | null | undefined;
940
1048
  lastHistory?: {
941
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1049
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
942
1050
  id: string;
943
1051
  createdAt: Date;
944
1052
  itemId: string | number;
@@ -962,6 +1070,18 @@ export declare const PreferenceFilterSchema: z.ZodObject<{
962
1070
  soldOrderId: string;
963
1071
  soldConversationId?: string | null | undefined;
964
1072
  };
1073
+ } | {
1074
+ type: "DELIVERED";
1075
+ data: {
1076
+ soldAccountId: string;
1077
+ soldOrderId: string;
1078
+ soldConversationId?: string | null | undefined;
1079
+ };
1080
+ } | {
1081
+ type: "REPUBLISHING";
1082
+ data: {
1083
+ platform: "VINTED" | "SHOPIFY";
1084
+ };
965
1085
  } | null | undefined;
966
1086
  } | null | undefined;
967
1087
  }[] | null | undefined;