controlresell 2.2.6 → 2.2.7

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 (74) hide show
  1. package/package.json +2 -2
  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/items/CreatedItems.d.ts +205 -7
  6. package/src/com/controlresell/models/items/Item.d.ts +163 -5
  7. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +205 -7
  8. package/src/com/controlresell/models/items/UpdatedItem.d.ts +205 -7
  9. package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +121 -3
  10. package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.js +2 -1
  11. package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.ts +2 -1
  12. package/src/com/controlresell/models/items/history/ItemHistory.d.ts +121 -3
  13. package/src/com/controlresell/models/items/history/ItemHistory.js +2 -1
  14. package/src/com/controlresell/models/items/history/ItemHistory.ts +2 -1
  15. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.d.ts +81 -0
  16. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.js +24 -0
  17. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.ts +24 -0
  18. package/src/com/controlresell/models/items/history/data/ItemHistoryBuyerPaidPayload.d.ts +15 -0
  19. package/src/com/controlresell/models/items/history/data/ItemHistoryBuyerPaidPayload.js +9 -0
  20. package/src/com/controlresell/models/items/history/data/ItemHistoryBuyerPaidPayload.ts +8 -0
  21. package/src/com/controlresell/models/items/history/data/ItemHistoryDeliveredPayload.d.ts +15 -0
  22. package/src/com/controlresell/models/items/history/data/ItemHistoryDeliveredPayload.js +9 -0
  23. package/src/com/controlresell/models/items/history/data/ItemHistoryDeliveredPayload.ts +8 -0
  24. package/src/com/controlresell/models/platforms/favorites/CreateFavoritePayload.d.ts +15 -0
  25. package/src/com/controlresell/models/platforms/favorites/CreateFavoritePayload.js +9 -0
  26. package/src/com/controlresell/models/platforms/favorites/CreateFavoritePayload.ts +8 -0
  27. package/src/com/controlresell/models/platforms/favorites/Favorite.d.ts +559 -0
  28. package/src/com/controlresell/models/platforms/favorites/Favorite.js +15 -0
  29. package/src/com/controlresell/models/platforms/favorites/Favorite.ts +14 -0
  30. package/src/com/controlresell/models/platforms/favorites/FavoriteOnPlatformUpdateRequest.d.ts +52 -0
  31. package/src/com/controlresell/models/platforms/favorites/FavoriteOnPlatformUpdateRequest.js +10 -0
  32. package/src/com/controlresell/models/platforms/favorites/FavoriteOnPlatformUpdateRequest.ts +9 -0
  33. package/src/com/controlresell/models/platforms/favorites/UpdateFavoritePayload.d.ts +12 -0
  34. package/src/com/controlresell/models/platforms/favorites/UpdateFavoritePayload.js +8 -0
  35. package/src/com/controlresell/models/platforms/favorites/UpdateFavoritePayload.ts +7 -0
  36. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +205 -7
  37. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +205 -7
  38. package/src/com/controlresell/models/preferences/Preference.d.ts +13 -13
  39. package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +205 -7
  40. package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts +39 -39
  41. package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts +11 -11
  42. package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts +11 -11
  43. package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +11 -11
  44. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +3 -3
  45. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadType.d.ts +1 -1
  46. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadType.js +1 -1
  47. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadType.ts +1 -1
  48. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +5 -5
  49. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +355 -0
  50. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.js +13 -0
  51. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.ts +12 -0
  52. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayloadType.d.ts +3 -0
  53. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayloadType.js +7 -0
  54. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayloadType.ts +6 -0
  55. package/src/com/controlresell/models/preferences/variables/PreferenceVariable.d.ts +3 -3
  56. package/src/com/controlresell/models/preferences/variables/PreferenceVariableName.d.ts +1 -1
  57. package/src/com/controlresell/models/preferences/variables/PreferenceVariableName.js +1 -1
  58. package/src/com/controlresell/models/preferences/variables/PreferenceVariableName.ts +1 -1
  59. package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +9 -9
  60. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts +9 -9
  61. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts +7 -7
  62. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +9 -9
  63. package/src/index.d.ts +9 -3
  64. package/src/index.js +21 -9
  65. package/src/index.ts +9 -3
  66. package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.d.ts +0 -36
  67. package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.js +0 -17
  68. package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.ts +0 -16
  69. package/src/com/controlresell/models/platforms/preferences/PlatformPreference.d.ts +0 -42
  70. package/src/com/controlresell/models/platforms/preferences/PlatformPreference.js +0 -20
  71. package/src/com/controlresell/models/platforms/preferences/PlatformPreference.ts +0 -19
  72. package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.d.ts +0 -30
  73. package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.js +0 -14
  74. package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.ts +0 -13
@@ -0,0 +1,7 @@
1
+ import {z} from "zod"
2
+
3
+ export const UpdateFavoritePayloadSchema = z.object({
4
+ conversationId: z.string().uuid().nullish(),
5
+ updatedAt: z.coerce.date()
6
+ })
7
+ export type UpdateFavoritePayload = z.infer<typeof UpdateFavoritePayloadSchema>
@@ -511,20 +511,138 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
511
511
  id: z.ZodString;
512
512
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
513
513
  type: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
514
- data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
514
+ data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
515
+ type: z.ZodLiteral<"EMPTY">;
516
+ }, "strip", z.ZodTypeAny, {
517
+ type: "EMPTY";
518
+ }, {
519
+ type: "EMPTY";
520
+ }>, z.ZodObject<{
521
+ type: z.ZodLiteral<"SCHEDULED">;
522
+ data: z.ZodObject<{
523
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
524
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
525
+ }, "strip", z.ZodTypeAny, {
526
+ platform: "VINTED" | "SHOPIFY";
527
+ publishingDate?: Date | null | undefined;
528
+ }, {
529
+ platform: "VINTED" | "SHOPIFY";
530
+ publishingDate?: Date | null | undefined;
531
+ }>;
532
+ }, "strip", z.ZodTypeAny, {
533
+ type: "SCHEDULED";
534
+ data: {
535
+ platform: "VINTED" | "SHOPIFY";
536
+ publishingDate?: Date | null | undefined;
537
+ };
538
+ }, {
539
+ type: "SCHEDULED";
540
+ data: {
541
+ platform: "VINTED" | "SHOPIFY";
542
+ publishingDate?: Date | null | undefined;
543
+ };
544
+ }>, z.ZodObject<{
545
+ type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
546
+ data: z.ZodObject<{
547
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
548
+ }, "strip", z.ZodTypeAny, {
549
+ platform: "VINTED" | "SHOPIFY";
550
+ }, {
551
+ platform: "VINTED" | "SHOPIFY";
552
+ }>;
553
+ }, "strip", z.ZodTypeAny, {
554
+ type: "FAILED_TO_PUBLISH";
555
+ data: {
556
+ platform: "VINTED" | "SHOPIFY";
557
+ };
558
+ }, {
559
+ type: "FAILED_TO_PUBLISH";
560
+ data: {
561
+ platform: "VINTED" | "SHOPIFY";
562
+ };
563
+ }>, z.ZodObject<{
564
+ type: z.ZodLiteral<"BUYER_PAID">;
565
+ data: z.ZodObject<{
566
+ soldAccountId: z.ZodString;
567
+ soldOrderId: z.ZodString;
568
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
569
+ }, "strip", z.ZodTypeAny, {
570
+ soldAccountId: string;
571
+ soldOrderId: string;
572
+ soldConversationId?: string | null | undefined;
573
+ }, {
574
+ soldAccountId: string;
575
+ soldOrderId: string;
576
+ soldConversationId?: string | null | undefined;
577
+ }>;
578
+ }, "strip", z.ZodTypeAny, {
579
+ type: "BUYER_PAID";
580
+ data: {
581
+ soldAccountId: string;
582
+ soldOrderId: string;
583
+ soldConversationId?: string | null | undefined;
584
+ };
585
+ }, {
586
+ type: "BUYER_PAID";
587
+ data: {
588
+ soldAccountId: string;
589
+ soldOrderId: string;
590
+ soldConversationId?: string | null | undefined;
591
+ };
592
+ }>]>>>;
515
593
  createdAt: z.ZodDate;
516
594
  }, "strip", z.ZodTypeAny, {
517
595
  type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
518
596
  id: string;
519
597
  createdAt: Date;
520
598
  itemId: string | number;
521
- data?: string | null | undefined;
599
+ data?: {
600
+ type: "EMPTY";
601
+ } | {
602
+ type: "SCHEDULED";
603
+ data: {
604
+ platform: "VINTED" | "SHOPIFY";
605
+ publishingDate?: Date | null | undefined;
606
+ };
607
+ } | {
608
+ type: "FAILED_TO_PUBLISH";
609
+ data: {
610
+ platform: "VINTED" | "SHOPIFY";
611
+ };
612
+ } | {
613
+ type: "BUYER_PAID";
614
+ data: {
615
+ soldAccountId: string;
616
+ soldOrderId: string;
617
+ soldConversationId?: string | null | undefined;
618
+ };
619
+ } | null | undefined;
522
620
  }, {
523
621
  type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
524
622
  id: string;
525
623
  createdAt: Date;
526
624
  itemId: string | number;
527
- data?: string | null | undefined;
625
+ data?: {
626
+ type: "EMPTY";
627
+ } | {
628
+ type: "SCHEDULED";
629
+ data: {
630
+ platform: "VINTED" | "SHOPIFY";
631
+ publishingDate?: Date | null | undefined;
632
+ };
633
+ } | {
634
+ type: "FAILED_TO_PUBLISH";
635
+ data: {
636
+ platform: "VINTED" | "SHOPIFY";
637
+ };
638
+ } | {
639
+ type: "BUYER_PAID";
640
+ data: {
641
+ soldAccountId: string;
642
+ soldOrderId: string;
643
+ soldConversationId?: string | null | undefined;
644
+ };
645
+ } | null | undefined;
528
646
  }>>>;
529
647
  platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
530
648
  id: z.ZodString;
@@ -694,7 +812,27 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
694
812
  id: string;
695
813
  createdAt: Date;
696
814
  itemId: string | number;
697
- data?: string | null | undefined;
815
+ data?: {
816
+ type: "EMPTY";
817
+ } | {
818
+ type: "SCHEDULED";
819
+ data: {
820
+ platform: "VINTED" | "SHOPIFY";
821
+ publishingDate?: Date | null | undefined;
822
+ };
823
+ } | {
824
+ type: "FAILED_TO_PUBLISH";
825
+ data: {
826
+ platform: "VINTED" | "SHOPIFY";
827
+ };
828
+ } | {
829
+ type: "BUYER_PAID";
830
+ data: {
831
+ soldAccountId: string;
832
+ soldOrderId: string;
833
+ soldConversationId?: string | null | undefined;
834
+ };
835
+ } | null | undefined;
698
836
  } | null | undefined;
699
837
  }, {
700
838
  id: string | number;
@@ -804,7 +942,27 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
804
942
  id: string;
805
943
  createdAt: Date;
806
944
  itemId: string | number;
807
- data?: string | null | undefined;
945
+ data?: {
946
+ type: "EMPTY";
947
+ } | {
948
+ type: "SCHEDULED";
949
+ data: {
950
+ platform: "VINTED" | "SHOPIFY";
951
+ publishingDate?: Date | null | undefined;
952
+ };
953
+ } | {
954
+ type: "FAILED_TO_PUBLISH";
955
+ data: {
956
+ platform: "VINTED" | "SHOPIFY";
957
+ };
958
+ } | {
959
+ type: "BUYER_PAID";
960
+ data: {
961
+ soldAccountId: string;
962
+ soldOrderId: string;
963
+ soldConversationId?: string | null | undefined;
964
+ };
965
+ } | null | undefined;
808
966
  } | null | undefined;
809
967
  }>, "many">;
810
968
  }, "strip", z.ZodTypeAny, {
@@ -916,7 +1074,27 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
916
1074
  id: string;
917
1075
  createdAt: Date;
918
1076
  itemId: string | number;
919
- data?: string | null | undefined;
1077
+ data?: {
1078
+ type: "EMPTY";
1079
+ } | {
1080
+ type: "SCHEDULED";
1081
+ data: {
1082
+ platform: "VINTED" | "SHOPIFY";
1083
+ publishingDate?: Date | null | undefined;
1084
+ };
1085
+ } | {
1086
+ type: "FAILED_TO_PUBLISH";
1087
+ data: {
1088
+ platform: "VINTED" | "SHOPIFY";
1089
+ };
1090
+ } | {
1091
+ type: "BUYER_PAID";
1092
+ data: {
1093
+ soldAccountId: string;
1094
+ soldOrderId: string;
1095
+ soldConversationId?: string | null | undefined;
1096
+ };
1097
+ } | null | undefined;
920
1098
  } | null | undefined;
921
1099
  }[];
922
1100
  order: {
@@ -1078,7 +1256,27 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1078
1256
  id: string;
1079
1257
  createdAt: Date;
1080
1258
  itemId: string | number;
1081
- data?: string | null | undefined;
1259
+ data?: {
1260
+ type: "EMPTY";
1261
+ } | {
1262
+ type: "SCHEDULED";
1263
+ data: {
1264
+ platform: "VINTED" | "SHOPIFY";
1265
+ publishingDate?: Date | null | undefined;
1266
+ };
1267
+ } | {
1268
+ type: "FAILED_TO_PUBLISH";
1269
+ data: {
1270
+ platform: "VINTED" | "SHOPIFY";
1271
+ };
1272
+ } | {
1273
+ type: "BUYER_PAID";
1274
+ data: {
1275
+ soldAccountId: string;
1276
+ soldOrderId: string;
1277
+ soldConversationId?: string | null | undefined;
1278
+ };
1279
+ } | null | undefined;
1082
1280
  } | null | undefined;
1083
1281
  }[];
1084
1282
  order: {
@@ -386,20 +386,138 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
386
386
  id: z.ZodString;
387
387
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
388
388
  type: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
389
- data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
389
+ data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
390
+ type: z.ZodLiteral<"EMPTY">;
391
+ }, "strip", z.ZodTypeAny, {
392
+ type: "EMPTY";
393
+ }, {
394
+ type: "EMPTY";
395
+ }>, z.ZodObject<{
396
+ type: z.ZodLiteral<"SCHEDULED">;
397
+ data: z.ZodObject<{
398
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
399
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
400
+ }, "strip", z.ZodTypeAny, {
401
+ platform: "VINTED" | "SHOPIFY";
402
+ publishingDate?: Date | null | undefined;
403
+ }, {
404
+ platform: "VINTED" | "SHOPIFY";
405
+ publishingDate?: Date | null | undefined;
406
+ }>;
407
+ }, "strip", z.ZodTypeAny, {
408
+ type: "SCHEDULED";
409
+ data: {
410
+ platform: "VINTED" | "SHOPIFY";
411
+ publishingDate?: Date | null | undefined;
412
+ };
413
+ }, {
414
+ type: "SCHEDULED";
415
+ data: {
416
+ platform: "VINTED" | "SHOPIFY";
417
+ publishingDate?: Date | null | undefined;
418
+ };
419
+ }>, z.ZodObject<{
420
+ type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
421
+ data: z.ZodObject<{
422
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
423
+ }, "strip", z.ZodTypeAny, {
424
+ platform: "VINTED" | "SHOPIFY";
425
+ }, {
426
+ platform: "VINTED" | "SHOPIFY";
427
+ }>;
428
+ }, "strip", z.ZodTypeAny, {
429
+ type: "FAILED_TO_PUBLISH";
430
+ data: {
431
+ platform: "VINTED" | "SHOPIFY";
432
+ };
433
+ }, {
434
+ type: "FAILED_TO_PUBLISH";
435
+ data: {
436
+ platform: "VINTED" | "SHOPIFY";
437
+ };
438
+ }>, z.ZodObject<{
439
+ type: z.ZodLiteral<"BUYER_PAID">;
440
+ data: z.ZodObject<{
441
+ soldAccountId: z.ZodString;
442
+ soldOrderId: z.ZodString;
443
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
444
+ }, "strip", z.ZodTypeAny, {
445
+ soldAccountId: string;
446
+ soldOrderId: string;
447
+ soldConversationId?: string | null | undefined;
448
+ }, {
449
+ soldAccountId: string;
450
+ soldOrderId: string;
451
+ soldConversationId?: string | null | undefined;
452
+ }>;
453
+ }, "strip", z.ZodTypeAny, {
454
+ type: "BUYER_PAID";
455
+ data: {
456
+ soldAccountId: string;
457
+ soldOrderId: string;
458
+ soldConversationId?: string | null | undefined;
459
+ };
460
+ }, {
461
+ type: "BUYER_PAID";
462
+ data: {
463
+ soldAccountId: string;
464
+ soldOrderId: string;
465
+ soldConversationId?: string | null | undefined;
466
+ };
467
+ }>]>>>;
390
468
  createdAt: z.ZodDate;
391
469
  }, "strip", z.ZodTypeAny, {
392
470
  type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
393
471
  id: string;
394
472
  createdAt: Date;
395
473
  itemId: string | number;
396
- data?: string | null | undefined;
474
+ data?: {
475
+ type: "EMPTY";
476
+ } | {
477
+ type: "SCHEDULED";
478
+ data: {
479
+ platform: "VINTED" | "SHOPIFY";
480
+ publishingDate?: Date | null | undefined;
481
+ };
482
+ } | {
483
+ type: "FAILED_TO_PUBLISH";
484
+ data: {
485
+ platform: "VINTED" | "SHOPIFY";
486
+ };
487
+ } | {
488
+ type: "BUYER_PAID";
489
+ data: {
490
+ soldAccountId: string;
491
+ soldOrderId: string;
492
+ soldConversationId?: string | null | undefined;
493
+ };
494
+ } | null | undefined;
397
495
  }, {
398
496
  type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
399
497
  id: string;
400
498
  createdAt: Date;
401
499
  itemId: string | number;
402
- data?: string | null | undefined;
500
+ data?: {
501
+ type: "EMPTY";
502
+ } | {
503
+ type: "SCHEDULED";
504
+ data: {
505
+ platform: "VINTED" | "SHOPIFY";
506
+ publishingDate?: Date | null | undefined;
507
+ };
508
+ } | {
509
+ type: "FAILED_TO_PUBLISH";
510
+ data: {
511
+ platform: "VINTED" | "SHOPIFY";
512
+ };
513
+ } | {
514
+ type: "BUYER_PAID";
515
+ data: {
516
+ soldAccountId: string;
517
+ soldOrderId: string;
518
+ soldConversationId?: string | null | undefined;
519
+ };
520
+ } | null | undefined;
403
521
  }>>>;
404
522
  platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
405
523
  id: z.ZodString;
@@ -569,7 +687,27 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
569
687
  id: string;
570
688
  createdAt: Date;
571
689
  itemId: string | number;
572
- data?: string | null | undefined;
690
+ data?: {
691
+ type: "EMPTY";
692
+ } | {
693
+ type: "SCHEDULED";
694
+ data: {
695
+ platform: "VINTED" | "SHOPIFY";
696
+ publishingDate?: Date | null | undefined;
697
+ };
698
+ } | {
699
+ type: "FAILED_TO_PUBLISH";
700
+ data: {
701
+ platform: "VINTED" | "SHOPIFY";
702
+ };
703
+ } | {
704
+ type: "BUYER_PAID";
705
+ data: {
706
+ soldAccountId: string;
707
+ soldOrderId: string;
708
+ soldConversationId?: string | null | undefined;
709
+ };
710
+ } | null | undefined;
573
711
  } | null | undefined;
574
712
  }, {
575
713
  id: string | number;
@@ -679,7 +817,27 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
679
817
  id: string;
680
818
  createdAt: Date;
681
819
  itemId: string | number;
682
- data?: string | null | undefined;
820
+ data?: {
821
+ type: "EMPTY";
822
+ } | {
823
+ type: "SCHEDULED";
824
+ data: {
825
+ platform: "VINTED" | "SHOPIFY";
826
+ publishingDate?: Date | null | undefined;
827
+ };
828
+ } | {
829
+ type: "FAILED_TO_PUBLISH";
830
+ data: {
831
+ platform: "VINTED" | "SHOPIFY";
832
+ };
833
+ } | {
834
+ type: "BUYER_PAID";
835
+ data: {
836
+ soldAccountId: string;
837
+ soldOrderId: string;
838
+ soldConversationId?: string | null | undefined;
839
+ };
840
+ } | null | undefined;
683
841
  } | null | undefined;
684
842
  }>, "many">;
685
843
  }, "strip", z.ZodTypeAny, {
@@ -791,7 +949,27 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
791
949
  id: string;
792
950
  createdAt: Date;
793
951
  itemId: string | number;
794
- data?: string | null | undefined;
952
+ data?: {
953
+ type: "EMPTY";
954
+ } | {
955
+ type: "SCHEDULED";
956
+ data: {
957
+ platform: "VINTED" | "SHOPIFY";
958
+ publishingDate?: Date | null | undefined;
959
+ };
960
+ } | {
961
+ type: "FAILED_TO_PUBLISH";
962
+ data: {
963
+ platform: "VINTED" | "SHOPIFY";
964
+ };
965
+ } | {
966
+ type: "BUYER_PAID";
967
+ data: {
968
+ soldAccountId: string;
969
+ soldOrderId: string;
970
+ soldConversationId?: string | null | undefined;
971
+ };
972
+ } | null | undefined;
795
973
  } | null | undefined;
796
974
  }[];
797
975
  transaction: {
@@ -932,7 +1110,27 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
932
1110
  id: string;
933
1111
  createdAt: Date;
934
1112
  itemId: string | number;
935
- data?: string | null | undefined;
1113
+ data?: {
1114
+ type: "EMPTY";
1115
+ } | {
1116
+ type: "SCHEDULED";
1117
+ data: {
1118
+ platform: "VINTED" | "SHOPIFY";
1119
+ publishingDate?: Date | null | undefined;
1120
+ };
1121
+ } | {
1122
+ type: "FAILED_TO_PUBLISH";
1123
+ data: {
1124
+ platform: "VINTED" | "SHOPIFY";
1125
+ };
1126
+ } | {
1127
+ type: "BUYER_PAID";
1128
+ data: {
1129
+ soldAccountId: string;
1130
+ soldOrderId: string;
1131
+ soldConversationId?: string | null | undefined;
1132
+ };
1133
+ } | null | undefined;
936
1134
  } | null | undefined;
937
1135
  }[];
938
1136
  transaction: {
@@ -165,7 +165,7 @@ export declare const PreferenceSchema: z.ZodObject<{
165
165
  type: z.ZodLiteral<"ACTIONS">;
166
166
  data: z.ZodObject<{
167
167
  actions: z.ZodArray<z.ZodObject<{
168
- type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO"]>;
168
+ type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO", "OFFER_MANUAL"]>;
169
169
  enabled: z.ZodBoolean;
170
170
  payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
171
171
  type: z.ZodLiteral<"EMPTY">;
@@ -331,7 +331,7 @@ export declare const PreferenceSchema: z.ZodObject<{
331
331
  };
332
332
  }>]>;
333
333
  }, "strip", z.ZodTypeAny, {
334
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
334
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
335
335
  payload: {
336
336
  type: "EMPTY";
337
337
  } | {
@@ -373,7 +373,7 @@ export declare const PreferenceSchema: z.ZodObject<{
373
373
  };
374
374
  enabled: boolean;
375
375
  }, {
376
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
376
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
377
377
  payload: {
378
378
  type: "EMPTY";
379
379
  } | {
@@ -417,7 +417,7 @@ export declare const PreferenceSchema: z.ZodObject<{
417
417
  }>, "many">;
418
418
  }, "strip", z.ZodTypeAny, {
419
419
  actions: {
420
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
420
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
421
421
  payload: {
422
422
  type: "EMPTY";
423
423
  } | {
@@ -461,7 +461,7 @@ export declare const PreferenceSchema: z.ZodObject<{
461
461
  }[];
462
462
  }, {
463
463
  actions: {
464
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
464
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
465
465
  payload: {
466
466
  type: "EMPTY";
467
467
  } | {
@@ -508,7 +508,7 @@ export declare const PreferenceSchema: z.ZodObject<{
508
508
  type: "ACTIONS";
509
509
  data: {
510
510
  actions: {
511
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
511
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
512
512
  payload: {
513
513
  type: "EMPTY";
514
514
  } | {
@@ -555,7 +555,7 @@ export declare const PreferenceSchema: z.ZodObject<{
555
555
  type: "ACTIONS";
556
556
  data: {
557
557
  actions: {
558
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
558
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
559
559
  payload: {
560
560
  type: "EMPTY";
561
561
  } | {
@@ -679,7 +679,7 @@ export declare const PreferenceSchema: z.ZodObject<{
679
679
  type: "ACTIONS";
680
680
  data: {
681
681
  actions: {
682
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
682
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
683
683
  payload: {
684
684
  type: "EMPTY";
685
685
  } | {
@@ -773,7 +773,7 @@ export declare const PreferenceSchema: z.ZodObject<{
773
773
  type: "ACTIONS";
774
774
  data: {
775
775
  actions: {
776
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
776
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
777
777
  payload: {
778
778
  type: "EMPTY";
779
779
  } | {
@@ -875,7 +875,7 @@ export declare const PreferenceSchema: z.ZodObject<{
875
875
  type: "ACTIONS";
876
876
  data: {
877
877
  actions: {
878
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
878
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
879
879
  payload: {
880
880
  type: "EMPTY";
881
881
  } | {
@@ -977,7 +977,7 @@ export declare const PreferenceSchema: z.ZodObject<{
977
977
  type: "ACTIONS";
978
978
  data: {
979
979
  actions: {
980
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
980
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
981
981
  payload: {
982
982
  type: "EMPTY";
983
983
  } | {
@@ -1087,7 +1087,7 @@ export declare const PreferenceSchema: z.ZodObject<{
1087
1087
  type: "ACTIONS";
1088
1088
  data: {
1089
1089
  actions: {
1090
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
1090
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
1091
1091
  payload: {
1092
1092
  type: "EMPTY";
1093
1093
  } | {
@@ -1197,7 +1197,7 @@ export declare const PreferenceSchema: z.ZodObject<{
1197
1197
  type: "ACTIONS";
1198
1198
  data: {
1199
1199
  actions: {
1200
- type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
1200
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO" | "OFFER_MANUAL";
1201
1201
  payload: {
1202
1202
  type: "EMPTY";
1203
1203
  } | {