controlresell 2.9.5 → 2.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/package.json +1 -1
  2. package/src/com/controlresell/api/requests/items/cancel/CancelRequest.d.ts +16 -0
  3. package/src/com/controlresell/api/requests/items/cancel/CancelRequest.d.ts.map +1 -0
  4. package/src/com/controlresell/api/requests/items/cancel/CancelRequest.js +8 -0
  5. package/src/com/controlresell/api/requests/items/cancel/CancelRequest.js.map +1 -0
  6. package/src/com/controlresell/api/requests/items/cancel/CancelRequest.ts +9 -0
  7. package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.d.ts +4 -0
  8. package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.d.ts.map +1 -0
  9. package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.js +5 -0
  10. package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.js.map +1 -0
  11. package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.ts +6 -0
  12. package/src/com/controlresell/api/requests/items/publish/PublishRequest.d.ts +3 -0
  13. package/src/com/controlresell/api/requests/items/publish/PublishRequest.d.ts.map +1 -1
  14. package/src/com/controlresell/api/requests/items/publish/PublishRequest.js +1 -0
  15. package/src/com/controlresell/api/requests/items/publish/PublishRequest.js.map +1 -1
  16. package/src/com/controlresell/api/requests/items/publish/PublishRequest.ts +1 -0
  17. package/src/com/controlresell/api/requests/items/republish/RepublishRequest.d.ts +3 -0
  18. package/src/com/controlresell/api/requests/items/republish/RepublishRequest.d.ts.map +1 -1
  19. package/src/com/controlresell/api/requests/items/republish/RepublishRequest.js +1 -0
  20. package/src/com/controlresell/api/requests/items/republish/RepublishRequest.js.map +1 -1
  21. package/src/com/controlresell/api/requests/items/republish/RepublishRequest.ts +1 -0
  22. package/src/com/controlresell/api/responses/items/ItemActions.d.ts +10 -0
  23. package/src/com/controlresell/api/responses/items/ItemActions.d.ts.map +1 -0
  24. package/src/com/controlresell/api/responses/items/ItemActions.js +6 -0
  25. package/src/com/controlresell/api/responses/items/ItemActions.js.map +1 -0
  26. package/src/com/controlresell/api/responses/items/ItemActions.ts +7 -0
  27. package/src/com/controlresell/api/responses/items/ItemsWithFilters.d.ts +19 -5
  28. package/src/com/controlresell/api/responses/items/ItemsWithFilters.d.ts.map +1 -1
  29. package/src/com/controlresell/api/responses/items/ListedItem.d.ts +13 -3
  30. package/src/com/controlresell/api/responses/items/ListedItem.d.ts.map +1 -1
  31. package/src/com/controlresell/api/responses/items/ListedItem.js +2 -2
  32. package/src/com/controlresell/api/responses/items/ListedItem.js.map +1 -1
  33. package/src/com/controlresell/api/responses/items/ListedItem.ts +2 -2
  34. package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.d.ts +2 -2
  35. package/src/com/controlresell/inbox/models/transactions/items/TransactionWithItems.d.ts +2153 -305
  36. package/src/com/controlresell/inbox/models/transactions/items/TransactionWithItems.d.ts.map +1 -1
  37. package/src/com/controlresell/inventory/models/items/CreatedItems.d.ts +2163 -315
  38. package/src/com/controlresell/inventory/models/items/CreatedItems.d.ts.map +1 -1
  39. package/src/com/controlresell/inventory/models/items/Item.d.ts +1579 -59
  40. package/src/com/controlresell/inventory/models/items/Item.d.ts.map +1 -1
  41. package/src/com/controlresell/inventory/models/items/Item.js +1 -0
  42. package/src/com/controlresell/inventory/models/items/Item.js.map +1 -1
  43. package/src/com/controlresell/inventory/models/items/Item.ts +1 -0
  44. package/src/com/controlresell/inventory/models/items/ItemUpdate.d.ts +2097 -249
  45. package/src/com/controlresell/inventory/models/items/ItemUpdate.d.ts.map +1 -1
  46. package/src/com/controlresell/inventory/models/items/UpdatedItem.d.ts +2163 -315
  47. package/src/com/controlresell/inventory/models/items/UpdatedItem.d.ts.map +1 -1
  48. package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts +2611 -435
  49. package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts.map +1 -1
  50. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +2099 -251
  51. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts.map +1 -1
  52. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +6259 -2563
  53. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts.map +1 -1
  54. package/src/index.d.ts +3 -0
  55. package/src/index.d.ts.map +1 -1
  56. package/src/index.js +3 -0
  57. package/src/index.js.map +1 -1
  58. package/src/index.ts +3 -0
@@ -1539,6 +1539,1198 @@ export declare const ItemUpdateSchema: z.ZodObject<{
1539
1539
  viewsCount?: number | null | undefined;
1540
1540
  favoritesCount?: number | null | undefined;
1541
1541
  }>, "many">>>;
1542
+ history: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1543
+ id: z.ZodString;
1544
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1545
+ 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"]>;
1546
+ data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1547
+ data: z.ZodObject<{
1548
+ targetItemHistoryId: z.ZodString;
1549
+ }, "strip", z.ZodTypeAny, {
1550
+ targetItemHistoryId: string;
1551
+ }, {
1552
+ targetItemHistoryId: string;
1553
+ }>;
1554
+ type: z.ZodLiteral<"ACTION_CANCELED">;
1555
+ }, "strip", z.ZodTypeAny, {
1556
+ type: "ACTION_CANCELED";
1557
+ data: {
1558
+ targetItemHistoryId: string;
1559
+ };
1560
+ }, {
1561
+ type: "ACTION_CANCELED";
1562
+ data: {
1563
+ targetItemHistoryId: string;
1564
+ };
1565
+ }>, z.ZodObject<{
1566
+ data: z.ZodObject<{
1567
+ soldAccountId: z.ZodString;
1568
+ soldOrderId: z.ZodString;
1569
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1570
+ }, "strip", z.ZodTypeAny, {
1571
+ soldAccountId: string;
1572
+ soldOrderId: string;
1573
+ soldConversationId?: string | null | undefined;
1574
+ }, {
1575
+ soldAccountId: string;
1576
+ soldOrderId: string;
1577
+ soldConversationId?: string | null | undefined;
1578
+ }>;
1579
+ type: z.ZodLiteral<"BUYER_PAID">;
1580
+ }, "strip", z.ZodTypeAny, {
1581
+ type: "BUYER_PAID";
1582
+ data: {
1583
+ soldAccountId: string;
1584
+ soldOrderId: string;
1585
+ soldConversationId?: string | null | undefined;
1586
+ };
1587
+ }, {
1588
+ type: "BUYER_PAID";
1589
+ data: {
1590
+ soldAccountId: string;
1591
+ soldOrderId: string;
1592
+ soldConversationId?: string | null | undefined;
1593
+ };
1594
+ }>, z.ZodObject<{
1595
+ data: z.ZodObject<{
1596
+ soldAccountId: z.ZodString;
1597
+ soldOrderId: z.ZodString;
1598
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1599
+ }, "strip", z.ZodTypeAny, {
1600
+ soldAccountId: string;
1601
+ soldOrderId: string;
1602
+ soldConversationId?: string | null | undefined;
1603
+ }, {
1604
+ soldAccountId: string;
1605
+ soldOrderId: string;
1606
+ soldConversationId?: string | null | undefined;
1607
+ }>;
1608
+ type: z.ZodLiteral<"DELIVERED">;
1609
+ }, "strip", z.ZodTypeAny, {
1610
+ type: "DELIVERED";
1611
+ data: {
1612
+ soldAccountId: string;
1613
+ soldOrderId: string;
1614
+ soldConversationId?: string | null | undefined;
1615
+ };
1616
+ }, {
1617
+ type: "DELIVERED";
1618
+ data: {
1619
+ soldAccountId: string;
1620
+ soldOrderId: string;
1621
+ soldConversationId?: string | null | undefined;
1622
+ };
1623
+ }>, z.ZodObject<{
1624
+ type: z.ZodLiteral<"EMPTY">;
1625
+ }, "strip", z.ZodTypeAny, {
1626
+ type: "EMPTY";
1627
+ }, {
1628
+ type: "EMPTY";
1629
+ }>, z.ZodObject<{
1630
+ data: z.ZodObject<{
1631
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1632
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1633
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1634
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1635
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
1636
+ autoFixable: z.ZodBoolean;
1637
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1638
+ }, "strip", z.ZodTypeAny, {
1639
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1640
+ autoFixable: boolean;
1641
+ error?: string | null | undefined;
1642
+ }, {
1643
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1644
+ autoFixable: boolean;
1645
+ error?: string | null | undefined;
1646
+ }>, "many">>>;
1647
+ itemHistoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1648
+ }, "strip", z.ZodTypeAny, {
1649
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1650
+ accountId?: string | null | undefined;
1651
+ reason?: string | null | undefined;
1652
+ fields?: {
1653
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1654
+ autoFixable: boolean;
1655
+ error?: string | null | undefined;
1656
+ }[] | null | undefined;
1657
+ itemHistoryId?: string | null | undefined;
1658
+ }, {
1659
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1660
+ accountId?: string | null | undefined;
1661
+ reason?: string | null | undefined;
1662
+ fields?: {
1663
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1664
+ autoFixable: boolean;
1665
+ error?: string | null | undefined;
1666
+ }[] | null | undefined;
1667
+ itemHistoryId?: string | null | undefined;
1668
+ }>;
1669
+ type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
1670
+ }, "strip", z.ZodTypeAny, {
1671
+ type: "FAILED_TO_PUBLISH";
1672
+ data: {
1673
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1674
+ accountId?: string | null | undefined;
1675
+ reason?: string | null | undefined;
1676
+ fields?: {
1677
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1678
+ autoFixable: boolean;
1679
+ error?: string | null | undefined;
1680
+ }[] | null | undefined;
1681
+ itemHistoryId?: string | null | undefined;
1682
+ };
1683
+ }, {
1684
+ type: "FAILED_TO_PUBLISH";
1685
+ data: {
1686
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1687
+ accountId?: string | null | undefined;
1688
+ reason?: string | null | undefined;
1689
+ fields?: {
1690
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1691
+ autoFixable: boolean;
1692
+ error?: string | null | undefined;
1693
+ }[] | null | undefined;
1694
+ itemHistoryId?: string | null | undefined;
1695
+ };
1696
+ }>, z.ZodObject<{
1697
+ data: z.ZodObject<{
1698
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1699
+ variations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1700
+ fileId: z.ZodString;
1701
+ seed: z.ZodNumber;
1702
+ phash: z.ZodString;
1703
+ distanceOriginal: z.ZodNumber;
1704
+ originalImageUrl: z.ZodString;
1705
+ originalPhash: z.ZodString;
1706
+ }, "strip", z.ZodTypeAny, {
1707
+ fileId: string;
1708
+ seed: number;
1709
+ phash: string;
1710
+ distanceOriginal: number;
1711
+ originalImageUrl: string;
1712
+ originalPhash: string;
1713
+ }, {
1714
+ fileId: string;
1715
+ seed: number;
1716
+ phash: string;
1717
+ distanceOriginal: number;
1718
+ originalImageUrl: string;
1719
+ originalPhash: string;
1720
+ }>, "many">>>;
1721
+ originalPhashes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1722
+ }, "strip", z.ZodTypeAny, {
1723
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1724
+ variations?: {
1725
+ fileId: string;
1726
+ seed: number;
1727
+ phash: string;
1728
+ distanceOriginal: number;
1729
+ originalImageUrl: string;
1730
+ originalPhash: string;
1731
+ }[] | null | undefined;
1732
+ originalPhashes?: string[] | null | undefined;
1733
+ }, {
1734
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1735
+ variations?: {
1736
+ fileId: string;
1737
+ seed: number;
1738
+ phash: string;
1739
+ distanceOriginal: number;
1740
+ originalImageUrl: string;
1741
+ originalPhash: string;
1742
+ }[] | null | undefined;
1743
+ originalPhashes?: string[] | null | undefined;
1744
+ }>;
1745
+ type: z.ZodLiteral<"IMAGE_PROCESSING_DONE">;
1746
+ }, "strip", z.ZodTypeAny, {
1747
+ type: "IMAGE_PROCESSING_DONE";
1748
+ data: {
1749
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1750
+ variations?: {
1751
+ fileId: string;
1752
+ seed: number;
1753
+ phash: string;
1754
+ distanceOriginal: number;
1755
+ originalImageUrl: string;
1756
+ originalPhash: string;
1757
+ }[] | null | undefined;
1758
+ originalPhashes?: string[] | null | undefined;
1759
+ };
1760
+ }, {
1761
+ type: "IMAGE_PROCESSING_DONE";
1762
+ data: {
1763
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1764
+ variations?: {
1765
+ fileId: string;
1766
+ seed: number;
1767
+ phash: string;
1768
+ distanceOriginal: number;
1769
+ originalImageUrl: string;
1770
+ originalPhash: string;
1771
+ }[] | null | undefined;
1772
+ originalPhashes?: string[] | null | undefined;
1773
+ };
1774
+ }>, z.ZodObject<{
1775
+ data: z.ZodObject<{
1776
+ post: z.ZodObject<{
1777
+ platformId: z.ZodString;
1778
+ platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1779
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1780
+ post: z.ZodObject<{
1781
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1782
+ catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1783
+ catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1784
+ colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1785
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1786
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1787
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1788
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1789
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1790
+ photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1791
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1792
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1793
+ size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1794
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1795
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1796
+ statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1797
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1798
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1799
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1800
+ availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1801
+ material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1802
+ manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1803
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1804
+ }, "strip", z.ZodTypeAny, {
1805
+ status?: string | null | undefined;
1806
+ price?: number | null | undefined;
1807
+ currency?: string | null | undefined;
1808
+ brand?: string | null | undefined;
1809
+ catalog?: string | null | undefined;
1810
+ catalogId?: number | null | undefined;
1811
+ colors?: string[] | null | undefined;
1812
+ colorIds?: number[] | null | undefined;
1813
+ description?: string | null | undefined;
1814
+ measurementLength?: number | null | undefined;
1815
+ measurementWidth?: number | null | undefined;
1816
+ packageSizeId?: number | null | undefined;
1817
+ photoUrls?: string[] | null | undefined;
1818
+ size?: string | null | undefined;
1819
+ sizeId?: number | null | undefined;
1820
+ statusId?: number | null | undefined;
1821
+ title?: string | null | undefined;
1822
+ isDraft?: boolean | null | undefined;
1823
+ isArchived?: boolean | null | undefined;
1824
+ availableQuantity?: number | null | undefined;
1825
+ material?: number[] | null | undefined;
1826
+ manufacturerLabelling?: string | null | undefined;
1827
+ labels?: string[] | null | undefined;
1828
+ }, {
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
+ }>;
1853
+ }, "strip", z.ZodTypeAny, {
1854
+ platformId: string;
1855
+ post: {
1856
+ status?: string | null | undefined;
1857
+ price?: number | null | undefined;
1858
+ currency?: string | null | undefined;
1859
+ brand?: string | null | undefined;
1860
+ catalog?: string | null | undefined;
1861
+ catalogId?: number | null | undefined;
1862
+ colors?: string[] | null | undefined;
1863
+ colorIds?: number[] | null | undefined;
1864
+ description?: string | null | undefined;
1865
+ measurementLength?: number | null | undefined;
1866
+ measurementWidth?: number | null | undefined;
1867
+ packageSizeId?: number | null | undefined;
1868
+ photoUrls?: string[] | null | undefined;
1869
+ size?: string | null | undefined;
1870
+ sizeId?: number | null | undefined;
1871
+ statusId?: number | null | undefined;
1872
+ title?: string | null | undefined;
1873
+ isDraft?: boolean | null | undefined;
1874
+ isArchived?: boolean | null | undefined;
1875
+ availableQuantity?: number | null | undefined;
1876
+ material?: number[] | null | undefined;
1877
+ manufacturerLabelling?: string | null | undefined;
1878
+ labels?: string[] | null | undefined;
1879
+ };
1880
+ createdAt?: Date | null | undefined;
1881
+ platformUrl?: string | null | undefined;
1882
+ }, {
1883
+ platformId: string;
1884
+ post: {
1885
+ status?: string | null | undefined;
1886
+ price?: number | null | undefined;
1887
+ currency?: string | null | undefined;
1888
+ brand?: string | null | undefined;
1889
+ catalog?: string | null | undefined;
1890
+ catalogId?: number | null | undefined;
1891
+ colors?: string[] | null | undefined;
1892
+ colorIds?: number[] | null | undefined;
1893
+ description?: string | null | undefined;
1894
+ measurementLength?: number | null | undefined;
1895
+ measurementWidth?: number | null | undefined;
1896
+ packageSizeId?: number | null | undefined;
1897
+ photoUrls?: string[] | null | undefined;
1898
+ size?: string | null | undefined;
1899
+ sizeId?: number | null | undefined;
1900
+ statusId?: number | null | undefined;
1901
+ title?: string | null | undefined;
1902
+ isDraft?: boolean | null | undefined;
1903
+ isArchived?: boolean | null | undefined;
1904
+ availableQuantity?: number | null | undefined;
1905
+ material?: number[] | null | undefined;
1906
+ manufacturerLabelling?: string | null | undefined;
1907
+ labels?: string[] | null | undefined;
1908
+ };
1909
+ createdAt?: Date | null | undefined;
1910
+ platformUrl?: string | null | undefined;
1911
+ }>;
1912
+ }, "strip", z.ZodTypeAny, {
1913
+ post: {
1914
+ platformId: string;
1915
+ post: {
1916
+ status?: string | null | undefined;
1917
+ price?: number | null | undefined;
1918
+ currency?: string | null | undefined;
1919
+ brand?: string | null | undefined;
1920
+ catalog?: string | null | undefined;
1921
+ catalogId?: number | null | undefined;
1922
+ colors?: string[] | null | undefined;
1923
+ colorIds?: number[] | null | undefined;
1924
+ description?: string | null | undefined;
1925
+ measurementLength?: number | null | undefined;
1926
+ measurementWidth?: number | null | undefined;
1927
+ packageSizeId?: number | null | undefined;
1928
+ photoUrls?: string[] | null | undefined;
1929
+ size?: string | null | undefined;
1930
+ sizeId?: number | null | undefined;
1931
+ statusId?: number | null | undefined;
1932
+ title?: string | null | undefined;
1933
+ isDraft?: boolean | null | undefined;
1934
+ isArchived?: boolean | null | undefined;
1935
+ availableQuantity?: number | null | undefined;
1936
+ material?: number[] | null | undefined;
1937
+ manufacturerLabelling?: string | null | undefined;
1938
+ labels?: string[] | null | undefined;
1939
+ };
1940
+ createdAt?: Date | null | undefined;
1941
+ platformUrl?: string | null | undefined;
1942
+ };
1943
+ }, {
1944
+ post: {
1945
+ platformId: string;
1946
+ post: {
1947
+ status?: string | null | undefined;
1948
+ price?: number | null | undefined;
1949
+ currency?: string | null | undefined;
1950
+ brand?: string | null | undefined;
1951
+ catalog?: string | null | undefined;
1952
+ catalogId?: number | null | undefined;
1953
+ colors?: string[] | null | undefined;
1954
+ colorIds?: number[] | null | undefined;
1955
+ description?: string | null | undefined;
1956
+ measurementLength?: number | null | undefined;
1957
+ measurementWidth?: number | null | undefined;
1958
+ packageSizeId?: number | null | undefined;
1959
+ photoUrls?: string[] | null | undefined;
1960
+ size?: string | null | undefined;
1961
+ sizeId?: number | null | undefined;
1962
+ statusId?: number | null | undefined;
1963
+ title?: string | null | undefined;
1964
+ isDraft?: boolean | null | undefined;
1965
+ isArchived?: boolean | null | undefined;
1966
+ availableQuantity?: number | null | undefined;
1967
+ material?: number[] | null | undefined;
1968
+ manufacturerLabelling?: string | null | undefined;
1969
+ labels?: string[] | null | undefined;
1970
+ };
1971
+ createdAt?: Date | null | undefined;
1972
+ platformUrl?: string | null | undefined;
1973
+ };
1974
+ }>;
1975
+ type: z.ZodLiteral<"IMPORTED">;
1976
+ }, "strip", z.ZodTypeAny, {
1977
+ type: "IMPORTED";
1978
+ data: {
1979
+ post: {
1980
+ platformId: string;
1981
+ post: {
1982
+ status?: string | null | undefined;
1983
+ price?: number | null | undefined;
1984
+ currency?: string | null | undefined;
1985
+ brand?: string | null | undefined;
1986
+ catalog?: string | null | undefined;
1987
+ catalogId?: number | null | undefined;
1988
+ colors?: string[] | null | undefined;
1989
+ colorIds?: number[] | null | undefined;
1990
+ description?: string | null | undefined;
1991
+ measurementLength?: number | null | undefined;
1992
+ measurementWidth?: number | null | undefined;
1993
+ packageSizeId?: number | null | undefined;
1994
+ photoUrls?: string[] | null | undefined;
1995
+ size?: string | null | undefined;
1996
+ sizeId?: number | null | undefined;
1997
+ statusId?: number | null | undefined;
1998
+ title?: string | null | undefined;
1999
+ isDraft?: boolean | null | undefined;
2000
+ isArchived?: boolean | null | undefined;
2001
+ availableQuantity?: number | null | undefined;
2002
+ material?: number[] | null | undefined;
2003
+ manufacturerLabelling?: string | null | undefined;
2004
+ labels?: string[] | null | undefined;
2005
+ };
2006
+ createdAt?: Date | null | undefined;
2007
+ platformUrl?: string | null | undefined;
2008
+ };
2009
+ };
2010
+ }, {
2011
+ type: "IMPORTED";
2012
+ data: {
2013
+ post: {
2014
+ platformId: string;
2015
+ post: {
2016
+ status?: string | null | undefined;
2017
+ price?: number | null | undefined;
2018
+ currency?: string | null | undefined;
2019
+ brand?: string | null | undefined;
2020
+ catalog?: string | null | undefined;
2021
+ catalogId?: number | null | undefined;
2022
+ colors?: string[] | null | undefined;
2023
+ colorIds?: number[] | null | undefined;
2024
+ description?: string | null | undefined;
2025
+ measurementLength?: number | null | undefined;
2026
+ measurementWidth?: number | null | undefined;
2027
+ packageSizeId?: number | null | undefined;
2028
+ photoUrls?: string[] | null | undefined;
2029
+ size?: string | null | undefined;
2030
+ sizeId?: number | null | undefined;
2031
+ statusId?: number | null | undefined;
2032
+ title?: string | null | undefined;
2033
+ isDraft?: boolean | null | undefined;
2034
+ isArchived?: boolean | null | undefined;
2035
+ availableQuantity?: number | null | undefined;
2036
+ material?: number[] | null | undefined;
2037
+ manufacturerLabelling?: string | null | undefined;
2038
+ labels?: string[] | null | undefined;
2039
+ };
2040
+ createdAt?: Date | null | undefined;
2041
+ platformUrl?: string | null | undefined;
2042
+ };
2043
+ };
2044
+ }>, z.ZodObject<{
2045
+ data: z.ZodObject<{
2046
+ accountId: z.ZodString;
2047
+ }, "strip", z.ZodTypeAny, {
2048
+ accountId: string;
2049
+ }, {
2050
+ accountId: string;
2051
+ }>;
2052
+ type: z.ZodLiteral<"LIFECYCLE_COMPLETED">;
2053
+ }, "strip", z.ZodTypeAny, {
2054
+ type: "LIFECYCLE_COMPLETED";
2055
+ data: {
2056
+ accountId: string;
2057
+ };
2058
+ }, {
2059
+ type: "LIFECYCLE_COMPLETED";
2060
+ data: {
2061
+ accountId: string;
2062
+ };
2063
+ }>, z.ZodObject<{
2064
+ data: z.ZodObject<{
2065
+ accountId: z.ZodString;
2066
+ caseId: z.ZodString;
2067
+ }, "strip", z.ZodTypeAny, {
2068
+ accountId: string;
2069
+ caseId: string;
2070
+ }, {
2071
+ accountId: string;
2072
+ caseId: string;
2073
+ }>;
2074
+ type: z.ZodLiteral<"LIFECYCLE_STARTED">;
2075
+ }, "strip", z.ZodTypeAny, {
2076
+ type: "LIFECYCLE_STARTED";
2077
+ data: {
2078
+ accountId: string;
2079
+ caseId: string;
2080
+ };
2081
+ }, {
2082
+ type: "LIFECYCLE_STARTED";
2083
+ data: {
2084
+ accountId: string;
2085
+ caseId: string;
2086
+ };
2087
+ }>, z.ZodObject<{
2088
+ data: z.ZodObject<{
2089
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2090
+ }, "strip", z.ZodTypeAny, {
2091
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2092
+ }, {
2093
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2094
+ }>;
2095
+ type: z.ZodLiteral<"PUBLISHED">;
2096
+ }, "strip", z.ZodTypeAny, {
2097
+ type: "PUBLISHED";
2098
+ data: {
2099
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2100
+ };
2101
+ }, {
2102
+ type: "PUBLISHED";
2103
+ data: {
2104
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2105
+ };
2106
+ }>, z.ZodObject<{
2107
+ data: z.ZodObject<{
2108
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2109
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2110
+ priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2111
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
2112
+ value: z.ZodNumber;
2113
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
2114
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2115
+ maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2116
+ }, "strip", z.ZodTypeAny, {
2117
+ value: number;
2118
+ type: "PERCENTAGE" | "ABSOLUTE";
2119
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2120
+ roundStep?: number | null | undefined;
2121
+ maxRounds?: number | null | undefined;
2122
+ }, {
2123
+ value: number;
2124
+ type: "PERCENTAGE" | "ABSOLUTE";
2125
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2126
+ roundStep?: number | null | undefined;
2127
+ maxRounds?: number | null | undefined;
2128
+ }>>>;
2129
+ isTransfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2130
+ targetAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2131
+ }, "strip", z.ZodTypeAny, {
2132
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2133
+ publishingDate?: Date | null | undefined;
2134
+ priceDropPayload?: {
2135
+ value: number;
2136
+ type: "PERCENTAGE" | "ABSOLUTE";
2137
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2138
+ roundStep?: number | null | undefined;
2139
+ maxRounds?: number | null | undefined;
2140
+ } | null | undefined;
2141
+ isTransfer?: boolean | null | undefined;
2142
+ targetAccountId?: string | null | undefined;
2143
+ }, {
2144
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2145
+ publishingDate?: Date | null | undefined;
2146
+ priceDropPayload?: {
2147
+ value: number;
2148
+ type: "PERCENTAGE" | "ABSOLUTE";
2149
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2150
+ roundStep?: number | null | undefined;
2151
+ maxRounds?: number | null | undefined;
2152
+ } | null | undefined;
2153
+ isTransfer?: boolean | null | undefined;
2154
+ targetAccountId?: string | null | undefined;
2155
+ }>;
2156
+ type: z.ZodLiteral<"REPUBLISHING">;
2157
+ }, "strip", z.ZodTypeAny, {
2158
+ type: "REPUBLISHING";
2159
+ data: {
2160
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2161
+ publishingDate?: Date | null | undefined;
2162
+ priceDropPayload?: {
2163
+ value: number;
2164
+ type: "PERCENTAGE" | "ABSOLUTE";
2165
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2166
+ roundStep?: number | null | undefined;
2167
+ maxRounds?: number | null | undefined;
2168
+ } | null | undefined;
2169
+ isTransfer?: boolean | null | undefined;
2170
+ targetAccountId?: string | null | undefined;
2171
+ };
2172
+ }, {
2173
+ type: "REPUBLISHING";
2174
+ data: {
2175
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2176
+ publishingDate?: Date | null | undefined;
2177
+ priceDropPayload?: {
2178
+ value: number;
2179
+ type: "PERCENTAGE" | "ABSOLUTE";
2180
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2181
+ roundStep?: number | null | undefined;
2182
+ maxRounds?: number | null | undefined;
2183
+ } | null | undefined;
2184
+ isTransfer?: boolean | null | undefined;
2185
+ targetAccountId?: string | null | undefined;
2186
+ };
2187
+ }>, z.ZodObject<{
2188
+ data: z.ZodObject<{
2189
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2190
+ attemptNumber: z.ZodNumber;
2191
+ maxAttempts: z.ZodNumber;
2192
+ previousHistoryId: z.ZodString;
2193
+ originalFailureDate: z.ZodDate;
2194
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2195
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
2196
+ autoFixable: z.ZodBoolean;
2197
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2198
+ }, "strip", z.ZodTypeAny, {
2199
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2200
+ autoFixable: boolean;
2201
+ error?: string | null | undefined;
2202
+ }, {
2203
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2204
+ autoFixable: boolean;
2205
+ error?: string | null | undefined;
2206
+ }>, "many">>>;
2207
+ priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2208
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
2209
+ value: z.ZodNumber;
2210
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
2211
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2212
+ maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2213
+ }, "strip", z.ZodTypeAny, {
2214
+ value: number;
2215
+ type: "PERCENTAGE" | "ABSOLUTE";
2216
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2217
+ roundStep?: number | null | undefined;
2218
+ maxRounds?: number | null | undefined;
2219
+ }, {
2220
+ value: number;
2221
+ type: "PERCENTAGE" | "ABSOLUTE";
2222
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2223
+ roundStep?: number | null | undefined;
2224
+ maxRounds?: number | null | undefined;
2225
+ }>>>;
2226
+ }, "strip", z.ZodTypeAny, {
2227
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2228
+ attemptNumber: number;
2229
+ maxAttempts: number;
2230
+ previousHistoryId: string;
2231
+ originalFailureDate: Date;
2232
+ fields?: {
2233
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2234
+ autoFixable: boolean;
2235
+ error?: string | null | undefined;
2236
+ }[] | null | undefined;
2237
+ priceDropPayload?: {
2238
+ value: number;
2239
+ type: "PERCENTAGE" | "ABSOLUTE";
2240
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2241
+ roundStep?: number | null | undefined;
2242
+ maxRounds?: number | null | undefined;
2243
+ } | null | undefined;
2244
+ }, {
2245
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2246
+ attemptNumber: number;
2247
+ maxAttempts: number;
2248
+ previousHistoryId: string;
2249
+ originalFailureDate: Date;
2250
+ fields?: {
2251
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2252
+ autoFixable: boolean;
2253
+ error?: string | null | undefined;
2254
+ }[] | null | undefined;
2255
+ priceDropPayload?: {
2256
+ value: number;
2257
+ type: "PERCENTAGE" | "ABSOLUTE";
2258
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2259
+ roundStep?: number | null | undefined;
2260
+ maxRounds?: number | null | undefined;
2261
+ } | null | undefined;
2262
+ }>;
2263
+ type: z.ZodLiteral<"REPUBLISHING_RETRY">;
2264
+ }, "strip", z.ZodTypeAny, {
2265
+ type: "REPUBLISHING_RETRY";
2266
+ data: {
2267
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2268
+ attemptNumber: number;
2269
+ maxAttempts: number;
2270
+ previousHistoryId: string;
2271
+ originalFailureDate: Date;
2272
+ fields?: {
2273
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2274
+ autoFixable: boolean;
2275
+ error?: string | null | undefined;
2276
+ }[] | null | undefined;
2277
+ priceDropPayload?: {
2278
+ value: number;
2279
+ type: "PERCENTAGE" | "ABSOLUTE";
2280
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2281
+ roundStep?: number | null | undefined;
2282
+ maxRounds?: number | null | undefined;
2283
+ } | null | undefined;
2284
+ };
2285
+ }, {
2286
+ type: "REPUBLISHING_RETRY";
2287
+ data: {
2288
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2289
+ attemptNumber: number;
2290
+ maxAttempts: number;
2291
+ previousHistoryId: string;
2292
+ originalFailureDate: Date;
2293
+ fields?: {
2294
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2295
+ autoFixable: boolean;
2296
+ error?: string | null | undefined;
2297
+ }[] | null | undefined;
2298
+ priceDropPayload?: {
2299
+ value: number;
2300
+ type: "PERCENTAGE" | "ABSOLUTE";
2301
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2302
+ roundStep?: number | null | undefined;
2303
+ maxRounds?: number | null | undefined;
2304
+ } | null | undefined;
2305
+ };
2306
+ }>, z.ZodObject<{
2307
+ data: z.ZodObject<{
2308
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2309
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2310
+ }, "strip", z.ZodTypeAny, {
2311
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2312
+ publishingDate?: Date | null | undefined;
2313
+ }, {
2314
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2315
+ publishingDate?: Date | null | undefined;
2316
+ }>;
2317
+ type: z.ZodLiteral<"SCHEDULED">;
2318
+ }, "strip", z.ZodTypeAny, {
2319
+ type: "SCHEDULED";
2320
+ data: {
2321
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2322
+ publishingDate?: Date | null | undefined;
2323
+ };
2324
+ }, {
2325
+ type: "SCHEDULED";
2326
+ data: {
2327
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2328
+ publishingDate?: Date | null | undefined;
2329
+ };
2330
+ }>, z.ZodObject<{
2331
+ data: z.ZodObject<{
2332
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2333
+ attemptNumber: z.ZodNumber;
2334
+ maxAttempts: z.ZodNumber;
2335
+ previousHistoryId: z.ZodString;
2336
+ originalFailureDate: z.ZodDate;
2337
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2338
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
2339
+ autoFixable: z.ZodBoolean;
2340
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2341
+ }, "strip", z.ZodTypeAny, {
2342
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2343
+ autoFixable: boolean;
2344
+ error?: string | null | undefined;
2345
+ }, {
2346
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2347
+ autoFixable: boolean;
2348
+ error?: string | null | undefined;
2349
+ }>, "many">>>;
2350
+ }, "strip", z.ZodTypeAny, {
2351
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2352
+ attemptNumber: number;
2353
+ maxAttempts: number;
2354
+ previousHistoryId: string;
2355
+ originalFailureDate: Date;
2356
+ fields?: {
2357
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2358
+ autoFixable: boolean;
2359
+ error?: string | null | undefined;
2360
+ }[] | null | undefined;
2361
+ }, {
2362
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2363
+ attemptNumber: number;
2364
+ maxAttempts: number;
2365
+ previousHistoryId: string;
2366
+ originalFailureDate: Date;
2367
+ fields?: {
2368
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2369
+ autoFixable: boolean;
2370
+ error?: string | null | undefined;
2371
+ }[] | null | undefined;
2372
+ }>;
2373
+ type: z.ZodLiteral<"SCHEDULED_RETRY">;
2374
+ }, "strip", z.ZodTypeAny, {
2375
+ type: "SCHEDULED_RETRY";
2376
+ data: {
2377
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2378
+ attemptNumber: number;
2379
+ maxAttempts: number;
2380
+ previousHistoryId: string;
2381
+ originalFailureDate: Date;
2382
+ fields?: {
2383
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2384
+ autoFixable: boolean;
2385
+ error?: string | null | undefined;
2386
+ }[] | null | undefined;
2387
+ };
2388
+ }, {
2389
+ type: "SCHEDULED_RETRY";
2390
+ data: {
2391
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2392
+ attemptNumber: number;
2393
+ maxAttempts: number;
2394
+ previousHistoryId: string;
2395
+ originalFailureDate: Date;
2396
+ fields?: {
2397
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2398
+ autoFixable: boolean;
2399
+ error?: string | null | undefined;
2400
+ }[] | null | undefined;
2401
+ };
2402
+ }>]>>>;
2403
+ createdAt: z.ZodDate;
2404
+ targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2405
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2406
+ requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2407
+ }, "strip", z.ZodTypeAny, {
2408
+ 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";
2409
+ id: string;
2410
+ createdAt: Date;
2411
+ itemId: string | number;
2412
+ data?: {
2413
+ type: "ACTION_CANCELED";
2414
+ data: {
2415
+ targetItemHistoryId: string;
2416
+ };
2417
+ } | {
2418
+ type: "BUYER_PAID";
2419
+ data: {
2420
+ soldAccountId: string;
2421
+ soldOrderId: string;
2422
+ soldConversationId?: string | null | undefined;
2423
+ };
2424
+ } | {
2425
+ type: "DELIVERED";
2426
+ data: {
2427
+ soldAccountId: string;
2428
+ soldOrderId: string;
2429
+ soldConversationId?: string | null | undefined;
2430
+ };
2431
+ } | {
2432
+ type: "EMPTY";
2433
+ } | {
2434
+ type: "FAILED_TO_PUBLISH";
2435
+ data: {
2436
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2437
+ accountId?: string | null | undefined;
2438
+ reason?: string | null | undefined;
2439
+ fields?: {
2440
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2441
+ autoFixable: boolean;
2442
+ error?: string | null | undefined;
2443
+ }[] | null | undefined;
2444
+ itemHistoryId?: string | null | undefined;
2445
+ };
2446
+ } | {
2447
+ type: "IMAGE_PROCESSING_DONE";
2448
+ data: {
2449
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2450
+ variations?: {
2451
+ fileId: string;
2452
+ seed: number;
2453
+ phash: string;
2454
+ distanceOriginal: number;
2455
+ originalImageUrl: string;
2456
+ originalPhash: string;
2457
+ }[] | null | undefined;
2458
+ originalPhashes?: string[] | null | undefined;
2459
+ };
2460
+ } | {
2461
+ type: "IMPORTED";
2462
+ data: {
2463
+ post: {
2464
+ platformId: string;
2465
+ post: {
2466
+ status?: string | null | undefined;
2467
+ price?: number | null | undefined;
2468
+ currency?: string | null | undefined;
2469
+ brand?: string | null | undefined;
2470
+ catalog?: string | null | undefined;
2471
+ catalogId?: number | null | undefined;
2472
+ colors?: string[] | null | undefined;
2473
+ colorIds?: number[] | null | undefined;
2474
+ description?: string | null | undefined;
2475
+ measurementLength?: number | null | undefined;
2476
+ measurementWidth?: number | null | undefined;
2477
+ packageSizeId?: number | null | undefined;
2478
+ photoUrls?: string[] | null | undefined;
2479
+ size?: string | null | undefined;
2480
+ sizeId?: number | null | undefined;
2481
+ statusId?: number | null | undefined;
2482
+ title?: string | null | undefined;
2483
+ isDraft?: boolean | null | undefined;
2484
+ isArchived?: boolean | null | undefined;
2485
+ availableQuantity?: number | null | undefined;
2486
+ material?: number[] | null | undefined;
2487
+ manufacturerLabelling?: string | null | undefined;
2488
+ labels?: string[] | null | undefined;
2489
+ };
2490
+ createdAt?: Date | null | undefined;
2491
+ platformUrl?: string | null | undefined;
2492
+ };
2493
+ };
2494
+ } | {
2495
+ type: "LIFECYCLE_COMPLETED";
2496
+ data: {
2497
+ accountId: string;
2498
+ };
2499
+ } | {
2500
+ type: "LIFECYCLE_STARTED";
2501
+ data: {
2502
+ accountId: string;
2503
+ caseId: string;
2504
+ };
2505
+ } | {
2506
+ type: "PUBLISHED";
2507
+ data: {
2508
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2509
+ };
2510
+ } | {
2511
+ type: "REPUBLISHING";
2512
+ data: {
2513
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2514
+ publishingDate?: Date | null | undefined;
2515
+ priceDropPayload?: {
2516
+ value: number;
2517
+ type: "PERCENTAGE" | "ABSOLUTE";
2518
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2519
+ roundStep?: number | null | undefined;
2520
+ maxRounds?: number | null | undefined;
2521
+ } | null | undefined;
2522
+ isTransfer?: boolean | null | undefined;
2523
+ targetAccountId?: string | null | undefined;
2524
+ };
2525
+ } | {
2526
+ type: "REPUBLISHING_RETRY";
2527
+ data: {
2528
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2529
+ attemptNumber: number;
2530
+ maxAttempts: number;
2531
+ previousHistoryId: string;
2532
+ originalFailureDate: Date;
2533
+ fields?: {
2534
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2535
+ autoFixable: boolean;
2536
+ error?: string | null | undefined;
2537
+ }[] | null | undefined;
2538
+ priceDropPayload?: {
2539
+ value: number;
2540
+ type: "PERCENTAGE" | "ABSOLUTE";
2541
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2542
+ roundStep?: number | null | undefined;
2543
+ maxRounds?: number | null | undefined;
2544
+ } | null | undefined;
2545
+ };
2546
+ } | {
2547
+ type: "SCHEDULED";
2548
+ data: {
2549
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2550
+ publishingDate?: Date | null | undefined;
2551
+ };
2552
+ } | {
2553
+ type: "SCHEDULED_RETRY";
2554
+ data: {
2555
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2556
+ attemptNumber: number;
2557
+ maxAttempts: number;
2558
+ previousHistoryId: string;
2559
+ originalFailureDate: Date;
2560
+ fields?: {
2561
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2562
+ autoFixable: boolean;
2563
+ error?: string | null | undefined;
2564
+ }[] | null | undefined;
2565
+ };
2566
+ } | null | undefined;
2567
+ accountId?: string | null | undefined;
2568
+ requestId?: string | null | undefined;
2569
+ targetDate?: Date | null | undefined;
2570
+ }, {
2571
+ 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";
2572
+ id: string;
2573
+ createdAt: Date;
2574
+ itemId: string | number;
2575
+ data?: {
2576
+ type: "ACTION_CANCELED";
2577
+ data: {
2578
+ targetItemHistoryId: string;
2579
+ };
2580
+ } | {
2581
+ type: "BUYER_PAID";
2582
+ data: {
2583
+ soldAccountId: string;
2584
+ soldOrderId: string;
2585
+ soldConversationId?: string | null | undefined;
2586
+ };
2587
+ } | {
2588
+ type: "DELIVERED";
2589
+ data: {
2590
+ soldAccountId: string;
2591
+ soldOrderId: string;
2592
+ soldConversationId?: string | null | undefined;
2593
+ };
2594
+ } | {
2595
+ type: "EMPTY";
2596
+ } | {
2597
+ type: "FAILED_TO_PUBLISH";
2598
+ data: {
2599
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2600
+ accountId?: string | null | undefined;
2601
+ reason?: string | null | undefined;
2602
+ fields?: {
2603
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2604
+ autoFixable: boolean;
2605
+ error?: string | null | undefined;
2606
+ }[] | null | undefined;
2607
+ itemHistoryId?: string | null | undefined;
2608
+ };
2609
+ } | {
2610
+ type: "IMAGE_PROCESSING_DONE";
2611
+ data: {
2612
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2613
+ variations?: {
2614
+ fileId: string;
2615
+ seed: number;
2616
+ phash: string;
2617
+ distanceOriginal: number;
2618
+ originalImageUrl: string;
2619
+ originalPhash: string;
2620
+ }[] | null | undefined;
2621
+ originalPhashes?: string[] | null | undefined;
2622
+ };
2623
+ } | {
2624
+ type: "IMPORTED";
2625
+ data: {
2626
+ post: {
2627
+ platformId: string;
2628
+ post: {
2629
+ status?: string | null | undefined;
2630
+ price?: number | null | undefined;
2631
+ currency?: string | null | undefined;
2632
+ brand?: string | null | undefined;
2633
+ catalog?: string | null | undefined;
2634
+ catalogId?: number | null | undefined;
2635
+ colors?: string[] | null | undefined;
2636
+ colorIds?: number[] | null | undefined;
2637
+ description?: string | null | undefined;
2638
+ measurementLength?: number | null | undefined;
2639
+ measurementWidth?: number | null | undefined;
2640
+ packageSizeId?: number | null | undefined;
2641
+ photoUrls?: string[] | null | undefined;
2642
+ size?: string | null | undefined;
2643
+ sizeId?: number | null | undefined;
2644
+ statusId?: number | null | undefined;
2645
+ title?: string | null | undefined;
2646
+ isDraft?: boolean | null | undefined;
2647
+ isArchived?: boolean | null | undefined;
2648
+ availableQuantity?: number | null | undefined;
2649
+ material?: number[] | null | undefined;
2650
+ manufacturerLabelling?: string | null | undefined;
2651
+ labels?: string[] | null | undefined;
2652
+ };
2653
+ createdAt?: Date | null | undefined;
2654
+ platformUrl?: string | null | undefined;
2655
+ };
2656
+ };
2657
+ } | {
2658
+ type: "LIFECYCLE_COMPLETED";
2659
+ data: {
2660
+ accountId: string;
2661
+ };
2662
+ } | {
2663
+ type: "LIFECYCLE_STARTED";
2664
+ data: {
2665
+ accountId: string;
2666
+ caseId: string;
2667
+ };
2668
+ } | {
2669
+ type: "PUBLISHED";
2670
+ data: {
2671
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2672
+ };
2673
+ } | {
2674
+ type: "REPUBLISHING";
2675
+ data: {
2676
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2677
+ publishingDate?: Date | null | undefined;
2678
+ priceDropPayload?: {
2679
+ value: number;
2680
+ type: "PERCENTAGE" | "ABSOLUTE";
2681
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2682
+ roundStep?: number | null | undefined;
2683
+ maxRounds?: number | null | undefined;
2684
+ } | null | undefined;
2685
+ isTransfer?: boolean | null | undefined;
2686
+ targetAccountId?: string | null | undefined;
2687
+ };
2688
+ } | {
2689
+ type: "REPUBLISHING_RETRY";
2690
+ data: {
2691
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2692
+ attemptNumber: number;
2693
+ maxAttempts: number;
2694
+ previousHistoryId: string;
2695
+ originalFailureDate: Date;
2696
+ fields?: {
2697
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2698
+ autoFixable: boolean;
2699
+ error?: string | null | undefined;
2700
+ }[] | null | undefined;
2701
+ priceDropPayload?: {
2702
+ value: number;
2703
+ type: "PERCENTAGE" | "ABSOLUTE";
2704
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2705
+ roundStep?: number | null | undefined;
2706
+ maxRounds?: number | null | undefined;
2707
+ } | null | undefined;
2708
+ };
2709
+ } | {
2710
+ type: "SCHEDULED";
2711
+ data: {
2712
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2713
+ publishingDate?: Date | null | undefined;
2714
+ };
2715
+ } | {
2716
+ type: "SCHEDULED_RETRY";
2717
+ data: {
2718
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2719
+ attemptNumber: number;
2720
+ maxAttempts: number;
2721
+ previousHistoryId: string;
2722
+ originalFailureDate: Date;
2723
+ fields?: {
2724
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2725
+ autoFixable: boolean;
2726
+ error?: string | null | undefined;
2727
+ }[] | null | undefined;
2728
+ };
2729
+ } | null | undefined;
2730
+ accountId?: string | null | undefined;
2731
+ requestId?: string | null | undefined;
2732
+ targetDate?: Date | null | undefined;
2733
+ }>, "many">>>;
1542
2734
  createdAt: z.ZodDate;
1543
2735
  updatedAt: z.ZodDate;
1544
2736
  }, "strip", z.ZodTypeAny, {
@@ -1825,97 +3017,907 @@ export declare const ItemUpdateSchema: z.ZodObject<{
1825
3017
  viewsCount?: number | null | undefined;
1826
3018
  favoritesCount?: number | null | undefined;
1827
3019
  }[] | null | undefined;
1828
- }, {
1829
- userId: string | number;
1830
- id: string | number;
1831
- updatedAt: Date;
1832
- name: string;
1833
- createdAt: Date;
1834
- sold: boolean;
1835
- state?: number | null | undefined;
1836
- colorIds?: number[] | null | undefined;
1837
- description?: string | null | undefined;
1838
- packageSizeId?: number | null | undefined;
1839
- sizeId?: number | null | undefined;
1840
- labels?: {
1841
- itemId: string | number;
1842
- labelId: string | number;
1843
- label?: {
1844
- id: string | number;
1845
- name: string;
1846
- createdAt: Date;
1847
- isUserLabel: boolean;
1848
- userId?: string | number | null | undefined;
1849
- itemCount?: number | null | undefined;
1850
- parentId?: unknown;
1851
- } | null | undefined;
1852
- }[] | null | undefined;
1853
- files?: {
1854
- itemId: string | number;
1855
- fileId: string;
1856
- index?: number | null | undefined;
1857
- file?: {
1858
- path: string;
1859
- userId: string | number;
1860
- id: string;
1861
- createdAt: Date;
1862
- signedUrl: string;
1863
- } | null | undefined;
1864
- }[] | null | undefined;
1865
- fields?: {
1866
- value: string;
1867
- itemId: string | number;
1868
- fieldId: string | number;
1869
- }[] | null | undefined;
1870
- sku?: string | null | undefined;
1871
- categoryId?: number | null | undefined;
1872
- brandId?: string | number | null | undefined;
1873
- sex?: string | null | undefined;
1874
- purchasePrice?: number | null | undefined;
1875
- purchaseDate?: Date | null | undefined;
1876
- purchasePlaceId?: string | number | null | undefined;
1877
- purchased?: boolean | null | undefined;
1878
- sellingPrice?: number | null | undefined;
1879
- sellingDate?: Date | null | undefined;
1880
- sellingPlaceId?: string | number | null | undefined;
1881
- estimatedPrice?: number | null | undefined;
1882
- fees?: {
1883
- value: number;
1884
- type: string;
1885
- userId: string | number;
1886
- id: string | number;
1887
- updatedAt: Date;
1888
- name: string;
1889
- createdAt: Date;
1890
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1891
- startDate: Date;
1892
- active: boolean;
1893
- description?: string | null | undefined;
1894
- itemId?: string | number | null | undefined;
1895
- endDate?: Date | null | undefined;
1896
- parentFeeId?: string | number | null | undefined;
1897
- }[] | null | undefined;
1898
- feesSum?: number | null | undefined;
1899
- customerId?: string | number | null | undefined;
1900
- customer?: {
1901
- userId: string | number;
1902
- id: string | number;
1903
- email: string;
1904
- firstName: string;
1905
- lastName: string;
1906
- birthDate: Date;
1907
- idNumber: string;
1908
- phone: string;
1909
- iban: string;
1910
- bic: string;
1911
- phoneVerified: boolean;
1912
- } | null | undefined;
1913
- customerType?: string | null | undefined;
1914
- customerPaid?: boolean | null | undefined;
1915
- customerPaidDate?: Date | null | undefined;
1916
- customerPaidType?: string | null | undefined;
1917
- contractId?: string | number | null | undefined;
1918
- lastHistory?: {
3020
+ history?: {
3021
+ 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";
3022
+ id: string;
3023
+ createdAt: Date;
3024
+ itemId: string | number;
3025
+ data?: {
3026
+ type: "ACTION_CANCELED";
3027
+ data: {
3028
+ targetItemHistoryId: string;
3029
+ };
3030
+ } | {
3031
+ type: "BUYER_PAID";
3032
+ data: {
3033
+ soldAccountId: string;
3034
+ soldOrderId: string;
3035
+ soldConversationId?: string | null | undefined;
3036
+ };
3037
+ } | {
3038
+ type: "DELIVERED";
3039
+ data: {
3040
+ soldAccountId: string;
3041
+ soldOrderId: string;
3042
+ soldConversationId?: string | null | undefined;
3043
+ };
3044
+ } | {
3045
+ type: "EMPTY";
3046
+ } | {
3047
+ type: "FAILED_TO_PUBLISH";
3048
+ data: {
3049
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3050
+ accountId?: string | null | undefined;
3051
+ reason?: string | null | undefined;
3052
+ fields?: {
3053
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3054
+ autoFixable: boolean;
3055
+ error?: string | null | undefined;
3056
+ }[] | null | undefined;
3057
+ itemHistoryId?: string | null | undefined;
3058
+ };
3059
+ } | {
3060
+ type: "IMAGE_PROCESSING_DONE";
3061
+ data: {
3062
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3063
+ variations?: {
3064
+ fileId: string;
3065
+ seed: number;
3066
+ phash: string;
3067
+ distanceOriginal: number;
3068
+ originalImageUrl: string;
3069
+ originalPhash: string;
3070
+ }[] | null | undefined;
3071
+ originalPhashes?: string[] | null | undefined;
3072
+ };
3073
+ } | {
3074
+ type: "IMPORTED";
3075
+ data: {
3076
+ post: {
3077
+ platformId: string;
3078
+ post: {
3079
+ status?: string | null | undefined;
3080
+ price?: number | null | undefined;
3081
+ currency?: string | null | undefined;
3082
+ brand?: string | null | undefined;
3083
+ catalog?: string | null | undefined;
3084
+ catalogId?: number | null | undefined;
3085
+ colors?: string[] | null | undefined;
3086
+ colorIds?: number[] | null | undefined;
3087
+ description?: string | null | undefined;
3088
+ measurementLength?: number | null | undefined;
3089
+ measurementWidth?: number | null | undefined;
3090
+ packageSizeId?: number | null | undefined;
3091
+ photoUrls?: string[] | null | undefined;
3092
+ size?: string | null | undefined;
3093
+ sizeId?: number | null | undefined;
3094
+ statusId?: number | null | undefined;
3095
+ title?: string | null | undefined;
3096
+ isDraft?: boolean | null | undefined;
3097
+ isArchived?: boolean | null | undefined;
3098
+ availableQuantity?: number | null | undefined;
3099
+ material?: number[] | null | undefined;
3100
+ manufacturerLabelling?: string | null | undefined;
3101
+ labels?: string[] | null | undefined;
3102
+ };
3103
+ createdAt?: Date | null | undefined;
3104
+ platformUrl?: string | null | undefined;
3105
+ };
3106
+ };
3107
+ } | {
3108
+ type: "LIFECYCLE_COMPLETED";
3109
+ data: {
3110
+ accountId: string;
3111
+ };
3112
+ } | {
3113
+ type: "LIFECYCLE_STARTED";
3114
+ data: {
3115
+ accountId: string;
3116
+ caseId: string;
3117
+ };
3118
+ } | {
3119
+ type: "PUBLISHED";
3120
+ data: {
3121
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3122
+ };
3123
+ } | {
3124
+ type: "REPUBLISHING";
3125
+ data: {
3126
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3127
+ publishingDate?: Date | null | undefined;
3128
+ priceDropPayload?: {
3129
+ value: number;
3130
+ type: "PERCENTAGE" | "ABSOLUTE";
3131
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3132
+ roundStep?: number | null | undefined;
3133
+ maxRounds?: number | null | undefined;
3134
+ } | null | undefined;
3135
+ isTransfer?: boolean | null | undefined;
3136
+ targetAccountId?: string | null | undefined;
3137
+ };
3138
+ } | {
3139
+ type: "REPUBLISHING_RETRY";
3140
+ data: {
3141
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3142
+ attemptNumber: number;
3143
+ maxAttempts: number;
3144
+ previousHistoryId: string;
3145
+ originalFailureDate: Date;
3146
+ fields?: {
3147
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3148
+ autoFixable: boolean;
3149
+ error?: string | null | undefined;
3150
+ }[] | null | undefined;
3151
+ priceDropPayload?: {
3152
+ value: number;
3153
+ type: "PERCENTAGE" | "ABSOLUTE";
3154
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3155
+ roundStep?: number | null | undefined;
3156
+ maxRounds?: number | null | undefined;
3157
+ } | null | undefined;
3158
+ };
3159
+ } | {
3160
+ type: "SCHEDULED";
3161
+ data: {
3162
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3163
+ publishingDate?: Date | null | undefined;
3164
+ };
3165
+ } | {
3166
+ type: "SCHEDULED_RETRY";
3167
+ data: {
3168
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3169
+ attemptNumber: number;
3170
+ maxAttempts: number;
3171
+ previousHistoryId: string;
3172
+ originalFailureDate: Date;
3173
+ fields?: {
3174
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3175
+ autoFixable: boolean;
3176
+ error?: string | null | undefined;
3177
+ }[] | null | undefined;
3178
+ };
3179
+ } | null | undefined;
3180
+ accountId?: string | null | undefined;
3181
+ requestId?: string | null | undefined;
3182
+ targetDate?: Date | null | undefined;
3183
+ }[] | null | undefined;
3184
+ }, {
3185
+ userId: string | number;
3186
+ id: string | number;
3187
+ updatedAt: Date;
3188
+ name: string;
3189
+ createdAt: Date;
3190
+ sold: boolean;
3191
+ state?: number | null | undefined;
3192
+ colorIds?: number[] | null | undefined;
3193
+ description?: string | null | undefined;
3194
+ packageSizeId?: number | null | undefined;
3195
+ sizeId?: number | null | undefined;
3196
+ labels?: {
3197
+ itemId: string | number;
3198
+ labelId: string | number;
3199
+ label?: {
3200
+ id: string | number;
3201
+ name: string;
3202
+ createdAt: Date;
3203
+ isUserLabel: boolean;
3204
+ userId?: string | number | null | undefined;
3205
+ itemCount?: number | null | undefined;
3206
+ parentId?: unknown;
3207
+ } | null | undefined;
3208
+ }[] | null | undefined;
3209
+ files?: {
3210
+ itemId: string | number;
3211
+ fileId: string;
3212
+ index?: number | null | undefined;
3213
+ file?: {
3214
+ path: string;
3215
+ userId: string | number;
3216
+ id: string;
3217
+ createdAt: Date;
3218
+ signedUrl: string;
3219
+ } | null | undefined;
3220
+ }[] | null | undefined;
3221
+ fields?: {
3222
+ value: string;
3223
+ itemId: string | number;
3224
+ fieldId: string | number;
3225
+ }[] | null | undefined;
3226
+ sku?: string | null | undefined;
3227
+ categoryId?: number | null | undefined;
3228
+ brandId?: string | number | null | undefined;
3229
+ sex?: string | null | undefined;
3230
+ purchasePrice?: number | null | undefined;
3231
+ purchaseDate?: Date | null | undefined;
3232
+ purchasePlaceId?: string | number | null | undefined;
3233
+ purchased?: boolean | null | undefined;
3234
+ sellingPrice?: number | null | undefined;
3235
+ sellingDate?: Date | null | undefined;
3236
+ sellingPlaceId?: string | number | null | undefined;
3237
+ estimatedPrice?: number | null | undefined;
3238
+ fees?: {
3239
+ value: number;
3240
+ type: string;
3241
+ userId: string | number;
3242
+ id: string | number;
3243
+ updatedAt: Date;
3244
+ name: string;
3245
+ createdAt: Date;
3246
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
3247
+ startDate: Date;
3248
+ active: boolean;
3249
+ description?: string | null | undefined;
3250
+ itemId?: string | number | null | undefined;
3251
+ endDate?: Date | null | undefined;
3252
+ parentFeeId?: string | number | null | undefined;
3253
+ }[] | null | undefined;
3254
+ feesSum?: number | null | undefined;
3255
+ customerId?: string | number | null | undefined;
3256
+ customer?: {
3257
+ userId: string | number;
3258
+ id: string | number;
3259
+ email: string;
3260
+ firstName: string;
3261
+ lastName: string;
3262
+ birthDate: Date;
3263
+ idNumber: string;
3264
+ phone: string;
3265
+ iban: string;
3266
+ bic: string;
3267
+ phoneVerified: boolean;
3268
+ } | null | undefined;
3269
+ customerType?: string | null | undefined;
3270
+ customerPaid?: boolean | null | undefined;
3271
+ customerPaidDate?: Date | null | undefined;
3272
+ customerPaidType?: string | null | undefined;
3273
+ contractId?: string | number | null | undefined;
3274
+ lastHistory?: {
3275
+ 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";
3276
+ id: string;
3277
+ createdAt: Date;
3278
+ itemId: string | number;
3279
+ data?: {
3280
+ type: "ACTION_CANCELED";
3281
+ data: {
3282
+ targetItemHistoryId: string;
3283
+ };
3284
+ } | {
3285
+ type: "BUYER_PAID";
3286
+ data: {
3287
+ soldAccountId: string;
3288
+ soldOrderId: string;
3289
+ soldConversationId?: string | null | undefined;
3290
+ };
3291
+ } | {
3292
+ type: "DELIVERED";
3293
+ data: {
3294
+ soldAccountId: string;
3295
+ soldOrderId: string;
3296
+ soldConversationId?: string | null | undefined;
3297
+ };
3298
+ } | {
3299
+ type: "EMPTY";
3300
+ } | {
3301
+ type: "FAILED_TO_PUBLISH";
3302
+ data: {
3303
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3304
+ accountId?: string | null | undefined;
3305
+ reason?: string | null | undefined;
3306
+ fields?: {
3307
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3308
+ autoFixable: boolean;
3309
+ error?: string | null | undefined;
3310
+ }[] | null | undefined;
3311
+ itemHistoryId?: string | null | undefined;
3312
+ };
3313
+ } | {
3314
+ type: "IMAGE_PROCESSING_DONE";
3315
+ data: {
3316
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3317
+ variations?: {
3318
+ fileId: string;
3319
+ seed: number;
3320
+ phash: string;
3321
+ distanceOriginal: number;
3322
+ originalImageUrl: string;
3323
+ originalPhash: string;
3324
+ }[] | null | undefined;
3325
+ originalPhashes?: string[] | null | undefined;
3326
+ };
3327
+ } | {
3328
+ type: "IMPORTED";
3329
+ data: {
3330
+ post: {
3331
+ platformId: string;
3332
+ post: {
3333
+ status?: string | null | undefined;
3334
+ price?: number | null | undefined;
3335
+ currency?: string | null | undefined;
3336
+ brand?: string | null | undefined;
3337
+ catalog?: string | null | undefined;
3338
+ catalogId?: number | null | undefined;
3339
+ colors?: string[] | null | undefined;
3340
+ colorIds?: number[] | null | undefined;
3341
+ description?: string | null | undefined;
3342
+ measurementLength?: number | null | undefined;
3343
+ measurementWidth?: number | null | undefined;
3344
+ packageSizeId?: number | null | undefined;
3345
+ photoUrls?: string[] | null | undefined;
3346
+ size?: string | null | undefined;
3347
+ sizeId?: number | null | undefined;
3348
+ statusId?: number | null | undefined;
3349
+ title?: string | null | undefined;
3350
+ isDraft?: boolean | null | undefined;
3351
+ isArchived?: boolean | null | undefined;
3352
+ availableQuantity?: number | null | undefined;
3353
+ material?: number[] | null | undefined;
3354
+ manufacturerLabelling?: string | null | undefined;
3355
+ labels?: string[] | null | undefined;
3356
+ };
3357
+ createdAt?: Date | null | undefined;
3358
+ platformUrl?: string | null | undefined;
3359
+ };
3360
+ };
3361
+ } | {
3362
+ type: "LIFECYCLE_COMPLETED";
3363
+ data: {
3364
+ accountId: string;
3365
+ };
3366
+ } | {
3367
+ type: "LIFECYCLE_STARTED";
3368
+ data: {
3369
+ accountId: string;
3370
+ caseId: string;
3371
+ };
3372
+ } | {
3373
+ type: "PUBLISHED";
3374
+ data: {
3375
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3376
+ };
3377
+ } | {
3378
+ type: "REPUBLISHING";
3379
+ data: {
3380
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3381
+ publishingDate?: Date | null | undefined;
3382
+ priceDropPayload?: {
3383
+ value: number;
3384
+ type: "PERCENTAGE" | "ABSOLUTE";
3385
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3386
+ roundStep?: number | null | undefined;
3387
+ maxRounds?: number | null | undefined;
3388
+ } | null | undefined;
3389
+ isTransfer?: boolean | null | undefined;
3390
+ targetAccountId?: string | null | undefined;
3391
+ };
3392
+ } | {
3393
+ type: "REPUBLISHING_RETRY";
3394
+ data: {
3395
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3396
+ attemptNumber: number;
3397
+ maxAttempts: number;
3398
+ previousHistoryId: string;
3399
+ originalFailureDate: Date;
3400
+ fields?: {
3401
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3402
+ autoFixable: boolean;
3403
+ error?: string | null | undefined;
3404
+ }[] | null | undefined;
3405
+ priceDropPayload?: {
3406
+ value: number;
3407
+ type: "PERCENTAGE" | "ABSOLUTE";
3408
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3409
+ roundStep?: number | null | undefined;
3410
+ maxRounds?: number | null | undefined;
3411
+ } | null | undefined;
3412
+ };
3413
+ } | {
3414
+ type: "SCHEDULED";
3415
+ data: {
3416
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3417
+ publishingDate?: Date | null | undefined;
3418
+ };
3419
+ } | {
3420
+ type: "SCHEDULED_RETRY";
3421
+ data: {
3422
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3423
+ attemptNumber: number;
3424
+ maxAttempts: number;
3425
+ previousHistoryId: string;
3426
+ originalFailureDate: Date;
3427
+ fields?: {
3428
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3429
+ autoFixable: boolean;
3430
+ error?: string | null | undefined;
3431
+ }[] | null | undefined;
3432
+ };
3433
+ } | null | undefined;
3434
+ accountId?: string | null | undefined;
3435
+ requestId?: string | null | undefined;
3436
+ targetDate?: Date | null | undefined;
3437
+ } | null | undefined;
3438
+ platforms?: {
3439
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
3440
+ id: string;
3441
+ updatedAt: Date;
3442
+ createdAt: Date;
3443
+ accountId: string;
3444
+ itemId: string | number;
3445
+ platformId: string;
3446
+ platformUrl: string;
3447
+ platformPrice: number;
3448
+ publishedAt: Date;
3449
+ conversationId?: string | null | undefined;
3450
+ account?: {
3451
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
3452
+ userId: string | number;
3453
+ name: string;
3454
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3455
+ accountId: string;
3456
+ locale?: string | null | undefined;
3457
+ night?: {
3458
+ startsAt: Date;
3459
+ endsAt: Date;
3460
+ } | null | undefined;
3461
+ favoritesMaxDelay?: number | null | undefined;
3462
+ ordersMaxDelay?: number | null | undefined;
3463
+ conversationsMaxDelay?: number | null | undefined;
3464
+ } | null | undefined;
3465
+ viewsCount?: number | null | undefined;
3466
+ favoritesCount?: number | null | undefined;
3467
+ }[] | null | undefined;
3468
+ history?: {
3469
+ 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";
3470
+ id: string;
3471
+ createdAt: Date;
3472
+ itemId: string | number;
3473
+ data?: {
3474
+ type: "ACTION_CANCELED";
3475
+ data: {
3476
+ targetItemHistoryId: string;
3477
+ };
3478
+ } | {
3479
+ type: "BUYER_PAID";
3480
+ data: {
3481
+ soldAccountId: string;
3482
+ soldOrderId: string;
3483
+ soldConversationId?: string | null | undefined;
3484
+ };
3485
+ } | {
3486
+ type: "DELIVERED";
3487
+ data: {
3488
+ soldAccountId: string;
3489
+ soldOrderId: string;
3490
+ soldConversationId?: string | null | undefined;
3491
+ };
3492
+ } | {
3493
+ type: "EMPTY";
3494
+ } | {
3495
+ type: "FAILED_TO_PUBLISH";
3496
+ data: {
3497
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3498
+ accountId?: string | null | undefined;
3499
+ reason?: string | null | undefined;
3500
+ fields?: {
3501
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3502
+ autoFixable: boolean;
3503
+ error?: string | null | undefined;
3504
+ }[] | null | undefined;
3505
+ itemHistoryId?: string | null | undefined;
3506
+ };
3507
+ } | {
3508
+ type: "IMAGE_PROCESSING_DONE";
3509
+ data: {
3510
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3511
+ variations?: {
3512
+ fileId: string;
3513
+ seed: number;
3514
+ phash: string;
3515
+ distanceOriginal: number;
3516
+ originalImageUrl: string;
3517
+ originalPhash: string;
3518
+ }[] | null | undefined;
3519
+ originalPhashes?: string[] | null | undefined;
3520
+ };
3521
+ } | {
3522
+ type: "IMPORTED";
3523
+ data: {
3524
+ post: {
3525
+ platformId: string;
3526
+ post: {
3527
+ status?: string | null | undefined;
3528
+ price?: number | null | undefined;
3529
+ currency?: string | null | undefined;
3530
+ brand?: string | null | undefined;
3531
+ catalog?: string | null | undefined;
3532
+ catalogId?: number | null | undefined;
3533
+ colors?: string[] | null | undefined;
3534
+ colorIds?: number[] | null | undefined;
3535
+ description?: string | null | undefined;
3536
+ measurementLength?: number | null | undefined;
3537
+ measurementWidth?: number | null | undefined;
3538
+ packageSizeId?: number | null | undefined;
3539
+ photoUrls?: string[] | null | undefined;
3540
+ size?: string | null | undefined;
3541
+ sizeId?: number | null | undefined;
3542
+ statusId?: number | null | undefined;
3543
+ title?: string | null | undefined;
3544
+ isDraft?: boolean | null | undefined;
3545
+ isArchived?: boolean | null | undefined;
3546
+ availableQuantity?: number | null | undefined;
3547
+ material?: number[] | null | undefined;
3548
+ manufacturerLabelling?: string | null | undefined;
3549
+ labels?: string[] | null | undefined;
3550
+ };
3551
+ createdAt?: Date | null | undefined;
3552
+ platformUrl?: string | null | undefined;
3553
+ };
3554
+ };
3555
+ } | {
3556
+ type: "LIFECYCLE_COMPLETED";
3557
+ data: {
3558
+ accountId: string;
3559
+ };
3560
+ } | {
3561
+ type: "LIFECYCLE_STARTED";
3562
+ data: {
3563
+ accountId: string;
3564
+ caseId: string;
3565
+ };
3566
+ } | {
3567
+ type: "PUBLISHED";
3568
+ data: {
3569
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3570
+ };
3571
+ } | {
3572
+ type: "REPUBLISHING";
3573
+ data: {
3574
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3575
+ publishingDate?: Date | null | undefined;
3576
+ priceDropPayload?: {
3577
+ value: number;
3578
+ type: "PERCENTAGE" | "ABSOLUTE";
3579
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3580
+ roundStep?: number | null | undefined;
3581
+ maxRounds?: number | null | undefined;
3582
+ } | null | undefined;
3583
+ isTransfer?: boolean | null | undefined;
3584
+ targetAccountId?: string | null | undefined;
3585
+ };
3586
+ } | {
3587
+ type: "REPUBLISHING_RETRY";
3588
+ data: {
3589
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3590
+ attemptNumber: number;
3591
+ maxAttempts: number;
3592
+ previousHistoryId: string;
3593
+ originalFailureDate: Date;
3594
+ fields?: {
3595
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3596
+ autoFixable: boolean;
3597
+ error?: string | null | undefined;
3598
+ }[] | null | undefined;
3599
+ priceDropPayload?: {
3600
+ value: number;
3601
+ type: "PERCENTAGE" | "ABSOLUTE";
3602
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3603
+ roundStep?: number | null | undefined;
3604
+ maxRounds?: number | null | undefined;
3605
+ } | null | undefined;
3606
+ };
3607
+ } | {
3608
+ type: "SCHEDULED";
3609
+ data: {
3610
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3611
+ publishingDate?: Date | null | undefined;
3612
+ };
3613
+ } | {
3614
+ type: "SCHEDULED_RETRY";
3615
+ data: {
3616
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3617
+ attemptNumber: number;
3618
+ maxAttempts: number;
3619
+ previousHistoryId: string;
3620
+ originalFailureDate: Date;
3621
+ fields?: {
3622
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3623
+ autoFixable: boolean;
3624
+ error?: string | null | undefined;
3625
+ }[] | null | undefined;
3626
+ };
3627
+ } | null | undefined;
3628
+ accountId?: string | null | undefined;
3629
+ requestId?: string | null | undefined;
3630
+ targetDate?: Date | null | undefined;
3631
+ }[] | null | undefined;
3632
+ }>;
3633
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3634
+ }, "strip", z.ZodTypeAny, {
3635
+ userId: string | number;
3636
+ item: {
3637
+ userId: string | number;
3638
+ id: string | number;
3639
+ updatedAt: Date;
3640
+ name: string;
3641
+ createdAt: Date;
3642
+ sold: boolean;
3643
+ state?: number | null | undefined;
3644
+ colorIds?: number[] | null | undefined;
3645
+ description?: string | null | undefined;
3646
+ packageSizeId?: number | null | undefined;
3647
+ sizeId?: number | null | undefined;
3648
+ labels?: {
3649
+ itemId: string | number;
3650
+ labelId: string | number;
3651
+ label?: {
3652
+ id: string | number;
3653
+ name: string;
3654
+ createdAt: Date;
3655
+ isUserLabel: boolean;
3656
+ userId?: string | number | null | undefined;
3657
+ itemCount?: number | null | undefined;
3658
+ parentId?: unknown;
3659
+ } | null | undefined;
3660
+ }[] | null | undefined;
3661
+ files?: {
3662
+ itemId: string | number;
3663
+ fileId: string;
3664
+ index?: number | null | undefined;
3665
+ file?: {
3666
+ path: string;
3667
+ userId: string | number;
3668
+ id: string;
3669
+ createdAt: Date;
3670
+ signedUrl: string;
3671
+ } | null | undefined;
3672
+ }[] | null | undefined;
3673
+ fields?: {
3674
+ value: string;
3675
+ itemId: string | number;
3676
+ fieldId: string | number;
3677
+ }[] | null | undefined;
3678
+ sku?: string | null | undefined;
3679
+ categoryId?: number | null | undefined;
3680
+ brandId?: string | number | null | undefined;
3681
+ sex?: string | null | undefined;
3682
+ purchasePrice?: number | null | undefined;
3683
+ purchaseDate?: Date | null | undefined;
3684
+ purchasePlaceId?: string | number | null | undefined;
3685
+ purchased?: boolean | null | undefined;
3686
+ sellingPrice?: number | null | undefined;
3687
+ sellingDate?: Date | null | undefined;
3688
+ sellingPlaceId?: string | number | null | undefined;
3689
+ estimatedPrice?: number | null | undefined;
3690
+ fees?: {
3691
+ value: number;
3692
+ type: string;
3693
+ userId: string | number;
3694
+ id: string | number;
3695
+ updatedAt: Date;
3696
+ name: string;
3697
+ createdAt: Date;
3698
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
3699
+ startDate: Date;
3700
+ active: boolean;
3701
+ description?: string | null | undefined;
3702
+ itemId?: string | number | null | undefined;
3703
+ endDate?: Date | null | undefined;
3704
+ parentFeeId?: string | number | null | undefined;
3705
+ }[] | null | undefined;
3706
+ feesSum?: number | null | undefined;
3707
+ customerId?: string | number | null | undefined;
3708
+ customer?: {
3709
+ userId: string | number;
3710
+ id: string | number;
3711
+ email: string;
3712
+ firstName: string;
3713
+ lastName: string;
3714
+ birthDate: Date;
3715
+ idNumber: string;
3716
+ phone: string;
3717
+ iban: string;
3718
+ bic: string;
3719
+ phoneVerified: boolean;
3720
+ } | null | undefined;
3721
+ customerType?: string | null | undefined;
3722
+ customerPaid?: boolean | null | undefined;
3723
+ customerPaidDate?: Date | null | undefined;
3724
+ customerPaidType?: string | null | undefined;
3725
+ contractId?: string | number | null | undefined;
3726
+ lastHistory?: {
3727
+ 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";
3728
+ id: string;
3729
+ createdAt: Date;
3730
+ itemId: string | number;
3731
+ data?: {
3732
+ type: "ACTION_CANCELED";
3733
+ data: {
3734
+ targetItemHistoryId: string;
3735
+ };
3736
+ } | {
3737
+ type: "BUYER_PAID";
3738
+ data: {
3739
+ soldAccountId: string;
3740
+ soldOrderId: string;
3741
+ soldConversationId?: string | null | undefined;
3742
+ };
3743
+ } | {
3744
+ type: "DELIVERED";
3745
+ data: {
3746
+ soldAccountId: string;
3747
+ soldOrderId: string;
3748
+ soldConversationId?: string | null | undefined;
3749
+ };
3750
+ } | {
3751
+ type: "EMPTY";
3752
+ } | {
3753
+ type: "FAILED_TO_PUBLISH";
3754
+ data: {
3755
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3756
+ accountId?: string | null | undefined;
3757
+ reason?: string | null | undefined;
3758
+ fields?: {
3759
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3760
+ autoFixable: boolean;
3761
+ error?: string | null | undefined;
3762
+ }[] | null | undefined;
3763
+ itemHistoryId?: string | null | undefined;
3764
+ };
3765
+ } | {
3766
+ type: "IMAGE_PROCESSING_DONE";
3767
+ data: {
3768
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3769
+ variations?: {
3770
+ fileId: string;
3771
+ seed: number;
3772
+ phash: string;
3773
+ distanceOriginal: number;
3774
+ originalImageUrl: string;
3775
+ originalPhash: string;
3776
+ }[] | null | undefined;
3777
+ originalPhashes?: string[] | null | undefined;
3778
+ };
3779
+ } | {
3780
+ type: "IMPORTED";
3781
+ data: {
3782
+ post: {
3783
+ platformId: string;
3784
+ post: {
3785
+ status?: string | null | undefined;
3786
+ price?: number | null | undefined;
3787
+ currency?: string | null | undefined;
3788
+ brand?: string | null | undefined;
3789
+ catalog?: string | null | undefined;
3790
+ catalogId?: number | null | undefined;
3791
+ colors?: string[] | null | undefined;
3792
+ colorIds?: number[] | null | undefined;
3793
+ description?: string | null | undefined;
3794
+ measurementLength?: number | null | undefined;
3795
+ measurementWidth?: number | null | undefined;
3796
+ packageSizeId?: number | null | undefined;
3797
+ photoUrls?: string[] | null | undefined;
3798
+ size?: string | null | undefined;
3799
+ sizeId?: number | null | undefined;
3800
+ statusId?: number | null | undefined;
3801
+ title?: string | null | undefined;
3802
+ isDraft?: boolean | null | undefined;
3803
+ isArchived?: boolean | null | undefined;
3804
+ availableQuantity?: number | null | undefined;
3805
+ material?: number[] | null | undefined;
3806
+ manufacturerLabelling?: string | null | undefined;
3807
+ labels?: string[] | null | undefined;
3808
+ };
3809
+ createdAt?: Date | null | undefined;
3810
+ platformUrl?: string | null | undefined;
3811
+ };
3812
+ };
3813
+ } | {
3814
+ type: "LIFECYCLE_COMPLETED";
3815
+ data: {
3816
+ accountId: string;
3817
+ };
3818
+ } | {
3819
+ type: "LIFECYCLE_STARTED";
3820
+ data: {
3821
+ accountId: string;
3822
+ caseId: string;
3823
+ };
3824
+ } | {
3825
+ type: "PUBLISHED";
3826
+ data: {
3827
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3828
+ };
3829
+ } | {
3830
+ type: "REPUBLISHING";
3831
+ data: {
3832
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3833
+ publishingDate?: Date | null | undefined;
3834
+ priceDropPayload?: {
3835
+ value: number;
3836
+ type: "PERCENTAGE" | "ABSOLUTE";
3837
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3838
+ roundStep?: number | null | undefined;
3839
+ maxRounds?: number | null | undefined;
3840
+ } | null | undefined;
3841
+ isTransfer?: boolean | null | undefined;
3842
+ targetAccountId?: string | null | undefined;
3843
+ };
3844
+ } | {
3845
+ type: "REPUBLISHING_RETRY";
3846
+ data: {
3847
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3848
+ attemptNumber: number;
3849
+ maxAttempts: number;
3850
+ previousHistoryId: string;
3851
+ originalFailureDate: Date;
3852
+ fields?: {
3853
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3854
+ autoFixable: boolean;
3855
+ error?: string | null | undefined;
3856
+ }[] | null | undefined;
3857
+ priceDropPayload?: {
3858
+ value: number;
3859
+ type: "PERCENTAGE" | "ABSOLUTE";
3860
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3861
+ roundStep?: number | null | undefined;
3862
+ maxRounds?: number | null | undefined;
3863
+ } | null | undefined;
3864
+ };
3865
+ } | {
3866
+ type: "SCHEDULED";
3867
+ data: {
3868
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3869
+ publishingDate?: Date | null | undefined;
3870
+ };
3871
+ } | {
3872
+ type: "SCHEDULED_RETRY";
3873
+ data: {
3874
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3875
+ attemptNumber: number;
3876
+ maxAttempts: number;
3877
+ previousHistoryId: string;
3878
+ originalFailureDate: Date;
3879
+ fields?: {
3880
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3881
+ autoFixable: boolean;
3882
+ error?: string | null | undefined;
3883
+ }[] | null | undefined;
3884
+ };
3885
+ } | null | undefined;
3886
+ accountId?: string | null | undefined;
3887
+ requestId?: string | null | undefined;
3888
+ targetDate?: Date | null | undefined;
3889
+ } | null | undefined;
3890
+ platforms?: {
3891
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
3892
+ id: string;
3893
+ updatedAt: Date;
3894
+ createdAt: Date;
3895
+ accountId: string;
3896
+ itemId: string | number;
3897
+ platformId: string;
3898
+ platformUrl: string;
3899
+ platformPrice: number;
3900
+ publishedAt: Date;
3901
+ conversationId?: string | null | undefined;
3902
+ account?: {
3903
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
3904
+ userId: string | number;
3905
+ name: string;
3906
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3907
+ accountId: string;
3908
+ locale?: string | null | undefined;
3909
+ night?: {
3910
+ startsAt: Date;
3911
+ endsAt: Date;
3912
+ } | null | undefined;
3913
+ favoritesMaxDelay?: number | null | undefined;
3914
+ ordersMaxDelay?: number | null | undefined;
3915
+ conversationsMaxDelay?: number | null | undefined;
3916
+ } | null | undefined;
3917
+ viewsCount?: number | null | undefined;
3918
+ favoritesCount?: number | null | undefined;
3919
+ }[] | null | undefined;
3920
+ history?: {
1919
3921
  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";
1920
3922
  id: string;
1921
3923
  createdAt: Date;
@@ -2078,40 +4080,10 @@ export declare const ItemUpdateSchema: z.ZodObject<{
2078
4080
  accountId?: string | null | undefined;
2079
4081
  requestId?: string | null | undefined;
2080
4082
  targetDate?: Date | null | undefined;
2081
- } | null | undefined;
2082
- platforms?: {
2083
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2084
- id: string;
2085
- updatedAt: Date;
2086
- createdAt: Date;
2087
- accountId: string;
2088
- itemId: string | number;
2089
- platformId: string;
2090
- platformUrl: string;
2091
- platformPrice: number;
2092
- publishedAt: Date;
2093
- conversationId?: string | null | undefined;
2094
- account?: {
2095
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
2096
- userId: string | number;
2097
- name: string;
2098
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2099
- accountId: string;
2100
- locale?: string | null | undefined;
2101
- night?: {
2102
- startsAt: Date;
2103
- endsAt: Date;
2104
- } | null | undefined;
2105
- favoritesMaxDelay?: number | null | undefined;
2106
- ordersMaxDelay?: number | null | undefined;
2107
- conversationsMaxDelay?: number | null | undefined;
2108
- } | null | undefined;
2109
- viewsCount?: number | null | undefined;
2110
- favoritesCount?: number | null | undefined;
2111
4083
  }[] | null | undefined;
2112
- }>;
2113
- deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2114
- }, "strip", z.ZodTypeAny, {
4084
+ };
4085
+ deleted?: boolean | null | undefined;
4086
+ }, {
2115
4087
  userId: string | number;
2116
4088
  item: {
2117
4089
  userId: string | number;
@@ -2397,101 +4369,7 @@ export declare const ItemUpdateSchema: z.ZodObject<{
2397
4369
  viewsCount?: number | null | undefined;
2398
4370
  favoritesCount?: number | null | undefined;
2399
4371
  }[] | null | undefined;
2400
- };
2401
- deleted?: boolean | null | undefined;
2402
- }, {
2403
- userId: string | number;
2404
- item: {
2405
- userId: string | number;
2406
- id: string | number;
2407
- updatedAt: Date;
2408
- name: string;
2409
- createdAt: Date;
2410
- sold: boolean;
2411
- state?: number | null | undefined;
2412
- colorIds?: number[] | null | undefined;
2413
- description?: string | null | undefined;
2414
- packageSizeId?: number | null | undefined;
2415
- sizeId?: number | null | undefined;
2416
- labels?: {
2417
- itemId: string | number;
2418
- labelId: string | number;
2419
- label?: {
2420
- id: string | number;
2421
- name: string;
2422
- createdAt: Date;
2423
- isUserLabel: boolean;
2424
- userId?: string | number | null | undefined;
2425
- itemCount?: number | null | undefined;
2426
- parentId?: unknown;
2427
- } | null | undefined;
2428
- }[] | null | undefined;
2429
- files?: {
2430
- itemId: string | number;
2431
- fileId: string;
2432
- index?: number | null | undefined;
2433
- file?: {
2434
- path: string;
2435
- userId: string | number;
2436
- id: string;
2437
- createdAt: Date;
2438
- signedUrl: string;
2439
- } | null | undefined;
2440
- }[] | null | undefined;
2441
- fields?: {
2442
- value: string;
2443
- itemId: string | number;
2444
- fieldId: string | number;
2445
- }[] | null | undefined;
2446
- sku?: string | null | undefined;
2447
- categoryId?: number | null | undefined;
2448
- brandId?: string | number | null | undefined;
2449
- sex?: string | null | undefined;
2450
- purchasePrice?: number | null | undefined;
2451
- purchaseDate?: Date | null | undefined;
2452
- purchasePlaceId?: string | number | null | undefined;
2453
- purchased?: boolean | null | undefined;
2454
- sellingPrice?: number | null | undefined;
2455
- sellingDate?: Date | null | undefined;
2456
- sellingPlaceId?: string | number | null | undefined;
2457
- estimatedPrice?: number | null | undefined;
2458
- fees?: {
2459
- value: number;
2460
- type: string;
2461
- userId: string | number;
2462
- id: string | number;
2463
- updatedAt: Date;
2464
- name: string;
2465
- createdAt: Date;
2466
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
2467
- startDate: Date;
2468
- active: boolean;
2469
- description?: string | null | undefined;
2470
- itemId?: string | number | null | undefined;
2471
- endDate?: Date | null | undefined;
2472
- parentFeeId?: string | number | null | undefined;
2473
- }[] | null | undefined;
2474
- feesSum?: number | null | undefined;
2475
- customerId?: string | number | null | undefined;
2476
- customer?: {
2477
- userId: string | number;
2478
- id: string | number;
2479
- email: string;
2480
- firstName: string;
2481
- lastName: string;
2482
- birthDate: Date;
2483
- idNumber: string;
2484
- phone: string;
2485
- iban: string;
2486
- bic: string;
2487
- phoneVerified: boolean;
2488
- } | null | undefined;
2489
- customerType?: string | null | undefined;
2490
- customerPaid?: boolean | null | undefined;
2491
- customerPaidDate?: Date | null | undefined;
2492
- customerPaidType?: string | null | undefined;
2493
- contractId?: string | number | null | undefined;
2494
- lastHistory?: {
4372
+ history?: {
2495
4373
  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";
2496
4374
  id: string;
2497
4375
  createdAt: Date;
@@ -2654,36 +4532,6 @@ export declare const ItemUpdateSchema: z.ZodObject<{
2654
4532
  accountId?: string | null | undefined;
2655
4533
  requestId?: string | null | undefined;
2656
4534
  targetDate?: Date | null | undefined;
2657
- } | null | undefined;
2658
- platforms?: {
2659
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2660
- id: string;
2661
- updatedAt: Date;
2662
- createdAt: Date;
2663
- accountId: string;
2664
- itemId: string | number;
2665
- platformId: string;
2666
- platformUrl: string;
2667
- platformPrice: number;
2668
- publishedAt: Date;
2669
- conversationId?: string | null | undefined;
2670
- account?: {
2671
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
2672
- userId: string | number;
2673
- name: string;
2674
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2675
- accountId: string;
2676
- locale?: string | null | undefined;
2677
- night?: {
2678
- startsAt: Date;
2679
- endsAt: Date;
2680
- } | null | undefined;
2681
- favoritesMaxDelay?: number | null | undefined;
2682
- ordersMaxDelay?: number | null | undefined;
2683
- conversationsMaxDelay?: number | null | undefined;
2684
- } | null | undefined;
2685
- viewsCount?: number | null | undefined;
2686
- favoritesCount?: number | null | undefined;
2687
4535
  }[] | null | undefined;
2688
4536
  };
2689
4537
  deleted?: boolean | null | undefined;