controlresell 2.9.6 → 2.9.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 (60) hide show
  1. package/package.json +1 -1
  2. package/src/com/controlresell/api/responses/items/ItemAction.d.ts +1 -1
  3. package/src/com/controlresell/api/responses/items/ItemAction.d.ts.map +1 -1
  4. package/src/com/controlresell/api/responses/items/ItemAction.js +1 -1
  5. package/src/com/controlresell/api/responses/items/ItemAction.js.map +1 -1
  6. package/src/com/controlresell/api/responses/items/ItemAction.ts +1 -1
  7. package/src/com/controlresell/api/responses/items/ItemActions.d.ts +3 -3
  8. package/src/com/controlresell/api/responses/items/ItemsWithFilters.d.ts +439 -7
  9. package/src/com/controlresell/api/responses/items/ItemsWithFilters.d.ts.map +1 -1
  10. package/src/com/controlresell/api/responses/items/ListedItem.d.ts +365 -5
  11. package/src/com/controlresell/api/responses/items/ListedItem.d.ts.map +1 -1
  12. package/src/com/controlresell/inbox/models/transactions/items/TransactionWithItems.d.ts +864 -0
  13. package/src/com/controlresell/inbox/models/transactions/items/TransactionWithItems.d.ts.map +1 -1
  14. package/src/com/controlresell/inventory/models/items/CreatedItems.d.ts +864 -0
  15. package/src/com/controlresell/inventory/models/items/CreatedItems.d.ts.map +1 -1
  16. package/src/com/controlresell/inventory/models/items/Item.d.ts +720 -0
  17. package/src/com/controlresell/inventory/models/items/Item.d.ts.map +1 -1
  18. package/src/com/controlresell/inventory/models/items/ItemUpdate.d.ts +755 -2271
  19. package/src/com/controlresell/inventory/models/items/ItemUpdate.d.ts.map +1 -1
  20. package/src/com/controlresell/inventory/models/items/ItemUpdate.js +2 -2
  21. package/src/com/controlresell/inventory/models/items/ItemUpdate.js.map +1 -1
  22. package/src/com/controlresell/inventory/models/items/ItemUpdate.ts +2 -2
  23. package/src/com/controlresell/inventory/models/items/UpdatedItem.d.ts +864 -0
  24. package/src/com/controlresell/inventory/models/items/UpdatedItem.d.ts.map +1 -1
  25. package/src/com/controlresell/inventory/models/items/history/CreateItemHistoryPayload.d.ts +288 -0
  26. package/src/com/controlresell/inventory/models/items/history/CreateItemHistoryPayload.d.ts.map +1 -1
  27. package/src/com/controlresell/inventory/models/items/history/ItemHistory.d.ts +288 -0
  28. package/src/com/controlresell/inventory/models/items/history/ItemHistory.d.ts.map +1 -1
  29. package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.d.ts +436 -0
  30. package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.d.ts.map +1 -1
  31. package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.js +13 -1
  32. package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.js.map +1 -1
  33. package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.ts +17 -1
  34. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatedPayload.d.ts +10 -0
  35. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatedPayload.d.ts.map +1 -0
  36. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatedPayload.js +6 -0
  37. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatedPayload.js.map +1 -0
  38. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatedPayload.ts +7 -0
  39. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatingPayload.d.ts +136 -0
  40. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatingPayload.d.ts.map +1 -0
  41. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatingPayload.js +9 -0
  42. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatingPayload.js.map +1 -0
  43. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatingPayload.ts +10 -0
  44. package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts +990 -2794
  45. package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts.map +1 -1
  46. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +708 -2224
  47. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts.map +1 -1
  48. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.js +2 -2
  49. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.js.map +1 -1
  50. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.ts +2 -2
  51. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +2924 -5956
  52. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts.map +1 -1
  53. package/src/com/controlresell/models/users/ws/UserWsPayload.js +2 -2
  54. package/src/com/controlresell/models/users/ws/UserWsPayload.js.map +1 -1
  55. package/src/com/controlresell/models/users/ws/UserWsPayload.ts +2 -2
  56. package/src/index.d.ts +2 -0
  57. package/src/index.d.ts.map +1 -1
  58. package/src/index.js +2 -0
  59. package/src/index.js.map +1 -1
  60. package/src/index.ts +2 -0
@@ -596,8 +596,8 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
596
596
  }[] | null | undefined;
597
597
  }>;
598
598
  items: z.ZodArray<z.ZodObject<{
599
- id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
600
- userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
599
+ id: z.ZodNumber;
600
+ userId: z.ZodNumber;
601
601
  name: z.ZodString;
602
602
  sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
603
603
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -648,18 +648,18 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
648
648
  } | null | undefined;
649
649
  }>, "many">>>;
650
650
  categoryId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
651
- brandId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
651
+ brandId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
652
652
  sex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
653
653
  state: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
654
654
  sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
655
655
  purchasePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
656
656
  purchaseDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
657
- purchasePlaceId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
657
+ purchasePlaceId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
658
658
  sold: z.ZodBoolean;
659
659
  purchased: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
660
660
  sellingPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
661
661
  sellingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
662
- sellingPlaceId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
662
+ sellingPlaceId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
663
663
  estimatedPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
664
664
  fees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
665
665
  id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
@@ -763,49 +763,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
763
763
  }>, "many">>>;
764
764
  colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
765
765
  packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
766
- customerId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
767
- customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
768
- id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
769
- userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
770
- firstName: z.ZodString;
771
- lastName: z.ZodString;
772
- birthDate: z.ZodDate;
773
- email: z.ZodString;
774
- idNumber: z.ZodString;
775
- phone: z.ZodString;
776
- iban: z.ZodString;
777
- bic: z.ZodString;
778
- phoneVerified: z.ZodBoolean;
779
- }, "strip", z.ZodTypeAny, {
780
- userId: string | number;
781
- id: string | number;
782
- email: string;
783
- firstName: string;
784
- lastName: string;
785
- birthDate: Date;
786
- idNumber: string;
787
- phone: string;
788
- iban: string;
789
- bic: string;
790
- phoneVerified: boolean;
791
- }, {
792
- userId: string | number;
793
- id: string | number;
794
- email: string;
795
- firstName: string;
796
- lastName: string;
797
- birthDate: Date;
798
- idNumber: string;
799
- phone: string;
800
- iban: string;
801
- bic: string;
802
- phoneVerified: boolean;
803
- }>>>;
804
- customerType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
805
- customerPaid: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
806
- customerPaidDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
807
- customerPaidType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
808
- contractId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
809
766
  fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
810
767
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
811
768
  fieldId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
@@ -1679,6 +1636,222 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1679
1636
  error?: string | null | undefined;
1680
1637
  }[] | null | undefined;
1681
1638
  };
1639
+ }>, z.ZodObject<{
1640
+ data: z.ZodObject<{
1641
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1642
+ }, "strip", z.ZodTypeAny, {
1643
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1644
+ }, {
1645
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1646
+ }>;
1647
+ type: z.ZodLiteral<"UPDATED">;
1648
+ }, "strip", z.ZodTypeAny, {
1649
+ type: "UPDATED";
1650
+ data: {
1651
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1652
+ };
1653
+ }, {
1654
+ type: "UPDATED";
1655
+ data: {
1656
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1657
+ };
1658
+ }>, z.ZodObject<{
1659
+ data: z.ZodObject<{
1660
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1661
+ post: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1662
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1663
+ catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1664
+ catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1665
+ colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1666
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1667
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1668
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1669
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1670
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1671
+ photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1672
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1673
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1674
+ size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1675
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1676
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1677
+ statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1678
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1679
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1680
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1681
+ availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1682
+ material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1683
+ manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1684
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1685
+ }, "strip", z.ZodTypeAny, {
1686
+ status?: string | null | undefined;
1687
+ price?: number | null | undefined;
1688
+ currency?: string | null | undefined;
1689
+ brand?: string | null | undefined;
1690
+ catalog?: string | null | undefined;
1691
+ catalogId?: number | null | undefined;
1692
+ colors?: string[] | null | undefined;
1693
+ colorIds?: number[] | null | undefined;
1694
+ description?: string | null | undefined;
1695
+ measurementLength?: number | null | undefined;
1696
+ measurementWidth?: number | null | undefined;
1697
+ packageSizeId?: number | null | undefined;
1698
+ photoUrls?: string[] | null | undefined;
1699
+ size?: string | null | undefined;
1700
+ sizeId?: number | null | undefined;
1701
+ statusId?: number | null | undefined;
1702
+ title?: string | null | undefined;
1703
+ isDraft?: boolean | null | undefined;
1704
+ isArchived?: boolean | null | undefined;
1705
+ availableQuantity?: number | null | undefined;
1706
+ material?: number[] | null | undefined;
1707
+ manufacturerLabelling?: string | null | undefined;
1708
+ labels?: string[] | null | undefined;
1709
+ }, {
1710
+ status?: string | null | undefined;
1711
+ price?: number | null | undefined;
1712
+ currency?: string | null | undefined;
1713
+ brand?: string | null | undefined;
1714
+ catalog?: string | null | undefined;
1715
+ catalogId?: number | null | undefined;
1716
+ colors?: string[] | null | undefined;
1717
+ colorIds?: number[] | null | undefined;
1718
+ description?: string | null | undefined;
1719
+ measurementLength?: number | null | undefined;
1720
+ measurementWidth?: number | null | undefined;
1721
+ packageSizeId?: number | null | undefined;
1722
+ photoUrls?: string[] | null | undefined;
1723
+ size?: string | null | undefined;
1724
+ sizeId?: number | null | undefined;
1725
+ statusId?: number | null | undefined;
1726
+ title?: string | null | undefined;
1727
+ isDraft?: boolean | null | undefined;
1728
+ isArchived?: boolean | null | undefined;
1729
+ availableQuantity?: number | null | undefined;
1730
+ material?: number[] | null | undefined;
1731
+ manufacturerLabelling?: string | null | undefined;
1732
+ labels?: string[] | null | undefined;
1733
+ }>>>;
1734
+ targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1735
+ }, "strip", z.ZodTypeAny, {
1736
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1737
+ post?: {
1738
+ status?: string | null | undefined;
1739
+ price?: number | null | undefined;
1740
+ currency?: string | null | undefined;
1741
+ brand?: string | null | undefined;
1742
+ catalog?: string | null | undefined;
1743
+ catalogId?: number | null | undefined;
1744
+ colors?: string[] | null | undefined;
1745
+ colorIds?: number[] | null | undefined;
1746
+ description?: string | null | undefined;
1747
+ measurementLength?: number | null | undefined;
1748
+ measurementWidth?: number | null | undefined;
1749
+ packageSizeId?: number | null | undefined;
1750
+ photoUrls?: string[] | null | undefined;
1751
+ size?: string | null | undefined;
1752
+ sizeId?: number | null | undefined;
1753
+ statusId?: number | null | undefined;
1754
+ title?: string | null | undefined;
1755
+ isDraft?: boolean | null | undefined;
1756
+ isArchived?: boolean | null | undefined;
1757
+ availableQuantity?: number | null | undefined;
1758
+ material?: number[] | null | undefined;
1759
+ manufacturerLabelling?: string | null | undefined;
1760
+ labels?: string[] | null | undefined;
1761
+ } | null | undefined;
1762
+ targetDate?: Date | null | undefined;
1763
+ }, {
1764
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1765
+ post?: {
1766
+ status?: string | null | undefined;
1767
+ price?: number | null | undefined;
1768
+ currency?: string | null | undefined;
1769
+ brand?: string | null | undefined;
1770
+ catalog?: string | null | undefined;
1771
+ catalogId?: number | null | undefined;
1772
+ colors?: string[] | null | undefined;
1773
+ colorIds?: number[] | null | undefined;
1774
+ description?: string | null | undefined;
1775
+ measurementLength?: number | null | undefined;
1776
+ measurementWidth?: number | null | undefined;
1777
+ packageSizeId?: number | null | undefined;
1778
+ photoUrls?: string[] | null | undefined;
1779
+ size?: string | null | undefined;
1780
+ sizeId?: number | null | undefined;
1781
+ statusId?: number | null | undefined;
1782
+ title?: string | null | undefined;
1783
+ isDraft?: boolean | null | undefined;
1784
+ isArchived?: boolean | null | undefined;
1785
+ availableQuantity?: number | null | undefined;
1786
+ material?: number[] | null | undefined;
1787
+ manufacturerLabelling?: string | null | undefined;
1788
+ labels?: string[] | null | undefined;
1789
+ } | null | undefined;
1790
+ targetDate?: Date | null | undefined;
1791
+ }>;
1792
+ type: z.ZodLiteral<"UPDATING">;
1793
+ }, "strip", z.ZodTypeAny, {
1794
+ type: "UPDATING";
1795
+ data: {
1796
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1797
+ post?: {
1798
+ status?: string | null | undefined;
1799
+ price?: number | null | undefined;
1800
+ currency?: string | null | undefined;
1801
+ brand?: string | null | undefined;
1802
+ catalog?: string | null | undefined;
1803
+ catalogId?: number | null | undefined;
1804
+ colors?: string[] | null | undefined;
1805
+ colorIds?: number[] | null | undefined;
1806
+ description?: string | null | undefined;
1807
+ measurementLength?: number | null | undefined;
1808
+ measurementWidth?: number | null | undefined;
1809
+ packageSizeId?: number | null | undefined;
1810
+ photoUrls?: string[] | null | undefined;
1811
+ size?: string | null | undefined;
1812
+ sizeId?: number | null | undefined;
1813
+ statusId?: number | null | undefined;
1814
+ title?: string | null | undefined;
1815
+ isDraft?: boolean | null | undefined;
1816
+ isArchived?: boolean | null | undefined;
1817
+ availableQuantity?: number | null | undefined;
1818
+ material?: number[] | null | undefined;
1819
+ manufacturerLabelling?: string | null | undefined;
1820
+ labels?: string[] | null | undefined;
1821
+ } | null | undefined;
1822
+ targetDate?: Date | null | undefined;
1823
+ };
1824
+ }, {
1825
+ type: "UPDATING";
1826
+ data: {
1827
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1828
+ post?: {
1829
+ status?: string | null | undefined;
1830
+ price?: number | null | undefined;
1831
+ currency?: string | null | undefined;
1832
+ brand?: string | null | undefined;
1833
+ catalog?: string | null | undefined;
1834
+ catalogId?: number | null | undefined;
1835
+ colors?: string[] | null | undefined;
1836
+ colorIds?: number[] | null | undefined;
1837
+ description?: string | null | undefined;
1838
+ measurementLength?: number | null | undefined;
1839
+ measurementWidth?: number | null | undefined;
1840
+ packageSizeId?: number | null | undefined;
1841
+ photoUrls?: string[] | null | undefined;
1842
+ size?: string | null | undefined;
1843
+ sizeId?: number | null | undefined;
1844
+ statusId?: number | null | undefined;
1845
+ title?: string | null | undefined;
1846
+ isDraft?: boolean | null | undefined;
1847
+ isArchived?: boolean | null | undefined;
1848
+ availableQuantity?: number | null | undefined;
1849
+ material?: number[] | null | undefined;
1850
+ manufacturerLabelling?: string | null | undefined;
1851
+ labels?: string[] | null | undefined;
1852
+ } | null | undefined;
1853
+ targetDate?: Date | null | undefined;
1854
+ };
1682
1855
  }>]>>>;
1683
1856
  createdAt: z.ZodDate;
1684
1857
  targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -1843,6 +2016,42 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1843
2016
  error?: string | null | undefined;
1844
2017
  }[] | null | undefined;
1845
2018
  };
2019
+ } | {
2020
+ type: "UPDATED";
2021
+ data: {
2022
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2023
+ };
2024
+ } | {
2025
+ type: "UPDATING";
2026
+ data: {
2027
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2028
+ post?: {
2029
+ status?: string | null | undefined;
2030
+ price?: number | null | undefined;
2031
+ currency?: string | null | undefined;
2032
+ brand?: string | null | undefined;
2033
+ catalog?: string | null | undefined;
2034
+ catalogId?: number | null | undefined;
2035
+ colors?: string[] | null | undefined;
2036
+ colorIds?: number[] | null | undefined;
2037
+ description?: string | null | undefined;
2038
+ measurementLength?: number | null | undefined;
2039
+ measurementWidth?: number | null | undefined;
2040
+ packageSizeId?: number | null | undefined;
2041
+ photoUrls?: string[] | null | undefined;
2042
+ size?: string | null | undefined;
2043
+ sizeId?: number | null | undefined;
2044
+ statusId?: number | null | undefined;
2045
+ title?: string | null | undefined;
2046
+ isDraft?: boolean | null | undefined;
2047
+ isArchived?: boolean | null | undefined;
2048
+ availableQuantity?: number | null | undefined;
2049
+ material?: number[] | null | undefined;
2050
+ manufacturerLabelling?: string | null | undefined;
2051
+ labels?: string[] | null | undefined;
2052
+ } | null | undefined;
2053
+ targetDate?: Date | null | undefined;
2054
+ };
1846
2055
  } | null | undefined;
1847
2056
  accountId?: string | null | undefined;
1848
2057
  requestId?: string | null | undefined;
@@ -2006,6 +2215,42 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2006
2215
  error?: string | null | undefined;
2007
2216
  }[] | null | undefined;
2008
2217
  };
2218
+ } | {
2219
+ type: "UPDATED";
2220
+ data: {
2221
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2222
+ };
2223
+ } | {
2224
+ type: "UPDATING";
2225
+ data: {
2226
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2227
+ post?: {
2228
+ status?: string | null | undefined;
2229
+ price?: number | null | undefined;
2230
+ currency?: string | null | undefined;
2231
+ brand?: string | null | undefined;
2232
+ catalog?: string | null | undefined;
2233
+ catalogId?: number | null | undefined;
2234
+ colors?: string[] | null | undefined;
2235
+ colorIds?: number[] | null | undefined;
2236
+ description?: string | null | undefined;
2237
+ measurementLength?: number | null | undefined;
2238
+ measurementWidth?: number | null | undefined;
2239
+ packageSizeId?: number | null | undefined;
2240
+ photoUrls?: string[] | null | undefined;
2241
+ size?: string | null | undefined;
2242
+ sizeId?: number | null | undefined;
2243
+ statusId?: number | null | undefined;
2244
+ title?: string | null | undefined;
2245
+ isDraft?: boolean | null | undefined;
2246
+ isArchived?: boolean | null | undefined;
2247
+ availableQuantity?: number | null | undefined;
2248
+ material?: number[] | null | undefined;
2249
+ manufacturerLabelling?: string | null | undefined;
2250
+ labels?: string[] | null | undefined;
2251
+ } | null | undefined;
2252
+ targetDate?: Date | null | undefined;
2253
+ };
2009
2254
  } | null | undefined;
2010
2255
  accountId?: string | null | undefined;
2011
2256
  requestId?: string | null | undefined;
@@ -2133,1959 +2378,116 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2133
2378
  viewsCount?: number | null | undefined;
2134
2379
  favoritesCount?: number | null | undefined;
2135
2380
  }>, "many">>>;
2136
- history: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2137
- id: z.ZodString;
2138
- itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
2139
- type: z.ZodEnum<["IMPORTED", "ARCHIVED", "UNARCHIVED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED_RETRY", "REPUBLISHING_RETRY", "PUBLISH_CANCELED", "SCHEDULED", "REPUBLISHING", "IMAGE_PROCESSING_DONE", "REPUBLISHED", "REPUBLISH_CANCELED", "UPDATING", "UPDATED", "UPDATE_CANCELED", "CANCELED", "DISPUTE", "DELETING", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND", "LIFECYCLE_STARTED", "LIFECYCLE_COMPLETED", "LIFECYCLE_CANCELED"]>;
2140
- data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2141
- data: z.ZodObject<{
2142
- targetItemHistoryId: z.ZodString;
2143
- }, "strip", z.ZodTypeAny, {
2144
- targetItemHistoryId: string;
2145
- }, {
2146
- targetItemHistoryId: string;
2147
- }>;
2148
- type: z.ZodLiteral<"ACTION_CANCELED">;
2149
- }, "strip", z.ZodTypeAny, {
2150
- type: "ACTION_CANCELED";
2151
- data: {
2152
- targetItemHistoryId: string;
2153
- };
2154
- }, {
2381
+ actions: z.ZodObject<{
2382
+ perAccount: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodEnum<["PUBLISH", "PUBLISH_CANCEL", "REPUBLISH", "REPUBLISH_CANCEL", "UPDATE"]>, "many">>;
2383
+ }, "strip", z.ZodTypeAny, {
2384
+ perAccount: Record<string, ("REPUBLISH" | "PUBLISH" | "PUBLISH_CANCEL" | "REPUBLISH_CANCEL" | "UPDATE")[]>;
2385
+ }, {
2386
+ perAccount: Record<string, ("REPUBLISH" | "PUBLISH" | "PUBLISH_CANCEL" | "REPUBLISH_CANCEL" | "UPDATE")[]>;
2387
+ }>;
2388
+ createdAt: z.ZodDate;
2389
+ updatedAt: z.ZodDate;
2390
+ }, "strip", z.ZodTypeAny, {
2391
+ userId: number;
2392
+ id: number;
2393
+ updatedAt: Date;
2394
+ name: string;
2395
+ createdAt: Date;
2396
+ sold: boolean;
2397
+ actions: {
2398
+ perAccount: Record<string, ("REPUBLISH" | "PUBLISH" | "PUBLISH_CANCEL" | "REPUBLISH_CANCEL" | "UPDATE")[]>;
2399
+ };
2400
+ state?: number | null | undefined;
2401
+ colorIds?: number[] | null | undefined;
2402
+ description?: string | null | undefined;
2403
+ packageSizeId?: number | null | undefined;
2404
+ sizeId?: number | null | undefined;
2405
+ labels?: {
2406
+ itemId: string | number;
2407
+ labelId: string | number;
2408
+ label?: {
2409
+ id: string | number;
2410
+ name: string;
2411
+ createdAt: Date;
2412
+ isUserLabel: boolean;
2413
+ userId?: string | number | null | undefined;
2414
+ itemCount?: number | null | undefined;
2415
+ parentId?: unknown;
2416
+ } | null | undefined;
2417
+ }[] | null | undefined;
2418
+ files?: {
2419
+ itemId: string | number;
2420
+ fileId: string;
2421
+ index?: number | null | undefined;
2422
+ file?: {
2423
+ path: string;
2424
+ userId: string | number;
2425
+ id: string;
2426
+ createdAt: Date;
2427
+ signedUrl: string;
2428
+ } | null | undefined;
2429
+ }[] | null | undefined;
2430
+ fields?: {
2431
+ value: string;
2432
+ itemId: string | number;
2433
+ fieldId: string | number;
2434
+ }[] | null | undefined;
2435
+ sku?: string | null | undefined;
2436
+ categoryId?: number | null | undefined;
2437
+ brandId?: number | null | undefined;
2438
+ sex?: string | null | undefined;
2439
+ purchasePrice?: number | null | undefined;
2440
+ purchaseDate?: Date | null | undefined;
2441
+ purchasePlaceId?: number | null | undefined;
2442
+ purchased?: boolean | null | undefined;
2443
+ sellingPrice?: number | null | undefined;
2444
+ sellingDate?: Date | null | undefined;
2445
+ sellingPlaceId?: number | null | undefined;
2446
+ estimatedPrice?: number | null | undefined;
2447
+ fees?: {
2448
+ value: number;
2449
+ type: string;
2450
+ userId: string | number;
2451
+ id: string | number;
2452
+ updatedAt: Date;
2453
+ name: string;
2454
+ createdAt: Date;
2455
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
2456
+ startDate: Date;
2457
+ active: boolean;
2458
+ description?: string | null | undefined;
2459
+ itemId?: string | number | null | undefined;
2460
+ endDate?: Date | null | undefined;
2461
+ parentFeeId?: string | number | null | undefined;
2462
+ }[] | null | undefined;
2463
+ feesSum?: number | null | undefined;
2464
+ lastHistory?: {
2465
+ type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
2466
+ id: string;
2467
+ createdAt: Date;
2468
+ itemId: string | number;
2469
+ data?: {
2155
2470
  type: "ACTION_CANCELED";
2156
2471
  data: {
2157
2472
  targetItemHistoryId: string;
2158
2473
  };
2159
- }>, z.ZodObject<{
2160
- data: z.ZodObject<{
2161
- soldAccountId: z.ZodString;
2162
- soldOrderId: z.ZodString;
2163
- soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2164
- }, "strip", z.ZodTypeAny, {
2165
- soldAccountId: string;
2166
- soldOrderId: string;
2167
- soldConversationId?: string | null | undefined;
2168
- }, {
2169
- soldAccountId: string;
2170
- soldOrderId: string;
2171
- soldConversationId?: string | null | undefined;
2172
- }>;
2173
- type: z.ZodLiteral<"BUYER_PAID">;
2174
- }, "strip", z.ZodTypeAny, {
2175
- type: "BUYER_PAID";
2176
- data: {
2177
- soldAccountId: string;
2178
- soldOrderId: string;
2179
- soldConversationId?: string | null | undefined;
2180
- };
2181
- }, {
2474
+ } | {
2182
2475
  type: "BUYER_PAID";
2183
2476
  data: {
2184
2477
  soldAccountId: string;
2185
2478
  soldOrderId: string;
2186
2479
  soldConversationId?: string | null | undefined;
2187
2480
  };
2188
- }>, z.ZodObject<{
2189
- data: z.ZodObject<{
2190
- soldAccountId: z.ZodString;
2191
- soldOrderId: z.ZodString;
2192
- soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2193
- }, "strip", z.ZodTypeAny, {
2194
- soldAccountId: string;
2195
- soldOrderId: string;
2196
- soldConversationId?: string | null | undefined;
2197
- }, {
2198
- soldAccountId: string;
2199
- soldOrderId: string;
2200
- soldConversationId?: string | null | undefined;
2201
- }>;
2202
- type: z.ZodLiteral<"DELIVERED">;
2203
- }, "strip", z.ZodTypeAny, {
2204
- type: "DELIVERED";
2205
- data: {
2206
- soldAccountId: string;
2207
- soldOrderId: string;
2208
- soldConversationId?: string | null | undefined;
2209
- };
2210
- }, {
2481
+ } | {
2211
2482
  type: "DELIVERED";
2212
2483
  data: {
2213
2484
  soldAccountId: string;
2214
2485
  soldOrderId: string;
2215
2486
  soldConversationId?: string | null | undefined;
2216
2487
  };
2217
- }>, z.ZodObject<{
2218
- type: z.ZodLiteral<"EMPTY">;
2219
- }, "strip", z.ZodTypeAny, {
2220
- type: "EMPTY";
2221
- }, {
2488
+ } | {
2222
2489
  type: "EMPTY";
2223
- }>, z.ZodObject<{
2224
- data: z.ZodObject<{
2225
- platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2226
- accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2227
- reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2228
- fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2229
- field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
2230
- autoFixable: z.ZodBoolean;
2231
- error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2232
- }, "strip", z.ZodTypeAny, {
2233
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2234
- autoFixable: boolean;
2235
- error?: string | null | undefined;
2236
- }, {
2237
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2238
- autoFixable: boolean;
2239
- error?: string | null | undefined;
2240
- }>, "many">>>;
2241
- itemHistoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2242
- }, "strip", z.ZodTypeAny, {
2243
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2244
- accountId?: string | null | undefined;
2245
- reason?: string | null | undefined;
2246
- fields?: {
2247
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2248
- autoFixable: boolean;
2249
- error?: string | null | undefined;
2250
- }[] | null | undefined;
2251
- itemHistoryId?: string | null | undefined;
2252
- }, {
2253
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2254
- accountId?: string | null | undefined;
2255
- reason?: string | null | undefined;
2256
- fields?: {
2257
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2258
- autoFixable: boolean;
2259
- error?: string | null | undefined;
2260
- }[] | null | undefined;
2261
- itemHistoryId?: string | null | undefined;
2262
- }>;
2263
- type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
2264
- }, "strip", z.ZodTypeAny, {
2265
- type: "FAILED_TO_PUBLISH";
2266
- data: {
2267
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2268
- accountId?: string | null | undefined;
2269
- reason?: string | null | undefined;
2270
- fields?: {
2271
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2272
- autoFixable: boolean;
2273
- error?: string | null | undefined;
2274
- }[] | null | undefined;
2275
- itemHistoryId?: string | null | undefined;
2276
- };
2277
- }, {
2278
- type: "FAILED_TO_PUBLISH";
2279
- data: {
2280
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2281
- accountId?: string | null | undefined;
2282
- reason?: string | null | undefined;
2283
- fields?: {
2284
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2285
- autoFixable: boolean;
2286
- error?: string | null | undefined;
2287
- }[] | null | undefined;
2288
- itemHistoryId?: string | null | undefined;
2289
- };
2290
- }>, z.ZodObject<{
2291
- data: z.ZodObject<{
2292
- platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2293
- variations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2294
- fileId: z.ZodString;
2295
- seed: z.ZodNumber;
2296
- phash: z.ZodString;
2297
- distanceOriginal: z.ZodNumber;
2298
- originalImageUrl: z.ZodString;
2299
- originalPhash: z.ZodString;
2300
- }, "strip", z.ZodTypeAny, {
2301
- fileId: string;
2302
- seed: number;
2303
- phash: string;
2304
- distanceOriginal: number;
2305
- originalImageUrl: string;
2306
- originalPhash: string;
2307
- }, {
2308
- fileId: string;
2309
- seed: number;
2310
- phash: string;
2311
- distanceOriginal: number;
2312
- originalImageUrl: string;
2313
- originalPhash: string;
2314
- }>, "many">>>;
2315
- originalPhashes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2316
- }, "strip", z.ZodTypeAny, {
2317
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2318
- variations?: {
2319
- fileId: string;
2320
- seed: number;
2321
- phash: string;
2322
- distanceOriginal: number;
2323
- originalImageUrl: string;
2324
- originalPhash: string;
2325
- }[] | null | undefined;
2326
- originalPhashes?: string[] | null | undefined;
2327
- }, {
2328
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2329
- variations?: {
2330
- fileId: string;
2331
- seed: number;
2332
- phash: string;
2333
- distanceOriginal: number;
2334
- originalImageUrl: string;
2335
- originalPhash: string;
2336
- }[] | null | undefined;
2337
- originalPhashes?: string[] | null | undefined;
2338
- }>;
2339
- type: z.ZodLiteral<"IMAGE_PROCESSING_DONE">;
2340
- }, "strip", z.ZodTypeAny, {
2341
- type: "IMAGE_PROCESSING_DONE";
2342
- data: {
2343
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2344
- variations?: {
2345
- fileId: string;
2346
- seed: number;
2347
- phash: string;
2348
- distanceOriginal: number;
2349
- originalImageUrl: string;
2350
- originalPhash: string;
2351
- }[] | null | undefined;
2352
- originalPhashes?: string[] | null | undefined;
2353
- };
2354
- }, {
2355
- type: "IMAGE_PROCESSING_DONE";
2356
- data: {
2357
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2358
- variations?: {
2359
- fileId: string;
2360
- seed: number;
2361
- phash: string;
2362
- distanceOriginal: number;
2363
- originalImageUrl: string;
2364
- originalPhash: string;
2365
- }[] | null | undefined;
2366
- originalPhashes?: string[] | null | undefined;
2367
- };
2368
- }>, z.ZodObject<{
2369
- data: z.ZodObject<{
2370
- post: z.ZodObject<{
2371
- platformId: z.ZodString;
2372
- platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2373
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2374
- post: z.ZodObject<{
2375
- brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2376
- catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2377
- catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2378
- colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2379
- colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
2380
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2381
- measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2382
- measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2383
- packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2384
- photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2385
- price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2386
- currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2387
- size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2388
- sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2389
- status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2390
- statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2391
- title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2392
- isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2393
- isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2394
- availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2395
- material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
2396
- manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2397
- labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2398
- }, "strip", z.ZodTypeAny, {
2399
- status?: string | null | undefined;
2400
- price?: number | null | undefined;
2401
- currency?: string | null | undefined;
2402
- brand?: string | null | undefined;
2403
- catalog?: string | null | undefined;
2404
- catalogId?: number | null | undefined;
2405
- colors?: string[] | null | undefined;
2406
- colorIds?: number[] | null | undefined;
2407
- description?: string | null | undefined;
2408
- measurementLength?: number | null | undefined;
2409
- measurementWidth?: number | null | undefined;
2410
- packageSizeId?: number | null | undefined;
2411
- photoUrls?: string[] | null | undefined;
2412
- size?: string | null | undefined;
2413
- sizeId?: number | null | undefined;
2414
- statusId?: number | null | undefined;
2415
- title?: string | null | undefined;
2416
- isDraft?: boolean | null | undefined;
2417
- isArchived?: boolean | null | undefined;
2418
- availableQuantity?: number | null | undefined;
2419
- material?: number[] | null | undefined;
2420
- manufacturerLabelling?: string | null | undefined;
2421
- labels?: string[] | null | undefined;
2422
- }, {
2423
- status?: string | null | undefined;
2424
- price?: number | null | undefined;
2425
- currency?: string | null | undefined;
2426
- brand?: string | null | undefined;
2427
- catalog?: string | null | undefined;
2428
- catalogId?: number | null | undefined;
2429
- colors?: string[] | null | undefined;
2430
- colorIds?: number[] | null | undefined;
2431
- description?: string | null | undefined;
2432
- measurementLength?: number | null | undefined;
2433
- measurementWidth?: number | null | undefined;
2434
- packageSizeId?: number | null | undefined;
2435
- photoUrls?: string[] | null | undefined;
2436
- size?: string | null | undefined;
2437
- sizeId?: number | null | undefined;
2438
- statusId?: number | null | undefined;
2439
- title?: string | null | undefined;
2440
- isDraft?: boolean | null | undefined;
2441
- isArchived?: boolean | null | undefined;
2442
- availableQuantity?: number | null | undefined;
2443
- material?: number[] | null | undefined;
2444
- manufacturerLabelling?: string | null | undefined;
2445
- labels?: string[] | null | undefined;
2446
- }>;
2447
- }, "strip", z.ZodTypeAny, {
2448
- platformId: string;
2449
- post: {
2450
- status?: string | null | undefined;
2451
- price?: number | null | undefined;
2452
- currency?: string | null | undefined;
2453
- brand?: string | null | undefined;
2454
- catalog?: string | null | undefined;
2455
- catalogId?: number | null | undefined;
2456
- colors?: string[] | null | undefined;
2457
- colorIds?: number[] | null | undefined;
2458
- description?: string | null | undefined;
2459
- measurementLength?: number | null | undefined;
2460
- measurementWidth?: number | null | undefined;
2461
- packageSizeId?: number | null | undefined;
2462
- photoUrls?: string[] | null | undefined;
2463
- size?: string | null | undefined;
2464
- sizeId?: number | null | undefined;
2465
- statusId?: number | null | undefined;
2466
- title?: string | null | undefined;
2467
- isDraft?: boolean | null | undefined;
2468
- isArchived?: boolean | null | undefined;
2469
- availableQuantity?: number | null | undefined;
2470
- material?: number[] | null | undefined;
2471
- manufacturerLabelling?: string | null | undefined;
2472
- labels?: string[] | null | undefined;
2473
- };
2474
- createdAt?: Date | null | undefined;
2475
- platformUrl?: string | null | undefined;
2476
- }, {
2477
- platformId: string;
2478
- post: {
2479
- status?: string | null | undefined;
2480
- price?: number | null | undefined;
2481
- currency?: string | null | undefined;
2482
- brand?: string | null | undefined;
2483
- catalog?: string | null | undefined;
2484
- catalogId?: number | null | undefined;
2485
- colors?: string[] | null | undefined;
2486
- colorIds?: number[] | null | undefined;
2487
- description?: string | null | undefined;
2488
- measurementLength?: number | null | undefined;
2489
- measurementWidth?: number | null | undefined;
2490
- packageSizeId?: number | null | undefined;
2491
- photoUrls?: string[] | null | undefined;
2492
- size?: string | null | undefined;
2493
- sizeId?: number | null | undefined;
2494
- statusId?: number | null | undefined;
2495
- title?: string | null | undefined;
2496
- isDraft?: boolean | null | undefined;
2497
- isArchived?: boolean | null | undefined;
2498
- availableQuantity?: number | null | undefined;
2499
- material?: number[] | null | undefined;
2500
- manufacturerLabelling?: string | null | undefined;
2501
- labels?: string[] | null | undefined;
2502
- };
2503
- createdAt?: Date | null | undefined;
2504
- platformUrl?: string | null | undefined;
2505
- }>;
2506
- }, "strip", z.ZodTypeAny, {
2507
- post: {
2508
- platformId: string;
2509
- post: {
2510
- status?: string | null | undefined;
2511
- price?: number | null | undefined;
2512
- currency?: string | null | undefined;
2513
- brand?: string | null | undefined;
2514
- catalog?: string | null | undefined;
2515
- catalogId?: number | null | undefined;
2516
- colors?: string[] | null | undefined;
2517
- colorIds?: number[] | null | undefined;
2518
- description?: string | null | undefined;
2519
- measurementLength?: number | null | undefined;
2520
- measurementWidth?: number | null | undefined;
2521
- packageSizeId?: number | null | undefined;
2522
- photoUrls?: string[] | null | undefined;
2523
- size?: string | null | undefined;
2524
- sizeId?: number | null | undefined;
2525
- statusId?: number | null | undefined;
2526
- title?: string | null | undefined;
2527
- isDraft?: boolean | null | undefined;
2528
- isArchived?: boolean | null | undefined;
2529
- availableQuantity?: number | null | undefined;
2530
- material?: number[] | null | undefined;
2531
- manufacturerLabelling?: string | null | undefined;
2532
- labels?: string[] | null | undefined;
2533
- };
2534
- createdAt?: Date | null | undefined;
2535
- platformUrl?: string | null | undefined;
2536
- };
2537
- }, {
2538
- post: {
2539
- platformId: string;
2540
- post: {
2541
- status?: string | null | undefined;
2542
- price?: number | null | undefined;
2543
- currency?: string | null | undefined;
2544
- brand?: string | null | undefined;
2545
- catalog?: string | null | undefined;
2546
- catalogId?: number | null | undefined;
2547
- colors?: string[] | null | undefined;
2548
- colorIds?: number[] | null | undefined;
2549
- description?: string | null | undefined;
2550
- measurementLength?: number | null | undefined;
2551
- measurementWidth?: number | null | undefined;
2552
- packageSizeId?: number | null | undefined;
2553
- photoUrls?: string[] | null | undefined;
2554
- size?: string | null | undefined;
2555
- sizeId?: number | null | undefined;
2556
- statusId?: number | null | undefined;
2557
- title?: string | null | undefined;
2558
- isDraft?: boolean | null | undefined;
2559
- isArchived?: boolean | null | undefined;
2560
- availableQuantity?: number | null | undefined;
2561
- material?: number[] | null | undefined;
2562
- manufacturerLabelling?: string | null | undefined;
2563
- labels?: string[] | null | undefined;
2564
- };
2565
- createdAt?: Date | null | undefined;
2566
- platformUrl?: string | null | undefined;
2567
- };
2568
- }>;
2569
- type: z.ZodLiteral<"IMPORTED">;
2570
- }, "strip", z.ZodTypeAny, {
2571
- type: "IMPORTED";
2572
- data: {
2573
- post: {
2574
- platformId: string;
2575
- post: {
2576
- status?: string | null | undefined;
2577
- price?: number | null | undefined;
2578
- currency?: string | null | undefined;
2579
- brand?: string | null | undefined;
2580
- catalog?: string | null | undefined;
2581
- catalogId?: number | null | undefined;
2582
- colors?: string[] | null | undefined;
2583
- colorIds?: number[] | null | undefined;
2584
- description?: string | null | undefined;
2585
- measurementLength?: number | null | undefined;
2586
- measurementWidth?: number | null | undefined;
2587
- packageSizeId?: number | null | undefined;
2588
- photoUrls?: string[] | null | undefined;
2589
- size?: string | null | undefined;
2590
- sizeId?: number | null | undefined;
2591
- statusId?: number | null | undefined;
2592
- title?: string | null | undefined;
2593
- isDraft?: boolean | null | undefined;
2594
- isArchived?: boolean | null | undefined;
2595
- availableQuantity?: number | null | undefined;
2596
- material?: number[] | null | undefined;
2597
- manufacturerLabelling?: string | null | undefined;
2598
- labels?: string[] | null | undefined;
2599
- };
2600
- createdAt?: Date | null | undefined;
2601
- platformUrl?: string | null | undefined;
2602
- };
2603
- };
2604
- }, {
2605
- type: "IMPORTED";
2606
- data: {
2607
- post: {
2608
- platformId: string;
2609
- post: {
2610
- status?: string | null | undefined;
2611
- price?: number | null | undefined;
2612
- currency?: string | null | undefined;
2613
- brand?: string | null | undefined;
2614
- catalog?: string | null | undefined;
2615
- catalogId?: number | null | undefined;
2616
- colors?: string[] | null | undefined;
2617
- colorIds?: number[] | null | undefined;
2618
- description?: string | null | undefined;
2619
- measurementLength?: number | null | undefined;
2620
- measurementWidth?: number | null | undefined;
2621
- packageSizeId?: number | null | undefined;
2622
- photoUrls?: string[] | null | undefined;
2623
- size?: string | null | undefined;
2624
- sizeId?: number | null | undefined;
2625
- statusId?: number | null | undefined;
2626
- title?: string | null | undefined;
2627
- isDraft?: boolean | null | undefined;
2628
- isArchived?: boolean | null | undefined;
2629
- availableQuantity?: number | null | undefined;
2630
- material?: number[] | null | undefined;
2631
- manufacturerLabelling?: string | null | undefined;
2632
- labels?: string[] | null | undefined;
2633
- };
2634
- createdAt?: Date | null | undefined;
2635
- platformUrl?: string | null | undefined;
2636
- };
2637
- };
2638
- }>, z.ZodObject<{
2639
- data: z.ZodObject<{
2640
- accountId: z.ZodString;
2641
- }, "strip", z.ZodTypeAny, {
2642
- accountId: string;
2643
- }, {
2644
- accountId: string;
2645
- }>;
2646
- type: z.ZodLiteral<"LIFECYCLE_COMPLETED">;
2647
- }, "strip", z.ZodTypeAny, {
2648
- type: "LIFECYCLE_COMPLETED";
2649
- data: {
2650
- accountId: string;
2651
- };
2652
- }, {
2653
- type: "LIFECYCLE_COMPLETED";
2654
- data: {
2655
- accountId: string;
2656
- };
2657
- }>, z.ZodObject<{
2658
- data: z.ZodObject<{
2659
- accountId: z.ZodString;
2660
- caseId: z.ZodString;
2661
- }, "strip", z.ZodTypeAny, {
2662
- accountId: string;
2663
- caseId: string;
2664
- }, {
2665
- accountId: string;
2666
- caseId: string;
2667
- }>;
2668
- type: z.ZodLiteral<"LIFECYCLE_STARTED">;
2669
- }, "strip", z.ZodTypeAny, {
2670
- type: "LIFECYCLE_STARTED";
2671
- data: {
2672
- accountId: string;
2673
- caseId: string;
2674
- };
2675
- }, {
2676
- type: "LIFECYCLE_STARTED";
2677
- data: {
2678
- accountId: string;
2679
- caseId: string;
2680
- };
2681
- }>, z.ZodObject<{
2682
- data: z.ZodObject<{
2683
- platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2684
- }, "strip", z.ZodTypeAny, {
2685
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2686
- }, {
2687
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2688
- }>;
2689
- type: z.ZodLiteral<"PUBLISHED">;
2690
- }, "strip", z.ZodTypeAny, {
2691
- type: "PUBLISHED";
2692
- data: {
2693
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2694
- };
2695
- }, {
2696
- type: "PUBLISHED";
2697
- data: {
2698
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2699
- };
2700
- }>, z.ZodObject<{
2701
- data: z.ZodObject<{
2702
- platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2703
- publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2704
- priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2705
- type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
2706
- value: z.ZodNumber;
2707
- roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
2708
- roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2709
- maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2710
- }, "strip", z.ZodTypeAny, {
2711
- value: number;
2712
- type: "PERCENTAGE" | "ABSOLUTE";
2713
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2714
- roundStep?: number | null | undefined;
2715
- maxRounds?: number | null | undefined;
2716
- }, {
2717
- value: number;
2718
- type: "PERCENTAGE" | "ABSOLUTE";
2719
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2720
- roundStep?: number | null | undefined;
2721
- maxRounds?: number | null | undefined;
2722
- }>>>;
2723
- isTransfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2724
- targetAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2725
- }, "strip", z.ZodTypeAny, {
2726
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2727
- publishingDate?: Date | null | undefined;
2728
- priceDropPayload?: {
2729
- value: number;
2730
- type: "PERCENTAGE" | "ABSOLUTE";
2731
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2732
- roundStep?: number | null | undefined;
2733
- maxRounds?: number | null | undefined;
2734
- } | null | undefined;
2735
- isTransfer?: boolean | null | undefined;
2736
- targetAccountId?: string | null | undefined;
2737
- }, {
2738
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2739
- publishingDate?: Date | null | undefined;
2740
- priceDropPayload?: {
2741
- value: number;
2742
- type: "PERCENTAGE" | "ABSOLUTE";
2743
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2744
- roundStep?: number | null | undefined;
2745
- maxRounds?: number | null | undefined;
2746
- } | null | undefined;
2747
- isTransfer?: boolean | null | undefined;
2748
- targetAccountId?: string | null | undefined;
2749
- }>;
2750
- type: z.ZodLiteral<"REPUBLISHING">;
2751
- }, "strip", z.ZodTypeAny, {
2752
- type: "REPUBLISHING";
2753
- data: {
2754
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2755
- publishingDate?: Date | null | undefined;
2756
- priceDropPayload?: {
2757
- value: number;
2758
- type: "PERCENTAGE" | "ABSOLUTE";
2759
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2760
- roundStep?: number | null | undefined;
2761
- maxRounds?: number | null | undefined;
2762
- } | null | undefined;
2763
- isTransfer?: boolean | null | undefined;
2764
- targetAccountId?: string | null | undefined;
2765
- };
2766
- }, {
2767
- type: "REPUBLISHING";
2768
- data: {
2769
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2770
- publishingDate?: Date | null | undefined;
2771
- priceDropPayload?: {
2772
- value: number;
2773
- type: "PERCENTAGE" | "ABSOLUTE";
2774
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2775
- roundStep?: number | null | undefined;
2776
- maxRounds?: number | null | undefined;
2777
- } | null | undefined;
2778
- isTransfer?: boolean | null | undefined;
2779
- targetAccountId?: string | null | undefined;
2780
- };
2781
- }>, z.ZodObject<{
2782
- data: z.ZodObject<{
2783
- platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2784
- attemptNumber: z.ZodNumber;
2785
- maxAttempts: z.ZodNumber;
2786
- previousHistoryId: z.ZodString;
2787
- originalFailureDate: z.ZodDate;
2788
- fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2789
- field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
2790
- autoFixable: z.ZodBoolean;
2791
- error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2792
- }, "strip", z.ZodTypeAny, {
2793
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2794
- autoFixable: boolean;
2795
- error?: string | null | undefined;
2796
- }, {
2797
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2798
- autoFixable: boolean;
2799
- error?: string | null | undefined;
2800
- }>, "many">>>;
2801
- priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2802
- type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
2803
- value: z.ZodNumber;
2804
- roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
2805
- roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2806
- maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2807
- }, "strip", z.ZodTypeAny, {
2808
- value: number;
2809
- type: "PERCENTAGE" | "ABSOLUTE";
2810
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2811
- roundStep?: number | null | undefined;
2812
- maxRounds?: number | null | undefined;
2813
- }, {
2814
- value: number;
2815
- type: "PERCENTAGE" | "ABSOLUTE";
2816
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2817
- roundStep?: number | null | undefined;
2818
- maxRounds?: number | null | undefined;
2819
- }>>>;
2820
- }, "strip", z.ZodTypeAny, {
2821
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2822
- attemptNumber: number;
2823
- maxAttempts: number;
2824
- previousHistoryId: string;
2825
- originalFailureDate: Date;
2826
- fields?: {
2827
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2828
- autoFixable: boolean;
2829
- error?: string | null | undefined;
2830
- }[] | null | undefined;
2831
- priceDropPayload?: {
2832
- value: number;
2833
- type: "PERCENTAGE" | "ABSOLUTE";
2834
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2835
- roundStep?: number | null | undefined;
2836
- maxRounds?: number | null | undefined;
2837
- } | null | undefined;
2838
- }, {
2839
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2840
- attemptNumber: number;
2841
- maxAttempts: number;
2842
- previousHistoryId: string;
2843
- originalFailureDate: Date;
2844
- fields?: {
2845
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2846
- autoFixable: boolean;
2847
- error?: string | null | undefined;
2848
- }[] | null | undefined;
2849
- priceDropPayload?: {
2850
- value: number;
2851
- type: "PERCENTAGE" | "ABSOLUTE";
2852
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2853
- roundStep?: number | null | undefined;
2854
- maxRounds?: number | null | undefined;
2855
- } | null | undefined;
2856
- }>;
2857
- type: z.ZodLiteral<"REPUBLISHING_RETRY">;
2858
- }, "strip", z.ZodTypeAny, {
2859
- type: "REPUBLISHING_RETRY";
2860
- data: {
2861
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2862
- attemptNumber: number;
2863
- maxAttempts: number;
2864
- previousHistoryId: string;
2865
- originalFailureDate: Date;
2866
- fields?: {
2867
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2868
- autoFixable: boolean;
2869
- error?: string | null | undefined;
2870
- }[] | null | undefined;
2871
- priceDropPayload?: {
2872
- value: number;
2873
- type: "PERCENTAGE" | "ABSOLUTE";
2874
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2875
- roundStep?: number | null | undefined;
2876
- maxRounds?: number | null | undefined;
2877
- } | null | undefined;
2878
- };
2879
- }, {
2880
- type: "REPUBLISHING_RETRY";
2881
- data: {
2882
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2883
- attemptNumber: number;
2884
- maxAttempts: number;
2885
- previousHistoryId: string;
2886
- originalFailureDate: Date;
2887
- fields?: {
2888
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2889
- autoFixable: boolean;
2890
- error?: string | null | undefined;
2891
- }[] | null | undefined;
2892
- priceDropPayload?: {
2893
- value: number;
2894
- type: "PERCENTAGE" | "ABSOLUTE";
2895
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2896
- roundStep?: number | null | undefined;
2897
- maxRounds?: number | null | undefined;
2898
- } | null | undefined;
2899
- };
2900
- }>, z.ZodObject<{
2901
- data: z.ZodObject<{
2902
- platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2903
- publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2904
- }, "strip", z.ZodTypeAny, {
2905
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2906
- publishingDate?: Date | null | undefined;
2907
- }, {
2908
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2909
- publishingDate?: Date | null | undefined;
2910
- }>;
2911
- type: z.ZodLiteral<"SCHEDULED">;
2912
- }, "strip", z.ZodTypeAny, {
2913
- type: "SCHEDULED";
2914
- data: {
2915
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2916
- publishingDate?: Date | null | undefined;
2917
- };
2918
- }, {
2919
- type: "SCHEDULED";
2920
- data: {
2921
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2922
- publishingDate?: Date | null | undefined;
2923
- };
2924
- }>, z.ZodObject<{
2925
- data: z.ZodObject<{
2926
- platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2927
- attemptNumber: z.ZodNumber;
2928
- maxAttempts: z.ZodNumber;
2929
- previousHistoryId: z.ZodString;
2930
- originalFailureDate: z.ZodDate;
2931
- fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2932
- field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
2933
- autoFixable: z.ZodBoolean;
2934
- error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2935
- }, "strip", z.ZodTypeAny, {
2936
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2937
- autoFixable: boolean;
2938
- error?: string | null | undefined;
2939
- }, {
2940
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2941
- autoFixable: boolean;
2942
- error?: string | null | undefined;
2943
- }>, "many">>>;
2944
- }, "strip", z.ZodTypeAny, {
2945
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2946
- attemptNumber: number;
2947
- maxAttempts: number;
2948
- previousHistoryId: string;
2949
- originalFailureDate: Date;
2950
- fields?: {
2951
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2952
- autoFixable: boolean;
2953
- error?: string | null | undefined;
2954
- }[] | null | undefined;
2955
- }, {
2956
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2957
- attemptNumber: number;
2958
- maxAttempts: number;
2959
- previousHistoryId: string;
2960
- originalFailureDate: Date;
2961
- fields?: {
2962
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2963
- autoFixable: boolean;
2964
- error?: string | null | undefined;
2965
- }[] | null | undefined;
2966
- }>;
2967
- type: z.ZodLiteral<"SCHEDULED_RETRY">;
2968
- }, "strip", z.ZodTypeAny, {
2969
- type: "SCHEDULED_RETRY";
2970
- data: {
2971
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2972
- attemptNumber: number;
2973
- maxAttempts: number;
2974
- previousHistoryId: string;
2975
- originalFailureDate: Date;
2976
- fields?: {
2977
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2978
- autoFixable: boolean;
2979
- error?: string | null | undefined;
2980
- }[] | null | undefined;
2981
- };
2982
- }, {
2983
- type: "SCHEDULED_RETRY";
2984
- data: {
2985
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2986
- attemptNumber: number;
2987
- maxAttempts: number;
2988
- previousHistoryId: string;
2989
- originalFailureDate: Date;
2990
- fields?: {
2991
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2992
- autoFixable: boolean;
2993
- error?: string | null | undefined;
2994
- }[] | null | undefined;
2995
- };
2996
- }>]>>>;
2997
- createdAt: z.ZodDate;
2998
- targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2999
- accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3000
- requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3001
- }, "strip", z.ZodTypeAny, {
3002
- type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
3003
- id: string;
3004
- createdAt: Date;
3005
- itemId: string | number;
3006
- data?: {
3007
- type: "ACTION_CANCELED";
3008
- data: {
3009
- targetItemHistoryId: string;
3010
- };
3011
- } | {
3012
- type: "BUYER_PAID";
3013
- data: {
3014
- soldAccountId: string;
3015
- soldOrderId: string;
3016
- soldConversationId?: string | null | undefined;
3017
- };
3018
- } | {
3019
- type: "DELIVERED";
3020
- data: {
3021
- soldAccountId: string;
3022
- soldOrderId: string;
3023
- soldConversationId?: string | null | undefined;
3024
- };
3025
- } | {
3026
- type: "EMPTY";
3027
- } | {
3028
- type: "FAILED_TO_PUBLISH";
3029
- data: {
3030
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3031
- accountId?: string | null | undefined;
3032
- reason?: string | null | undefined;
3033
- fields?: {
3034
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3035
- autoFixable: boolean;
3036
- error?: string | null | undefined;
3037
- }[] | null | undefined;
3038
- itemHistoryId?: string | null | undefined;
3039
- };
3040
- } | {
3041
- type: "IMAGE_PROCESSING_DONE";
3042
- data: {
3043
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3044
- variations?: {
3045
- fileId: string;
3046
- seed: number;
3047
- phash: string;
3048
- distanceOriginal: number;
3049
- originalImageUrl: string;
3050
- originalPhash: string;
3051
- }[] | null | undefined;
3052
- originalPhashes?: string[] | null | undefined;
3053
- };
3054
- } | {
3055
- type: "IMPORTED";
3056
- data: {
3057
- post: {
3058
- platformId: string;
3059
- post: {
3060
- status?: string | null | undefined;
3061
- price?: number | null | undefined;
3062
- currency?: string | null | undefined;
3063
- brand?: string | null | undefined;
3064
- catalog?: string | null | undefined;
3065
- catalogId?: number | null | undefined;
3066
- colors?: string[] | null | undefined;
3067
- colorIds?: number[] | null | undefined;
3068
- description?: string | null | undefined;
3069
- measurementLength?: number | null | undefined;
3070
- measurementWidth?: number | null | undefined;
3071
- packageSizeId?: number | null | undefined;
3072
- photoUrls?: string[] | null | undefined;
3073
- size?: string | null | undefined;
3074
- sizeId?: number | null | undefined;
3075
- statusId?: number | null | undefined;
3076
- title?: string | null | undefined;
3077
- isDraft?: boolean | null | undefined;
3078
- isArchived?: boolean | null | undefined;
3079
- availableQuantity?: number | null | undefined;
3080
- material?: number[] | null | undefined;
3081
- manufacturerLabelling?: string | null | undefined;
3082
- labels?: string[] | null | undefined;
3083
- };
3084
- createdAt?: Date | null | undefined;
3085
- platformUrl?: string | null | undefined;
3086
- };
3087
- };
3088
- } | {
3089
- type: "LIFECYCLE_COMPLETED";
3090
- data: {
3091
- accountId: string;
3092
- };
3093
- } | {
3094
- type: "LIFECYCLE_STARTED";
3095
- data: {
3096
- accountId: string;
3097
- caseId: string;
3098
- };
3099
- } | {
3100
- type: "PUBLISHED";
3101
- data: {
3102
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3103
- };
3104
- } | {
3105
- type: "REPUBLISHING";
3106
- data: {
3107
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3108
- publishingDate?: Date | null | undefined;
3109
- priceDropPayload?: {
3110
- value: number;
3111
- type: "PERCENTAGE" | "ABSOLUTE";
3112
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3113
- roundStep?: number | null | undefined;
3114
- maxRounds?: number | null | undefined;
3115
- } | null | undefined;
3116
- isTransfer?: boolean | null | undefined;
3117
- targetAccountId?: string | null | undefined;
3118
- };
3119
- } | {
3120
- type: "REPUBLISHING_RETRY";
3121
- data: {
3122
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3123
- attemptNumber: number;
3124
- maxAttempts: number;
3125
- previousHistoryId: string;
3126
- originalFailureDate: Date;
3127
- fields?: {
3128
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3129
- autoFixable: boolean;
3130
- error?: string | null | undefined;
3131
- }[] | null | undefined;
3132
- priceDropPayload?: {
3133
- value: number;
3134
- type: "PERCENTAGE" | "ABSOLUTE";
3135
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3136
- roundStep?: number | null | undefined;
3137
- maxRounds?: number | null | undefined;
3138
- } | null | undefined;
3139
- };
3140
- } | {
3141
- type: "SCHEDULED";
3142
- data: {
3143
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3144
- publishingDate?: Date | null | undefined;
3145
- };
3146
- } | {
3147
- type: "SCHEDULED_RETRY";
3148
- data: {
3149
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3150
- attemptNumber: number;
3151
- maxAttempts: number;
3152
- previousHistoryId: string;
3153
- originalFailureDate: Date;
3154
- fields?: {
3155
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3156
- autoFixable: boolean;
3157
- error?: string | null | undefined;
3158
- }[] | null | undefined;
3159
- };
3160
- } | null | undefined;
3161
- accountId?: string | null | undefined;
3162
- requestId?: string | null | undefined;
3163
- targetDate?: Date | null | undefined;
3164
- }, {
3165
- type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
3166
- id: string;
3167
- createdAt: Date;
3168
- itemId: string | number;
3169
- data?: {
3170
- type: "ACTION_CANCELED";
3171
- data: {
3172
- targetItemHistoryId: string;
3173
- };
3174
- } | {
3175
- type: "BUYER_PAID";
3176
- data: {
3177
- soldAccountId: string;
3178
- soldOrderId: string;
3179
- soldConversationId?: string | null | undefined;
3180
- };
3181
- } | {
3182
- type: "DELIVERED";
3183
- data: {
3184
- soldAccountId: string;
3185
- soldOrderId: string;
3186
- soldConversationId?: string | null | undefined;
3187
- };
3188
- } | {
3189
- type: "EMPTY";
3190
- } | {
3191
- type: "FAILED_TO_PUBLISH";
3192
- data: {
3193
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3194
- accountId?: string | null | undefined;
3195
- reason?: string | null | undefined;
3196
- fields?: {
3197
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3198
- autoFixable: boolean;
3199
- error?: string | null | undefined;
3200
- }[] | null | undefined;
3201
- itemHistoryId?: string | null | undefined;
3202
- };
3203
- } | {
3204
- type: "IMAGE_PROCESSING_DONE";
3205
- data: {
3206
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3207
- variations?: {
3208
- fileId: string;
3209
- seed: number;
3210
- phash: string;
3211
- distanceOriginal: number;
3212
- originalImageUrl: string;
3213
- originalPhash: string;
3214
- }[] | null | undefined;
3215
- originalPhashes?: string[] | null | undefined;
3216
- };
3217
- } | {
3218
- type: "IMPORTED";
3219
- data: {
3220
- post: {
3221
- platformId: string;
3222
- post: {
3223
- status?: string | null | undefined;
3224
- price?: number | null | undefined;
3225
- currency?: string | null | undefined;
3226
- brand?: string | null | undefined;
3227
- catalog?: string | null | undefined;
3228
- catalogId?: number | null | undefined;
3229
- colors?: string[] | null | undefined;
3230
- colorIds?: number[] | null | undefined;
3231
- description?: string | null | undefined;
3232
- measurementLength?: number | null | undefined;
3233
- measurementWidth?: number | null | undefined;
3234
- packageSizeId?: number | null | undefined;
3235
- photoUrls?: string[] | null | undefined;
3236
- size?: string | null | undefined;
3237
- sizeId?: number | null | undefined;
3238
- statusId?: number | null | undefined;
3239
- title?: string | null | undefined;
3240
- isDraft?: boolean | null | undefined;
3241
- isArchived?: boolean | null | undefined;
3242
- availableQuantity?: number | null | undefined;
3243
- material?: number[] | null | undefined;
3244
- manufacturerLabelling?: string | null | undefined;
3245
- labels?: string[] | null | undefined;
3246
- };
3247
- createdAt?: Date | null | undefined;
3248
- platformUrl?: string | null | undefined;
3249
- };
3250
- };
3251
- } | {
3252
- type: "LIFECYCLE_COMPLETED";
3253
- data: {
3254
- accountId: string;
3255
- };
3256
- } | {
3257
- type: "LIFECYCLE_STARTED";
3258
- data: {
3259
- accountId: string;
3260
- caseId: string;
3261
- };
3262
- } | {
3263
- type: "PUBLISHED";
3264
- data: {
3265
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3266
- };
3267
- } | {
3268
- type: "REPUBLISHING";
3269
- data: {
3270
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3271
- publishingDate?: Date | null | undefined;
3272
- priceDropPayload?: {
3273
- value: number;
3274
- type: "PERCENTAGE" | "ABSOLUTE";
3275
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3276
- roundStep?: number | null | undefined;
3277
- maxRounds?: number | null | undefined;
3278
- } | null | undefined;
3279
- isTransfer?: boolean | null | undefined;
3280
- targetAccountId?: string | null | undefined;
3281
- };
3282
- } | {
3283
- type: "REPUBLISHING_RETRY";
3284
- data: {
3285
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3286
- attemptNumber: number;
3287
- maxAttempts: number;
3288
- previousHistoryId: string;
3289
- originalFailureDate: Date;
3290
- fields?: {
3291
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3292
- autoFixable: boolean;
3293
- error?: string | null | undefined;
3294
- }[] | null | undefined;
3295
- priceDropPayload?: {
3296
- value: number;
3297
- type: "PERCENTAGE" | "ABSOLUTE";
3298
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3299
- roundStep?: number | null | undefined;
3300
- maxRounds?: number | null | undefined;
3301
- } | null | undefined;
3302
- };
3303
- } | {
3304
- type: "SCHEDULED";
3305
- data: {
3306
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3307
- publishingDate?: Date | null | undefined;
3308
- };
3309
- } | {
3310
- type: "SCHEDULED_RETRY";
3311
- data: {
3312
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3313
- attemptNumber: number;
3314
- maxAttempts: number;
3315
- previousHistoryId: string;
3316
- originalFailureDate: Date;
3317
- fields?: {
3318
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3319
- autoFixable: boolean;
3320
- error?: string | null | undefined;
3321
- }[] | null | undefined;
3322
- };
3323
- } | null | undefined;
3324
- accountId?: string | null | undefined;
3325
- requestId?: string | null | undefined;
3326
- targetDate?: Date | null | undefined;
3327
- }>, "many">>>;
3328
- createdAt: z.ZodDate;
3329
- updatedAt: z.ZodDate;
3330
- }, "strip", z.ZodTypeAny, {
3331
- userId: string | number;
3332
- id: string | number;
3333
- updatedAt: Date;
3334
- name: string;
3335
- createdAt: Date;
3336
- sold: boolean;
3337
- state?: number | null | undefined;
3338
- colorIds?: number[] | null | undefined;
3339
- description?: string | null | undefined;
3340
- packageSizeId?: number | null | undefined;
3341
- sizeId?: number | null | undefined;
3342
- labels?: {
3343
- itemId: string | number;
3344
- labelId: string | number;
3345
- label?: {
3346
- id: string | number;
3347
- name: string;
3348
- createdAt: Date;
3349
- isUserLabel: boolean;
3350
- userId?: string | number | null | undefined;
3351
- itemCount?: number | null | undefined;
3352
- parentId?: unknown;
3353
- } | null | undefined;
3354
- }[] | null | undefined;
3355
- files?: {
3356
- itemId: string | number;
3357
- fileId: string;
3358
- index?: number | null | undefined;
3359
- file?: {
3360
- path: string;
3361
- userId: string | number;
3362
- id: string;
3363
- createdAt: Date;
3364
- signedUrl: string;
3365
- } | null | undefined;
3366
- }[] | null | undefined;
3367
- fields?: {
3368
- value: string;
3369
- itemId: string | number;
3370
- fieldId: string | number;
3371
- }[] | null | undefined;
3372
- sku?: string | null | undefined;
3373
- categoryId?: number | null | undefined;
3374
- brandId?: string | number | null | undefined;
3375
- sex?: string | null | undefined;
3376
- purchasePrice?: number | null | undefined;
3377
- purchaseDate?: Date | null | undefined;
3378
- purchasePlaceId?: string | number | null | undefined;
3379
- purchased?: boolean | null | undefined;
3380
- sellingPrice?: number | null | undefined;
3381
- sellingDate?: Date | null | undefined;
3382
- sellingPlaceId?: string | number | null | undefined;
3383
- estimatedPrice?: number | null | undefined;
3384
- fees?: {
3385
- value: number;
3386
- type: string;
3387
- userId: string | number;
3388
- id: string | number;
3389
- updatedAt: Date;
3390
- name: string;
3391
- createdAt: Date;
3392
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
3393
- startDate: Date;
3394
- active: boolean;
3395
- description?: string | null | undefined;
3396
- itemId?: string | number | null | undefined;
3397
- endDate?: Date | null | undefined;
3398
- parentFeeId?: string | number | null | undefined;
3399
- }[] | null | undefined;
3400
- feesSum?: number | null | undefined;
3401
- customerId?: string | number | null | undefined;
3402
- customer?: {
3403
- userId: string | number;
3404
- id: string | number;
3405
- email: string;
3406
- firstName: string;
3407
- lastName: string;
3408
- birthDate: Date;
3409
- idNumber: string;
3410
- phone: string;
3411
- iban: string;
3412
- bic: string;
3413
- phoneVerified: boolean;
3414
- } | null | undefined;
3415
- customerType?: string | null | undefined;
3416
- customerPaid?: boolean | null | undefined;
3417
- customerPaidDate?: Date | null | undefined;
3418
- customerPaidType?: string | null | undefined;
3419
- contractId?: string | number | null | undefined;
3420
- lastHistory?: {
3421
- type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
3422
- id: string;
3423
- createdAt: Date;
3424
- itemId: string | number;
3425
- data?: {
3426
- type: "ACTION_CANCELED";
3427
- data: {
3428
- targetItemHistoryId: string;
3429
- };
3430
- } | {
3431
- type: "BUYER_PAID";
3432
- data: {
3433
- soldAccountId: string;
3434
- soldOrderId: string;
3435
- soldConversationId?: string | null | undefined;
3436
- };
3437
- } | {
3438
- type: "DELIVERED";
3439
- data: {
3440
- soldAccountId: string;
3441
- soldOrderId: string;
3442
- soldConversationId?: string | null | undefined;
3443
- };
3444
- } | {
3445
- type: "EMPTY";
3446
- } | {
3447
- type: "FAILED_TO_PUBLISH";
3448
- data: {
3449
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3450
- accountId?: string | null | undefined;
3451
- reason?: string | null | undefined;
3452
- fields?: {
3453
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3454
- autoFixable: boolean;
3455
- error?: string | null | undefined;
3456
- }[] | null | undefined;
3457
- itemHistoryId?: string | null | undefined;
3458
- };
3459
- } | {
3460
- type: "IMAGE_PROCESSING_DONE";
3461
- data: {
3462
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3463
- variations?: {
3464
- fileId: string;
3465
- seed: number;
3466
- phash: string;
3467
- distanceOriginal: number;
3468
- originalImageUrl: string;
3469
- originalPhash: string;
3470
- }[] | null | undefined;
3471
- originalPhashes?: string[] | null | undefined;
3472
- };
3473
- } | {
3474
- type: "IMPORTED";
3475
- data: {
3476
- post: {
3477
- platformId: string;
3478
- post: {
3479
- status?: string | null | undefined;
3480
- price?: number | null | undefined;
3481
- currency?: string | null | undefined;
3482
- brand?: string | null | undefined;
3483
- catalog?: string | null | undefined;
3484
- catalogId?: number | null | undefined;
3485
- colors?: string[] | null | undefined;
3486
- colorIds?: number[] | null | undefined;
3487
- description?: string | null | undefined;
3488
- measurementLength?: number | null | undefined;
3489
- measurementWidth?: number | null | undefined;
3490
- packageSizeId?: number | null | undefined;
3491
- photoUrls?: string[] | null | undefined;
3492
- size?: string | null | undefined;
3493
- sizeId?: number | null | undefined;
3494
- statusId?: number | null | undefined;
3495
- title?: string | null | undefined;
3496
- isDraft?: boolean | null | undefined;
3497
- isArchived?: boolean | null | undefined;
3498
- availableQuantity?: number | null | undefined;
3499
- material?: number[] | null | undefined;
3500
- manufacturerLabelling?: string | null | undefined;
3501
- labels?: string[] | null | undefined;
3502
- };
3503
- createdAt?: Date | null | undefined;
3504
- platformUrl?: string | null | undefined;
3505
- };
3506
- };
3507
- } | {
3508
- type: "LIFECYCLE_COMPLETED";
3509
- data: {
3510
- accountId: string;
3511
- };
3512
- } | {
3513
- type: "LIFECYCLE_STARTED";
3514
- data: {
3515
- accountId: string;
3516
- caseId: string;
3517
- };
3518
- } | {
3519
- type: "PUBLISHED";
3520
- data: {
3521
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3522
- };
3523
- } | {
3524
- type: "REPUBLISHING";
3525
- data: {
3526
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3527
- publishingDate?: Date | null | undefined;
3528
- priceDropPayload?: {
3529
- value: number;
3530
- type: "PERCENTAGE" | "ABSOLUTE";
3531
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3532
- roundStep?: number | null | undefined;
3533
- maxRounds?: number | null | undefined;
3534
- } | null | undefined;
3535
- isTransfer?: boolean | null | undefined;
3536
- targetAccountId?: string | null | undefined;
3537
- };
3538
- } | {
3539
- type: "REPUBLISHING_RETRY";
3540
- data: {
3541
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3542
- attemptNumber: number;
3543
- maxAttempts: number;
3544
- previousHistoryId: string;
3545
- originalFailureDate: Date;
3546
- fields?: {
3547
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3548
- autoFixable: boolean;
3549
- error?: string | null | undefined;
3550
- }[] | null | undefined;
3551
- priceDropPayload?: {
3552
- value: number;
3553
- type: "PERCENTAGE" | "ABSOLUTE";
3554
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3555
- roundStep?: number | null | undefined;
3556
- maxRounds?: number | null | undefined;
3557
- } | null | undefined;
3558
- };
3559
- } | {
3560
- type: "SCHEDULED";
3561
- data: {
3562
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3563
- publishingDate?: Date | null | undefined;
3564
- };
3565
- } | {
3566
- type: "SCHEDULED_RETRY";
3567
- data: {
3568
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3569
- attemptNumber: number;
3570
- maxAttempts: number;
3571
- previousHistoryId: string;
3572
- originalFailureDate: Date;
3573
- fields?: {
3574
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3575
- autoFixable: boolean;
3576
- error?: string | null | undefined;
3577
- }[] | null | undefined;
3578
- };
3579
- } | null | undefined;
3580
- accountId?: string | null | undefined;
3581
- requestId?: string | null | undefined;
3582
- targetDate?: Date | null | undefined;
3583
- } | null | undefined;
3584
- platforms?: {
3585
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
3586
- id: string;
3587
- updatedAt: Date;
3588
- createdAt: Date;
3589
- accountId: string;
3590
- itemId: string | number;
3591
- platformId: string;
3592
- platformUrl: string;
3593
- platformPrice: number;
3594
- publishedAt: Date;
3595
- conversationId?: string | null | undefined;
3596
- account?: {
3597
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
3598
- userId: string | number;
3599
- name: string;
3600
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3601
- accountId: string;
3602
- locale?: string | null | undefined;
3603
- night?: {
3604
- startsAt: Date;
3605
- endsAt: Date;
3606
- } | null | undefined;
3607
- favoritesMaxDelay?: number | null | undefined;
3608
- ordersMaxDelay?: number | null | undefined;
3609
- conversationsMaxDelay?: number | null | undefined;
3610
- } | null | undefined;
3611
- viewsCount?: number | null | undefined;
3612
- favoritesCount?: number | null | undefined;
3613
- }[] | null | undefined;
3614
- history?: {
3615
- type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
3616
- id: string;
3617
- createdAt: Date;
3618
- itemId: string | number;
3619
- data?: {
3620
- type: "ACTION_CANCELED";
3621
- data: {
3622
- targetItemHistoryId: string;
3623
- };
3624
- } | {
3625
- type: "BUYER_PAID";
3626
- data: {
3627
- soldAccountId: string;
3628
- soldOrderId: string;
3629
- soldConversationId?: string | null | undefined;
3630
- };
3631
- } | {
3632
- type: "DELIVERED";
3633
- data: {
3634
- soldAccountId: string;
3635
- soldOrderId: string;
3636
- soldConversationId?: string | null | undefined;
3637
- };
3638
- } | {
3639
- type: "EMPTY";
3640
- } | {
3641
- type: "FAILED_TO_PUBLISH";
3642
- data: {
3643
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3644
- accountId?: string | null | undefined;
3645
- reason?: string | null | undefined;
3646
- fields?: {
3647
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3648
- autoFixable: boolean;
3649
- error?: string | null | undefined;
3650
- }[] | null | undefined;
3651
- itemHistoryId?: string | null | undefined;
3652
- };
3653
- } | {
3654
- type: "IMAGE_PROCESSING_DONE";
3655
- data: {
3656
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3657
- variations?: {
3658
- fileId: string;
3659
- seed: number;
3660
- phash: string;
3661
- distanceOriginal: number;
3662
- originalImageUrl: string;
3663
- originalPhash: string;
3664
- }[] | null | undefined;
3665
- originalPhashes?: string[] | null | undefined;
3666
- };
3667
- } | {
3668
- type: "IMPORTED";
3669
- data: {
3670
- post: {
3671
- platformId: string;
3672
- post: {
3673
- status?: string | null | undefined;
3674
- price?: number | null | undefined;
3675
- currency?: string | null | undefined;
3676
- brand?: string | null | undefined;
3677
- catalog?: string | null | undefined;
3678
- catalogId?: number | null | undefined;
3679
- colors?: string[] | null | undefined;
3680
- colorIds?: number[] | null | undefined;
3681
- description?: string | null | undefined;
3682
- measurementLength?: number | null | undefined;
3683
- measurementWidth?: number | null | undefined;
3684
- packageSizeId?: number | null | undefined;
3685
- photoUrls?: string[] | null | undefined;
3686
- size?: string | null | undefined;
3687
- sizeId?: number | null | undefined;
3688
- statusId?: number | null | undefined;
3689
- title?: string | null | undefined;
3690
- isDraft?: boolean | null | undefined;
3691
- isArchived?: boolean | null | undefined;
3692
- availableQuantity?: number | null | undefined;
3693
- material?: number[] | null | undefined;
3694
- manufacturerLabelling?: string | null | undefined;
3695
- labels?: string[] | null | undefined;
3696
- };
3697
- createdAt?: Date | null | undefined;
3698
- platformUrl?: string | null | undefined;
3699
- };
3700
- };
3701
- } | {
3702
- type: "LIFECYCLE_COMPLETED";
3703
- data: {
3704
- accountId: string;
3705
- };
3706
- } | {
3707
- type: "LIFECYCLE_STARTED";
3708
- data: {
3709
- accountId: string;
3710
- caseId: string;
3711
- };
3712
- } | {
3713
- type: "PUBLISHED";
3714
- data: {
3715
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3716
- };
3717
- } | {
3718
- type: "REPUBLISHING";
3719
- data: {
3720
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3721
- publishingDate?: Date | null | undefined;
3722
- priceDropPayload?: {
3723
- value: number;
3724
- type: "PERCENTAGE" | "ABSOLUTE";
3725
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3726
- roundStep?: number | null | undefined;
3727
- maxRounds?: number | null | undefined;
3728
- } | null | undefined;
3729
- isTransfer?: boolean | null | undefined;
3730
- targetAccountId?: string | null | undefined;
3731
- };
3732
- } | {
3733
- type: "REPUBLISHING_RETRY";
3734
- data: {
3735
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3736
- attemptNumber: number;
3737
- maxAttempts: number;
3738
- previousHistoryId: string;
3739
- originalFailureDate: Date;
3740
- fields?: {
3741
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3742
- autoFixable: boolean;
3743
- error?: string | null | undefined;
3744
- }[] | null | undefined;
3745
- priceDropPayload?: {
3746
- value: number;
3747
- type: "PERCENTAGE" | "ABSOLUTE";
3748
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3749
- roundStep?: number | null | undefined;
3750
- maxRounds?: number | null | undefined;
3751
- } | null | undefined;
3752
- };
3753
- } | {
3754
- type: "SCHEDULED";
3755
- data: {
3756
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3757
- publishingDate?: Date | null | undefined;
3758
- };
3759
- } | {
3760
- type: "SCHEDULED_RETRY";
3761
- data: {
3762
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3763
- attemptNumber: number;
3764
- maxAttempts: number;
3765
- previousHistoryId: string;
3766
- originalFailureDate: Date;
3767
- fields?: {
3768
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3769
- autoFixable: boolean;
3770
- error?: string | null | undefined;
3771
- }[] | null | undefined;
3772
- };
3773
- } | null | undefined;
3774
- accountId?: string | null | undefined;
3775
- requestId?: string | null | undefined;
3776
- targetDate?: Date | null | undefined;
3777
- }[] | null | undefined;
3778
- }, {
3779
- userId: string | number;
3780
- id: string | number;
3781
- updatedAt: Date;
3782
- name: string;
3783
- createdAt: Date;
3784
- sold: boolean;
3785
- state?: number | null | undefined;
3786
- colorIds?: number[] | null | undefined;
3787
- description?: string | null | undefined;
3788
- packageSizeId?: number | null | undefined;
3789
- sizeId?: number | null | undefined;
3790
- labels?: {
3791
- itemId: string | number;
3792
- labelId: string | number;
3793
- label?: {
3794
- id: string | number;
3795
- name: string;
3796
- createdAt: Date;
3797
- isUserLabel: boolean;
3798
- userId?: string | number | null | undefined;
3799
- itemCount?: number | null | undefined;
3800
- parentId?: unknown;
3801
- } | null | undefined;
3802
- }[] | null | undefined;
3803
- files?: {
3804
- itemId: string | number;
3805
- fileId: string;
3806
- index?: number | null | undefined;
3807
- file?: {
3808
- path: string;
3809
- userId: string | number;
3810
- id: string;
3811
- createdAt: Date;
3812
- signedUrl: string;
3813
- } | null | undefined;
3814
- }[] | null | undefined;
3815
- fields?: {
3816
- value: string;
3817
- itemId: string | number;
3818
- fieldId: string | number;
3819
- }[] | null | undefined;
3820
- sku?: string | null | undefined;
3821
- categoryId?: number | null | undefined;
3822
- brandId?: string | number | null | undefined;
3823
- sex?: string | null | undefined;
3824
- purchasePrice?: number | null | undefined;
3825
- purchaseDate?: Date | null | undefined;
3826
- purchasePlaceId?: string | number | null | undefined;
3827
- purchased?: boolean | null | undefined;
3828
- sellingPrice?: number | null | undefined;
3829
- sellingDate?: Date | null | undefined;
3830
- sellingPlaceId?: string | number | null | undefined;
3831
- estimatedPrice?: number | null | undefined;
3832
- fees?: {
3833
- value: number;
3834
- type: string;
3835
- userId: string | number;
3836
- id: string | number;
3837
- updatedAt: Date;
3838
- name: string;
3839
- createdAt: Date;
3840
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
3841
- startDate: Date;
3842
- active: boolean;
3843
- description?: string | null | undefined;
3844
- itemId?: string | number | null | undefined;
3845
- endDate?: Date | null | undefined;
3846
- parentFeeId?: string | number | null | undefined;
3847
- }[] | null | undefined;
3848
- feesSum?: number | null | undefined;
3849
- customerId?: string | number | null | undefined;
3850
- customer?: {
3851
- userId: string | number;
3852
- id: string | number;
3853
- email: string;
3854
- firstName: string;
3855
- lastName: string;
3856
- birthDate: Date;
3857
- idNumber: string;
3858
- phone: string;
3859
- iban: string;
3860
- bic: string;
3861
- phoneVerified: boolean;
3862
- } | null | undefined;
3863
- customerType?: string | null | undefined;
3864
- customerPaid?: boolean | null | undefined;
3865
- customerPaidDate?: Date | null | undefined;
3866
- customerPaidType?: string | null | undefined;
3867
- contractId?: string | number | null | undefined;
3868
- lastHistory?: {
3869
- type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
3870
- id: string;
3871
- createdAt: Date;
3872
- itemId: string | number;
3873
- data?: {
3874
- type: "ACTION_CANCELED";
3875
- data: {
3876
- targetItemHistoryId: string;
3877
- };
3878
- } | {
3879
- type: "BUYER_PAID";
3880
- data: {
3881
- soldAccountId: string;
3882
- soldOrderId: string;
3883
- soldConversationId?: string | null | undefined;
3884
- };
3885
- } | {
3886
- type: "DELIVERED";
3887
- data: {
3888
- soldAccountId: string;
3889
- soldOrderId: string;
3890
- soldConversationId?: string | null | undefined;
3891
- };
3892
- } | {
3893
- type: "EMPTY";
3894
- } | {
3895
- type: "FAILED_TO_PUBLISH";
3896
- data: {
3897
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3898
- accountId?: string | null | undefined;
3899
- reason?: string | null | undefined;
3900
- fields?: {
3901
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3902
- autoFixable: boolean;
3903
- error?: string | null | undefined;
3904
- }[] | null | undefined;
3905
- itemHistoryId?: string | null | undefined;
3906
- };
3907
- } | {
3908
- type: "IMAGE_PROCESSING_DONE";
3909
- data: {
3910
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3911
- variations?: {
3912
- fileId: string;
3913
- seed: number;
3914
- phash: string;
3915
- distanceOriginal: number;
3916
- originalImageUrl: string;
3917
- originalPhash: string;
3918
- }[] | null | undefined;
3919
- originalPhashes?: string[] | null | undefined;
3920
- };
3921
- } | {
3922
- type: "IMPORTED";
3923
- data: {
3924
- post: {
3925
- platformId: string;
3926
- post: {
3927
- status?: string | null | undefined;
3928
- price?: number | null | undefined;
3929
- currency?: string | null | undefined;
3930
- brand?: string | null | undefined;
3931
- catalog?: string | null | undefined;
3932
- catalogId?: number | null | undefined;
3933
- colors?: string[] | null | undefined;
3934
- colorIds?: number[] | null | undefined;
3935
- description?: string | null | undefined;
3936
- measurementLength?: number | null | undefined;
3937
- measurementWidth?: number | null | undefined;
3938
- packageSizeId?: number | null | undefined;
3939
- photoUrls?: string[] | null | undefined;
3940
- size?: string | null | undefined;
3941
- sizeId?: number | null | undefined;
3942
- statusId?: number | null | undefined;
3943
- title?: string | null | undefined;
3944
- isDraft?: boolean | null | undefined;
3945
- isArchived?: boolean | null | undefined;
3946
- availableQuantity?: number | null | undefined;
3947
- material?: number[] | null | undefined;
3948
- manufacturerLabelling?: string | null | undefined;
3949
- labels?: string[] | null | undefined;
3950
- };
3951
- createdAt?: Date | null | undefined;
3952
- platformUrl?: string | null | undefined;
3953
- };
3954
- };
3955
- } | {
3956
- type: "LIFECYCLE_COMPLETED";
3957
- data: {
3958
- accountId: string;
3959
- };
3960
- } | {
3961
- type: "LIFECYCLE_STARTED";
3962
- data: {
3963
- accountId: string;
3964
- caseId: string;
3965
- };
3966
- } | {
3967
- type: "PUBLISHED";
3968
- data: {
3969
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3970
- };
3971
- } | {
3972
- type: "REPUBLISHING";
3973
- data: {
3974
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3975
- publishingDate?: Date | null | undefined;
3976
- priceDropPayload?: {
3977
- value: number;
3978
- type: "PERCENTAGE" | "ABSOLUTE";
3979
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3980
- roundStep?: number | null | undefined;
3981
- maxRounds?: number | null | undefined;
3982
- } | null | undefined;
3983
- isTransfer?: boolean | null | undefined;
3984
- targetAccountId?: string | null | undefined;
3985
- };
3986
- } | {
3987
- type: "REPUBLISHING_RETRY";
3988
- data: {
3989
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3990
- attemptNumber: number;
3991
- maxAttempts: number;
3992
- previousHistoryId: string;
3993
- originalFailureDate: Date;
3994
- fields?: {
3995
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3996
- autoFixable: boolean;
3997
- error?: string | null | undefined;
3998
- }[] | null | undefined;
3999
- priceDropPayload?: {
4000
- value: number;
4001
- type: "PERCENTAGE" | "ABSOLUTE";
4002
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4003
- roundStep?: number | null | undefined;
4004
- maxRounds?: number | null | undefined;
4005
- } | null | undefined;
4006
- };
4007
- } | {
4008
- type: "SCHEDULED";
4009
- data: {
4010
- platform: "ETSY" | "SHOPIFY" | "VINTED";
4011
- publishingDate?: Date | null | undefined;
4012
- };
4013
- } | {
4014
- type: "SCHEDULED_RETRY";
4015
- data: {
4016
- platform: "ETSY" | "SHOPIFY" | "VINTED";
4017
- attemptNumber: number;
4018
- maxAttempts: number;
4019
- previousHistoryId: string;
4020
- originalFailureDate: Date;
4021
- fields?: {
4022
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4023
- autoFixable: boolean;
4024
- error?: string | null | undefined;
4025
- }[] | null | undefined;
4026
- };
4027
- } | null | undefined;
4028
- accountId?: string | null | undefined;
4029
- requestId?: string | null | undefined;
4030
- targetDate?: Date | null | undefined;
4031
- } | null | undefined;
4032
- platforms?: {
4033
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
4034
- id: string;
4035
- updatedAt: Date;
4036
- createdAt: Date;
4037
- accountId: string;
4038
- itemId: string | number;
4039
- platformId: string;
4040
- platformUrl: string;
4041
- platformPrice: number;
4042
- publishedAt: Date;
4043
- conversationId?: string | null | undefined;
4044
- account?: {
4045
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
4046
- userId: string | number;
4047
- name: string;
4048
- platform: "ETSY" | "SHOPIFY" | "VINTED";
4049
- accountId: string;
4050
- locale?: string | null | undefined;
4051
- night?: {
4052
- startsAt: Date;
4053
- endsAt: Date;
4054
- } | null | undefined;
4055
- favoritesMaxDelay?: number | null | undefined;
4056
- ordersMaxDelay?: number | null | undefined;
4057
- conversationsMaxDelay?: number | null | undefined;
4058
- } | null | undefined;
4059
- viewsCount?: number | null | undefined;
4060
- favoritesCount?: number | null | undefined;
4061
- }[] | null | undefined;
4062
- history?: {
4063
- type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
4064
- id: string;
4065
- createdAt: Date;
4066
- itemId: string | number;
4067
- data?: {
4068
- type: "ACTION_CANCELED";
4069
- data: {
4070
- targetItemHistoryId: string;
4071
- };
4072
- } | {
4073
- type: "BUYER_PAID";
4074
- data: {
4075
- soldAccountId: string;
4076
- soldOrderId: string;
4077
- soldConversationId?: string | null | undefined;
4078
- };
4079
- } | {
4080
- type: "DELIVERED";
4081
- data: {
4082
- soldAccountId: string;
4083
- soldOrderId: string;
4084
- soldConversationId?: string | null | undefined;
4085
- };
4086
- } | {
4087
- type: "EMPTY";
4088
- } | {
2490
+ } | {
4089
2491
  type: "FAILED_TO_PUBLISH";
4090
2492
  data: {
4091
2493
  platform: "ETSY" | "SHOPIFY" | "VINTED";
@@ -4218,20 +2620,87 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
4218
2620
  error?: string | null | undefined;
4219
2621
  }[] | null | undefined;
4220
2622
  };
2623
+ } | {
2624
+ type: "UPDATED";
2625
+ data: {
2626
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2627
+ };
2628
+ } | {
2629
+ type: "UPDATING";
2630
+ data: {
2631
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2632
+ post?: {
2633
+ status?: string | null | undefined;
2634
+ price?: number | null | undefined;
2635
+ currency?: string | null | undefined;
2636
+ brand?: string | null | undefined;
2637
+ catalog?: string | null | undefined;
2638
+ catalogId?: number | null | undefined;
2639
+ colors?: string[] | null | undefined;
2640
+ colorIds?: number[] | null | undefined;
2641
+ description?: string | null | undefined;
2642
+ measurementLength?: number | null | undefined;
2643
+ measurementWidth?: number | null | undefined;
2644
+ packageSizeId?: number | null | undefined;
2645
+ photoUrls?: string[] | null | undefined;
2646
+ size?: string | null | undefined;
2647
+ sizeId?: number | null | undefined;
2648
+ statusId?: number | null | undefined;
2649
+ title?: string | null | undefined;
2650
+ isDraft?: boolean | null | undefined;
2651
+ isArchived?: boolean | null | undefined;
2652
+ availableQuantity?: number | null | undefined;
2653
+ material?: number[] | null | undefined;
2654
+ manufacturerLabelling?: string | null | undefined;
2655
+ labels?: string[] | null | undefined;
2656
+ } | null | undefined;
2657
+ targetDate?: Date | null | undefined;
2658
+ };
4221
2659
  } | null | undefined;
4222
2660
  accountId?: string | null | undefined;
4223
2661
  requestId?: string | null | undefined;
4224
2662
  targetDate?: Date | null | undefined;
2663
+ } | null | undefined;
2664
+ platforms?: {
2665
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2666
+ id: string;
2667
+ updatedAt: Date;
2668
+ createdAt: Date;
2669
+ accountId: string;
2670
+ itemId: string | number;
2671
+ platformId: string;
2672
+ platformUrl: string;
2673
+ platformPrice: number;
2674
+ publishedAt: Date;
2675
+ conversationId?: string | null | undefined;
2676
+ account?: {
2677
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
2678
+ userId: string | number;
2679
+ name: string;
2680
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2681
+ accountId: string;
2682
+ locale?: string | null | undefined;
2683
+ night?: {
2684
+ startsAt: Date;
2685
+ endsAt: Date;
2686
+ } | null | undefined;
2687
+ favoritesMaxDelay?: number | null | undefined;
2688
+ ordersMaxDelay?: number | null | undefined;
2689
+ conversationsMaxDelay?: number | null | undefined;
2690
+ } | null | undefined;
2691
+ viewsCount?: number | null | undefined;
2692
+ favoritesCount?: number | null | undefined;
4225
2693
  }[] | null | undefined;
4226
- }>, "many">;
4227
- }, "strip", z.ZodTypeAny, {
4228
- items: {
4229
- userId: string | number;
4230
- id: string | number;
2694
+ }, {
2695
+ userId: number;
2696
+ id: number;
4231
2697
  updatedAt: Date;
4232
2698
  name: string;
4233
2699
  createdAt: Date;
4234
2700
  sold: boolean;
2701
+ actions: {
2702
+ perAccount: Record<string, ("REPUBLISH" | "PUBLISH" | "PUBLISH_CANCEL" | "REPUBLISH_CANCEL" | "UPDATE")[]>;
2703
+ };
4235
2704
  state?: number | null | undefined;
4236
2705
  colorIds?: number[] | null | undefined;
4237
2706
  description?: string | null | undefined;
@@ -4269,15 +2738,15 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
4269
2738
  }[] | null | undefined;
4270
2739
  sku?: string | null | undefined;
4271
2740
  categoryId?: number | null | undefined;
4272
- brandId?: string | number | null | undefined;
2741
+ brandId?: number | null | undefined;
4273
2742
  sex?: string | null | undefined;
4274
2743
  purchasePrice?: number | null | undefined;
4275
2744
  purchaseDate?: Date | null | undefined;
4276
- purchasePlaceId?: string | number | null | undefined;
2745
+ purchasePlaceId?: number | null | undefined;
4277
2746
  purchased?: boolean | null | undefined;
4278
2747
  sellingPrice?: number | null | undefined;
4279
2748
  sellingDate?: Date | null | undefined;
4280
- sellingPlaceId?: string | number | null | undefined;
2749
+ sellingPlaceId?: number | null | undefined;
4281
2750
  estimatedPrice?: number | null | undefined;
4282
2751
  fees?: {
4283
2752
  value: number;
@@ -4296,25 +2765,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
4296
2765
  parentFeeId?: string | number | null | undefined;
4297
2766
  }[] | null | undefined;
4298
2767
  feesSum?: number | null | undefined;
4299
- customerId?: string | number | null | undefined;
4300
- customer?: {
4301
- userId: string | number;
4302
- id: string | number;
4303
- email: string;
4304
- firstName: string;
4305
- lastName: string;
4306
- birthDate: Date;
4307
- idNumber: string;
4308
- phone: string;
4309
- iban: string;
4310
- bic: string;
4311
- phoneVerified: boolean;
4312
- } | null | undefined;
4313
- customerType?: string | null | undefined;
4314
- customerPaid?: boolean | null | undefined;
4315
- customerPaidDate?: Date | null | undefined;
4316
- customerPaidType?: string | null | undefined;
4317
- contractId?: string | number | null | undefined;
4318
2768
  lastHistory?: {
4319
2769
  type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
4320
2770
  id: string;
@@ -4474,6 +2924,42 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
4474
2924
  error?: string | null | undefined;
4475
2925
  }[] | null | undefined;
4476
2926
  };
2927
+ } | {
2928
+ type: "UPDATED";
2929
+ data: {
2930
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2931
+ };
2932
+ } | {
2933
+ type: "UPDATING";
2934
+ data: {
2935
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2936
+ post?: {
2937
+ status?: string | null | undefined;
2938
+ price?: number | null | undefined;
2939
+ currency?: string | null | undefined;
2940
+ brand?: string | null | undefined;
2941
+ catalog?: string | null | undefined;
2942
+ catalogId?: number | null | undefined;
2943
+ colors?: string[] | null | undefined;
2944
+ colorIds?: number[] | null | undefined;
2945
+ description?: string | null | undefined;
2946
+ measurementLength?: number | null | undefined;
2947
+ measurementWidth?: number | null | undefined;
2948
+ packageSizeId?: number | null | undefined;
2949
+ photoUrls?: string[] | null | undefined;
2950
+ size?: string | null | undefined;
2951
+ sizeId?: number | null | undefined;
2952
+ statusId?: number | null | undefined;
2953
+ title?: string | null | undefined;
2954
+ isDraft?: boolean | null | undefined;
2955
+ isArchived?: boolean | null | undefined;
2956
+ availableQuantity?: number | null | undefined;
2957
+ material?: number[] | null | undefined;
2958
+ manufacturerLabelling?: string | null | undefined;
2959
+ labels?: string[] | null | undefined;
2960
+ } | null | undefined;
2961
+ targetDate?: Date | null | undefined;
2962
+ };
4477
2963
  } | null | undefined;
4478
2964
  accountId?: string | null | undefined;
4479
2965
  requestId?: string | null | undefined;
@@ -4484,32 +2970,108 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
4484
2970
  id: string;
4485
2971
  updatedAt: Date;
4486
2972
  createdAt: Date;
4487
- accountId: string;
4488
- itemId: string | number;
4489
- platformId: string;
4490
- platformUrl: string;
4491
- platformPrice: number;
4492
- publishedAt: Date;
4493
- conversationId?: string | null | undefined;
4494
- account?: {
4495
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
4496
- userId: string | number;
4497
- name: string;
4498
- platform: "ETSY" | "SHOPIFY" | "VINTED";
4499
- accountId: string;
4500
- locale?: string | null | undefined;
4501
- night?: {
4502
- startsAt: Date;
4503
- endsAt: Date;
4504
- } | null | undefined;
4505
- favoritesMaxDelay?: number | null | undefined;
4506
- ordersMaxDelay?: number | null | undefined;
4507
- conversationsMaxDelay?: number | null | undefined;
4508
- } | null | undefined;
4509
- viewsCount?: number | null | undefined;
4510
- favoritesCount?: number | null | undefined;
2973
+ accountId: string;
2974
+ itemId: string | number;
2975
+ platformId: string;
2976
+ platformUrl: string;
2977
+ platformPrice: number;
2978
+ publishedAt: Date;
2979
+ conversationId?: string | null | undefined;
2980
+ account?: {
2981
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
2982
+ userId: string | number;
2983
+ name: string;
2984
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2985
+ accountId: string;
2986
+ locale?: string | null | undefined;
2987
+ night?: {
2988
+ startsAt: Date;
2989
+ endsAt: Date;
2990
+ } | null | undefined;
2991
+ favoritesMaxDelay?: number | null | undefined;
2992
+ ordersMaxDelay?: number | null | undefined;
2993
+ conversationsMaxDelay?: number | null | undefined;
2994
+ } | null | undefined;
2995
+ viewsCount?: number | null | undefined;
2996
+ favoritesCount?: number | null | undefined;
2997
+ }[] | null | undefined;
2998
+ }>, "many">;
2999
+ }, "strip", z.ZodTypeAny, {
3000
+ items: {
3001
+ userId: number;
3002
+ id: number;
3003
+ updatedAt: Date;
3004
+ name: string;
3005
+ createdAt: Date;
3006
+ sold: boolean;
3007
+ actions: {
3008
+ perAccount: Record<string, ("REPUBLISH" | "PUBLISH" | "PUBLISH_CANCEL" | "REPUBLISH_CANCEL" | "UPDATE")[]>;
3009
+ };
3010
+ state?: number | null | undefined;
3011
+ colorIds?: number[] | null | undefined;
3012
+ description?: string | null | undefined;
3013
+ packageSizeId?: number | null | undefined;
3014
+ sizeId?: number | null | undefined;
3015
+ labels?: {
3016
+ itemId: string | number;
3017
+ labelId: string | number;
3018
+ label?: {
3019
+ id: string | number;
3020
+ name: string;
3021
+ createdAt: Date;
3022
+ isUserLabel: boolean;
3023
+ userId?: string | number | null | undefined;
3024
+ itemCount?: number | null | undefined;
3025
+ parentId?: unknown;
3026
+ } | null | undefined;
3027
+ }[] | null | undefined;
3028
+ files?: {
3029
+ itemId: string | number;
3030
+ fileId: string;
3031
+ index?: number | null | undefined;
3032
+ file?: {
3033
+ path: string;
3034
+ userId: string | number;
3035
+ id: string;
3036
+ createdAt: Date;
3037
+ signedUrl: string;
3038
+ } | null | undefined;
3039
+ }[] | null | undefined;
3040
+ fields?: {
3041
+ value: string;
3042
+ itemId: string | number;
3043
+ fieldId: string | number;
3044
+ }[] | null | undefined;
3045
+ sku?: string | null | undefined;
3046
+ categoryId?: number | null | undefined;
3047
+ brandId?: number | null | undefined;
3048
+ sex?: string | null | undefined;
3049
+ purchasePrice?: number | null | undefined;
3050
+ purchaseDate?: Date | null | undefined;
3051
+ purchasePlaceId?: number | null | undefined;
3052
+ purchased?: boolean | null | undefined;
3053
+ sellingPrice?: number | null | undefined;
3054
+ sellingDate?: Date | null | undefined;
3055
+ sellingPlaceId?: number | null | undefined;
3056
+ estimatedPrice?: number | null | undefined;
3057
+ fees?: {
3058
+ value: number;
3059
+ type: string;
3060
+ userId: string | number;
3061
+ id: string | number;
3062
+ updatedAt: Date;
3063
+ name: string;
3064
+ createdAt: Date;
3065
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
3066
+ startDate: Date;
3067
+ active: boolean;
3068
+ description?: string | null | undefined;
3069
+ itemId?: string | number | null | undefined;
3070
+ endDate?: Date | null | undefined;
3071
+ parentFeeId?: string | number | null | undefined;
4511
3072
  }[] | null | undefined;
4512
- history?: {
3073
+ feesSum?: number | null | undefined;
3074
+ lastHistory?: {
4513
3075
  type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
4514
3076
  id: string;
4515
3077
  createdAt: Date;
@@ -4668,10 +3230,76 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
4668
3230
  error?: string | null | undefined;
4669
3231
  }[] | null | undefined;
4670
3232
  };
3233
+ } | {
3234
+ type: "UPDATED";
3235
+ data: {
3236
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3237
+ };
3238
+ } | {
3239
+ type: "UPDATING";
3240
+ data: {
3241
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3242
+ post?: {
3243
+ status?: string | null | undefined;
3244
+ price?: number | null | undefined;
3245
+ currency?: string | null | undefined;
3246
+ brand?: string | null | undefined;
3247
+ catalog?: string | null | undefined;
3248
+ catalogId?: number | null | undefined;
3249
+ colors?: string[] | null | undefined;
3250
+ colorIds?: number[] | null | undefined;
3251
+ description?: string | null | undefined;
3252
+ measurementLength?: number | null | undefined;
3253
+ measurementWidth?: number | null | undefined;
3254
+ packageSizeId?: number | null | undefined;
3255
+ photoUrls?: string[] | null | undefined;
3256
+ size?: string | null | undefined;
3257
+ sizeId?: number | null | undefined;
3258
+ statusId?: number | null | undefined;
3259
+ title?: string | null | undefined;
3260
+ isDraft?: boolean | null | undefined;
3261
+ isArchived?: boolean | null | undefined;
3262
+ availableQuantity?: number | null | undefined;
3263
+ material?: number[] | null | undefined;
3264
+ manufacturerLabelling?: string | null | undefined;
3265
+ labels?: string[] | null | undefined;
3266
+ } | null | undefined;
3267
+ targetDate?: Date | null | undefined;
3268
+ };
4671
3269
  } | null | undefined;
4672
3270
  accountId?: string | null | undefined;
4673
3271
  requestId?: string | null | undefined;
4674
3272
  targetDate?: Date | null | undefined;
3273
+ } | null | undefined;
3274
+ platforms?: {
3275
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
3276
+ id: string;
3277
+ updatedAt: Date;
3278
+ createdAt: Date;
3279
+ accountId: string;
3280
+ itemId: string | number;
3281
+ platformId: string;
3282
+ platformUrl: string;
3283
+ platformPrice: number;
3284
+ publishedAt: Date;
3285
+ conversationId?: string | null | undefined;
3286
+ account?: {
3287
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
3288
+ userId: string | number;
3289
+ name: string;
3290
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3291
+ accountId: string;
3292
+ locale?: string | null | undefined;
3293
+ night?: {
3294
+ startsAt: Date;
3295
+ endsAt: Date;
3296
+ } | null | undefined;
3297
+ favoritesMaxDelay?: number | null | undefined;
3298
+ ordersMaxDelay?: number | null | undefined;
3299
+ conversationsMaxDelay?: number | null | undefined;
3300
+ } | null | undefined;
3301
+ viewsCount?: number | null | undefined;
3302
+ favoritesCount?: number | null | undefined;
4675
3303
  }[] | null | undefined;
4676
3304
  }[];
4677
3305
  order: {
@@ -4771,12 +3399,15 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
4771
3399
  };
4772
3400
  }, {
4773
3401
  items: {
4774
- userId: string | number;
4775
- id: string | number;
3402
+ userId: number;
3403
+ id: number;
4776
3404
  updatedAt: Date;
4777
3405
  name: string;
4778
3406
  createdAt: Date;
4779
3407
  sold: boolean;
3408
+ actions: {
3409
+ perAccount: Record<string, ("REPUBLISH" | "PUBLISH" | "PUBLISH_CANCEL" | "REPUBLISH_CANCEL" | "UPDATE")[]>;
3410
+ };
4780
3411
  state?: number | null | undefined;
4781
3412
  colorIds?: number[] | null | undefined;
4782
3413
  description?: string | null | undefined;
@@ -4814,15 +3445,15 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
4814
3445
  }[] | null | undefined;
4815
3446
  sku?: string | null | undefined;
4816
3447
  categoryId?: number | null | undefined;
4817
- brandId?: string | number | null | undefined;
3448
+ brandId?: number | null | undefined;
4818
3449
  sex?: string | null | undefined;
4819
3450
  purchasePrice?: number | null | undefined;
4820
3451
  purchaseDate?: Date | null | undefined;
4821
- purchasePlaceId?: string | number | null | undefined;
3452
+ purchasePlaceId?: number | null | undefined;
4822
3453
  purchased?: boolean | null | undefined;
4823
3454
  sellingPrice?: number | null | undefined;
4824
3455
  sellingDate?: Date | null | undefined;
4825
- sellingPlaceId?: string | number | null | undefined;
3456
+ sellingPlaceId?: number | null | undefined;
4826
3457
  estimatedPrice?: number | null | undefined;
4827
3458
  fees?: {
4828
3459
  value: number;
@@ -4841,25 +3472,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
4841
3472
  parentFeeId?: string | number | null | undefined;
4842
3473
  }[] | null | undefined;
4843
3474
  feesSum?: number | null | undefined;
4844
- customerId?: string | number | null | undefined;
4845
- customer?: {
4846
- userId: string | number;
4847
- id: string | number;
4848
- email: string;
4849
- firstName: string;
4850
- lastName: string;
4851
- birthDate: Date;
4852
- idNumber: string;
4853
- phone: string;
4854
- iban: string;
4855
- bic: string;
4856
- phoneVerified: boolean;
4857
- } | null | undefined;
4858
- customerType?: string | null | undefined;
4859
- customerPaid?: boolean | null | undefined;
4860
- customerPaidDate?: Date | null | undefined;
4861
- customerPaidType?: string | null | undefined;
4862
- contractId?: string | number | null | undefined;
4863
3475
  lastHistory?: {
4864
3476
  type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
4865
3477
  id: string;
@@ -5019,6 +3631,42 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
5019
3631
  error?: string | null | undefined;
5020
3632
  }[] | null | undefined;
5021
3633
  };
3634
+ } | {
3635
+ type: "UPDATED";
3636
+ data: {
3637
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3638
+ };
3639
+ } | {
3640
+ type: "UPDATING";
3641
+ data: {
3642
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3643
+ post?: {
3644
+ status?: string | null | undefined;
3645
+ price?: number | null | undefined;
3646
+ currency?: string | null | undefined;
3647
+ brand?: string | null | undefined;
3648
+ catalog?: string | null | undefined;
3649
+ catalogId?: number | null | undefined;
3650
+ colors?: string[] | null | undefined;
3651
+ colorIds?: number[] | null | undefined;
3652
+ description?: string | null | undefined;
3653
+ measurementLength?: number | null | undefined;
3654
+ measurementWidth?: number | null | undefined;
3655
+ packageSizeId?: number | null | undefined;
3656
+ photoUrls?: string[] | null | undefined;
3657
+ size?: string | null | undefined;
3658
+ sizeId?: number | null | undefined;
3659
+ statusId?: number | null | undefined;
3660
+ title?: string | null | undefined;
3661
+ isDraft?: boolean | null | undefined;
3662
+ isArchived?: boolean | null | undefined;
3663
+ availableQuantity?: number | null | undefined;
3664
+ material?: number[] | null | undefined;
3665
+ manufacturerLabelling?: string | null | undefined;
3666
+ labels?: string[] | null | undefined;
3667
+ } | null | undefined;
3668
+ targetDate?: Date | null | undefined;
3669
+ };
5022
3670
  } | null | undefined;
5023
3671
  accountId?: string | null | undefined;
5024
3672
  requestId?: string | null | undefined;
@@ -5054,170 +3702,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
5054
3702
  viewsCount?: number | null | undefined;
5055
3703
  favoritesCount?: number | null | undefined;
5056
3704
  }[] | null | undefined;
5057
- history?: {
5058
- type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
5059
- id: string;
5060
- createdAt: Date;
5061
- itemId: string | number;
5062
- data?: {
5063
- type: "ACTION_CANCELED";
5064
- data: {
5065
- targetItemHistoryId: string;
5066
- };
5067
- } | {
5068
- type: "BUYER_PAID";
5069
- data: {
5070
- soldAccountId: string;
5071
- soldOrderId: string;
5072
- soldConversationId?: string | null | undefined;
5073
- };
5074
- } | {
5075
- type: "DELIVERED";
5076
- data: {
5077
- soldAccountId: string;
5078
- soldOrderId: string;
5079
- soldConversationId?: string | null | undefined;
5080
- };
5081
- } | {
5082
- type: "EMPTY";
5083
- } | {
5084
- type: "FAILED_TO_PUBLISH";
5085
- data: {
5086
- platform: "ETSY" | "SHOPIFY" | "VINTED";
5087
- accountId?: string | null | undefined;
5088
- reason?: string | null | undefined;
5089
- fields?: {
5090
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
5091
- autoFixable: boolean;
5092
- error?: string | null | undefined;
5093
- }[] | null | undefined;
5094
- itemHistoryId?: string | null | undefined;
5095
- };
5096
- } | {
5097
- type: "IMAGE_PROCESSING_DONE";
5098
- data: {
5099
- platform: "ETSY" | "SHOPIFY" | "VINTED";
5100
- variations?: {
5101
- fileId: string;
5102
- seed: number;
5103
- phash: string;
5104
- distanceOriginal: number;
5105
- originalImageUrl: string;
5106
- originalPhash: string;
5107
- }[] | null | undefined;
5108
- originalPhashes?: string[] | null | undefined;
5109
- };
5110
- } | {
5111
- type: "IMPORTED";
5112
- data: {
5113
- post: {
5114
- platformId: string;
5115
- post: {
5116
- status?: string | null | undefined;
5117
- price?: number | null | undefined;
5118
- currency?: string | null | undefined;
5119
- brand?: string | null | undefined;
5120
- catalog?: string | null | undefined;
5121
- catalogId?: number | null | undefined;
5122
- colors?: string[] | null | undefined;
5123
- colorIds?: number[] | null | undefined;
5124
- description?: string | null | undefined;
5125
- measurementLength?: number | null | undefined;
5126
- measurementWidth?: number | null | undefined;
5127
- packageSizeId?: number | null | undefined;
5128
- photoUrls?: string[] | null | undefined;
5129
- size?: string | null | undefined;
5130
- sizeId?: number | null | undefined;
5131
- statusId?: number | null | undefined;
5132
- title?: string | null | undefined;
5133
- isDraft?: boolean | null | undefined;
5134
- isArchived?: boolean | null | undefined;
5135
- availableQuantity?: number | null | undefined;
5136
- material?: number[] | null | undefined;
5137
- manufacturerLabelling?: string | null | undefined;
5138
- labels?: string[] | null | undefined;
5139
- };
5140
- createdAt?: Date | null | undefined;
5141
- platformUrl?: string | null | undefined;
5142
- };
5143
- };
5144
- } | {
5145
- type: "LIFECYCLE_COMPLETED";
5146
- data: {
5147
- accountId: string;
5148
- };
5149
- } | {
5150
- type: "LIFECYCLE_STARTED";
5151
- data: {
5152
- accountId: string;
5153
- caseId: string;
5154
- };
5155
- } | {
5156
- type: "PUBLISHED";
5157
- data: {
5158
- platform: "ETSY" | "SHOPIFY" | "VINTED";
5159
- };
5160
- } | {
5161
- type: "REPUBLISHING";
5162
- data: {
5163
- platform: "ETSY" | "SHOPIFY" | "VINTED";
5164
- publishingDate?: Date | null | undefined;
5165
- priceDropPayload?: {
5166
- value: number;
5167
- type: "PERCENTAGE" | "ABSOLUTE";
5168
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
5169
- roundStep?: number | null | undefined;
5170
- maxRounds?: number | null | undefined;
5171
- } | null | undefined;
5172
- isTransfer?: boolean | null | undefined;
5173
- targetAccountId?: string | null | undefined;
5174
- };
5175
- } | {
5176
- type: "REPUBLISHING_RETRY";
5177
- data: {
5178
- platform: "ETSY" | "SHOPIFY" | "VINTED";
5179
- attemptNumber: number;
5180
- maxAttempts: number;
5181
- previousHistoryId: string;
5182
- originalFailureDate: Date;
5183
- fields?: {
5184
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
5185
- autoFixable: boolean;
5186
- error?: string | null | undefined;
5187
- }[] | null | undefined;
5188
- priceDropPayload?: {
5189
- value: number;
5190
- type: "PERCENTAGE" | "ABSOLUTE";
5191
- roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
5192
- roundStep?: number | null | undefined;
5193
- maxRounds?: number | null | undefined;
5194
- } | null | undefined;
5195
- };
5196
- } | {
5197
- type: "SCHEDULED";
5198
- data: {
5199
- platform: "ETSY" | "SHOPIFY" | "VINTED";
5200
- publishingDate?: Date | null | undefined;
5201
- };
5202
- } | {
5203
- type: "SCHEDULED_RETRY";
5204
- data: {
5205
- platform: "ETSY" | "SHOPIFY" | "VINTED";
5206
- attemptNumber: number;
5207
- maxAttempts: number;
5208
- previousHistoryId: string;
5209
- originalFailureDate: Date;
5210
- fields?: {
5211
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
5212
- autoFixable: boolean;
5213
- error?: string | null | undefined;
5214
- }[] | null | undefined;
5215
- };
5216
- } | null | undefined;
5217
- accountId?: string | null | undefined;
5218
- requestId?: string | null | undefined;
5219
- targetDate?: Date | null | undefined;
5220
- }[] | null | undefined;
5221
3705
  }[];
5222
3706
  order: {
5223
3707
  type: "SALE" | "PURCHASE";