controlresell 2.9.5 → 2.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/package.json +1 -1
  2. package/src/com/controlresell/api/requests/items/cancel/CancelRequest.d.ts +16 -0
  3. package/src/com/controlresell/api/requests/items/cancel/CancelRequest.d.ts.map +1 -0
  4. package/src/com/controlresell/api/requests/items/cancel/CancelRequest.js +8 -0
  5. package/src/com/controlresell/api/requests/items/cancel/CancelRequest.js.map +1 -0
  6. package/src/com/controlresell/api/requests/items/cancel/CancelRequest.ts +9 -0
  7. package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.d.ts +4 -0
  8. package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.d.ts.map +1 -0
  9. package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.js +5 -0
  10. package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.js.map +1 -0
  11. package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.ts +6 -0
  12. package/src/com/controlresell/api/requests/items/publish/PublishRequest.d.ts +3 -0
  13. package/src/com/controlresell/api/requests/items/publish/PublishRequest.d.ts.map +1 -1
  14. package/src/com/controlresell/api/requests/items/publish/PublishRequest.js +1 -0
  15. package/src/com/controlresell/api/requests/items/publish/PublishRequest.js.map +1 -1
  16. package/src/com/controlresell/api/requests/items/publish/PublishRequest.ts +1 -0
  17. package/src/com/controlresell/api/requests/items/republish/RepublishRequest.d.ts +3 -0
  18. package/src/com/controlresell/api/requests/items/republish/RepublishRequest.d.ts.map +1 -1
  19. package/src/com/controlresell/api/requests/items/republish/RepublishRequest.js +1 -0
  20. package/src/com/controlresell/api/requests/items/republish/RepublishRequest.js.map +1 -1
  21. package/src/com/controlresell/api/requests/items/republish/RepublishRequest.ts +1 -0
  22. package/src/com/controlresell/api/responses/items/ItemActions.d.ts +10 -0
  23. package/src/com/controlresell/api/responses/items/ItemActions.d.ts.map +1 -0
  24. package/src/com/controlresell/api/responses/items/ItemActions.js +6 -0
  25. package/src/com/controlresell/api/responses/items/ItemActions.js.map +1 -0
  26. package/src/com/controlresell/api/responses/items/ItemActions.ts +7 -0
  27. package/src/com/controlresell/api/responses/items/ItemsWithFilters.d.ts +19 -5
  28. package/src/com/controlresell/api/responses/items/ItemsWithFilters.d.ts.map +1 -1
  29. package/src/com/controlresell/api/responses/items/ListedItem.d.ts +13 -3
  30. package/src/com/controlresell/api/responses/items/ListedItem.d.ts.map +1 -1
  31. package/src/com/controlresell/api/responses/items/ListedItem.js +2 -2
  32. package/src/com/controlresell/api/responses/items/ListedItem.js.map +1 -1
  33. package/src/com/controlresell/api/responses/items/ListedItem.ts +2 -2
  34. package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.d.ts +2 -2
  35. package/src/com/controlresell/inbox/models/transactions/items/TransactionWithItems.d.ts +2153 -305
  36. package/src/com/controlresell/inbox/models/transactions/items/TransactionWithItems.d.ts.map +1 -1
  37. package/src/com/controlresell/inventory/models/items/CreatedItems.d.ts +2163 -315
  38. package/src/com/controlresell/inventory/models/items/CreatedItems.d.ts.map +1 -1
  39. package/src/com/controlresell/inventory/models/items/Item.d.ts +1579 -59
  40. package/src/com/controlresell/inventory/models/items/Item.d.ts.map +1 -1
  41. package/src/com/controlresell/inventory/models/items/Item.js +1 -0
  42. package/src/com/controlresell/inventory/models/items/Item.js.map +1 -1
  43. package/src/com/controlresell/inventory/models/items/Item.ts +1 -0
  44. package/src/com/controlresell/inventory/models/items/ItemUpdate.d.ts +2097 -249
  45. package/src/com/controlresell/inventory/models/items/ItemUpdate.d.ts.map +1 -1
  46. package/src/com/controlresell/inventory/models/items/UpdatedItem.d.ts +2163 -315
  47. package/src/com/controlresell/inventory/models/items/UpdatedItem.d.ts.map +1 -1
  48. package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts +2611 -435
  49. package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts.map +1 -1
  50. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +2099 -251
  51. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts.map +1 -1
  52. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +6259 -2563
  53. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts.map +1 -1
  54. package/src/index.d.ts +3 -0
  55. package/src/index.d.ts.map +1 -1
  56. package/src/index.js +3 -0
  57. package/src/index.js.map +1 -1
  58. package/src/index.ts +3 -0
@@ -1823,6 +1823,1198 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
1823
1823
  viewsCount?: number | null | undefined;
1824
1824
  favoritesCount?: number | null | undefined;
1825
1825
  }>, "many">>>;
1826
+ history: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1827
+ id: z.ZodString;
1828
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1829
+ 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"]>;
1830
+ data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1831
+ data: z.ZodObject<{
1832
+ targetItemHistoryId: z.ZodString;
1833
+ }, "strip", z.ZodTypeAny, {
1834
+ targetItemHistoryId: string;
1835
+ }, {
1836
+ targetItemHistoryId: string;
1837
+ }>;
1838
+ type: z.ZodLiteral<"ACTION_CANCELED">;
1839
+ }, "strip", z.ZodTypeAny, {
1840
+ type: "ACTION_CANCELED";
1841
+ data: {
1842
+ targetItemHistoryId: string;
1843
+ };
1844
+ }, {
1845
+ type: "ACTION_CANCELED";
1846
+ data: {
1847
+ targetItemHistoryId: string;
1848
+ };
1849
+ }>, z.ZodObject<{
1850
+ data: z.ZodObject<{
1851
+ soldAccountId: z.ZodString;
1852
+ soldOrderId: z.ZodString;
1853
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1854
+ }, "strip", z.ZodTypeAny, {
1855
+ soldAccountId: string;
1856
+ soldOrderId: string;
1857
+ soldConversationId?: string | null | undefined;
1858
+ }, {
1859
+ soldAccountId: string;
1860
+ soldOrderId: string;
1861
+ soldConversationId?: string | null | undefined;
1862
+ }>;
1863
+ type: z.ZodLiteral<"BUYER_PAID">;
1864
+ }, "strip", z.ZodTypeAny, {
1865
+ type: "BUYER_PAID";
1866
+ data: {
1867
+ soldAccountId: string;
1868
+ soldOrderId: string;
1869
+ soldConversationId?: string | null | undefined;
1870
+ };
1871
+ }, {
1872
+ type: "BUYER_PAID";
1873
+ data: {
1874
+ soldAccountId: string;
1875
+ soldOrderId: string;
1876
+ soldConversationId?: string | null | undefined;
1877
+ };
1878
+ }>, z.ZodObject<{
1879
+ data: z.ZodObject<{
1880
+ soldAccountId: z.ZodString;
1881
+ soldOrderId: z.ZodString;
1882
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1883
+ }, "strip", z.ZodTypeAny, {
1884
+ soldAccountId: string;
1885
+ soldOrderId: string;
1886
+ soldConversationId?: string | null | undefined;
1887
+ }, {
1888
+ soldAccountId: string;
1889
+ soldOrderId: string;
1890
+ soldConversationId?: string | null | undefined;
1891
+ }>;
1892
+ type: z.ZodLiteral<"DELIVERED">;
1893
+ }, "strip", z.ZodTypeAny, {
1894
+ type: "DELIVERED";
1895
+ data: {
1896
+ soldAccountId: string;
1897
+ soldOrderId: string;
1898
+ soldConversationId?: string | null | undefined;
1899
+ };
1900
+ }, {
1901
+ type: "DELIVERED";
1902
+ data: {
1903
+ soldAccountId: string;
1904
+ soldOrderId: string;
1905
+ soldConversationId?: string | null | undefined;
1906
+ };
1907
+ }>, z.ZodObject<{
1908
+ type: z.ZodLiteral<"EMPTY">;
1909
+ }, "strip", z.ZodTypeAny, {
1910
+ type: "EMPTY";
1911
+ }, {
1912
+ type: "EMPTY";
1913
+ }>, z.ZodObject<{
1914
+ data: z.ZodObject<{
1915
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1916
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1917
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1918
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1919
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
1920
+ autoFixable: z.ZodBoolean;
1921
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1922
+ }, "strip", z.ZodTypeAny, {
1923
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1924
+ autoFixable: boolean;
1925
+ error?: string | null | undefined;
1926
+ }, {
1927
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1928
+ autoFixable: boolean;
1929
+ error?: string | null | undefined;
1930
+ }>, "many">>>;
1931
+ itemHistoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1932
+ }, "strip", z.ZodTypeAny, {
1933
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1934
+ accountId?: string | null | undefined;
1935
+ reason?: string | null | undefined;
1936
+ fields?: {
1937
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1938
+ autoFixable: boolean;
1939
+ error?: string | null | undefined;
1940
+ }[] | null | undefined;
1941
+ itemHistoryId?: string | null | undefined;
1942
+ }, {
1943
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1944
+ accountId?: string | null | undefined;
1945
+ reason?: string | null | undefined;
1946
+ fields?: {
1947
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1948
+ autoFixable: boolean;
1949
+ error?: string | null | undefined;
1950
+ }[] | null | undefined;
1951
+ itemHistoryId?: string | null | undefined;
1952
+ }>;
1953
+ type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
1954
+ }, "strip", z.ZodTypeAny, {
1955
+ type: "FAILED_TO_PUBLISH";
1956
+ data: {
1957
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1958
+ accountId?: string | null | undefined;
1959
+ reason?: string | null | undefined;
1960
+ fields?: {
1961
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1962
+ autoFixable: boolean;
1963
+ error?: string | null | undefined;
1964
+ }[] | null | undefined;
1965
+ itemHistoryId?: string | null | undefined;
1966
+ };
1967
+ }, {
1968
+ type: "FAILED_TO_PUBLISH";
1969
+ data: {
1970
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1971
+ accountId?: string | null | undefined;
1972
+ reason?: string | null | undefined;
1973
+ fields?: {
1974
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1975
+ autoFixable: boolean;
1976
+ error?: string | null | undefined;
1977
+ }[] | null | undefined;
1978
+ itemHistoryId?: string | null | undefined;
1979
+ };
1980
+ }>, z.ZodObject<{
1981
+ data: z.ZodObject<{
1982
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1983
+ variations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1984
+ fileId: z.ZodString;
1985
+ seed: z.ZodNumber;
1986
+ phash: z.ZodString;
1987
+ distanceOriginal: z.ZodNumber;
1988
+ originalImageUrl: z.ZodString;
1989
+ originalPhash: z.ZodString;
1990
+ }, "strip", z.ZodTypeAny, {
1991
+ fileId: string;
1992
+ seed: number;
1993
+ phash: string;
1994
+ distanceOriginal: number;
1995
+ originalImageUrl: string;
1996
+ originalPhash: string;
1997
+ }, {
1998
+ fileId: string;
1999
+ seed: number;
2000
+ phash: string;
2001
+ distanceOriginal: number;
2002
+ originalImageUrl: string;
2003
+ originalPhash: string;
2004
+ }>, "many">>>;
2005
+ originalPhashes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2006
+ }, "strip", z.ZodTypeAny, {
2007
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2008
+ variations?: {
2009
+ fileId: string;
2010
+ seed: number;
2011
+ phash: string;
2012
+ distanceOriginal: number;
2013
+ originalImageUrl: string;
2014
+ originalPhash: string;
2015
+ }[] | null | undefined;
2016
+ originalPhashes?: string[] | null | undefined;
2017
+ }, {
2018
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2019
+ variations?: {
2020
+ fileId: string;
2021
+ seed: number;
2022
+ phash: string;
2023
+ distanceOriginal: number;
2024
+ originalImageUrl: string;
2025
+ originalPhash: string;
2026
+ }[] | null | undefined;
2027
+ originalPhashes?: string[] | null | undefined;
2028
+ }>;
2029
+ type: z.ZodLiteral<"IMAGE_PROCESSING_DONE">;
2030
+ }, "strip", z.ZodTypeAny, {
2031
+ type: "IMAGE_PROCESSING_DONE";
2032
+ data: {
2033
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2034
+ variations?: {
2035
+ fileId: string;
2036
+ seed: number;
2037
+ phash: string;
2038
+ distanceOriginal: number;
2039
+ originalImageUrl: string;
2040
+ originalPhash: string;
2041
+ }[] | null | undefined;
2042
+ originalPhashes?: string[] | null | undefined;
2043
+ };
2044
+ }, {
2045
+ type: "IMAGE_PROCESSING_DONE";
2046
+ data: {
2047
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2048
+ variations?: {
2049
+ fileId: string;
2050
+ seed: number;
2051
+ phash: string;
2052
+ distanceOriginal: number;
2053
+ originalImageUrl: string;
2054
+ originalPhash: string;
2055
+ }[] | null | undefined;
2056
+ originalPhashes?: string[] | null | undefined;
2057
+ };
2058
+ }>, z.ZodObject<{
2059
+ data: z.ZodObject<{
2060
+ post: z.ZodObject<{
2061
+ platformId: z.ZodString;
2062
+ platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2063
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2064
+ post: z.ZodObject<{
2065
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2066
+ catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2067
+ catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2068
+ colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2069
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
2070
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2071
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2072
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2073
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2074
+ photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2075
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2076
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2077
+ size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2078
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2079
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2080
+ statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2081
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2082
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2083
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2084
+ availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2085
+ material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
2086
+ manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2087
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2088
+ }, "strip", z.ZodTypeAny, {
2089
+ status?: string | null | undefined;
2090
+ price?: number | null | undefined;
2091
+ currency?: string | null | undefined;
2092
+ brand?: string | null | undefined;
2093
+ catalog?: string | null | undefined;
2094
+ catalogId?: number | null | undefined;
2095
+ colors?: string[] | null | undefined;
2096
+ colorIds?: number[] | null | undefined;
2097
+ description?: string | null | undefined;
2098
+ measurementLength?: number | null | undefined;
2099
+ measurementWidth?: number | null | undefined;
2100
+ packageSizeId?: number | null | undefined;
2101
+ photoUrls?: string[] | null | undefined;
2102
+ size?: string | null | undefined;
2103
+ sizeId?: number | null | undefined;
2104
+ statusId?: number | null | undefined;
2105
+ title?: string | null | undefined;
2106
+ isDraft?: boolean | null | undefined;
2107
+ isArchived?: boolean | null | undefined;
2108
+ availableQuantity?: number | null | undefined;
2109
+ material?: number[] | null | undefined;
2110
+ manufacturerLabelling?: string | null | undefined;
2111
+ labels?: string[] | null | undefined;
2112
+ }, {
2113
+ status?: string | null | undefined;
2114
+ price?: number | null | undefined;
2115
+ currency?: string | null | undefined;
2116
+ brand?: string | null | undefined;
2117
+ catalog?: string | null | undefined;
2118
+ catalogId?: number | null | undefined;
2119
+ colors?: string[] | null | undefined;
2120
+ colorIds?: number[] | null | undefined;
2121
+ description?: string | null | undefined;
2122
+ measurementLength?: number | null | undefined;
2123
+ measurementWidth?: number | null | undefined;
2124
+ packageSizeId?: number | null | undefined;
2125
+ photoUrls?: string[] | null | undefined;
2126
+ size?: string | null | undefined;
2127
+ sizeId?: number | null | undefined;
2128
+ statusId?: number | null | undefined;
2129
+ title?: string | null | undefined;
2130
+ isDraft?: boolean | null | undefined;
2131
+ isArchived?: boolean | null | undefined;
2132
+ availableQuantity?: number | null | undefined;
2133
+ material?: number[] | null | undefined;
2134
+ manufacturerLabelling?: string | null | undefined;
2135
+ labels?: string[] | null | undefined;
2136
+ }>;
2137
+ }, "strip", z.ZodTypeAny, {
2138
+ platformId: string;
2139
+ post: {
2140
+ status?: string | null | undefined;
2141
+ price?: number | null | undefined;
2142
+ currency?: string | null | undefined;
2143
+ brand?: string | null | undefined;
2144
+ catalog?: string | null | undefined;
2145
+ catalogId?: number | null | undefined;
2146
+ colors?: string[] | null | undefined;
2147
+ colorIds?: number[] | null | undefined;
2148
+ description?: string | null | undefined;
2149
+ measurementLength?: number | null | undefined;
2150
+ measurementWidth?: number | null | undefined;
2151
+ packageSizeId?: number | null | undefined;
2152
+ photoUrls?: string[] | null | undefined;
2153
+ size?: string | null | undefined;
2154
+ sizeId?: number | null | undefined;
2155
+ statusId?: number | null | undefined;
2156
+ title?: string | null | undefined;
2157
+ isDraft?: boolean | null | undefined;
2158
+ isArchived?: boolean | null | undefined;
2159
+ availableQuantity?: number | null | undefined;
2160
+ material?: number[] | null | undefined;
2161
+ manufacturerLabelling?: string | null | undefined;
2162
+ labels?: string[] | null | undefined;
2163
+ };
2164
+ createdAt?: Date | null | undefined;
2165
+ platformUrl?: string | null | undefined;
2166
+ }, {
2167
+ platformId: string;
2168
+ post: {
2169
+ status?: string | null | undefined;
2170
+ price?: number | null | undefined;
2171
+ currency?: string | null | undefined;
2172
+ brand?: string | null | undefined;
2173
+ catalog?: string | null | undefined;
2174
+ catalogId?: number | null | undefined;
2175
+ colors?: string[] | null | undefined;
2176
+ colorIds?: number[] | null | undefined;
2177
+ description?: string | null | undefined;
2178
+ measurementLength?: number | null | undefined;
2179
+ measurementWidth?: number | null | undefined;
2180
+ packageSizeId?: number | null | undefined;
2181
+ photoUrls?: string[] | null | undefined;
2182
+ size?: string | null | undefined;
2183
+ sizeId?: number | null | undefined;
2184
+ statusId?: number | null | undefined;
2185
+ title?: string | null | undefined;
2186
+ isDraft?: boolean | null | undefined;
2187
+ isArchived?: boolean | null | undefined;
2188
+ availableQuantity?: number | null | undefined;
2189
+ material?: number[] | null | undefined;
2190
+ manufacturerLabelling?: string | null | undefined;
2191
+ labels?: string[] | null | undefined;
2192
+ };
2193
+ createdAt?: Date | null | undefined;
2194
+ platformUrl?: string | null | undefined;
2195
+ }>;
2196
+ }, "strip", z.ZodTypeAny, {
2197
+ post: {
2198
+ platformId: string;
2199
+ post: {
2200
+ status?: string | null | undefined;
2201
+ price?: number | null | undefined;
2202
+ currency?: string | null | undefined;
2203
+ brand?: string | null | undefined;
2204
+ catalog?: string | null | undefined;
2205
+ catalogId?: number | null | undefined;
2206
+ colors?: string[] | null | undefined;
2207
+ colorIds?: number[] | null | undefined;
2208
+ description?: string | null | undefined;
2209
+ measurementLength?: number | null | undefined;
2210
+ measurementWidth?: number | null | undefined;
2211
+ packageSizeId?: number | null | undefined;
2212
+ photoUrls?: string[] | null | undefined;
2213
+ size?: string | null | undefined;
2214
+ sizeId?: number | null | undefined;
2215
+ statusId?: number | null | undefined;
2216
+ title?: string | null | undefined;
2217
+ isDraft?: boolean | null | undefined;
2218
+ isArchived?: boolean | null | undefined;
2219
+ availableQuantity?: number | null | undefined;
2220
+ material?: number[] | null | undefined;
2221
+ manufacturerLabelling?: string | null | undefined;
2222
+ labels?: string[] | null | undefined;
2223
+ };
2224
+ createdAt?: Date | null | undefined;
2225
+ platformUrl?: string | null | undefined;
2226
+ };
2227
+ }, {
2228
+ post: {
2229
+ platformId: string;
2230
+ post: {
2231
+ status?: string | null | undefined;
2232
+ price?: number | null | undefined;
2233
+ currency?: string | null | undefined;
2234
+ brand?: string | null | undefined;
2235
+ catalog?: string | null | undefined;
2236
+ catalogId?: number | null | undefined;
2237
+ colors?: string[] | null | undefined;
2238
+ colorIds?: number[] | null | undefined;
2239
+ description?: string | null | undefined;
2240
+ measurementLength?: number | null | undefined;
2241
+ measurementWidth?: number | null | undefined;
2242
+ packageSizeId?: number | null | undefined;
2243
+ photoUrls?: string[] | null | undefined;
2244
+ size?: string | null | undefined;
2245
+ sizeId?: number | null | undefined;
2246
+ statusId?: number | null | undefined;
2247
+ title?: string | null | undefined;
2248
+ isDraft?: boolean | null | undefined;
2249
+ isArchived?: boolean | null | undefined;
2250
+ availableQuantity?: number | null | undefined;
2251
+ material?: number[] | null | undefined;
2252
+ manufacturerLabelling?: string | null | undefined;
2253
+ labels?: string[] | null | undefined;
2254
+ };
2255
+ createdAt?: Date | null | undefined;
2256
+ platformUrl?: string | null | undefined;
2257
+ };
2258
+ }>;
2259
+ type: z.ZodLiteral<"IMPORTED">;
2260
+ }, "strip", z.ZodTypeAny, {
2261
+ type: "IMPORTED";
2262
+ data: {
2263
+ post: {
2264
+ platformId: string;
2265
+ post: {
2266
+ status?: string | null | undefined;
2267
+ price?: number | null | undefined;
2268
+ currency?: string | null | undefined;
2269
+ brand?: string | null | undefined;
2270
+ catalog?: string | null | undefined;
2271
+ catalogId?: number | null | undefined;
2272
+ colors?: string[] | null | undefined;
2273
+ colorIds?: number[] | null | undefined;
2274
+ description?: string | null | undefined;
2275
+ measurementLength?: number | null | undefined;
2276
+ measurementWidth?: number | null | undefined;
2277
+ packageSizeId?: number | null | undefined;
2278
+ photoUrls?: string[] | null | undefined;
2279
+ size?: string | null | undefined;
2280
+ sizeId?: number | null | undefined;
2281
+ statusId?: number | null | undefined;
2282
+ title?: string | null | undefined;
2283
+ isDraft?: boolean | null | undefined;
2284
+ isArchived?: boolean | null | undefined;
2285
+ availableQuantity?: number | null | undefined;
2286
+ material?: number[] | null | undefined;
2287
+ manufacturerLabelling?: string | null | undefined;
2288
+ labels?: string[] | null | undefined;
2289
+ };
2290
+ createdAt?: Date | null | undefined;
2291
+ platformUrl?: string | null | undefined;
2292
+ };
2293
+ };
2294
+ }, {
2295
+ type: "IMPORTED";
2296
+ data: {
2297
+ post: {
2298
+ platformId: string;
2299
+ post: {
2300
+ status?: string | null | undefined;
2301
+ price?: number | null | undefined;
2302
+ currency?: string | null | undefined;
2303
+ brand?: string | null | undefined;
2304
+ catalog?: string | null | undefined;
2305
+ catalogId?: number | null | undefined;
2306
+ colors?: string[] | null | undefined;
2307
+ colorIds?: number[] | null | undefined;
2308
+ description?: string | null | undefined;
2309
+ measurementLength?: number | null | undefined;
2310
+ measurementWidth?: number | null | undefined;
2311
+ packageSizeId?: number | null | undefined;
2312
+ photoUrls?: string[] | null | undefined;
2313
+ size?: string | null | undefined;
2314
+ sizeId?: number | null | undefined;
2315
+ statusId?: number | null | undefined;
2316
+ title?: string | null | undefined;
2317
+ isDraft?: boolean | null | undefined;
2318
+ isArchived?: boolean | null | undefined;
2319
+ availableQuantity?: number | null | undefined;
2320
+ material?: number[] | null | undefined;
2321
+ manufacturerLabelling?: string | null | undefined;
2322
+ labels?: string[] | null | undefined;
2323
+ };
2324
+ createdAt?: Date | null | undefined;
2325
+ platformUrl?: string | null | undefined;
2326
+ };
2327
+ };
2328
+ }>, z.ZodObject<{
2329
+ data: z.ZodObject<{
2330
+ accountId: z.ZodString;
2331
+ }, "strip", z.ZodTypeAny, {
2332
+ accountId: string;
2333
+ }, {
2334
+ accountId: string;
2335
+ }>;
2336
+ type: z.ZodLiteral<"LIFECYCLE_COMPLETED">;
2337
+ }, "strip", z.ZodTypeAny, {
2338
+ type: "LIFECYCLE_COMPLETED";
2339
+ data: {
2340
+ accountId: string;
2341
+ };
2342
+ }, {
2343
+ type: "LIFECYCLE_COMPLETED";
2344
+ data: {
2345
+ accountId: string;
2346
+ };
2347
+ }>, z.ZodObject<{
2348
+ data: z.ZodObject<{
2349
+ accountId: z.ZodString;
2350
+ caseId: z.ZodString;
2351
+ }, "strip", z.ZodTypeAny, {
2352
+ accountId: string;
2353
+ caseId: string;
2354
+ }, {
2355
+ accountId: string;
2356
+ caseId: string;
2357
+ }>;
2358
+ type: z.ZodLiteral<"LIFECYCLE_STARTED">;
2359
+ }, "strip", z.ZodTypeAny, {
2360
+ type: "LIFECYCLE_STARTED";
2361
+ data: {
2362
+ accountId: string;
2363
+ caseId: string;
2364
+ };
2365
+ }, {
2366
+ type: "LIFECYCLE_STARTED";
2367
+ data: {
2368
+ accountId: string;
2369
+ caseId: string;
2370
+ };
2371
+ }>, z.ZodObject<{
2372
+ data: z.ZodObject<{
2373
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2374
+ }, "strip", z.ZodTypeAny, {
2375
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2376
+ }, {
2377
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2378
+ }>;
2379
+ type: z.ZodLiteral<"PUBLISHED">;
2380
+ }, "strip", z.ZodTypeAny, {
2381
+ type: "PUBLISHED";
2382
+ data: {
2383
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2384
+ };
2385
+ }, {
2386
+ type: "PUBLISHED";
2387
+ data: {
2388
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2389
+ };
2390
+ }>, z.ZodObject<{
2391
+ data: z.ZodObject<{
2392
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2393
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2394
+ priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2395
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
2396
+ value: z.ZodNumber;
2397
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
2398
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2399
+ maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2400
+ }, "strip", z.ZodTypeAny, {
2401
+ value: number;
2402
+ type: "PERCENTAGE" | "ABSOLUTE";
2403
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2404
+ roundStep?: number | null | undefined;
2405
+ maxRounds?: number | null | undefined;
2406
+ }, {
2407
+ value: number;
2408
+ type: "PERCENTAGE" | "ABSOLUTE";
2409
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2410
+ roundStep?: number | null | undefined;
2411
+ maxRounds?: number | null | undefined;
2412
+ }>>>;
2413
+ isTransfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2414
+ targetAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2415
+ }, "strip", z.ZodTypeAny, {
2416
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2417
+ publishingDate?: Date | null | undefined;
2418
+ priceDropPayload?: {
2419
+ value: number;
2420
+ type: "PERCENTAGE" | "ABSOLUTE";
2421
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2422
+ roundStep?: number | null | undefined;
2423
+ maxRounds?: number | null | undefined;
2424
+ } | null | undefined;
2425
+ isTransfer?: boolean | null | undefined;
2426
+ targetAccountId?: string | null | undefined;
2427
+ }, {
2428
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2429
+ publishingDate?: Date | null | undefined;
2430
+ priceDropPayload?: {
2431
+ value: number;
2432
+ type: "PERCENTAGE" | "ABSOLUTE";
2433
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2434
+ roundStep?: number | null | undefined;
2435
+ maxRounds?: number | null | undefined;
2436
+ } | null | undefined;
2437
+ isTransfer?: boolean | null | undefined;
2438
+ targetAccountId?: string | null | undefined;
2439
+ }>;
2440
+ type: z.ZodLiteral<"REPUBLISHING">;
2441
+ }, "strip", z.ZodTypeAny, {
2442
+ type: "REPUBLISHING";
2443
+ data: {
2444
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2445
+ publishingDate?: Date | null | undefined;
2446
+ priceDropPayload?: {
2447
+ value: number;
2448
+ type: "PERCENTAGE" | "ABSOLUTE";
2449
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2450
+ roundStep?: number | null | undefined;
2451
+ maxRounds?: number | null | undefined;
2452
+ } | null | undefined;
2453
+ isTransfer?: boolean | null | undefined;
2454
+ targetAccountId?: string | null | undefined;
2455
+ };
2456
+ }, {
2457
+ type: "REPUBLISHING";
2458
+ data: {
2459
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2460
+ publishingDate?: Date | null | undefined;
2461
+ priceDropPayload?: {
2462
+ value: number;
2463
+ type: "PERCENTAGE" | "ABSOLUTE";
2464
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2465
+ roundStep?: number | null | undefined;
2466
+ maxRounds?: number | null | undefined;
2467
+ } | null | undefined;
2468
+ isTransfer?: boolean | null | undefined;
2469
+ targetAccountId?: string | null | undefined;
2470
+ };
2471
+ }>, z.ZodObject<{
2472
+ data: z.ZodObject<{
2473
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2474
+ attemptNumber: z.ZodNumber;
2475
+ maxAttempts: z.ZodNumber;
2476
+ previousHistoryId: z.ZodString;
2477
+ originalFailureDate: z.ZodDate;
2478
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2479
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
2480
+ autoFixable: z.ZodBoolean;
2481
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2482
+ }, "strip", z.ZodTypeAny, {
2483
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2484
+ autoFixable: boolean;
2485
+ error?: string | null | undefined;
2486
+ }, {
2487
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2488
+ autoFixable: boolean;
2489
+ error?: string | null | undefined;
2490
+ }>, "many">>>;
2491
+ priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2492
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
2493
+ value: z.ZodNumber;
2494
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
2495
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2496
+ maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2497
+ }, "strip", z.ZodTypeAny, {
2498
+ value: number;
2499
+ type: "PERCENTAGE" | "ABSOLUTE";
2500
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2501
+ roundStep?: number | null | undefined;
2502
+ maxRounds?: number | null | undefined;
2503
+ }, {
2504
+ value: number;
2505
+ type: "PERCENTAGE" | "ABSOLUTE";
2506
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2507
+ roundStep?: number | null | undefined;
2508
+ maxRounds?: number | null | undefined;
2509
+ }>>>;
2510
+ }, "strip", z.ZodTypeAny, {
2511
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2512
+ attemptNumber: number;
2513
+ maxAttempts: number;
2514
+ previousHistoryId: string;
2515
+ originalFailureDate: Date;
2516
+ fields?: {
2517
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2518
+ autoFixable: boolean;
2519
+ error?: string | null | undefined;
2520
+ }[] | null | undefined;
2521
+ priceDropPayload?: {
2522
+ value: number;
2523
+ type: "PERCENTAGE" | "ABSOLUTE";
2524
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2525
+ roundStep?: number | null | undefined;
2526
+ maxRounds?: number | null | undefined;
2527
+ } | null | undefined;
2528
+ }, {
2529
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2530
+ attemptNumber: number;
2531
+ maxAttempts: number;
2532
+ previousHistoryId: string;
2533
+ originalFailureDate: Date;
2534
+ fields?: {
2535
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2536
+ autoFixable: boolean;
2537
+ error?: string | null | undefined;
2538
+ }[] | null | undefined;
2539
+ priceDropPayload?: {
2540
+ value: number;
2541
+ type: "PERCENTAGE" | "ABSOLUTE";
2542
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2543
+ roundStep?: number | null | undefined;
2544
+ maxRounds?: number | null | undefined;
2545
+ } | null | undefined;
2546
+ }>;
2547
+ type: z.ZodLiteral<"REPUBLISHING_RETRY">;
2548
+ }, "strip", z.ZodTypeAny, {
2549
+ type: "REPUBLISHING_RETRY";
2550
+ data: {
2551
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2552
+ attemptNumber: number;
2553
+ maxAttempts: number;
2554
+ previousHistoryId: string;
2555
+ originalFailureDate: Date;
2556
+ fields?: {
2557
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2558
+ autoFixable: boolean;
2559
+ error?: string | null | undefined;
2560
+ }[] | null | undefined;
2561
+ priceDropPayload?: {
2562
+ value: number;
2563
+ type: "PERCENTAGE" | "ABSOLUTE";
2564
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2565
+ roundStep?: number | null | undefined;
2566
+ maxRounds?: number | null | undefined;
2567
+ } | null | undefined;
2568
+ };
2569
+ }, {
2570
+ type: "REPUBLISHING_RETRY";
2571
+ data: {
2572
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2573
+ attemptNumber: number;
2574
+ maxAttempts: number;
2575
+ previousHistoryId: string;
2576
+ originalFailureDate: Date;
2577
+ fields?: {
2578
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2579
+ autoFixable: boolean;
2580
+ error?: string | null | undefined;
2581
+ }[] | null | undefined;
2582
+ priceDropPayload?: {
2583
+ value: number;
2584
+ type: "PERCENTAGE" | "ABSOLUTE";
2585
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2586
+ roundStep?: number | null | undefined;
2587
+ maxRounds?: number | null | undefined;
2588
+ } | null | undefined;
2589
+ };
2590
+ }>, z.ZodObject<{
2591
+ data: z.ZodObject<{
2592
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2593
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2594
+ }, "strip", z.ZodTypeAny, {
2595
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2596
+ publishingDate?: Date | null | undefined;
2597
+ }, {
2598
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2599
+ publishingDate?: Date | null | undefined;
2600
+ }>;
2601
+ type: z.ZodLiteral<"SCHEDULED">;
2602
+ }, "strip", z.ZodTypeAny, {
2603
+ type: "SCHEDULED";
2604
+ data: {
2605
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2606
+ publishingDate?: Date | null | undefined;
2607
+ };
2608
+ }, {
2609
+ type: "SCHEDULED";
2610
+ data: {
2611
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2612
+ publishingDate?: Date | null | undefined;
2613
+ };
2614
+ }>, z.ZodObject<{
2615
+ data: z.ZodObject<{
2616
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2617
+ attemptNumber: z.ZodNumber;
2618
+ maxAttempts: z.ZodNumber;
2619
+ previousHistoryId: z.ZodString;
2620
+ originalFailureDate: z.ZodDate;
2621
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2622
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
2623
+ autoFixable: z.ZodBoolean;
2624
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2625
+ }, "strip", z.ZodTypeAny, {
2626
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2627
+ autoFixable: boolean;
2628
+ error?: string | null | undefined;
2629
+ }, {
2630
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2631
+ autoFixable: boolean;
2632
+ error?: string | null | undefined;
2633
+ }>, "many">>>;
2634
+ }, "strip", z.ZodTypeAny, {
2635
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2636
+ attemptNumber: number;
2637
+ maxAttempts: number;
2638
+ previousHistoryId: string;
2639
+ originalFailureDate: Date;
2640
+ fields?: {
2641
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2642
+ autoFixable: boolean;
2643
+ error?: string | null | undefined;
2644
+ }[] | null | undefined;
2645
+ }, {
2646
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2647
+ attemptNumber: number;
2648
+ maxAttempts: number;
2649
+ previousHistoryId: string;
2650
+ originalFailureDate: Date;
2651
+ fields?: {
2652
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2653
+ autoFixable: boolean;
2654
+ error?: string | null | undefined;
2655
+ }[] | null | undefined;
2656
+ }>;
2657
+ type: z.ZodLiteral<"SCHEDULED_RETRY">;
2658
+ }, "strip", z.ZodTypeAny, {
2659
+ type: "SCHEDULED_RETRY";
2660
+ data: {
2661
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2662
+ attemptNumber: number;
2663
+ maxAttempts: number;
2664
+ previousHistoryId: string;
2665
+ originalFailureDate: Date;
2666
+ fields?: {
2667
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2668
+ autoFixable: boolean;
2669
+ error?: string | null | undefined;
2670
+ }[] | null | undefined;
2671
+ };
2672
+ }, {
2673
+ type: "SCHEDULED_RETRY";
2674
+ data: {
2675
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2676
+ attemptNumber: number;
2677
+ maxAttempts: number;
2678
+ previousHistoryId: string;
2679
+ originalFailureDate: Date;
2680
+ fields?: {
2681
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2682
+ autoFixable: boolean;
2683
+ error?: string | null | undefined;
2684
+ }[] | null | undefined;
2685
+ };
2686
+ }>]>>>;
2687
+ createdAt: z.ZodDate;
2688
+ targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2689
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2690
+ requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2691
+ }, "strip", z.ZodTypeAny, {
2692
+ 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";
2693
+ id: string;
2694
+ createdAt: Date;
2695
+ itemId: string | number;
2696
+ data?: {
2697
+ type: "ACTION_CANCELED";
2698
+ data: {
2699
+ targetItemHistoryId: string;
2700
+ };
2701
+ } | {
2702
+ type: "BUYER_PAID";
2703
+ data: {
2704
+ soldAccountId: string;
2705
+ soldOrderId: string;
2706
+ soldConversationId?: string | null | undefined;
2707
+ };
2708
+ } | {
2709
+ type: "DELIVERED";
2710
+ data: {
2711
+ soldAccountId: string;
2712
+ soldOrderId: string;
2713
+ soldConversationId?: string | null | undefined;
2714
+ };
2715
+ } | {
2716
+ type: "EMPTY";
2717
+ } | {
2718
+ type: "FAILED_TO_PUBLISH";
2719
+ data: {
2720
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2721
+ accountId?: string | null | undefined;
2722
+ reason?: string | null | undefined;
2723
+ fields?: {
2724
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2725
+ autoFixable: boolean;
2726
+ error?: string | null | undefined;
2727
+ }[] | null | undefined;
2728
+ itemHistoryId?: string | null | undefined;
2729
+ };
2730
+ } | {
2731
+ type: "IMAGE_PROCESSING_DONE";
2732
+ data: {
2733
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2734
+ variations?: {
2735
+ fileId: string;
2736
+ seed: number;
2737
+ phash: string;
2738
+ distanceOriginal: number;
2739
+ originalImageUrl: string;
2740
+ originalPhash: string;
2741
+ }[] | null | undefined;
2742
+ originalPhashes?: string[] | null | undefined;
2743
+ };
2744
+ } | {
2745
+ type: "IMPORTED";
2746
+ data: {
2747
+ post: {
2748
+ platformId: string;
2749
+ post: {
2750
+ status?: string | null | undefined;
2751
+ price?: number | null | undefined;
2752
+ currency?: string | null | undefined;
2753
+ brand?: string | null | undefined;
2754
+ catalog?: string | null | undefined;
2755
+ catalogId?: number | null | undefined;
2756
+ colors?: string[] | null | undefined;
2757
+ colorIds?: number[] | null | undefined;
2758
+ description?: string | null | undefined;
2759
+ measurementLength?: number | null | undefined;
2760
+ measurementWidth?: number | null | undefined;
2761
+ packageSizeId?: number | null | undefined;
2762
+ photoUrls?: string[] | null | undefined;
2763
+ size?: string | null | undefined;
2764
+ sizeId?: number | null | undefined;
2765
+ statusId?: number | null | undefined;
2766
+ title?: string | null | undefined;
2767
+ isDraft?: boolean | null | undefined;
2768
+ isArchived?: boolean | null | undefined;
2769
+ availableQuantity?: number | null | undefined;
2770
+ material?: number[] | null | undefined;
2771
+ manufacturerLabelling?: string | null | undefined;
2772
+ labels?: string[] | null | undefined;
2773
+ };
2774
+ createdAt?: Date | null | undefined;
2775
+ platformUrl?: string | null | undefined;
2776
+ };
2777
+ };
2778
+ } | {
2779
+ type: "LIFECYCLE_COMPLETED";
2780
+ data: {
2781
+ accountId: string;
2782
+ };
2783
+ } | {
2784
+ type: "LIFECYCLE_STARTED";
2785
+ data: {
2786
+ accountId: string;
2787
+ caseId: string;
2788
+ };
2789
+ } | {
2790
+ type: "PUBLISHED";
2791
+ data: {
2792
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2793
+ };
2794
+ } | {
2795
+ type: "REPUBLISHING";
2796
+ data: {
2797
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2798
+ publishingDate?: Date | null | undefined;
2799
+ priceDropPayload?: {
2800
+ value: number;
2801
+ type: "PERCENTAGE" | "ABSOLUTE";
2802
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2803
+ roundStep?: number | null | undefined;
2804
+ maxRounds?: number | null | undefined;
2805
+ } | null | undefined;
2806
+ isTransfer?: boolean | null | undefined;
2807
+ targetAccountId?: string | null | undefined;
2808
+ };
2809
+ } | {
2810
+ type: "REPUBLISHING_RETRY";
2811
+ data: {
2812
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2813
+ attemptNumber: number;
2814
+ maxAttempts: number;
2815
+ previousHistoryId: string;
2816
+ originalFailureDate: Date;
2817
+ fields?: {
2818
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2819
+ autoFixable: boolean;
2820
+ error?: string | null | undefined;
2821
+ }[] | null | undefined;
2822
+ priceDropPayload?: {
2823
+ value: number;
2824
+ type: "PERCENTAGE" | "ABSOLUTE";
2825
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2826
+ roundStep?: number | null | undefined;
2827
+ maxRounds?: number | null | undefined;
2828
+ } | null | undefined;
2829
+ };
2830
+ } | {
2831
+ type: "SCHEDULED";
2832
+ data: {
2833
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2834
+ publishingDate?: Date | null | undefined;
2835
+ };
2836
+ } | {
2837
+ type: "SCHEDULED_RETRY";
2838
+ data: {
2839
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2840
+ attemptNumber: number;
2841
+ maxAttempts: number;
2842
+ previousHistoryId: string;
2843
+ originalFailureDate: Date;
2844
+ fields?: {
2845
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2846
+ autoFixable: boolean;
2847
+ error?: string | null | undefined;
2848
+ }[] | null | undefined;
2849
+ };
2850
+ } | null | undefined;
2851
+ accountId?: string | null | undefined;
2852
+ requestId?: string | null | undefined;
2853
+ targetDate?: Date | null | undefined;
2854
+ }, {
2855
+ 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";
2856
+ id: string;
2857
+ createdAt: Date;
2858
+ itemId: string | number;
2859
+ data?: {
2860
+ type: "ACTION_CANCELED";
2861
+ data: {
2862
+ targetItemHistoryId: string;
2863
+ };
2864
+ } | {
2865
+ type: "BUYER_PAID";
2866
+ data: {
2867
+ soldAccountId: string;
2868
+ soldOrderId: string;
2869
+ soldConversationId?: string | null | undefined;
2870
+ };
2871
+ } | {
2872
+ type: "DELIVERED";
2873
+ data: {
2874
+ soldAccountId: string;
2875
+ soldOrderId: string;
2876
+ soldConversationId?: string | null | undefined;
2877
+ };
2878
+ } | {
2879
+ type: "EMPTY";
2880
+ } | {
2881
+ type: "FAILED_TO_PUBLISH";
2882
+ data: {
2883
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2884
+ accountId?: string | null | undefined;
2885
+ reason?: string | null | undefined;
2886
+ fields?: {
2887
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2888
+ autoFixable: boolean;
2889
+ error?: string | null | undefined;
2890
+ }[] | null | undefined;
2891
+ itemHistoryId?: string | null | undefined;
2892
+ };
2893
+ } | {
2894
+ type: "IMAGE_PROCESSING_DONE";
2895
+ data: {
2896
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2897
+ variations?: {
2898
+ fileId: string;
2899
+ seed: number;
2900
+ phash: string;
2901
+ distanceOriginal: number;
2902
+ originalImageUrl: string;
2903
+ originalPhash: string;
2904
+ }[] | null | undefined;
2905
+ originalPhashes?: string[] | null | undefined;
2906
+ };
2907
+ } | {
2908
+ type: "IMPORTED";
2909
+ data: {
2910
+ post: {
2911
+ platformId: string;
2912
+ post: {
2913
+ status?: string | null | undefined;
2914
+ price?: number | null | undefined;
2915
+ currency?: string | null | undefined;
2916
+ brand?: string | null | undefined;
2917
+ catalog?: string | null | undefined;
2918
+ catalogId?: number | null | undefined;
2919
+ colors?: string[] | null | undefined;
2920
+ colorIds?: number[] | null | undefined;
2921
+ description?: string | null | undefined;
2922
+ measurementLength?: number | null | undefined;
2923
+ measurementWidth?: number | null | undefined;
2924
+ packageSizeId?: number | null | undefined;
2925
+ photoUrls?: string[] | null | undefined;
2926
+ size?: string | null | undefined;
2927
+ sizeId?: number | null | undefined;
2928
+ statusId?: number | null | undefined;
2929
+ title?: string | null | undefined;
2930
+ isDraft?: boolean | null | undefined;
2931
+ isArchived?: boolean | null | undefined;
2932
+ availableQuantity?: number | null | undefined;
2933
+ material?: number[] | null | undefined;
2934
+ manufacturerLabelling?: string | null | undefined;
2935
+ labels?: string[] | null | undefined;
2936
+ };
2937
+ createdAt?: Date | null | undefined;
2938
+ platformUrl?: string | null | undefined;
2939
+ };
2940
+ };
2941
+ } | {
2942
+ type: "LIFECYCLE_COMPLETED";
2943
+ data: {
2944
+ accountId: string;
2945
+ };
2946
+ } | {
2947
+ type: "LIFECYCLE_STARTED";
2948
+ data: {
2949
+ accountId: string;
2950
+ caseId: string;
2951
+ };
2952
+ } | {
2953
+ type: "PUBLISHED";
2954
+ data: {
2955
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2956
+ };
2957
+ } | {
2958
+ type: "REPUBLISHING";
2959
+ data: {
2960
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2961
+ publishingDate?: Date | null | undefined;
2962
+ priceDropPayload?: {
2963
+ value: number;
2964
+ type: "PERCENTAGE" | "ABSOLUTE";
2965
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2966
+ roundStep?: number | null | undefined;
2967
+ maxRounds?: number | null | undefined;
2968
+ } | null | undefined;
2969
+ isTransfer?: boolean | null | undefined;
2970
+ targetAccountId?: string | null | undefined;
2971
+ };
2972
+ } | {
2973
+ type: "REPUBLISHING_RETRY";
2974
+ data: {
2975
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2976
+ attemptNumber: number;
2977
+ maxAttempts: number;
2978
+ previousHistoryId: string;
2979
+ originalFailureDate: Date;
2980
+ fields?: {
2981
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2982
+ autoFixable: boolean;
2983
+ error?: string | null | undefined;
2984
+ }[] | null | undefined;
2985
+ priceDropPayload?: {
2986
+ value: number;
2987
+ type: "PERCENTAGE" | "ABSOLUTE";
2988
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2989
+ roundStep?: number | null | undefined;
2990
+ maxRounds?: number | null | undefined;
2991
+ } | null | undefined;
2992
+ };
2993
+ } | {
2994
+ type: "SCHEDULED";
2995
+ data: {
2996
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2997
+ publishingDate?: Date | null | undefined;
2998
+ };
2999
+ } | {
3000
+ type: "SCHEDULED_RETRY";
3001
+ data: {
3002
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3003
+ attemptNumber: number;
3004
+ maxAttempts: number;
3005
+ previousHistoryId: string;
3006
+ originalFailureDate: Date;
3007
+ fields?: {
3008
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3009
+ autoFixable: boolean;
3010
+ error?: string | null | undefined;
3011
+ }[] | null | undefined;
3012
+ };
3013
+ } | null | undefined;
3014
+ accountId?: string | null | undefined;
3015
+ requestId?: string | null | undefined;
3016
+ targetDate?: Date | null | undefined;
3017
+ }>, "many">>>;
1826
3018
  createdAt: z.ZodDate;
1827
3019
  updatedAt: z.ZodDate;
1828
3020
  }, "strip", z.ZodTypeAny, {
@@ -2090,116 +3282,924 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
2090
3282
  platformUrl: string;
2091
3283
  platformPrice: number;
2092
3284
  publishedAt: Date;
2093
- conversationId?: string | null | undefined;
2094
- account?: {
2095
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
2096
- userId: string | number;
2097
- name: string;
2098
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2099
- accountId: string;
2100
- locale?: string | null | undefined;
2101
- night?: {
2102
- startsAt: Date;
2103
- endsAt: Date;
2104
- } | null | undefined;
2105
- favoritesMaxDelay?: number | null | undefined;
2106
- ordersMaxDelay?: number | null | undefined;
2107
- conversationsMaxDelay?: number | null | undefined;
2108
- } | null | undefined;
2109
- viewsCount?: number | null | undefined;
2110
- favoritesCount?: number | null | undefined;
2111
- }[] | null | undefined;
2112
- }, {
2113
- userId: string | number;
2114
- id: string | number;
2115
- updatedAt: Date;
2116
- name: string;
2117
- createdAt: Date;
2118
- sold: boolean;
2119
- state?: number | null | undefined;
2120
- colorIds?: number[] | null | undefined;
2121
- description?: string | null | undefined;
2122
- packageSizeId?: number | null | undefined;
2123
- sizeId?: number | null | undefined;
2124
- labels?: {
2125
- itemId: string | number;
2126
- labelId: string | number;
2127
- label?: {
2128
- id: string | number;
2129
- name: string;
2130
- createdAt: Date;
2131
- isUserLabel: boolean;
2132
- userId?: string | number | null | undefined;
2133
- itemCount?: number | null | undefined;
2134
- parentId?: unknown;
2135
- } | null | undefined;
2136
- }[] | null | undefined;
2137
- files?: {
2138
- itemId: string | number;
2139
- fileId: string;
2140
- index?: number | null | undefined;
2141
- file?: {
2142
- path: string;
2143
- userId: string | number;
2144
- id: string;
2145
- createdAt: Date;
2146
- signedUrl: string;
2147
- } | null | undefined;
2148
- }[] | null | undefined;
2149
- fields?: {
2150
- value: string;
2151
- itemId: string | number;
2152
- fieldId: string | number;
2153
- }[] | null | undefined;
2154
- sku?: string | null | undefined;
2155
- categoryId?: number | null | undefined;
2156
- brandId?: string | number | null | undefined;
2157
- sex?: string | null | undefined;
2158
- purchasePrice?: number | null | undefined;
2159
- purchaseDate?: Date | null | undefined;
2160
- purchasePlaceId?: string | number | null | undefined;
2161
- purchased?: boolean | null | undefined;
2162
- sellingPrice?: number | null | undefined;
2163
- sellingDate?: Date | null | undefined;
2164
- sellingPlaceId?: string | number | null | undefined;
2165
- estimatedPrice?: number | null | undefined;
2166
- fees?: {
2167
- value: number;
2168
- type: string;
2169
- userId: string | number;
2170
- id: string | number;
2171
- updatedAt: Date;
2172
- name: string;
2173
- createdAt: Date;
2174
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
2175
- startDate: Date;
2176
- active: boolean;
2177
- description?: string | null | undefined;
2178
- itemId?: string | number | null | undefined;
2179
- endDate?: Date | null | undefined;
2180
- parentFeeId?: string | number | null | undefined;
2181
- }[] | null | undefined;
2182
- feesSum?: number | null | undefined;
2183
- customerId?: string | number | null | undefined;
2184
- customer?: {
2185
- userId: string | number;
2186
- id: string | number;
2187
- email: string;
2188
- firstName: string;
2189
- lastName: string;
2190
- birthDate: Date;
2191
- idNumber: string;
2192
- phone: string;
2193
- iban: string;
2194
- bic: string;
2195
- phoneVerified: boolean;
2196
- } | null | undefined;
2197
- customerType?: string | null | undefined;
2198
- customerPaid?: boolean | null | undefined;
2199
- customerPaidDate?: Date | null | undefined;
2200
- customerPaidType?: string | null | undefined;
2201
- contractId?: string | number | null | undefined;
2202
- lastHistory?: {
3285
+ conversationId?: string | null | undefined;
3286
+ account?: {
3287
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
3288
+ userId: string | number;
3289
+ name: string;
3290
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3291
+ accountId: string;
3292
+ locale?: string | null | undefined;
3293
+ night?: {
3294
+ startsAt: Date;
3295
+ endsAt: Date;
3296
+ } | null | undefined;
3297
+ favoritesMaxDelay?: number | null | undefined;
3298
+ ordersMaxDelay?: number | null | undefined;
3299
+ conversationsMaxDelay?: number | null | undefined;
3300
+ } | null | undefined;
3301
+ viewsCount?: number | null | undefined;
3302
+ favoritesCount?: number | null | undefined;
3303
+ }[] | null | undefined;
3304
+ history?: {
3305
+ 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";
3306
+ id: string;
3307
+ createdAt: Date;
3308
+ itemId: string | number;
3309
+ data?: {
3310
+ type: "ACTION_CANCELED";
3311
+ data: {
3312
+ targetItemHistoryId: string;
3313
+ };
3314
+ } | {
3315
+ type: "BUYER_PAID";
3316
+ data: {
3317
+ soldAccountId: string;
3318
+ soldOrderId: string;
3319
+ soldConversationId?: string | null | undefined;
3320
+ };
3321
+ } | {
3322
+ type: "DELIVERED";
3323
+ data: {
3324
+ soldAccountId: string;
3325
+ soldOrderId: string;
3326
+ soldConversationId?: string | null | undefined;
3327
+ };
3328
+ } | {
3329
+ type: "EMPTY";
3330
+ } | {
3331
+ type: "FAILED_TO_PUBLISH";
3332
+ data: {
3333
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3334
+ accountId?: string | null | undefined;
3335
+ reason?: string | null | undefined;
3336
+ fields?: {
3337
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3338
+ autoFixable: boolean;
3339
+ error?: string | null | undefined;
3340
+ }[] | null | undefined;
3341
+ itemHistoryId?: string | null | undefined;
3342
+ };
3343
+ } | {
3344
+ type: "IMAGE_PROCESSING_DONE";
3345
+ data: {
3346
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3347
+ variations?: {
3348
+ fileId: string;
3349
+ seed: number;
3350
+ phash: string;
3351
+ distanceOriginal: number;
3352
+ originalImageUrl: string;
3353
+ originalPhash: string;
3354
+ }[] | null | undefined;
3355
+ originalPhashes?: string[] | null | undefined;
3356
+ };
3357
+ } | {
3358
+ type: "IMPORTED";
3359
+ data: {
3360
+ post: {
3361
+ platformId: string;
3362
+ post: {
3363
+ status?: string | null | undefined;
3364
+ price?: number | null | undefined;
3365
+ currency?: string | null | undefined;
3366
+ brand?: string | null | undefined;
3367
+ catalog?: string | null | undefined;
3368
+ catalogId?: number | null | undefined;
3369
+ colors?: string[] | null | undefined;
3370
+ colorIds?: number[] | null | undefined;
3371
+ description?: string | null | undefined;
3372
+ measurementLength?: number | null | undefined;
3373
+ measurementWidth?: number | null | undefined;
3374
+ packageSizeId?: number | null | undefined;
3375
+ photoUrls?: string[] | null | undefined;
3376
+ size?: string | null | undefined;
3377
+ sizeId?: number | null | undefined;
3378
+ statusId?: number | null | undefined;
3379
+ title?: string | null | undefined;
3380
+ isDraft?: boolean | null | undefined;
3381
+ isArchived?: boolean | null | undefined;
3382
+ availableQuantity?: number | null | undefined;
3383
+ material?: number[] | null | undefined;
3384
+ manufacturerLabelling?: string | null | undefined;
3385
+ labels?: string[] | null | undefined;
3386
+ };
3387
+ createdAt?: Date | null | undefined;
3388
+ platformUrl?: string | null | undefined;
3389
+ };
3390
+ };
3391
+ } | {
3392
+ type: "LIFECYCLE_COMPLETED";
3393
+ data: {
3394
+ accountId: string;
3395
+ };
3396
+ } | {
3397
+ type: "LIFECYCLE_STARTED";
3398
+ data: {
3399
+ accountId: string;
3400
+ caseId: string;
3401
+ };
3402
+ } | {
3403
+ type: "PUBLISHED";
3404
+ data: {
3405
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3406
+ };
3407
+ } | {
3408
+ type: "REPUBLISHING";
3409
+ data: {
3410
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3411
+ publishingDate?: Date | null | undefined;
3412
+ priceDropPayload?: {
3413
+ value: number;
3414
+ type: "PERCENTAGE" | "ABSOLUTE";
3415
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3416
+ roundStep?: number | null | undefined;
3417
+ maxRounds?: number | null | undefined;
3418
+ } | null | undefined;
3419
+ isTransfer?: boolean | null | undefined;
3420
+ targetAccountId?: string | null | undefined;
3421
+ };
3422
+ } | {
3423
+ type: "REPUBLISHING_RETRY";
3424
+ data: {
3425
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3426
+ attemptNumber: number;
3427
+ maxAttempts: number;
3428
+ previousHistoryId: string;
3429
+ originalFailureDate: Date;
3430
+ fields?: {
3431
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3432
+ autoFixable: boolean;
3433
+ error?: string | null | undefined;
3434
+ }[] | null | undefined;
3435
+ priceDropPayload?: {
3436
+ value: number;
3437
+ type: "PERCENTAGE" | "ABSOLUTE";
3438
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3439
+ roundStep?: number | null | undefined;
3440
+ maxRounds?: number | null | undefined;
3441
+ } | null | undefined;
3442
+ };
3443
+ } | {
3444
+ type: "SCHEDULED";
3445
+ data: {
3446
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3447
+ publishingDate?: Date | null | undefined;
3448
+ };
3449
+ } | {
3450
+ type: "SCHEDULED_RETRY";
3451
+ data: {
3452
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3453
+ attemptNumber: number;
3454
+ maxAttempts: number;
3455
+ previousHistoryId: string;
3456
+ originalFailureDate: Date;
3457
+ fields?: {
3458
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3459
+ autoFixable: boolean;
3460
+ error?: string | null | undefined;
3461
+ }[] | null | undefined;
3462
+ };
3463
+ } | null | undefined;
3464
+ accountId?: string | null | undefined;
3465
+ requestId?: string | null | undefined;
3466
+ targetDate?: Date | null | undefined;
3467
+ }[] | null | undefined;
3468
+ }, {
3469
+ userId: string | number;
3470
+ id: string | number;
3471
+ updatedAt: Date;
3472
+ name: string;
3473
+ createdAt: Date;
3474
+ sold: boolean;
3475
+ state?: number | null | undefined;
3476
+ colorIds?: number[] | null | undefined;
3477
+ description?: string | null | undefined;
3478
+ packageSizeId?: number | null | undefined;
3479
+ sizeId?: number | null | undefined;
3480
+ labels?: {
3481
+ itemId: string | number;
3482
+ labelId: string | number;
3483
+ label?: {
3484
+ id: string | number;
3485
+ name: string;
3486
+ createdAt: Date;
3487
+ isUserLabel: boolean;
3488
+ userId?: string | number | null | undefined;
3489
+ itemCount?: number | null | undefined;
3490
+ parentId?: unknown;
3491
+ } | null | undefined;
3492
+ }[] | null | undefined;
3493
+ files?: {
3494
+ itemId: string | number;
3495
+ fileId: string;
3496
+ index?: number | null | undefined;
3497
+ file?: {
3498
+ path: string;
3499
+ userId: string | number;
3500
+ id: string;
3501
+ createdAt: Date;
3502
+ signedUrl: string;
3503
+ } | null | undefined;
3504
+ }[] | null | undefined;
3505
+ fields?: {
3506
+ value: string;
3507
+ itemId: string | number;
3508
+ fieldId: string | number;
3509
+ }[] | null | undefined;
3510
+ sku?: string | null | undefined;
3511
+ categoryId?: number | null | undefined;
3512
+ brandId?: string | number | null | undefined;
3513
+ sex?: string | null | undefined;
3514
+ purchasePrice?: number | null | undefined;
3515
+ purchaseDate?: Date | null | undefined;
3516
+ purchasePlaceId?: string | number | null | undefined;
3517
+ purchased?: boolean | null | undefined;
3518
+ sellingPrice?: number | null | undefined;
3519
+ sellingDate?: Date | null | undefined;
3520
+ sellingPlaceId?: string | number | null | undefined;
3521
+ estimatedPrice?: number | null | undefined;
3522
+ fees?: {
3523
+ value: number;
3524
+ type: string;
3525
+ userId: string | number;
3526
+ id: string | number;
3527
+ updatedAt: Date;
3528
+ name: string;
3529
+ createdAt: Date;
3530
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
3531
+ startDate: Date;
3532
+ active: boolean;
3533
+ description?: string | null | undefined;
3534
+ itemId?: string | number | null | undefined;
3535
+ endDate?: Date | null | undefined;
3536
+ parentFeeId?: string | number | null | undefined;
3537
+ }[] | null | undefined;
3538
+ feesSum?: number | null | undefined;
3539
+ customerId?: string | number | null | undefined;
3540
+ customer?: {
3541
+ userId: string | number;
3542
+ id: string | number;
3543
+ email: string;
3544
+ firstName: string;
3545
+ lastName: string;
3546
+ birthDate: Date;
3547
+ idNumber: string;
3548
+ phone: string;
3549
+ iban: string;
3550
+ bic: string;
3551
+ phoneVerified: boolean;
3552
+ } | null | undefined;
3553
+ customerType?: string | null | undefined;
3554
+ customerPaid?: boolean | null | undefined;
3555
+ customerPaidDate?: Date | null | undefined;
3556
+ customerPaidType?: string | null | undefined;
3557
+ contractId?: string | number | null | undefined;
3558
+ lastHistory?: {
3559
+ 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";
3560
+ id: string;
3561
+ createdAt: Date;
3562
+ itemId: string | number;
3563
+ data?: {
3564
+ type: "ACTION_CANCELED";
3565
+ data: {
3566
+ targetItemHistoryId: string;
3567
+ };
3568
+ } | {
3569
+ type: "BUYER_PAID";
3570
+ data: {
3571
+ soldAccountId: string;
3572
+ soldOrderId: string;
3573
+ soldConversationId?: string | null | undefined;
3574
+ };
3575
+ } | {
3576
+ type: "DELIVERED";
3577
+ data: {
3578
+ soldAccountId: string;
3579
+ soldOrderId: string;
3580
+ soldConversationId?: string | null | undefined;
3581
+ };
3582
+ } | {
3583
+ type: "EMPTY";
3584
+ } | {
3585
+ type: "FAILED_TO_PUBLISH";
3586
+ data: {
3587
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3588
+ accountId?: string | null | undefined;
3589
+ reason?: string | null | undefined;
3590
+ fields?: {
3591
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3592
+ autoFixable: boolean;
3593
+ error?: string | null | undefined;
3594
+ }[] | null | undefined;
3595
+ itemHistoryId?: string | null | undefined;
3596
+ };
3597
+ } | {
3598
+ type: "IMAGE_PROCESSING_DONE";
3599
+ data: {
3600
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3601
+ variations?: {
3602
+ fileId: string;
3603
+ seed: number;
3604
+ phash: string;
3605
+ distanceOriginal: number;
3606
+ originalImageUrl: string;
3607
+ originalPhash: string;
3608
+ }[] | null | undefined;
3609
+ originalPhashes?: string[] | null | undefined;
3610
+ };
3611
+ } | {
3612
+ type: "IMPORTED";
3613
+ data: {
3614
+ post: {
3615
+ platformId: string;
3616
+ post: {
3617
+ status?: string | null | undefined;
3618
+ price?: number | null | undefined;
3619
+ currency?: string | null | undefined;
3620
+ brand?: string | null | undefined;
3621
+ catalog?: string | null | undefined;
3622
+ catalogId?: number | null | undefined;
3623
+ colors?: string[] | null | undefined;
3624
+ colorIds?: number[] | null | undefined;
3625
+ description?: string | null | undefined;
3626
+ measurementLength?: number | null | undefined;
3627
+ measurementWidth?: number | null | undefined;
3628
+ packageSizeId?: number | null | undefined;
3629
+ photoUrls?: string[] | null | undefined;
3630
+ size?: string | null | undefined;
3631
+ sizeId?: number | null | undefined;
3632
+ statusId?: number | null | undefined;
3633
+ title?: string | null | undefined;
3634
+ isDraft?: boolean | null | undefined;
3635
+ isArchived?: boolean | null | undefined;
3636
+ availableQuantity?: number | null | undefined;
3637
+ material?: number[] | null | undefined;
3638
+ manufacturerLabelling?: string | null | undefined;
3639
+ labels?: string[] | null | undefined;
3640
+ };
3641
+ createdAt?: Date | null | undefined;
3642
+ platformUrl?: string | null | undefined;
3643
+ };
3644
+ };
3645
+ } | {
3646
+ type: "LIFECYCLE_COMPLETED";
3647
+ data: {
3648
+ accountId: string;
3649
+ };
3650
+ } | {
3651
+ type: "LIFECYCLE_STARTED";
3652
+ data: {
3653
+ accountId: string;
3654
+ caseId: string;
3655
+ };
3656
+ } | {
3657
+ type: "PUBLISHED";
3658
+ data: {
3659
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3660
+ };
3661
+ } | {
3662
+ type: "REPUBLISHING";
3663
+ data: {
3664
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3665
+ publishingDate?: Date | null | undefined;
3666
+ priceDropPayload?: {
3667
+ value: number;
3668
+ type: "PERCENTAGE" | "ABSOLUTE";
3669
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3670
+ roundStep?: number | null | undefined;
3671
+ maxRounds?: number | null | undefined;
3672
+ } | null | undefined;
3673
+ isTransfer?: boolean | null | undefined;
3674
+ targetAccountId?: string | null | undefined;
3675
+ };
3676
+ } | {
3677
+ type: "REPUBLISHING_RETRY";
3678
+ data: {
3679
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3680
+ attemptNumber: number;
3681
+ maxAttempts: number;
3682
+ previousHistoryId: string;
3683
+ originalFailureDate: Date;
3684
+ fields?: {
3685
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3686
+ autoFixable: boolean;
3687
+ error?: string | null | undefined;
3688
+ }[] | null | undefined;
3689
+ priceDropPayload?: {
3690
+ value: number;
3691
+ type: "PERCENTAGE" | "ABSOLUTE";
3692
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3693
+ roundStep?: number | null | undefined;
3694
+ maxRounds?: number | null | undefined;
3695
+ } | null | undefined;
3696
+ };
3697
+ } | {
3698
+ type: "SCHEDULED";
3699
+ data: {
3700
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3701
+ publishingDate?: Date | null | undefined;
3702
+ };
3703
+ } | {
3704
+ type: "SCHEDULED_RETRY";
3705
+ data: {
3706
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3707
+ attemptNumber: number;
3708
+ maxAttempts: number;
3709
+ previousHistoryId: string;
3710
+ originalFailureDate: Date;
3711
+ fields?: {
3712
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3713
+ autoFixable: boolean;
3714
+ error?: string | null | undefined;
3715
+ }[] | null | undefined;
3716
+ };
3717
+ } | null | undefined;
3718
+ accountId?: string | null | undefined;
3719
+ requestId?: string | null | undefined;
3720
+ targetDate?: Date | null | undefined;
3721
+ } | null | undefined;
3722
+ platforms?: {
3723
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
3724
+ id: string;
3725
+ updatedAt: Date;
3726
+ createdAt: Date;
3727
+ accountId: string;
3728
+ itemId: string | number;
3729
+ platformId: string;
3730
+ platformUrl: string;
3731
+ platformPrice: number;
3732
+ publishedAt: Date;
3733
+ conversationId?: string | null | undefined;
3734
+ account?: {
3735
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
3736
+ userId: string | number;
3737
+ name: string;
3738
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3739
+ accountId: string;
3740
+ locale?: string | null | undefined;
3741
+ night?: {
3742
+ startsAt: Date;
3743
+ endsAt: Date;
3744
+ } | null | undefined;
3745
+ favoritesMaxDelay?: number | null | undefined;
3746
+ ordersMaxDelay?: number | null | undefined;
3747
+ conversationsMaxDelay?: number | null | undefined;
3748
+ } | null | undefined;
3749
+ viewsCount?: number | null | undefined;
3750
+ favoritesCount?: number | null | undefined;
3751
+ }[] | null | undefined;
3752
+ history?: {
3753
+ 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";
3754
+ id: string;
3755
+ createdAt: Date;
3756
+ itemId: string | number;
3757
+ data?: {
3758
+ type: "ACTION_CANCELED";
3759
+ data: {
3760
+ targetItemHistoryId: string;
3761
+ };
3762
+ } | {
3763
+ type: "BUYER_PAID";
3764
+ data: {
3765
+ soldAccountId: string;
3766
+ soldOrderId: string;
3767
+ soldConversationId?: string | null | undefined;
3768
+ };
3769
+ } | {
3770
+ type: "DELIVERED";
3771
+ data: {
3772
+ soldAccountId: string;
3773
+ soldOrderId: string;
3774
+ soldConversationId?: string | null | undefined;
3775
+ };
3776
+ } | {
3777
+ type: "EMPTY";
3778
+ } | {
3779
+ type: "FAILED_TO_PUBLISH";
3780
+ data: {
3781
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3782
+ accountId?: string | null | undefined;
3783
+ reason?: string | null | undefined;
3784
+ fields?: {
3785
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3786
+ autoFixable: boolean;
3787
+ error?: string | null | undefined;
3788
+ }[] | null | undefined;
3789
+ itemHistoryId?: string | null | undefined;
3790
+ };
3791
+ } | {
3792
+ type: "IMAGE_PROCESSING_DONE";
3793
+ data: {
3794
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3795
+ variations?: {
3796
+ fileId: string;
3797
+ seed: number;
3798
+ phash: string;
3799
+ distanceOriginal: number;
3800
+ originalImageUrl: string;
3801
+ originalPhash: string;
3802
+ }[] | null | undefined;
3803
+ originalPhashes?: string[] | null | undefined;
3804
+ };
3805
+ } | {
3806
+ type: "IMPORTED";
3807
+ data: {
3808
+ post: {
3809
+ platformId: string;
3810
+ post: {
3811
+ status?: string | null | undefined;
3812
+ price?: number | null | undefined;
3813
+ currency?: string | null | undefined;
3814
+ brand?: string | null | undefined;
3815
+ catalog?: string | null | undefined;
3816
+ catalogId?: number | null | undefined;
3817
+ colors?: string[] | null | undefined;
3818
+ colorIds?: number[] | null | undefined;
3819
+ description?: string | null | undefined;
3820
+ measurementLength?: number | null | undefined;
3821
+ measurementWidth?: number | null | undefined;
3822
+ packageSizeId?: number | null | undefined;
3823
+ photoUrls?: string[] | null | undefined;
3824
+ size?: string | null | undefined;
3825
+ sizeId?: number | null | undefined;
3826
+ statusId?: number | null | undefined;
3827
+ title?: string | null | undefined;
3828
+ isDraft?: boolean | null | undefined;
3829
+ isArchived?: boolean | null | undefined;
3830
+ availableQuantity?: number | null | undefined;
3831
+ material?: number[] | null | undefined;
3832
+ manufacturerLabelling?: string | null | undefined;
3833
+ labels?: string[] | null | undefined;
3834
+ };
3835
+ createdAt?: Date | null | undefined;
3836
+ platformUrl?: string | null | undefined;
3837
+ };
3838
+ };
3839
+ } | {
3840
+ type: "LIFECYCLE_COMPLETED";
3841
+ data: {
3842
+ accountId: string;
3843
+ };
3844
+ } | {
3845
+ type: "LIFECYCLE_STARTED";
3846
+ data: {
3847
+ accountId: string;
3848
+ caseId: string;
3849
+ };
3850
+ } | {
3851
+ type: "PUBLISHED";
3852
+ data: {
3853
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3854
+ };
3855
+ } | {
3856
+ type: "REPUBLISHING";
3857
+ data: {
3858
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3859
+ publishingDate?: Date | null | undefined;
3860
+ priceDropPayload?: {
3861
+ value: number;
3862
+ type: "PERCENTAGE" | "ABSOLUTE";
3863
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3864
+ roundStep?: number | null | undefined;
3865
+ maxRounds?: number | null | undefined;
3866
+ } | null | undefined;
3867
+ isTransfer?: boolean | null | undefined;
3868
+ targetAccountId?: string | null | undefined;
3869
+ };
3870
+ } | {
3871
+ type: "REPUBLISHING_RETRY";
3872
+ data: {
3873
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3874
+ attemptNumber: number;
3875
+ maxAttempts: number;
3876
+ previousHistoryId: string;
3877
+ originalFailureDate: Date;
3878
+ fields?: {
3879
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3880
+ autoFixable: boolean;
3881
+ error?: string | null | undefined;
3882
+ }[] | null | undefined;
3883
+ priceDropPayload?: {
3884
+ value: number;
3885
+ type: "PERCENTAGE" | "ABSOLUTE";
3886
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3887
+ roundStep?: number | null | undefined;
3888
+ maxRounds?: number | null | undefined;
3889
+ } | null | undefined;
3890
+ };
3891
+ } | {
3892
+ type: "SCHEDULED";
3893
+ data: {
3894
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3895
+ publishingDate?: Date | null | undefined;
3896
+ };
3897
+ } | {
3898
+ type: "SCHEDULED_RETRY";
3899
+ data: {
3900
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3901
+ attemptNumber: number;
3902
+ maxAttempts: number;
3903
+ previousHistoryId: string;
3904
+ originalFailureDate: Date;
3905
+ fields?: {
3906
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3907
+ autoFixable: boolean;
3908
+ error?: string | null | undefined;
3909
+ }[] | null | undefined;
3910
+ };
3911
+ } | null | undefined;
3912
+ accountId?: string | null | undefined;
3913
+ requestId?: string | null | undefined;
3914
+ targetDate?: Date | null | undefined;
3915
+ }[] | null | undefined;
3916
+ }>, "many">;
3917
+ }, "strip", z.ZodTypeAny, {
3918
+ items: {
3919
+ userId: string | number;
3920
+ id: string | number;
3921
+ updatedAt: Date;
3922
+ name: string;
3923
+ createdAt: Date;
3924
+ sold: boolean;
3925
+ state?: number | null | undefined;
3926
+ colorIds?: number[] | null | undefined;
3927
+ description?: string | null | undefined;
3928
+ packageSizeId?: number | null | undefined;
3929
+ sizeId?: number | null | undefined;
3930
+ labels?: {
3931
+ itemId: string | number;
3932
+ labelId: string | number;
3933
+ label?: {
3934
+ id: string | number;
3935
+ name: string;
3936
+ createdAt: Date;
3937
+ isUserLabel: boolean;
3938
+ userId?: string | number | null | undefined;
3939
+ itemCount?: number | null | undefined;
3940
+ parentId?: unknown;
3941
+ } | null | undefined;
3942
+ }[] | null | undefined;
3943
+ files?: {
3944
+ itemId: string | number;
3945
+ fileId: string;
3946
+ index?: number | null | undefined;
3947
+ file?: {
3948
+ path: string;
3949
+ userId: string | number;
3950
+ id: string;
3951
+ createdAt: Date;
3952
+ signedUrl: string;
3953
+ } | null | undefined;
3954
+ }[] | null | undefined;
3955
+ fields?: {
3956
+ value: string;
3957
+ itemId: string | number;
3958
+ fieldId: string | number;
3959
+ }[] | null | undefined;
3960
+ sku?: string | null | undefined;
3961
+ categoryId?: number | null | undefined;
3962
+ brandId?: string | number | null | undefined;
3963
+ sex?: string | null | undefined;
3964
+ purchasePrice?: number | null | undefined;
3965
+ purchaseDate?: Date | null | undefined;
3966
+ purchasePlaceId?: string | number | null | undefined;
3967
+ purchased?: boolean | null | undefined;
3968
+ sellingPrice?: number | null | undefined;
3969
+ sellingDate?: Date | null | undefined;
3970
+ sellingPlaceId?: string | number | null | undefined;
3971
+ estimatedPrice?: number | null | undefined;
3972
+ fees?: {
3973
+ value: number;
3974
+ type: string;
3975
+ userId: string | number;
3976
+ id: string | number;
3977
+ updatedAt: Date;
3978
+ name: string;
3979
+ createdAt: Date;
3980
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
3981
+ startDate: Date;
3982
+ active: boolean;
3983
+ description?: string | null | undefined;
3984
+ itemId?: string | number | null | undefined;
3985
+ endDate?: Date | null | undefined;
3986
+ parentFeeId?: string | number | null | undefined;
3987
+ }[] | null | undefined;
3988
+ feesSum?: number | null | undefined;
3989
+ customerId?: string | number | null | undefined;
3990
+ customer?: {
3991
+ userId: string | number;
3992
+ id: string | number;
3993
+ email: string;
3994
+ firstName: string;
3995
+ lastName: string;
3996
+ birthDate: Date;
3997
+ idNumber: string;
3998
+ phone: string;
3999
+ iban: string;
4000
+ bic: string;
4001
+ phoneVerified: boolean;
4002
+ } | null | undefined;
4003
+ customerType?: string | null | undefined;
4004
+ customerPaid?: boolean | null | undefined;
4005
+ customerPaidDate?: Date | null | undefined;
4006
+ customerPaidType?: string | null | undefined;
4007
+ contractId?: string | number | null | undefined;
4008
+ lastHistory?: {
4009
+ 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";
4010
+ id: string;
4011
+ createdAt: Date;
4012
+ itemId: string | number;
4013
+ data?: {
4014
+ type: "ACTION_CANCELED";
4015
+ data: {
4016
+ targetItemHistoryId: string;
4017
+ };
4018
+ } | {
4019
+ type: "BUYER_PAID";
4020
+ data: {
4021
+ soldAccountId: string;
4022
+ soldOrderId: string;
4023
+ soldConversationId?: string | null | undefined;
4024
+ };
4025
+ } | {
4026
+ type: "DELIVERED";
4027
+ data: {
4028
+ soldAccountId: string;
4029
+ soldOrderId: string;
4030
+ soldConversationId?: string | null | undefined;
4031
+ };
4032
+ } | {
4033
+ type: "EMPTY";
4034
+ } | {
4035
+ type: "FAILED_TO_PUBLISH";
4036
+ data: {
4037
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4038
+ accountId?: string | null | undefined;
4039
+ reason?: string | null | undefined;
4040
+ fields?: {
4041
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4042
+ autoFixable: boolean;
4043
+ error?: string | null | undefined;
4044
+ }[] | null | undefined;
4045
+ itemHistoryId?: string | null | undefined;
4046
+ };
4047
+ } | {
4048
+ type: "IMAGE_PROCESSING_DONE";
4049
+ data: {
4050
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4051
+ variations?: {
4052
+ fileId: string;
4053
+ seed: number;
4054
+ phash: string;
4055
+ distanceOriginal: number;
4056
+ originalImageUrl: string;
4057
+ originalPhash: string;
4058
+ }[] | null | undefined;
4059
+ originalPhashes?: string[] | null | undefined;
4060
+ };
4061
+ } | {
4062
+ type: "IMPORTED";
4063
+ data: {
4064
+ post: {
4065
+ platformId: string;
4066
+ post: {
4067
+ status?: string | null | undefined;
4068
+ price?: number | null | undefined;
4069
+ currency?: string | null | undefined;
4070
+ brand?: string | null | undefined;
4071
+ catalog?: string | null | undefined;
4072
+ catalogId?: number | null | undefined;
4073
+ colors?: string[] | null | undefined;
4074
+ colorIds?: number[] | null | undefined;
4075
+ description?: string | null | undefined;
4076
+ measurementLength?: number | null | undefined;
4077
+ measurementWidth?: number | null | undefined;
4078
+ packageSizeId?: number | null | undefined;
4079
+ photoUrls?: string[] | null | undefined;
4080
+ size?: string | null | undefined;
4081
+ sizeId?: number | null | undefined;
4082
+ statusId?: number | null | undefined;
4083
+ title?: string | null | undefined;
4084
+ isDraft?: boolean | null | undefined;
4085
+ isArchived?: boolean | null | undefined;
4086
+ availableQuantity?: number | null | undefined;
4087
+ material?: number[] | null | undefined;
4088
+ manufacturerLabelling?: string | null | undefined;
4089
+ labels?: string[] | null | undefined;
4090
+ };
4091
+ createdAt?: Date | null | undefined;
4092
+ platformUrl?: string | null | undefined;
4093
+ };
4094
+ };
4095
+ } | {
4096
+ type: "LIFECYCLE_COMPLETED";
4097
+ data: {
4098
+ accountId: string;
4099
+ };
4100
+ } | {
4101
+ type: "LIFECYCLE_STARTED";
4102
+ data: {
4103
+ accountId: string;
4104
+ caseId: string;
4105
+ };
4106
+ } | {
4107
+ type: "PUBLISHED";
4108
+ data: {
4109
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4110
+ };
4111
+ } | {
4112
+ type: "REPUBLISHING";
4113
+ data: {
4114
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4115
+ publishingDate?: Date | null | undefined;
4116
+ priceDropPayload?: {
4117
+ value: number;
4118
+ type: "PERCENTAGE" | "ABSOLUTE";
4119
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4120
+ roundStep?: number | null | undefined;
4121
+ maxRounds?: number | null | undefined;
4122
+ } | null | undefined;
4123
+ isTransfer?: boolean | null | undefined;
4124
+ targetAccountId?: string | null | undefined;
4125
+ };
4126
+ } | {
4127
+ type: "REPUBLISHING_RETRY";
4128
+ data: {
4129
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4130
+ attemptNumber: number;
4131
+ maxAttempts: number;
4132
+ previousHistoryId: string;
4133
+ originalFailureDate: Date;
4134
+ fields?: {
4135
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4136
+ autoFixable: boolean;
4137
+ error?: string | null | undefined;
4138
+ }[] | null | undefined;
4139
+ priceDropPayload?: {
4140
+ value: number;
4141
+ type: "PERCENTAGE" | "ABSOLUTE";
4142
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4143
+ roundStep?: number | null | undefined;
4144
+ maxRounds?: number | null | undefined;
4145
+ } | null | undefined;
4146
+ };
4147
+ } | {
4148
+ type: "SCHEDULED";
4149
+ data: {
4150
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4151
+ publishingDate?: Date | null | undefined;
4152
+ };
4153
+ } | {
4154
+ type: "SCHEDULED_RETRY";
4155
+ data: {
4156
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4157
+ attemptNumber: number;
4158
+ maxAttempts: number;
4159
+ previousHistoryId: string;
4160
+ originalFailureDate: Date;
4161
+ fields?: {
4162
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4163
+ autoFixable: boolean;
4164
+ error?: string | null | undefined;
4165
+ }[] | null | undefined;
4166
+ };
4167
+ } | null | undefined;
4168
+ accountId?: string | null | undefined;
4169
+ requestId?: string | null | undefined;
4170
+ targetDate?: Date | null | undefined;
4171
+ } | null | undefined;
4172
+ platforms?: {
4173
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
4174
+ id: string;
4175
+ updatedAt: Date;
4176
+ createdAt: Date;
4177
+ accountId: string;
4178
+ itemId: string | number;
4179
+ platformId: string;
4180
+ platformUrl: string;
4181
+ platformPrice: number;
4182
+ publishedAt: Date;
4183
+ conversationId?: string | null | undefined;
4184
+ account?: {
4185
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
4186
+ userId: string | number;
4187
+ name: string;
4188
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4189
+ accountId: string;
4190
+ locale?: string | null | undefined;
4191
+ night?: {
4192
+ startsAt: Date;
4193
+ endsAt: Date;
4194
+ } | null | undefined;
4195
+ favoritesMaxDelay?: number | null | undefined;
4196
+ ordersMaxDelay?: number | null | undefined;
4197
+ conversationsMaxDelay?: number | null | undefined;
4198
+ } | null | undefined;
4199
+ viewsCount?: number | null | undefined;
4200
+ favoritesCount?: number | null | undefined;
4201
+ }[] | null | undefined;
4202
+ history?: {
2203
4203
  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";
2204
4204
  id: string;
2205
4205
  createdAt: Date;
@@ -2362,39 +4362,52 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
2362
4362
  accountId?: string | null | undefined;
2363
4363
  requestId?: string | null | undefined;
2364
4364
  targetDate?: Date | null | undefined;
2365
- } | null | undefined;
2366
- platforms?: {
2367
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2368
- id: string;
2369
- updatedAt: Date;
2370
- createdAt: Date;
2371
- accountId: string;
2372
- itemId: string | number;
2373
- platformId: string;
2374
- platformUrl: string;
2375
- platformPrice: number;
2376
- publishedAt: Date;
2377
- conversationId?: string | null | undefined;
2378
- account?: {
2379
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
2380
- userId: string | number;
2381
- name: string;
2382
- platform: "ETSY" | "SHOPIFY" | "VINTED";
4365
+ }[] | null | undefined;
4366
+ }[];
4367
+ transaction: {
4368
+ id: string;
4369
+ accountId: string;
4370
+ platformTransactionId: string;
4371
+ conversationId?: string | null | undefined;
4372
+ shipmentId?: string | null | undefined;
4373
+ buyerPlatformId?: string | null | undefined;
4374
+ sellerPlatformId?: string | null | undefined;
4375
+ items?: {
4376
+ transactionId: string;
4377
+ itemOnPlatformId: string;
4378
+ itemOnPlatform?: {
4379
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
4380
+ id: string;
4381
+ updatedAt: Date;
4382
+ createdAt: Date;
2383
4383
  accountId: string;
2384
- locale?: string | null | undefined;
2385
- night?: {
2386
- startsAt: Date;
2387
- endsAt: Date;
4384
+ itemId: string | number;
4385
+ platformId: string;
4386
+ platformUrl: string;
4387
+ platformPrice: number;
4388
+ publishedAt: Date;
4389
+ conversationId?: string | null | undefined;
4390
+ account?: {
4391
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
4392
+ userId: string | number;
4393
+ name: string;
4394
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4395
+ accountId: string;
4396
+ locale?: string | null | undefined;
4397
+ night?: {
4398
+ startsAt: Date;
4399
+ endsAt: Date;
4400
+ } | null | undefined;
4401
+ favoritesMaxDelay?: number | null | undefined;
4402
+ ordersMaxDelay?: number | null | undefined;
4403
+ conversationsMaxDelay?: number | null | undefined;
2388
4404
  } | null | undefined;
2389
- favoritesMaxDelay?: number | null | undefined;
2390
- ordersMaxDelay?: number | null | undefined;
2391
- conversationsMaxDelay?: number | null | undefined;
4405
+ viewsCount?: number | null | undefined;
4406
+ favoritesCount?: number | null | undefined;
2392
4407
  } | null | undefined;
2393
- viewsCount?: number | null | undefined;
2394
- favoritesCount?: number | null | undefined;
2395
4408
  }[] | null | undefined;
2396
- }>, "many">;
2397
- }, "strip", z.ZodTypeAny, {
4409
+ };
4410
+ }, {
2398
4411
  items: {
2399
4412
  userId: string | number;
2400
4413
  id: string | number;
@@ -2679,142 +4692,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
2679
4692
  viewsCount?: number | null | undefined;
2680
4693
  favoritesCount?: number | null | undefined;
2681
4694
  }[] | null | undefined;
2682
- }[];
2683
- transaction: {
2684
- id: string;
2685
- accountId: string;
2686
- platformTransactionId: string;
2687
- conversationId?: string | null | undefined;
2688
- shipmentId?: string | null | undefined;
2689
- buyerPlatformId?: string | null | undefined;
2690
- sellerPlatformId?: string | null | undefined;
2691
- items?: {
2692
- transactionId: string;
2693
- itemOnPlatformId: string;
2694
- itemOnPlatform?: {
2695
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2696
- id: string;
2697
- updatedAt: Date;
2698
- createdAt: Date;
2699
- accountId: string;
2700
- itemId: string | number;
2701
- platformId: string;
2702
- platformUrl: string;
2703
- platformPrice: number;
2704
- publishedAt: Date;
2705
- conversationId?: string | null | undefined;
2706
- account?: {
2707
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
2708
- userId: string | number;
2709
- name: string;
2710
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2711
- accountId: string;
2712
- locale?: string | null | undefined;
2713
- night?: {
2714
- startsAt: Date;
2715
- endsAt: Date;
2716
- } | null | undefined;
2717
- favoritesMaxDelay?: number | null | undefined;
2718
- ordersMaxDelay?: number | null | undefined;
2719
- conversationsMaxDelay?: number | null | undefined;
2720
- } | null | undefined;
2721
- viewsCount?: number | null | undefined;
2722
- favoritesCount?: number | null | undefined;
2723
- } | null | undefined;
2724
- }[] | null | undefined;
2725
- };
2726
- }, {
2727
- items: {
2728
- userId: string | number;
2729
- id: string | number;
2730
- updatedAt: Date;
2731
- name: string;
2732
- createdAt: Date;
2733
- sold: boolean;
2734
- state?: number | null | undefined;
2735
- colorIds?: number[] | null | undefined;
2736
- description?: string | null | undefined;
2737
- packageSizeId?: number | null | undefined;
2738
- sizeId?: number | null | undefined;
2739
- labels?: {
2740
- itemId: string | number;
2741
- labelId: string | number;
2742
- label?: {
2743
- id: string | number;
2744
- name: string;
2745
- createdAt: Date;
2746
- isUserLabel: boolean;
2747
- userId?: string | number | null | undefined;
2748
- itemCount?: number | null | undefined;
2749
- parentId?: unknown;
2750
- } | null | undefined;
2751
- }[] | null | undefined;
2752
- files?: {
2753
- itemId: string | number;
2754
- fileId: string;
2755
- index?: number | null | undefined;
2756
- file?: {
2757
- path: string;
2758
- userId: string | number;
2759
- id: string;
2760
- createdAt: Date;
2761
- signedUrl: string;
2762
- } | null | undefined;
2763
- }[] | null | undefined;
2764
- fields?: {
2765
- value: string;
2766
- itemId: string | number;
2767
- fieldId: string | number;
2768
- }[] | null | undefined;
2769
- sku?: string | null | undefined;
2770
- categoryId?: number | null | undefined;
2771
- brandId?: string | number | null | undefined;
2772
- sex?: string | null | undefined;
2773
- purchasePrice?: number | null | undefined;
2774
- purchaseDate?: Date | null | undefined;
2775
- purchasePlaceId?: string | number | null | undefined;
2776
- purchased?: boolean | null | undefined;
2777
- sellingPrice?: number | null | undefined;
2778
- sellingDate?: Date | null | undefined;
2779
- sellingPlaceId?: string | number | null | undefined;
2780
- estimatedPrice?: number | null | undefined;
2781
- fees?: {
2782
- value: number;
2783
- type: string;
2784
- userId: string | number;
2785
- id: string | number;
2786
- updatedAt: Date;
2787
- name: string;
2788
- createdAt: Date;
2789
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
2790
- startDate: Date;
2791
- active: boolean;
2792
- description?: string | null | undefined;
2793
- itemId?: string | number | null | undefined;
2794
- endDate?: Date | null | undefined;
2795
- parentFeeId?: string | number | null | undefined;
2796
- }[] | null | undefined;
2797
- feesSum?: number | null | undefined;
2798
- customerId?: string | number | null | undefined;
2799
- customer?: {
2800
- userId: string | number;
2801
- id: string | number;
2802
- email: string;
2803
- firstName: string;
2804
- lastName: string;
2805
- birthDate: Date;
2806
- idNumber: string;
2807
- phone: string;
2808
- iban: string;
2809
- bic: string;
2810
- phoneVerified: boolean;
2811
- } | null | undefined;
2812
- customerType?: string | null | undefined;
2813
- customerPaid?: boolean | null | undefined;
2814
- customerPaidDate?: Date | null | undefined;
2815
- customerPaidType?: string | null | undefined;
2816
- contractId?: string | number | null | undefined;
2817
- lastHistory?: {
4695
+ history?: {
2818
4696
  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";
2819
4697
  id: string;
2820
4698
  createdAt: Date;
@@ -2977,36 +4855,6 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
2977
4855
  accountId?: string | null | undefined;
2978
4856
  requestId?: string | null | undefined;
2979
4857
  targetDate?: Date | null | undefined;
2980
- } | null | undefined;
2981
- platforms?: {
2982
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2983
- id: string;
2984
- updatedAt: Date;
2985
- createdAt: Date;
2986
- accountId: string;
2987
- itemId: string | number;
2988
- platformId: string;
2989
- platformUrl: string;
2990
- platformPrice: number;
2991
- publishedAt: Date;
2992
- conversationId?: string | null | undefined;
2993
- account?: {
2994
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
2995
- userId: string | number;
2996
- name: string;
2997
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2998
- accountId: string;
2999
- locale?: string | null | undefined;
3000
- night?: {
3001
- startsAt: Date;
3002
- endsAt: Date;
3003
- } | null | undefined;
3004
- favoritesMaxDelay?: number | null | undefined;
3005
- ordersMaxDelay?: number | null | undefined;
3006
- conversationsMaxDelay?: number | null | undefined;
3007
- } | null | undefined;
3008
- viewsCount?: number | null | undefined;
3009
- favoritesCount?: number | null | undefined;
3010
4858
  }[] | null | undefined;
3011
4859
  }[];
3012
4860
  transaction: {