controlresell 2.9.5 → 2.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) 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/ItemAction.d.ts +1 -1
  23. package/src/com/controlresell/api/responses/items/ItemAction.d.ts.map +1 -1
  24. package/src/com/controlresell/api/responses/items/ItemAction.js +1 -1
  25. package/src/com/controlresell/api/responses/items/ItemAction.js.map +1 -1
  26. package/src/com/controlresell/api/responses/items/ItemAction.ts +1 -1
  27. package/src/com/controlresell/api/responses/items/ItemActions.d.ts +10 -0
  28. package/src/com/controlresell/api/responses/items/ItemActions.d.ts.map +1 -0
  29. package/src/com/controlresell/api/responses/items/ItemActions.js +6 -0
  30. package/src/com/controlresell/api/responses/items/ItemActions.js.map +1 -0
  31. package/src/com/controlresell/api/responses/items/ItemActions.ts +7 -0
  32. package/src/com/controlresell/api/responses/items/ItemsWithFilters.d.ts +451 -5
  33. package/src/com/controlresell/api/responses/items/ItemsWithFilters.d.ts.map +1 -1
  34. package/src/com/controlresell/api/responses/items/ListedItem.d.ts +373 -3
  35. package/src/com/controlresell/api/responses/items/ListedItem.d.ts.map +1 -1
  36. package/src/com/controlresell/api/responses/items/ListedItem.js +2 -2
  37. package/src/com/controlresell/api/responses/items/ListedItem.js.map +1 -1
  38. package/src/com/controlresell/api/responses/items/ListedItem.ts +2 -2
  39. package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.d.ts +2 -2
  40. package/src/com/controlresell/inbox/models/transactions/items/TransactionWithItems.d.ts +3005 -293
  41. package/src/com/controlresell/inbox/models/transactions/items/TransactionWithItems.d.ts.map +1 -1
  42. package/src/com/controlresell/inventory/models/items/CreatedItems.d.ts +3039 -327
  43. package/src/com/controlresell/inventory/models/items/CreatedItems.d.ts.map +1 -1
  44. package/src/com/controlresell/inventory/models/items/Item.d.ts +2379 -139
  45. package/src/com/controlresell/inventory/models/items/Item.d.ts.map +1 -1
  46. package/src/com/controlresell/inventory/models/items/Item.js +1 -0
  47. package/src/com/controlresell/inventory/models/items/Item.js.map +1 -1
  48. package/src/com/controlresell/inventory/models/items/Item.ts +1 -0
  49. package/src/com/controlresell/inventory/models/items/ItemUpdate.d.ts +3039 -327
  50. package/src/com/controlresell/inventory/models/items/ItemUpdate.d.ts.map +1 -1
  51. package/src/com/controlresell/inventory/models/items/UpdatedItem.d.ts +3039 -327
  52. package/src/com/controlresell/inventory/models/items/UpdatedItem.d.ts.map +1 -1
  53. package/src/com/controlresell/inventory/models/items/history/CreateItemHistoryPayload.d.ts +288 -0
  54. package/src/com/controlresell/inventory/models/items/history/CreateItemHistoryPayload.d.ts.map +1 -1
  55. package/src/com/controlresell/inventory/models/items/history/ItemHistory.d.ts +288 -0
  56. package/src/com/controlresell/inventory/models/items/history/ItemHistory.d.ts.map +1 -1
  57. package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.d.ts +436 -0
  58. package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.d.ts.map +1 -1
  59. package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.js +13 -1
  60. package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.js.map +1 -1
  61. package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.ts +17 -1
  62. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatedPayload.d.ts +10 -0
  63. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatedPayload.d.ts.map +1 -0
  64. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatedPayload.js +6 -0
  65. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatedPayload.js.map +1 -0
  66. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatedPayload.ts +7 -0
  67. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatingPayload.d.ts +136 -0
  68. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatingPayload.d.ts.map +1 -0
  69. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatingPayload.js +9 -0
  70. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatingPayload.js.map +1 -0
  71. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatingPayload.ts +10 -0
  72. package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts +3704 -520
  73. package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts.map +1 -1
  74. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +3005 -293
  75. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts.map +1 -1
  76. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +8404 -2980
  77. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts.map +1 -1
  78. package/src/index.d.ts +5 -0
  79. package/src/index.d.ts.map +1 -1
  80. package/src/index.js +5 -0
  81. package/src/index.js.map +1 -1
  82. package/src/index.ts +5 -0
@@ -1682,6 +1682,222 @@ export declare const UserOrdersSchema: z.ZodObject<{
1682
1682
  error?: string | null | undefined;
1683
1683
  }[] | null | undefined;
1684
1684
  };
1685
+ }>, z.ZodObject<{
1686
+ data: z.ZodObject<{
1687
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1688
+ }, "strip", z.ZodTypeAny, {
1689
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1690
+ }, {
1691
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1692
+ }>;
1693
+ type: z.ZodLiteral<"UPDATED">;
1694
+ }, "strip", z.ZodTypeAny, {
1695
+ type: "UPDATED";
1696
+ data: {
1697
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1698
+ };
1699
+ }, {
1700
+ type: "UPDATED";
1701
+ data: {
1702
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1703
+ };
1704
+ }>, z.ZodObject<{
1705
+ data: z.ZodObject<{
1706
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1707
+ post: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1708
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1709
+ catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1710
+ catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1711
+ colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1712
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1713
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1714
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1715
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1716
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1717
+ photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1718
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1719
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1720
+ size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1721
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1722
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1723
+ statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1724
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1725
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1726
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1727
+ availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1728
+ material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1729
+ manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1730
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1731
+ }, "strip", z.ZodTypeAny, {
1732
+ status?: string | null | undefined;
1733
+ price?: number | null | undefined;
1734
+ currency?: string | null | undefined;
1735
+ brand?: string | null | undefined;
1736
+ catalog?: string | null | undefined;
1737
+ catalogId?: number | null | undefined;
1738
+ colors?: string[] | null | undefined;
1739
+ colorIds?: number[] | null | undefined;
1740
+ description?: string | null | undefined;
1741
+ measurementLength?: number | null | undefined;
1742
+ measurementWidth?: number | null | undefined;
1743
+ packageSizeId?: number | null | undefined;
1744
+ photoUrls?: string[] | null | undefined;
1745
+ size?: string | null | undefined;
1746
+ sizeId?: number | null | undefined;
1747
+ statusId?: number | null | undefined;
1748
+ title?: string | null | undefined;
1749
+ isDraft?: boolean | null | undefined;
1750
+ isArchived?: boolean | null | undefined;
1751
+ availableQuantity?: number | null | undefined;
1752
+ material?: number[] | null | undefined;
1753
+ manufacturerLabelling?: string | null | undefined;
1754
+ labels?: string[] | null | undefined;
1755
+ }, {
1756
+ status?: string | null | undefined;
1757
+ price?: number | null | undefined;
1758
+ currency?: string | null | undefined;
1759
+ brand?: string | null | undefined;
1760
+ catalog?: string | null | undefined;
1761
+ catalogId?: number | null | undefined;
1762
+ colors?: string[] | null | undefined;
1763
+ colorIds?: number[] | null | undefined;
1764
+ description?: string | null | undefined;
1765
+ measurementLength?: number | null | undefined;
1766
+ measurementWidth?: number | null | undefined;
1767
+ packageSizeId?: number | null | undefined;
1768
+ photoUrls?: string[] | null | undefined;
1769
+ size?: string | null | undefined;
1770
+ sizeId?: number | null | undefined;
1771
+ statusId?: number | null | undefined;
1772
+ title?: string | null | undefined;
1773
+ isDraft?: boolean | null | undefined;
1774
+ isArchived?: boolean | null | undefined;
1775
+ availableQuantity?: number | null | undefined;
1776
+ material?: number[] | null | undefined;
1777
+ manufacturerLabelling?: string | null | undefined;
1778
+ labels?: string[] | null | undefined;
1779
+ }>>>;
1780
+ targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1781
+ }, "strip", z.ZodTypeAny, {
1782
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1783
+ post?: {
1784
+ status?: string | null | undefined;
1785
+ price?: number | null | undefined;
1786
+ currency?: string | null | undefined;
1787
+ brand?: string | null | undefined;
1788
+ catalog?: string | null | undefined;
1789
+ catalogId?: number | null | undefined;
1790
+ colors?: string[] | null | undefined;
1791
+ colorIds?: number[] | null | undefined;
1792
+ description?: string | null | undefined;
1793
+ measurementLength?: number | null | undefined;
1794
+ measurementWidth?: number | null | undefined;
1795
+ packageSizeId?: number | null | undefined;
1796
+ photoUrls?: string[] | null | undefined;
1797
+ size?: string | null | undefined;
1798
+ sizeId?: number | null | undefined;
1799
+ statusId?: number | null | undefined;
1800
+ title?: string | null | undefined;
1801
+ isDraft?: boolean | null | undefined;
1802
+ isArchived?: boolean | null | undefined;
1803
+ availableQuantity?: number | null | undefined;
1804
+ material?: number[] | null | undefined;
1805
+ manufacturerLabelling?: string | null | undefined;
1806
+ labels?: string[] | null | undefined;
1807
+ } | null | undefined;
1808
+ targetDate?: Date | null | undefined;
1809
+ }, {
1810
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1811
+ post?: {
1812
+ status?: string | null | undefined;
1813
+ price?: number | null | undefined;
1814
+ currency?: string | null | undefined;
1815
+ brand?: string | null | undefined;
1816
+ catalog?: string | null | undefined;
1817
+ catalogId?: number | null | undefined;
1818
+ colors?: string[] | null | undefined;
1819
+ colorIds?: number[] | null | undefined;
1820
+ description?: string | null | undefined;
1821
+ measurementLength?: number | null | undefined;
1822
+ measurementWidth?: number | null | undefined;
1823
+ packageSizeId?: number | null | undefined;
1824
+ photoUrls?: string[] | null | undefined;
1825
+ size?: string | null | undefined;
1826
+ sizeId?: number | null | undefined;
1827
+ statusId?: number | null | undefined;
1828
+ title?: string | null | undefined;
1829
+ isDraft?: boolean | null | undefined;
1830
+ isArchived?: boolean | null | undefined;
1831
+ availableQuantity?: number | null | undefined;
1832
+ material?: number[] | null | undefined;
1833
+ manufacturerLabelling?: string | null | undefined;
1834
+ labels?: string[] | null | undefined;
1835
+ } | null | undefined;
1836
+ targetDate?: Date | null | undefined;
1837
+ }>;
1838
+ type: z.ZodLiteral<"UPDATING">;
1839
+ }, "strip", z.ZodTypeAny, {
1840
+ type: "UPDATING";
1841
+ data: {
1842
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1843
+ post?: {
1844
+ status?: string | null | undefined;
1845
+ price?: number | null | undefined;
1846
+ currency?: string | null | undefined;
1847
+ brand?: string | null | undefined;
1848
+ catalog?: string | null | undefined;
1849
+ catalogId?: number | null | undefined;
1850
+ colors?: string[] | null | undefined;
1851
+ colorIds?: number[] | null | undefined;
1852
+ description?: string | null | undefined;
1853
+ measurementLength?: number | null | undefined;
1854
+ measurementWidth?: number | null | undefined;
1855
+ packageSizeId?: number | null | undefined;
1856
+ photoUrls?: string[] | null | undefined;
1857
+ size?: string | null | undefined;
1858
+ sizeId?: number | null | undefined;
1859
+ statusId?: number | null | undefined;
1860
+ title?: string | null | undefined;
1861
+ isDraft?: boolean | null | undefined;
1862
+ isArchived?: boolean | null | undefined;
1863
+ availableQuantity?: number | null | undefined;
1864
+ material?: number[] | null | undefined;
1865
+ manufacturerLabelling?: string | null | undefined;
1866
+ labels?: string[] | null | undefined;
1867
+ } | null | undefined;
1868
+ targetDate?: Date | null | undefined;
1869
+ };
1870
+ }, {
1871
+ type: "UPDATING";
1872
+ data: {
1873
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1874
+ post?: {
1875
+ status?: string | null | undefined;
1876
+ price?: number | null | undefined;
1877
+ currency?: string | null | undefined;
1878
+ brand?: string | null | undefined;
1879
+ catalog?: string | null | undefined;
1880
+ catalogId?: number | null | undefined;
1881
+ colors?: string[] | null | undefined;
1882
+ colorIds?: number[] | null | undefined;
1883
+ description?: string | null | undefined;
1884
+ measurementLength?: number | null | undefined;
1885
+ measurementWidth?: number | null | undefined;
1886
+ packageSizeId?: number | null | undefined;
1887
+ photoUrls?: string[] | null | undefined;
1888
+ size?: string | null | undefined;
1889
+ sizeId?: number | null | undefined;
1890
+ statusId?: number | null | undefined;
1891
+ title?: string | null | undefined;
1892
+ isDraft?: boolean | null | undefined;
1893
+ isArchived?: boolean | null | undefined;
1894
+ availableQuantity?: number | null | undefined;
1895
+ material?: number[] | null | undefined;
1896
+ manufacturerLabelling?: string | null | undefined;
1897
+ labels?: string[] | null | undefined;
1898
+ } | null | undefined;
1899
+ targetDate?: Date | null | undefined;
1900
+ };
1685
1901
  }>]>>>;
1686
1902
  createdAt: z.ZodDate;
1687
1903
  targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -1846,6 +2062,42 @@ export declare const UserOrdersSchema: z.ZodObject<{
1846
2062
  error?: string | null | undefined;
1847
2063
  }[] | null | undefined;
1848
2064
  };
2065
+ } | {
2066
+ type: "UPDATED";
2067
+ data: {
2068
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2069
+ };
2070
+ } | {
2071
+ type: "UPDATING";
2072
+ data: {
2073
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2074
+ post?: {
2075
+ status?: string | null | undefined;
2076
+ price?: number | null | undefined;
2077
+ currency?: string | null | undefined;
2078
+ brand?: string | null | undefined;
2079
+ catalog?: string | null | undefined;
2080
+ catalogId?: number | null | undefined;
2081
+ colors?: string[] | null | undefined;
2082
+ colorIds?: number[] | null | undefined;
2083
+ description?: string | null | undefined;
2084
+ measurementLength?: number | null | undefined;
2085
+ measurementWidth?: number | null | undefined;
2086
+ packageSizeId?: number | null | undefined;
2087
+ photoUrls?: string[] | null | undefined;
2088
+ size?: string | null | undefined;
2089
+ sizeId?: number | null | undefined;
2090
+ statusId?: number | null | undefined;
2091
+ title?: string | null | undefined;
2092
+ isDraft?: boolean | null | undefined;
2093
+ isArchived?: boolean | null | undefined;
2094
+ availableQuantity?: number | null | undefined;
2095
+ material?: number[] | null | undefined;
2096
+ manufacturerLabelling?: string | null | undefined;
2097
+ labels?: string[] | null | undefined;
2098
+ } | null | undefined;
2099
+ targetDate?: Date | null | undefined;
2100
+ };
1849
2101
  } | null | undefined;
1850
2102
  accountId?: string | null | undefined;
1851
2103
  requestId?: string | null | undefined;
@@ -2009,6 +2261,42 @@ export declare const UserOrdersSchema: z.ZodObject<{
2009
2261
  error?: string | null | undefined;
2010
2262
  }[] | null | undefined;
2011
2263
  };
2264
+ } | {
2265
+ type: "UPDATED";
2266
+ data: {
2267
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2268
+ };
2269
+ } | {
2270
+ type: "UPDATING";
2271
+ data: {
2272
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2273
+ post?: {
2274
+ status?: string | null | undefined;
2275
+ price?: number | null | undefined;
2276
+ currency?: string | null | undefined;
2277
+ brand?: string | null | undefined;
2278
+ catalog?: string | null | undefined;
2279
+ catalogId?: number | null | undefined;
2280
+ colors?: string[] | null | undefined;
2281
+ colorIds?: number[] | null | undefined;
2282
+ description?: string | null | undefined;
2283
+ measurementLength?: number | null | undefined;
2284
+ measurementWidth?: number | null | undefined;
2285
+ packageSizeId?: number | null | undefined;
2286
+ photoUrls?: string[] | null | undefined;
2287
+ size?: string | null | undefined;
2288
+ sizeId?: number | null | undefined;
2289
+ statusId?: number | null | undefined;
2290
+ title?: string | null | undefined;
2291
+ isDraft?: boolean | null | undefined;
2292
+ isArchived?: boolean | null | undefined;
2293
+ availableQuantity?: number | null | undefined;
2294
+ material?: number[] | null | undefined;
2295
+ manufacturerLabelling?: string | null | undefined;
2296
+ labels?: string[] | null | undefined;
2297
+ } | null | undefined;
2298
+ targetDate?: Date | null | undefined;
2299
+ };
2012
2300
  } | null | undefined;
2013
2301
  accountId?: string | null | undefined;
2014
2302
  requestId?: string | null | undefined;
@@ -2136,127 +2424,113 @@ export declare const UserOrdersSchema: z.ZodObject<{
2136
2424
  viewsCount?: number | null | undefined;
2137
2425
  favoritesCount?: number | null | undefined;
2138
2426
  }>, "many">>>;
2139
- createdAt: z.ZodDate;
2140
- updatedAt: z.ZodDate;
2141
- }, "strip", z.ZodTypeAny, {
2142
- userId: string | number;
2143
- id: string | number;
2144
- updatedAt: Date;
2145
- name: string;
2146
- createdAt: Date;
2147
- sold: boolean;
2148
- state?: number | null | undefined;
2149
- colorIds?: number[] | null | undefined;
2150
- description?: string | null | undefined;
2151
- packageSizeId?: number | null | undefined;
2152
- sizeId?: number | null | undefined;
2153
- labels?: {
2154
- itemId: string | number;
2155
- labelId: string | number;
2156
- label?: {
2157
- id: string | number;
2158
- name: string;
2159
- createdAt: Date;
2160
- isUserLabel: boolean;
2161
- userId?: string | number | null | undefined;
2162
- itemCount?: number | null | undefined;
2163
- parentId?: unknown;
2164
- } | null | undefined;
2165
- }[] | null | undefined;
2166
- files?: {
2167
- itemId: string | number;
2168
- fileId: string;
2169
- index?: number | null | undefined;
2170
- file?: {
2171
- path: string;
2172
- userId: string | number;
2173
- id: string;
2174
- createdAt: Date;
2175
- signedUrl: string;
2176
- } | null | undefined;
2177
- }[] | null | undefined;
2178
- fields?: {
2179
- value: string;
2180
- itemId: string | number;
2181
- fieldId: string | number;
2182
- }[] | null | undefined;
2183
- sku?: string | null | undefined;
2184
- categoryId?: number | null | undefined;
2185
- brandId?: string | number | null | undefined;
2186
- sex?: string | null | undefined;
2187
- purchasePrice?: number | null | undefined;
2188
- purchaseDate?: Date | null | undefined;
2189
- purchasePlaceId?: string | number | null | undefined;
2190
- purchased?: boolean | null | undefined;
2191
- sellingPrice?: number | null | undefined;
2192
- sellingDate?: Date | null | undefined;
2193
- sellingPlaceId?: string | number | null | undefined;
2194
- estimatedPrice?: number | null | undefined;
2195
- fees?: {
2196
- value: number;
2197
- type: string;
2198
- userId: string | number;
2199
- id: string | number;
2200
- updatedAt: Date;
2201
- name: string;
2202
- createdAt: Date;
2203
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
2204
- startDate: Date;
2205
- active: boolean;
2206
- description?: string | null | undefined;
2207
- itemId?: string | number | null | undefined;
2208
- endDate?: Date | null | undefined;
2209
- parentFeeId?: string | number | null | undefined;
2210
- }[] | null | undefined;
2211
- feesSum?: number | null | undefined;
2212
- customerId?: string | number | null | undefined;
2213
- customer?: {
2214
- userId: string | number;
2215
- id: string | number;
2216
- email: string;
2217
- firstName: string;
2218
- lastName: string;
2219
- birthDate: Date;
2220
- idNumber: string;
2221
- phone: string;
2222
- iban: string;
2223
- bic: string;
2224
- phoneVerified: boolean;
2225
- } | null | undefined;
2226
- customerType?: string | null | undefined;
2227
- customerPaid?: boolean | null | undefined;
2228
- customerPaidDate?: Date | null | undefined;
2229
- customerPaidType?: string | null | undefined;
2230
- contractId?: string | number | null | undefined;
2231
- lastHistory?: {
2232
- 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";
2233
- id: string;
2234
- createdAt: Date;
2235
- itemId: string | number;
2236
- data?: {
2427
+ history: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2428
+ id: z.ZodString;
2429
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
2430
+ 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"]>;
2431
+ data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2432
+ data: z.ZodObject<{
2433
+ targetItemHistoryId: z.ZodString;
2434
+ }, "strip", z.ZodTypeAny, {
2435
+ targetItemHistoryId: string;
2436
+ }, {
2437
+ targetItemHistoryId: string;
2438
+ }>;
2439
+ type: z.ZodLiteral<"ACTION_CANCELED">;
2440
+ }, "strip", z.ZodTypeAny, {
2237
2441
  type: "ACTION_CANCELED";
2238
2442
  data: {
2239
2443
  targetItemHistoryId: string;
2240
2444
  };
2241
- } | {
2445
+ }, {
2446
+ type: "ACTION_CANCELED";
2447
+ data: {
2448
+ targetItemHistoryId: string;
2449
+ };
2450
+ }>, z.ZodObject<{
2451
+ data: z.ZodObject<{
2452
+ soldAccountId: z.ZodString;
2453
+ soldOrderId: z.ZodString;
2454
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2455
+ }, "strip", z.ZodTypeAny, {
2456
+ soldAccountId: string;
2457
+ soldOrderId: string;
2458
+ soldConversationId?: string | null | undefined;
2459
+ }, {
2460
+ soldAccountId: string;
2461
+ soldOrderId: string;
2462
+ soldConversationId?: string | null | undefined;
2463
+ }>;
2464
+ type: z.ZodLiteral<"BUYER_PAID">;
2465
+ }, "strip", z.ZodTypeAny, {
2242
2466
  type: "BUYER_PAID";
2243
2467
  data: {
2244
2468
  soldAccountId: string;
2245
2469
  soldOrderId: string;
2246
2470
  soldConversationId?: string | null | undefined;
2247
2471
  };
2248
- } | {
2472
+ }, {
2473
+ type: "BUYER_PAID";
2474
+ data: {
2475
+ soldAccountId: string;
2476
+ soldOrderId: string;
2477
+ soldConversationId?: string | null | undefined;
2478
+ };
2479
+ }>, z.ZodObject<{
2480
+ data: z.ZodObject<{
2481
+ soldAccountId: z.ZodString;
2482
+ soldOrderId: z.ZodString;
2483
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2484
+ }, "strip", z.ZodTypeAny, {
2485
+ soldAccountId: string;
2486
+ soldOrderId: string;
2487
+ soldConversationId?: string | null | undefined;
2488
+ }, {
2489
+ soldAccountId: string;
2490
+ soldOrderId: string;
2491
+ soldConversationId?: string | null | undefined;
2492
+ }>;
2493
+ type: z.ZodLiteral<"DELIVERED">;
2494
+ }, "strip", z.ZodTypeAny, {
2249
2495
  type: "DELIVERED";
2250
2496
  data: {
2251
2497
  soldAccountId: string;
2252
2498
  soldOrderId: string;
2253
2499
  soldConversationId?: string | null | undefined;
2254
2500
  };
2255
- } | {
2256
- type: "EMPTY";
2257
- } | {
2258
- type: "FAILED_TO_PUBLISH";
2501
+ }, {
2502
+ type: "DELIVERED";
2259
2503
  data: {
2504
+ soldAccountId: string;
2505
+ soldOrderId: string;
2506
+ soldConversationId?: string | null | undefined;
2507
+ };
2508
+ }>, z.ZodObject<{
2509
+ type: z.ZodLiteral<"EMPTY">;
2510
+ }, "strip", z.ZodTypeAny, {
2511
+ type: "EMPTY";
2512
+ }, {
2513
+ type: "EMPTY";
2514
+ }>, z.ZodObject<{
2515
+ data: z.ZodObject<{
2516
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2517
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2518
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2519
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2520
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
2521
+ autoFixable: z.ZodBoolean;
2522
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2523
+ }, "strip", z.ZodTypeAny, {
2524
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2525
+ autoFixable: boolean;
2526
+ error?: string | null | undefined;
2527
+ }, {
2528
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2529
+ autoFixable: boolean;
2530
+ error?: string | null | undefined;
2531
+ }>, "many">>>;
2532
+ itemHistoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2533
+ }, "strip", z.ZodTypeAny, {
2260
2534
  platform: "ETSY" | "SHOPIFY" | "VINTED";
2261
2535
  accountId?: string | null | undefined;
2262
2536
  reason?: string | null | undefined;
@@ -2266,12 +2540,2548 @@ export declare const UserOrdersSchema: z.ZodObject<{
2266
2540
  error?: string | null | undefined;
2267
2541
  }[] | null | undefined;
2268
2542
  itemHistoryId?: string | null | undefined;
2269
- };
2270
- } | {
2271
- type: "IMAGE_PROCESSING_DONE";
2272
- data: {
2543
+ }, {
2273
2544
  platform: "ETSY" | "SHOPIFY" | "VINTED";
2274
- variations?: {
2545
+ accountId?: string | null | undefined;
2546
+ reason?: string | null | undefined;
2547
+ fields?: {
2548
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2549
+ autoFixable: boolean;
2550
+ error?: string | null | undefined;
2551
+ }[] | null | undefined;
2552
+ itemHistoryId?: string | null | undefined;
2553
+ }>;
2554
+ type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
2555
+ }, "strip", z.ZodTypeAny, {
2556
+ type: "FAILED_TO_PUBLISH";
2557
+ data: {
2558
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2559
+ accountId?: string | null | undefined;
2560
+ reason?: string | null | undefined;
2561
+ fields?: {
2562
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2563
+ autoFixable: boolean;
2564
+ error?: string | null | undefined;
2565
+ }[] | null | undefined;
2566
+ itemHistoryId?: string | null | undefined;
2567
+ };
2568
+ }, {
2569
+ type: "FAILED_TO_PUBLISH";
2570
+ data: {
2571
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2572
+ accountId?: string | null | undefined;
2573
+ reason?: string | null | undefined;
2574
+ fields?: {
2575
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2576
+ autoFixable: boolean;
2577
+ error?: string | null | undefined;
2578
+ }[] | null | undefined;
2579
+ itemHistoryId?: string | null | undefined;
2580
+ };
2581
+ }>, z.ZodObject<{
2582
+ data: z.ZodObject<{
2583
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2584
+ variations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2585
+ fileId: z.ZodString;
2586
+ seed: z.ZodNumber;
2587
+ phash: z.ZodString;
2588
+ distanceOriginal: z.ZodNumber;
2589
+ originalImageUrl: z.ZodString;
2590
+ originalPhash: z.ZodString;
2591
+ }, "strip", z.ZodTypeAny, {
2592
+ fileId: string;
2593
+ seed: number;
2594
+ phash: string;
2595
+ distanceOriginal: number;
2596
+ originalImageUrl: string;
2597
+ originalPhash: string;
2598
+ }, {
2599
+ fileId: string;
2600
+ seed: number;
2601
+ phash: string;
2602
+ distanceOriginal: number;
2603
+ originalImageUrl: string;
2604
+ originalPhash: string;
2605
+ }>, "many">>>;
2606
+ originalPhashes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2607
+ }, "strip", z.ZodTypeAny, {
2608
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2609
+ variations?: {
2610
+ fileId: string;
2611
+ seed: number;
2612
+ phash: string;
2613
+ distanceOriginal: number;
2614
+ originalImageUrl: string;
2615
+ originalPhash: string;
2616
+ }[] | null | undefined;
2617
+ originalPhashes?: string[] | null | undefined;
2618
+ }, {
2619
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2620
+ variations?: {
2621
+ fileId: string;
2622
+ seed: number;
2623
+ phash: string;
2624
+ distanceOriginal: number;
2625
+ originalImageUrl: string;
2626
+ originalPhash: string;
2627
+ }[] | null | undefined;
2628
+ originalPhashes?: string[] | null | undefined;
2629
+ }>;
2630
+ type: z.ZodLiteral<"IMAGE_PROCESSING_DONE">;
2631
+ }, "strip", z.ZodTypeAny, {
2632
+ type: "IMAGE_PROCESSING_DONE";
2633
+ data: {
2634
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2635
+ variations?: {
2636
+ fileId: string;
2637
+ seed: number;
2638
+ phash: string;
2639
+ distanceOriginal: number;
2640
+ originalImageUrl: string;
2641
+ originalPhash: string;
2642
+ }[] | null | undefined;
2643
+ originalPhashes?: string[] | null | undefined;
2644
+ };
2645
+ }, {
2646
+ type: "IMAGE_PROCESSING_DONE";
2647
+ data: {
2648
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2649
+ variations?: {
2650
+ fileId: string;
2651
+ seed: number;
2652
+ phash: string;
2653
+ distanceOriginal: number;
2654
+ originalImageUrl: string;
2655
+ originalPhash: string;
2656
+ }[] | null | undefined;
2657
+ originalPhashes?: string[] | null | undefined;
2658
+ };
2659
+ }>, z.ZodObject<{
2660
+ data: z.ZodObject<{
2661
+ post: z.ZodObject<{
2662
+ platformId: z.ZodString;
2663
+ platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2664
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2665
+ post: z.ZodObject<{
2666
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2667
+ catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2668
+ catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2669
+ colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2670
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
2671
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2672
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2673
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2674
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2675
+ photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2676
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2677
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2678
+ size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2679
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2680
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2681
+ statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2682
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2683
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2684
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2685
+ availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2686
+ material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
2687
+ manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2688
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2689
+ }, "strip", z.ZodTypeAny, {
2690
+ status?: string | null | undefined;
2691
+ price?: number | null | undefined;
2692
+ currency?: string | null | undefined;
2693
+ brand?: string | null | undefined;
2694
+ catalog?: string | null | undefined;
2695
+ catalogId?: number | null | undefined;
2696
+ colors?: string[] | null | undefined;
2697
+ colorIds?: number[] | null | undefined;
2698
+ description?: string | null | undefined;
2699
+ measurementLength?: number | null | undefined;
2700
+ measurementWidth?: number | null | undefined;
2701
+ packageSizeId?: number | null | undefined;
2702
+ photoUrls?: string[] | null | undefined;
2703
+ size?: string | null | undefined;
2704
+ sizeId?: number | null | undefined;
2705
+ statusId?: number | null | undefined;
2706
+ title?: string | null | undefined;
2707
+ isDraft?: boolean | null | undefined;
2708
+ isArchived?: boolean | null | undefined;
2709
+ availableQuantity?: number | null | undefined;
2710
+ material?: number[] | null | undefined;
2711
+ manufacturerLabelling?: string | null | undefined;
2712
+ labels?: string[] | null | undefined;
2713
+ }, {
2714
+ status?: string | null | undefined;
2715
+ price?: number | null | undefined;
2716
+ currency?: string | null | undefined;
2717
+ brand?: string | null | undefined;
2718
+ catalog?: string | null | undefined;
2719
+ catalogId?: number | null | undefined;
2720
+ colors?: string[] | null | undefined;
2721
+ colorIds?: number[] | null | undefined;
2722
+ description?: string | null | undefined;
2723
+ measurementLength?: number | null | undefined;
2724
+ measurementWidth?: number | null | undefined;
2725
+ packageSizeId?: number | null | undefined;
2726
+ photoUrls?: string[] | null | undefined;
2727
+ size?: string | null | undefined;
2728
+ sizeId?: number | null | undefined;
2729
+ statusId?: number | null | undefined;
2730
+ title?: string | null | undefined;
2731
+ isDraft?: boolean | null | undefined;
2732
+ isArchived?: boolean | null | undefined;
2733
+ availableQuantity?: number | null | undefined;
2734
+ material?: number[] | null | undefined;
2735
+ manufacturerLabelling?: string | null | undefined;
2736
+ labels?: string[] | null | undefined;
2737
+ }>;
2738
+ }, "strip", z.ZodTypeAny, {
2739
+ platformId: string;
2740
+ post: {
2741
+ status?: string | null | undefined;
2742
+ price?: number | null | undefined;
2743
+ currency?: string | null | undefined;
2744
+ brand?: string | null | undefined;
2745
+ catalog?: string | null | undefined;
2746
+ catalogId?: number | null | undefined;
2747
+ colors?: string[] | null | undefined;
2748
+ colorIds?: number[] | null | undefined;
2749
+ description?: string | null | undefined;
2750
+ measurementLength?: number | null | undefined;
2751
+ measurementWidth?: number | null | undefined;
2752
+ packageSizeId?: number | null | undefined;
2753
+ photoUrls?: string[] | null | undefined;
2754
+ size?: string | null | undefined;
2755
+ sizeId?: number | null | undefined;
2756
+ statusId?: number | null | undefined;
2757
+ title?: string | null | undefined;
2758
+ isDraft?: boolean | null | undefined;
2759
+ isArchived?: boolean | null | undefined;
2760
+ availableQuantity?: number | null | undefined;
2761
+ material?: number[] | null | undefined;
2762
+ manufacturerLabelling?: string | null | undefined;
2763
+ labels?: string[] | null | undefined;
2764
+ };
2765
+ createdAt?: Date | null | undefined;
2766
+ platformUrl?: string | null | undefined;
2767
+ }, {
2768
+ platformId: string;
2769
+ post: {
2770
+ status?: string | null | undefined;
2771
+ price?: number | null | undefined;
2772
+ currency?: string | null | undefined;
2773
+ brand?: string | null | undefined;
2774
+ catalog?: string | null | undefined;
2775
+ catalogId?: number | null | undefined;
2776
+ colors?: string[] | null | undefined;
2777
+ colorIds?: number[] | null | undefined;
2778
+ description?: string | null | undefined;
2779
+ measurementLength?: number | null | undefined;
2780
+ measurementWidth?: number | null | undefined;
2781
+ packageSizeId?: number | null | undefined;
2782
+ photoUrls?: string[] | null | undefined;
2783
+ size?: string | null | undefined;
2784
+ sizeId?: number | null | undefined;
2785
+ statusId?: number | null | undefined;
2786
+ title?: string | null | undefined;
2787
+ isDraft?: boolean | null | undefined;
2788
+ isArchived?: boolean | null | undefined;
2789
+ availableQuantity?: number | null | undefined;
2790
+ material?: number[] | null | undefined;
2791
+ manufacturerLabelling?: string | null | undefined;
2792
+ labels?: string[] | null | undefined;
2793
+ };
2794
+ createdAt?: Date | null | undefined;
2795
+ platformUrl?: string | null | undefined;
2796
+ }>;
2797
+ }, "strip", z.ZodTypeAny, {
2798
+ post: {
2799
+ platformId: string;
2800
+ post: {
2801
+ status?: string | null | undefined;
2802
+ price?: number | null | undefined;
2803
+ currency?: string | null | undefined;
2804
+ brand?: string | null | undefined;
2805
+ catalog?: string | null | undefined;
2806
+ catalogId?: number | null | undefined;
2807
+ colors?: string[] | null | undefined;
2808
+ colorIds?: number[] | null | undefined;
2809
+ description?: string | null | undefined;
2810
+ measurementLength?: number | null | undefined;
2811
+ measurementWidth?: number | null | undefined;
2812
+ packageSizeId?: number | null | undefined;
2813
+ photoUrls?: string[] | null | undefined;
2814
+ size?: string | null | undefined;
2815
+ sizeId?: number | null | undefined;
2816
+ statusId?: number | null | undefined;
2817
+ title?: string | null | undefined;
2818
+ isDraft?: boolean | null | undefined;
2819
+ isArchived?: boolean | null | undefined;
2820
+ availableQuantity?: number | null | undefined;
2821
+ material?: number[] | null | undefined;
2822
+ manufacturerLabelling?: string | null | undefined;
2823
+ labels?: string[] | null | undefined;
2824
+ };
2825
+ createdAt?: Date | null | undefined;
2826
+ platformUrl?: string | null | undefined;
2827
+ };
2828
+ }, {
2829
+ post: {
2830
+ platformId: string;
2831
+ post: {
2832
+ status?: string | null | undefined;
2833
+ price?: number | null | undefined;
2834
+ currency?: string | null | undefined;
2835
+ brand?: string | null | undefined;
2836
+ catalog?: string | null | undefined;
2837
+ catalogId?: number | null | undefined;
2838
+ colors?: string[] | null | undefined;
2839
+ colorIds?: number[] | null | undefined;
2840
+ description?: string | null | undefined;
2841
+ measurementLength?: number | null | undefined;
2842
+ measurementWidth?: number | null | undefined;
2843
+ packageSizeId?: number | null | undefined;
2844
+ photoUrls?: string[] | null | undefined;
2845
+ size?: string | null | undefined;
2846
+ sizeId?: number | null | undefined;
2847
+ statusId?: number | null | undefined;
2848
+ title?: string | null | undefined;
2849
+ isDraft?: boolean | null | undefined;
2850
+ isArchived?: boolean | null | undefined;
2851
+ availableQuantity?: number | null | undefined;
2852
+ material?: number[] | null | undefined;
2853
+ manufacturerLabelling?: string | null | undefined;
2854
+ labels?: string[] | null | undefined;
2855
+ };
2856
+ createdAt?: Date | null | undefined;
2857
+ platformUrl?: string | null | undefined;
2858
+ };
2859
+ }>;
2860
+ type: z.ZodLiteral<"IMPORTED">;
2861
+ }, "strip", z.ZodTypeAny, {
2862
+ type: "IMPORTED";
2863
+ data: {
2864
+ post: {
2865
+ platformId: string;
2866
+ post: {
2867
+ status?: string | null | undefined;
2868
+ price?: number | null | undefined;
2869
+ currency?: string | null | undefined;
2870
+ brand?: string | null | undefined;
2871
+ catalog?: string | null | undefined;
2872
+ catalogId?: number | null | undefined;
2873
+ colors?: string[] | null | undefined;
2874
+ colorIds?: number[] | null | undefined;
2875
+ description?: string | null | undefined;
2876
+ measurementLength?: number | null | undefined;
2877
+ measurementWidth?: number | null | undefined;
2878
+ packageSizeId?: number | null | undefined;
2879
+ photoUrls?: string[] | null | undefined;
2880
+ size?: string | null | undefined;
2881
+ sizeId?: number | null | undefined;
2882
+ statusId?: number | null | undefined;
2883
+ title?: string | null | undefined;
2884
+ isDraft?: boolean | null | undefined;
2885
+ isArchived?: boolean | null | undefined;
2886
+ availableQuantity?: number | null | undefined;
2887
+ material?: number[] | null | undefined;
2888
+ manufacturerLabelling?: string | null | undefined;
2889
+ labels?: string[] | null | undefined;
2890
+ };
2891
+ createdAt?: Date | null | undefined;
2892
+ platformUrl?: string | null | undefined;
2893
+ };
2894
+ };
2895
+ }, {
2896
+ type: "IMPORTED";
2897
+ data: {
2898
+ post: {
2899
+ platformId: string;
2900
+ post: {
2901
+ status?: string | null | undefined;
2902
+ price?: number | null | undefined;
2903
+ currency?: string | null | undefined;
2904
+ brand?: string | null | undefined;
2905
+ catalog?: string | null | undefined;
2906
+ catalogId?: number | null | undefined;
2907
+ colors?: string[] | null | undefined;
2908
+ colorIds?: number[] | null | undefined;
2909
+ description?: string | null | undefined;
2910
+ measurementLength?: number | null | undefined;
2911
+ measurementWidth?: number | null | undefined;
2912
+ packageSizeId?: number | null | undefined;
2913
+ photoUrls?: string[] | null | undefined;
2914
+ size?: string | null | undefined;
2915
+ sizeId?: number | null | undefined;
2916
+ statusId?: number | null | undefined;
2917
+ title?: string | null | undefined;
2918
+ isDraft?: boolean | null | undefined;
2919
+ isArchived?: boolean | null | undefined;
2920
+ availableQuantity?: number | null | undefined;
2921
+ material?: number[] | null | undefined;
2922
+ manufacturerLabelling?: string | null | undefined;
2923
+ labels?: string[] | null | undefined;
2924
+ };
2925
+ createdAt?: Date | null | undefined;
2926
+ platformUrl?: string | null | undefined;
2927
+ };
2928
+ };
2929
+ }>, z.ZodObject<{
2930
+ data: z.ZodObject<{
2931
+ accountId: z.ZodString;
2932
+ }, "strip", z.ZodTypeAny, {
2933
+ accountId: string;
2934
+ }, {
2935
+ accountId: string;
2936
+ }>;
2937
+ type: z.ZodLiteral<"LIFECYCLE_COMPLETED">;
2938
+ }, "strip", z.ZodTypeAny, {
2939
+ type: "LIFECYCLE_COMPLETED";
2940
+ data: {
2941
+ accountId: string;
2942
+ };
2943
+ }, {
2944
+ type: "LIFECYCLE_COMPLETED";
2945
+ data: {
2946
+ accountId: string;
2947
+ };
2948
+ }>, z.ZodObject<{
2949
+ data: z.ZodObject<{
2950
+ accountId: z.ZodString;
2951
+ caseId: z.ZodString;
2952
+ }, "strip", z.ZodTypeAny, {
2953
+ accountId: string;
2954
+ caseId: string;
2955
+ }, {
2956
+ accountId: string;
2957
+ caseId: string;
2958
+ }>;
2959
+ type: z.ZodLiteral<"LIFECYCLE_STARTED">;
2960
+ }, "strip", z.ZodTypeAny, {
2961
+ type: "LIFECYCLE_STARTED";
2962
+ data: {
2963
+ accountId: string;
2964
+ caseId: string;
2965
+ };
2966
+ }, {
2967
+ type: "LIFECYCLE_STARTED";
2968
+ data: {
2969
+ accountId: string;
2970
+ caseId: string;
2971
+ };
2972
+ }>, z.ZodObject<{
2973
+ data: z.ZodObject<{
2974
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2975
+ }, "strip", z.ZodTypeAny, {
2976
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2977
+ }, {
2978
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2979
+ }>;
2980
+ type: z.ZodLiteral<"PUBLISHED">;
2981
+ }, "strip", z.ZodTypeAny, {
2982
+ type: "PUBLISHED";
2983
+ data: {
2984
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2985
+ };
2986
+ }, {
2987
+ type: "PUBLISHED";
2988
+ data: {
2989
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2990
+ };
2991
+ }>, z.ZodObject<{
2992
+ data: z.ZodObject<{
2993
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2994
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2995
+ priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2996
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
2997
+ value: z.ZodNumber;
2998
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
2999
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3000
+ maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3001
+ }, "strip", z.ZodTypeAny, {
3002
+ value: number;
3003
+ type: "PERCENTAGE" | "ABSOLUTE";
3004
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3005
+ roundStep?: number | null | undefined;
3006
+ maxRounds?: number | null | undefined;
3007
+ }, {
3008
+ value: number;
3009
+ type: "PERCENTAGE" | "ABSOLUTE";
3010
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3011
+ roundStep?: number | null | undefined;
3012
+ maxRounds?: number | null | undefined;
3013
+ }>>>;
3014
+ isTransfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3015
+ targetAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3016
+ }, "strip", z.ZodTypeAny, {
3017
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3018
+ publishingDate?: Date | null | undefined;
3019
+ priceDropPayload?: {
3020
+ value: number;
3021
+ type: "PERCENTAGE" | "ABSOLUTE";
3022
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3023
+ roundStep?: number | null | undefined;
3024
+ maxRounds?: number | null | undefined;
3025
+ } | null | undefined;
3026
+ isTransfer?: boolean | null | undefined;
3027
+ targetAccountId?: string | null | undefined;
3028
+ }, {
3029
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3030
+ publishingDate?: Date | null | undefined;
3031
+ priceDropPayload?: {
3032
+ value: number;
3033
+ type: "PERCENTAGE" | "ABSOLUTE";
3034
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3035
+ roundStep?: number | null | undefined;
3036
+ maxRounds?: number | null | undefined;
3037
+ } | null | undefined;
3038
+ isTransfer?: boolean | null | undefined;
3039
+ targetAccountId?: string | null | undefined;
3040
+ }>;
3041
+ type: z.ZodLiteral<"REPUBLISHING">;
3042
+ }, "strip", z.ZodTypeAny, {
3043
+ type: "REPUBLISHING";
3044
+ data: {
3045
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3046
+ publishingDate?: Date | null | undefined;
3047
+ priceDropPayload?: {
3048
+ value: number;
3049
+ type: "PERCENTAGE" | "ABSOLUTE";
3050
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3051
+ roundStep?: number | null | undefined;
3052
+ maxRounds?: number | null | undefined;
3053
+ } | null | undefined;
3054
+ isTransfer?: boolean | null | undefined;
3055
+ targetAccountId?: string | null | undefined;
3056
+ };
3057
+ }, {
3058
+ type: "REPUBLISHING";
3059
+ data: {
3060
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3061
+ publishingDate?: Date | null | undefined;
3062
+ priceDropPayload?: {
3063
+ value: number;
3064
+ type: "PERCENTAGE" | "ABSOLUTE";
3065
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3066
+ roundStep?: number | null | undefined;
3067
+ maxRounds?: number | null | undefined;
3068
+ } | null | undefined;
3069
+ isTransfer?: boolean | null | undefined;
3070
+ targetAccountId?: string | null | undefined;
3071
+ };
3072
+ }>, z.ZodObject<{
3073
+ data: z.ZodObject<{
3074
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
3075
+ attemptNumber: z.ZodNumber;
3076
+ maxAttempts: z.ZodNumber;
3077
+ previousHistoryId: z.ZodString;
3078
+ originalFailureDate: z.ZodDate;
3079
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3080
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
3081
+ autoFixable: z.ZodBoolean;
3082
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3083
+ }, "strip", z.ZodTypeAny, {
3084
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3085
+ autoFixable: boolean;
3086
+ error?: string | null | undefined;
3087
+ }, {
3088
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3089
+ autoFixable: boolean;
3090
+ error?: string | null | undefined;
3091
+ }>, "many">>>;
3092
+ priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3093
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
3094
+ value: z.ZodNumber;
3095
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
3096
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3097
+ maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3098
+ }, "strip", z.ZodTypeAny, {
3099
+ value: number;
3100
+ type: "PERCENTAGE" | "ABSOLUTE";
3101
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3102
+ roundStep?: number | null | undefined;
3103
+ maxRounds?: number | null | undefined;
3104
+ }, {
3105
+ value: number;
3106
+ type: "PERCENTAGE" | "ABSOLUTE";
3107
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3108
+ roundStep?: number | null | undefined;
3109
+ maxRounds?: number | null | undefined;
3110
+ }>>>;
3111
+ }, "strip", z.ZodTypeAny, {
3112
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3113
+ attemptNumber: number;
3114
+ maxAttempts: number;
3115
+ previousHistoryId: string;
3116
+ originalFailureDate: Date;
3117
+ fields?: {
3118
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3119
+ autoFixable: boolean;
3120
+ error?: string | null | undefined;
3121
+ }[] | null | undefined;
3122
+ priceDropPayload?: {
3123
+ value: number;
3124
+ type: "PERCENTAGE" | "ABSOLUTE";
3125
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3126
+ roundStep?: number | null | undefined;
3127
+ maxRounds?: number | null | undefined;
3128
+ } | null | undefined;
3129
+ }, {
3130
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3131
+ attemptNumber: number;
3132
+ maxAttempts: number;
3133
+ previousHistoryId: string;
3134
+ originalFailureDate: Date;
3135
+ fields?: {
3136
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3137
+ autoFixable: boolean;
3138
+ error?: string | null | undefined;
3139
+ }[] | null | undefined;
3140
+ priceDropPayload?: {
3141
+ value: number;
3142
+ type: "PERCENTAGE" | "ABSOLUTE";
3143
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3144
+ roundStep?: number | null | undefined;
3145
+ maxRounds?: number | null | undefined;
3146
+ } | null | undefined;
3147
+ }>;
3148
+ type: z.ZodLiteral<"REPUBLISHING_RETRY">;
3149
+ }, "strip", z.ZodTypeAny, {
3150
+ type: "REPUBLISHING_RETRY";
3151
+ data: {
3152
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3153
+ attemptNumber: number;
3154
+ maxAttempts: number;
3155
+ previousHistoryId: string;
3156
+ originalFailureDate: Date;
3157
+ fields?: {
3158
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3159
+ autoFixable: boolean;
3160
+ error?: string | null | undefined;
3161
+ }[] | null | undefined;
3162
+ priceDropPayload?: {
3163
+ value: number;
3164
+ type: "PERCENTAGE" | "ABSOLUTE";
3165
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3166
+ roundStep?: number | null | undefined;
3167
+ maxRounds?: number | null | undefined;
3168
+ } | null | undefined;
3169
+ };
3170
+ }, {
3171
+ type: "REPUBLISHING_RETRY";
3172
+ data: {
3173
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3174
+ attemptNumber: number;
3175
+ maxAttempts: number;
3176
+ previousHistoryId: string;
3177
+ originalFailureDate: Date;
3178
+ fields?: {
3179
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3180
+ autoFixable: boolean;
3181
+ error?: string | null | undefined;
3182
+ }[] | null | undefined;
3183
+ priceDropPayload?: {
3184
+ value: number;
3185
+ type: "PERCENTAGE" | "ABSOLUTE";
3186
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3187
+ roundStep?: number | null | undefined;
3188
+ maxRounds?: number | null | undefined;
3189
+ } | null | undefined;
3190
+ };
3191
+ }>, z.ZodObject<{
3192
+ data: z.ZodObject<{
3193
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
3194
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3195
+ }, "strip", z.ZodTypeAny, {
3196
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3197
+ publishingDate?: Date | null | undefined;
3198
+ }, {
3199
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3200
+ publishingDate?: Date | null | undefined;
3201
+ }>;
3202
+ type: z.ZodLiteral<"SCHEDULED">;
3203
+ }, "strip", z.ZodTypeAny, {
3204
+ type: "SCHEDULED";
3205
+ data: {
3206
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3207
+ publishingDate?: Date | null | undefined;
3208
+ };
3209
+ }, {
3210
+ type: "SCHEDULED";
3211
+ data: {
3212
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3213
+ publishingDate?: Date | null | undefined;
3214
+ };
3215
+ }>, z.ZodObject<{
3216
+ data: z.ZodObject<{
3217
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
3218
+ attemptNumber: z.ZodNumber;
3219
+ maxAttempts: z.ZodNumber;
3220
+ previousHistoryId: z.ZodString;
3221
+ originalFailureDate: z.ZodDate;
3222
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3223
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
3224
+ autoFixable: z.ZodBoolean;
3225
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3226
+ }, "strip", z.ZodTypeAny, {
3227
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3228
+ autoFixable: boolean;
3229
+ error?: string | null | undefined;
3230
+ }, {
3231
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3232
+ autoFixable: boolean;
3233
+ error?: string | null | undefined;
3234
+ }>, "many">>>;
3235
+ }, "strip", z.ZodTypeAny, {
3236
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3237
+ attemptNumber: number;
3238
+ maxAttempts: number;
3239
+ previousHistoryId: string;
3240
+ originalFailureDate: Date;
3241
+ fields?: {
3242
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3243
+ autoFixable: boolean;
3244
+ error?: string | null | undefined;
3245
+ }[] | null | undefined;
3246
+ }, {
3247
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3248
+ attemptNumber: number;
3249
+ maxAttempts: number;
3250
+ previousHistoryId: string;
3251
+ originalFailureDate: Date;
3252
+ fields?: {
3253
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3254
+ autoFixable: boolean;
3255
+ error?: string | null | undefined;
3256
+ }[] | null | undefined;
3257
+ }>;
3258
+ type: z.ZodLiteral<"SCHEDULED_RETRY">;
3259
+ }, "strip", z.ZodTypeAny, {
3260
+ type: "SCHEDULED_RETRY";
3261
+ data: {
3262
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3263
+ attemptNumber: number;
3264
+ maxAttempts: number;
3265
+ previousHistoryId: string;
3266
+ originalFailureDate: Date;
3267
+ fields?: {
3268
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3269
+ autoFixable: boolean;
3270
+ error?: string | null | undefined;
3271
+ }[] | null | undefined;
3272
+ };
3273
+ }, {
3274
+ type: "SCHEDULED_RETRY";
3275
+ data: {
3276
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3277
+ attemptNumber: number;
3278
+ maxAttempts: number;
3279
+ previousHistoryId: string;
3280
+ originalFailureDate: Date;
3281
+ fields?: {
3282
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3283
+ autoFixable: boolean;
3284
+ error?: string | null | undefined;
3285
+ }[] | null | undefined;
3286
+ };
3287
+ }>, z.ZodObject<{
3288
+ data: z.ZodObject<{
3289
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
3290
+ }, "strip", z.ZodTypeAny, {
3291
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3292
+ }, {
3293
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3294
+ }>;
3295
+ type: z.ZodLiteral<"UPDATED">;
3296
+ }, "strip", z.ZodTypeAny, {
3297
+ type: "UPDATED";
3298
+ data: {
3299
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3300
+ };
3301
+ }, {
3302
+ type: "UPDATED";
3303
+ data: {
3304
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3305
+ };
3306
+ }>, z.ZodObject<{
3307
+ data: z.ZodObject<{
3308
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
3309
+ post: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3310
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3311
+ catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3312
+ catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3313
+ colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
3314
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
3315
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3316
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3317
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3318
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3319
+ photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
3320
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3321
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3322
+ size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3323
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3324
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3325
+ statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3326
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3327
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3328
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3329
+ availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3330
+ material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
3331
+ manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3332
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
3333
+ }, "strip", z.ZodTypeAny, {
3334
+ status?: string | null | undefined;
3335
+ price?: number | null | undefined;
3336
+ currency?: string | null | undefined;
3337
+ brand?: string | null | undefined;
3338
+ catalog?: string | null | undefined;
3339
+ catalogId?: number | null | undefined;
3340
+ colors?: string[] | null | undefined;
3341
+ colorIds?: number[] | null | undefined;
3342
+ description?: string | null | undefined;
3343
+ measurementLength?: number | null | undefined;
3344
+ measurementWidth?: number | null | undefined;
3345
+ packageSizeId?: number | null | undefined;
3346
+ photoUrls?: string[] | null | undefined;
3347
+ size?: string | null | undefined;
3348
+ sizeId?: number | null | undefined;
3349
+ statusId?: number | null | undefined;
3350
+ title?: string | null | undefined;
3351
+ isDraft?: boolean | null | undefined;
3352
+ isArchived?: boolean | null | undefined;
3353
+ availableQuantity?: number | null | undefined;
3354
+ material?: number[] | null | undefined;
3355
+ manufacturerLabelling?: string | null | undefined;
3356
+ labels?: string[] | null | undefined;
3357
+ }, {
3358
+ status?: string | null | undefined;
3359
+ price?: number | null | undefined;
3360
+ currency?: string | null | undefined;
3361
+ brand?: string | null | undefined;
3362
+ catalog?: string | null | undefined;
3363
+ catalogId?: number | null | undefined;
3364
+ colors?: string[] | null | undefined;
3365
+ colorIds?: number[] | null | undefined;
3366
+ description?: string | null | undefined;
3367
+ measurementLength?: number | null | undefined;
3368
+ measurementWidth?: number | null | undefined;
3369
+ packageSizeId?: number | null | undefined;
3370
+ photoUrls?: string[] | null | undefined;
3371
+ size?: string | null | undefined;
3372
+ sizeId?: number | null | undefined;
3373
+ statusId?: number | null | undefined;
3374
+ title?: string | null | undefined;
3375
+ isDraft?: boolean | null | undefined;
3376
+ isArchived?: boolean | null | undefined;
3377
+ availableQuantity?: number | null | undefined;
3378
+ material?: number[] | null | undefined;
3379
+ manufacturerLabelling?: string | null | undefined;
3380
+ labels?: string[] | null | undefined;
3381
+ }>>>;
3382
+ targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3383
+ }, "strip", z.ZodTypeAny, {
3384
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3385
+ post?: {
3386
+ status?: string | null | undefined;
3387
+ price?: number | null | undefined;
3388
+ currency?: string | null | undefined;
3389
+ brand?: string | null | undefined;
3390
+ catalog?: string | null | undefined;
3391
+ catalogId?: number | null | undefined;
3392
+ colors?: string[] | null | undefined;
3393
+ colorIds?: number[] | null | undefined;
3394
+ description?: string | null | undefined;
3395
+ measurementLength?: number | null | undefined;
3396
+ measurementWidth?: number | null | undefined;
3397
+ packageSizeId?: number | null | undefined;
3398
+ photoUrls?: string[] | null | undefined;
3399
+ size?: string | null | undefined;
3400
+ sizeId?: number | null | undefined;
3401
+ statusId?: number | null | undefined;
3402
+ title?: string | null | undefined;
3403
+ isDraft?: boolean | null | undefined;
3404
+ isArchived?: boolean | null | undefined;
3405
+ availableQuantity?: number | null | undefined;
3406
+ material?: number[] | null | undefined;
3407
+ manufacturerLabelling?: string | null | undefined;
3408
+ labels?: string[] | null | undefined;
3409
+ } | null | undefined;
3410
+ targetDate?: Date | null | undefined;
3411
+ }, {
3412
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3413
+ post?: {
3414
+ status?: string | null | undefined;
3415
+ price?: number | null | undefined;
3416
+ currency?: string | null | undefined;
3417
+ brand?: string | null | undefined;
3418
+ catalog?: string | null | undefined;
3419
+ catalogId?: number | null | undefined;
3420
+ colors?: string[] | null | undefined;
3421
+ colorIds?: number[] | null | undefined;
3422
+ description?: string | null | undefined;
3423
+ measurementLength?: number | null | undefined;
3424
+ measurementWidth?: number | null | undefined;
3425
+ packageSizeId?: number | null | undefined;
3426
+ photoUrls?: string[] | null | undefined;
3427
+ size?: string | null | undefined;
3428
+ sizeId?: number | null | undefined;
3429
+ statusId?: number | null | undefined;
3430
+ title?: string | null | undefined;
3431
+ isDraft?: boolean | null | undefined;
3432
+ isArchived?: boolean | null | undefined;
3433
+ availableQuantity?: number | null | undefined;
3434
+ material?: number[] | null | undefined;
3435
+ manufacturerLabelling?: string | null | undefined;
3436
+ labels?: string[] | null | undefined;
3437
+ } | null | undefined;
3438
+ targetDate?: Date | null | undefined;
3439
+ }>;
3440
+ type: z.ZodLiteral<"UPDATING">;
3441
+ }, "strip", z.ZodTypeAny, {
3442
+ type: "UPDATING";
3443
+ data: {
3444
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3445
+ post?: {
3446
+ status?: string | null | undefined;
3447
+ price?: number | null | undefined;
3448
+ currency?: string | null | undefined;
3449
+ brand?: string | null | undefined;
3450
+ catalog?: string | null | undefined;
3451
+ catalogId?: number | null | undefined;
3452
+ colors?: string[] | null | undefined;
3453
+ colorIds?: number[] | null | undefined;
3454
+ description?: string | null | undefined;
3455
+ measurementLength?: number | null | undefined;
3456
+ measurementWidth?: number | null | undefined;
3457
+ packageSizeId?: number | null | undefined;
3458
+ photoUrls?: string[] | null | undefined;
3459
+ size?: string | null | undefined;
3460
+ sizeId?: number | null | undefined;
3461
+ statusId?: number | null | undefined;
3462
+ title?: string | null | undefined;
3463
+ isDraft?: boolean | null | undefined;
3464
+ isArchived?: boolean | null | undefined;
3465
+ availableQuantity?: number | null | undefined;
3466
+ material?: number[] | null | undefined;
3467
+ manufacturerLabelling?: string | null | undefined;
3468
+ labels?: string[] | null | undefined;
3469
+ } | null | undefined;
3470
+ targetDate?: Date | null | undefined;
3471
+ };
3472
+ }, {
3473
+ type: "UPDATING";
3474
+ data: {
3475
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3476
+ post?: {
3477
+ status?: string | null | undefined;
3478
+ price?: number | null | undefined;
3479
+ currency?: string | null | undefined;
3480
+ brand?: string | null | undefined;
3481
+ catalog?: string | null | undefined;
3482
+ catalogId?: number | null | undefined;
3483
+ colors?: string[] | null | undefined;
3484
+ colorIds?: number[] | null | undefined;
3485
+ description?: string | null | undefined;
3486
+ measurementLength?: number | null | undefined;
3487
+ measurementWidth?: number | null | undefined;
3488
+ packageSizeId?: number | null | undefined;
3489
+ photoUrls?: string[] | null | undefined;
3490
+ size?: string | null | undefined;
3491
+ sizeId?: number | null | undefined;
3492
+ statusId?: number | null | undefined;
3493
+ title?: string | null | undefined;
3494
+ isDraft?: boolean | null | undefined;
3495
+ isArchived?: boolean | null | undefined;
3496
+ availableQuantity?: number | null | undefined;
3497
+ material?: number[] | null | undefined;
3498
+ manufacturerLabelling?: string | null | undefined;
3499
+ labels?: string[] | null | undefined;
3500
+ } | null | undefined;
3501
+ targetDate?: Date | null | undefined;
3502
+ };
3503
+ }>]>>>;
3504
+ createdAt: z.ZodDate;
3505
+ targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3506
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3507
+ requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3508
+ }, "strip", z.ZodTypeAny, {
3509
+ 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";
3510
+ id: string;
3511
+ createdAt: Date;
3512
+ itemId: string | number;
3513
+ data?: {
3514
+ type: "ACTION_CANCELED";
3515
+ data: {
3516
+ targetItemHistoryId: string;
3517
+ };
3518
+ } | {
3519
+ type: "BUYER_PAID";
3520
+ data: {
3521
+ soldAccountId: string;
3522
+ soldOrderId: string;
3523
+ soldConversationId?: string | null | undefined;
3524
+ };
3525
+ } | {
3526
+ type: "DELIVERED";
3527
+ data: {
3528
+ soldAccountId: string;
3529
+ soldOrderId: string;
3530
+ soldConversationId?: string | null | undefined;
3531
+ };
3532
+ } | {
3533
+ type: "EMPTY";
3534
+ } | {
3535
+ type: "FAILED_TO_PUBLISH";
3536
+ data: {
3537
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3538
+ accountId?: string | null | undefined;
3539
+ reason?: string | null | undefined;
3540
+ fields?: {
3541
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3542
+ autoFixable: boolean;
3543
+ error?: string | null | undefined;
3544
+ }[] | null | undefined;
3545
+ itemHistoryId?: string | null | undefined;
3546
+ };
3547
+ } | {
3548
+ type: "IMAGE_PROCESSING_DONE";
3549
+ data: {
3550
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3551
+ variations?: {
3552
+ fileId: string;
3553
+ seed: number;
3554
+ phash: string;
3555
+ distanceOriginal: number;
3556
+ originalImageUrl: string;
3557
+ originalPhash: string;
3558
+ }[] | null | undefined;
3559
+ originalPhashes?: string[] | null | undefined;
3560
+ };
3561
+ } | {
3562
+ type: "IMPORTED";
3563
+ data: {
3564
+ post: {
3565
+ platformId: string;
3566
+ post: {
3567
+ status?: string | null | undefined;
3568
+ price?: number | null | undefined;
3569
+ currency?: string | null | undefined;
3570
+ brand?: string | null | undefined;
3571
+ catalog?: string | null | undefined;
3572
+ catalogId?: number | null | undefined;
3573
+ colors?: string[] | null | undefined;
3574
+ colorIds?: number[] | null | undefined;
3575
+ description?: string | null | undefined;
3576
+ measurementLength?: number | null | undefined;
3577
+ measurementWidth?: number | null | undefined;
3578
+ packageSizeId?: number | null | undefined;
3579
+ photoUrls?: string[] | null | undefined;
3580
+ size?: string | null | undefined;
3581
+ sizeId?: number | null | undefined;
3582
+ statusId?: number | null | undefined;
3583
+ title?: string | null | undefined;
3584
+ isDraft?: boolean | null | undefined;
3585
+ isArchived?: boolean | null | undefined;
3586
+ availableQuantity?: number | null | undefined;
3587
+ material?: number[] | null | undefined;
3588
+ manufacturerLabelling?: string | null | undefined;
3589
+ labels?: string[] | null | undefined;
3590
+ };
3591
+ createdAt?: Date | null | undefined;
3592
+ platformUrl?: string | null | undefined;
3593
+ };
3594
+ };
3595
+ } | {
3596
+ type: "LIFECYCLE_COMPLETED";
3597
+ data: {
3598
+ accountId: string;
3599
+ };
3600
+ } | {
3601
+ type: "LIFECYCLE_STARTED";
3602
+ data: {
3603
+ accountId: string;
3604
+ caseId: string;
3605
+ };
3606
+ } | {
3607
+ type: "PUBLISHED";
3608
+ data: {
3609
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3610
+ };
3611
+ } | {
3612
+ type: "REPUBLISHING";
3613
+ data: {
3614
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3615
+ publishingDate?: Date | null | undefined;
3616
+ priceDropPayload?: {
3617
+ value: number;
3618
+ type: "PERCENTAGE" | "ABSOLUTE";
3619
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3620
+ roundStep?: number | null | undefined;
3621
+ maxRounds?: number | null | undefined;
3622
+ } | null | undefined;
3623
+ isTransfer?: boolean | null | undefined;
3624
+ targetAccountId?: string | null | undefined;
3625
+ };
3626
+ } | {
3627
+ type: "REPUBLISHING_RETRY";
3628
+ data: {
3629
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3630
+ attemptNumber: number;
3631
+ maxAttempts: number;
3632
+ previousHistoryId: string;
3633
+ originalFailureDate: Date;
3634
+ fields?: {
3635
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3636
+ autoFixable: boolean;
3637
+ error?: string | null | undefined;
3638
+ }[] | null | undefined;
3639
+ priceDropPayload?: {
3640
+ value: number;
3641
+ type: "PERCENTAGE" | "ABSOLUTE";
3642
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3643
+ roundStep?: number | null | undefined;
3644
+ maxRounds?: number | null | undefined;
3645
+ } | null | undefined;
3646
+ };
3647
+ } | {
3648
+ type: "SCHEDULED";
3649
+ data: {
3650
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3651
+ publishingDate?: Date | null | undefined;
3652
+ };
3653
+ } | {
3654
+ type: "SCHEDULED_RETRY";
3655
+ data: {
3656
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3657
+ attemptNumber: number;
3658
+ maxAttempts: number;
3659
+ previousHistoryId: string;
3660
+ originalFailureDate: Date;
3661
+ fields?: {
3662
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3663
+ autoFixable: boolean;
3664
+ error?: string | null | undefined;
3665
+ }[] | null | undefined;
3666
+ };
3667
+ } | {
3668
+ type: "UPDATED";
3669
+ data: {
3670
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3671
+ };
3672
+ } | {
3673
+ type: "UPDATING";
3674
+ data: {
3675
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3676
+ post?: {
3677
+ status?: string | null | undefined;
3678
+ price?: number | null | undefined;
3679
+ currency?: string | null | undefined;
3680
+ brand?: string | null | undefined;
3681
+ catalog?: string | null | undefined;
3682
+ catalogId?: number | null | undefined;
3683
+ colors?: string[] | null | undefined;
3684
+ colorIds?: number[] | null | undefined;
3685
+ description?: string | null | undefined;
3686
+ measurementLength?: number | null | undefined;
3687
+ measurementWidth?: number | null | undefined;
3688
+ packageSizeId?: number | null | undefined;
3689
+ photoUrls?: string[] | null | undefined;
3690
+ size?: string | null | undefined;
3691
+ sizeId?: number | null | undefined;
3692
+ statusId?: number | null | undefined;
3693
+ title?: string | null | undefined;
3694
+ isDraft?: boolean | null | undefined;
3695
+ isArchived?: boolean | null | undefined;
3696
+ availableQuantity?: number | null | undefined;
3697
+ material?: number[] | null | undefined;
3698
+ manufacturerLabelling?: string | null | undefined;
3699
+ labels?: string[] | null | undefined;
3700
+ } | null | undefined;
3701
+ targetDate?: Date | null | undefined;
3702
+ };
3703
+ } | null | undefined;
3704
+ accountId?: string | null | undefined;
3705
+ requestId?: string | null | undefined;
3706
+ targetDate?: Date | null | undefined;
3707
+ }, {
3708
+ 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";
3709
+ id: string;
3710
+ createdAt: Date;
3711
+ itemId: string | number;
3712
+ data?: {
3713
+ type: "ACTION_CANCELED";
3714
+ data: {
3715
+ targetItemHistoryId: string;
3716
+ };
3717
+ } | {
3718
+ type: "BUYER_PAID";
3719
+ data: {
3720
+ soldAccountId: string;
3721
+ soldOrderId: string;
3722
+ soldConversationId?: string | null | undefined;
3723
+ };
3724
+ } | {
3725
+ type: "DELIVERED";
3726
+ data: {
3727
+ soldAccountId: string;
3728
+ soldOrderId: string;
3729
+ soldConversationId?: string | null | undefined;
3730
+ };
3731
+ } | {
3732
+ type: "EMPTY";
3733
+ } | {
3734
+ type: "FAILED_TO_PUBLISH";
3735
+ data: {
3736
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3737
+ accountId?: string | null | undefined;
3738
+ reason?: string | null | undefined;
3739
+ fields?: {
3740
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3741
+ autoFixable: boolean;
3742
+ error?: string | null | undefined;
3743
+ }[] | null | undefined;
3744
+ itemHistoryId?: string | null | undefined;
3745
+ };
3746
+ } | {
3747
+ type: "IMAGE_PROCESSING_DONE";
3748
+ data: {
3749
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3750
+ variations?: {
3751
+ fileId: string;
3752
+ seed: number;
3753
+ phash: string;
3754
+ distanceOriginal: number;
3755
+ originalImageUrl: string;
3756
+ originalPhash: string;
3757
+ }[] | null | undefined;
3758
+ originalPhashes?: string[] | null | undefined;
3759
+ };
3760
+ } | {
3761
+ type: "IMPORTED";
3762
+ data: {
3763
+ post: {
3764
+ platformId: string;
3765
+ post: {
3766
+ status?: string | null | undefined;
3767
+ price?: number | null | undefined;
3768
+ currency?: string | null | undefined;
3769
+ brand?: string | null | undefined;
3770
+ catalog?: string | null | undefined;
3771
+ catalogId?: number | null | undefined;
3772
+ colors?: string[] | null | undefined;
3773
+ colorIds?: number[] | null | undefined;
3774
+ description?: string | null | undefined;
3775
+ measurementLength?: number | null | undefined;
3776
+ measurementWidth?: number | null | undefined;
3777
+ packageSizeId?: number | null | undefined;
3778
+ photoUrls?: string[] | null | undefined;
3779
+ size?: string | null | undefined;
3780
+ sizeId?: number | null | undefined;
3781
+ statusId?: number | null | undefined;
3782
+ title?: string | null | undefined;
3783
+ isDraft?: boolean | null | undefined;
3784
+ isArchived?: boolean | null | undefined;
3785
+ availableQuantity?: number | null | undefined;
3786
+ material?: number[] | null | undefined;
3787
+ manufacturerLabelling?: string | null | undefined;
3788
+ labels?: string[] | null | undefined;
3789
+ };
3790
+ createdAt?: Date | null | undefined;
3791
+ platformUrl?: string | null | undefined;
3792
+ };
3793
+ };
3794
+ } | {
3795
+ type: "LIFECYCLE_COMPLETED";
3796
+ data: {
3797
+ accountId: string;
3798
+ };
3799
+ } | {
3800
+ type: "LIFECYCLE_STARTED";
3801
+ data: {
3802
+ accountId: string;
3803
+ caseId: string;
3804
+ };
3805
+ } | {
3806
+ type: "PUBLISHED";
3807
+ data: {
3808
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3809
+ };
3810
+ } | {
3811
+ type: "REPUBLISHING";
3812
+ data: {
3813
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3814
+ publishingDate?: Date | null | undefined;
3815
+ priceDropPayload?: {
3816
+ value: number;
3817
+ type: "PERCENTAGE" | "ABSOLUTE";
3818
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3819
+ roundStep?: number | null | undefined;
3820
+ maxRounds?: number | null | undefined;
3821
+ } | null | undefined;
3822
+ isTransfer?: boolean | null | undefined;
3823
+ targetAccountId?: string | null | undefined;
3824
+ };
3825
+ } | {
3826
+ type: "REPUBLISHING_RETRY";
3827
+ data: {
3828
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3829
+ attemptNumber: number;
3830
+ maxAttempts: number;
3831
+ previousHistoryId: string;
3832
+ originalFailureDate: Date;
3833
+ fields?: {
3834
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3835
+ autoFixable: boolean;
3836
+ error?: string | null | undefined;
3837
+ }[] | null | undefined;
3838
+ priceDropPayload?: {
3839
+ value: number;
3840
+ type: "PERCENTAGE" | "ABSOLUTE";
3841
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3842
+ roundStep?: number | null | undefined;
3843
+ maxRounds?: number | null | undefined;
3844
+ } | null | undefined;
3845
+ };
3846
+ } | {
3847
+ type: "SCHEDULED";
3848
+ data: {
3849
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3850
+ publishingDate?: Date | null | undefined;
3851
+ };
3852
+ } | {
3853
+ type: "SCHEDULED_RETRY";
3854
+ data: {
3855
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3856
+ attemptNumber: number;
3857
+ maxAttempts: number;
3858
+ previousHistoryId: string;
3859
+ originalFailureDate: Date;
3860
+ fields?: {
3861
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3862
+ autoFixable: boolean;
3863
+ error?: string | null | undefined;
3864
+ }[] | null | undefined;
3865
+ };
3866
+ } | {
3867
+ type: "UPDATED";
3868
+ data: {
3869
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3870
+ };
3871
+ } | {
3872
+ type: "UPDATING";
3873
+ data: {
3874
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3875
+ post?: {
3876
+ status?: string | null | undefined;
3877
+ price?: number | null | undefined;
3878
+ currency?: string | null | undefined;
3879
+ brand?: string | null | undefined;
3880
+ catalog?: string | null | undefined;
3881
+ catalogId?: number | null | undefined;
3882
+ colors?: string[] | null | undefined;
3883
+ colorIds?: number[] | null | undefined;
3884
+ description?: string | null | undefined;
3885
+ measurementLength?: number | null | undefined;
3886
+ measurementWidth?: number | null | undefined;
3887
+ packageSizeId?: number | null | undefined;
3888
+ photoUrls?: string[] | null | undefined;
3889
+ size?: string | null | undefined;
3890
+ sizeId?: number | null | undefined;
3891
+ statusId?: number | null | undefined;
3892
+ title?: string | null | undefined;
3893
+ isDraft?: boolean | null | undefined;
3894
+ isArchived?: boolean | null | undefined;
3895
+ availableQuantity?: number | null | undefined;
3896
+ material?: number[] | null | undefined;
3897
+ manufacturerLabelling?: string | null | undefined;
3898
+ labels?: string[] | null | undefined;
3899
+ } | null | undefined;
3900
+ targetDate?: Date | null | undefined;
3901
+ };
3902
+ } | null | undefined;
3903
+ accountId?: string | null | undefined;
3904
+ requestId?: string | null | undefined;
3905
+ targetDate?: Date | null | undefined;
3906
+ }>, "many">>>;
3907
+ createdAt: z.ZodDate;
3908
+ updatedAt: z.ZodDate;
3909
+ }, "strip", z.ZodTypeAny, {
3910
+ userId: string | number;
3911
+ id: string | number;
3912
+ updatedAt: Date;
3913
+ name: string;
3914
+ createdAt: Date;
3915
+ sold: boolean;
3916
+ state?: number | null | undefined;
3917
+ colorIds?: number[] | null | undefined;
3918
+ description?: string | null | undefined;
3919
+ packageSizeId?: number | null | undefined;
3920
+ sizeId?: number | null | undefined;
3921
+ labels?: {
3922
+ itemId: string | number;
3923
+ labelId: string | number;
3924
+ label?: {
3925
+ id: string | number;
3926
+ name: string;
3927
+ createdAt: Date;
3928
+ isUserLabel: boolean;
3929
+ userId?: string | number | null | undefined;
3930
+ itemCount?: number | null | undefined;
3931
+ parentId?: unknown;
3932
+ } | null | undefined;
3933
+ }[] | null | undefined;
3934
+ files?: {
3935
+ itemId: string | number;
3936
+ fileId: string;
3937
+ index?: number | null | undefined;
3938
+ file?: {
3939
+ path: string;
3940
+ userId: string | number;
3941
+ id: string;
3942
+ createdAt: Date;
3943
+ signedUrl: string;
3944
+ } | null | undefined;
3945
+ }[] | null | undefined;
3946
+ fields?: {
3947
+ value: string;
3948
+ itemId: string | number;
3949
+ fieldId: string | number;
3950
+ }[] | null | undefined;
3951
+ sku?: string | null | undefined;
3952
+ categoryId?: number | null | undefined;
3953
+ brandId?: string | number | null | undefined;
3954
+ sex?: string | null | undefined;
3955
+ purchasePrice?: number | null | undefined;
3956
+ purchaseDate?: Date | null | undefined;
3957
+ purchasePlaceId?: string | number | null | undefined;
3958
+ purchased?: boolean | null | undefined;
3959
+ sellingPrice?: number | null | undefined;
3960
+ sellingDate?: Date | null | undefined;
3961
+ sellingPlaceId?: string | number | null | undefined;
3962
+ estimatedPrice?: number | null | undefined;
3963
+ fees?: {
3964
+ value: number;
3965
+ type: string;
3966
+ userId: string | number;
3967
+ id: string | number;
3968
+ updatedAt: Date;
3969
+ name: string;
3970
+ createdAt: Date;
3971
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
3972
+ startDate: Date;
3973
+ active: boolean;
3974
+ description?: string | null | undefined;
3975
+ itemId?: string | number | null | undefined;
3976
+ endDate?: Date | null | undefined;
3977
+ parentFeeId?: string | number | null | undefined;
3978
+ }[] | null | undefined;
3979
+ feesSum?: number | null | undefined;
3980
+ customerId?: string | number | null | undefined;
3981
+ customer?: {
3982
+ userId: string | number;
3983
+ id: string | number;
3984
+ email: string;
3985
+ firstName: string;
3986
+ lastName: string;
3987
+ birthDate: Date;
3988
+ idNumber: string;
3989
+ phone: string;
3990
+ iban: string;
3991
+ bic: string;
3992
+ phoneVerified: boolean;
3993
+ } | null | undefined;
3994
+ customerType?: string | null | undefined;
3995
+ customerPaid?: boolean | null | undefined;
3996
+ customerPaidDate?: Date | null | undefined;
3997
+ customerPaidType?: string | null | undefined;
3998
+ contractId?: string | number | null | undefined;
3999
+ lastHistory?: {
4000
+ 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";
4001
+ id: string;
4002
+ createdAt: Date;
4003
+ itemId: string | number;
4004
+ data?: {
4005
+ type: "ACTION_CANCELED";
4006
+ data: {
4007
+ targetItemHistoryId: string;
4008
+ };
4009
+ } | {
4010
+ type: "BUYER_PAID";
4011
+ data: {
4012
+ soldAccountId: string;
4013
+ soldOrderId: string;
4014
+ soldConversationId?: string | null | undefined;
4015
+ };
4016
+ } | {
4017
+ type: "DELIVERED";
4018
+ data: {
4019
+ soldAccountId: string;
4020
+ soldOrderId: string;
4021
+ soldConversationId?: string | null | undefined;
4022
+ };
4023
+ } | {
4024
+ type: "EMPTY";
4025
+ } | {
4026
+ type: "FAILED_TO_PUBLISH";
4027
+ data: {
4028
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4029
+ accountId?: string | null | undefined;
4030
+ reason?: string | null | undefined;
4031
+ fields?: {
4032
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4033
+ autoFixable: boolean;
4034
+ error?: string | null | undefined;
4035
+ }[] | null | undefined;
4036
+ itemHistoryId?: string | null | undefined;
4037
+ };
4038
+ } | {
4039
+ type: "IMAGE_PROCESSING_DONE";
4040
+ data: {
4041
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4042
+ variations?: {
4043
+ fileId: string;
4044
+ seed: number;
4045
+ phash: string;
4046
+ distanceOriginal: number;
4047
+ originalImageUrl: string;
4048
+ originalPhash: string;
4049
+ }[] | null | undefined;
4050
+ originalPhashes?: string[] | null | undefined;
4051
+ };
4052
+ } | {
4053
+ type: "IMPORTED";
4054
+ data: {
4055
+ post: {
4056
+ platformId: string;
4057
+ post: {
4058
+ status?: string | null | undefined;
4059
+ price?: number | null | undefined;
4060
+ currency?: string | null | undefined;
4061
+ brand?: string | null | undefined;
4062
+ catalog?: string | null | undefined;
4063
+ catalogId?: number | null | undefined;
4064
+ colors?: string[] | null | undefined;
4065
+ colorIds?: number[] | null | undefined;
4066
+ description?: string | null | undefined;
4067
+ measurementLength?: number | null | undefined;
4068
+ measurementWidth?: number | null | undefined;
4069
+ packageSizeId?: number | null | undefined;
4070
+ photoUrls?: string[] | null | undefined;
4071
+ size?: string | null | undefined;
4072
+ sizeId?: number | null | undefined;
4073
+ statusId?: number | null | undefined;
4074
+ title?: string | null | undefined;
4075
+ isDraft?: boolean | null | undefined;
4076
+ isArchived?: boolean | null | undefined;
4077
+ availableQuantity?: number | null | undefined;
4078
+ material?: number[] | null | undefined;
4079
+ manufacturerLabelling?: string | null | undefined;
4080
+ labels?: string[] | null | undefined;
4081
+ };
4082
+ createdAt?: Date | null | undefined;
4083
+ platformUrl?: string | null | undefined;
4084
+ };
4085
+ };
4086
+ } | {
4087
+ type: "LIFECYCLE_COMPLETED";
4088
+ data: {
4089
+ accountId: string;
4090
+ };
4091
+ } | {
4092
+ type: "LIFECYCLE_STARTED";
4093
+ data: {
4094
+ accountId: string;
4095
+ caseId: string;
4096
+ };
4097
+ } | {
4098
+ type: "PUBLISHED";
4099
+ data: {
4100
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4101
+ };
4102
+ } | {
4103
+ type: "REPUBLISHING";
4104
+ data: {
4105
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4106
+ publishingDate?: Date | null | undefined;
4107
+ priceDropPayload?: {
4108
+ value: number;
4109
+ type: "PERCENTAGE" | "ABSOLUTE";
4110
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4111
+ roundStep?: number | null | undefined;
4112
+ maxRounds?: number | null | undefined;
4113
+ } | null | undefined;
4114
+ isTransfer?: boolean | null | undefined;
4115
+ targetAccountId?: string | null | undefined;
4116
+ };
4117
+ } | {
4118
+ type: "REPUBLISHING_RETRY";
4119
+ data: {
4120
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4121
+ attemptNumber: number;
4122
+ maxAttempts: number;
4123
+ previousHistoryId: string;
4124
+ originalFailureDate: Date;
4125
+ fields?: {
4126
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4127
+ autoFixable: boolean;
4128
+ error?: string | null | undefined;
4129
+ }[] | null | undefined;
4130
+ priceDropPayload?: {
4131
+ value: number;
4132
+ type: "PERCENTAGE" | "ABSOLUTE";
4133
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4134
+ roundStep?: number | null | undefined;
4135
+ maxRounds?: number | null | undefined;
4136
+ } | null | undefined;
4137
+ };
4138
+ } | {
4139
+ type: "SCHEDULED";
4140
+ data: {
4141
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4142
+ publishingDate?: Date | null | undefined;
4143
+ };
4144
+ } | {
4145
+ type: "SCHEDULED_RETRY";
4146
+ data: {
4147
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4148
+ attemptNumber: number;
4149
+ maxAttempts: number;
4150
+ previousHistoryId: string;
4151
+ originalFailureDate: Date;
4152
+ fields?: {
4153
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4154
+ autoFixable: boolean;
4155
+ error?: string | null | undefined;
4156
+ }[] | null | undefined;
4157
+ };
4158
+ } | {
4159
+ type: "UPDATED";
4160
+ data: {
4161
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4162
+ };
4163
+ } | {
4164
+ type: "UPDATING";
4165
+ data: {
4166
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4167
+ post?: {
4168
+ status?: string | null | undefined;
4169
+ price?: number | null | undefined;
4170
+ currency?: string | null | undefined;
4171
+ brand?: string | null | undefined;
4172
+ catalog?: string | null | undefined;
4173
+ catalogId?: number | null | undefined;
4174
+ colors?: string[] | null | undefined;
4175
+ colorIds?: number[] | null | undefined;
4176
+ description?: string | null | undefined;
4177
+ measurementLength?: number | null | undefined;
4178
+ measurementWidth?: number | null | undefined;
4179
+ packageSizeId?: number | null | undefined;
4180
+ photoUrls?: string[] | null | undefined;
4181
+ size?: string | null | undefined;
4182
+ sizeId?: number | null | undefined;
4183
+ statusId?: number | null | undefined;
4184
+ title?: string | null | undefined;
4185
+ isDraft?: boolean | null | undefined;
4186
+ isArchived?: boolean | null | undefined;
4187
+ availableQuantity?: number | null | undefined;
4188
+ material?: number[] | null | undefined;
4189
+ manufacturerLabelling?: string | null | undefined;
4190
+ labels?: string[] | null | undefined;
4191
+ } | null | undefined;
4192
+ targetDate?: Date | null | undefined;
4193
+ };
4194
+ } | null | undefined;
4195
+ accountId?: string | null | undefined;
4196
+ requestId?: string | null | undefined;
4197
+ targetDate?: Date | null | undefined;
4198
+ } | null | undefined;
4199
+ platforms?: {
4200
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
4201
+ id: string;
4202
+ updatedAt: Date;
4203
+ createdAt: Date;
4204
+ accountId: string;
4205
+ itemId: string | number;
4206
+ platformId: string;
4207
+ platformUrl: string;
4208
+ platformPrice: number;
4209
+ publishedAt: Date;
4210
+ conversationId?: string | null | undefined;
4211
+ account?: {
4212
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
4213
+ userId: string | number;
4214
+ name: string;
4215
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4216
+ accountId: string;
4217
+ locale?: string | null | undefined;
4218
+ night?: {
4219
+ startsAt: Date;
4220
+ endsAt: Date;
4221
+ } | null | undefined;
4222
+ favoritesMaxDelay?: number | null | undefined;
4223
+ ordersMaxDelay?: number | null | undefined;
4224
+ conversationsMaxDelay?: number | null | undefined;
4225
+ } | null | undefined;
4226
+ viewsCount?: number | null | undefined;
4227
+ favoritesCount?: number | null | undefined;
4228
+ }[] | null | undefined;
4229
+ history?: {
4230
+ 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";
4231
+ id: string;
4232
+ createdAt: Date;
4233
+ itemId: string | number;
4234
+ data?: {
4235
+ type: "ACTION_CANCELED";
4236
+ data: {
4237
+ targetItemHistoryId: string;
4238
+ };
4239
+ } | {
4240
+ type: "BUYER_PAID";
4241
+ data: {
4242
+ soldAccountId: string;
4243
+ soldOrderId: string;
4244
+ soldConversationId?: string | null | undefined;
4245
+ };
4246
+ } | {
4247
+ type: "DELIVERED";
4248
+ data: {
4249
+ soldAccountId: string;
4250
+ soldOrderId: string;
4251
+ soldConversationId?: string | null | undefined;
4252
+ };
4253
+ } | {
4254
+ type: "EMPTY";
4255
+ } | {
4256
+ type: "FAILED_TO_PUBLISH";
4257
+ data: {
4258
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4259
+ accountId?: string | null | undefined;
4260
+ reason?: string | null | undefined;
4261
+ fields?: {
4262
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4263
+ autoFixable: boolean;
4264
+ error?: string | null | undefined;
4265
+ }[] | null | undefined;
4266
+ itemHistoryId?: string | null | undefined;
4267
+ };
4268
+ } | {
4269
+ type: "IMAGE_PROCESSING_DONE";
4270
+ data: {
4271
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4272
+ variations?: {
4273
+ fileId: string;
4274
+ seed: number;
4275
+ phash: string;
4276
+ distanceOriginal: number;
4277
+ originalImageUrl: string;
4278
+ originalPhash: string;
4279
+ }[] | null | undefined;
4280
+ originalPhashes?: string[] | null | undefined;
4281
+ };
4282
+ } | {
4283
+ type: "IMPORTED";
4284
+ data: {
4285
+ post: {
4286
+ platformId: string;
4287
+ post: {
4288
+ status?: string | null | undefined;
4289
+ price?: number | null | undefined;
4290
+ currency?: string | null | undefined;
4291
+ brand?: string | null | undefined;
4292
+ catalog?: string | null | undefined;
4293
+ catalogId?: number | null | undefined;
4294
+ colors?: string[] | null | undefined;
4295
+ colorIds?: number[] | null | undefined;
4296
+ description?: string | null | undefined;
4297
+ measurementLength?: number | null | undefined;
4298
+ measurementWidth?: number | null | undefined;
4299
+ packageSizeId?: number | null | undefined;
4300
+ photoUrls?: string[] | null | undefined;
4301
+ size?: string | null | undefined;
4302
+ sizeId?: number | null | undefined;
4303
+ statusId?: number | null | undefined;
4304
+ title?: string | null | undefined;
4305
+ isDraft?: boolean | null | undefined;
4306
+ isArchived?: boolean | null | undefined;
4307
+ availableQuantity?: number | null | undefined;
4308
+ material?: number[] | null | undefined;
4309
+ manufacturerLabelling?: string | null | undefined;
4310
+ labels?: string[] | null | undefined;
4311
+ };
4312
+ createdAt?: Date | null | undefined;
4313
+ platformUrl?: string | null | undefined;
4314
+ };
4315
+ };
4316
+ } | {
4317
+ type: "LIFECYCLE_COMPLETED";
4318
+ data: {
4319
+ accountId: string;
4320
+ };
4321
+ } | {
4322
+ type: "LIFECYCLE_STARTED";
4323
+ data: {
4324
+ accountId: string;
4325
+ caseId: string;
4326
+ };
4327
+ } | {
4328
+ type: "PUBLISHED";
4329
+ data: {
4330
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4331
+ };
4332
+ } | {
4333
+ type: "REPUBLISHING";
4334
+ data: {
4335
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4336
+ publishingDate?: Date | null | undefined;
4337
+ priceDropPayload?: {
4338
+ value: number;
4339
+ type: "PERCENTAGE" | "ABSOLUTE";
4340
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4341
+ roundStep?: number | null | undefined;
4342
+ maxRounds?: number | null | undefined;
4343
+ } | null | undefined;
4344
+ isTransfer?: boolean | null | undefined;
4345
+ targetAccountId?: string | null | undefined;
4346
+ };
4347
+ } | {
4348
+ type: "REPUBLISHING_RETRY";
4349
+ data: {
4350
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4351
+ attemptNumber: number;
4352
+ maxAttempts: number;
4353
+ previousHistoryId: string;
4354
+ originalFailureDate: Date;
4355
+ fields?: {
4356
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4357
+ autoFixable: boolean;
4358
+ error?: string | null | undefined;
4359
+ }[] | null | undefined;
4360
+ priceDropPayload?: {
4361
+ value: number;
4362
+ type: "PERCENTAGE" | "ABSOLUTE";
4363
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4364
+ roundStep?: number | null | undefined;
4365
+ maxRounds?: number | null | undefined;
4366
+ } | null | undefined;
4367
+ };
4368
+ } | {
4369
+ type: "SCHEDULED";
4370
+ data: {
4371
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4372
+ publishingDate?: Date | null | undefined;
4373
+ };
4374
+ } | {
4375
+ type: "SCHEDULED_RETRY";
4376
+ data: {
4377
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4378
+ attemptNumber: number;
4379
+ maxAttempts: number;
4380
+ previousHistoryId: string;
4381
+ originalFailureDate: Date;
4382
+ fields?: {
4383
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4384
+ autoFixable: boolean;
4385
+ error?: string | null | undefined;
4386
+ }[] | null | undefined;
4387
+ };
4388
+ } | {
4389
+ type: "UPDATED";
4390
+ data: {
4391
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4392
+ };
4393
+ } | {
4394
+ type: "UPDATING";
4395
+ data: {
4396
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4397
+ post?: {
4398
+ status?: string | null | undefined;
4399
+ price?: number | null | undefined;
4400
+ currency?: string | null | undefined;
4401
+ brand?: string | null | undefined;
4402
+ catalog?: string | null | undefined;
4403
+ catalogId?: number | null | undefined;
4404
+ colors?: string[] | null | undefined;
4405
+ colorIds?: number[] | null | undefined;
4406
+ description?: string | null | undefined;
4407
+ measurementLength?: number | null | undefined;
4408
+ measurementWidth?: number | null | undefined;
4409
+ packageSizeId?: number | null | undefined;
4410
+ photoUrls?: string[] | null | undefined;
4411
+ size?: string | null | undefined;
4412
+ sizeId?: number | null | undefined;
4413
+ statusId?: number | null | undefined;
4414
+ title?: string | null | undefined;
4415
+ isDraft?: boolean | null | undefined;
4416
+ isArchived?: boolean | null | undefined;
4417
+ availableQuantity?: number | null | undefined;
4418
+ material?: number[] | null | undefined;
4419
+ manufacturerLabelling?: string | null | undefined;
4420
+ labels?: string[] | null | undefined;
4421
+ } | null | undefined;
4422
+ targetDate?: Date | null | undefined;
4423
+ };
4424
+ } | null | undefined;
4425
+ accountId?: string | null | undefined;
4426
+ requestId?: string | null | undefined;
4427
+ targetDate?: Date | null | undefined;
4428
+ }[] | null | undefined;
4429
+ }, {
4430
+ userId: string | number;
4431
+ id: string | number;
4432
+ updatedAt: Date;
4433
+ name: string;
4434
+ createdAt: Date;
4435
+ sold: boolean;
4436
+ state?: number | null | undefined;
4437
+ colorIds?: number[] | null | undefined;
4438
+ description?: string | null | undefined;
4439
+ packageSizeId?: number | null | undefined;
4440
+ sizeId?: number | null | undefined;
4441
+ labels?: {
4442
+ itemId: string | number;
4443
+ labelId: string | number;
4444
+ label?: {
4445
+ id: string | number;
4446
+ name: string;
4447
+ createdAt: Date;
4448
+ isUserLabel: boolean;
4449
+ userId?: string | number | null | undefined;
4450
+ itemCount?: number | null | undefined;
4451
+ parentId?: unknown;
4452
+ } | null | undefined;
4453
+ }[] | null | undefined;
4454
+ files?: {
4455
+ itemId: string | number;
4456
+ fileId: string;
4457
+ index?: number | null | undefined;
4458
+ file?: {
4459
+ path: string;
4460
+ userId: string | number;
4461
+ id: string;
4462
+ createdAt: Date;
4463
+ signedUrl: string;
4464
+ } | null | undefined;
4465
+ }[] | null | undefined;
4466
+ fields?: {
4467
+ value: string;
4468
+ itemId: string | number;
4469
+ fieldId: string | number;
4470
+ }[] | null | undefined;
4471
+ sku?: string | null | undefined;
4472
+ categoryId?: number | null | undefined;
4473
+ brandId?: string | number | null | undefined;
4474
+ sex?: string | null | undefined;
4475
+ purchasePrice?: number | null | undefined;
4476
+ purchaseDate?: Date | null | undefined;
4477
+ purchasePlaceId?: string | number | null | undefined;
4478
+ purchased?: boolean | null | undefined;
4479
+ sellingPrice?: number | null | undefined;
4480
+ sellingDate?: Date | null | undefined;
4481
+ sellingPlaceId?: string | number | null | undefined;
4482
+ estimatedPrice?: number | null | undefined;
4483
+ fees?: {
4484
+ value: number;
4485
+ type: string;
4486
+ userId: string | number;
4487
+ id: string | number;
4488
+ updatedAt: Date;
4489
+ name: string;
4490
+ createdAt: Date;
4491
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
4492
+ startDate: Date;
4493
+ active: boolean;
4494
+ description?: string | null | undefined;
4495
+ itemId?: string | number | null | undefined;
4496
+ endDate?: Date | null | undefined;
4497
+ parentFeeId?: string | number | null | undefined;
4498
+ }[] | null | undefined;
4499
+ feesSum?: number | null | undefined;
4500
+ customerId?: string | number | null | undefined;
4501
+ customer?: {
4502
+ userId: string | number;
4503
+ id: string | number;
4504
+ email: string;
4505
+ firstName: string;
4506
+ lastName: string;
4507
+ birthDate: Date;
4508
+ idNumber: string;
4509
+ phone: string;
4510
+ iban: string;
4511
+ bic: string;
4512
+ phoneVerified: boolean;
4513
+ } | null | undefined;
4514
+ customerType?: string | null | undefined;
4515
+ customerPaid?: boolean | null | undefined;
4516
+ customerPaidDate?: Date | null | undefined;
4517
+ customerPaidType?: string | null | undefined;
4518
+ contractId?: string | number | null | undefined;
4519
+ lastHistory?: {
4520
+ 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";
4521
+ id: string;
4522
+ createdAt: Date;
4523
+ itemId: string | number;
4524
+ data?: {
4525
+ type: "ACTION_CANCELED";
4526
+ data: {
4527
+ targetItemHistoryId: string;
4528
+ };
4529
+ } | {
4530
+ type: "BUYER_PAID";
4531
+ data: {
4532
+ soldAccountId: string;
4533
+ soldOrderId: string;
4534
+ soldConversationId?: string | null | undefined;
4535
+ };
4536
+ } | {
4537
+ type: "DELIVERED";
4538
+ data: {
4539
+ soldAccountId: string;
4540
+ soldOrderId: string;
4541
+ soldConversationId?: string | null | undefined;
4542
+ };
4543
+ } | {
4544
+ type: "EMPTY";
4545
+ } | {
4546
+ type: "FAILED_TO_PUBLISH";
4547
+ data: {
4548
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4549
+ accountId?: string | null | undefined;
4550
+ reason?: string | null | undefined;
4551
+ fields?: {
4552
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4553
+ autoFixable: boolean;
4554
+ error?: string | null | undefined;
4555
+ }[] | null | undefined;
4556
+ itemHistoryId?: string | null | undefined;
4557
+ };
4558
+ } | {
4559
+ type: "IMAGE_PROCESSING_DONE";
4560
+ data: {
4561
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4562
+ variations?: {
4563
+ fileId: string;
4564
+ seed: number;
4565
+ phash: string;
4566
+ distanceOriginal: number;
4567
+ originalImageUrl: string;
4568
+ originalPhash: string;
4569
+ }[] | null | undefined;
4570
+ originalPhashes?: string[] | null | undefined;
4571
+ };
4572
+ } | {
4573
+ type: "IMPORTED";
4574
+ data: {
4575
+ post: {
4576
+ platformId: string;
4577
+ post: {
4578
+ status?: string | null | undefined;
4579
+ price?: number | null | undefined;
4580
+ currency?: string | null | undefined;
4581
+ brand?: string | null | undefined;
4582
+ catalog?: string | null | undefined;
4583
+ catalogId?: number | null | undefined;
4584
+ colors?: string[] | null | undefined;
4585
+ colorIds?: number[] | null | undefined;
4586
+ description?: string | null | undefined;
4587
+ measurementLength?: number | null | undefined;
4588
+ measurementWidth?: number | null | undefined;
4589
+ packageSizeId?: number | null | undefined;
4590
+ photoUrls?: string[] | null | undefined;
4591
+ size?: string | null | undefined;
4592
+ sizeId?: number | null | undefined;
4593
+ statusId?: number | null | undefined;
4594
+ title?: string | null | undefined;
4595
+ isDraft?: boolean | null | undefined;
4596
+ isArchived?: boolean | null | undefined;
4597
+ availableQuantity?: number | null | undefined;
4598
+ material?: number[] | null | undefined;
4599
+ manufacturerLabelling?: string | null | undefined;
4600
+ labels?: string[] | null | undefined;
4601
+ };
4602
+ createdAt?: Date | null | undefined;
4603
+ platformUrl?: string | null | undefined;
4604
+ };
4605
+ };
4606
+ } | {
4607
+ type: "LIFECYCLE_COMPLETED";
4608
+ data: {
4609
+ accountId: string;
4610
+ };
4611
+ } | {
4612
+ type: "LIFECYCLE_STARTED";
4613
+ data: {
4614
+ accountId: string;
4615
+ caseId: string;
4616
+ };
4617
+ } | {
4618
+ type: "PUBLISHED";
4619
+ data: {
4620
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4621
+ };
4622
+ } | {
4623
+ type: "REPUBLISHING";
4624
+ data: {
4625
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4626
+ publishingDate?: Date | null | undefined;
4627
+ priceDropPayload?: {
4628
+ value: number;
4629
+ type: "PERCENTAGE" | "ABSOLUTE";
4630
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4631
+ roundStep?: number | null | undefined;
4632
+ maxRounds?: number | null | undefined;
4633
+ } | null | undefined;
4634
+ isTransfer?: boolean | null | undefined;
4635
+ targetAccountId?: string | null | undefined;
4636
+ };
4637
+ } | {
4638
+ type: "REPUBLISHING_RETRY";
4639
+ data: {
4640
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4641
+ attemptNumber: number;
4642
+ maxAttempts: number;
4643
+ previousHistoryId: string;
4644
+ originalFailureDate: Date;
4645
+ fields?: {
4646
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4647
+ autoFixable: boolean;
4648
+ error?: string | null | undefined;
4649
+ }[] | null | undefined;
4650
+ priceDropPayload?: {
4651
+ value: number;
4652
+ type: "PERCENTAGE" | "ABSOLUTE";
4653
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4654
+ roundStep?: number | null | undefined;
4655
+ maxRounds?: number | null | undefined;
4656
+ } | null | undefined;
4657
+ };
4658
+ } | {
4659
+ type: "SCHEDULED";
4660
+ data: {
4661
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4662
+ publishingDate?: Date | null | undefined;
4663
+ };
4664
+ } | {
4665
+ type: "SCHEDULED_RETRY";
4666
+ data: {
4667
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4668
+ attemptNumber: number;
4669
+ maxAttempts: number;
4670
+ previousHistoryId: string;
4671
+ originalFailureDate: Date;
4672
+ fields?: {
4673
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4674
+ autoFixable: boolean;
4675
+ error?: string | null | undefined;
4676
+ }[] | null | undefined;
4677
+ };
4678
+ } | {
4679
+ type: "UPDATED";
4680
+ data: {
4681
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4682
+ };
4683
+ } | {
4684
+ type: "UPDATING";
4685
+ data: {
4686
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4687
+ post?: {
4688
+ status?: string | null | undefined;
4689
+ price?: number | null | undefined;
4690
+ currency?: string | null | undefined;
4691
+ brand?: string | null | undefined;
4692
+ catalog?: string | null | undefined;
4693
+ catalogId?: number | null | undefined;
4694
+ colors?: string[] | null | undefined;
4695
+ colorIds?: number[] | null | undefined;
4696
+ description?: string | null | undefined;
4697
+ measurementLength?: number | null | undefined;
4698
+ measurementWidth?: number | null | undefined;
4699
+ packageSizeId?: number | null | undefined;
4700
+ photoUrls?: string[] | null | undefined;
4701
+ size?: string | null | undefined;
4702
+ sizeId?: number | null | undefined;
4703
+ statusId?: number | null | undefined;
4704
+ title?: string | null | undefined;
4705
+ isDraft?: boolean | null | undefined;
4706
+ isArchived?: boolean | null | undefined;
4707
+ availableQuantity?: number | null | undefined;
4708
+ material?: number[] | null | undefined;
4709
+ manufacturerLabelling?: string | null | undefined;
4710
+ labels?: string[] | null | undefined;
4711
+ } | null | undefined;
4712
+ targetDate?: Date | null | undefined;
4713
+ };
4714
+ } | null | undefined;
4715
+ accountId?: string | null | undefined;
4716
+ requestId?: string | null | undefined;
4717
+ targetDate?: Date | null | undefined;
4718
+ } | null | undefined;
4719
+ platforms?: {
4720
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
4721
+ id: string;
4722
+ updatedAt: Date;
4723
+ createdAt: Date;
4724
+ accountId: string;
4725
+ itemId: string | number;
4726
+ platformId: string;
4727
+ platformUrl: string;
4728
+ platformPrice: number;
4729
+ publishedAt: Date;
4730
+ conversationId?: string | null | undefined;
4731
+ account?: {
4732
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
4733
+ userId: string | number;
4734
+ name: string;
4735
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4736
+ accountId: string;
4737
+ locale?: string | null | undefined;
4738
+ night?: {
4739
+ startsAt: Date;
4740
+ endsAt: Date;
4741
+ } | null | undefined;
4742
+ favoritesMaxDelay?: number | null | undefined;
4743
+ ordersMaxDelay?: number | null | undefined;
4744
+ conversationsMaxDelay?: number | null | undefined;
4745
+ } | null | undefined;
4746
+ viewsCount?: number | null | undefined;
4747
+ favoritesCount?: number | null | undefined;
4748
+ }[] | null | undefined;
4749
+ history?: {
4750
+ 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";
4751
+ id: string;
4752
+ createdAt: Date;
4753
+ itemId: string | number;
4754
+ data?: {
4755
+ type: "ACTION_CANCELED";
4756
+ data: {
4757
+ targetItemHistoryId: string;
4758
+ };
4759
+ } | {
4760
+ type: "BUYER_PAID";
4761
+ data: {
4762
+ soldAccountId: string;
4763
+ soldOrderId: string;
4764
+ soldConversationId?: string | null | undefined;
4765
+ };
4766
+ } | {
4767
+ type: "DELIVERED";
4768
+ data: {
4769
+ soldAccountId: string;
4770
+ soldOrderId: string;
4771
+ soldConversationId?: string | null | undefined;
4772
+ };
4773
+ } | {
4774
+ type: "EMPTY";
4775
+ } | {
4776
+ type: "FAILED_TO_PUBLISH";
4777
+ data: {
4778
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4779
+ accountId?: string | null | undefined;
4780
+ reason?: string | null | undefined;
4781
+ fields?: {
4782
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4783
+ autoFixable: boolean;
4784
+ error?: string | null | undefined;
4785
+ }[] | null | undefined;
4786
+ itemHistoryId?: string | null | undefined;
4787
+ };
4788
+ } | {
4789
+ type: "IMAGE_PROCESSING_DONE";
4790
+ data: {
4791
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4792
+ variations?: {
4793
+ fileId: string;
4794
+ seed: number;
4795
+ phash: string;
4796
+ distanceOriginal: number;
4797
+ originalImageUrl: string;
4798
+ originalPhash: string;
4799
+ }[] | null | undefined;
4800
+ originalPhashes?: string[] | null | undefined;
4801
+ };
4802
+ } | {
4803
+ type: "IMPORTED";
4804
+ data: {
4805
+ post: {
4806
+ platformId: string;
4807
+ post: {
4808
+ status?: string | null | undefined;
4809
+ price?: number | null | undefined;
4810
+ currency?: string | null | undefined;
4811
+ brand?: string | null | undefined;
4812
+ catalog?: string | null | undefined;
4813
+ catalogId?: number | null | undefined;
4814
+ colors?: string[] | null | undefined;
4815
+ colorIds?: number[] | null | undefined;
4816
+ description?: string | null | undefined;
4817
+ measurementLength?: number | null | undefined;
4818
+ measurementWidth?: number | null | undefined;
4819
+ packageSizeId?: number | null | undefined;
4820
+ photoUrls?: string[] | null | undefined;
4821
+ size?: string | null | undefined;
4822
+ sizeId?: number | null | undefined;
4823
+ statusId?: number | null | undefined;
4824
+ title?: string | null | undefined;
4825
+ isDraft?: boolean | null | undefined;
4826
+ isArchived?: boolean | null | undefined;
4827
+ availableQuantity?: number | null | undefined;
4828
+ material?: number[] | null | undefined;
4829
+ manufacturerLabelling?: string | null | undefined;
4830
+ labels?: string[] | null | undefined;
4831
+ };
4832
+ createdAt?: Date | null | undefined;
4833
+ platformUrl?: string | null | undefined;
4834
+ };
4835
+ };
4836
+ } | {
4837
+ type: "LIFECYCLE_COMPLETED";
4838
+ data: {
4839
+ accountId: string;
4840
+ };
4841
+ } | {
4842
+ type: "LIFECYCLE_STARTED";
4843
+ data: {
4844
+ accountId: string;
4845
+ caseId: string;
4846
+ };
4847
+ } | {
4848
+ type: "PUBLISHED";
4849
+ data: {
4850
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4851
+ };
4852
+ } | {
4853
+ type: "REPUBLISHING";
4854
+ data: {
4855
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4856
+ publishingDate?: Date | null | undefined;
4857
+ priceDropPayload?: {
4858
+ value: number;
4859
+ type: "PERCENTAGE" | "ABSOLUTE";
4860
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4861
+ roundStep?: number | null | undefined;
4862
+ maxRounds?: number | null | undefined;
4863
+ } | null | undefined;
4864
+ isTransfer?: boolean | null | undefined;
4865
+ targetAccountId?: string | null | undefined;
4866
+ };
4867
+ } | {
4868
+ type: "REPUBLISHING_RETRY";
4869
+ data: {
4870
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4871
+ attemptNumber: number;
4872
+ maxAttempts: number;
4873
+ previousHistoryId: string;
4874
+ originalFailureDate: Date;
4875
+ fields?: {
4876
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4877
+ autoFixable: boolean;
4878
+ error?: string | null | undefined;
4879
+ }[] | null | undefined;
4880
+ priceDropPayload?: {
4881
+ value: number;
4882
+ type: "PERCENTAGE" | "ABSOLUTE";
4883
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4884
+ roundStep?: number | null | undefined;
4885
+ maxRounds?: number | null | undefined;
4886
+ } | null | undefined;
4887
+ };
4888
+ } | {
4889
+ type: "SCHEDULED";
4890
+ data: {
4891
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4892
+ publishingDate?: Date | null | undefined;
4893
+ };
4894
+ } | {
4895
+ type: "SCHEDULED_RETRY";
4896
+ data: {
4897
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4898
+ attemptNumber: number;
4899
+ maxAttempts: number;
4900
+ previousHistoryId: string;
4901
+ originalFailureDate: Date;
4902
+ fields?: {
4903
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4904
+ autoFixable: boolean;
4905
+ error?: string | null | undefined;
4906
+ }[] | null | undefined;
4907
+ };
4908
+ } | {
4909
+ type: "UPDATED";
4910
+ data: {
4911
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4912
+ };
4913
+ } | {
4914
+ type: "UPDATING";
4915
+ data: {
4916
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4917
+ post?: {
4918
+ status?: string | null | undefined;
4919
+ price?: number | null | undefined;
4920
+ currency?: string | null | undefined;
4921
+ brand?: string | null | undefined;
4922
+ catalog?: string | null | undefined;
4923
+ catalogId?: number | null | undefined;
4924
+ colors?: string[] | null | undefined;
4925
+ colorIds?: number[] | null | undefined;
4926
+ description?: string | null | undefined;
4927
+ measurementLength?: number | null | undefined;
4928
+ measurementWidth?: number | null | undefined;
4929
+ packageSizeId?: number | null | undefined;
4930
+ photoUrls?: string[] | null | undefined;
4931
+ size?: string | null | undefined;
4932
+ sizeId?: number | null | undefined;
4933
+ statusId?: number | null | undefined;
4934
+ title?: string | null | undefined;
4935
+ isDraft?: boolean | null | undefined;
4936
+ isArchived?: boolean | null | undefined;
4937
+ availableQuantity?: number | null | undefined;
4938
+ material?: number[] | null | undefined;
4939
+ manufacturerLabelling?: string | null | undefined;
4940
+ labels?: string[] | null | undefined;
4941
+ } | null | undefined;
4942
+ targetDate?: Date | null | undefined;
4943
+ };
4944
+ } | null | undefined;
4945
+ accountId?: string | null | undefined;
4946
+ requestId?: string | null | undefined;
4947
+ targetDate?: Date | null | undefined;
4948
+ }[] | null | undefined;
4949
+ }>, "many">;
4950
+ }, "strip", z.ZodTypeAny, {
4951
+ items: {
4952
+ userId: string | number;
4953
+ id: string | number;
4954
+ updatedAt: Date;
4955
+ name: string;
4956
+ createdAt: Date;
4957
+ sold: boolean;
4958
+ state?: number | null | undefined;
4959
+ colorIds?: number[] | null | undefined;
4960
+ description?: string | null | undefined;
4961
+ packageSizeId?: number | null | undefined;
4962
+ sizeId?: number | null | undefined;
4963
+ labels?: {
4964
+ itemId: string | number;
4965
+ labelId: string | number;
4966
+ label?: {
4967
+ id: string | number;
4968
+ name: string;
4969
+ createdAt: Date;
4970
+ isUserLabel: boolean;
4971
+ userId?: string | number | null | undefined;
4972
+ itemCount?: number | null | undefined;
4973
+ parentId?: unknown;
4974
+ } | null | undefined;
4975
+ }[] | null | undefined;
4976
+ files?: {
4977
+ itemId: string | number;
4978
+ fileId: string;
4979
+ index?: number | null | undefined;
4980
+ file?: {
4981
+ path: string;
4982
+ userId: string | number;
4983
+ id: string;
4984
+ createdAt: Date;
4985
+ signedUrl: string;
4986
+ } | null | undefined;
4987
+ }[] | null | undefined;
4988
+ fields?: {
4989
+ value: string;
4990
+ itemId: string | number;
4991
+ fieldId: string | number;
4992
+ }[] | null | undefined;
4993
+ sku?: string | null | undefined;
4994
+ categoryId?: number | null | undefined;
4995
+ brandId?: string | number | null | undefined;
4996
+ sex?: string | null | undefined;
4997
+ purchasePrice?: number | null | undefined;
4998
+ purchaseDate?: Date | null | undefined;
4999
+ purchasePlaceId?: string | number | null | undefined;
5000
+ purchased?: boolean | null | undefined;
5001
+ sellingPrice?: number | null | undefined;
5002
+ sellingDate?: Date | null | undefined;
5003
+ sellingPlaceId?: string | number | null | undefined;
5004
+ estimatedPrice?: number | null | undefined;
5005
+ fees?: {
5006
+ value: number;
5007
+ type: string;
5008
+ userId: string | number;
5009
+ id: string | number;
5010
+ updatedAt: Date;
5011
+ name: string;
5012
+ createdAt: Date;
5013
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
5014
+ startDate: Date;
5015
+ active: boolean;
5016
+ description?: string | null | undefined;
5017
+ itemId?: string | number | null | undefined;
5018
+ endDate?: Date | null | undefined;
5019
+ parentFeeId?: string | number | null | undefined;
5020
+ }[] | null | undefined;
5021
+ feesSum?: number | null | undefined;
5022
+ customerId?: string | number | null | undefined;
5023
+ customer?: {
5024
+ userId: string | number;
5025
+ id: string | number;
5026
+ email: string;
5027
+ firstName: string;
5028
+ lastName: string;
5029
+ birthDate: Date;
5030
+ idNumber: string;
5031
+ phone: string;
5032
+ iban: string;
5033
+ bic: string;
5034
+ phoneVerified: boolean;
5035
+ } | null | undefined;
5036
+ customerType?: string | null | undefined;
5037
+ customerPaid?: boolean | null | undefined;
5038
+ customerPaidDate?: Date | null | undefined;
5039
+ customerPaidType?: string | null | undefined;
5040
+ contractId?: string | number | null | undefined;
5041
+ lastHistory?: {
5042
+ 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";
5043
+ id: string;
5044
+ createdAt: Date;
5045
+ itemId: string | number;
5046
+ data?: {
5047
+ type: "ACTION_CANCELED";
5048
+ data: {
5049
+ targetItemHistoryId: string;
5050
+ };
5051
+ } | {
5052
+ type: "BUYER_PAID";
5053
+ data: {
5054
+ soldAccountId: string;
5055
+ soldOrderId: string;
5056
+ soldConversationId?: string | null | undefined;
5057
+ };
5058
+ } | {
5059
+ type: "DELIVERED";
5060
+ data: {
5061
+ soldAccountId: string;
5062
+ soldOrderId: string;
5063
+ soldConversationId?: string | null | undefined;
5064
+ };
5065
+ } | {
5066
+ type: "EMPTY";
5067
+ } | {
5068
+ type: "FAILED_TO_PUBLISH";
5069
+ data: {
5070
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5071
+ accountId?: string | null | undefined;
5072
+ reason?: string | null | undefined;
5073
+ fields?: {
5074
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
5075
+ autoFixable: boolean;
5076
+ error?: string | null | undefined;
5077
+ }[] | null | undefined;
5078
+ itemHistoryId?: string | null | undefined;
5079
+ };
5080
+ } | {
5081
+ type: "IMAGE_PROCESSING_DONE";
5082
+ data: {
5083
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5084
+ variations?: {
2275
5085
  fileId: string;
2276
5086
  seed: number;
2277
5087
  phash: string;
@@ -2387,6 +5197,42 @@ export declare const UserOrdersSchema: z.ZodObject<{
2387
5197
  error?: string | null | undefined;
2388
5198
  }[] | null | undefined;
2389
5199
  };
5200
+ } | {
5201
+ type: "UPDATED";
5202
+ data: {
5203
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5204
+ };
5205
+ } | {
5206
+ type: "UPDATING";
5207
+ data: {
5208
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5209
+ post?: {
5210
+ status?: string | null | undefined;
5211
+ price?: number | null | undefined;
5212
+ currency?: string | null | undefined;
5213
+ brand?: string | null | undefined;
5214
+ catalog?: string | null | undefined;
5215
+ catalogId?: number | null | undefined;
5216
+ colors?: string[] | null | undefined;
5217
+ colorIds?: number[] | null | undefined;
5218
+ description?: string | null | undefined;
5219
+ measurementLength?: number | null | undefined;
5220
+ measurementWidth?: number | null | undefined;
5221
+ packageSizeId?: number | null | undefined;
5222
+ photoUrls?: string[] | null | undefined;
5223
+ size?: string | null | undefined;
5224
+ sizeId?: number | null | undefined;
5225
+ statusId?: number | null | undefined;
5226
+ title?: string | null | undefined;
5227
+ isDraft?: boolean | null | undefined;
5228
+ isArchived?: boolean | null | undefined;
5229
+ availableQuantity?: number | null | undefined;
5230
+ material?: number[] | null | undefined;
5231
+ manufacturerLabelling?: string | null | undefined;
5232
+ labels?: string[] | null | undefined;
5233
+ } | null | undefined;
5234
+ targetDate?: Date | null | undefined;
5235
+ };
2390
5236
  } | null | undefined;
2391
5237
  accountId?: string | null | undefined;
2392
5238
  requestId?: string | null | undefined;
@@ -2395,34 +5241,331 @@ export declare const UserOrdersSchema: z.ZodObject<{
2395
5241
  platforms?: {
2396
5242
  status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2397
5243
  id: string;
2398
- updatedAt: Date;
2399
- createdAt: Date;
2400
- accountId: string;
2401
- itemId: string | number;
2402
- platformId: string;
2403
- platformUrl: string;
2404
- platformPrice: number;
2405
- publishedAt: Date;
2406
- conversationId?: string | null | undefined;
2407
- account?: {
2408
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
5244
+ updatedAt: Date;
5245
+ createdAt: Date;
5246
+ accountId: string;
5247
+ itemId: string | number;
5248
+ platformId: string;
5249
+ platformUrl: string;
5250
+ platformPrice: number;
5251
+ publishedAt: Date;
5252
+ conversationId?: string | null | undefined;
5253
+ account?: {
5254
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
5255
+ userId: string | number;
5256
+ name: string;
5257
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5258
+ accountId: string;
5259
+ locale?: string | null | undefined;
5260
+ night?: {
5261
+ startsAt: Date;
5262
+ endsAt: Date;
5263
+ } | null | undefined;
5264
+ favoritesMaxDelay?: number | null | undefined;
5265
+ ordersMaxDelay?: number | null | undefined;
5266
+ conversationsMaxDelay?: number | null | undefined;
5267
+ } | null | undefined;
5268
+ viewsCount?: number | null | undefined;
5269
+ favoritesCount?: number | null | undefined;
5270
+ }[] | null | undefined;
5271
+ history?: {
5272
+ 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";
5273
+ id: string;
5274
+ createdAt: Date;
5275
+ itemId: string | number;
5276
+ data?: {
5277
+ type: "ACTION_CANCELED";
5278
+ data: {
5279
+ targetItemHistoryId: string;
5280
+ };
5281
+ } | {
5282
+ type: "BUYER_PAID";
5283
+ data: {
5284
+ soldAccountId: string;
5285
+ soldOrderId: string;
5286
+ soldConversationId?: string | null | undefined;
5287
+ };
5288
+ } | {
5289
+ type: "DELIVERED";
5290
+ data: {
5291
+ soldAccountId: string;
5292
+ soldOrderId: string;
5293
+ soldConversationId?: string | null | undefined;
5294
+ };
5295
+ } | {
5296
+ type: "EMPTY";
5297
+ } | {
5298
+ type: "FAILED_TO_PUBLISH";
5299
+ data: {
5300
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5301
+ accountId?: string | null | undefined;
5302
+ reason?: string | null | undefined;
5303
+ fields?: {
5304
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
5305
+ autoFixable: boolean;
5306
+ error?: string | null | undefined;
5307
+ }[] | null | undefined;
5308
+ itemHistoryId?: string | null | undefined;
5309
+ };
5310
+ } | {
5311
+ type: "IMAGE_PROCESSING_DONE";
5312
+ data: {
5313
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5314
+ variations?: {
5315
+ fileId: string;
5316
+ seed: number;
5317
+ phash: string;
5318
+ distanceOriginal: number;
5319
+ originalImageUrl: string;
5320
+ originalPhash: string;
5321
+ }[] | null | undefined;
5322
+ originalPhashes?: string[] | null | undefined;
5323
+ };
5324
+ } | {
5325
+ type: "IMPORTED";
5326
+ data: {
5327
+ post: {
5328
+ platformId: string;
5329
+ post: {
5330
+ status?: string | null | undefined;
5331
+ price?: number | null | undefined;
5332
+ currency?: string | null | undefined;
5333
+ brand?: string | null | undefined;
5334
+ catalog?: string | null | undefined;
5335
+ catalogId?: number | null | undefined;
5336
+ colors?: string[] | null | undefined;
5337
+ colorIds?: number[] | null | undefined;
5338
+ description?: string | null | undefined;
5339
+ measurementLength?: number | null | undefined;
5340
+ measurementWidth?: number | null | undefined;
5341
+ packageSizeId?: number | null | undefined;
5342
+ photoUrls?: string[] | null | undefined;
5343
+ size?: string | null | undefined;
5344
+ sizeId?: number | null | undefined;
5345
+ statusId?: number | null | undefined;
5346
+ title?: string | null | undefined;
5347
+ isDraft?: boolean | null | undefined;
5348
+ isArchived?: boolean | null | undefined;
5349
+ availableQuantity?: number | null | undefined;
5350
+ material?: number[] | null | undefined;
5351
+ manufacturerLabelling?: string | null | undefined;
5352
+ labels?: string[] | null | undefined;
5353
+ };
5354
+ createdAt?: Date | null | undefined;
5355
+ platformUrl?: string | null | undefined;
5356
+ };
5357
+ };
5358
+ } | {
5359
+ type: "LIFECYCLE_COMPLETED";
5360
+ data: {
5361
+ accountId: string;
5362
+ };
5363
+ } | {
5364
+ type: "LIFECYCLE_STARTED";
5365
+ data: {
5366
+ accountId: string;
5367
+ caseId: string;
5368
+ };
5369
+ } | {
5370
+ type: "PUBLISHED";
5371
+ data: {
5372
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5373
+ };
5374
+ } | {
5375
+ type: "REPUBLISHING";
5376
+ data: {
5377
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5378
+ publishingDate?: Date | null | undefined;
5379
+ priceDropPayload?: {
5380
+ value: number;
5381
+ type: "PERCENTAGE" | "ABSOLUTE";
5382
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
5383
+ roundStep?: number | null | undefined;
5384
+ maxRounds?: number | null | undefined;
5385
+ } | null | undefined;
5386
+ isTransfer?: boolean | null | undefined;
5387
+ targetAccountId?: string | null | undefined;
5388
+ };
5389
+ } | {
5390
+ type: "REPUBLISHING_RETRY";
5391
+ data: {
5392
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5393
+ attemptNumber: number;
5394
+ maxAttempts: number;
5395
+ previousHistoryId: string;
5396
+ originalFailureDate: Date;
5397
+ fields?: {
5398
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
5399
+ autoFixable: boolean;
5400
+ error?: string | null | undefined;
5401
+ }[] | null | undefined;
5402
+ priceDropPayload?: {
5403
+ value: number;
5404
+ type: "PERCENTAGE" | "ABSOLUTE";
5405
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
5406
+ roundStep?: number | null | undefined;
5407
+ maxRounds?: number | null | undefined;
5408
+ } | null | undefined;
5409
+ };
5410
+ } | {
5411
+ type: "SCHEDULED";
5412
+ data: {
5413
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5414
+ publishingDate?: Date | null | undefined;
5415
+ };
5416
+ } | {
5417
+ type: "SCHEDULED_RETRY";
5418
+ data: {
5419
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5420
+ attemptNumber: number;
5421
+ maxAttempts: number;
5422
+ previousHistoryId: string;
5423
+ originalFailureDate: Date;
5424
+ fields?: {
5425
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
5426
+ autoFixable: boolean;
5427
+ error?: string | null | undefined;
5428
+ }[] | null | undefined;
5429
+ };
5430
+ } | {
5431
+ type: "UPDATED";
5432
+ data: {
5433
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5434
+ };
5435
+ } | {
5436
+ type: "UPDATING";
5437
+ data: {
5438
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5439
+ post?: {
5440
+ status?: string | null | undefined;
5441
+ price?: number | null | undefined;
5442
+ currency?: string | null | undefined;
5443
+ brand?: string | null | undefined;
5444
+ catalog?: string | null | undefined;
5445
+ catalogId?: number | null | undefined;
5446
+ colors?: string[] | null | undefined;
5447
+ colorIds?: number[] | null | undefined;
5448
+ description?: string | null | undefined;
5449
+ measurementLength?: number | null | undefined;
5450
+ measurementWidth?: number | null | undefined;
5451
+ packageSizeId?: number | null | undefined;
5452
+ photoUrls?: string[] | null | undefined;
5453
+ size?: string | null | undefined;
5454
+ sizeId?: number | null | undefined;
5455
+ statusId?: number | null | undefined;
5456
+ title?: string | null | undefined;
5457
+ isDraft?: boolean | null | undefined;
5458
+ isArchived?: boolean | null | undefined;
5459
+ availableQuantity?: number | null | undefined;
5460
+ material?: number[] | null | undefined;
5461
+ manufacturerLabelling?: string | null | undefined;
5462
+ labels?: string[] | null | undefined;
5463
+ } | null | undefined;
5464
+ targetDate?: Date | null | undefined;
5465
+ };
5466
+ } | null | undefined;
5467
+ accountId?: string | null | undefined;
5468
+ requestId?: string | null | undefined;
5469
+ targetDate?: Date | null | undefined;
5470
+ }[] | null | undefined;
5471
+ }[];
5472
+ order: {
5473
+ type: "SALE" | "PURCHASE";
5474
+ status: "UNKNOWN" | "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "ORDER_RETURNED_TO_SENDER";
5475
+ date: Date;
5476
+ id: string;
5477
+ price: number;
5478
+ accountId: string;
5479
+ isPrepared: boolean;
5480
+ platformOrderId: string;
5481
+ transactionId?: string | null | undefined;
5482
+ conversationId?: string | null | undefined;
5483
+ labels?: {
5484
+ id: string;
5485
+ orderId: string;
5486
+ fileId: string;
5487
+ nonCroppedFileId: string;
5488
+ originalFileId: string;
5489
+ file?: {
5490
+ path: string;
5491
+ userId: string | number;
5492
+ id: string;
5493
+ createdAt: Date;
5494
+ signedUrl: string;
5495
+ } | null | undefined;
5496
+ originalFile?: {
5497
+ path: string;
5498
+ userId: string | number;
5499
+ id: string;
5500
+ createdAt: Date;
5501
+ signedUrl: string;
5502
+ } | null | undefined;
5503
+ nonCroppedFile?: {
5504
+ path: string;
2409
5505
  userId: string | number;
5506
+ id: string;
5507
+ createdAt: Date;
5508
+ signedUrl: string;
5509
+ } | null | undefined;
5510
+ }[] | null | undefined;
5511
+ pickupPoints?: {
5512
+ orderId: string;
5513
+ pickupPointId: string;
5514
+ isQrcode: boolean;
5515
+ code?: string | null | undefined;
5516
+ trackingLink?: string | null | undefined;
5517
+ availableUntil?: Date | null | undefined;
5518
+ pickupPoint?: {
5519
+ id: string;
2410
5520
  name: string;
2411
- platform: "ETSY" | "SHOPIFY" | "VINTED";
5521
+ postalCode: string;
5522
+ city: string;
5523
+ countryCode: string;
2412
5524
  accountId: string;
2413
- locale?: string | null | undefined;
2414
- night?: {
2415
- startsAt: Date;
2416
- endsAt: Date;
5525
+ addressLine1: string;
5526
+ platformPickupPointId: string;
5527
+ addressLine2?: string | null | undefined;
5528
+ latitude?: number | null | undefined;
5529
+ longitude?: number | null | undefined;
5530
+ } | null | undefined;
5531
+ }[] | null | undefined;
5532
+ items?: {
5533
+ orderId: string;
5534
+ itemOnPlatformId: string;
5535
+ itemOnPlatform?: {
5536
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
5537
+ id: string;
5538
+ updatedAt: Date;
5539
+ createdAt: Date;
5540
+ accountId: string;
5541
+ itemId: string | number;
5542
+ platformId: string;
5543
+ platformUrl: string;
5544
+ platformPrice: number;
5545
+ publishedAt: Date;
5546
+ conversationId?: string | null | undefined;
5547
+ account?: {
5548
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
5549
+ userId: string | number;
5550
+ name: string;
5551
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5552
+ accountId: string;
5553
+ locale?: string | null | undefined;
5554
+ night?: {
5555
+ startsAt: Date;
5556
+ endsAt: Date;
5557
+ } | null | undefined;
5558
+ favoritesMaxDelay?: number | null | undefined;
5559
+ ordersMaxDelay?: number | null | undefined;
5560
+ conversationsMaxDelay?: number | null | undefined;
2417
5561
  } | null | undefined;
2418
- favoritesMaxDelay?: number | null | undefined;
2419
- ordersMaxDelay?: number | null | undefined;
2420
- conversationsMaxDelay?: number | null | undefined;
5562
+ viewsCount?: number | null | undefined;
5563
+ favoritesCount?: number | null | undefined;
2421
5564
  } | null | undefined;
2422
- viewsCount?: number | null | undefined;
2423
- favoritesCount?: number | null | undefined;
2424
5565
  }[] | null | undefined;
2425
- }, {
5566
+ };
5567
+ }, {
5568
+ items: {
2426
5569
  userId: string | number;
2427
5570
  id: string | number;
2428
5571
  updatedAt: Date;
@@ -2671,6 +5814,42 @@ export declare const UserOrdersSchema: z.ZodObject<{
2671
5814
  error?: string | null | undefined;
2672
5815
  }[] | null | undefined;
2673
5816
  };
5817
+ } | {
5818
+ type: "UPDATED";
5819
+ data: {
5820
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5821
+ };
5822
+ } | {
5823
+ type: "UPDATING";
5824
+ data: {
5825
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5826
+ post?: {
5827
+ status?: string | null | undefined;
5828
+ price?: number | null | undefined;
5829
+ currency?: string | null | undefined;
5830
+ brand?: string | null | undefined;
5831
+ catalog?: string | null | undefined;
5832
+ catalogId?: number | null | undefined;
5833
+ colors?: string[] | null | undefined;
5834
+ colorIds?: number[] | null | undefined;
5835
+ description?: string | null | undefined;
5836
+ measurementLength?: number | null | undefined;
5837
+ measurementWidth?: number | null | undefined;
5838
+ packageSizeId?: number | null | undefined;
5839
+ photoUrls?: string[] | null | undefined;
5840
+ size?: string | null | undefined;
5841
+ sizeId?: number | null | undefined;
5842
+ statusId?: number | null | undefined;
5843
+ title?: string | null | undefined;
5844
+ isDraft?: boolean | null | undefined;
5845
+ isArchived?: boolean | null | undefined;
5846
+ availableQuantity?: number | null | undefined;
5847
+ material?: number[] | null | undefined;
5848
+ manufacturerLabelling?: string | null | undefined;
5849
+ labels?: string[] | null | undefined;
5850
+ } | null | undefined;
5851
+ targetDate?: Date | null | undefined;
5852
+ };
2674
5853
  } | null | undefined;
2675
5854
  accountId?: string | null | undefined;
2676
5855
  requestId?: string | null | undefined;
@@ -2706,99 +5885,7 @@ export declare const UserOrdersSchema: z.ZodObject<{
2706
5885
  viewsCount?: number | null | undefined;
2707
5886
  favoritesCount?: number | null | undefined;
2708
5887
  }[] | null | undefined;
2709
- }>, "many">;
2710
- }, "strip", z.ZodTypeAny, {
2711
- items: {
2712
- userId: string | number;
2713
- id: string | number;
2714
- updatedAt: Date;
2715
- name: string;
2716
- createdAt: Date;
2717
- sold: boolean;
2718
- state?: number | null | undefined;
2719
- colorIds?: number[] | null | undefined;
2720
- description?: string | null | undefined;
2721
- packageSizeId?: number | null | undefined;
2722
- sizeId?: number | null | undefined;
2723
- labels?: {
2724
- itemId: string | number;
2725
- labelId: string | number;
2726
- label?: {
2727
- id: string | number;
2728
- name: string;
2729
- createdAt: Date;
2730
- isUserLabel: boolean;
2731
- userId?: string | number | null | undefined;
2732
- itemCount?: number | null | undefined;
2733
- parentId?: unknown;
2734
- } | null | undefined;
2735
- }[] | null | undefined;
2736
- files?: {
2737
- itemId: string | number;
2738
- fileId: string;
2739
- index?: number | null | undefined;
2740
- file?: {
2741
- path: string;
2742
- userId: string | number;
2743
- id: string;
2744
- createdAt: Date;
2745
- signedUrl: string;
2746
- } | null | undefined;
2747
- }[] | null | undefined;
2748
- fields?: {
2749
- value: string;
2750
- itemId: string | number;
2751
- fieldId: string | number;
2752
- }[] | null | undefined;
2753
- sku?: string | null | undefined;
2754
- categoryId?: number | null | undefined;
2755
- brandId?: string | number | null | undefined;
2756
- sex?: string | null | undefined;
2757
- purchasePrice?: number | null | undefined;
2758
- purchaseDate?: Date | null | undefined;
2759
- purchasePlaceId?: string | number | null | undefined;
2760
- purchased?: boolean | null | undefined;
2761
- sellingPrice?: number | null | undefined;
2762
- sellingDate?: Date | null | undefined;
2763
- sellingPlaceId?: string | number | null | undefined;
2764
- estimatedPrice?: number | null | undefined;
2765
- fees?: {
2766
- value: number;
2767
- type: string;
2768
- userId: string | number;
2769
- id: string | number;
2770
- updatedAt: Date;
2771
- name: string;
2772
- createdAt: Date;
2773
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
2774
- startDate: Date;
2775
- active: boolean;
2776
- description?: string | null | undefined;
2777
- itemId?: string | number | null | undefined;
2778
- endDate?: Date | null | undefined;
2779
- parentFeeId?: string | number | null | undefined;
2780
- }[] | null | undefined;
2781
- feesSum?: number | null | undefined;
2782
- customerId?: string | number | null | undefined;
2783
- customer?: {
2784
- userId: string | number;
2785
- id: string | number;
2786
- email: string;
2787
- firstName: string;
2788
- lastName: string;
2789
- birthDate: Date;
2790
- idNumber: string;
2791
- phone: string;
2792
- iban: string;
2793
- bic: string;
2794
- phoneVerified: boolean;
2795
- } | null | undefined;
2796
- customerType?: string | null | undefined;
2797
- customerPaid?: boolean | null | undefined;
2798
- customerPaidDate?: Date | null | undefined;
2799
- customerPaidType?: string | null | undefined;
2800
- contractId?: string | number | null | undefined;
2801
- lastHistory?: {
5888
+ history?: {
2802
5889
  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";
2803
5890
  id: string;
2804
5891
  createdAt: Date;
@@ -2948,49 +6035,55 @@ export declare const UserOrdersSchema: z.ZodObject<{
2948
6035
  data: {
2949
6036
  platform: "ETSY" | "SHOPIFY" | "VINTED";
2950
6037
  attemptNumber: number;
2951
- maxAttempts: number;
2952
- previousHistoryId: string;
2953
- originalFailureDate: Date;
2954
- fields?: {
2955
- field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2956
- autoFixable: boolean;
2957
- error?: string | null | undefined;
2958
- }[] | null | undefined;
2959
- };
2960
- } | null | undefined;
2961
- accountId?: string | null | undefined;
2962
- requestId?: string | null | undefined;
2963
- targetDate?: Date | null | undefined;
2964
- } | null | undefined;
2965
- platforms?: {
2966
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2967
- id: string;
2968
- updatedAt: Date;
2969
- createdAt: Date;
2970
- accountId: string;
2971
- itemId: string | number;
2972
- platformId: string;
2973
- platformUrl: string;
2974
- platformPrice: number;
2975
- publishedAt: Date;
2976
- conversationId?: string | null | undefined;
2977
- account?: {
2978
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
2979
- userId: string | number;
2980
- name: string;
2981
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2982
- accountId: string;
2983
- locale?: string | null | undefined;
2984
- night?: {
2985
- startsAt: Date;
2986
- endsAt: Date;
2987
- } | null | undefined;
2988
- favoritesMaxDelay?: number | null | undefined;
2989
- ordersMaxDelay?: number | null | undefined;
2990
- conversationsMaxDelay?: number | null | undefined;
6038
+ maxAttempts: number;
6039
+ previousHistoryId: string;
6040
+ originalFailureDate: Date;
6041
+ fields?: {
6042
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
6043
+ autoFixable: boolean;
6044
+ error?: string | null | undefined;
6045
+ }[] | null | undefined;
6046
+ };
6047
+ } | {
6048
+ type: "UPDATED";
6049
+ data: {
6050
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
6051
+ };
6052
+ } | {
6053
+ type: "UPDATING";
6054
+ data: {
6055
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
6056
+ post?: {
6057
+ status?: string | null | undefined;
6058
+ price?: number | null | undefined;
6059
+ currency?: string | null | undefined;
6060
+ brand?: string | null | undefined;
6061
+ catalog?: string | null | undefined;
6062
+ catalogId?: number | null | undefined;
6063
+ colors?: string[] | null | undefined;
6064
+ colorIds?: number[] | null | undefined;
6065
+ description?: string | null | undefined;
6066
+ measurementLength?: number | null | undefined;
6067
+ measurementWidth?: number | null | undefined;
6068
+ packageSizeId?: number | null | undefined;
6069
+ photoUrls?: string[] | null | undefined;
6070
+ size?: string | null | undefined;
6071
+ sizeId?: number | null | undefined;
6072
+ statusId?: number | null | undefined;
6073
+ title?: string | null | undefined;
6074
+ isDraft?: boolean | null | undefined;
6075
+ isArchived?: boolean | null | undefined;
6076
+ availableQuantity?: number | null | undefined;
6077
+ material?: number[] | null | undefined;
6078
+ manufacturerLabelling?: string | null | undefined;
6079
+ labels?: string[] | null | undefined;
6080
+ } | null | undefined;
6081
+ targetDate?: Date | null | undefined;
6082
+ };
2991
6083
  } | null | undefined;
2992
- viewsCount?: number | null | undefined;
2993
- favoritesCount?: number | null | undefined;
6084
+ accountId?: string | null | undefined;
6085
+ requestId?: string | null | undefined;
6086
+ targetDate?: Date | null | undefined;
2994
6087
  }[] | null | undefined;
2995
6088
  }[];
2996
6089
  order: {
@@ -3088,7 +6181,12 @@ export declare const UserOrdersSchema: z.ZodObject<{
3088
6181
  } | null | undefined;
3089
6182
  }[] | null | undefined;
3090
6183
  };
3091
- }, {
6184
+ }>, "many">;
6185
+ currentPage: z.ZodNumber;
6186
+ totalPages: z.ZodNumber;
6187
+ }, "strip", z.ZodTypeAny, {
6188
+ count: number;
6189
+ rows: {
3092
6190
  items: {
3093
6191
  userId: string | number;
3094
6192
  id: string | number;
@@ -3338,234 +6436,78 @@ export declare const UserOrdersSchema: z.ZodObject<{
3338
6436
  error?: string | null | undefined;
3339
6437
  }[] | null | undefined;
3340
6438
  };
6439
+ } | {
6440
+ type: "UPDATED";
6441
+ data: {
6442
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
6443
+ };
6444
+ } | {
6445
+ type: "UPDATING";
6446
+ data: {
6447
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
6448
+ post?: {
6449
+ status?: string | null | undefined;
6450
+ price?: number | null | undefined;
6451
+ currency?: string | null | undefined;
6452
+ brand?: string | null | undefined;
6453
+ catalog?: string | null | undefined;
6454
+ catalogId?: number | null | undefined;
6455
+ colors?: string[] | null | undefined;
6456
+ colorIds?: number[] | null | undefined;
6457
+ description?: string | null | undefined;
6458
+ measurementLength?: number | null | undefined;
6459
+ measurementWidth?: number | null | undefined;
6460
+ packageSizeId?: number | null | undefined;
6461
+ photoUrls?: string[] | null | undefined;
6462
+ size?: string | null | undefined;
6463
+ sizeId?: number | null | undefined;
6464
+ statusId?: number | null | undefined;
6465
+ title?: string | null | undefined;
6466
+ isDraft?: boolean | null | undefined;
6467
+ isArchived?: boolean | null | undefined;
6468
+ availableQuantity?: number | null | undefined;
6469
+ material?: number[] | null | undefined;
6470
+ manufacturerLabelling?: string | null | undefined;
6471
+ labels?: string[] | null | undefined;
6472
+ } | null | undefined;
6473
+ targetDate?: Date | null | undefined;
6474
+ };
3341
6475
  } | null | undefined;
3342
6476
  accountId?: string | null | undefined;
3343
6477
  requestId?: string | null | undefined;
3344
6478
  targetDate?: Date | null | undefined;
3345
6479
  } | null | undefined;
3346
- platforms?: {
3347
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
3348
- id: string;
3349
- updatedAt: Date;
3350
- createdAt: Date;
3351
- accountId: string;
3352
- itemId: string | number;
3353
- platformId: string;
3354
- platformUrl: string;
3355
- platformPrice: number;
3356
- publishedAt: Date;
3357
- conversationId?: string | null | undefined;
3358
- account?: {
3359
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
3360
- userId: string | number;
3361
- name: string;
3362
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3363
- accountId: string;
3364
- locale?: string | null | undefined;
3365
- night?: {
3366
- startsAt: Date;
3367
- endsAt: Date;
3368
- } | null | undefined;
3369
- favoritesMaxDelay?: number | null | undefined;
3370
- ordersMaxDelay?: number | null | undefined;
3371
- conversationsMaxDelay?: number | null | undefined;
3372
- } | null | undefined;
3373
- viewsCount?: number | null | undefined;
3374
- favoritesCount?: number | null | undefined;
3375
- }[] | null | undefined;
3376
- }[];
3377
- order: {
3378
- type: "SALE" | "PURCHASE";
3379
- status: "UNKNOWN" | "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "ORDER_RETURNED_TO_SENDER";
3380
- date: Date;
3381
- id: string;
3382
- price: number;
3383
- accountId: string;
3384
- isPrepared: boolean;
3385
- platformOrderId: string;
3386
- transactionId?: string | null | undefined;
3387
- conversationId?: string | null | undefined;
3388
- labels?: {
3389
- id: string;
3390
- orderId: string;
3391
- fileId: string;
3392
- nonCroppedFileId: string;
3393
- originalFileId: string;
3394
- file?: {
3395
- path: string;
3396
- userId: string | number;
3397
- id: string;
3398
- createdAt: Date;
3399
- signedUrl: string;
3400
- } | null | undefined;
3401
- originalFile?: {
3402
- path: string;
3403
- userId: string | number;
3404
- id: string;
3405
- createdAt: Date;
3406
- signedUrl: string;
3407
- } | null | undefined;
3408
- nonCroppedFile?: {
3409
- path: string;
3410
- userId: string | number;
3411
- id: string;
3412
- createdAt: Date;
3413
- signedUrl: string;
3414
- } | null | undefined;
3415
- }[] | null | undefined;
3416
- pickupPoints?: {
3417
- orderId: string;
3418
- pickupPointId: string;
3419
- isQrcode: boolean;
3420
- code?: string | null | undefined;
3421
- trackingLink?: string | null | undefined;
3422
- availableUntil?: Date | null | undefined;
3423
- pickupPoint?: {
3424
- id: string;
3425
- name: string;
3426
- postalCode: string;
3427
- city: string;
3428
- countryCode: string;
3429
- accountId: string;
3430
- addressLine1: string;
3431
- platformPickupPointId: string;
3432
- addressLine2?: string | null | undefined;
3433
- latitude?: number | null | undefined;
3434
- longitude?: number | null | undefined;
3435
- } | null | undefined;
3436
- }[] | null | undefined;
3437
- items?: {
3438
- orderId: string;
3439
- itemOnPlatformId: string;
3440
- itemOnPlatform?: {
3441
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
3442
- id: string;
3443
- updatedAt: Date;
3444
- createdAt: Date;
3445
- accountId: string;
3446
- itemId: string | number;
3447
- platformId: string;
3448
- platformUrl: string;
3449
- platformPrice: number;
3450
- publishedAt: Date;
3451
- conversationId?: string | null | undefined;
3452
- account?: {
3453
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
3454
- userId: string | number;
3455
- name: string;
3456
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3457
- accountId: string;
3458
- locale?: string | null | undefined;
3459
- night?: {
3460
- startsAt: Date;
3461
- endsAt: Date;
3462
- } | null | undefined;
3463
- favoritesMaxDelay?: number | null | undefined;
3464
- ordersMaxDelay?: number | null | undefined;
3465
- conversationsMaxDelay?: number | null | undefined;
3466
- } | null | undefined;
3467
- viewsCount?: number | null | undefined;
3468
- favoritesCount?: number | null | undefined;
3469
- } | null | undefined;
3470
- }[] | null | undefined;
3471
- };
3472
- }>, "many">;
3473
- currentPage: z.ZodNumber;
3474
- totalPages: z.ZodNumber;
3475
- }, "strip", z.ZodTypeAny, {
3476
- count: number;
3477
- rows: {
3478
- items: {
3479
- userId: string | number;
3480
- id: string | number;
3481
- updatedAt: Date;
3482
- name: string;
3483
- createdAt: Date;
3484
- sold: boolean;
3485
- state?: number | null | undefined;
3486
- colorIds?: number[] | null | undefined;
3487
- description?: string | null | undefined;
3488
- packageSizeId?: number | null | undefined;
3489
- sizeId?: number | null | undefined;
3490
- labels?: {
3491
- itemId: string | number;
3492
- labelId: string | number;
3493
- label?: {
3494
- id: string | number;
3495
- name: string;
3496
- createdAt: Date;
3497
- isUserLabel: boolean;
3498
- userId?: string | number | null | undefined;
3499
- itemCount?: number | null | undefined;
3500
- parentId?: unknown;
3501
- } | null | undefined;
3502
- }[] | null | undefined;
3503
- files?: {
3504
- itemId: string | number;
3505
- fileId: string;
3506
- index?: number | null | undefined;
3507
- file?: {
3508
- path: string;
3509
- userId: string | number;
3510
- id: string;
3511
- createdAt: Date;
3512
- signedUrl: string;
3513
- } | null | undefined;
3514
- }[] | null | undefined;
3515
- fields?: {
3516
- value: string;
3517
- itemId: string | number;
3518
- fieldId: string | number;
3519
- }[] | null | undefined;
3520
- sku?: string | null | undefined;
3521
- categoryId?: number | null | undefined;
3522
- brandId?: string | number | null | undefined;
3523
- sex?: string | null | undefined;
3524
- purchasePrice?: number | null | undefined;
3525
- purchaseDate?: Date | null | undefined;
3526
- purchasePlaceId?: string | number | null | undefined;
3527
- purchased?: boolean | null | undefined;
3528
- sellingPrice?: number | null | undefined;
3529
- sellingDate?: Date | null | undefined;
3530
- sellingPlaceId?: string | number | null | undefined;
3531
- estimatedPrice?: number | null | undefined;
3532
- fees?: {
3533
- value: number;
3534
- type: string;
3535
- userId: string | number;
3536
- id: string | number;
3537
- updatedAt: Date;
3538
- name: string;
3539
- createdAt: Date;
3540
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
3541
- startDate: Date;
3542
- active: boolean;
3543
- description?: string | null | undefined;
3544
- itemId?: string | number | null | undefined;
3545
- endDate?: Date | null | undefined;
3546
- parentFeeId?: string | number | null | undefined;
3547
- }[] | null | undefined;
3548
- feesSum?: number | null | undefined;
3549
- customerId?: string | number | null | undefined;
3550
- customer?: {
3551
- userId: string | number;
3552
- id: string | number;
3553
- email: string;
3554
- firstName: string;
3555
- lastName: string;
3556
- birthDate: Date;
3557
- idNumber: string;
3558
- phone: string;
3559
- iban: string;
3560
- bic: string;
3561
- phoneVerified: boolean;
3562
- } | null | undefined;
3563
- customerType?: string | null | undefined;
3564
- customerPaid?: boolean | null | undefined;
3565
- customerPaidDate?: Date | null | undefined;
3566
- customerPaidType?: string | null | undefined;
3567
- contractId?: string | number | null | undefined;
3568
- lastHistory?: {
6480
+ platforms?: {
6481
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
6482
+ id: string;
6483
+ updatedAt: Date;
6484
+ createdAt: Date;
6485
+ accountId: string;
6486
+ itemId: string | number;
6487
+ platformId: string;
6488
+ platformUrl: string;
6489
+ platformPrice: number;
6490
+ publishedAt: Date;
6491
+ conversationId?: string | null | undefined;
6492
+ account?: {
6493
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
6494
+ userId: string | number;
6495
+ name: string;
6496
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
6497
+ accountId: string;
6498
+ locale?: string | null | undefined;
6499
+ night?: {
6500
+ startsAt: Date;
6501
+ endsAt: Date;
6502
+ } | null | undefined;
6503
+ favoritesMaxDelay?: number | null | undefined;
6504
+ ordersMaxDelay?: number | null | undefined;
6505
+ conversationsMaxDelay?: number | null | undefined;
6506
+ } | null | undefined;
6507
+ viewsCount?: number | null | undefined;
6508
+ favoritesCount?: number | null | undefined;
6509
+ }[] | null | undefined;
6510
+ history?: {
3569
6511
  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";
3570
6512
  id: string;
3571
6513
  createdAt: Date;
@@ -3724,40 +6666,46 @@ export declare const UserOrdersSchema: z.ZodObject<{
3724
6666
  error?: string | null | undefined;
3725
6667
  }[] | null | undefined;
3726
6668
  };
6669
+ } | {
6670
+ type: "UPDATED";
6671
+ data: {
6672
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
6673
+ };
6674
+ } | {
6675
+ type: "UPDATING";
6676
+ data: {
6677
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
6678
+ post?: {
6679
+ status?: string | null | undefined;
6680
+ price?: number | null | undefined;
6681
+ currency?: string | null | undefined;
6682
+ brand?: string | null | undefined;
6683
+ catalog?: string | null | undefined;
6684
+ catalogId?: number | null | undefined;
6685
+ colors?: string[] | null | undefined;
6686
+ colorIds?: number[] | null | undefined;
6687
+ description?: string | null | undefined;
6688
+ measurementLength?: number | null | undefined;
6689
+ measurementWidth?: number | null | undefined;
6690
+ packageSizeId?: number | null | undefined;
6691
+ photoUrls?: string[] | null | undefined;
6692
+ size?: string | null | undefined;
6693
+ sizeId?: number | null | undefined;
6694
+ statusId?: number | null | undefined;
6695
+ title?: string | null | undefined;
6696
+ isDraft?: boolean | null | undefined;
6697
+ isArchived?: boolean | null | undefined;
6698
+ availableQuantity?: number | null | undefined;
6699
+ material?: number[] | null | undefined;
6700
+ manufacturerLabelling?: string | null | undefined;
6701
+ labels?: string[] | null | undefined;
6702
+ } | null | undefined;
6703
+ targetDate?: Date | null | undefined;
6704
+ };
3727
6705
  } | null | undefined;
3728
6706
  accountId?: string | null | undefined;
3729
6707
  requestId?: string | null | undefined;
3730
6708
  targetDate?: Date | null | undefined;
3731
- } | null | undefined;
3732
- platforms?: {
3733
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
3734
- id: string;
3735
- updatedAt: Date;
3736
- createdAt: Date;
3737
- accountId: string;
3738
- itemId: string | number;
3739
- platformId: string;
3740
- platformUrl: string;
3741
- platformPrice: number;
3742
- publishedAt: Date;
3743
- conversationId?: string | null | undefined;
3744
- account?: {
3745
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
3746
- userId: string | number;
3747
- name: string;
3748
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3749
- accountId: string;
3750
- locale?: string | null | undefined;
3751
- night?: {
3752
- startsAt: Date;
3753
- endsAt: Date;
3754
- } | null | undefined;
3755
- favoritesMaxDelay?: number | null | undefined;
3756
- ordersMaxDelay?: number | null | undefined;
3757
- conversationsMaxDelay?: number | null | undefined;
3758
- } | null | undefined;
3759
- viewsCount?: number | null | undefined;
3760
- favoritesCount?: number | null | undefined;
3761
6709
  }[] | null | undefined;
3762
6710
  }[];
3763
6711
  order: {
@@ -4111,6 +7059,42 @@ export declare const UserOrdersSchema: z.ZodObject<{
4111
7059
  error?: string | null | undefined;
4112
7060
  }[] | null | undefined;
4113
7061
  };
7062
+ } | {
7063
+ type: "UPDATED";
7064
+ data: {
7065
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
7066
+ };
7067
+ } | {
7068
+ type: "UPDATING";
7069
+ data: {
7070
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
7071
+ post?: {
7072
+ status?: string | null | undefined;
7073
+ price?: number | null | undefined;
7074
+ currency?: string | null | undefined;
7075
+ brand?: string | null | undefined;
7076
+ catalog?: string | null | undefined;
7077
+ catalogId?: number | null | undefined;
7078
+ colors?: string[] | null | undefined;
7079
+ colorIds?: number[] | null | undefined;
7080
+ description?: string | null | undefined;
7081
+ measurementLength?: number | null | undefined;
7082
+ measurementWidth?: number | null | undefined;
7083
+ packageSizeId?: number | null | undefined;
7084
+ photoUrls?: string[] | null | undefined;
7085
+ size?: string | null | undefined;
7086
+ sizeId?: number | null | undefined;
7087
+ statusId?: number | null | undefined;
7088
+ title?: string | null | undefined;
7089
+ isDraft?: boolean | null | undefined;
7090
+ isArchived?: boolean | null | undefined;
7091
+ availableQuantity?: number | null | undefined;
7092
+ material?: number[] | null | undefined;
7093
+ manufacturerLabelling?: string | null | undefined;
7094
+ labels?: string[] | null | undefined;
7095
+ } | null | undefined;
7096
+ targetDate?: Date | null | undefined;
7097
+ };
4114
7098
  } | null | undefined;
4115
7099
  accountId?: string | null | undefined;
4116
7100
  requestId?: string | null | undefined;
@@ -4146,6 +7130,206 @@ export declare const UserOrdersSchema: z.ZodObject<{
4146
7130
  viewsCount?: number | null | undefined;
4147
7131
  favoritesCount?: number | null | undefined;
4148
7132
  }[] | null | undefined;
7133
+ history?: {
7134
+ 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";
7135
+ id: string;
7136
+ createdAt: Date;
7137
+ itemId: string | number;
7138
+ data?: {
7139
+ type: "ACTION_CANCELED";
7140
+ data: {
7141
+ targetItemHistoryId: string;
7142
+ };
7143
+ } | {
7144
+ type: "BUYER_PAID";
7145
+ data: {
7146
+ soldAccountId: string;
7147
+ soldOrderId: string;
7148
+ soldConversationId?: string | null | undefined;
7149
+ };
7150
+ } | {
7151
+ type: "DELIVERED";
7152
+ data: {
7153
+ soldAccountId: string;
7154
+ soldOrderId: string;
7155
+ soldConversationId?: string | null | undefined;
7156
+ };
7157
+ } | {
7158
+ type: "EMPTY";
7159
+ } | {
7160
+ type: "FAILED_TO_PUBLISH";
7161
+ data: {
7162
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
7163
+ accountId?: string | null | undefined;
7164
+ reason?: string | null | undefined;
7165
+ fields?: {
7166
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
7167
+ autoFixable: boolean;
7168
+ error?: string | null | undefined;
7169
+ }[] | null | undefined;
7170
+ itemHistoryId?: string | null | undefined;
7171
+ };
7172
+ } | {
7173
+ type: "IMAGE_PROCESSING_DONE";
7174
+ data: {
7175
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
7176
+ variations?: {
7177
+ fileId: string;
7178
+ seed: number;
7179
+ phash: string;
7180
+ distanceOriginal: number;
7181
+ originalImageUrl: string;
7182
+ originalPhash: string;
7183
+ }[] | null | undefined;
7184
+ originalPhashes?: string[] | null | undefined;
7185
+ };
7186
+ } | {
7187
+ type: "IMPORTED";
7188
+ data: {
7189
+ post: {
7190
+ platformId: string;
7191
+ post: {
7192
+ status?: string | null | undefined;
7193
+ price?: number | null | undefined;
7194
+ currency?: string | null | undefined;
7195
+ brand?: string | null | undefined;
7196
+ catalog?: string | null | undefined;
7197
+ catalogId?: number | null | undefined;
7198
+ colors?: string[] | null | undefined;
7199
+ colorIds?: number[] | null | undefined;
7200
+ description?: string | null | undefined;
7201
+ measurementLength?: number | null | undefined;
7202
+ measurementWidth?: number | null | undefined;
7203
+ packageSizeId?: number | null | undefined;
7204
+ photoUrls?: string[] | null | undefined;
7205
+ size?: string | null | undefined;
7206
+ sizeId?: number | null | undefined;
7207
+ statusId?: number | null | undefined;
7208
+ title?: string | null | undefined;
7209
+ isDraft?: boolean | null | undefined;
7210
+ isArchived?: boolean | null | undefined;
7211
+ availableQuantity?: number | null | undefined;
7212
+ material?: number[] | null | undefined;
7213
+ manufacturerLabelling?: string | null | undefined;
7214
+ labels?: string[] | null | undefined;
7215
+ };
7216
+ createdAt?: Date | null | undefined;
7217
+ platformUrl?: string | null | undefined;
7218
+ };
7219
+ };
7220
+ } | {
7221
+ type: "LIFECYCLE_COMPLETED";
7222
+ data: {
7223
+ accountId: string;
7224
+ };
7225
+ } | {
7226
+ type: "LIFECYCLE_STARTED";
7227
+ data: {
7228
+ accountId: string;
7229
+ caseId: string;
7230
+ };
7231
+ } | {
7232
+ type: "PUBLISHED";
7233
+ data: {
7234
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
7235
+ };
7236
+ } | {
7237
+ type: "REPUBLISHING";
7238
+ data: {
7239
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
7240
+ publishingDate?: Date | null | undefined;
7241
+ priceDropPayload?: {
7242
+ value: number;
7243
+ type: "PERCENTAGE" | "ABSOLUTE";
7244
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
7245
+ roundStep?: number | null | undefined;
7246
+ maxRounds?: number | null | undefined;
7247
+ } | null | undefined;
7248
+ isTransfer?: boolean | null | undefined;
7249
+ targetAccountId?: string | null | undefined;
7250
+ };
7251
+ } | {
7252
+ type: "REPUBLISHING_RETRY";
7253
+ data: {
7254
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
7255
+ attemptNumber: number;
7256
+ maxAttempts: number;
7257
+ previousHistoryId: string;
7258
+ originalFailureDate: Date;
7259
+ fields?: {
7260
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
7261
+ autoFixable: boolean;
7262
+ error?: string | null | undefined;
7263
+ }[] | null | undefined;
7264
+ priceDropPayload?: {
7265
+ value: number;
7266
+ type: "PERCENTAGE" | "ABSOLUTE";
7267
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
7268
+ roundStep?: number | null | undefined;
7269
+ maxRounds?: number | null | undefined;
7270
+ } | null | undefined;
7271
+ };
7272
+ } | {
7273
+ type: "SCHEDULED";
7274
+ data: {
7275
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
7276
+ publishingDate?: Date | null | undefined;
7277
+ };
7278
+ } | {
7279
+ type: "SCHEDULED_RETRY";
7280
+ data: {
7281
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
7282
+ attemptNumber: number;
7283
+ maxAttempts: number;
7284
+ previousHistoryId: string;
7285
+ originalFailureDate: Date;
7286
+ fields?: {
7287
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
7288
+ autoFixable: boolean;
7289
+ error?: string | null | undefined;
7290
+ }[] | null | undefined;
7291
+ };
7292
+ } | {
7293
+ type: "UPDATED";
7294
+ data: {
7295
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
7296
+ };
7297
+ } | {
7298
+ type: "UPDATING";
7299
+ data: {
7300
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
7301
+ post?: {
7302
+ status?: string | null | undefined;
7303
+ price?: number | null | undefined;
7304
+ currency?: string | null | undefined;
7305
+ brand?: string | null | undefined;
7306
+ catalog?: string | null | undefined;
7307
+ catalogId?: number | null | undefined;
7308
+ colors?: string[] | null | undefined;
7309
+ colorIds?: number[] | null | undefined;
7310
+ description?: string | null | undefined;
7311
+ measurementLength?: number | null | undefined;
7312
+ measurementWidth?: number | null | undefined;
7313
+ packageSizeId?: number | null | undefined;
7314
+ photoUrls?: string[] | null | undefined;
7315
+ size?: string | null | undefined;
7316
+ sizeId?: number | null | undefined;
7317
+ statusId?: number | null | undefined;
7318
+ title?: string | null | undefined;
7319
+ isDraft?: boolean | null | undefined;
7320
+ isArchived?: boolean | null | undefined;
7321
+ availableQuantity?: number | null | undefined;
7322
+ material?: number[] | null | undefined;
7323
+ manufacturerLabelling?: string | null | undefined;
7324
+ labels?: string[] | null | undefined;
7325
+ } | null | undefined;
7326
+ targetDate?: Date | null | undefined;
7327
+ };
7328
+ } | null | undefined;
7329
+ accountId?: string | null | undefined;
7330
+ requestId?: string | null | undefined;
7331
+ targetDate?: Date | null | undefined;
7332
+ }[] | null | undefined;
4149
7333
  }[];
4150
7334
  order: {
4151
7335
  type: "SALE" | "PURCHASE";