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
@@ -1679,6 +1679,222 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1679
1679
  error?: string | null | undefined;
1680
1680
  }[] | null | undefined;
1681
1681
  };
1682
+ }>, z.ZodObject<{
1683
+ data: z.ZodObject<{
1684
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1685
+ }, "strip", z.ZodTypeAny, {
1686
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1687
+ }, {
1688
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1689
+ }>;
1690
+ type: z.ZodLiteral<"UPDATED">;
1691
+ }, "strip", z.ZodTypeAny, {
1692
+ type: "UPDATED";
1693
+ data: {
1694
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1695
+ };
1696
+ }, {
1697
+ type: "UPDATED";
1698
+ data: {
1699
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1700
+ };
1701
+ }>, z.ZodObject<{
1702
+ data: z.ZodObject<{
1703
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1704
+ post: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1705
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1706
+ catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1707
+ catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1708
+ colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1709
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1710
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1711
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1712
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1713
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1714
+ photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1715
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1716
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1717
+ size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1718
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1719
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1720
+ statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1721
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1722
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1723
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1724
+ availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1725
+ material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1726
+ manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1727
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1728
+ }, "strip", z.ZodTypeAny, {
1729
+ status?: string | null | undefined;
1730
+ price?: number | null | undefined;
1731
+ currency?: string | null | undefined;
1732
+ brand?: string | null | undefined;
1733
+ catalog?: string | null | undefined;
1734
+ catalogId?: number | null | undefined;
1735
+ colors?: string[] | null | undefined;
1736
+ colorIds?: number[] | null | undefined;
1737
+ description?: string | null | undefined;
1738
+ measurementLength?: number | null | undefined;
1739
+ measurementWidth?: number | null | undefined;
1740
+ packageSizeId?: number | null | undefined;
1741
+ photoUrls?: string[] | null | undefined;
1742
+ size?: string | null | undefined;
1743
+ sizeId?: number | null | undefined;
1744
+ statusId?: number | null | undefined;
1745
+ title?: string | null | undefined;
1746
+ isDraft?: boolean | null | undefined;
1747
+ isArchived?: boolean | null | undefined;
1748
+ availableQuantity?: number | null | undefined;
1749
+ material?: number[] | null | undefined;
1750
+ manufacturerLabelling?: string | null | undefined;
1751
+ labels?: string[] | null | undefined;
1752
+ }, {
1753
+ status?: string | null | undefined;
1754
+ price?: number | null | undefined;
1755
+ currency?: string | null | undefined;
1756
+ brand?: string | null | undefined;
1757
+ catalog?: string | null | undefined;
1758
+ catalogId?: number | null | undefined;
1759
+ colors?: string[] | null | undefined;
1760
+ colorIds?: number[] | null | undefined;
1761
+ description?: string | null | undefined;
1762
+ measurementLength?: number | null | undefined;
1763
+ measurementWidth?: number | null | undefined;
1764
+ packageSizeId?: number | null | undefined;
1765
+ photoUrls?: string[] | null | undefined;
1766
+ size?: string | null | undefined;
1767
+ sizeId?: number | null | undefined;
1768
+ statusId?: number | null | undefined;
1769
+ title?: string | null | undefined;
1770
+ isDraft?: boolean | null | undefined;
1771
+ isArchived?: boolean | null | undefined;
1772
+ availableQuantity?: number | null | undefined;
1773
+ material?: number[] | null | undefined;
1774
+ manufacturerLabelling?: string | null | undefined;
1775
+ labels?: string[] | null | undefined;
1776
+ }>>>;
1777
+ targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1778
+ }, "strip", z.ZodTypeAny, {
1779
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1780
+ post?: {
1781
+ status?: string | null | undefined;
1782
+ price?: number | null | undefined;
1783
+ currency?: string | null | undefined;
1784
+ brand?: string | null | undefined;
1785
+ catalog?: string | null | undefined;
1786
+ catalogId?: number | null | undefined;
1787
+ colors?: string[] | null | undefined;
1788
+ colorIds?: number[] | null | undefined;
1789
+ description?: string | null | undefined;
1790
+ measurementLength?: number | null | undefined;
1791
+ measurementWidth?: number | null | undefined;
1792
+ packageSizeId?: number | null | undefined;
1793
+ photoUrls?: string[] | null | undefined;
1794
+ size?: string | null | undefined;
1795
+ sizeId?: number | null | undefined;
1796
+ statusId?: number | null | undefined;
1797
+ title?: string | null | undefined;
1798
+ isDraft?: boolean | null | undefined;
1799
+ isArchived?: boolean | null | undefined;
1800
+ availableQuantity?: number | null | undefined;
1801
+ material?: number[] | null | undefined;
1802
+ manufacturerLabelling?: string | null | undefined;
1803
+ labels?: string[] | null | undefined;
1804
+ } | null | undefined;
1805
+ targetDate?: Date | null | undefined;
1806
+ }, {
1807
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1808
+ post?: {
1809
+ status?: string | null | undefined;
1810
+ price?: number | null | undefined;
1811
+ currency?: string | null | undefined;
1812
+ brand?: string | null | undefined;
1813
+ catalog?: string | null | undefined;
1814
+ catalogId?: number | null | undefined;
1815
+ colors?: string[] | null | undefined;
1816
+ colorIds?: number[] | null | undefined;
1817
+ description?: string | null | undefined;
1818
+ measurementLength?: number | null | undefined;
1819
+ measurementWidth?: number | null | undefined;
1820
+ packageSizeId?: number | null | undefined;
1821
+ photoUrls?: string[] | null | undefined;
1822
+ size?: string | null | undefined;
1823
+ sizeId?: number | null | undefined;
1824
+ statusId?: number | null | undefined;
1825
+ title?: string | null | undefined;
1826
+ isDraft?: boolean | null | undefined;
1827
+ isArchived?: boolean | null | undefined;
1828
+ availableQuantity?: number | null | undefined;
1829
+ material?: number[] | null | undefined;
1830
+ manufacturerLabelling?: string | null | undefined;
1831
+ labels?: string[] | null | undefined;
1832
+ } | null | undefined;
1833
+ targetDate?: Date | null | undefined;
1834
+ }>;
1835
+ type: z.ZodLiteral<"UPDATING">;
1836
+ }, "strip", z.ZodTypeAny, {
1837
+ type: "UPDATING";
1838
+ data: {
1839
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1840
+ post?: {
1841
+ status?: string | null | undefined;
1842
+ price?: number | null | undefined;
1843
+ currency?: string | null | undefined;
1844
+ brand?: string | null | undefined;
1845
+ catalog?: string | null | undefined;
1846
+ catalogId?: number | null | undefined;
1847
+ colors?: string[] | null | undefined;
1848
+ colorIds?: number[] | null | undefined;
1849
+ description?: string | null | undefined;
1850
+ measurementLength?: number | null | undefined;
1851
+ measurementWidth?: number | null | undefined;
1852
+ packageSizeId?: number | null | undefined;
1853
+ photoUrls?: string[] | null | undefined;
1854
+ size?: string | null | undefined;
1855
+ sizeId?: number | null | undefined;
1856
+ statusId?: number | null | undefined;
1857
+ title?: string | null | undefined;
1858
+ isDraft?: boolean | null | undefined;
1859
+ isArchived?: boolean | null | undefined;
1860
+ availableQuantity?: number | null | undefined;
1861
+ material?: number[] | null | undefined;
1862
+ manufacturerLabelling?: string | null | undefined;
1863
+ labels?: string[] | null | undefined;
1864
+ } | null | undefined;
1865
+ targetDate?: Date | null | undefined;
1866
+ };
1867
+ }, {
1868
+ type: "UPDATING";
1869
+ data: {
1870
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1871
+ post?: {
1872
+ status?: string | null | undefined;
1873
+ price?: number | null | undefined;
1874
+ currency?: string | null | undefined;
1875
+ brand?: string | null | undefined;
1876
+ catalog?: string | null | undefined;
1877
+ catalogId?: number | null | undefined;
1878
+ colors?: string[] | null | undefined;
1879
+ colorIds?: number[] | null | undefined;
1880
+ description?: string | null | undefined;
1881
+ measurementLength?: number | null | undefined;
1882
+ measurementWidth?: number | null | undefined;
1883
+ packageSizeId?: number | null | undefined;
1884
+ photoUrls?: string[] | null | undefined;
1885
+ size?: string | null | undefined;
1886
+ sizeId?: number | null | undefined;
1887
+ statusId?: number | null | undefined;
1888
+ title?: string | null | undefined;
1889
+ isDraft?: boolean | null | undefined;
1890
+ isArchived?: boolean | null | undefined;
1891
+ availableQuantity?: number | null | undefined;
1892
+ material?: number[] | null | undefined;
1893
+ manufacturerLabelling?: string | null | undefined;
1894
+ labels?: string[] | null | undefined;
1895
+ } | null | undefined;
1896
+ targetDate?: Date | null | undefined;
1897
+ };
1682
1898
  }>]>>>;
1683
1899
  createdAt: z.ZodDate;
1684
1900
  targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -1843,6 +2059,42 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1843
2059
  error?: string | null | undefined;
1844
2060
  }[] | null | undefined;
1845
2061
  };
2062
+ } | {
2063
+ type: "UPDATED";
2064
+ data: {
2065
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2066
+ };
2067
+ } | {
2068
+ type: "UPDATING";
2069
+ data: {
2070
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2071
+ post?: {
2072
+ status?: string | null | undefined;
2073
+ price?: number | null | undefined;
2074
+ currency?: string | null | undefined;
2075
+ brand?: string | null | undefined;
2076
+ catalog?: string | null | undefined;
2077
+ catalogId?: number | null | undefined;
2078
+ colors?: string[] | null | undefined;
2079
+ colorIds?: number[] | null | undefined;
2080
+ description?: string | null | undefined;
2081
+ measurementLength?: number | null | undefined;
2082
+ measurementWidth?: number | null | undefined;
2083
+ packageSizeId?: number | null | undefined;
2084
+ photoUrls?: string[] | null | undefined;
2085
+ size?: string | null | undefined;
2086
+ sizeId?: number | null | undefined;
2087
+ statusId?: number | null | undefined;
2088
+ title?: string | null | undefined;
2089
+ isDraft?: boolean | null | undefined;
2090
+ isArchived?: boolean | null | undefined;
2091
+ availableQuantity?: number | null | undefined;
2092
+ material?: number[] | null | undefined;
2093
+ manufacturerLabelling?: string | null | undefined;
2094
+ labels?: string[] | null | undefined;
2095
+ } | null | undefined;
2096
+ targetDate?: Date | null | undefined;
2097
+ };
1846
2098
  } | null | undefined;
1847
2099
  accountId?: string | null | undefined;
1848
2100
  requestId?: string | null | undefined;
@@ -2006,6 +2258,42 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2006
2258
  error?: string | null | undefined;
2007
2259
  }[] | null | undefined;
2008
2260
  };
2261
+ } | {
2262
+ type: "UPDATED";
2263
+ data: {
2264
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2265
+ };
2266
+ } | {
2267
+ type: "UPDATING";
2268
+ data: {
2269
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2270
+ post?: {
2271
+ status?: string | null | undefined;
2272
+ price?: number | null | undefined;
2273
+ currency?: string | null | undefined;
2274
+ brand?: string | null | undefined;
2275
+ catalog?: string | null | undefined;
2276
+ catalogId?: number | null | undefined;
2277
+ colors?: string[] | null | undefined;
2278
+ colorIds?: number[] | null | undefined;
2279
+ description?: string | null | undefined;
2280
+ measurementLength?: number | null | undefined;
2281
+ measurementWidth?: number | null | undefined;
2282
+ packageSizeId?: number | null | undefined;
2283
+ photoUrls?: string[] | null | undefined;
2284
+ size?: string | null | undefined;
2285
+ sizeId?: number | null | undefined;
2286
+ statusId?: number | null | undefined;
2287
+ title?: string | null | undefined;
2288
+ isDraft?: boolean | null | undefined;
2289
+ isArchived?: boolean | null | undefined;
2290
+ availableQuantity?: number | null | undefined;
2291
+ material?: number[] | null | undefined;
2292
+ manufacturerLabelling?: string | null | undefined;
2293
+ labels?: string[] | null | undefined;
2294
+ } | null | undefined;
2295
+ targetDate?: Date | null | undefined;
2296
+ };
2009
2297
  } | null | undefined;
2010
2298
  accountId?: string | null | undefined;
2011
2299
  requestId?: string | null | undefined;
@@ -2133,127 +2421,113 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2133
2421
  viewsCount?: number | null | undefined;
2134
2422
  favoritesCount?: number | null | undefined;
2135
2423
  }>, "many">>>;
2136
- createdAt: z.ZodDate;
2137
- updatedAt: z.ZodDate;
2138
- }, "strip", z.ZodTypeAny, {
2139
- userId: string | number;
2140
- id: string | number;
2141
- updatedAt: Date;
2142
- name: string;
2143
- createdAt: Date;
2144
- sold: boolean;
2145
- state?: number | null | undefined;
2146
- colorIds?: number[] | null | undefined;
2147
- description?: string | null | undefined;
2148
- packageSizeId?: number | null | undefined;
2149
- sizeId?: number | null | undefined;
2150
- labels?: {
2151
- itemId: string | number;
2152
- labelId: string | number;
2153
- label?: {
2154
- id: string | number;
2155
- name: string;
2156
- createdAt: Date;
2157
- isUserLabel: boolean;
2158
- userId?: string | number | null | undefined;
2159
- itemCount?: number | null | undefined;
2160
- parentId?: unknown;
2161
- } | null | undefined;
2162
- }[] | null | undefined;
2163
- files?: {
2164
- itemId: string | number;
2165
- fileId: string;
2166
- index?: number | null | undefined;
2167
- file?: {
2168
- path: string;
2169
- userId: string | number;
2170
- id: string;
2171
- createdAt: Date;
2172
- signedUrl: string;
2173
- } | null | undefined;
2174
- }[] | null | undefined;
2175
- fields?: {
2176
- value: string;
2177
- itemId: string | number;
2178
- fieldId: string | number;
2179
- }[] | null | undefined;
2180
- sku?: string | null | undefined;
2181
- categoryId?: number | null | undefined;
2182
- brandId?: string | number | null | undefined;
2183
- sex?: string | null | undefined;
2184
- purchasePrice?: number | null | undefined;
2185
- purchaseDate?: Date | null | undefined;
2186
- purchasePlaceId?: string | number | null | undefined;
2187
- purchased?: boolean | null | undefined;
2188
- sellingPrice?: number | null | undefined;
2189
- sellingDate?: Date | null | undefined;
2190
- sellingPlaceId?: string | number | null | undefined;
2191
- estimatedPrice?: number | null | undefined;
2192
- fees?: {
2193
- value: number;
2194
- type: string;
2195
- userId: string | number;
2196
- id: string | number;
2197
- updatedAt: Date;
2198
- name: string;
2199
- createdAt: Date;
2200
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
2201
- startDate: Date;
2202
- active: boolean;
2203
- description?: string | null | undefined;
2204
- itemId?: string | number | null | undefined;
2205
- endDate?: Date | null | undefined;
2206
- parentFeeId?: string | number | null | undefined;
2207
- }[] | null | undefined;
2208
- feesSum?: number | null | undefined;
2209
- customerId?: string | number | null | undefined;
2210
- customer?: {
2211
- userId: string | number;
2212
- id: string | number;
2213
- email: string;
2214
- firstName: string;
2215
- lastName: string;
2216
- birthDate: Date;
2217
- idNumber: string;
2218
- phone: string;
2219
- iban: string;
2220
- bic: string;
2221
- phoneVerified: boolean;
2222
- } | null | undefined;
2223
- customerType?: string | null | undefined;
2224
- customerPaid?: boolean | null | undefined;
2225
- customerPaidDate?: Date | null | undefined;
2226
- customerPaidType?: string | null | undefined;
2227
- contractId?: string | number | null | undefined;
2228
- lastHistory?: {
2229
- 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";
2230
- id: string;
2231
- createdAt: Date;
2232
- itemId: string | number;
2233
- data?: {
2424
+ history: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2425
+ id: z.ZodString;
2426
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
2427
+ 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"]>;
2428
+ data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2429
+ data: z.ZodObject<{
2430
+ targetItemHistoryId: z.ZodString;
2431
+ }, "strip", z.ZodTypeAny, {
2432
+ targetItemHistoryId: string;
2433
+ }, {
2434
+ targetItemHistoryId: string;
2435
+ }>;
2436
+ type: z.ZodLiteral<"ACTION_CANCELED">;
2437
+ }, "strip", z.ZodTypeAny, {
2234
2438
  type: "ACTION_CANCELED";
2235
2439
  data: {
2236
2440
  targetItemHistoryId: string;
2237
2441
  };
2238
- } | {
2442
+ }, {
2443
+ type: "ACTION_CANCELED";
2444
+ data: {
2445
+ targetItemHistoryId: string;
2446
+ };
2447
+ }>, z.ZodObject<{
2448
+ data: z.ZodObject<{
2449
+ soldAccountId: z.ZodString;
2450
+ soldOrderId: z.ZodString;
2451
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2452
+ }, "strip", z.ZodTypeAny, {
2453
+ soldAccountId: string;
2454
+ soldOrderId: string;
2455
+ soldConversationId?: string | null | undefined;
2456
+ }, {
2457
+ soldAccountId: string;
2458
+ soldOrderId: string;
2459
+ soldConversationId?: string | null | undefined;
2460
+ }>;
2461
+ type: z.ZodLiteral<"BUYER_PAID">;
2462
+ }, "strip", z.ZodTypeAny, {
2239
2463
  type: "BUYER_PAID";
2240
2464
  data: {
2241
2465
  soldAccountId: string;
2242
2466
  soldOrderId: string;
2243
2467
  soldConversationId?: string | null | undefined;
2244
2468
  };
2245
- } | {
2469
+ }, {
2470
+ type: "BUYER_PAID";
2471
+ data: {
2472
+ soldAccountId: string;
2473
+ soldOrderId: string;
2474
+ soldConversationId?: string | null | undefined;
2475
+ };
2476
+ }>, z.ZodObject<{
2477
+ data: z.ZodObject<{
2478
+ soldAccountId: z.ZodString;
2479
+ soldOrderId: z.ZodString;
2480
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2481
+ }, "strip", z.ZodTypeAny, {
2482
+ soldAccountId: string;
2483
+ soldOrderId: string;
2484
+ soldConversationId?: string | null | undefined;
2485
+ }, {
2486
+ soldAccountId: string;
2487
+ soldOrderId: string;
2488
+ soldConversationId?: string | null | undefined;
2489
+ }>;
2490
+ type: z.ZodLiteral<"DELIVERED">;
2491
+ }, "strip", z.ZodTypeAny, {
2246
2492
  type: "DELIVERED";
2247
2493
  data: {
2248
2494
  soldAccountId: string;
2249
2495
  soldOrderId: string;
2250
2496
  soldConversationId?: string | null | undefined;
2251
2497
  };
2252
- } | {
2253
- type: "EMPTY";
2254
- } | {
2255
- type: "FAILED_TO_PUBLISH";
2498
+ }, {
2499
+ type: "DELIVERED";
2256
2500
  data: {
2501
+ soldAccountId: string;
2502
+ soldOrderId: string;
2503
+ soldConversationId?: string | null | undefined;
2504
+ };
2505
+ }>, z.ZodObject<{
2506
+ type: z.ZodLiteral<"EMPTY">;
2507
+ }, "strip", z.ZodTypeAny, {
2508
+ type: "EMPTY";
2509
+ }, {
2510
+ type: "EMPTY";
2511
+ }>, z.ZodObject<{
2512
+ data: z.ZodObject<{
2513
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2514
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2515
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2516
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2517
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
2518
+ autoFixable: z.ZodBoolean;
2519
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2520
+ }, "strip", z.ZodTypeAny, {
2521
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2522
+ autoFixable: boolean;
2523
+ error?: string | null | undefined;
2524
+ }, {
2525
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2526
+ autoFixable: boolean;
2527
+ error?: string | null | undefined;
2528
+ }>, "many">>>;
2529
+ itemHistoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2530
+ }, "strip", z.ZodTypeAny, {
2257
2531
  platform: "ETSY" | "SHOPIFY" | "VINTED";
2258
2532
  accountId?: string | null | undefined;
2259
2533
  reason?: string | null | undefined;
@@ -2263,12 +2537,2256 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2263
2537
  error?: string | null | undefined;
2264
2538
  }[] | null | undefined;
2265
2539
  itemHistoryId?: string | null | undefined;
2266
- };
2267
- } | {
2268
- type: "IMAGE_PROCESSING_DONE";
2269
- data: {
2540
+ }, {
2270
2541
  platform: "ETSY" | "SHOPIFY" | "VINTED";
2271
- variations?: {
2542
+ accountId?: string | null | undefined;
2543
+ reason?: string | null | undefined;
2544
+ fields?: {
2545
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2546
+ autoFixable: boolean;
2547
+ error?: string | null | undefined;
2548
+ }[] | null | undefined;
2549
+ itemHistoryId?: string | null | undefined;
2550
+ }>;
2551
+ type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
2552
+ }, "strip", z.ZodTypeAny, {
2553
+ type: "FAILED_TO_PUBLISH";
2554
+ data: {
2555
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2556
+ accountId?: string | null | undefined;
2557
+ reason?: string | null | undefined;
2558
+ fields?: {
2559
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2560
+ autoFixable: boolean;
2561
+ error?: string | null | undefined;
2562
+ }[] | null | undefined;
2563
+ itemHistoryId?: string | null | undefined;
2564
+ };
2565
+ }, {
2566
+ type: "FAILED_TO_PUBLISH";
2567
+ data: {
2568
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2569
+ accountId?: string | null | undefined;
2570
+ reason?: string | null | undefined;
2571
+ fields?: {
2572
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2573
+ autoFixable: boolean;
2574
+ error?: string | null | undefined;
2575
+ }[] | null | undefined;
2576
+ itemHistoryId?: string | null | undefined;
2577
+ };
2578
+ }>, z.ZodObject<{
2579
+ data: z.ZodObject<{
2580
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2581
+ variations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2582
+ fileId: z.ZodString;
2583
+ seed: z.ZodNumber;
2584
+ phash: z.ZodString;
2585
+ distanceOriginal: z.ZodNumber;
2586
+ originalImageUrl: z.ZodString;
2587
+ originalPhash: z.ZodString;
2588
+ }, "strip", z.ZodTypeAny, {
2589
+ fileId: string;
2590
+ seed: number;
2591
+ phash: string;
2592
+ distanceOriginal: number;
2593
+ originalImageUrl: string;
2594
+ originalPhash: string;
2595
+ }, {
2596
+ fileId: string;
2597
+ seed: number;
2598
+ phash: string;
2599
+ distanceOriginal: number;
2600
+ originalImageUrl: string;
2601
+ originalPhash: string;
2602
+ }>, "many">>>;
2603
+ originalPhashes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2604
+ }, "strip", z.ZodTypeAny, {
2605
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2606
+ variations?: {
2607
+ fileId: string;
2608
+ seed: number;
2609
+ phash: string;
2610
+ distanceOriginal: number;
2611
+ originalImageUrl: string;
2612
+ originalPhash: string;
2613
+ }[] | null | undefined;
2614
+ originalPhashes?: string[] | null | undefined;
2615
+ }, {
2616
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2617
+ variations?: {
2618
+ fileId: string;
2619
+ seed: number;
2620
+ phash: string;
2621
+ distanceOriginal: number;
2622
+ originalImageUrl: string;
2623
+ originalPhash: string;
2624
+ }[] | null | undefined;
2625
+ originalPhashes?: string[] | null | undefined;
2626
+ }>;
2627
+ type: z.ZodLiteral<"IMAGE_PROCESSING_DONE">;
2628
+ }, "strip", z.ZodTypeAny, {
2629
+ type: "IMAGE_PROCESSING_DONE";
2630
+ data: {
2631
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2632
+ variations?: {
2633
+ fileId: string;
2634
+ seed: number;
2635
+ phash: string;
2636
+ distanceOriginal: number;
2637
+ originalImageUrl: string;
2638
+ originalPhash: string;
2639
+ }[] | null | undefined;
2640
+ originalPhashes?: string[] | null | undefined;
2641
+ };
2642
+ }, {
2643
+ type: "IMAGE_PROCESSING_DONE";
2644
+ data: {
2645
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2646
+ variations?: {
2647
+ fileId: string;
2648
+ seed: number;
2649
+ phash: string;
2650
+ distanceOriginal: number;
2651
+ originalImageUrl: string;
2652
+ originalPhash: string;
2653
+ }[] | null | undefined;
2654
+ originalPhashes?: string[] | null | undefined;
2655
+ };
2656
+ }>, z.ZodObject<{
2657
+ data: z.ZodObject<{
2658
+ post: z.ZodObject<{
2659
+ platformId: z.ZodString;
2660
+ platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2661
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2662
+ post: z.ZodObject<{
2663
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2664
+ catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2665
+ catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2666
+ colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2667
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
2668
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2669
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2670
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2671
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2672
+ photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2673
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2674
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2675
+ size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2676
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2677
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2678
+ statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2679
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2680
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2681
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2682
+ availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2683
+ material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
2684
+ manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2685
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2686
+ }, "strip", z.ZodTypeAny, {
2687
+ status?: string | null | undefined;
2688
+ price?: number | null | undefined;
2689
+ currency?: string | null | undefined;
2690
+ brand?: string | null | undefined;
2691
+ catalog?: string | null | undefined;
2692
+ catalogId?: number | null | undefined;
2693
+ colors?: string[] | null | undefined;
2694
+ colorIds?: number[] | null | undefined;
2695
+ description?: string | null | undefined;
2696
+ measurementLength?: number | null | undefined;
2697
+ measurementWidth?: number | null | undefined;
2698
+ packageSizeId?: number | null | undefined;
2699
+ photoUrls?: string[] | null | undefined;
2700
+ size?: string | null | undefined;
2701
+ sizeId?: number | null | undefined;
2702
+ statusId?: number | null | undefined;
2703
+ title?: string | null | undefined;
2704
+ isDraft?: boolean | null | undefined;
2705
+ isArchived?: boolean | null | undefined;
2706
+ availableQuantity?: number | null | undefined;
2707
+ material?: number[] | null | undefined;
2708
+ manufacturerLabelling?: string | null | undefined;
2709
+ labels?: string[] | null | undefined;
2710
+ }, {
2711
+ status?: string | null | undefined;
2712
+ price?: number | null | undefined;
2713
+ currency?: string | null | undefined;
2714
+ brand?: string | null | undefined;
2715
+ catalog?: string | null | undefined;
2716
+ catalogId?: number | null | undefined;
2717
+ colors?: string[] | null | undefined;
2718
+ colorIds?: number[] | null | undefined;
2719
+ description?: string | null | undefined;
2720
+ measurementLength?: number | null | undefined;
2721
+ measurementWidth?: number | null | undefined;
2722
+ packageSizeId?: number | null | undefined;
2723
+ photoUrls?: string[] | null | undefined;
2724
+ size?: string | null | undefined;
2725
+ sizeId?: number | null | undefined;
2726
+ statusId?: number | null | undefined;
2727
+ title?: string | null | undefined;
2728
+ isDraft?: boolean | null | undefined;
2729
+ isArchived?: boolean | null | undefined;
2730
+ availableQuantity?: number | null | undefined;
2731
+ material?: number[] | null | undefined;
2732
+ manufacturerLabelling?: string | null | undefined;
2733
+ labels?: string[] | null | undefined;
2734
+ }>;
2735
+ }, "strip", z.ZodTypeAny, {
2736
+ platformId: string;
2737
+ post: {
2738
+ status?: string | null | undefined;
2739
+ price?: number | null | undefined;
2740
+ currency?: string | null | undefined;
2741
+ brand?: string | null | undefined;
2742
+ catalog?: string | null | undefined;
2743
+ catalogId?: number | null | undefined;
2744
+ colors?: string[] | null | undefined;
2745
+ colorIds?: number[] | null | undefined;
2746
+ description?: string | null | undefined;
2747
+ measurementLength?: number | null | undefined;
2748
+ measurementWidth?: number | null | undefined;
2749
+ packageSizeId?: number | null | undefined;
2750
+ photoUrls?: string[] | null | undefined;
2751
+ size?: string | null | undefined;
2752
+ sizeId?: number | null | undefined;
2753
+ statusId?: number | null | undefined;
2754
+ title?: string | null | undefined;
2755
+ isDraft?: boolean | null | undefined;
2756
+ isArchived?: boolean | null | undefined;
2757
+ availableQuantity?: number | null | undefined;
2758
+ material?: number[] | null | undefined;
2759
+ manufacturerLabelling?: string | null | undefined;
2760
+ labels?: string[] | null | undefined;
2761
+ };
2762
+ createdAt?: Date | null | undefined;
2763
+ platformUrl?: string | null | undefined;
2764
+ }, {
2765
+ platformId: string;
2766
+ post: {
2767
+ status?: string | null | undefined;
2768
+ price?: number | null | undefined;
2769
+ currency?: string | null | undefined;
2770
+ brand?: string | null | undefined;
2771
+ catalog?: string | null | undefined;
2772
+ catalogId?: number | null | undefined;
2773
+ colors?: string[] | null | undefined;
2774
+ colorIds?: number[] | null | undefined;
2775
+ description?: string | null | undefined;
2776
+ measurementLength?: number | null | undefined;
2777
+ measurementWidth?: number | null | undefined;
2778
+ packageSizeId?: number | null | undefined;
2779
+ photoUrls?: string[] | null | undefined;
2780
+ size?: string | null | undefined;
2781
+ sizeId?: number | null | undefined;
2782
+ statusId?: number | null | undefined;
2783
+ title?: string | null | undefined;
2784
+ isDraft?: boolean | null | undefined;
2785
+ isArchived?: boolean | null | undefined;
2786
+ availableQuantity?: number | null | undefined;
2787
+ material?: number[] | null | undefined;
2788
+ manufacturerLabelling?: string | null | undefined;
2789
+ labels?: string[] | null | undefined;
2790
+ };
2791
+ createdAt?: Date | null | undefined;
2792
+ platformUrl?: string | null | undefined;
2793
+ }>;
2794
+ }, "strip", z.ZodTypeAny, {
2795
+ post: {
2796
+ platformId: string;
2797
+ post: {
2798
+ status?: string | null | undefined;
2799
+ price?: number | null | undefined;
2800
+ currency?: string | null | undefined;
2801
+ brand?: string | null | undefined;
2802
+ catalog?: string | null | undefined;
2803
+ catalogId?: number | null | undefined;
2804
+ colors?: string[] | null | undefined;
2805
+ colorIds?: number[] | null | undefined;
2806
+ description?: string | null | undefined;
2807
+ measurementLength?: number | null | undefined;
2808
+ measurementWidth?: number | null | undefined;
2809
+ packageSizeId?: number | null | undefined;
2810
+ photoUrls?: string[] | null | undefined;
2811
+ size?: string | null | undefined;
2812
+ sizeId?: number | null | undefined;
2813
+ statusId?: number | null | undefined;
2814
+ title?: string | null | undefined;
2815
+ isDraft?: boolean | null | undefined;
2816
+ isArchived?: boolean | null | undefined;
2817
+ availableQuantity?: number | null | undefined;
2818
+ material?: number[] | null | undefined;
2819
+ manufacturerLabelling?: string | null | undefined;
2820
+ labels?: string[] | null | undefined;
2821
+ };
2822
+ createdAt?: Date | null | undefined;
2823
+ platformUrl?: string | null | undefined;
2824
+ };
2825
+ }, {
2826
+ post: {
2827
+ platformId: string;
2828
+ post: {
2829
+ status?: string | null | undefined;
2830
+ price?: number | null | undefined;
2831
+ currency?: string | null | undefined;
2832
+ brand?: string | null | undefined;
2833
+ catalog?: string | null | undefined;
2834
+ catalogId?: number | null | undefined;
2835
+ colors?: string[] | null | undefined;
2836
+ colorIds?: number[] | null | undefined;
2837
+ description?: string | null | undefined;
2838
+ measurementLength?: number | null | undefined;
2839
+ measurementWidth?: number | null | undefined;
2840
+ packageSizeId?: number | null | undefined;
2841
+ photoUrls?: string[] | null | undefined;
2842
+ size?: string | null | undefined;
2843
+ sizeId?: number | null | undefined;
2844
+ statusId?: number | null | undefined;
2845
+ title?: string | null | undefined;
2846
+ isDraft?: boolean | null | undefined;
2847
+ isArchived?: boolean | null | undefined;
2848
+ availableQuantity?: number | null | undefined;
2849
+ material?: number[] | null | undefined;
2850
+ manufacturerLabelling?: string | null | undefined;
2851
+ labels?: string[] | null | undefined;
2852
+ };
2853
+ createdAt?: Date | null | undefined;
2854
+ platformUrl?: string | null | undefined;
2855
+ };
2856
+ }>;
2857
+ type: z.ZodLiteral<"IMPORTED">;
2858
+ }, "strip", z.ZodTypeAny, {
2859
+ type: "IMPORTED";
2860
+ data: {
2861
+ post: {
2862
+ platformId: string;
2863
+ post: {
2864
+ status?: string | null | undefined;
2865
+ price?: number | null | undefined;
2866
+ currency?: string | null | undefined;
2867
+ brand?: string | null | undefined;
2868
+ catalog?: string | null | undefined;
2869
+ catalogId?: number | null | undefined;
2870
+ colors?: string[] | null | undefined;
2871
+ colorIds?: number[] | null | undefined;
2872
+ description?: string | null | undefined;
2873
+ measurementLength?: number | null | undefined;
2874
+ measurementWidth?: number | null | undefined;
2875
+ packageSizeId?: number | null | undefined;
2876
+ photoUrls?: string[] | null | undefined;
2877
+ size?: string | null | undefined;
2878
+ sizeId?: number | null | undefined;
2879
+ statusId?: number | null | undefined;
2880
+ title?: string | null | undefined;
2881
+ isDraft?: boolean | null | undefined;
2882
+ isArchived?: boolean | null | undefined;
2883
+ availableQuantity?: number | null | undefined;
2884
+ material?: number[] | null | undefined;
2885
+ manufacturerLabelling?: string | null | undefined;
2886
+ labels?: string[] | null | undefined;
2887
+ };
2888
+ createdAt?: Date | null | undefined;
2889
+ platformUrl?: string | null | undefined;
2890
+ };
2891
+ };
2892
+ }, {
2893
+ type: "IMPORTED";
2894
+ data: {
2895
+ post: {
2896
+ platformId: string;
2897
+ post: {
2898
+ status?: string | null | undefined;
2899
+ price?: number | null | undefined;
2900
+ currency?: string | null | undefined;
2901
+ brand?: string | null | undefined;
2902
+ catalog?: string | null | undefined;
2903
+ catalogId?: number | null | undefined;
2904
+ colors?: string[] | null | undefined;
2905
+ colorIds?: number[] | null | undefined;
2906
+ description?: string | null | undefined;
2907
+ measurementLength?: number | null | undefined;
2908
+ measurementWidth?: number | null | undefined;
2909
+ packageSizeId?: number | null | undefined;
2910
+ photoUrls?: string[] | null | undefined;
2911
+ size?: string | null | undefined;
2912
+ sizeId?: number | null | undefined;
2913
+ statusId?: number | null | undefined;
2914
+ title?: string | null | undefined;
2915
+ isDraft?: boolean | null | undefined;
2916
+ isArchived?: boolean | null | undefined;
2917
+ availableQuantity?: number | null | undefined;
2918
+ material?: number[] | null | undefined;
2919
+ manufacturerLabelling?: string | null | undefined;
2920
+ labels?: string[] | null | undefined;
2921
+ };
2922
+ createdAt?: Date | null | undefined;
2923
+ platformUrl?: string | null | undefined;
2924
+ };
2925
+ };
2926
+ }>, z.ZodObject<{
2927
+ data: z.ZodObject<{
2928
+ accountId: z.ZodString;
2929
+ }, "strip", z.ZodTypeAny, {
2930
+ accountId: string;
2931
+ }, {
2932
+ accountId: string;
2933
+ }>;
2934
+ type: z.ZodLiteral<"LIFECYCLE_COMPLETED">;
2935
+ }, "strip", z.ZodTypeAny, {
2936
+ type: "LIFECYCLE_COMPLETED";
2937
+ data: {
2938
+ accountId: string;
2939
+ };
2940
+ }, {
2941
+ type: "LIFECYCLE_COMPLETED";
2942
+ data: {
2943
+ accountId: string;
2944
+ };
2945
+ }>, z.ZodObject<{
2946
+ data: z.ZodObject<{
2947
+ accountId: z.ZodString;
2948
+ caseId: z.ZodString;
2949
+ }, "strip", z.ZodTypeAny, {
2950
+ accountId: string;
2951
+ caseId: string;
2952
+ }, {
2953
+ accountId: string;
2954
+ caseId: string;
2955
+ }>;
2956
+ type: z.ZodLiteral<"LIFECYCLE_STARTED">;
2957
+ }, "strip", z.ZodTypeAny, {
2958
+ type: "LIFECYCLE_STARTED";
2959
+ data: {
2960
+ accountId: string;
2961
+ caseId: string;
2962
+ };
2963
+ }, {
2964
+ type: "LIFECYCLE_STARTED";
2965
+ data: {
2966
+ accountId: string;
2967
+ caseId: string;
2968
+ };
2969
+ }>, z.ZodObject<{
2970
+ data: z.ZodObject<{
2971
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2972
+ }, "strip", z.ZodTypeAny, {
2973
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2974
+ }, {
2975
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2976
+ }>;
2977
+ type: z.ZodLiteral<"PUBLISHED">;
2978
+ }, "strip", z.ZodTypeAny, {
2979
+ type: "PUBLISHED";
2980
+ data: {
2981
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2982
+ };
2983
+ }, {
2984
+ type: "PUBLISHED";
2985
+ data: {
2986
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2987
+ };
2988
+ }>, z.ZodObject<{
2989
+ data: z.ZodObject<{
2990
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2991
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2992
+ priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2993
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
2994
+ value: z.ZodNumber;
2995
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
2996
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2997
+ maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2998
+ }, "strip", z.ZodTypeAny, {
2999
+ value: number;
3000
+ type: "PERCENTAGE" | "ABSOLUTE";
3001
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3002
+ roundStep?: number | null | undefined;
3003
+ maxRounds?: number | null | undefined;
3004
+ }, {
3005
+ value: number;
3006
+ type: "PERCENTAGE" | "ABSOLUTE";
3007
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3008
+ roundStep?: number | null | undefined;
3009
+ maxRounds?: number | null | undefined;
3010
+ }>>>;
3011
+ isTransfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3012
+ targetAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3013
+ }, "strip", z.ZodTypeAny, {
3014
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3015
+ publishingDate?: Date | null | undefined;
3016
+ priceDropPayload?: {
3017
+ value: number;
3018
+ type: "PERCENTAGE" | "ABSOLUTE";
3019
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3020
+ roundStep?: number | null | undefined;
3021
+ maxRounds?: number | null | undefined;
3022
+ } | null | undefined;
3023
+ isTransfer?: boolean | null | undefined;
3024
+ targetAccountId?: string | null | undefined;
3025
+ }, {
3026
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3027
+ publishingDate?: Date | null | undefined;
3028
+ priceDropPayload?: {
3029
+ value: number;
3030
+ type: "PERCENTAGE" | "ABSOLUTE";
3031
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3032
+ roundStep?: number | null | undefined;
3033
+ maxRounds?: number | null | undefined;
3034
+ } | null | undefined;
3035
+ isTransfer?: boolean | null | undefined;
3036
+ targetAccountId?: string | null | undefined;
3037
+ }>;
3038
+ type: z.ZodLiteral<"REPUBLISHING">;
3039
+ }, "strip", z.ZodTypeAny, {
3040
+ type: "REPUBLISHING";
3041
+ data: {
3042
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3043
+ publishingDate?: Date | null | undefined;
3044
+ priceDropPayload?: {
3045
+ value: number;
3046
+ type: "PERCENTAGE" | "ABSOLUTE";
3047
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3048
+ roundStep?: number | null | undefined;
3049
+ maxRounds?: number | null | undefined;
3050
+ } | null | undefined;
3051
+ isTransfer?: boolean | null | undefined;
3052
+ targetAccountId?: string | null | undefined;
3053
+ };
3054
+ }, {
3055
+ type: "REPUBLISHING";
3056
+ data: {
3057
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3058
+ publishingDate?: Date | null | undefined;
3059
+ priceDropPayload?: {
3060
+ value: number;
3061
+ type: "PERCENTAGE" | "ABSOLUTE";
3062
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3063
+ roundStep?: number | null | undefined;
3064
+ maxRounds?: number | null | undefined;
3065
+ } | null | undefined;
3066
+ isTransfer?: boolean | null | undefined;
3067
+ targetAccountId?: string | null | undefined;
3068
+ };
3069
+ }>, z.ZodObject<{
3070
+ data: z.ZodObject<{
3071
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
3072
+ attemptNumber: z.ZodNumber;
3073
+ maxAttempts: z.ZodNumber;
3074
+ previousHistoryId: z.ZodString;
3075
+ originalFailureDate: z.ZodDate;
3076
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3077
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
3078
+ autoFixable: z.ZodBoolean;
3079
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3080
+ }, "strip", z.ZodTypeAny, {
3081
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3082
+ autoFixable: boolean;
3083
+ error?: string | null | undefined;
3084
+ }, {
3085
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3086
+ autoFixable: boolean;
3087
+ error?: string | null | undefined;
3088
+ }>, "many">>>;
3089
+ priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3090
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
3091
+ value: z.ZodNumber;
3092
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
3093
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3094
+ maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3095
+ }, "strip", z.ZodTypeAny, {
3096
+ value: number;
3097
+ type: "PERCENTAGE" | "ABSOLUTE";
3098
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3099
+ roundStep?: number | null | undefined;
3100
+ maxRounds?: number | null | undefined;
3101
+ }, {
3102
+ value: number;
3103
+ type: "PERCENTAGE" | "ABSOLUTE";
3104
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3105
+ roundStep?: number | null | undefined;
3106
+ maxRounds?: number | null | undefined;
3107
+ }>>>;
3108
+ }, "strip", z.ZodTypeAny, {
3109
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3110
+ attemptNumber: number;
3111
+ maxAttempts: number;
3112
+ previousHistoryId: string;
3113
+ originalFailureDate: Date;
3114
+ fields?: {
3115
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3116
+ autoFixable: boolean;
3117
+ error?: string | null | undefined;
3118
+ }[] | null | undefined;
3119
+ priceDropPayload?: {
3120
+ value: number;
3121
+ type: "PERCENTAGE" | "ABSOLUTE";
3122
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3123
+ roundStep?: number | null | undefined;
3124
+ maxRounds?: number | null | undefined;
3125
+ } | null | undefined;
3126
+ }, {
3127
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3128
+ attemptNumber: number;
3129
+ maxAttempts: number;
3130
+ previousHistoryId: string;
3131
+ originalFailureDate: Date;
3132
+ fields?: {
3133
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3134
+ autoFixable: boolean;
3135
+ error?: string | null | undefined;
3136
+ }[] | null | undefined;
3137
+ priceDropPayload?: {
3138
+ value: number;
3139
+ type: "PERCENTAGE" | "ABSOLUTE";
3140
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3141
+ roundStep?: number | null | undefined;
3142
+ maxRounds?: number | null | undefined;
3143
+ } | null | undefined;
3144
+ }>;
3145
+ type: z.ZodLiteral<"REPUBLISHING_RETRY">;
3146
+ }, "strip", z.ZodTypeAny, {
3147
+ type: "REPUBLISHING_RETRY";
3148
+ data: {
3149
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3150
+ attemptNumber: number;
3151
+ maxAttempts: number;
3152
+ previousHistoryId: string;
3153
+ originalFailureDate: Date;
3154
+ fields?: {
3155
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3156
+ autoFixable: boolean;
3157
+ error?: string | null | undefined;
3158
+ }[] | null | undefined;
3159
+ priceDropPayload?: {
3160
+ value: number;
3161
+ type: "PERCENTAGE" | "ABSOLUTE";
3162
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3163
+ roundStep?: number | null | undefined;
3164
+ maxRounds?: number | null | undefined;
3165
+ } | null | undefined;
3166
+ };
3167
+ }, {
3168
+ type: "REPUBLISHING_RETRY";
3169
+ data: {
3170
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3171
+ attemptNumber: number;
3172
+ maxAttempts: number;
3173
+ previousHistoryId: string;
3174
+ originalFailureDate: Date;
3175
+ fields?: {
3176
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3177
+ autoFixable: boolean;
3178
+ error?: string | null | undefined;
3179
+ }[] | null | undefined;
3180
+ priceDropPayload?: {
3181
+ value: number;
3182
+ type: "PERCENTAGE" | "ABSOLUTE";
3183
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3184
+ roundStep?: number | null | undefined;
3185
+ maxRounds?: number | null | undefined;
3186
+ } | null | undefined;
3187
+ };
3188
+ }>, z.ZodObject<{
3189
+ data: z.ZodObject<{
3190
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
3191
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3192
+ }, "strip", z.ZodTypeAny, {
3193
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3194
+ publishingDate?: Date | null | undefined;
3195
+ }, {
3196
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3197
+ publishingDate?: Date | null | undefined;
3198
+ }>;
3199
+ type: z.ZodLiteral<"SCHEDULED">;
3200
+ }, "strip", z.ZodTypeAny, {
3201
+ type: "SCHEDULED";
3202
+ data: {
3203
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3204
+ publishingDate?: Date | null | undefined;
3205
+ };
3206
+ }, {
3207
+ type: "SCHEDULED";
3208
+ data: {
3209
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3210
+ publishingDate?: Date | null | undefined;
3211
+ };
3212
+ }>, z.ZodObject<{
3213
+ data: z.ZodObject<{
3214
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
3215
+ attemptNumber: z.ZodNumber;
3216
+ maxAttempts: z.ZodNumber;
3217
+ previousHistoryId: z.ZodString;
3218
+ originalFailureDate: z.ZodDate;
3219
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3220
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
3221
+ autoFixable: z.ZodBoolean;
3222
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3223
+ }, "strip", z.ZodTypeAny, {
3224
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3225
+ autoFixable: boolean;
3226
+ error?: string | null | undefined;
3227
+ }, {
3228
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3229
+ autoFixable: boolean;
3230
+ error?: string | null | undefined;
3231
+ }>, "many">>>;
3232
+ }, "strip", z.ZodTypeAny, {
3233
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3234
+ attemptNumber: number;
3235
+ maxAttempts: number;
3236
+ previousHistoryId: string;
3237
+ originalFailureDate: Date;
3238
+ fields?: {
3239
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3240
+ autoFixable: boolean;
3241
+ error?: string | null | undefined;
3242
+ }[] | null | undefined;
3243
+ }, {
3244
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3245
+ attemptNumber: number;
3246
+ maxAttempts: number;
3247
+ previousHistoryId: string;
3248
+ originalFailureDate: Date;
3249
+ fields?: {
3250
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3251
+ autoFixable: boolean;
3252
+ error?: string | null | undefined;
3253
+ }[] | null | undefined;
3254
+ }>;
3255
+ type: z.ZodLiteral<"SCHEDULED_RETRY">;
3256
+ }, "strip", z.ZodTypeAny, {
3257
+ type: "SCHEDULED_RETRY";
3258
+ data: {
3259
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3260
+ attemptNumber: number;
3261
+ maxAttempts: number;
3262
+ previousHistoryId: string;
3263
+ originalFailureDate: Date;
3264
+ fields?: {
3265
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3266
+ autoFixable: boolean;
3267
+ error?: string | null | undefined;
3268
+ }[] | null | undefined;
3269
+ };
3270
+ }, {
3271
+ type: "SCHEDULED_RETRY";
3272
+ data: {
3273
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3274
+ attemptNumber: number;
3275
+ maxAttempts: number;
3276
+ previousHistoryId: string;
3277
+ originalFailureDate: Date;
3278
+ fields?: {
3279
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3280
+ autoFixable: boolean;
3281
+ error?: string | null | undefined;
3282
+ }[] | null | undefined;
3283
+ };
3284
+ }>, z.ZodObject<{
3285
+ data: z.ZodObject<{
3286
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
3287
+ }, "strip", z.ZodTypeAny, {
3288
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3289
+ }, {
3290
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3291
+ }>;
3292
+ type: z.ZodLiteral<"UPDATED">;
3293
+ }, "strip", z.ZodTypeAny, {
3294
+ type: "UPDATED";
3295
+ data: {
3296
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3297
+ };
3298
+ }, {
3299
+ type: "UPDATED";
3300
+ data: {
3301
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3302
+ };
3303
+ }>, z.ZodObject<{
3304
+ data: z.ZodObject<{
3305
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
3306
+ post: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3307
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3308
+ catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3309
+ catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3310
+ colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
3311
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
3312
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3313
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3314
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3315
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3316
+ photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
3317
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3318
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3319
+ size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3320
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3321
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3322
+ statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3323
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3324
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3325
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3326
+ availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3327
+ material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
3328
+ manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3329
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
3330
+ }, "strip", z.ZodTypeAny, {
3331
+ status?: string | null | undefined;
3332
+ price?: number | null | undefined;
3333
+ currency?: string | null | undefined;
3334
+ brand?: string | null | undefined;
3335
+ catalog?: string | null | undefined;
3336
+ catalogId?: number | null | undefined;
3337
+ colors?: string[] | null | undefined;
3338
+ colorIds?: number[] | null | undefined;
3339
+ description?: string | null | undefined;
3340
+ measurementLength?: number | null | undefined;
3341
+ measurementWidth?: number | null | undefined;
3342
+ packageSizeId?: number | null | undefined;
3343
+ photoUrls?: string[] | null | undefined;
3344
+ size?: string | null | undefined;
3345
+ sizeId?: number | null | undefined;
3346
+ statusId?: number | null | undefined;
3347
+ title?: string | null | undefined;
3348
+ isDraft?: boolean | null | undefined;
3349
+ isArchived?: boolean | null | undefined;
3350
+ availableQuantity?: number | null | undefined;
3351
+ material?: number[] | null | undefined;
3352
+ manufacturerLabelling?: string | null | undefined;
3353
+ labels?: string[] | null | undefined;
3354
+ }, {
3355
+ status?: string | null | undefined;
3356
+ price?: number | null | undefined;
3357
+ currency?: string | null | undefined;
3358
+ brand?: string | null | undefined;
3359
+ catalog?: string | null | undefined;
3360
+ catalogId?: number | null | undefined;
3361
+ colors?: string[] | null | undefined;
3362
+ colorIds?: number[] | null | undefined;
3363
+ description?: string | null | undefined;
3364
+ measurementLength?: number | null | undefined;
3365
+ measurementWidth?: number | null | undefined;
3366
+ packageSizeId?: number | null | undefined;
3367
+ photoUrls?: string[] | null | undefined;
3368
+ size?: string | null | undefined;
3369
+ sizeId?: number | null | undefined;
3370
+ statusId?: number | null | undefined;
3371
+ title?: string | null | undefined;
3372
+ isDraft?: boolean | null | undefined;
3373
+ isArchived?: boolean | null | undefined;
3374
+ availableQuantity?: number | null | undefined;
3375
+ material?: number[] | null | undefined;
3376
+ manufacturerLabelling?: string | null | undefined;
3377
+ labels?: string[] | null | undefined;
3378
+ }>>>;
3379
+ targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3380
+ }, "strip", z.ZodTypeAny, {
3381
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3382
+ post?: {
3383
+ status?: string | null | undefined;
3384
+ price?: number | null | undefined;
3385
+ currency?: string | null | undefined;
3386
+ brand?: string | null | undefined;
3387
+ catalog?: string | null | undefined;
3388
+ catalogId?: number | null | undefined;
3389
+ colors?: string[] | null | undefined;
3390
+ colorIds?: number[] | null | undefined;
3391
+ description?: string | null | undefined;
3392
+ measurementLength?: number | null | undefined;
3393
+ measurementWidth?: number | null | undefined;
3394
+ packageSizeId?: number | null | undefined;
3395
+ photoUrls?: string[] | null | undefined;
3396
+ size?: string | null | undefined;
3397
+ sizeId?: number | null | undefined;
3398
+ statusId?: number | null | undefined;
3399
+ title?: string | null | undefined;
3400
+ isDraft?: boolean | null | undefined;
3401
+ isArchived?: boolean | null | undefined;
3402
+ availableQuantity?: number | null | undefined;
3403
+ material?: number[] | null | undefined;
3404
+ manufacturerLabelling?: string | null | undefined;
3405
+ labels?: string[] | null | undefined;
3406
+ } | null | undefined;
3407
+ targetDate?: Date | null | undefined;
3408
+ }, {
3409
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3410
+ post?: {
3411
+ status?: string | null | undefined;
3412
+ price?: number | null | undefined;
3413
+ currency?: string | null | undefined;
3414
+ brand?: string | null | undefined;
3415
+ catalog?: string | null | undefined;
3416
+ catalogId?: number | null | undefined;
3417
+ colors?: string[] | null | undefined;
3418
+ colorIds?: number[] | null | undefined;
3419
+ description?: string | null | undefined;
3420
+ measurementLength?: number | null | undefined;
3421
+ measurementWidth?: number | null | undefined;
3422
+ packageSizeId?: number | null | undefined;
3423
+ photoUrls?: string[] | null | undefined;
3424
+ size?: string | null | undefined;
3425
+ sizeId?: number | null | undefined;
3426
+ statusId?: number | null | undefined;
3427
+ title?: string | null | undefined;
3428
+ isDraft?: boolean | null | undefined;
3429
+ isArchived?: boolean | null | undefined;
3430
+ availableQuantity?: number | null | undefined;
3431
+ material?: number[] | null | undefined;
3432
+ manufacturerLabelling?: string | null | undefined;
3433
+ labels?: string[] | null | undefined;
3434
+ } | null | undefined;
3435
+ targetDate?: Date | null | undefined;
3436
+ }>;
3437
+ type: z.ZodLiteral<"UPDATING">;
3438
+ }, "strip", z.ZodTypeAny, {
3439
+ type: "UPDATING";
3440
+ data: {
3441
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3442
+ post?: {
3443
+ status?: string | null | undefined;
3444
+ price?: number | null | undefined;
3445
+ currency?: string | null | undefined;
3446
+ brand?: string | null | undefined;
3447
+ catalog?: string | null | undefined;
3448
+ catalogId?: number | null | undefined;
3449
+ colors?: string[] | null | undefined;
3450
+ colorIds?: number[] | null | undefined;
3451
+ description?: string | null | undefined;
3452
+ measurementLength?: number | null | undefined;
3453
+ measurementWidth?: number | null | undefined;
3454
+ packageSizeId?: number | null | undefined;
3455
+ photoUrls?: string[] | null | undefined;
3456
+ size?: string | null | undefined;
3457
+ sizeId?: number | null | undefined;
3458
+ statusId?: number | null | undefined;
3459
+ title?: string | null | undefined;
3460
+ isDraft?: boolean | null | undefined;
3461
+ isArchived?: boolean | null | undefined;
3462
+ availableQuantity?: number | null | undefined;
3463
+ material?: number[] | null | undefined;
3464
+ manufacturerLabelling?: string | null | undefined;
3465
+ labels?: string[] | null | undefined;
3466
+ } | null | undefined;
3467
+ targetDate?: Date | null | undefined;
3468
+ };
3469
+ }, {
3470
+ type: "UPDATING";
3471
+ data: {
3472
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3473
+ post?: {
3474
+ status?: string | null | undefined;
3475
+ price?: number | null | undefined;
3476
+ currency?: string | null | undefined;
3477
+ brand?: string | null | undefined;
3478
+ catalog?: string | null | undefined;
3479
+ catalogId?: number | null | undefined;
3480
+ colors?: string[] | null | undefined;
3481
+ colorIds?: number[] | null | undefined;
3482
+ description?: string | null | undefined;
3483
+ measurementLength?: number | null | undefined;
3484
+ measurementWidth?: number | null | undefined;
3485
+ packageSizeId?: number | null | undefined;
3486
+ photoUrls?: string[] | null | undefined;
3487
+ size?: string | null | undefined;
3488
+ sizeId?: number | null | undefined;
3489
+ statusId?: number | null | undefined;
3490
+ title?: string | null | undefined;
3491
+ isDraft?: boolean | null | undefined;
3492
+ isArchived?: boolean | null | undefined;
3493
+ availableQuantity?: number | null | undefined;
3494
+ material?: number[] | null | undefined;
3495
+ manufacturerLabelling?: string | null | undefined;
3496
+ labels?: string[] | null | undefined;
3497
+ } | null | undefined;
3498
+ targetDate?: Date | null | undefined;
3499
+ };
3500
+ }>]>>>;
3501
+ createdAt: z.ZodDate;
3502
+ targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3503
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3504
+ requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3505
+ }, "strip", z.ZodTypeAny, {
3506
+ 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";
3507
+ id: string;
3508
+ createdAt: Date;
3509
+ itemId: string | number;
3510
+ data?: {
3511
+ type: "ACTION_CANCELED";
3512
+ data: {
3513
+ targetItemHistoryId: string;
3514
+ };
3515
+ } | {
3516
+ type: "BUYER_PAID";
3517
+ data: {
3518
+ soldAccountId: string;
3519
+ soldOrderId: string;
3520
+ soldConversationId?: string | null | undefined;
3521
+ };
3522
+ } | {
3523
+ type: "DELIVERED";
3524
+ data: {
3525
+ soldAccountId: string;
3526
+ soldOrderId: string;
3527
+ soldConversationId?: string | null | undefined;
3528
+ };
3529
+ } | {
3530
+ type: "EMPTY";
3531
+ } | {
3532
+ type: "FAILED_TO_PUBLISH";
3533
+ data: {
3534
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3535
+ accountId?: string | null | undefined;
3536
+ reason?: string | null | undefined;
3537
+ fields?: {
3538
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3539
+ autoFixable: boolean;
3540
+ error?: string | null | undefined;
3541
+ }[] | null | undefined;
3542
+ itemHistoryId?: string | null | undefined;
3543
+ };
3544
+ } | {
3545
+ type: "IMAGE_PROCESSING_DONE";
3546
+ data: {
3547
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3548
+ variations?: {
3549
+ fileId: string;
3550
+ seed: number;
3551
+ phash: string;
3552
+ distanceOriginal: number;
3553
+ originalImageUrl: string;
3554
+ originalPhash: string;
3555
+ }[] | null | undefined;
3556
+ originalPhashes?: string[] | null | undefined;
3557
+ };
3558
+ } | {
3559
+ type: "IMPORTED";
3560
+ data: {
3561
+ post: {
3562
+ platformId: string;
3563
+ post: {
3564
+ status?: string | null | undefined;
3565
+ price?: number | null | undefined;
3566
+ currency?: string | null | undefined;
3567
+ brand?: string | null | undefined;
3568
+ catalog?: string | null | undefined;
3569
+ catalogId?: number | null | undefined;
3570
+ colors?: string[] | null | undefined;
3571
+ colorIds?: number[] | null | undefined;
3572
+ description?: string | null | undefined;
3573
+ measurementLength?: number | null | undefined;
3574
+ measurementWidth?: number | null | undefined;
3575
+ packageSizeId?: number | null | undefined;
3576
+ photoUrls?: string[] | null | undefined;
3577
+ size?: string | null | undefined;
3578
+ sizeId?: number | null | undefined;
3579
+ statusId?: number | null | undefined;
3580
+ title?: string | null | undefined;
3581
+ isDraft?: boolean | null | undefined;
3582
+ isArchived?: boolean | null | undefined;
3583
+ availableQuantity?: number | null | undefined;
3584
+ material?: number[] | null | undefined;
3585
+ manufacturerLabelling?: string | null | undefined;
3586
+ labels?: string[] | null | undefined;
3587
+ };
3588
+ createdAt?: Date | null | undefined;
3589
+ platformUrl?: string | null | undefined;
3590
+ };
3591
+ };
3592
+ } | {
3593
+ type: "LIFECYCLE_COMPLETED";
3594
+ data: {
3595
+ accountId: string;
3596
+ };
3597
+ } | {
3598
+ type: "LIFECYCLE_STARTED";
3599
+ data: {
3600
+ accountId: string;
3601
+ caseId: string;
3602
+ };
3603
+ } | {
3604
+ type: "PUBLISHED";
3605
+ data: {
3606
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3607
+ };
3608
+ } | {
3609
+ type: "REPUBLISHING";
3610
+ data: {
3611
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3612
+ publishingDate?: Date | null | undefined;
3613
+ priceDropPayload?: {
3614
+ value: number;
3615
+ type: "PERCENTAGE" | "ABSOLUTE";
3616
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3617
+ roundStep?: number | null | undefined;
3618
+ maxRounds?: number | null | undefined;
3619
+ } | null | undefined;
3620
+ isTransfer?: boolean | null | undefined;
3621
+ targetAccountId?: string | null | undefined;
3622
+ };
3623
+ } | {
3624
+ type: "REPUBLISHING_RETRY";
3625
+ data: {
3626
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3627
+ attemptNumber: number;
3628
+ maxAttempts: number;
3629
+ previousHistoryId: string;
3630
+ originalFailureDate: Date;
3631
+ fields?: {
3632
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3633
+ autoFixable: boolean;
3634
+ error?: string | null | undefined;
3635
+ }[] | null | undefined;
3636
+ priceDropPayload?: {
3637
+ value: number;
3638
+ type: "PERCENTAGE" | "ABSOLUTE";
3639
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3640
+ roundStep?: number | null | undefined;
3641
+ maxRounds?: number | null | undefined;
3642
+ } | null | undefined;
3643
+ };
3644
+ } | {
3645
+ type: "SCHEDULED";
3646
+ data: {
3647
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3648
+ publishingDate?: Date | null | undefined;
3649
+ };
3650
+ } | {
3651
+ type: "SCHEDULED_RETRY";
3652
+ data: {
3653
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3654
+ attemptNumber: number;
3655
+ maxAttempts: number;
3656
+ previousHistoryId: string;
3657
+ originalFailureDate: Date;
3658
+ fields?: {
3659
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3660
+ autoFixable: boolean;
3661
+ error?: string | null | undefined;
3662
+ }[] | null | undefined;
3663
+ };
3664
+ } | {
3665
+ type: "UPDATED";
3666
+ data: {
3667
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3668
+ };
3669
+ } | {
3670
+ type: "UPDATING";
3671
+ data: {
3672
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3673
+ post?: {
3674
+ status?: string | null | undefined;
3675
+ price?: number | null | undefined;
3676
+ currency?: string | null | undefined;
3677
+ brand?: string | null | undefined;
3678
+ catalog?: string | null | undefined;
3679
+ catalogId?: number | null | undefined;
3680
+ colors?: string[] | null | undefined;
3681
+ colorIds?: number[] | null | undefined;
3682
+ description?: string | null | undefined;
3683
+ measurementLength?: number | null | undefined;
3684
+ measurementWidth?: number | null | undefined;
3685
+ packageSizeId?: number | null | undefined;
3686
+ photoUrls?: string[] | null | undefined;
3687
+ size?: string | null | undefined;
3688
+ sizeId?: number | null | undefined;
3689
+ statusId?: number | null | undefined;
3690
+ title?: string | null | undefined;
3691
+ isDraft?: boolean | null | undefined;
3692
+ isArchived?: boolean | null | undefined;
3693
+ availableQuantity?: number | null | undefined;
3694
+ material?: number[] | null | undefined;
3695
+ manufacturerLabelling?: string | null | undefined;
3696
+ labels?: string[] | null | undefined;
3697
+ } | null | undefined;
3698
+ targetDate?: Date | null | undefined;
3699
+ };
3700
+ } | null | undefined;
3701
+ accountId?: string | null | undefined;
3702
+ requestId?: string | null | undefined;
3703
+ targetDate?: Date | null | undefined;
3704
+ }, {
3705
+ 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";
3706
+ id: string;
3707
+ createdAt: Date;
3708
+ itemId: string | number;
3709
+ data?: {
3710
+ type: "ACTION_CANCELED";
3711
+ data: {
3712
+ targetItemHistoryId: string;
3713
+ };
3714
+ } | {
3715
+ type: "BUYER_PAID";
3716
+ data: {
3717
+ soldAccountId: string;
3718
+ soldOrderId: string;
3719
+ soldConversationId?: string | null | undefined;
3720
+ };
3721
+ } | {
3722
+ type: "DELIVERED";
3723
+ data: {
3724
+ soldAccountId: string;
3725
+ soldOrderId: string;
3726
+ soldConversationId?: string | null | undefined;
3727
+ };
3728
+ } | {
3729
+ type: "EMPTY";
3730
+ } | {
3731
+ type: "FAILED_TO_PUBLISH";
3732
+ data: {
3733
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3734
+ accountId?: string | null | undefined;
3735
+ reason?: string | null | undefined;
3736
+ fields?: {
3737
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3738
+ autoFixable: boolean;
3739
+ error?: string | null | undefined;
3740
+ }[] | null | undefined;
3741
+ itemHistoryId?: string | null | undefined;
3742
+ };
3743
+ } | {
3744
+ type: "IMAGE_PROCESSING_DONE";
3745
+ data: {
3746
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3747
+ variations?: {
3748
+ fileId: string;
3749
+ seed: number;
3750
+ phash: string;
3751
+ distanceOriginal: number;
3752
+ originalImageUrl: string;
3753
+ originalPhash: string;
3754
+ }[] | null | undefined;
3755
+ originalPhashes?: string[] | null | undefined;
3756
+ };
3757
+ } | {
3758
+ type: "IMPORTED";
3759
+ data: {
3760
+ post: {
3761
+ platformId: string;
3762
+ post: {
3763
+ status?: string | null | undefined;
3764
+ price?: number | null | undefined;
3765
+ currency?: string | null | undefined;
3766
+ brand?: string | null | undefined;
3767
+ catalog?: string | null | undefined;
3768
+ catalogId?: number | null | undefined;
3769
+ colors?: string[] | null | undefined;
3770
+ colorIds?: number[] | null | undefined;
3771
+ description?: string | null | undefined;
3772
+ measurementLength?: number | null | undefined;
3773
+ measurementWidth?: number | null | undefined;
3774
+ packageSizeId?: number | null | undefined;
3775
+ photoUrls?: string[] | null | undefined;
3776
+ size?: string | null | undefined;
3777
+ sizeId?: number | null | undefined;
3778
+ statusId?: number | null | undefined;
3779
+ title?: string | null | undefined;
3780
+ isDraft?: boolean | null | undefined;
3781
+ isArchived?: boolean | null | undefined;
3782
+ availableQuantity?: number | null | undefined;
3783
+ material?: number[] | null | undefined;
3784
+ manufacturerLabelling?: string | null | undefined;
3785
+ labels?: string[] | null | undefined;
3786
+ };
3787
+ createdAt?: Date | null | undefined;
3788
+ platformUrl?: string | null | undefined;
3789
+ };
3790
+ };
3791
+ } | {
3792
+ type: "LIFECYCLE_COMPLETED";
3793
+ data: {
3794
+ accountId: string;
3795
+ };
3796
+ } | {
3797
+ type: "LIFECYCLE_STARTED";
3798
+ data: {
3799
+ accountId: string;
3800
+ caseId: string;
3801
+ };
3802
+ } | {
3803
+ type: "PUBLISHED";
3804
+ data: {
3805
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3806
+ };
3807
+ } | {
3808
+ type: "REPUBLISHING";
3809
+ data: {
3810
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3811
+ publishingDate?: Date | null | undefined;
3812
+ priceDropPayload?: {
3813
+ value: number;
3814
+ type: "PERCENTAGE" | "ABSOLUTE";
3815
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3816
+ roundStep?: number | null | undefined;
3817
+ maxRounds?: number | null | undefined;
3818
+ } | null | undefined;
3819
+ isTransfer?: boolean | null | undefined;
3820
+ targetAccountId?: string | null | undefined;
3821
+ };
3822
+ } | {
3823
+ type: "REPUBLISHING_RETRY";
3824
+ data: {
3825
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3826
+ attemptNumber: number;
3827
+ maxAttempts: number;
3828
+ previousHistoryId: string;
3829
+ originalFailureDate: Date;
3830
+ fields?: {
3831
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3832
+ autoFixable: boolean;
3833
+ error?: string | null | undefined;
3834
+ }[] | null | undefined;
3835
+ priceDropPayload?: {
3836
+ value: number;
3837
+ type: "PERCENTAGE" | "ABSOLUTE";
3838
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3839
+ roundStep?: number | null | undefined;
3840
+ maxRounds?: number | null | undefined;
3841
+ } | null | undefined;
3842
+ };
3843
+ } | {
3844
+ type: "SCHEDULED";
3845
+ data: {
3846
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3847
+ publishingDate?: Date | null | undefined;
3848
+ };
3849
+ } | {
3850
+ type: "SCHEDULED_RETRY";
3851
+ data: {
3852
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3853
+ attemptNumber: number;
3854
+ maxAttempts: number;
3855
+ previousHistoryId: string;
3856
+ originalFailureDate: Date;
3857
+ fields?: {
3858
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3859
+ autoFixable: boolean;
3860
+ error?: string | null | undefined;
3861
+ }[] | null | undefined;
3862
+ };
3863
+ } | {
3864
+ type: "UPDATED";
3865
+ data: {
3866
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3867
+ };
3868
+ } | {
3869
+ type: "UPDATING";
3870
+ data: {
3871
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3872
+ post?: {
3873
+ status?: string | null | undefined;
3874
+ price?: number | null | undefined;
3875
+ currency?: string | null | undefined;
3876
+ brand?: string | null | undefined;
3877
+ catalog?: string | null | undefined;
3878
+ catalogId?: number | null | undefined;
3879
+ colors?: string[] | null | undefined;
3880
+ colorIds?: number[] | null | undefined;
3881
+ description?: string | null | undefined;
3882
+ measurementLength?: number | null | undefined;
3883
+ measurementWidth?: number | null | undefined;
3884
+ packageSizeId?: number | null | undefined;
3885
+ photoUrls?: string[] | null | undefined;
3886
+ size?: string | null | undefined;
3887
+ sizeId?: number | null | undefined;
3888
+ statusId?: number | null | undefined;
3889
+ title?: string | null | undefined;
3890
+ isDraft?: boolean | null | undefined;
3891
+ isArchived?: boolean | null | undefined;
3892
+ availableQuantity?: number | null | undefined;
3893
+ material?: number[] | null | undefined;
3894
+ manufacturerLabelling?: string | null | undefined;
3895
+ labels?: string[] | null | undefined;
3896
+ } | null | undefined;
3897
+ targetDate?: Date | null | undefined;
3898
+ };
3899
+ } | null | undefined;
3900
+ accountId?: string | null | undefined;
3901
+ requestId?: string | null | undefined;
3902
+ targetDate?: Date | null | undefined;
3903
+ }>, "many">>>;
3904
+ createdAt: z.ZodDate;
3905
+ updatedAt: z.ZodDate;
3906
+ }, "strip", z.ZodTypeAny, {
3907
+ userId: string | number;
3908
+ id: string | number;
3909
+ updatedAt: Date;
3910
+ name: string;
3911
+ createdAt: Date;
3912
+ sold: boolean;
3913
+ state?: number | null | undefined;
3914
+ colorIds?: number[] | null | undefined;
3915
+ description?: string | null | undefined;
3916
+ packageSizeId?: number | null | undefined;
3917
+ sizeId?: number | null | undefined;
3918
+ labels?: {
3919
+ itemId: string | number;
3920
+ labelId: string | number;
3921
+ label?: {
3922
+ id: string | number;
3923
+ name: string;
3924
+ createdAt: Date;
3925
+ isUserLabel: boolean;
3926
+ userId?: string | number | null | undefined;
3927
+ itemCount?: number | null | undefined;
3928
+ parentId?: unknown;
3929
+ } | null | undefined;
3930
+ }[] | null | undefined;
3931
+ files?: {
3932
+ itemId: string | number;
3933
+ fileId: string;
3934
+ index?: number | null | undefined;
3935
+ file?: {
3936
+ path: string;
3937
+ userId: string | number;
3938
+ id: string;
3939
+ createdAt: Date;
3940
+ signedUrl: string;
3941
+ } | null | undefined;
3942
+ }[] | null | undefined;
3943
+ fields?: {
3944
+ value: string;
3945
+ itemId: string | number;
3946
+ fieldId: string | number;
3947
+ }[] | null | undefined;
3948
+ sku?: string | null | undefined;
3949
+ categoryId?: number | null | undefined;
3950
+ brandId?: string | number | null | undefined;
3951
+ sex?: string | null | undefined;
3952
+ purchasePrice?: number | null | undefined;
3953
+ purchaseDate?: Date | null | undefined;
3954
+ purchasePlaceId?: string | number | null | undefined;
3955
+ purchased?: boolean | null | undefined;
3956
+ sellingPrice?: number | null | undefined;
3957
+ sellingDate?: Date | null | undefined;
3958
+ sellingPlaceId?: string | number | null | undefined;
3959
+ estimatedPrice?: number | null | undefined;
3960
+ fees?: {
3961
+ value: number;
3962
+ type: string;
3963
+ userId: string | number;
3964
+ id: string | number;
3965
+ updatedAt: Date;
3966
+ name: string;
3967
+ createdAt: Date;
3968
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
3969
+ startDate: Date;
3970
+ active: boolean;
3971
+ description?: string | null | undefined;
3972
+ itemId?: string | number | null | undefined;
3973
+ endDate?: Date | null | undefined;
3974
+ parentFeeId?: string | number | null | undefined;
3975
+ }[] | null | undefined;
3976
+ feesSum?: number | null | undefined;
3977
+ customerId?: string | number | null | undefined;
3978
+ customer?: {
3979
+ userId: string | number;
3980
+ id: string | number;
3981
+ email: string;
3982
+ firstName: string;
3983
+ lastName: string;
3984
+ birthDate: Date;
3985
+ idNumber: string;
3986
+ phone: string;
3987
+ iban: string;
3988
+ bic: string;
3989
+ phoneVerified: boolean;
3990
+ } | null | undefined;
3991
+ customerType?: string | null | undefined;
3992
+ customerPaid?: boolean | null | undefined;
3993
+ customerPaidDate?: Date | null | undefined;
3994
+ customerPaidType?: string | null | undefined;
3995
+ contractId?: string | number | null | undefined;
3996
+ lastHistory?: {
3997
+ 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";
3998
+ id: string;
3999
+ createdAt: Date;
4000
+ itemId: string | number;
4001
+ data?: {
4002
+ type: "ACTION_CANCELED";
4003
+ data: {
4004
+ targetItemHistoryId: string;
4005
+ };
4006
+ } | {
4007
+ type: "BUYER_PAID";
4008
+ data: {
4009
+ soldAccountId: string;
4010
+ soldOrderId: string;
4011
+ soldConversationId?: string | null | undefined;
4012
+ };
4013
+ } | {
4014
+ type: "DELIVERED";
4015
+ data: {
4016
+ soldAccountId: string;
4017
+ soldOrderId: string;
4018
+ soldConversationId?: string | null | undefined;
4019
+ };
4020
+ } | {
4021
+ type: "EMPTY";
4022
+ } | {
4023
+ type: "FAILED_TO_PUBLISH";
4024
+ data: {
4025
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4026
+ accountId?: string | null | undefined;
4027
+ reason?: string | null | undefined;
4028
+ fields?: {
4029
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4030
+ autoFixable: boolean;
4031
+ error?: string | null | undefined;
4032
+ }[] | null | undefined;
4033
+ itemHistoryId?: string | null | undefined;
4034
+ };
4035
+ } | {
4036
+ type: "IMAGE_PROCESSING_DONE";
4037
+ data: {
4038
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4039
+ variations?: {
4040
+ fileId: string;
4041
+ seed: number;
4042
+ phash: string;
4043
+ distanceOriginal: number;
4044
+ originalImageUrl: string;
4045
+ originalPhash: string;
4046
+ }[] | null | undefined;
4047
+ originalPhashes?: string[] | null | undefined;
4048
+ };
4049
+ } | {
4050
+ type: "IMPORTED";
4051
+ data: {
4052
+ post: {
4053
+ platformId: string;
4054
+ post: {
4055
+ status?: string | null | undefined;
4056
+ price?: number | null | undefined;
4057
+ currency?: string | null | undefined;
4058
+ brand?: string | null | undefined;
4059
+ catalog?: string | null | undefined;
4060
+ catalogId?: number | null | undefined;
4061
+ colors?: string[] | null | undefined;
4062
+ colorIds?: number[] | null | undefined;
4063
+ description?: string | null | undefined;
4064
+ measurementLength?: number | null | undefined;
4065
+ measurementWidth?: number | null | undefined;
4066
+ packageSizeId?: number | null | undefined;
4067
+ photoUrls?: string[] | null | undefined;
4068
+ size?: string | null | undefined;
4069
+ sizeId?: number | null | undefined;
4070
+ statusId?: number | null | undefined;
4071
+ title?: string | null | undefined;
4072
+ isDraft?: boolean | null | undefined;
4073
+ isArchived?: boolean | null | undefined;
4074
+ availableQuantity?: number | null | undefined;
4075
+ material?: number[] | null | undefined;
4076
+ manufacturerLabelling?: string | null | undefined;
4077
+ labels?: string[] | null | undefined;
4078
+ };
4079
+ createdAt?: Date | null | undefined;
4080
+ platformUrl?: string | null | undefined;
4081
+ };
4082
+ };
4083
+ } | {
4084
+ type: "LIFECYCLE_COMPLETED";
4085
+ data: {
4086
+ accountId: string;
4087
+ };
4088
+ } | {
4089
+ type: "LIFECYCLE_STARTED";
4090
+ data: {
4091
+ accountId: string;
4092
+ caseId: string;
4093
+ };
4094
+ } | {
4095
+ type: "PUBLISHED";
4096
+ data: {
4097
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4098
+ };
4099
+ } | {
4100
+ type: "REPUBLISHING";
4101
+ data: {
4102
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4103
+ publishingDate?: Date | null | undefined;
4104
+ priceDropPayload?: {
4105
+ value: number;
4106
+ type: "PERCENTAGE" | "ABSOLUTE";
4107
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4108
+ roundStep?: number | null | undefined;
4109
+ maxRounds?: number | null | undefined;
4110
+ } | null | undefined;
4111
+ isTransfer?: boolean | null | undefined;
4112
+ targetAccountId?: string | null | undefined;
4113
+ };
4114
+ } | {
4115
+ type: "REPUBLISHING_RETRY";
4116
+ data: {
4117
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4118
+ attemptNumber: number;
4119
+ maxAttempts: number;
4120
+ previousHistoryId: string;
4121
+ originalFailureDate: Date;
4122
+ fields?: {
4123
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4124
+ autoFixable: boolean;
4125
+ error?: string | null | undefined;
4126
+ }[] | null | undefined;
4127
+ priceDropPayload?: {
4128
+ value: number;
4129
+ type: "PERCENTAGE" | "ABSOLUTE";
4130
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4131
+ roundStep?: number | null | undefined;
4132
+ maxRounds?: number | null | undefined;
4133
+ } | null | undefined;
4134
+ };
4135
+ } | {
4136
+ type: "SCHEDULED";
4137
+ data: {
4138
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4139
+ publishingDate?: Date | null | undefined;
4140
+ };
4141
+ } | {
4142
+ type: "SCHEDULED_RETRY";
4143
+ data: {
4144
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4145
+ attemptNumber: number;
4146
+ maxAttempts: number;
4147
+ previousHistoryId: string;
4148
+ originalFailureDate: Date;
4149
+ fields?: {
4150
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4151
+ autoFixable: boolean;
4152
+ error?: string | null | undefined;
4153
+ }[] | null | undefined;
4154
+ };
4155
+ } | {
4156
+ type: "UPDATED";
4157
+ data: {
4158
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4159
+ };
4160
+ } | {
4161
+ type: "UPDATING";
4162
+ data: {
4163
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4164
+ post?: {
4165
+ status?: string | null | undefined;
4166
+ price?: number | null | undefined;
4167
+ currency?: string | null | undefined;
4168
+ brand?: string | null | undefined;
4169
+ catalog?: string | null | undefined;
4170
+ catalogId?: number | null | undefined;
4171
+ colors?: string[] | null | undefined;
4172
+ colorIds?: number[] | null | undefined;
4173
+ description?: string | null | undefined;
4174
+ measurementLength?: number | null | undefined;
4175
+ measurementWidth?: number | null | undefined;
4176
+ packageSizeId?: number | null | undefined;
4177
+ photoUrls?: string[] | null | undefined;
4178
+ size?: string | null | undefined;
4179
+ sizeId?: number | null | undefined;
4180
+ statusId?: number | null | undefined;
4181
+ title?: string | null | undefined;
4182
+ isDraft?: boolean | null | undefined;
4183
+ isArchived?: boolean | null | undefined;
4184
+ availableQuantity?: number | null | undefined;
4185
+ material?: number[] | null | undefined;
4186
+ manufacturerLabelling?: string | null | undefined;
4187
+ labels?: string[] | null | undefined;
4188
+ } | null | undefined;
4189
+ targetDate?: Date | null | undefined;
4190
+ };
4191
+ } | null | undefined;
4192
+ accountId?: string | null | undefined;
4193
+ requestId?: string | null | undefined;
4194
+ targetDate?: Date | null | undefined;
4195
+ } | null | undefined;
4196
+ platforms?: {
4197
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
4198
+ id: string;
4199
+ updatedAt: Date;
4200
+ createdAt: Date;
4201
+ accountId: string;
4202
+ itemId: string | number;
4203
+ platformId: string;
4204
+ platformUrl: string;
4205
+ platformPrice: number;
4206
+ publishedAt: Date;
4207
+ conversationId?: string | null | undefined;
4208
+ account?: {
4209
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
4210
+ userId: string | number;
4211
+ name: string;
4212
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4213
+ accountId: string;
4214
+ locale?: string | null | undefined;
4215
+ night?: {
4216
+ startsAt: Date;
4217
+ endsAt: Date;
4218
+ } | null | undefined;
4219
+ favoritesMaxDelay?: number | null | undefined;
4220
+ ordersMaxDelay?: number | null | undefined;
4221
+ conversationsMaxDelay?: number | null | undefined;
4222
+ } | null | undefined;
4223
+ viewsCount?: number | null | undefined;
4224
+ favoritesCount?: number | null | undefined;
4225
+ }[] | null | undefined;
4226
+ history?: {
4227
+ 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";
4228
+ id: string;
4229
+ createdAt: Date;
4230
+ itemId: string | number;
4231
+ data?: {
4232
+ type: "ACTION_CANCELED";
4233
+ data: {
4234
+ targetItemHistoryId: string;
4235
+ };
4236
+ } | {
4237
+ type: "BUYER_PAID";
4238
+ data: {
4239
+ soldAccountId: string;
4240
+ soldOrderId: string;
4241
+ soldConversationId?: string | null | undefined;
4242
+ };
4243
+ } | {
4244
+ type: "DELIVERED";
4245
+ data: {
4246
+ soldAccountId: string;
4247
+ soldOrderId: string;
4248
+ soldConversationId?: string | null | undefined;
4249
+ };
4250
+ } | {
4251
+ type: "EMPTY";
4252
+ } | {
4253
+ type: "FAILED_TO_PUBLISH";
4254
+ data: {
4255
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4256
+ accountId?: string | null | undefined;
4257
+ reason?: string | null | undefined;
4258
+ fields?: {
4259
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4260
+ autoFixable: boolean;
4261
+ error?: string | null | undefined;
4262
+ }[] | null | undefined;
4263
+ itemHistoryId?: string | null | undefined;
4264
+ };
4265
+ } | {
4266
+ type: "IMAGE_PROCESSING_DONE";
4267
+ data: {
4268
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4269
+ variations?: {
4270
+ fileId: string;
4271
+ seed: number;
4272
+ phash: string;
4273
+ distanceOriginal: number;
4274
+ originalImageUrl: string;
4275
+ originalPhash: string;
4276
+ }[] | null | undefined;
4277
+ originalPhashes?: string[] | null | undefined;
4278
+ };
4279
+ } | {
4280
+ type: "IMPORTED";
4281
+ data: {
4282
+ post: {
4283
+ platformId: string;
4284
+ post: {
4285
+ status?: string | null | undefined;
4286
+ price?: number | null | undefined;
4287
+ currency?: string | null | undefined;
4288
+ brand?: string | null | undefined;
4289
+ catalog?: string | null | undefined;
4290
+ catalogId?: number | null | undefined;
4291
+ colors?: string[] | null | undefined;
4292
+ colorIds?: number[] | null | undefined;
4293
+ description?: string | null | undefined;
4294
+ measurementLength?: number | null | undefined;
4295
+ measurementWidth?: number | null | undefined;
4296
+ packageSizeId?: number | null | undefined;
4297
+ photoUrls?: string[] | null | undefined;
4298
+ size?: string | null | undefined;
4299
+ sizeId?: number | null | undefined;
4300
+ statusId?: number | null | undefined;
4301
+ title?: string | null | undefined;
4302
+ isDraft?: boolean | null | undefined;
4303
+ isArchived?: boolean | null | undefined;
4304
+ availableQuantity?: number | null | undefined;
4305
+ material?: number[] | null | undefined;
4306
+ manufacturerLabelling?: string | null | undefined;
4307
+ labels?: string[] | null | undefined;
4308
+ };
4309
+ createdAt?: Date | null | undefined;
4310
+ platformUrl?: string | null | undefined;
4311
+ };
4312
+ };
4313
+ } | {
4314
+ type: "LIFECYCLE_COMPLETED";
4315
+ data: {
4316
+ accountId: string;
4317
+ };
4318
+ } | {
4319
+ type: "LIFECYCLE_STARTED";
4320
+ data: {
4321
+ accountId: string;
4322
+ caseId: string;
4323
+ };
4324
+ } | {
4325
+ type: "PUBLISHED";
4326
+ data: {
4327
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4328
+ };
4329
+ } | {
4330
+ type: "REPUBLISHING";
4331
+ data: {
4332
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4333
+ publishingDate?: Date | null | undefined;
4334
+ priceDropPayload?: {
4335
+ value: number;
4336
+ type: "PERCENTAGE" | "ABSOLUTE";
4337
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4338
+ roundStep?: number | null | undefined;
4339
+ maxRounds?: number | null | undefined;
4340
+ } | null | undefined;
4341
+ isTransfer?: boolean | null | undefined;
4342
+ targetAccountId?: string | null | undefined;
4343
+ };
4344
+ } | {
4345
+ type: "REPUBLISHING_RETRY";
4346
+ data: {
4347
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4348
+ attemptNumber: number;
4349
+ maxAttempts: number;
4350
+ previousHistoryId: string;
4351
+ originalFailureDate: Date;
4352
+ fields?: {
4353
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4354
+ autoFixable: boolean;
4355
+ error?: string | null | undefined;
4356
+ }[] | null | undefined;
4357
+ priceDropPayload?: {
4358
+ value: number;
4359
+ type: "PERCENTAGE" | "ABSOLUTE";
4360
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4361
+ roundStep?: number | null | undefined;
4362
+ maxRounds?: number | null | undefined;
4363
+ } | null | undefined;
4364
+ };
4365
+ } | {
4366
+ type: "SCHEDULED";
4367
+ data: {
4368
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4369
+ publishingDate?: Date | null | undefined;
4370
+ };
4371
+ } | {
4372
+ type: "SCHEDULED_RETRY";
4373
+ data: {
4374
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4375
+ attemptNumber: number;
4376
+ maxAttempts: number;
4377
+ previousHistoryId: string;
4378
+ originalFailureDate: Date;
4379
+ fields?: {
4380
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4381
+ autoFixable: boolean;
4382
+ error?: string | null | undefined;
4383
+ }[] | null | undefined;
4384
+ };
4385
+ } | {
4386
+ type: "UPDATED";
4387
+ data: {
4388
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4389
+ };
4390
+ } | {
4391
+ type: "UPDATING";
4392
+ data: {
4393
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4394
+ post?: {
4395
+ status?: string | null | undefined;
4396
+ price?: number | null | undefined;
4397
+ currency?: string | null | undefined;
4398
+ brand?: string | null | undefined;
4399
+ catalog?: string | null | undefined;
4400
+ catalogId?: number | null | undefined;
4401
+ colors?: string[] | null | undefined;
4402
+ colorIds?: number[] | null | undefined;
4403
+ description?: string | null | undefined;
4404
+ measurementLength?: number | null | undefined;
4405
+ measurementWidth?: number | null | undefined;
4406
+ packageSizeId?: number | null | undefined;
4407
+ photoUrls?: string[] | null | undefined;
4408
+ size?: string | null | undefined;
4409
+ sizeId?: number | null | undefined;
4410
+ statusId?: number | null | undefined;
4411
+ title?: string | null | undefined;
4412
+ isDraft?: boolean | null | undefined;
4413
+ isArchived?: boolean | null | undefined;
4414
+ availableQuantity?: number | null | undefined;
4415
+ material?: number[] | null | undefined;
4416
+ manufacturerLabelling?: string | null | undefined;
4417
+ labels?: string[] | null | undefined;
4418
+ } | null | undefined;
4419
+ targetDate?: Date | null | undefined;
4420
+ };
4421
+ } | null | undefined;
4422
+ accountId?: string | null | undefined;
4423
+ requestId?: string | null | undefined;
4424
+ targetDate?: Date | null | undefined;
4425
+ }[] | null | undefined;
4426
+ }, {
4427
+ userId: string | number;
4428
+ id: string | number;
4429
+ updatedAt: Date;
4430
+ name: string;
4431
+ createdAt: Date;
4432
+ sold: boolean;
4433
+ state?: number | null | undefined;
4434
+ colorIds?: number[] | null | undefined;
4435
+ description?: string | null | undefined;
4436
+ packageSizeId?: number | null | undefined;
4437
+ sizeId?: number | null | undefined;
4438
+ labels?: {
4439
+ itemId: string | number;
4440
+ labelId: string | number;
4441
+ label?: {
4442
+ id: string | number;
4443
+ name: string;
4444
+ createdAt: Date;
4445
+ isUserLabel: boolean;
4446
+ userId?: string | number | null | undefined;
4447
+ itemCount?: number | null | undefined;
4448
+ parentId?: unknown;
4449
+ } | null | undefined;
4450
+ }[] | null | undefined;
4451
+ files?: {
4452
+ itemId: string | number;
4453
+ fileId: string;
4454
+ index?: number | null | undefined;
4455
+ file?: {
4456
+ path: string;
4457
+ userId: string | number;
4458
+ id: string;
4459
+ createdAt: Date;
4460
+ signedUrl: string;
4461
+ } | null | undefined;
4462
+ }[] | null | undefined;
4463
+ fields?: {
4464
+ value: string;
4465
+ itemId: string | number;
4466
+ fieldId: string | number;
4467
+ }[] | null | undefined;
4468
+ sku?: string | null | undefined;
4469
+ categoryId?: number | null | undefined;
4470
+ brandId?: string | number | null | undefined;
4471
+ sex?: string | null | undefined;
4472
+ purchasePrice?: number | null | undefined;
4473
+ purchaseDate?: Date | null | undefined;
4474
+ purchasePlaceId?: string | number | null | undefined;
4475
+ purchased?: boolean | null | undefined;
4476
+ sellingPrice?: number | null | undefined;
4477
+ sellingDate?: Date | null | undefined;
4478
+ sellingPlaceId?: string | number | null | undefined;
4479
+ estimatedPrice?: number | null | undefined;
4480
+ fees?: {
4481
+ value: number;
4482
+ type: string;
4483
+ userId: string | number;
4484
+ id: string | number;
4485
+ updatedAt: Date;
4486
+ name: string;
4487
+ createdAt: Date;
4488
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
4489
+ startDate: Date;
4490
+ active: boolean;
4491
+ description?: string | null | undefined;
4492
+ itemId?: string | number | null | undefined;
4493
+ endDate?: Date | null | undefined;
4494
+ parentFeeId?: string | number | null | undefined;
4495
+ }[] | null | undefined;
4496
+ feesSum?: number | null | undefined;
4497
+ customerId?: string | number | null | undefined;
4498
+ customer?: {
4499
+ userId: string | number;
4500
+ id: string | number;
4501
+ email: string;
4502
+ firstName: string;
4503
+ lastName: string;
4504
+ birthDate: Date;
4505
+ idNumber: string;
4506
+ phone: string;
4507
+ iban: string;
4508
+ bic: string;
4509
+ phoneVerified: boolean;
4510
+ } | null | undefined;
4511
+ customerType?: string | null | undefined;
4512
+ customerPaid?: boolean | null | undefined;
4513
+ customerPaidDate?: Date | null | undefined;
4514
+ customerPaidType?: string | null | undefined;
4515
+ contractId?: string | number | null | undefined;
4516
+ lastHistory?: {
4517
+ 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";
4518
+ id: string;
4519
+ createdAt: Date;
4520
+ itemId: string | number;
4521
+ data?: {
4522
+ type: "ACTION_CANCELED";
4523
+ data: {
4524
+ targetItemHistoryId: string;
4525
+ };
4526
+ } | {
4527
+ type: "BUYER_PAID";
4528
+ data: {
4529
+ soldAccountId: string;
4530
+ soldOrderId: string;
4531
+ soldConversationId?: string | null | undefined;
4532
+ };
4533
+ } | {
4534
+ type: "DELIVERED";
4535
+ data: {
4536
+ soldAccountId: string;
4537
+ soldOrderId: string;
4538
+ soldConversationId?: string | null | undefined;
4539
+ };
4540
+ } | {
4541
+ type: "EMPTY";
4542
+ } | {
4543
+ type: "FAILED_TO_PUBLISH";
4544
+ data: {
4545
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4546
+ accountId?: string | null | undefined;
4547
+ reason?: string | null | undefined;
4548
+ fields?: {
4549
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4550
+ autoFixable: boolean;
4551
+ error?: string | null | undefined;
4552
+ }[] | null | undefined;
4553
+ itemHistoryId?: string | null | undefined;
4554
+ };
4555
+ } | {
4556
+ type: "IMAGE_PROCESSING_DONE";
4557
+ data: {
4558
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4559
+ variations?: {
4560
+ fileId: string;
4561
+ seed: number;
4562
+ phash: string;
4563
+ distanceOriginal: number;
4564
+ originalImageUrl: string;
4565
+ originalPhash: string;
4566
+ }[] | null | undefined;
4567
+ originalPhashes?: string[] | null | undefined;
4568
+ };
4569
+ } | {
4570
+ type: "IMPORTED";
4571
+ data: {
4572
+ post: {
4573
+ platformId: string;
4574
+ post: {
4575
+ status?: string | null | undefined;
4576
+ price?: number | null | undefined;
4577
+ currency?: string | null | undefined;
4578
+ brand?: string | null | undefined;
4579
+ catalog?: string | null | undefined;
4580
+ catalogId?: number | null | undefined;
4581
+ colors?: string[] | null | undefined;
4582
+ colorIds?: number[] | null | undefined;
4583
+ description?: string | null | undefined;
4584
+ measurementLength?: number | null | undefined;
4585
+ measurementWidth?: number | null | undefined;
4586
+ packageSizeId?: number | null | undefined;
4587
+ photoUrls?: string[] | null | undefined;
4588
+ size?: string | null | undefined;
4589
+ sizeId?: number | null | undefined;
4590
+ statusId?: number | null | undefined;
4591
+ title?: string | null | undefined;
4592
+ isDraft?: boolean | null | undefined;
4593
+ isArchived?: boolean | null | undefined;
4594
+ availableQuantity?: number | null | undefined;
4595
+ material?: number[] | null | undefined;
4596
+ manufacturerLabelling?: string | null | undefined;
4597
+ labels?: string[] | null | undefined;
4598
+ };
4599
+ createdAt?: Date | null | undefined;
4600
+ platformUrl?: string | null | undefined;
4601
+ };
4602
+ };
4603
+ } | {
4604
+ type: "LIFECYCLE_COMPLETED";
4605
+ data: {
4606
+ accountId: string;
4607
+ };
4608
+ } | {
4609
+ type: "LIFECYCLE_STARTED";
4610
+ data: {
4611
+ accountId: string;
4612
+ caseId: string;
4613
+ };
4614
+ } | {
4615
+ type: "PUBLISHED";
4616
+ data: {
4617
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4618
+ };
4619
+ } | {
4620
+ type: "REPUBLISHING";
4621
+ data: {
4622
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4623
+ publishingDate?: Date | null | undefined;
4624
+ priceDropPayload?: {
4625
+ value: number;
4626
+ type: "PERCENTAGE" | "ABSOLUTE";
4627
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4628
+ roundStep?: number | null | undefined;
4629
+ maxRounds?: number | null | undefined;
4630
+ } | null | undefined;
4631
+ isTransfer?: boolean | null | undefined;
4632
+ targetAccountId?: string | null | undefined;
4633
+ };
4634
+ } | {
4635
+ type: "REPUBLISHING_RETRY";
4636
+ data: {
4637
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4638
+ attemptNumber: number;
4639
+ maxAttempts: number;
4640
+ previousHistoryId: string;
4641
+ originalFailureDate: Date;
4642
+ fields?: {
4643
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4644
+ autoFixable: boolean;
4645
+ error?: string | null | undefined;
4646
+ }[] | null | undefined;
4647
+ priceDropPayload?: {
4648
+ value: number;
4649
+ type: "PERCENTAGE" | "ABSOLUTE";
4650
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4651
+ roundStep?: number | null | undefined;
4652
+ maxRounds?: number | null | undefined;
4653
+ } | null | undefined;
4654
+ };
4655
+ } | {
4656
+ type: "SCHEDULED";
4657
+ data: {
4658
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4659
+ publishingDate?: Date | null | undefined;
4660
+ };
4661
+ } | {
4662
+ type: "SCHEDULED_RETRY";
4663
+ data: {
4664
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4665
+ attemptNumber: number;
4666
+ maxAttempts: number;
4667
+ previousHistoryId: string;
4668
+ originalFailureDate: Date;
4669
+ fields?: {
4670
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4671
+ autoFixable: boolean;
4672
+ error?: string | null | undefined;
4673
+ }[] | null | undefined;
4674
+ };
4675
+ } | {
4676
+ type: "UPDATED";
4677
+ data: {
4678
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4679
+ };
4680
+ } | {
4681
+ type: "UPDATING";
4682
+ data: {
4683
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4684
+ post?: {
4685
+ status?: string | null | undefined;
4686
+ price?: number | null | undefined;
4687
+ currency?: string | null | undefined;
4688
+ brand?: string | null | undefined;
4689
+ catalog?: string | null | undefined;
4690
+ catalogId?: number | null | undefined;
4691
+ colors?: string[] | null | undefined;
4692
+ colorIds?: number[] | null | undefined;
4693
+ description?: string | null | undefined;
4694
+ measurementLength?: number | null | undefined;
4695
+ measurementWidth?: number | null | undefined;
4696
+ packageSizeId?: number | null | undefined;
4697
+ photoUrls?: string[] | null | undefined;
4698
+ size?: string | null | undefined;
4699
+ sizeId?: number | null | undefined;
4700
+ statusId?: number | null | undefined;
4701
+ title?: string | null | undefined;
4702
+ isDraft?: boolean | null | undefined;
4703
+ isArchived?: boolean | null | undefined;
4704
+ availableQuantity?: number | null | undefined;
4705
+ material?: number[] | null | undefined;
4706
+ manufacturerLabelling?: string | null | undefined;
4707
+ labels?: string[] | null | undefined;
4708
+ } | null | undefined;
4709
+ targetDate?: Date | null | undefined;
4710
+ };
4711
+ } | null | undefined;
4712
+ accountId?: string | null | undefined;
4713
+ requestId?: string | null | undefined;
4714
+ targetDate?: Date | null | undefined;
4715
+ } | null | undefined;
4716
+ platforms?: {
4717
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
4718
+ id: string;
4719
+ updatedAt: Date;
4720
+ createdAt: Date;
4721
+ accountId: string;
4722
+ itemId: string | number;
4723
+ platformId: string;
4724
+ platformUrl: string;
4725
+ platformPrice: number;
4726
+ publishedAt: Date;
4727
+ conversationId?: string | null | undefined;
4728
+ account?: {
4729
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
4730
+ userId: string | number;
4731
+ name: string;
4732
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4733
+ accountId: string;
4734
+ locale?: string | null | undefined;
4735
+ night?: {
4736
+ startsAt: Date;
4737
+ endsAt: Date;
4738
+ } | null | undefined;
4739
+ favoritesMaxDelay?: number | null | undefined;
4740
+ ordersMaxDelay?: number | null | undefined;
4741
+ conversationsMaxDelay?: number | null | undefined;
4742
+ } | null | undefined;
4743
+ viewsCount?: number | null | undefined;
4744
+ favoritesCount?: number | null | undefined;
4745
+ }[] | null | undefined;
4746
+ history?: {
4747
+ 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";
4748
+ id: string;
4749
+ createdAt: Date;
4750
+ itemId: string | number;
4751
+ data?: {
4752
+ type: "ACTION_CANCELED";
4753
+ data: {
4754
+ targetItemHistoryId: string;
4755
+ };
4756
+ } | {
4757
+ type: "BUYER_PAID";
4758
+ data: {
4759
+ soldAccountId: string;
4760
+ soldOrderId: string;
4761
+ soldConversationId?: string | null | undefined;
4762
+ };
4763
+ } | {
4764
+ type: "DELIVERED";
4765
+ data: {
4766
+ soldAccountId: string;
4767
+ soldOrderId: string;
4768
+ soldConversationId?: string | null | undefined;
4769
+ };
4770
+ } | {
4771
+ type: "EMPTY";
4772
+ } | {
4773
+ type: "FAILED_TO_PUBLISH";
4774
+ data: {
4775
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4776
+ accountId?: string | null | undefined;
4777
+ reason?: string | null | undefined;
4778
+ fields?: {
4779
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4780
+ autoFixable: boolean;
4781
+ error?: string | null | undefined;
4782
+ }[] | null | undefined;
4783
+ itemHistoryId?: string | null | undefined;
4784
+ };
4785
+ } | {
4786
+ type: "IMAGE_PROCESSING_DONE";
4787
+ data: {
4788
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4789
+ variations?: {
2272
4790
  fileId: string;
2273
4791
  seed: number;
2274
4792
  phash: string;
@@ -2384,42 +4902,50 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2384
4902
  error?: string | null | undefined;
2385
4903
  }[] | null | undefined;
2386
4904
  };
4905
+ } | {
4906
+ type: "UPDATED";
4907
+ data: {
4908
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4909
+ };
4910
+ } | {
4911
+ type: "UPDATING";
4912
+ data: {
4913
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4914
+ post?: {
4915
+ status?: string | null | undefined;
4916
+ price?: number | null | undefined;
4917
+ currency?: string | null | undefined;
4918
+ brand?: string | null | undefined;
4919
+ catalog?: string | null | undefined;
4920
+ catalogId?: number | null | undefined;
4921
+ colors?: string[] | null | undefined;
4922
+ colorIds?: number[] | null | undefined;
4923
+ description?: string | null | undefined;
4924
+ measurementLength?: number | null | undefined;
4925
+ measurementWidth?: number | null | undefined;
4926
+ packageSizeId?: number | null | undefined;
4927
+ photoUrls?: string[] | null | undefined;
4928
+ size?: string | null | undefined;
4929
+ sizeId?: number | null | undefined;
4930
+ statusId?: number | null | undefined;
4931
+ title?: string | null | undefined;
4932
+ isDraft?: boolean | null | undefined;
4933
+ isArchived?: boolean | null | undefined;
4934
+ availableQuantity?: number | null | undefined;
4935
+ material?: number[] | null | undefined;
4936
+ manufacturerLabelling?: string | null | undefined;
4937
+ labels?: string[] | null | undefined;
4938
+ } | null | undefined;
4939
+ targetDate?: Date | null | undefined;
4940
+ };
2387
4941
  } | null | undefined;
2388
4942
  accountId?: string | null | undefined;
2389
4943
  requestId?: string | null | undefined;
2390
4944
  targetDate?: Date | null | undefined;
2391
- } | null | undefined;
2392
- platforms?: {
2393
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2394
- id: string;
2395
- updatedAt: Date;
2396
- createdAt: Date;
2397
- accountId: string;
2398
- itemId: string | number;
2399
- platformId: string;
2400
- platformUrl: string;
2401
- platformPrice: number;
2402
- publishedAt: Date;
2403
- conversationId?: string | null | undefined;
2404
- account?: {
2405
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
2406
- userId: string | number;
2407
- name: string;
2408
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2409
- accountId: string;
2410
- locale?: string | null | undefined;
2411
- night?: {
2412
- startsAt: Date;
2413
- endsAt: Date;
2414
- } | null | undefined;
2415
- favoritesMaxDelay?: number | null | undefined;
2416
- ordersMaxDelay?: number | null | undefined;
2417
- conversationsMaxDelay?: number | null | undefined;
2418
- } | null | undefined;
2419
- viewsCount?: number | null | undefined;
2420
- favoritesCount?: number | null | undefined;
2421
4945
  }[] | null | undefined;
2422
- }, {
4946
+ }>, "many">;
4947
+ }, "strip", z.ZodTypeAny, {
4948
+ items: {
2423
4949
  userId: string | number;
2424
4950
  id: string | number;
2425
4951
  updatedAt: Date;
@@ -2668,134 +5194,78 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2668
5194
  error?: string | null | undefined;
2669
5195
  }[] | null | undefined;
2670
5196
  };
5197
+ } | {
5198
+ type: "UPDATED";
5199
+ data: {
5200
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5201
+ };
5202
+ } | {
5203
+ type: "UPDATING";
5204
+ data: {
5205
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5206
+ post?: {
5207
+ status?: string | null | undefined;
5208
+ price?: number | null | undefined;
5209
+ currency?: string | null | undefined;
5210
+ brand?: string | null | undefined;
5211
+ catalog?: string | null | undefined;
5212
+ catalogId?: number | null | undefined;
5213
+ colors?: string[] | null | undefined;
5214
+ colorIds?: number[] | null | undefined;
5215
+ description?: string | null | undefined;
5216
+ measurementLength?: number | null | undefined;
5217
+ measurementWidth?: number | null | undefined;
5218
+ packageSizeId?: number | null | undefined;
5219
+ photoUrls?: string[] | null | undefined;
5220
+ size?: string | null | undefined;
5221
+ sizeId?: number | null | undefined;
5222
+ statusId?: number | null | undefined;
5223
+ title?: string | null | undefined;
5224
+ isDraft?: boolean | null | undefined;
5225
+ isArchived?: boolean | null | undefined;
5226
+ availableQuantity?: number | null | undefined;
5227
+ material?: number[] | null | undefined;
5228
+ manufacturerLabelling?: string | null | undefined;
5229
+ labels?: string[] | null | undefined;
5230
+ } | null | undefined;
5231
+ targetDate?: Date | null | undefined;
5232
+ };
2671
5233
  } | null | undefined;
2672
5234
  accountId?: string | null | undefined;
2673
5235
  requestId?: string | null | undefined;
2674
5236
  targetDate?: Date | null | undefined;
2675
5237
  } | null | undefined;
2676
- platforms?: {
2677
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2678
- id: string;
2679
- updatedAt: Date;
2680
- createdAt: Date;
2681
- accountId: string;
2682
- itemId: string | number;
2683
- platformId: string;
2684
- platformUrl: string;
2685
- platformPrice: number;
2686
- publishedAt: Date;
2687
- conversationId?: string | null | undefined;
2688
- account?: {
2689
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
2690
- userId: string | number;
2691
- name: string;
2692
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2693
- accountId: string;
2694
- locale?: string | null | undefined;
2695
- night?: {
2696
- startsAt: Date;
2697
- endsAt: Date;
2698
- } | null | undefined;
2699
- favoritesMaxDelay?: number | null | undefined;
2700
- ordersMaxDelay?: number | null | undefined;
2701
- conversationsMaxDelay?: number | null | undefined;
2702
- } | null | undefined;
2703
- viewsCount?: number | null | undefined;
2704
- favoritesCount?: number | null | undefined;
2705
- }[] | null | undefined;
2706
- }>, "many">;
2707
- }, "strip", z.ZodTypeAny, {
2708
- items: {
2709
- userId: string | number;
2710
- id: string | number;
2711
- updatedAt: Date;
2712
- name: string;
2713
- createdAt: Date;
2714
- sold: boolean;
2715
- state?: number | null | undefined;
2716
- colorIds?: number[] | null | undefined;
2717
- description?: string | null | undefined;
2718
- packageSizeId?: number | null | undefined;
2719
- sizeId?: number | null | undefined;
2720
- labels?: {
2721
- itemId: string | number;
2722
- labelId: string | number;
2723
- label?: {
2724
- id: string | number;
2725
- name: string;
2726
- createdAt: Date;
2727
- isUserLabel: boolean;
2728
- userId?: string | number | null | undefined;
2729
- itemCount?: number | null | undefined;
2730
- parentId?: unknown;
2731
- } | null | undefined;
2732
- }[] | null | undefined;
2733
- files?: {
2734
- itemId: string | number;
2735
- fileId: string;
2736
- index?: number | null | undefined;
2737
- file?: {
2738
- path: string;
2739
- userId: string | number;
2740
- id: string;
2741
- createdAt: Date;
2742
- signedUrl: string;
2743
- } | null | undefined;
2744
- }[] | null | undefined;
2745
- fields?: {
2746
- value: string;
2747
- itemId: string | number;
2748
- fieldId: string | number;
2749
- }[] | null | undefined;
2750
- sku?: string | null | undefined;
2751
- categoryId?: number | null | undefined;
2752
- brandId?: string | number | null | undefined;
2753
- sex?: string | null | undefined;
2754
- purchasePrice?: number | null | undefined;
2755
- purchaseDate?: Date | null | undefined;
2756
- purchasePlaceId?: string | number | null | undefined;
2757
- purchased?: boolean | null | undefined;
2758
- sellingPrice?: number | null | undefined;
2759
- sellingDate?: Date | null | undefined;
2760
- sellingPlaceId?: string | number | null | undefined;
2761
- estimatedPrice?: number | null | undefined;
2762
- fees?: {
2763
- value: number;
2764
- type: string;
2765
- userId: string | number;
2766
- id: string | number;
2767
- updatedAt: Date;
2768
- name: string;
2769
- createdAt: Date;
2770
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
2771
- startDate: Date;
2772
- active: boolean;
2773
- description?: string | null | undefined;
2774
- itemId?: string | number | null | undefined;
2775
- endDate?: Date | null | undefined;
2776
- parentFeeId?: string | number | null | undefined;
2777
- }[] | null | undefined;
2778
- feesSum?: number | null | undefined;
2779
- customerId?: string | number | null | undefined;
2780
- customer?: {
2781
- userId: string | number;
2782
- id: string | number;
2783
- email: string;
2784
- firstName: string;
2785
- lastName: string;
2786
- birthDate: Date;
2787
- idNumber: string;
2788
- phone: string;
2789
- iban: string;
2790
- bic: string;
2791
- phoneVerified: boolean;
2792
- } | null | undefined;
2793
- customerType?: string | null | undefined;
2794
- customerPaid?: boolean | null | undefined;
2795
- customerPaidDate?: Date | null | undefined;
2796
- customerPaidType?: string | null | undefined;
2797
- contractId?: string | number | null | undefined;
2798
- lastHistory?: {
5238
+ platforms?: {
5239
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
5240
+ id: string;
5241
+ updatedAt: Date;
5242
+ createdAt: Date;
5243
+ accountId: string;
5244
+ itemId: string | number;
5245
+ platformId: string;
5246
+ platformUrl: string;
5247
+ platformPrice: number;
5248
+ publishedAt: Date;
5249
+ conversationId?: string | null | undefined;
5250
+ account?: {
5251
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
5252
+ userId: string | number;
5253
+ name: string;
5254
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5255
+ accountId: string;
5256
+ locale?: string | null | undefined;
5257
+ night?: {
5258
+ startsAt: Date;
5259
+ endsAt: Date;
5260
+ } | null | undefined;
5261
+ favoritesMaxDelay?: number | null | undefined;
5262
+ ordersMaxDelay?: number | null | undefined;
5263
+ conversationsMaxDelay?: number | null | undefined;
5264
+ } | null | undefined;
5265
+ viewsCount?: number | null | undefined;
5266
+ favoritesCount?: number | null | undefined;
5267
+ }[] | null | undefined;
5268
+ history?: {
2799
5269
  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";
2800
5270
  id: string;
2801
5271
  createdAt: Date;
@@ -2954,40 +5424,46 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2954
5424
  error?: string | null | undefined;
2955
5425
  }[] | null | undefined;
2956
5426
  };
5427
+ } | {
5428
+ type: "UPDATED";
5429
+ data: {
5430
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5431
+ };
5432
+ } | {
5433
+ type: "UPDATING";
5434
+ data: {
5435
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5436
+ post?: {
5437
+ status?: string | null | undefined;
5438
+ price?: number | null | undefined;
5439
+ currency?: string | null | undefined;
5440
+ brand?: string | null | undefined;
5441
+ catalog?: string | null | undefined;
5442
+ catalogId?: number | null | undefined;
5443
+ colors?: string[] | null | undefined;
5444
+ colorIds?: number[] | null | undefined;
5445
+ description?: string | null | undefined;
5446
+ measurementLength?: number | null | undefined;
5447
+ measurementWidth?: number | null | undefined;
5448
+ packageSizeId?: number | null | undefined;
5449
+ photoUrls?: string[] | null | undefined;
5450
+ size?: string | null | undefined;
5451
+ sizeId?: number | null | undefined;
5452
+ statusId?: number | null | undefined;
5453
+ title?: string | null | undefined;
5454
+ isDraft?: boolean | null | undefined;
5455
+ isArchived?: boolean | null | undefined;
5456
+ availableQuantity?: number | null | undefined;
5457
+ material?: number[] | null | undefined;
5458
+ manufacturerLabelling?: string | null | undefined;
5459
+ labels?: string[] | null | undefined;
5460
+ } | null | undefined;
5461
+ targetDate?: Date | null | undefined;
5462
+ };
2957
5463
  } | null | undefined;
2958
5464
  accountId?: string | null | undefined;
2959
5465
  requestId?: string | null | undefined;
2960
5466
  targetDate?: Date | null | undefined;
2961
- } | null | undefined;
2962
- platforms?: {
2963
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2964
- id: string;
2965
- updatedAt: Date;
2966
- createdAt: Date;
2967
- accountId: string;
2968
- itemId: string | number;
2969
- platformId: string;
2970
- platformUrl: string;
2971
- platformPrice: number;
2972
- publishedAt: Date;
2973
- conversationId?: string | null | undefined;
2974
- account?: {
2975
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
2976
- userId: string | number;
2977
- name: string;
2978
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2979
- accountId: string;
2980
- locale?: string | null | undefined;
2981
- night?: {
2982
- startsAt: Date;
2983
- endsAt: Date;
2984
- } | null | undefined;
2985
- favoritesMaxDelay?: number | null | undefined;
2986
- ordersMaxDelay?: number | null | undefined;
2987
- conversationsMaxDelay?: number | null | undefined;
2988
- } | null | undefined;
2989
- viewsCount?: number | null | undefined;
2990
- favoritesCount?: number | null | undefined;
2991
5467
  }[] | null | undefined;
2992
5468
  }[];
2993
5469
  order: {
@@ -3335,6 +5811,42 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
3335
5811
  error?: string | null | undefined;
3336
5812
  }[] | null | undefined;
3337
5813
  };
5814
+ } | {
5815
+ type: "UPDATED";
5816
+ data: {
5817
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5818
+ };
5819
+ } | {
5820
+ type: "UPDATING";
5821
+ data: {
5822
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5823
+ post?: {
5824
+ status?: string | null | undefined;
5825
+ price?: number | null | undefined;
5826
+ currency?: string | null | undefined;
5827
+ brand?: string | null | undefined;
5828
+ catalog?: string | null | undefined;
5829
+ catalogId?: number | null | undefined;
5830
+ colors?: string[] | null | undefined;
5831
+ colorIds?: number[] | null | undefined;
5832
+ description?: string | null | undefined;
5833
+ measurementLength?: number | null | undefined;
5834
+ measurementWidth?: number | null | undefined;
5835
+ packageSizeId?: number | null | undefined;
5836
+ photoUrls?: string[] | null | undefined;
5837
+ size?: string | null | undefined;
5838
+ sizeId?: number | null | undefined;
5839
+ statusId?: number | null | undefined;
5840
+ title?: string | null | undefined;
5841
+ isDraft?: boolean | null | undefined;
5842
+ isArchived?: boolean | null | undefined;
5843
+ availableQuantity?: number | null | undefined;
5844
+ material?: number[] | null | undefined;
5845
+ manufacturerLabelling?: string | null | undefined;
5846
+ labels?: string[] | null | undefined;
5847
+ } | null | undefined;
5848
+ targetDate?: Date | null | undefined;
5849
+ };
3338
5850
  } | null | undefined;
3339
5851
  accountId?: string | null | undefined;
3340
5852
  requestId?: string | null | undefined;
@@ -3370,6 +5882,206 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
3370
5882
  viewsCount?: number | null | undefined;
3371
5883
  favoritesCount?: number | null | undefined;
3372
5884
  }[] | null | undefined;
5885
+ history?: {
5886
+ 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";
5887
+ id: string;
5888
+ createdAt: Date;
5889
+ itemId: string | number;
5890
+ data?: {
5891
+ type: "ACTION_CANCELED";
5892
+ data: {
5893
+ targetItemHistoryId: string;
5894
+ };
5895
+ } | {
5896
+ type: "BUYER_PAID";
5897
+ data: {
5898
+ soldAccountId: string;
5899
+ soldOrderId: string;
5900
+ soldConversationId?: string | null | undefined;
5901
+ };
5902
+ } | {
5903
+ type: "DELIVERED";
5904
+ data: {
5905
+ soldAccountId: string;
5906
+ soldOrderId: string;
5907
+ soldConversationId?: string | null | undefined;
5908
+ };
5909
+ } | {
5910
+ type: "EMPTY";
5911
+ } | {
5912
+ type: "FAILED_TO_PUBLISH";
5913
+ data: {
5914
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5915
+ accountId?: string | null | undefined;
5916
+ reason?: string | null | undefined;
5917
+ fields?: {
5918
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
5919
+ autoFixable: boolean;
5920
+ error?: string | null | undefined;
5921
+ }[] | null | undefined;
5922
+ itemHistoryId?: string | null | undefined;
5923
+ };
5924
+ } | {
5925
+ type: "IMAGE_PROCESSING_DONE";
5926
+ data: {
5927
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5928
+ variations?: {
5929
+ fileId: string;
5930
+ seed: number;
5931
+ phash: string;
5932
+ distanceOriginal: number;
5933
+ originalImageUrl: string;
5934
+ originalPhash: string;
5935
+ }[] | null | undefined;
5936
+ originalPhashes?: string[] | null | undefined;
5937
+ };
5938
+ } | {
5939
+ type: "IMPORTED";
5940
+ data: {
5941
+ post: {
5942
+ platformId: string;
5943
+ post: {
5944
+ status?: string | null | undefined;
5945
+ price?: number | null | undefined;
5946
+ currency?: string | null | undefined;
5947
+ brand?: string | null | undefined;
5948
+ catalog?: string | null | undefined;
5949
+ catalogId?: number | null | undefined;
5950
+ colors?: string[] | null | undefined;
5951
+ colorIds?: number[] | null | undefined;
5952
+ description?: string | null | undefined;
5953
+ measurementLength?: number | null | undefined;
5954
+ measurementWidth?: number | null | undefined;
5955
+ packageSizeId?: number | null | undefined;
5956
+ photoUrls?: string[] | null | undefined;
5957
+ size?: string | null | undefined;
5958
+ sizeId?: number | null | undefined;
5959
+ statusId?: number | null | undefined;
5960
+ title?: string | null | undefined;
5961
+ isDraft?: boolean | null | undefined;
5962
+ isArchived?: boolean | null | undefined;
5963
+ availableQuantity?: number | null | undefined;
5964
+ material?: number[] | null | undefined;
5965
+ manufacturerLabelling?: string | null | undefined;
5966
+ labels?: string[] | null | undefined;
5967
+ };
5968
+ createdAt?: Date | null | undefined;
5969
+ platformUrl?: string | null | undefined;
5970
+ };
5971
+ };
5972
+ } | {
5973
+ type: "LIFECYCLE_COMPLETED";
5974
+ data: {
5975
+ accountId: string;
5976
+ };
5977
+ } | {
5978
+ type: "LIFECYCLE_STARTED";
5979
+ data: {
5980
+ accountId: string;
5981
+ caseId: string;
5982
+ };
5983
+ } | {
5984
+ type: "PUBLISHED";
5985
+ data: {
5986
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5987
+ };
5988
+ } | {
5989
+ type: "REPUBLISHING";
5990
+ data: {
5991
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5992
+ publishingDate?: Date | null | undefined;
5993
+ priceDropPayload?: {
5994
+ value: number;
5995
+ type: "PERCENTAGE" | "ABSOLUTE";
5996
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
5997
+ roundStep?: number | null | undefined;
5998
+ maxRounds?: number | null | undefined;
5999
+ } | null | undefined;
6000
+ isTransfer?: boolean | null | undefined;
6001
+ targetAccountId?: string | null | undefined;
6002
+ };
6003
+ } | {
6004
+ type: "REPUBLISHING_RETRY";
6005
+ data: {
6006
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
6007
+ attemptNumber: number;
6008
+ maxAttempts: number;
6009
+ previousHistoryId: string;
6010
+ originalFailureDate: Date;
6011
+ fields?: {
6012
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
6013
+ autoFixable: boolean;
6014
+ error?: string | null | undefined;
6015
+ }[] | null | undefined;
6016
+ priceDropPayload?: {
6017
+ value: number;
6018
+ type: "PERCENTAGE" | "ABSOLUTE";
6019
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
6020
+ roundStep?: number | null | undefined;
6021
+ maxRounds?: number | null | undefined;
6022
+ } | null | undefined;
6023
+ };
6024
+ } | {
6025
+ type: "SCHEDULED";
6026
+ data: {
6027
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
6028
+ publishingDate?: Date | null | undefined;
6029
+ };
6030
+ } | {
6031
+ type: "SCHEDULED_RETRY";
6032
+ data: {
6033
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
6034
+ attemptNumber: number;
6035
+ maxAttempts: number;
6036
+ previousHistoryId: string;
6037
+ originalFailureDate: Date;
6038
+ fields?: {
6039
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
6040
+ autoFixable: boolean;
6041
+ error?: string | null | undefined;
6042
+ }[] | null | undefined;
6043
+ };
6044
+ } | {
6045
+ type: "UPDATED";
6046
+ data: {
6047
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
6048
+ };
6049
+ } | {
6050
+ type: "UPDATING";
6051
+ data: {
6052
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
6053
+ post?: {
6054
+ status?: string | null | undefined;
6055
+ price?: number | null | undefined;
6056
+ currency?: string | null | undefined;
6057
+ brand?: string | null | undefined;
6058
+ catalog?: string | null | undefined;
6059
+ catalogId?: number | null | undefined;
6060
+ colors?: string[] | null | undefined;
6061
+ colorIds?: number[] | null | undefined;
6062
+ description?: string | null | undefined;
6063
+ measurementLength?: number | null | undefined;
6064
+ measurementWidth?: number | null | undefined;
6065
+ packageSizeId?: number | null | undefined;
6066
+ photoUrls?: string[] | null | undefined;
6067
+ size?: string | null | undefined;
6068
+ sizeId?: number | null | undefined;
6069
+ statusId?: number | null | undefined;
6070
+ title?: string | null | undefined;
6071
+ isDraft?: boolean | null | undefined;
6072
+ isArchived?: boolean | null | undefined;
6073
+ availableQuantity?: number | null | undefined;
6074
+ material?: number[] | null | undefined;
6075
+ manufacturerLabelling?: string | null | undefined;
6076
+ labels?: string[] | null | undefined;
6077
+ } | null | undefined;
6078
+ targetDate?: Date | null | undefined;
6079
+ };
6080
+ } | null | undefined;
6081
+ accountId?: string | null | undefined;
6082
+ requestId?: string | null | undefined;
6083
+ targetDate?: Date | null | undefined;
6084
+ }[] | null | undefined;
3373
6085
  }[];
3374
6086
  order: {
3375
6087
  type: "SALE" | "PURCHASE";