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
@@ -1537,6 +1537,1198 @@ export declare const ItemSchema: z.ZodObject<{
1537
1537
  viewsCount?: number | null | undefined;
1538
1538
  favoritesCount?: number | null | undefined;
1539
1539
  }>, "many">>>;
1540
+ history: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1541
+ id: z.ZodString;
1542
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1543
+ 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"]>;
1544
+ data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1545
+ data: z.ZodObject<{
1546
+ targetItemHistoryId: z.ZodString;
1547
+ }, "strip", z.ZodTypeAny, {
1548
+ targetItemHistoryId: string;
1549
+ }, {
1550
+ targetItemHistoryId: string;
1551
+ }>;
1552
+ type: z.ZodLiteral<"ACTION_CANCELED">;
1553
+ }, "strip", z.ZodTypeAny, {
1554
+ type: "ACTION_CANCELED";
1555
+ data: {
1556
+ targetItemHistoryId: string;
1557
+ };
1558
+ }, {
1559
+ type: "ACTION_CANCELED";
1560
+ data: {
1561
+ targetItemHistoryId: string;
1562
+ };
1563
+ }>, z.ZodObject<{
1564
+ data: z.ZodObject<{
1565
+ soldAccountId: z.ZodString;
1566
+ soldOrderId: z.ZodString;
1567
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1568
+ }, "strip", z.ZodTypeAny, {
1569
+ soldAccountId: string;
1570
+ soldOrderId: string;
1571
+ soldConversationId?: string | null | undefined;
1572
+ }, {
1573
+ soldAccountId: string;
1574
+ soldOrderId: string;
1575
+ soldConversationId?: string | null | undefined;
1576
+ }>;
1577
+ type: z.ZodLiteral<"BUYER_PAID">;
1578
+ }, "strip", z.ZodTypeAny, {
1579
+ type: "BUYER_PAID";
1580
+ data: {
1581
+ soldAccountId: string;
1582
+ soldOrderId: string;
1583
+ soldConversationId?: string | null | undefined;
1584
+ };
1585
+ }, {
1586
+ type: "BUYER_PAID";
1587
+ data: {
1588
+ soldAccountId: string;
1589
+ soldOrderId: string;
1590
+ soldConversationId?: string | null | undefined;
1591
+ };
1592
+ }>, z.ZodObject<{
1593
+ data: z.ZodObject<{
1594
+ soldAccountId: z.ZodString;
1595
+ soldOrderId: z.ZodString;
1596
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1597
+ }, "strip", z.ZodTypeAny, {
1598
+ soldAccountId: string;
1599
+ soldOrderId: string;
1600
+ soldConversationId?: string | null | undefined;
1601
+ }, {
1602
+ soldAccountId: string;
1603
+ soldOrderId: string;
1604
+ soldConversationId?: string | null | undefined;
1605
+ }>;
1606
+ type: z.ZodLiteral<"DELIVERED">;
1607
+ }, "strip", z.ZodTypeAny, {
1608
+ type: "DELIVERED";
1609
+ data: {
1610
+ soldAccountId: string;
1611
+ soldOrderId: string;
1612
+ soldConversationId?: string | null | undefined;
1613
+ };
1614
+ }, {
1615
+ type: "DELIVERED";
1616
+ data: {
1617
+ soldAccountId: string;
1618
+ soldOrderId: string;
1619
+ soldConversationId?: string | null | undefined;
1620
+ };
1621
+ }>, z.ZodObject<{
1622
+ type: z.ZodLiteral<"EMPTY">;
1623
+ }, "strip", z.ZodTypeAny, {
1624
+ type: "EMPTY";
1625
+ }, {
1626
+ type: "EMPTY";
1627
+ }>, z.ZodObject<{
1628
+ data: z.ZodObject<{
1629
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1630
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1631
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1632
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1633
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
1634
+ autoFixable: z.ZodBoolean;
1635
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1636
+ }, "strip", z.ZodTypeAny, {
1637
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1638
+ autoFixable: boolean;
1639
+ error?: string | null | undefined;
1640
+ }, {
1641
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1642
+ autoFixable: boolean;
1643
+ error?: string | null | undefined;
1644
+ }>, "many">>>;
1645
+ itemHistoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1646
+ }, "strip", z.ZodTypeAny, {
1647
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1648
+ accountId?: string | null | undefined;
1649
+ reason?: string | null | undefined;
1650
+ fields?: {
1651
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1652
+ autoFixable: boolean;
1653
+ error?: string | null | undefined;
1654
+ }[] | null | undefined;
1655
+ itemHistoryId?: string | null | undefined;
1656
+ }, {
1657
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1658
+ accountId?: string | null | undefined;
1659
+ reason?: string | null | undefined;
1660
+ fields?: {
1661
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1662
+ autoFixable: boolean;
1663
+ error?: string | null | undefined;
1664
+ }[] | null | undefined;
1665
+ itemHistoryId?: string | null | undefined;
1666
+ }>;
1667
+ type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
1668
+ }, "strip", z.ZodTypeAny, {
1669
+ type: "FAILED_TO_PUBLISH";
1670
+ data: {
1671
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1672
+ accountId?: string | null | undefined;
1673
+ reason?: string | null | undefined;
1674
+ fields?: {
1675
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1676
+ autoFixable: boolean;
1677
+ error?: string | null | undefined;
1678
+ }[] | null | undefined;
1679
+ itemHistoryId?: string | null | undefined;
1680
+ };
1681
+ }, {
1682
+ type: "FAILED_TO_PUBLISH";
1683
+ data: {
1684
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1685
+ accountId?: string | null | undefined;
1686
+ reason?: string | null | undefined;
1687
+ fields?: {
1688
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1689
+ autoFixable: boolean;
1690
+ error?: string | null | undefined;
1691
+ }[] | null | undefined;
1692
+ itemHistoryId?: string | null | undefined;
1693
+ };
1694
+ }>, z.ZodObject<{
1695
+ data: z.ZodObject<{
1696
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1697
+ variations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1698
+ fileId: z.ZodString;
1699
+ seed: z.ZodNumber;
1700
+ phash: z.ZodString;
1701
+ distanceOriginal: z.ZodNumber;
1702
+ originalImageUrl: z.ZodString;
1703
+ originalPhash: z.ZodString;
1704
+ }, "strip", z.ZodTypeAny, {
1705
+ fileId: string;
1706
+ seed: number;
1707
+ phash: string;
1708
+ distanceOriginal: number;
1709
+ originalImageUrl: string;
1710
+ originalPhash: string;
1711
+ }, {
1712
+ fileId: string;
1713
+ seed: number;
1714
+ phash: string;
1715
+ distanceOriginal: number;
1716
+ originalImageUrl: string;
1717
+ originalPhash: string;
1718
+ }>, "many">>>;
1719
+ originalPhashes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1720
+ }, "strip", z.ZodTypeAny, {
1721
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1722
+ variations?: {
1723
+ fileId: string;
1724
+ seed: number;
1725
+ phash: string;
1726
+ distanceOriginal: number;
1727
+ originalImageUrl: string;
1728
+ originalPhash: string;
1729
+ }[] | null | undefined;
1730
+ originalPhashes?: string[] | null | undefined;
1731
+ }, {
1732
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1733
+ variations?: {
1734
+ fileId: string;
1735
+ seed: number;
1736
+ phash: string;
1737
+ distanceOriginal: number;
1738
+ originalImageUrl: string;
1739
+ originalPhash: string;
1740
+ }[] | null | undefined;
1741
+ originalPhashes?: string[] | null | undefined;
1742
+ }>;
1743
+ type: z.ZodLiteral<"IMAGE_PROCESSING_DONE">;
1744
+ }, "strip", z.ZodTypeAny, {
1745
+ type: "IMAGE_PROCESSING_DONE";
1746
+ data: {
1747
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1748
+ variations?: {
1749
+ fileId: string;
1750
+ seed: number;
1751
+ phash: string;
1752
+ distanceOriginal: number;
1753
+ originalImageUrl: string;
1754
+ originalPhash: string;
1755
+ }[] | null | undefined;
1756
+ originalPhashes?: string[] | null | undefined;
1757
+ };
1758
+ }, {
1759
+ type: "IMAGE_PROCESSING_DONE";
1760
+ data: {
1761
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1762
+ variations?: {
1763
+ fileId: string;
1764
+ seed: number;
1765
+ phash: string;
1766
+ distanceOriginal: number;
1767
+ originalImageUrl: string;
1768
+ originalPhash: string;
1769
+ }[] | null | undefined;
1770
+ originalPhashes?: string[] | null | undefined;
1771
+ };
1772
+ }>, z.ZodObject<{
1773
+ data: z.ZodObject<{
1774
+ post: z.ZodObject<{
1775
+ platformId: z.ZodString;
1776
+ platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1777
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1778
+ post: z.ZodObject<{
1779
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1780
+ catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1781
+ catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1782
+ colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1783
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1784
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1785
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1786
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1787
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1788
+ photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1789
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1790
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1791
+ size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1792
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1793
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1794
+ statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1795
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1796
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1797
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1798
+ availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1799
+ material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1800
+ manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1801
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1802
+ }, "strip", z.ZodTypeAny, {
1803
+ status?: string | null | undefined;
1804
+ price?: number | null | undefined;
1805
+ currency?: string | null | undefined;
1806
+ brand?: string | null | undefined;
1807
+ catalog?: string | null | undefined;
1808
+ catalogId?: number | null | undefined;
1809
+ colors?: string[] | null | undefined;
1810
+ colorIds?: number[] | null | undefined;
1811
+ description?: string | null | undefined;
1812
+ measurementLength?: number | null | undefined;
1813
+ measurementWidth?: number | null | undefined;
1814
+ packageSizeId?: number | null | undefined;
1815
+ photoUrls?: string[] | null | undefined;
1816
+ size?: string | null | undefined;
1817
+ sizeId?: number | null | undefined;
1818
+ statusId?: number | null | undefined;
1819
+ title?: string | null | undefined;
1820
+ isDraft?: boolean | null | undefined;
1821
+ isArchived?: boolean | null | undefined;
1822
+ availableQuantity?: number | null | undefined;
1823
+ material?: number[] | null | undefined;
1824
+ manufacturerLabelling?: string | null | undefined;
1825
+ labels?: string[] | null | undefined;
1826
+ }, {
1827
+ status?: string | null | undefined;
1828
+ price?: number | null | undefined;
1829
+ currency?: string | null | undefined;
1830
+ brand?: string | null | undefined;
1831
+ catalog?: string | null | undefined;
1832
+ catalogId?: number | null | undefined;
1833
+ colors?: string[] | null | undefined;
1834
+ colorIds?: number[] | null | undefined;
1835
+ description?: string | null | undefined;
1836
+ measurementLength?: number | null | undefined;
1837
+ measurementWidth?: number | null | undefined;
1838
+ packageSizeId?: number | null | undefined;
1839
+ photoUrls?: string[] | null | undefined;
1840
+ size?: string | null | undefined;
1841
+ sizeId?: number | null | undefined;
1842
+ statusId?: number | null | undefined;
1843
+ title?: string | null | undefined;
1844
+ isDraft?: boolean | null | undefined;
1845
+ isArchived?: boolean | null | undefined;
1846
+ availableQuantity?: number | null | undefined;
1847
+ material?: number[] | null | undefined;
1848
+ manufacturerLabelling?: string | null | undefined;
1849
+ labels?: string[] | null | undefined;
1850
+ }>;
1851
+ }, "strip", z.ZodTypeAny, {
1852
+ platformId: string;
1853
+ post: {
1854
+ status?: string | null | undefined;
1855
+ price?: number | null | undefined;
1856
+ currency?: string | null | undefined;
1857
+ brand?: string | null | undefined;
1858
+ catalog?: string | null | undefined;
1859
+ catalogId?: number | null | undefined;
1860
+ colors?: string[] | null | undefined;
1861
+ colorIds?: number[] | null | undefined;
1862
+ description?: string | null | undefined;
1863
+ measurementLength?: number | null | undefined;
1864
+ measurementWidth?: number | null | undefined;
1865
+ packageSizeId?: number | null | undefined;
1866
+ photoUrls?: string[] | null | undefined;
1867
+ size?: string | null | undefined;
1868
+ sizeId?: number | null | undefined;
1869
+ statusId?: number | null | undefined;
1870
+ title?: string | null | undefined;
1871
+ isDraft?: boolean | null | undefined;
1872
+ isArchived?: boolean | null | undefined;
1873
+ availableQuantity?: number | null | undefined;
1874
+ material?: number[] | null | undefined;
1875
+ manufacturerLabelling?: string | null | undefined;
1876
+ labels?: string[] | null | undefined;
1877
+ };
1878
+ createdAt?: Date | null | undefined;
1879
+ platformUrl?: string | null | undefined;
1880
+ }, {
1881
+ platformId: string;
1882
+ post: {
1883
+ status?: string | null | undefined;
1884
+ price?: number | null | undefined;
1885
+ currency?: string | null | undefined;
1886
+ brand?: string | null | undefined;
1887
+ catalog?: string | null | undefined;
1888
+ catalogId?: number | null | undefined;
1889
+ colors?: string[] | null | undefined;
1890
+ colorIds?: number[] | null | undefined;
1891
+ description?: string | null | undefined;
1892
+ measurementLength?: number | null | undefined;
1893
+ measurementWidth?: number | null | undefined;
1894
+ packageSizeId?: number | null | undefined;
1895
+ photoUrls?: string[] | null | undefined;
1896
+ size?: string | null | undefined;
1897
+ sizeId?: number | null | undefined;
1898
+ statusId?: number | null | undefined;
1899
+ title?: string | null | undefined;
1900
+ isDraft?: boolean | null | undefined;
1901
+ isArchived?: boolean | null | undefined;
1902
+ availableQuantity?: number | null | undefined;
1903
+ material?: number[] | null | undefined;
1904
+ manufacturerLabelling?: string | null | undefined;
1905
+ labels?: string[] | null | undefined;
1906
+ };
1907
+ createdAt?: Date | null | undefined;
1908
+ platformUrl?: string | null | undefined;
1909
+ }>;
1910
+ }, "strip", z.ZodTypeAny, {
1911
+ post: {
1912
+ platformId: string;
1913
+ post: {
1914
+ status?: string | null | undefined;
1915
+ price?: number | null | undefined;
1916
+ currency?: string | null | undefined;
1917
+ brand?: string | null | undefined;
1918
+ catalog?: string | null | undefined;
1919
+ catalogId?: number | null | undefined;
1920
+ colors?: string[] | null | undefined;
1921
+ colorIds?: number[] | null | undefined;
1922
+ description?: string | null | undefined;
1923
+ measurementLength?: number | null | undefined;
1924
+ measurementWidth?: number | null | undefined;
1925
+ packageSizeId?: number | null | undefined;
1926
+ photoUrls?: string[] | null | undefined;
1927
+ size?: string | null | undefined;
1928
+ sizeId?: number | null | undefined;
1929
+ statusId?: number | null | undefined;
1930
+ title?: string | null | undefined;
1931
+ isDraft?: boolean | null | undefined;
1932
+ isArchived?: boolean | null | undefined;
1933
+ availableQuantity?: number | null | undefined;
1934
+ material?: number[] | null | undefined;
1935
+ manufacturerLabelling?: string | null | undefined;
1936
+ labels?: string[] | null | undefined;
1937
+ };
1938
+ createdAt?: Date | null | undefined;
1939
+ platformUrl?: string | null | undefined;
1940
+ };
1941
+ }, {
1942
+ post: {
1943
+ platformId: string;
1944
+ post: {
1945
+ status?: string | null | undefined;
1946
+ price?: number | null | undefined;
1947
+ currency?: string | null | undefined;
1948
+ brand?: string | null | undefined;
1949
+ catalog?: string | null | undefined;
1950
+ catalogId?: number | null | undefined;
1951
+ colors?: string[] | null | undefined;
1952
+ colorIds?: number[] | null | undefined;
1953
+ description?: string | null | undefined;
1954
+ measurementLength?: number | null | undefined;
1955
+ measurementWidth?: number | null | undefined;
1956
+ packageSizeId?: number | null | undefined;
1957
+ photoUrls?: string[] | null | undefined;
1958
+ size?: string | null | undefined;
1959
+ sizeId?: number | null | undefined;
1960
+ statusId?: number | null | undefined;
1961
+ title?: string | null | undefined;
1962
+ isDraft?: boolean | null | undefined;
1963
+ isArchived?: boolean | null | undefined;
1964
+ availableQuantity?: number | null | undefined;
1965
+ material?: number[] | null | undefined;
1966
+ manufacturerLabelling?: string | null | undefined;
1967
+ labels?: string[] | null | undefined;
1968
+ };
1969
+ createdAt?: Date | null | undefined;
1970
+ platformUrl?: string | null | undefined;
1971
+ };
1972
+ }>;
1973
+ type: z.ZodLiteral<"IMPORTED">;
1974
+ }, "strip", z.ZodTypeAny, {
1975
+ type: "IMPORTED";
1976
+ data: {
1977
+ post: {
1978
+ platformId: string;
1979
+ post: {
1980
+ status?: string | null | undefined;
1981
+ price?: number | null | undefined;
1982
+ currency?: string | null | undefined;
1983
+ brand?: string | null | undefined;
1984
+ catalog?: string | null | undefined;
1985
+ catalogId?: number | null | undefined;
1986
+ colors?: string[] | null | undefined;
1987
+ colorIds?: number[] | null | undefined;
1988
+ description?: string | null | undefined;
1989
+ measurementLength?: number | null | undefined;
1990
+ measurementWidth?: number | null | undefined;
1991
+ packageSizeId?: number | null | undefined;
1992
+ photoUrls?: string[] | null | undefined;
1993
+ size?: string | null | undefined;
1994
+ sizeId?: number | null | undefined;
1995
+ statusId?: number | null | undefined;
1996
+ title?: string | null | undefined;
1997
+ isDraft?: boolean | null | undefined;
1998
+ isArchived?: boolean | null | undefined;
1999
+ availableQuantity?: number | null | undefined;
2000
+ material?: number[] | null | undefined;
2001
+ manufacturerLabelling?: string | null | undefined;
2002
+ labels?: string[] | null | undefined;
2003
+ };
2004
+ createdAt?: Date | null | undefined;
2005
+ platformUrl?: string | null | undefined;
2006
+ };
2007
+ };
2008
+ }, {
2009
+ type: "IMPORTED";
2010
+ data: {
2011
+ post: {
2012
+ platformId: string;
2013
+ post: {
2014
+ status?: string | null | undefined;
2015
+ price?: number | null | undefined;
2016
+ currency?: string | null | undefined;
2017
+ brand?: string | null | undefined;
2018
+ catalog?: string | null | undefined;
2019
+ catalogId?: number | null | undefined;
2020
+ colors?: string[] | null | undefined;
2021
+ colorIds?: number[] | null | undefined;
2022
+ description?: string | null | undefined;
2023
+ measurementLength?: number | null | undefined;
2024
+ measurementWidth?: number | null | undefined;
2025
+ packageSizeId?: number | null | undefined;
2026
+ photoUrls?: string[] | null | undefined;
2027
+ size?: string | null | undefined;
2028
+ sizeId?: number | null | undefined;
2029
+ statusId?: number | null | undefined;
2030
+ title?: string | null | undefined;
2031
+ isDraft?: boolean | null | undefined;
2032
+ isArchived?: boolean | null | undefined;
2033
+ availableQuantity?: number | null | undefined;
2034
+ material?: number[] | null | undefined;
2035
+ manufacturerLabelling?: string | null | undefined;
2036
+ labels?: string[] | null | undefined;
2037
+ };
2038
+ createdAt?: Date | null | undefined;
2039
+ platformUrl?: string | null | undefined;
2040
+ };
2041
+ };
2042
+ }>, z.ZodObject<{
2043
+ data: z.ZodObject<{
2044
+ accountId: z.ZodString;
2045
+ }, "strip", z.ZodTypeAny, {
2046
+ accountId: string;
2047
+ }, {
2048
+ accountId: string;
2049
+ }>;
2050
+ type: z.ZodLiteral<"LIFECYCLE_COMPLETED">;
2051
+ }, "strip", z.ZodTypeAny, {
2052
+ type: "LIFECYCLE_COMPLETED";
2053
+ data: {
2054
+ accountId: string;
2055
+ };
2056
+ }, {
2057
+ type: "LIFECYCLE_COMPLETED";
2058
+ data: {
2059
+ accountId: string;
2060
+ };
2061
+ }>, z.ZodObject<{
2062
+ data: z.ZodObject<{
2063
+ accountId: z.ZodString;
2064
+ caseId: z.ZodString;
2065
+ }, "strip", z.ZodTypeAny, {
2066
+ accountId: string;
2067
+ caseId: string;
2068
+ }, {
2069
+ accountId: string;
2070
+ caseId: string;
2071
+ }>;
2072
+ type: z.ZodLiteral<"LIFECYCLE_STARTED">;
2073
+ }, "strip", z.ZodTypeAny, {
2074
+ type: "LIFECYCLE_STARTED";
2075
+ data: {
2076
+ accountId: string;
2077
+ caseId: string;
2078
+ };
2079
+ }, {
2080
+ type: "LIFECYCLE_STARTED";
2081
+ data: {
2082
+ accountId: string;
2083
+ caseId: string;
2084
+ };
2085
+ }>, z.ZodObject<{
2086
+ data: z.ZodObject<{
2087
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2088
+ }, "strip", z.ZodTypeAny, {
2089
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2090
+ }, {
2091
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2092
+ }>;
2093
+ type: z.ZodLiteral<"PUBLISHED">;
2094
+ }, "strip", z.ZodTypeAny, {
2095
+ type: "PUBLISHED";
2096
+ data: {
2097
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2098
+ };
2099
+ }, {
2100
+ type: "PUBLISHED";
2101
+ data: {
2102
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2103
+ };
2104
+ }>, z.ZodObject<{
2105
+ data: z.ZodObject<{
2106
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2107
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2108
+ priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2109
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
2110
+ value: z.ZodNumber;
2111
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
2112
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2113
+ maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2114
+ }, "strip", z.ZodTypeAny, {
2115
+ value: number;
2116
+ type: "PERCENTAGE" | "ABSOLUTE";
2117
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2118
+ roundStep?: number | null | undefined;
2119
+ maxRounds?: number | null | undefined;
2120
+ }, {
2121
+ value: number;
2122
+ type: "PERCENTAGE" | "ABSOLUTE";
2123
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2124
+ roundStep?: number | null | undefined;
2125
+ maxRounds?: number | null | undefined;
2126
+ }>>>;
2127
+ isTransfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2128
+ targetAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2129
+ }, "strip", z.ZodTypeAny, {
2130
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2131
+ publishingDate?: Date | null | undefined;
2132
+ priceDropPayload?: {
2133
+ value: number;
2134
+ type: "PERCENTAGE" | "ABSOLUTE";
2135
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2136
+ roundStep?: number | null | undefined;
2137
+ maxRounds?: number | null | undefined;
2138
+ } | null | undefined;
2139
+ isTransfer?: boolean | null | undefined;
2140
+ targetAccountId?: string | null | undefined;
2141
+ }, {
2142
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2143
+ publishingDate?: Date | null | undefined;
2144
+ priceDropPayload?: {
2145
+ value: number;
2146
+ type: "PERCENTAGE" | "ABSOLUTE";
2147
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2148
+ roundStep?: number | null | undefined;
2149
+ maxRounds?: number | null | undefined;
2150
+ } | null | undefined;
2151
+ isTransfer?: boolean | null | undefined;
2152
+ targetAccountId?: string | null | undefined;
2153
+ }>;
2154
+ type: z.ZodLiteral<"REPUBLISHING">;
2155
+ }, "strip", z.ZodTypeAny, {
2156
+ type: "REPUBLISHING";
2157
+ data: {
2158
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2159
+ publishingDate?: Date | null | undefined;
2160
+ priceDropPayload?: {
2161
+ value: number;
2162
+ type: "PERCENTAGE" | "ABSOLUTE";
2163
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2164
+ roundStep?: number | null | undefined;
2165
+ maxRounds?: number | null | undefined;
2166
+ } | null | undefined;
2167
+ isTransfer?: boolean | null | undefined;
2168
+ targetAccountId?: string | null | undefined;
2169
+ };
2170
+ }, {
2171
+ type: "REPUBLISHING";
2172
+ data: {
2173
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2174
+ publishingDate?: Date | null | undefined;
2175
+ priceDropPayload?: {
2176
+ value: number;
2177
+ type: "PERCENTAGE" | "ABSOLUTE";
2178
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2179
+ roundStep?: number | null | undefined;
2180
+ maxRounds?: number | null | undefined;
2181
+ } | null | undefined;
2182
+ isTransfer?: boolean | null | undefined;
2183
+ targetAccountId?: string | null | undefined;
2184
+ };
2185
+ }>, z.ZodObject<{
2186
+ data: z.ZodObject<{
2187
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2188
+ attemptNumber: z.ZodNumber;
2189
+ maxAttempts: z.ZodNumber;
2190
+ previousHistoryId: z.ZodString;
2191
+ originalFailureDate: z.ZodDate;
2192
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2193
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
2194
+ autoFixable: z.ZodBoolean;
2195
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2196
+ }, "strip", z.ZodTypeAny, {
2197
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2198
+ autoFixable: boolean;
2199
+ error?: string | null | undefined;
2200
+ }, {
2201
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2202
+ autoFixable: boolean;
2203
+ error?: string | null | undefined;
2204
+ }>, "many">>>;
2205
+ priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2206
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
2207
+ value: z.ZodNumber;
2208
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
2209
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2210
+ maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2211
+ }, "strip", z.ZodTypeAny, {
2212
+ value: number;
2213
+ type: "PERCENTAGE" | "ABSOLUTE";
2214
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2215
+ roundStep?: number | null | undefined;
2216
+ maxRounds?: number | null | undefined;
2217
+ }, {
2218
+ value: number;
2219
+ type: "PERCENTAGE" | "ABSOLUTE";
2220
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2221
+ roundStep?: number | null | undefined;
2222
+ maxRounds?: number | null | undefined;
2223
+ }>>>;
2224
+ }, "strip", z.ZodTypeAny, {
2225
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2226
+ attemptNumber: number;
2227
+ maxAttempts: number;
2228
+ previousHistoryId: string;
2229
+ originalFailureDate: Date;
2230
+ fields?: {
2231
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2232
+ autoFixable: boolean;
2233
+ error?: string | null | undefined;
2234
+ }[] | null | undefined;
2235
+ priceDropPayload?: {
2236
+ value: number;
2237
+ type: "PERCENTAGE" | "ABSOLUTE";
2238
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2239
+ roundStep?: number | null | undefined;
2240
+ maxRounds?: number | null | undefined;
2241
+ } | null | undefined;
2242
+ }, {
2243
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2244
+ attemptNumber: number;
2245
+ maxAttempts: number;
2246
+ previousHistoryId: string;
2247
+ originalFailureDate: Date;
2248
+ fields?: {
2249
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2250
+ autoFixable: boolean;
2251
+ error?: string | null | undefined;
2252
+ }[] | null | undefined;
2253
+ priceDropPayload?: {
2254
+ value: number;
2255
+ type: "PERCENTAGE" | "ABSOLUTE";
2256
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2257
+ roundStep?: number | null | undefined;
2258
+ maxRounds?: number | null | undefined;
2259
+ } | null | undefined;
2260
+ }>;
2261
+ type: z.ZodLiteral<"REPUBLISHING_RETRY">;
2262
+ }, "strip", z.ZodTypeAny, {
2263
+ type: "REPUBLISHING_RETRY";
2264
+ data: {
2265
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2266
+ attemptNumber: number;
2267
+ maxAttempts: number;
2268
+ previousHistoryId: string;
2269
+ originalFailureDate: Date;
2270
+ fields?: {
2271
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2272
+ autoFixable: boolean;
2273
+ error?: string | null | undefined;
2274
+ }[] | null | undefined;
2275
+ priceDropPayload?: {
2276
+ value: number;
2277
+ type: "PERCENTAGE" | "ABSOLUTE";
2278
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2279
+ roundStep?: number | null | undefined;
2280
+ maxRounds?: number | null | undefined;
2281
+ } | null | undefined;
2282
+ };
2283
+ }, {
2284
+ type: "REPUBLISHING_RETRY";
2285
+ data: {
2286
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2287
+ attemptNumber: number;
2288
+ maxAttempts: number;
2289
+ previousHistoryId: string;
2290
+ originalFailureDate: Date;
2291
+ fields?: {
2292
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2293
+ autoFixable: boolean;
2294
+ error?: string | null | undefined;
2295
+ }[] | null | undefined;
2296
+ priceDropPayload?: {
2297
+ value: number;
2298
+ type: "PERCENTAGE" | "ABSOLUTE";
2299
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2300
+ roundStep?: number | null | undefined;
2301
+ maxRounds?: number | null | undefined;
2302
+ } | null | undefined;
2303
+ };
2304
+ }>, z.ZodObject<{
2305
+ data: z.ZodObject<{
2306
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2307
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2308
+ }, "strip", z.ZodTypeAny, {
2309
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2310
+ publishingDate?: Date | null | undefined;
2311
+ }, {
2312
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2313
+ publishingDate?: Date | null | undefined;
2314
+ }>;
2315
+ type: z.ZodLiteral<"SCHEDULED">;
2316
+ }, "strip", z.ZodTypeAny, {
2317
+ type: "SCHEDULED";
2318
+ data: {
2319
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2320
+ publishingDate?: Date | null | undefined;
2321
+ };
2322
+ }, {
2323
+ type: "SCHEDULED";
2324
+ data: {
2325
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2326
+ publishingDate?: Date | null | undefined;
2327
+ };
2328
+ }>, z.ZodObject<{
2329
+ data: z.ZodObject<{
2330
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2331
+ attemptNumber: z.ZodNumber;
2332
+ maxAttempts: z.ZodNumber;
2333
+ previousHistoryId: z.ZodString;
2334
+ originalFailureDate: z.ZodDate;
2335
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2336
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
2337
+ autoFixable: z.ZodBoolean;
2338
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2339
+ }, "strip", z.ZodTypeAny, {
2340
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2341
+ autoFixable: boolean;
2342
+ error?: string | null | undefined;
2343
+ }, {
2344
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2345
+ autoFixable: boolean;
2346
+ error?: string | null | undefined;
2347
+ }>, "many">>>;
2348
+ }, "strip", z.ZodTypeAny, {
2349
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2350
+ attemptNumber: number;
2351
+ maxAttempts: number;
2352
+ previousHistoryId: string;
2353
+ originalFailureDate: Date;
2354
+ fields?: {
2355
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2356
+ autoFixable: boolean;
2357
+ error?: string | null | undefined;
2358
+ }[] | null | undefined;
2359
+ }, {
2360
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2361
+ attemptNumber: number;
2362
+ maxAttempts: number;
2363
+ previousHistoryId: string;
2364
+ originalFailureDate: Date;
2365
+ fields?: {
2366
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2367
+ autoFixable: boolean;
2368
+ error?: string | null | undefined;
2369
+ }[] | null | undefined;
2370
+ }>;
2371
+ type: z.ZodLiteral<"SCHEDULED_RETRY">;
2372
+ }, "strip", z.ZodTypeAny, {
2373
+ type: "SCHEDULED_RETRY";
2374
+ data: {
2375
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2376
+ attemptNumber: number;
2377
+ maxAttempts: number;
2378
+ previousHistoryId: string;
2379
+ originalFailureDate: Date;
2380
+ fields?: {
2381
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2382
+ autoFixable: boolean;
2383
+ error?: string | null | undefined;
2384
+ }[] | null | undefined;
2385
+ };
2386
+ }, {
2387
+ type: "SCHEDULED_RETRY";
2388
+ data: {
2389
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2390
+ attemptNumber: number;
2391
+ maxAttempts: number;
2392
+ previousHistoryId: string;
2393
+ originalFailureDate: Date;
2394
+ fields?: {
2395
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2396
+ autoFixable: boolean;
2397
+ error?: string | null | undefined;
2398
+ }[] | null | undefined;
2399
+ };
2400
+ }>]>>>;
2401
+ createdAt: z.ZodDate;
2402
+ targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2403
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2404
+ requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2405
+ }, "strip", z.ZodTypeAny, {
2406
+ 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";
2407
+ id: string;
2408
+ createdAt: Date;
2409
+ itemId: string | number;
2410
+ data?: {
2411
+ type: "ACTION_CANCELED";
2412
+ data: {
2413
+ targetItemHistoryId: string;
2414
+ };
2415
+ } | {
2416
+ type: "BUYER_PAID";
2417
+ data: {
2418
+ soldAccountId: string;
2419
+ soldOrderId: string;
2420
+ soldConversationId?: string | null | undefined;
2421
+ };
2422
+ } | {
2423
+ type: "DELIVERED";
2424
+ data: {
2425
+ soldAccountId: string;
2426
+ soldOrderId: string;
2427
+ soldConversationId?: string | null | undefined;
2428
+ };
2429
+ } | {
2430
+ type: "EMPTY";
2431
+ } | {
2432
+ type: "FAILED_TO_PUBLISH";
2433
+ data: {
2434
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2435
+ accountId?: string | null | undefined;
2436
+ reason?: string | null | undefined;
2437
+ fields?: {
2438
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2439
+ autoFixable: boolean;
2440
+ error?: string | null | undefined;
2441
+ }[] | null | undefined;
2442
+ itemHistoryId?: string | null | undefined;
2443
+ };
2444
+ } | {
2445
+ type: "IMAGE_PROCESSING_DONE";
2446
+ data: {
2447
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2448
+ variations?: {
2449
+ fileId: string;
2450
+ seed: number;
2451
+ phash: string;
2452
+ distanceOriginal: number;
2453
+ originalImageUrl: string;
2454
+ originalPhash: string;
2455
+ }[] | null | undefined;
2456
+ originalPhashes?: string[] | null | undefined;
2457
+ };
2458
+ } | {
2459
+ type: "IMPORTED";
2460
+ data: {
2461
+ post: {
2462
+ platformId: string;
2463
+ post: {
2464
+ status?: string | null | undefined;
2465
+ price?: number | null | undefined;
2466
+ currency?: string | null | undefined;
2467
+ brand?: string | null | undefined;
2468
+ catalog?: string | null | undefined;
2469
+ catalogId?: number | null | undefined;
2470
+ colors?: string[] | null | undefined;
2471
+ colorIds?: number[] | null | undefined;
2472
+ description?: string | null | undefined;
2473
+ measurementLength?: number | null | undefined;
2474
+ measurementWidth?: number | null | undefined;
2475
+ packageSizeId?: number | null | undefined;
2476
+ photoUrls?: string[] | null | undefined;
2477
+ size?: string | null | undefined;
2478
+ sizeId?: number | null | undefined;
2479
+ statusId?: number | null | undefined;
2480
+ title?: string | null | undefined;
2481
+ isDraft?: boolean | null | undefined;
2482
+ isArchived?: boolean | null | undefined;
2483
+ availableQuantity?: number | null | undefined;
2484
+ material?: number[] | null | undefined;
2485
+ manufacturerLabelling?: string | null | undefined;
2486
+ labels?: string[] | null | undefined;
2487
+ };
2488
+ createdAt?: Date | null | undefined;
2489
+ platformUrl?: string | null | undefined;
2490
+ };
2491
+ };
2492
+ } | {
2493
+ type: "LIFECYCLE_COMPLETED";
2494
+ data: {
2495
+ accountId: string;
2496
+ };
2497
+ } | {
2498
+ type: "LIFECYCLE_STARTED";
2499
+ data: {
2500
+ accountId: string;
2501
+ caseId: string;
2502
+ };
2503
+ } | {
2504
+ type: "PUBLISHED";
2505
+ data: {
2506
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2507
+ };
2508
+ } | {
2509
+ type: "REPUBLISHING";
2510
+ data: {
2511
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2512
+ publishingDate?: Date | null | undefined;
2513
+ priceDropPayload?: {
2514
+ value: number;
2515
+ type: "PERCENTAGE" | "ABSOLUTE";
2516
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2517
+ roundStep?: number | null | undefined;
2518
+ maxRounds?: number | null | undefined;
2519
+ } | null | undefined;
2520
+ isTransfer?: boolean | null | undefined;
2521
+ targetAccountId?: string | null | undefined;
2522
+ };
2523
+ } | {
2524
+ type: "REPUBLISHING_RETRY";
2525
+ data: {
2526
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2527
+ attemptNumber: number;
2528
+ maxAttempts: number;
2529
+ previousHistoryId: string;
2530
+ originalFailureDate: Date;
2531
+ fields?: {
2532
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2533
+ autoFixable: boolean;
2534
+ error?: string | null | undefined;
2535
+ }[] | null | undefined;
2536
+ priceDropPayload?: {
2537
+ value: number;
2538
+ type: "PERCENTAGE" | "ABSOLUTE";
2539
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2540
+ roundStep?: number | null | undefined;
2541
+ maxRounds?: number | null | undefined;
2542
+ } | null | undefined;
2543
+ };
2544
+ } | {
2545
+ type: "SCHEDULED";
2546
+ data: {
2547
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2548
+ publishingDate?: Date | null | undefined;
2549
+ };
2550
+ } | {
2551
+ type: "SCHEDULED_RETRY";
2552
+ data: {
2553
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2554
+ attemptNumber: number;
2555
+ maxAttempts: number;
2556
+ previousHistoryId: string;
2557
+ originalFailureDate: Date;
2558
+ fields?: {
2559
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2560
+ autoFixable: boolean;
2561
+ error?: string | null | undefined;
2562
+ }[] | null | undefined;
2563
+ };
2564
+ } | null | undefined;
2565
+ accountId?: string | null | undefined;
2566
+ requestId?: string | null | undefined;
2567
+ targetDate?: Date | null | undefined;
2568
+ }, {
2569
+ 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";
2570
+ id: string;
2571
+ createdAt: Date;
2572
+ itemId: string | number;
2573
+ data?: {
2574
+ type: "ACTION_CANCELED";
2575
+ data: {
2576
+ targetItemHistoryId: string;
2577
+ };
2578
+ } | {
2579
+ type: "BUYER_PAID";
2580
+ data: {
2581
+ soldAccountId: string;
2582
+ soldOrderId: string;
2583
+ soldConversationId?: string | null | undefined;
2584
+ };
2585
+ } | {
2586
+ type: "DELIVERED";
2587
+ data: {
2588
+ soldAccountId: string;
2589
+ soldOrderId: string;
2590
+ soldConversationId?: string | null | undefined;
2591
+ };
2592
+ } | {
2593
+ type: "EMPTY";
2594
+ } | {
2595
+ type: "FAILED_TO_PUBLISH";
2596
+ data: {
2597
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2598
+ accountId?: string | null | undefined;
2599
+ reason?: string | null | undefined;
2600
+ fields?: {
2601
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2602
+ autoFixable: boolean;
2603
+ error?: string | null | undefined;
2604
+ }[] | null | undefined;
2605
+ itemHistoryId?: string | null | undefined;
2606
+ };
2607
+ } | {
2608
+ type: "IMAGE_PROCESSING_DONE";
2609
+ data: {
2610
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2611
+ variations?: {
2612
+ fileId: string;
2613
+ seed: number;
2614
+ phash: string;
2615
+ distanceOriginal: number;
2616
+ originalImageUrl: string;
2617
+ originalPhash: string;
2618
+ }[] | null | undefined;
2619
+ originalPhashes?: string[] | null | undefined;
2620
+ };
2621
+ } | {
2622
+ type: "IMPORTED";
2623
+ data: {
2624
+ post: {
2625
+ platformId: string;
2626
+ post: {
2627
+ status?: string | null | undefined;
2628
+ price?: number | null | undefined;
2629
+ currency?: string | null | undefined;
2630
+ brand?: string | null | undefined;
2631
+ catalog?: string | null | undefined;
2632
+ catalogId?: number | null | undefined;
2633
+ colors?: string[] | null | undefined;
2634
+ colorIds?: number[] | null | undefined;
2635
+ description?: string | null | undefined;
2636
+ measurementLength?: number | null | undefined;
2637
+ measurementWidth?: number | null | undefined;
2638
+ packageSizeId?: number | null | undefined;
2639
+ photoUrls?: string[] | null | undefined;
2640
+ size?: string | null | undefined;
2641
+ sizeId?: number | null | undefined;
2642
+ statusId?: number | null | undefined;
2643
+ title?: string | null | undefined;
2644
+ isDraft?: boolean | null | undefined;
2645
+ isArchived?: boolean | null | undefined;
2646
+ availableQuantity?: number | null | undefined;
2647
+ material?: number[] | null | undefined;
2648
+ manufacturerLabelling?: string | null | undefined;
2649
+ labels?: string[] | null | undefined;
2650
+ };
2651
+ createdAt?: Date | null | undefined;
2652
+ platformUrl?: string | null | undefined;
2653
+ };
2654
+ };
2655
+ } | {
2656
+ type: "LIFECYCLE_COMPLETED";
2657
+ data: {
2658
+ accountId: string;
2659
+ };
2660
+ } | {
2661
+ type: "LIFECYCLE_STARTED";
2662
+ data: {
2663
+ accountId: string;
2664
+ caseId: string;
2665
+ };
2666
+ } | {
2667
+ type: "PUBLISHED";
2668
+ data: {
2669
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2670
+ };
2671
+ } | {
2672
+ type: "REPUBLISHING";
2673
+ data: {
2674
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2675
+ publishingDate?: Date | null | undefined;
2676
+ priceDropPayload?: {
2677
+ value: number;
2678
+ type: "PERCENTAGE" | "ABSOLUTE";
2679
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2680
+ roundStep?: number | null | undefined;
2681
+ maxRounds?: number | null | undefined;
2682
+ } | null | undefined;
2683
+ isTransfer?: boolean | null | undefined;
2684
+ targetAccountId?: string | null | undefined;
2685
+ };
2686
+ } | {
2687
+ type: "REPUBLISHING_RETRY";
2688
+ data: {
2689
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2690
+ attemptNumber: number;
2691
+ maxAttempts: number;
2692
+ previousHistoryId: string;
2693
+ originalFailureDate: Date;
2694
+ fields?: {
2695
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2696
+ autoFixable: boolean;
2697
+ error?: string | null | undefined;
2698
+ }[] | null | undefined;
2699
+ priceDropPayload?: {
2700
+ value: number;
2701
+ type: "PERCENTAGE" | "ABSOLUTE";
2702
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2703
+ roundStep?: number | null | undefined;
2704
+ maxRounds?: number | null | undefined;
2705
+ } | null | undefined;
2706
+ };
2707
+ } | {
2708
+ type: "SCHEDULED";
2709
+ data: {
2710
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2711
+ publishingDate?: Date | null | undefined;
2712
+ };
2713
+ } | {
2714
+ type: "SCHEDULED_RETRY";
2715
+ data: {
2716
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2717
+ attemptNumber: number;
2718
+ maxAttempts: number;
2719
+ previousHistoryId: string;
2720
+ originalFailureDate: Date;
2721
+ fields?: {
2722
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2723
+ autoFixable: boolean;
2724
+ error?: string | null | undefined;
2725
+ }[] | null | undefined;
2726
+ };
2727
+ } | null | undefined;
2728
+ accountId?: string | null | undefined;
2729
+ requestId?: string | null | undefined;
2730
+ targetDate?: Date | null | undefined;
2731
+ }>, "many">>>;
1540
2732
  createdAt: z.ZodDate;
1541
2733
  updatedAt: z.ZodDate;
1542
2734
  }, "strip", z.ZodTypeAny, {
@@ -1599,37 +2791,231 @@ export declare const ItemSchema: z.ZodObject<{
1599
2791
  userId: string | number;
1600
2792
  id: string | number;
1601
2793
  updatedAt: Date;
1602
- name: string;
2794
+ name: string;
2795
+ createdAt: Date;
2796
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
2797
+ startDate: Date;
2798
+ active: boolean;
2799
+ description?: string | null | undefined;
2800
+ itemId?: string | number | null | undefined;
2801
+ endDate?: Date | null | undefined;
2802
+ parentFeeId?: string | number | null | undefined;
2803
+ }[] | null | undefined;
2804
+ feesSum?: number | null | undefined;
2805
+ customerId?: string | number | null | undefined;
2806
+ customer?: {
2807
+ userId: string | number;
2808
+ id: string | number;
2809
+ email: string;
2810
+ firstName: string;
2811
+ lastName: string;
2812
+ birthDate: Date;
2813
+ idNumber: string;
2814
+ phone: string;
2815
+ iban: string;
2816
+ bic: string;
2817
+ phoneVerified: boolean;
2818
+ } | null | undefined;
2819
+ customerType?: string | null | undefined;
2820
+ customerPaid?: boolean | null | undefined;
2821
+ customerPaidDate?: Date | null | undefined;
2822
+ customerPaidType?: string | null | undefined;
2823
+ contractId?: string | number | null | undefined;
2824
+ lastHistory?: {
2825
+ 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";
2826
+ id: string;
2827
+ createdAt: Date;
2828
+ itemId: string | number;
2829
+ data?: {
2830
+ type: "ACTION_CANCELED";
2831
+ data: {
2832
+ targetItemHistoryId: string;
2833
+ };
2834
+ } | {
2835
+ type: "BUYER_PAID";
2836
+ data: {
2837
+ soldAccountId: string;
2838
+ soldOrderId: string;
2839
+ soldConversationId?: string | null | undefined;
2840
+ };
2841
+ } | {
2842
+ type: "DELIVERED";
2843
+ data: {
2844
+ soldAccountId: string;
2845
+ soldOrderId: string;
2846
+ soldConversationId?: string | null | undefined;
2847
+ };
2848
+ } | {
2849
+ type: "EMPTY";
2850
+ } | {
2851
+ type: "FAILED_TO_PUBLISH";
2852
+ data: {
2853
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2854
+ accountId?: string | null | undefined;
2855
+ reason?: string | null | undefined;
2856
+ fields?: {
2857
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2858
+ autoFixable: boolean;
2859
+ error?: string | null | undefined;
2860
+ }[] | null | undefined;
2861
+ itemHistoryId?: string | null | undefined;
2862
+ };
2863
+ } | {
2864
+ type: "IMAGE_PROCESSING_DONE";
2865
+ data: {
2866
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2867
+ variations?: {
2868
+ fileId: string;
2869
+ seed: number;
2870
+ phash: string;
2871
+ distanceOriginal: number;
2872
+ originalImageUrl: string;
2873
+ originalPhash: string;
2874
+ }[] | null | undefined;
2875
+ originalPhashes?: string[] | null | undefined;
2876
+ };
2877
+ } | {
2878
+ type: "IMPORTED";
2879
+ data: {
2880
+ post: {
2881
+ platformId: string;
2882
+ post: {
2883
+ status?: string | null | undefined;
2884
+ price?: number | null | undefined;
2885
+ currency?: string | null | undefined;
2886
+ brand?: string | null | undefined;
2887
+ catalog?: string | null | undefined;
2888
+ catalogId?: number | null | undefined;
2889
+ colors?: string[] | null | undefined;
2890
+ colorIds?: number[] | null | undefined;
2891
+ description?: string | null | undefined;
2892
+ measurementLength?: number | null | undefined;
2893
+ measurementWidth?: number | null | undefined;
2894
+ packageSizeId?: number | null | undefined;
2895
+ photoUrls?: string[] | null | undefined;
2896
+ size?: string | null | undefined;
2897
+ sizeId?: number | null | undefined;
2898
+ statusId?: number | null | undefined;
2899
+ title?: string | null | undefined;
2900
+ isDraft?: boolean | null | undefined;
2901
+ isArchived?: boolean | null | undefined;
2902
+ availableQuantity?: number | null | undefined;
2903
+ material?: number[] | null | undefined;
2904
+ manufacturerLabelling?: string | null | undefined;
2905
+ labels?: string[] | null | undefined;
2906
+ };
2907
+ createdAt?: Date | null | undefined;
2908
+ platformUrl?: string | null | undefined;
2909
+ };
2910
+ };
2911
+ } | {
2912
+ type: "LIFECYCLE_COMPLETED";
2913
+ data: {
2914
+ accountId: string;
2915
+ };
2916
+ } | {
2917
+ type: "LIFECYCLE_STARTED";
2918
+ data: {
2919
+ accountId: string;
2920
+ caseId: string;
2921
+ };
2922
+ } | {
2923
+ type: "PUBLISHED";
2924
+ data: {
2925
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2926
+ };
2927
+ } | {
2928
+ type: "REPUBLISHING";
2929
+ data: {
2930
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2931
+ publishingDate?: Date | null | undefined;
2932
+ priceDropPayload?: {
2933
+ value: number;
2934
+ type: "PERCENTAGE" | "ABSOLUTE";
2935
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2936
+ roundStep?: number | null | undefined;
2937
+ maxRounds?: number | null | undefined;
2938
+ } | null | undefined;
2939
+ isTransfer?: boolean | null | undefined;
2940
+ targetAccountId?: string | null | undefined;
2941
+ };
2942
+ } | {
2943
+ type: "REPUBLISHING_RETRY";
2944
+ data: {
2945
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2946
+ attemptNumber: number;
2947
+ maxAttempts: number;
2948
+ previousHistoryId: string;
2949
+ originalFailureDate: Date;
2950
+ fields?: {
2951
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2952
+ autoFixable: boolean;
2953
+ error?: string | null | undefined;
2954
+ }[] | null | undefined;
2955
+ priceDropPayload?: {
2956
+ value: number;
2957
+ type: "PERCENTAGE" | "ABSOLUTE";
2958
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2959
+ roundStep?: number | null | undefined;
2960
+ maxRounds?: number | null | undefined;
2961
+ } | null | undefined;
2962
+ };
2963
+ } | {
2964
+ type: "SCHEDULED";
2965
+ data: {
2966
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2967
+ publishingDate?: Date | null | undefined;
2968
+ };
2969
+ } | {
2970
+ type: "SCHEDULED_RETRY";
2971
+ data: {
2972
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2973
+ attemptNumber: number;
2974
+ maxAttempts: number;
2975
+ previousHistoryId: string;
2976
+ originalFailureDate: Date;
2977
+ fields?: {
2978
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2979
+ autoFixable: boolean;
2980
+ error?: string | null | undefined;
2981
+ }[] | null | undefined;
2982
+ };
2983
+ } | null | undefined;
2984
+ accountId?: string | null | undefined;
2985
+ requestId?: string | null | undefined;
2986
+ targetDate?: Date | null | undefined;
2987
+ } | null | undefined;
2988
+ platforms?: {
2989
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2990
+ id: string;
2991
+ updatedAt: Date;
1603
2992
  createdAt: Date;
1604
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1605
- startDate: Date;
1606
- active: boolean;
1607
- description?: string | null | undefined;
1608
- itemId?: string | number | null | undefined;
1609
- endDate?: Date | null | undefined;
1610
- parentFeeId?: string | number | null | undefined;
2993
+ accountId: string;
2994
+ itemId: string | number;
2995
+ platformId: string;
2996
+ platformUrl: string;
2997
+ platformPrice: number;
2998
+ publishedAt: Date;
2999
+ conversationId?: string | null | undefined;
3000
+ account?: {
3001
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
3002
+ userId: string | number;
3003
+ name: string;
3004
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3005
+ accountId: string;
3006
+ locale?: string | null | undefined;
3007
+ night?: {
3008
+ startsAt: Date;
3009
+ endsAt: Date;
3010
+ } | null | undefined;
3011
+ favoritesMaxDelay?: number | null | undefined;
3012
+ ordersMaxDelay?: number | null | undefined;
3013
+ conversationsMaxDelay?: number | null | undefined;
3014
+ } | null | undefined;
3015
+ viewsCount?: number | null | undefined;
3016
+ favoritesCount?: number | null | undefined;
1611
3017
  }[] | null | undefined;
1612
- feesSum?: number | null | undefined;
1613
- customerId?: string | number | null | undefined;
1614
- customer?: {
1615
- userId: string | number;
1616
- id: string | number;
1617
- email: string;
1618
- firstName: string;
1619
- lastName: string;
1620
- birthDate: Date;
1621
- idNumber: string;
1622
- phone: string;
1623
- iban: string;
1624
- bic: string;
1625
- phoneVerified: boolean;
1626
- } | null | undefined;
1627
- customerType?: string | null | undefined;
1628
- customerPaid?: boolean | null | undefined;
1629
- customerPaidDate?: Date | null | undefined;
1630
- customerPaidType?: string | null | undefined;
1631
- contractId?: string | number | null | undefined;
1632
- lastHistory?: {
3018
+ history?: {
1633
3019
  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";
1634
3020
  id: string;
1635
3021
  createdAt: Date;
@@ -1792,36 +3178,6 @@ export declare const ItemSchema: z.ZodObject<{
1792
3178
  accountId?: string | null | undefined;
1793
3179
  requestId?: string | null | undefined;
1794
3180
  targetDate?: Date | null | undefined;
1795
- } | null | undefined;
1796
- platforms?: {
1797
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1798
- id: string;
1799
- updatedAt: Date;
1800
- createdAt: Date;
1801
- accountId: string;
1802
- itemId: string | number;
1803
- platformId: string;
1804
- platformUrl: string;
1805
- platformPrice: number;
1806
- publishedAt: Date;
1807
- conversationId?: string | null | undefined;
1808
- account?: {
1809
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
1810
- userId: string | number;
1811
- name: string;
1812
- platform: "ETSY" | "SHOPIFY" | "VINTED";
1813
- accountId: string;
1814
- locale?: string | null | undefined;
1815
- night?: {
1816
- startsAt: Date;
1817
- endsAt: Date;
1818
- } | null | undefined;
1819
- favoritesMaxDelay?: number | null | undefined;
1820
- ordersMaxDelay?: number | null | undefined;
1821
- conversationsMaxDelay?: number | null | undefined;
1822
- } | null | undefined;
1823
- viewsCount?: number | null | undefined;
1824
- favoritesCount?: number | null | undefined;
1825
3181
  }[] | null | undefined;
1826
3182
  }, {
1827
3183
  userId: string | number;
@@ -2107,6 +3463,170 @@ export declare const ItemSchema: z.ZodObject<{
2107
3463
  viewsCount?: number | null | undefined;
2108
3464
  favoritesCount?: number | null | undefined;
2109
3465
  }[] | null | undefined;
3466
+ history?: {
3467
+ 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";
3468
+ id: string;
3469
+ createdAt: Date;
3470
+ itemId: string | number;
3471
+ data?: {
3472
+ type: "ACTION_CANCELED";
3473
+ data: {
3474
+ targetItemHistoryId: string;
3475
+ };
3476
+ } | {
3477
+ type: "BUYER_PAID";
3478
+ data: {
3479
+ soldAccountId: string;
3480
+ soldOrderId: string;
3481
+ soldConversationId?: string | null | undefined;
3482
+ };
3483
+ } | {
3484
+ type: "DELIVERED";
3485
+ data: {
3486
+ soldAccountId: string;
3487
+ soldOrderId: string;
3488
+ soldConversationId?: string | null | undefined;
3489
+ };
3490
+ } | {
3491
+ type: "EMPTY";
3492
+ } | {
3493
+ type: "FAILED_TO_PUBLISH";
3494
+ data: {
3495
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3496
+ accountId?: string | null | undefined;
3497
+ reason?: string | null | undefined;
3498
+ fields?: {
3499
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3500
+ autoFixable: boolean;
3501
+ error?: string | null | undefined;
3502
+ }[] | null | undefined;
3503
+ itemHistoryId?: string | null | undefined;
3504
+ };
3505
+ } | {
3506
+ type: "IMAGE_PROCESSING_DONE";
3507
+ data: {
3508
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3509
+ variations?: {
3510
+ fileId: string;
3511
+ seed: number;
3512
+ phash: string;
3513
+ distanceOriginal: number;
3514
+ originalImageUrl: string;
3515
+ originalPhash: string;
3516
+ }[] | null | undefined;
3517
+ originalPhashes?: string[] | null | undefined;
3518
+ };
3519
+ } | {
3520
+ type: "IMPORTED";
3521
+ data: {
3522
+ post: {
3523
+ platformId: string;
3524
+ post: {
3525
+ status?: string | null | undefined;
3526
+ price?: number | null | undefined;
3527
+ currency?: string | null | undefined;
3528
+ brand?: string | null | undefined;
3529
+ catalog?: string | null | undefined;
3530
+ catalogId?: number | null | undefined;
3531
+ colors?: string[] | null | undefined;
3532
+ colorIds?: number[] | null | undefined;
3533
+ description?: string | null | undefined;
3534
+ measurementLength?: number | null | undefined;
3535
+ measurementWidth?: number | null | undefined;
3536
+ packageSizeId?: number | null | undefined;
3537
+ photoUrls?: string[] | null | undefined;
3538
+ size?: string | null | undefined;
3539
+ sizeId?: number | null | undefined;
3540
+ statusId?: number | null | undefined;
3541
+ title?: string | null | undefined;
3542
+ isDraft?: boolean | null | undefined;
3543
+ isArchived?: boolean | null | undefined;
3544
+ availableQuantity?: number | null | undefined;
3545
+ material?: number[] | null | undefined;
3546
+ manufacturerLabelling?: string | null | undefined;
3547
+ labels?: string[] | null | undefined;
3548
+ };
3549
+ createdAt?: Date | null | undefined;
3550
+ platformUrl?: string | null | undefined;
3551
+ };
3552
+ };
3553
+ } | {
3554
+ type: "LIFECYCLE_COMPLETED";
3555
+ data: {
3556
+ accountId: string;
3557
+ };
3558
+ } | {
3559
+ type: "LIFECYCLE_STARTED";
3560
+ data: {
3561
+ accountId: string;
3562
+ caseId: string;
3563
+ };
3564
+ } | {
3565
+ type: "PUBLISHED";
3566
+ data: {
3567
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3568
+ };
3569
+ } | {
3570
+ type: "REPUBLISHING";
3571
+ data: {
3572
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3573
+ publishingDate?: Date | null | undefined;
3574
+ priceDropPayload?: {
3575
+ value: number;
3576
+ type: "PERCENTAGE" | "ABSOLUTE";
3577
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3578
+ roundStep?: number | null | undefined;
3579
+ maxRounds?: number | null | undefined;
3580
+ } | null | undefined;
3581
+ isTransfer?: boolean | null | undefined;
3582
+ targetAccountId?: string | null | undefined;
3583
+ };
3584
+ } | {
3585
+ type: "REPUBLISHING_RETRY";
3586
+ data: {
3587
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3588
+ attemptNumber: number;
3589
+ maxAttempts: number;
3590
+ previousHistoryId: string;
3591
+ originalFailureDate: Date;
3592
+ fields?: {
3593
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3594
+ autoFixable: boolean;
3595
+ error?: string | null | undefined;
3596
+ }[] | null | undefined;
3597
+ priceDropPayload?: {
3598
+ value: number;
3599
+ type: "PERCENTAGE" | "ABSOLUTE";
3600
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3601
+ roundStep?: number | null | undefined;
3602
+ maxRounds?: number | null | undefined;
3603
+ } | null | undefined;
3604
+ };
3605
+ } | {
3606
+ type: "SCHEDULED";
3607
+ data: {
3608
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3609
+ publishingDate?: Date | null | undefined;
3610
+ };
3611
+ } | {
3612
+ type: "SCHEDULED_RETRY";
3613
+ data: {
3614
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3615
+ attemptNumber: number;
3616
+ maxAttempts: number;
3617
+ previousHistoryId: string;
3618
+ originalFailureDate: Date;
3619
+ fields?: {
3620
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3621
+ autoFixable: boolean;
3622
+ error?: string | null | undefined;
3623
+ }[] | null | undefined;
3624
+ };
3625
+ } | null | undefined;
3626
+ accountId?: string | null | undefined;
3627
+ requestId?: string | null | undefined;
3628
+ targetDate?: Date | null | undefined;
3629
+ }[] | null | undefined;
2110
3630
  }>;
2111
3631
  export type Item = z.infer<typeof ItemSchema>;
2112
3632
  //# sourceMappingURL=Item.d.ts.map