controlresell 2.2.6 → 2.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) 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/items/platforms/PriceDropRequest.d.ts +42 -0
  25. package/src/com/controlresell/models/items/platforms/PriceDropRequest.js +9 -0
  26. package/src/com/controlresell/models/items/platforms/PriceDropRequest.ts +8 -0
  27. package/src/com/controlresell/models/items/platforms/RepublishRequest.d.ts +82 -0
  28. package/src/com/controlresell/models/items/platforms/RepublishRequest.js +9 -0
  29. package/src/com/controlresell/models/items/platforms/RepublishRequest.ts +8 -0
  30. package/src/com/controlresell/models/platforms/favorites/CreateFavoritePayload.d.ts +15 -0
  31. package/src/com/controlresell/models/platforms/favorites/CreateFavoritePayload.js +9 -0
  32. package/src/com/controlresell/models/platforms/favorites/CreateFavoritePayload.ts +8 -0
  33. package/src/com/controlresell/models/platforms/favorites/Favorite.d.ts +559 -0
  34. package/src/com/controlresell/models/platforms/favorites/Favorite.js +15 -0
  35. package/src/com/controlresell/models/platforms/favorites/Favorite.ts +14 -0
  36. package/src/com/controlresell/models/platforms/favorites/FavoriteOnPlatformUpdateRequest.d.ts +52 -0
  37. package/src/com/controlresell/models/platforms/favorites/FavoriteOnPlatformUpdateRequest.js +10 -0
  38. package/src/com/controlresell/models/platforms/favorites/FavoriteOnPlatformUpdateRequest.ts +9 -0
  39. package/src/com/controlresell/models/platforms/favorites/UpdateFavoritePayload.d.ts +12 -0
  40. package/src/com/controlresell/models/platforms/favorites/UpdateFavoritePayload.js +8 -0
  41. package/src/com/controlresell/models/platforms/favorites/UpdateFavoritePayload.ts +7 -0
  42. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +205 -7
  43. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +205 -7
  44. package/src/com/controlresell/models/preferences/CreatePreferencePayload.d.ts +3 -3
  45. package/src/com/controlresell/models/preferences/Preference.d.ts +29 -299
  46. package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +205 -7
  47. package/src/com/controlresell/models/preferences/PreferenceType.d.ts +1 -1
  48. package/src/com/controlresell/models/preferences/PreferenceType.js +1 -1
  49. package/src/com/controlresell/models/preferences/PreferenceType.ts +1 -1
  50. package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts +83 -893
  51. package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts +22 -260
  52. package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts +22 -260
  53. package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +22 -260
  54. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +6 -116
  55. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.js +2 -1
  56. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.ts +2 -1
  57. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.d.ts +0 -79
  58. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.js +0 -5
  59. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.ts +0 -5
  60. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadType.d.ts +1 -1
  61. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadType.js +1 -1
  62. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadType.ts +1 -1
  63. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +10 -152
  64. package/src/com/controlresell/models/preferences/payloads/vision/TryVisionPayload.d.ts +82 -0
  65. package/src/com/controlresell/models/preferences/payloads/vision/TryVisionPayload.js +9 -0
  66. package/src/com/controlresell/models/preferences/payloads/vision/TryVisionPayload.ts +8 -0
  67. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +213 -0
  68. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.js +13 -0
  69. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.ts +12 -0
  70. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayloadType.d.ts +3 -0
  71. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayloadType.js +7 -0
  72. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayloadType.ts +6 -0
  73. package/src/com/controlresell/models/preferences/variables/PreferenceVariable.d.ts +3 -3
  74. package/src/com/controlresell/models/preferences/variables/PreferenceVariableName.d.ts +1 -1
  75. package/src/com/controlresell/models/preferences/variables/PreferenceVariableName.js +1 -1
  76. package/src/com/controlresell/models/preferences/variables/PreferenceVariableName.ts +1 -1
  77. package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +18 -224
  78. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts +18 -224
  79. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts +14 -188
  80. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +18 -224
  81. package/src/index.d.ts +12 -3
  82. package/src/index.js +27 -9
  83. package/src/index.ts +12 -3
  84. package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.d.ts +0 -36
  85. package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.js +0 -17
  86. package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.ts +0 -16
  87. package/src/com/controlresell/models/platforms/preferences/PlatformPreference.d.ts +0 -42
  88. package/src/com/controlresell/models/platforms/preferences/PlatformPreference.js +0 -20
  89. package/src/com/controlresell/models/platforms/preferences/PlatformPreference.ts +0 -19
  90. package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.d.ts +0 -30
  91. package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.js +0 -14
  92. 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: {
@@ -1,16 +1,16 @@
1
1
  import { z } from "zod";
2
2
  export declare const CreatePreferencePayloadSchema: z.ZodObject<{
3
3
  parentPreferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
- type: z.ZodEnum<["NEGOTIATION", "VISION", "TITLE", "DESCRIPTION", "LIFECYCLE", "FEES", "MESSAGES_QUESTIONS", "MESSAGES_STREAM", "MESSAGES_STREAM__ON_FAVORITE", "MESSAGES_STREAM__ON_FAVORITES", "MESSAGES_STREAM__ON_LOW_OFFER", "MESSAGES_STREAM__ON_CORRECT_OFFER", "MESSAGES_STREAM__ON_OFFER_REJECTED", "MESSAGES_STREAM__ON_NO_ANSWER", "MESSAGES_STREAM__ON_BUYER_PAID", "MESSAGES_STREAM__ON_ITEM_DELIVERED", "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE"]>;
4
+ type: z.ZodEnum<["NEGOTIATION", "REPUBLISH", "VISION", "TITLE", "DESCRIPTION", "LIFECYCLE", "FEES", "MESSAGES_QUESTIONS", "MESSAGES_STREAM", "MESSAGES_STREAM__ON_FAVORITE", "MESSAGES_STREAM__ON_FAVORITES", "MESSAGES_STREAM__ON_LOW_OFFER", "MESSAGES_STREAM__ON_CORRECT_OFFER", "MESSAGES_STREAM__ON_OFFER_REJECTED", "MESSAGES_STREAM__ON_NO_ANSWER", "MESSAGES_STREAM__ON_BUYER_PAID", "MESSAGES_STREAM__ON_ITEM_DELIVERED", "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE"]>;
5
5
  enabled: z.ZodBoolean;
6
6
  testMode: z.ZodBoolean;
7
7
  }, "strip", z.ZodTypeAny, {
8
- type: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE";
8
+ type: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE";
9
9
  enabled: boolean;
10
10
  testMode: boolean;
11
11
  parentPreferenceId?: string | null | undefined;
12
12
  }, {
13
- type: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE";
13
+ type: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE";
14
14
  enabled: boolean;
15
15
  testMode: boolean;
16
16
  parentPreferenceId?: string | null | undefined;