controlresell 2.9.5 → 2.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/package.json +1 -1
  2. package/src/com/controlresell/api/requests/items/cancel/CancelRequest.d.ts +16 -0
  3. package/src/com/controlresell/api/requests/items/cancel/CancelRequest.d.ts.map +1 -0
  4. package/src/com/controlresell/api/requests/items/cancel/CancelRequest.js +8 -0
  5. package/src/com/controlresell/api/requests/items/cancel/CancelRequest.js.map +1 -0
  6. package/src/com/controlresell/api/requests/items/cancel/CancelRequest.ts +9 -0
  7. package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.d.ts +4 -0
  8. package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.d.ts.map +1 -0
  9. package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.js +5 -0
  10. package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.js.map +1 -0
  11. package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.ts +6 -0
  12. package/src/com/controlresell/api/requests/items/publish/PublishRequest.d.ts +3 -0
  13. package/src/com/controlresell/api/requests/items/publish/PublishRequest.d.ts.map +1 -1
  14. package/src/com/controlresell/api/requests/items/publish/PublishRequest.js +1 -0
  15. package/src/com/controlresell/api/requests/items/publish/PublishRequest.js.map +1 -1
  16. package/src/com/controlresell/api/requests/items/publish/PublishRequest.ts +1 -0
  17. package/src/com/controlresell/api/requests/items/republish/RepublishRequest.d.ts +3 -0
  18. package/src/com/controlresell/api/requests/items/republish/RepublishRequest.d.ts.map +1 -1
  19. package/src/com/controlresell/api/requests/items/republish/RepublishRequest.js +1 -0
  20. package/src/com/controlresell/api/requests/items/republish/RepublishRequest.js.map +1 -1
  21. package/src/com/controlresell/api/requests/items/republish/RepublishRequest.ts +1 -0
  22. package/src/com/controlresell/api/responses/items/ItemAction.d.ts +1 -1
  23. package/src/com/controlresell/api/responses/items/ItemAction.d.ts.map +1 -1
  24. package/src/com/controlresell/api/responses/items/ItemAction.js +1 -1
  25. package/src/com/controlresell/api/responses/items/ItemAction.js.map +1 -1
  26. package/src/com/controlresell/api/responses/items/ItemAction.ts +1 -1
  27. package/src/com/controlresell/api/responses/items/ItemActions.d.ts +10 -0
  28. package/src/com/controlresell/api/responses/items/ItemActions.d.ts.map +1 -0
  29. package/src/com/controlresell/api/responses/items/ItemActions.js +6 -0
  30. package/src/com/controlresell/api/responses/items/ItemActions.js.map +1 -0
  31. package/src/com/controlresell/api/responses/items/ItemActions.ts +7 -0
  32. package/src/com/controlresell/api/responses/items/ItemsWithFilters.d.ts +451 -5
  33. package/src/com/controlresell/api/responses/items/ItemsWithFilters.d.ts.map +1 -1
  34. package/src/com/controlresell/api/responses/items/ListedItem.d.ts +373 -3
  35. package/src/com/controlresell/api/responses/items/ListedItem.d.ts.map +1 -1
  36. package/src/com/controlresell/api/responses/items/ListedItem.js +2 -2
  37. package/src/com/controlresell/api/responses/items/ListedItem.js.map +1 -1
  38. package/src/com/controlresell/api/responses/items/ListedItem.ts +2 -2
  39. package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.d.ts +2 -2
  40. package/src/com/controlresell/inbox/models/transactions/items/TransactionWithItems.d.ts +3005 -293
  41. package/src/com/controlresell/inbox/models/transactions/items/TransactionWithItems.d.ts.map +1 -1
  42. package/src/com/controlresell/inventory/models/items/CreatedItems.d.ts +3039 -327
  43. package/src/com/controlresell/inventory/models/items/CreatedItems.d.ts.map +1 -1
  44. package/src/com/controlresell/inventory/models/items/Item.d.ts +2379 -139
  45. package/src/com/controlresell/inventory/models/items/Item.d.ts.map +1 -1
  46. package/src/com/controlresell/inventory/models/items/Item.js +1 -0
  47. package/src/com/controlresell/inventory/models/items/Item.js.map +1 -1
  48. package/src/com/controlresell/inventory/models/items/Item.ts +1 -0
  49. package/src/com/controlresell/inventory/models/items/ItemUpdate.d.ts +3039 -327
  50. package/src/com/controlresell/inventory/models/items/ItemUpdate.d.ts.map +1 -1
  51. package/src/com/controlresell/inventory/models/items/UpdatedItem.d.ts +3039 -327
  52. package/src/com/controlresell/inventory/models/items/UpdatedItem.d.ts.map +1 -1
  53. package/src/com/controlresell/inventory/models/items/history/CreateItemHistoryPayload.d.ts +288 -0
  54. package/src/com/controlresell/inventory/models/items/history/CreateItemHistoryPayload.d.ts.map +1 -1
  55. package/src/com/controlresell/inventory/models/items/history/ItemHistory.d.ts +288 -0
  56. package/src/com/controlresell/inventory/models/items/history/ItemHistory.d.ts.map +1 -1
  57. package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.d.ts +436 -0
  58. package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.d.ts.map +1 -1
  59. package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.js +13 -1
  60. package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.js.map +1 -1
  61. package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.ts +17 -1
  62. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatedPayload.d.ts +10 -0
  63. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatedPayload.d.ts.map +1 -0
  64. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatedPayload.js +6 -0
  65. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatedPayload.js.map +1 -0
  66. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatedPayload.ts +7 -0
  67. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatingPayload.d.ts +136 -0
  68. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatingPayload.d.ts.map +1 -0
  69. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatingPayload.js +9 -0
  70. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatingPayload.js.map +1 -0
  71. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryUpdatingPayload.ts +10 -0
  72. package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts +3704 -520
  73. package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts.map +1 -1
  74. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +3005 -293
  75. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts.map +1 -1
  76. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +8404 -2980
  77. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts.map +1 -1
  78. package/src/index.d.ts +5 -0
  79. package/src/index.d.ts.map +1 -1
  80. package/src/index.js +5 -0
  81. package/src/index.js.map +1 -1
  82. package/src/index.ts +5 -0
@@ -1369,6 +1369,222 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
1369
1369
  error?: string | null | undefined;
1370
1370
  }[] | null | undefined;
1371
1371
  };
1372
+ }>, z.ZodObject<{
1373
+ data: z.ZodObject<{
1374
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1375
+ }, "strip", z.ZodTypeAny, {
1376
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1377
+ }, {
1378
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1379
+ }>;
1380
+ type: z.ZodLiteral<"UPDATED">;
1381
+ }, "strip", z.ZodTypeAny, {
1382
+ type: "UPDATED";
1383
+ data: {
1384
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1385
+ };
1386
+ }, {
1387
+ type: "UPDATED";
1388
+ data: {
1389
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1390
+ };
1391
+ }>, z.ZodObject<{
1392
+ data: z.ZodObject<{
1393
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1394
+ post: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1395
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1396
+ catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1397
+ catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1398
+ colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1399
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1400
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1401
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1402
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1403
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1404
+ photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1405
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1406
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1407
+ size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1408
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1409
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1410
+ statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1411
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1412
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1413
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1414
+ availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1415
+ material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1416
+ manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1417
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1418
+ }, "strip", z.ZodTypeAny, {
1419
+ status?: string | null | undefined;
1420
+ price?: number | null | undefined;
1421
+ currency?: string | null | undefined;
1422
+ brand?: string | null | undefined;
1423
+ catalog?: string | null | undefined;
1424
+ catalogId?: number | null | undefined;
1425
+ colors?: string[] | null | undefined;
1426
+ colorIds?: number[] | null | undefined;
1427
+ description?: string | null | undefined;
1428
+ measurementLength?: number | null | undefined;
1429
+ measurementWidth?: number | null | undefined;
1430
+ packageSizeId?: number | null | undefined;
1431
+ photoUrls?: string[] | null | undefined;
1432
+ size?: string | null | undefined;
1433
+ sizeId?: number | null | undefined;
1434
+ statusId?: number | null | undefined;
1435
+ title?: string | null | undefined;
1436
+ isDraft?: boolean | null | undefined;
1437
+ isArchived?: boolean | null | undefined;
1438
+ availableQuantity?: number | null | undefined;
1439
+ material?: number[] | null | undefined;
1440
+ manufacturerLabelling?: string | null | undefined;
1441
+ labels?: string[] | null | undefined;
1442
+ }, {
1443
+ status?: string | null | undefined;
1444
+ price?: number | null | undefined;
1445
+ currency?: string | null | undefined;
1446
+ brand?: string | null | undefined;
1447
+ catalog?: string | null | undefined;
1448
+ catalogId?: number | null | undefined;
1449
+ colors?: string[] | null | undefined;
1450
+ colorIds?: number[] | null | undefined;
1451
+ description?: string | null | undefined;
1452
+ measurementLength?: number | null | undefined;
1453
+ measurementWidth?: number | null | undefined;
1454
+ packageSizeId?: number | null | undefined;
1455
+ photoUrls?: string[] | null | undefined;
1456
+ size?: string | null | undefined;
1457
+ sizeId?: number | null | undefined;
1458
+ statusId?: number | null | undefined;
1459
+ title?: string | null | undefined;
1460
+ isDraft?: boolean | null | undefined;
1461
+ isArchived?: boolean | null | undefined;
1462
+ availableQuantity?: number | null | undefined;
1463
+ material?: number[] | null | undefined;
1464
+ manufacturerLabelling?: string | null | undefined;
1465
+ labels?: string[] | null | undefined;
1466
+ }>>>;
1467
+ targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1468
+ }, "strip", z.ZodTypeAny, {
1469
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1470
+ post?: {
1471
+ status?: string | null | undefined;
1472
+ price?: number | null | undefined;
1473
+ currency?: string | null | undefined;
1474
+ brand?: string | null | undefined;
1475
+ catalog?: string | null | undefined;
1476
+ catalogId?: number | null | undefined;
1477
+ colors?: string[] | null | undefined;
1478
+ colorIds?: number[] | null | undefined;
1479
+ description?: string | null | undefined;
1480
+ measurementLength?: number | null | undefined;
1481
+ measurementWidth?: number | null | undefined;
1482
+ packageSizeId?: number | null | undefined;
1483
+ photoUrls?: string[] | null | undefined;
1484
+ size?: string | null | undefined;
1485
+ sizeId?: number | null | undefined;
1486
+ statusId?: number | null | undefined;
1487
+ title?: string | null | undefined;
1488
+ isDraft?: boolean | null | undefined;
1489
+ isArchived?: boolean | null | undefined;
1490
+ availableQuantity?: number | null | undefined;
1491
+ material?: number[] | null | undefined;
1492
+ manufacturerLabelling?: string | null | undefined;
1493
+ labels?: string[] | null | undefined;
1494
+ } | null | undefined;
1495
+ targetDate?: Date | null | undefined;
1496
+ }, {
1497
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1498
+ post?: {
1499
+ status?: string | null | undefined;
1500
+ price?: number | null | undefined;
1501
+ currency?: string | null | undefined;
1502
+ brand?: string | null | undefined;
1503
+ catalog?: string | null | undefined;
1504
+ catalogId?: number | null | undefined;
1505
+ colors?: string[] | null | undefined;
1506
+ colorIds?: number[] | null | undefined;
1507
+ description?: string | null | undefined;
1508
+ measurementLength?: number | null | undefined;
1509
+ measurementWidth?: number | null | undefined;
1510
+ packageSizeId?: number | null | undefined;
1511
+ photoUrls?: string[] | null | undefined;
1512
+ size?: string | null | undefined;
1513
+ sizeId?: number | null | undefined;
1514
+ statusId?: number | null | undefined;
1515
+ title?: string | null | undefined;
1516
+ isDraft?: boolean | null | undefined;
1517
+ isArchived?: boolean | null | undefined;
1518
+ availableQuantity?: number | null | undefined;
1519
+ material?: number[] | null | undefined;
1520
+ manufacturerLabelling?: string | null | undefined;
1521
+ labels?: string[] | null | undefined;
1522
+ } | null | undefined;
1523
+ targetDate?: Date | null | undefined;
1524
+ }>;
1525
+ type: z.ZodLiteral<"UPDATING">;
1526
+ }, "strip", z.ZodTypeAny, {
1527
+ type: "UPDATING";
1528
+ data: {
1529
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1530
+ post?: {
1531
+ status?: string | null | undefined;
1532
+ price?: number | null | undefined;
1533
+ currency?: string | null | undefined;
1534
+ brand?: string | null | undefined;
1535
+ catalog?: string | null | undefined;
1536
+ catalogId?: number | null | undefined;
1537
+ colors?: string[] | null | undefined;
1538
+ colorIds?: number[] | null | undefined;
1539
+ description?: string | null | undefined;
1540
+ measurementLength?: number | null | undefined;
1541
+ measurementWidth?: number | null | undefined;
1542
+ packageSizeId?: number | null | undefined;
1543
+ photoUrls?: string[] | null | undefined;
1544
+ size?: string | null | undefined;
1545
+ sizeId?: number | null | undefined;
1546
+ statusId?: number | null | undefined;
1547
+ title?: string | null | undefined;
1548
+ isDraft?: boolean | null | undefined;
1549
+ isArchived?: boolean | null | undefined;
1550
+ availableQuantity?: number | null | undefined;
1551
+ material?: number[] | null | undefined;
1552
+ manufacturerLabelling?: string | null | undefined;
1553
+ labels?: string[] | null | undefined;
1554
+ } | null | undefined;
1555
+ targetDate?: Date | null | undefined;
1556
+ };
1557
+ }, {
1558
+ type: "UPDATING";
1559
+ data: {
1560
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1561
+ post?: {
1562
+ status?: string | null | undefined;
1563
+ price?: number | null | undefined;
1564
+ currency?: string | null | undefined;
1565
+ brand?: string | null | undefined;
1566
+ catalog?: string | null | undefined;
1567
+ catalogId?: number | null | undefined;
1568
+ colors?: string[] | null | undefined;
1569
+ colorIds?: number[] | null | undefined;
1570
+ description?: string | null | undefined;
1571
+ measurementLength?: number | null | undefined;
1572
+ measurementWidth?: number | null | undefined;
1573
+ packageSizeId?: number | null | undefined;
1574
+ photoUrls?: string[] | null | undefined;
1575
+ size?: string | null | undefined;
1576
+ sizeId?: number | null | undefined;
1577
+ statusId?: number | null | undefined;
1578
+ title?: string | null | undefined;
1579
+ isDraft?: boolean | null | undefined;
1580
+ isArchived?: boolean | null | undefined;
1581
+ availableQuantity?: number | null | undefined;
1582
+ material?: number[] | null | undefined;
1583
+ manufacturerLabelling?: string | null | undefined;
1584
+ labels?: string[] | null | undefined;
1585
+ } | null | undefined;
1586
+ targetDate?: Date | null | undefined;
1587
+ };
1372
1588
  }>]>>>;
1373
1589
  createdAt: z.ZodDate;
1374
1590
  targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -1533,6 +1749,42 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
1533
1749
  error?: string | null | undefined;
1534
1750
  }[] | null | undefined;
1535
1751
  };
1752
+ } | {
1753
+ type: "UPDATED";
1754
+ data: {
1755
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1756
+ };
1757
+ } | {
1758
+ type: "UPDATING";
1759
+ data: {
1760
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1761
+ post?: {
1762
+ status?: string | null | undefined;
1763
+ price?: number | null | undefined;
1764
+ currency?: string | null | undefined;
1765
+ brand?: string | null | undefined;
1766
+ catalog?: string | null | undefined;
1767
+ catalogId?: number | null | undefined;
1768
+ colors?: string[] | null | undefined;
1769
+ colorIds?: number[] | null | undefined;
1770
+ description?: string | null | undefined;
1771
+ measurementLength?: number | null | undefined;
1772
+ measurementWidth?: number | null | undefined;
1773
+ packageSizeId?: number | null | undefined;
1774
+ photoUrls?: string[] | null | undefined;
1775
+ size?: string | null | undefined;
1776
+ sizeId?: number | null | undefined;
1777
+ statusId?: number | null | undefined;
1778
+ title?: string | null | undefined;
1779
+ isDraft?: boolean | null | undefined;
1780
+ isArchived?: boolean | null | undefined;
1781
+ availableQuantity?: number | null | undefined;
1782
+ material?: number[] | null | undefined;
1783
+ manufacturerLabelling?: string | null | undefined;
1784
+ labels?: string[] | null | undefined;
1785
+ } | null | undefined;
1786
+ targetDate?: Date | null | undefined;
1787
+ };
1536
1788
  } | null | undefined;
1537
1789
  accountId?: string | null | undefined;
1538
1790
  requestId?: string | null | undefined;
@@ -1696,6 +1948,42 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
1696
1948
  error?: string | null | undefined;
1697
1949
  }[] | null | undefined;
1698
1950
  };
1951
+ } | {
1952
+ type: "UPDATED";
1953
+ data: {
1954
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1955
+ };
1956
+ } | {
1957
+ type: "UPDATING";
1958
+ data: {
1959
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1960
+ post?: {
1961
+ status?: string | null | undefined;
1962
+ price?: number | null | undefined;
1963
+ currency?: string | null | undefined;
1964
+ brand?: string | null | undefined;
1965
+ catalog?: string | null | undefined;
1966
+ catalogId?: number | null | undefined;
1967
+ colors?: string[] | null | undefined;
1968
+ colorIds?: number[] | null | undefined;
1969
+ description?: string | null | undefined;
1970
+ measurementLength?: number | null | undefined;
1971
+ measurementWidth?: number | null | undefined;
1972
+ packageSizeId?: number | null | undefined;
1973
+ photoUrls?: string[] | null | undefined;
1974
+ size?: string | null | undefined;
1975
+ sizeId?: number | null | undefined;
1976
+ statusId?: number | null | undefined;
1977
+ title?: string | null | undefined;
1978
+ isDraft?: boolean | null | undefined;
1979
+ isArchived?: boolean | null | undefined;
1980
+ availableQuantity?: number | null | undefined;
1981
+ material?: number[] | null | undefined;
1982
+ manufacturerLabelling?: string | null | undefined;
1983
+ labels?: string[] | null | undefined;
1984
+ } | null | undefined;
1985
+ targetDate?: Date | null | undefined;
1986
+ };
1699
1987
  } | null | undefined;
1700
1988
  accountId?: string | null | undefined;
1701
1989
  requestId?: string | null | undefined;
@@ -1823,127 +2111,113 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
1823
2111
  viewsCount?: number | null | undefined;
1824
2112
  favoritesCount?: number | null | undefined;
1825
2113
  }>, "many">>>;
1826
- createdAt: z.ZodDate;
1827
- updatedAt: z.ZodDate;
1828
- }, "strip", z.ZodTypeAny, {
1829
- userId: string | number;
1830
- id: string | number;
1831
- updatedAt: Date;
1832
- name: string;
1833
- createdAt: Date;
1834
- sold: boolean;
1835
- state?: number | null | undefined;
1836
- colorIds?: number[] | null | undefined;
1837
- description?: string | null | undefined;
1838
- packageSizeId?: number | null | undefined;
1839
- sizeId?: number | null | undefined;
1840
- labels?: {
1841
- itemId: string | number;
1842
- labelId: string | number;
1843
- label?: {
1844
- id: string | number;
1845
- name: string;
1846
- createdAt: Date;
1847
- isUserLabel: boolean;
1848
- userId?: string | number | null | undefined;
1849
- itemCount?: number | null | undefined;
1850
- parentId?: unknown;
1851
- } | null | undefined;
1852
- }[] | null | undefined;
1853
- files?: {
1854
- itemId: string | number;
1855
- fileId: string;
1856
- index?: number | null | undefined;
1857
- file?: {
1858
- path: string;
1859
- userId: string | number;
1860
- id: string;
1861
- createdAt: Date;
1862
- signedUrl: string;
1863
- } | null | undefined;
1864
- }[] | null | undefined;
1865
- fields?: {
1866
- value: string;
1867
- itemId: string | number;
1868
- fieldId: string | number;
1869
- }[] | null | undefined;
1870
- sku?: string | null | undefined;
1871
- categoryId?: number | null | undefined;
1872
- brandId?: string | number | null | undefined;
1873
- sex?: string | null | undefined;
1874
- purchasePrice?: number | null | undefined;
1875
- purchaseDate?: Date | null | undefined;
1876
- purchasePlaceId?: string | number | null | undefined;
1877
- purchased?: boolean | null | undefined;
1878
- sellingPrice?: number | null | undefined;
1879
- sellingDate?: Date | null | undefined;
1880
- sellingPlaceId?: string | number | null | undefined;
1881
- estimatedPrice?: number | null | undefined;
1882
- fees?: {
1883
- value: number;
1884
- type: string;
1885
- userId: string | number;
1886
- id: string | number;
1887
- updatedAt: Date;
1888
- name: string;
1889
- createdAt: Date;
1890
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1891
- startDate: Date;
1892
- active: boolean;
1893
- description?: string | null | undefined;
1894
- itemId?: string | number | null | undefined;
1895
- endDate?: Date | null | undefined;
1896
- parentFeeId?: string | number | null | undefined;
1897
- }[] | null | undefined;
1898
- feesSum?: number | null | undefined;
1899
- customerId?: string | number | null | undefined;
1900
- customer?: {
1901
- userId: string | number;
1902
- id: string | number;
1903
- email: string;
1904
- firstName: string;
1905
- lastName: string;
1906
- birthDate: Date;
1907
- idNumber: string;
1908
- phone: string;
1909
- iban: string;
1910
- bic: string;
1911
- phoneVerified: boolean;
1912
- } | null | undefined;
1913
- customerType?: string | null | undefined;
1914
- customerPaid?: boolean | null | undefined;
1915
- customerPaidDate?: Date | null | undefined;
1916
- customerPaidType?: string | null | undefined;
1917
- contractId?: string | number | null | undefined;
1918
- lastHistory?: {
1919
- type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
1920
- id: string;
1921
- createdAt: Date;
1922
- itemId: string | number;
1923
- data?: {
2114
+ history: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2115
+ id: z.ZodString;
2116
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
2117
+ 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"]>;
2118
+ data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2119
+ data: z.ZodObject<{
2120
+ targetItemHistoryId: z.ZodString;
2121
+ }, "strip", z.ZodTypeAny, {
2122
+ targetItemHistoryId: string;
2123
+ }, {
2124
+ targetItemHistoryId: string;
2125
+ }>;
2126
+ type: z.ZodLiteral<"ACTION_CANCELED">;
2127
+ }, "strip", z.ZodTypeAny, {
1924
2128
  type: "ACTION_CANCELED";
1925
2129
  data: {
1926
2130
  targetItemHistoryId: string;
1927
2131
  };
1928
- } | {
2132
+ }, {
2133
+ type: "ACTION_CANCELED";
2134
+ data: {
2135
+ targetItemHistoryId: string;
2136
+ };
2137
+ }>, z.ZodObject<{
2138
+ data: z.ZodObject<{
2139
+ soldAccountId: z.ZodString;
2140
+ soldOrderId: z.ZodString;
2141
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2142
+ }, "strip", z.ZodTypeAny, {
2143
+ soldAccountId: string;
2144
+ soldOrderId: string;
2145
+ soldConversationId?: string | null | undefined;
2146
+ }, {
2147
+ soldAccountId: string;
2148
+ soldOrderId: string;
2149
+ soldConversationId?: string | null | undefined;
2150
+ }>;
2151
+ type: z.ZodLiteral<"BUYER_PAID">;
2152
+ }, "strip", z.ZodTypeAny, {
1929
2153
  type: "BUYER_PAID";
1930
2154
  data: {
1931
2155
  soldAccountId: string;
1932
2156
  soldOrderId: string;
1933
2157
  soldConversationId?: string | null | undefined;
1934
2158
  };
1935
- } | {
2159
+ }, {
2160
+ type: "BUYER_PAID";
2161
+ data: {
2162
+ soldAccountId: string;
2163
+ soldOrderId: string;
2164
+ soldConversationId?: string | null | undefined;
2165
+ };
2166
+ }>, z.ZodObject<{
2167
+ data: z.ZodObject<{
2168
+ soldAccountId: z.ZodString;
2169
+ soldOrderId: z.ZodString;
2170
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2171
+ }, "strip", z.ZodTypeAny, {
2172
+ soldAccountId: string;
2173
+ soldOrderId: string;
2174
+ soldConversationId?: string | null | undefined;
2175
+ }, {
2176
+ soldAccountId: string;
2177
+ soldOrderId: string;
2178
+ soldConversationId?: string | null | undefined;
2179
+ }>;
2180
+ type: z.ZodLiteral<"DELIVERED">;
2181
+ }, "strip", z.ZodTypeAny, {
1936
2182
  type: "DELIVERED";
1937
2183
  data: {
1938
2184
  soldAccountId: string;
1939
2185
  soldOrderId: string;
1940
2186
  soldConversationId?: string | null | undefined;
1941
2187
  };
1942
- } | {
1943
- type: "EMPTY";
1944
- } | {
1945
- type: "FAILED_TO_PUBLISH";
2188
+ }, {
2189
+ type: "DELIVERED";
1946
2190
  data: {
2191
+ soldAccountId: string;
2192
+ soldOrderId: string;
2193
+ soldConversationId?: string | null | undefined;
2194
+ };
2195
+ }>, z.ZodObject<{
2196
+ type: z.ZodLiteral<"EMPTY">;
2197
+ }, "strip", z.ZodTypeAny, {
2198
+ type: "EMPTY";
2199
+ }, {
2200
+ type: "EMPTY";
2201
+ }>, z.ZodObject<{
2202
+ data: z.ZodObject<{
2203
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2204
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2205
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2206
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2207
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
2208
+ autoFixable: z.ZodBoolean;
2209
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2210
+ }, "strip", z.ZodTypeAny, {
2211
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2212
+ autoFixable: boolean;
2213
+ error?: string | null | undefined;
2214
+ }, {
2215
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2216
+ autoFixable: boolean;
2217
+ error?: string | null | undefined;
2218
+ }>, "many">>>;
2219
+ itemHistoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2220
+ }, "strip", z.ZodTypeAny, {
1947
2221
  platform: "ETSY" | "SHOPIFY" | "VINTED";
1948
2222
  accountId?: string | null | undefined;
1949
2223
  reason?: string | null | undefined;
@@ -1953,12 +2227,2256 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
1953
2227
  error?: string | null | undefined;
1954
2228
  }[] | null | undefined;
1955
2229
  itemHistoryId?: string | null | undefined;
1956
- };
1957
- } | {
1958
- type: "IMAGE_PROCESSING_DONE";
1959
- data: {
2230
+ }, {
1960
2231
  platform: "ETSY" | "SHOPIFY" | "VINTED";
1961
- variations?: {
2232
+ accountId?: string | null | undefined;
2233
+ reason?: string | null | undefined;
2234
+ fields?: {
2235
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2236
+ autoFixable: boolean;
2237
+ error?: string | null | undefined;
2238
+ }[] | null | undefined;
2239
+ itemHistoryId?: string | null | undefined;
2240
+ }>;
2241
+ type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
2242
+ }, "strip", z.ZodTypeAny, {
2243
+ type: "FAILED_TO_PUBLISH";
2244
+ data: {
2245
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2246
+ accountId?: string | null | undefined;
2247
+ reason?: string | null | undefined;
2248
+ fields?: {
2249
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2250
+ autoFixable: boolean;
2251
+ error?: string | null | undefined;
2252
+ }[] | null | undefined;
2253
+ itemHistoryId?: string | null | undefined;
2254
+ };
2255
+ }, {
2256
+ type: "FAILED_TO_PUBLISH";
2257
+ data: {
2258
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2259
+ accountId?: string | null | undefined;
2260
+ reason?: string | null | undefined;
2261
+ fields?: {
2262
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2263
+ autoFixable: boolean;
2264
+ error?: string | null | undefined;
2265
+ }[] | null | undefined;
2266
+ itemHistoryId?: string | null | undefined;
2267
+ };
2268
+ }>, z.ZodObject<{
2269
+ data: z.ZodObject<{
2270
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2271
+ variations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2272
+ fileId: z.ZodString;
2273
+ seed: z.ZodNumber;
2274
+ phash: z.ZodString;
2275
+ distanceOriginal: z.ZodNumber;
2276
+ originalImageUrl: z.ZodString;
2277
+ originalPhash: z.ZodString;
2278
+ }, "strip", z.ZodTypeAny, {
2279
+ fileId: string;
2280
+ seed: number;
2281
+ phash: string;
2282
+ distanceOriginal: number;
2283
+ originalImageUrl: string;
2284
+ originalPhash: string;
2285
+ }, {
2286
+ fileId: string;
2287
+ seed: number;
2288
+ phash: string;
2289
+ distanceOriginal: number;
2290
+ originalImageUrl: string;
2291
+ originalPhash: string;
2292
+ }>, "many">>>;
2293
+ originalPhashes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2294
+ }, "strip", z.ZodTypeAny, {
2295
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2296
+ variations?: {
2297
+ fileId: string;
2298
+ seed: number;
2299
+ phash: string;
2300
+ distanceOriginal: number;
2301
+ originalImageUrl: string;
2302
+ originalPhash: string;
2303
+ }[] | null | undefined;
2304
+ originalPhashes?: string[] | null | undefined;
2305
+ }, {
2306
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2307
+ variations?: {
2308
+ fileId: string;
2309
+ seed: number;
2310
+ phash: string;
2311
+ distanceOriginal: number;
2312
+ originalImageUrl: string;
2313
+ originalPhash: string;
2314
+ }[] | null | undefined;
2315
+ originalPhashes?: string[] | null | undefined;
2316
+ }>;
2317
+ type: z.ZodLiteral<"IMAGE_PROCESSING_DONE">;
2318
+ }, "strip", z.ZodTypeAny, {
2319
+ type: "IMAGE_PROCESSING_DONE";
2320
+ data: {
2321
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2322
+ variations?: {
2323
+ fileId: string;
2324
+ seed: number;
2325
+ phash: string;
2326
+ distanceOriginal: number;
2327
+ originalImageUrl: string;
2328
+ originalPhash: string;
2329
+ }[] | null | undefined;
2330
+ originalPhashes?: string[] | null | undefined;
2331
+ };
2332
+ }, {
2333
+ type: "IMAGE_PROCESSING_DONE";
2334
+ data: {
2335
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2336
+ variations?: {
2337
+ fileId: string;
2338
+ seed: number;
2339
+ phash: string;
2340
+ distanceOriginal: number;
2341
+ originalImageUrl: string;
2342
+ originalPhash: string;
2343
+ }[] | null | undefined;
2344
+ originalPhashes?: string[] | null | undefined;
2345
+ };
2346
+ }>, z.ZodObject<{
2347
+ data: z.ZodObject<{
2348
+ post: z.ZodObject<{
2349
+ platformId: z.ZodString;
2350
+ platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2351
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2352
+ post: z.ZodObject<{
2353
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2354
+ catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2355
+ catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2356
+ colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2357
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
2358
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2359
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2360
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2361
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2362
+ photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2363
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2364
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2365
+ size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2366
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2367
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2368
+ statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2369
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2370
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2371
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2372
+ availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2373
+ material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
2374
+ manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2375
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2376
+ }, "strip", z.ZodTypeAny, {
2377
+ status?: string | null | undefined;
2378
+ price?: number | null | undefined;
2379
+ currency?: string | null | undefined;
2380
+ brand?: string | null | undefined;
2381
+ catalog?: string | null | undefined;
2382
+ catalogId?: number | null | undefined;
2383
+ colors?: string[] | null | undefined;
2384
+ colorIds?: number[] | null | undefined;
2385
+ description?: string | null | undefined;
2386
+ measurementLength?: number | null | undefined;
2387
+ measurementWidth?: number | null | undefined;
2388
+ packageSizeId?: number | null | undefined;
2389
+ photoUrls?: string[] | null | undefined;
2390
+ size?: string | null | undefined;
2391
+ sizeId?: number | null | undefined;
2392
+ statusId?: number | null | undefined;
2393
+ title?: string | null | undefined;
2394
+ isDraft?: boolean | null | undefined;
2395
+ isArchived?: boolean | null | undefined;
2396
+ availableQuantity?: number | null | undefined;
2397
+ material?: number[] | null | undefined;
2398
+ manufacturerLabelling?: string | null | undefined;
2399
+ labels?: string[] | null | undefined;
2400
+ }, {
2401
+ status?: string | null | undefined;
2402
+ price?: number | null | undefined;
2403
+ currency?: string | null | undefined;
2404
+ brand?: string | null | undefined;
2405
+ catalog?: string | null | undefined;
2406
+ catalogId?: number | null | undefined;
2407
+ colors?: string[] | null | undefined;
2408
+ colorIds?: number[] | null | undefined;
2409
+ description?: string | null | undefined;
2410
+ measurementLength?: number | null | undefined;
2411
+ measurementWidth?: number | null | undefined;
2412
+ packageSizeId?: number | null | undefined;
2413
+ photoUrls?: string[] | null | undefined;
2414
+ size?: string | null | undefined;
2415
+ sizeId?: number | null | undefined;
2416
+ statusId?: number | null | undefined;
2417
+ title?: string | null | undefined;
2418
+ isDraft?: boolean | null | undefined;
2419
+ isArchived?: boolean | null | undefined;
2420
+ availableQuantity?: number | null | undefined;
2421
+ material?: number[] | null | undefined;
2422
+ manufacturerLabelling?: string | null | undefined;
2423
+ labels?: string[] | null | undefined;
2424
+ }>;
2425
+ }, "strip", z.ZodTypeAny, {
2426
+ platformId: string;
2427
+ post: {
2428
+ status?: string | null | undefined;
2429
+ price?: number | null | undefined;
2430
+ currency?: string | null | undefined;
2431
+ brand?: string | null | undefined;
2432
+ catalog?: string | null | undefined;
2433
+ catalogId?: number | null | undefined;
2434
+ colors?: string[] | null | undefined;
2435
+ colorIds?: number[] | null | undefined;
2436
+ description?: string | null | undefined;
2437
+ measurementLength?: number | null | undefined;
2438
+ measurementWidth?: number | null | undefined;
2439
+ packageSizeId?: number | null | undefined;
2440
+ photoUrls?: string[] | null | undefined;
2441
+ size?: string | null | undefined;
2442
+ sizeId?: number | null | undefined;
2443
+ statusId?: number | null | undefined;
2444
+ title?: string | null | undefined;
2445
+ isDraft?: boolean | null | undefined;
2446
+ isArchived?: boolean | null | undefined;
2447
+ availableQuantity?: number | null | undefined;
2448
+ material?: number[] | null | undefined;
2449
+ manufacturerLabelling?: string | null | undefined;
2450
+ labels?: string[] | null | undefined;
2451
+ };
2452
+ createdAt?: Date | null | undefined;
2453
+ platformUrl?: string | null | undefined;
2454
+ }, {
2455
+ platformId: string;
2456
+ post: {
2457
+ status?: string | null | undefined;
2458
+ price?: number | null | undefined;
2459
+ currency?: string | null | undefined;
2460
+ brand?: string | null | undefined;
2461
+ catalog?: string | null | undefined;
2462
+ catalogId?: number | null | undefined;
2463
+ colors?: string[] | null | undefined;
2464
+ colorIds?: number[] | null | undefined;
2465
+ description?: string | null | undefined;
2466
+ measurementLength?: number | null | undefined;
2467
+ measurementWidth?: number | null | undefined;
2468
+ packageSizeId?: number | null | undefined;
2469
+ photoUrls?: string[] | null | undefined;
2470
+ size?: string | null | undefined;
2471
+ sizeId?: number | null | undefined;
2472
+ statusId?: number | null | undefined;
2473
+ title?: string | null | undefined;
2474
+ isDraft?: boolean | null | undefined;
2475
+ isArchived?: boolean | null | undefined;
2476
+ availableQuantity?: number | null | undefined;
2477
+ material?: number[] | null | undefined;
2478
+ manufacturerLabelling?: string | null | undefined;
2479
+ labels?: string[] | null | undefined;
2480
+ };
2481
+ createdAt?: Date | null | undefined;
2482
+ platformUrl?: string | null | undefined;
2483
+ }>;
2484
+ }, "strip", z.ZodTypeAny, {
2485
+ post: {
2486
+ platformId: string;
2487
+ post: {
2488
+ status?: string | null | undefined;
2489
+ price?: number | null | undefined;
2490
+ currency?: string | null | undefined;
2491
+ brand?: string | null | undefined;
2492
+ catalog?: string | null | undefined;
2493
+ catalogId?: number | null | undefined;
2494
+ colors?: string[] | null | undefined;
2495
+ colorIds?: number[] | null | undefined;
2496
+ description?: string | null | undefined;
2497
+ measurementLength?: number | null | undefined;
2498
+ measurementWidth?: number | null | undefined;
2499
+ packageSizeId?: number | null | undefined;
2500
+ photoUrls?: string[] | null | undefined;
2501
+ size?: string | null | undefined;
2502
+ sizeId?: number | null | undefined;
2503
+ statusId?: number | null | undefined;
2504
+ title?: string | null | undefined;
2505
+ isDraft?: boolean | null | undefined;
2506
+ isArchived?: boolean | null | undefined;
2507
+ availableQuantity?: number | null | undefined;
2508
+ material?: number[] | null | undefined;
2509
+ manufacturerLabelling?: string | null | undefined;
2510
+ labels?: string[] | null | undefined;
2511
+ };
2512
+ createdAt?: Date | null | undefined;
2513
+ platformUrl?: string | null | undefined;
2514
+ };
2515
+ }, {
2516
+ post: {
2517
+ platformId: string;
2518
+ post: {
2519
+ status?: string | null | undefined;
2520
+ price?: number | null | undefined;
2521
+ currency?: string | null | undefined;
2522
+ brand?: string | null | undefined;
2523
+ catalog?: string | null | undefined;
2524
+ catalogId?: number | null | undefined;
2525
+ colors?: string[] | null | undefined;
2526
+ colorIds?: number[] | null | undefined;
2527
+ description?: string | null | undefined;
2528
+ measurementLength?: number | null | undefined;
2529
+ measurementWidth?: number | null | undefined;
2530
+ packageSizeId?: number | null | undefined;
2531
+ photoUrls?: string[] | null | undefined;
2532
+ size?: string | null | undefined;
2533
+ sizeId?: number | null | undefined;
2534
+ statusId?: number | null | undefined;
2535
+ title?: string | null | undefined;
2536
+ isDraft?: boolean | null | undefined;
2537
+ isArchived?: boolean | null | undefined;
2538
+ availableQuantity?: number | null | undefined;
2539
+ material?: number[] | null | undefined;
2540
+ manufacturerLabelling?: string | null | undefined;
2541
+ labels?: string[] | null | undefined;
2542
+ };
2543
+ createdAt?: Date | null | undefined;
2544
+ platformUrl?: string | null | undefined;
2545
+ };
2546
+ }>;
2547
+ type: z.ZodLiteral<"IMPORTED">;
2548
+ }, "strip", z.ZodTypeAny, {
2549
+ type: "IMPORTED";
2550
+ data: {
2551
+ post: {
2552
+ platformId: string;
2553
+ post: {
2554
+ status?: string | null | undefined;
2555
+ price?: number | null | undefined;
2556
+ currency?: string | null | undefined;
2557
+ brand?: string | null | undefined;
2558
+ catalog?: string | null | undefined;
2559
+ catalogId?: number | null | undefined;
2560
+ colors?: string[] | null | undefined;
2561
+ colorIds?: number[] | null | undefined;
2562
+ description?: string | null | undefined;
2563
+ measurementLength?: number | null | undefined;
2564
+ measurementWidth?: number | null | undefined;
2565
+ packageSizeId?: number | null | undefined;
2566
+ photoUrls?: string[] | null | undefined;
2567
+ size?: string | null | undefined;
2568
+ sizeId?: number | null | undefined;
2569
+ statusId?: number | null | undefined;
2570
+ title?: string | null | undefined;
2571
+ isDraft?: boolean | null | undefined;
2572
+ isArchived?: boolean | null | undefined;
2573
+ availableQuantity?: number | null | undefined;
2574
+ material?: number[] | null | undefined;
2575
+ manufacturerLabelling?: string | null | undefined;
2576
+ labels?: string[] | null | undefined;
2577
+ };
2578
+ createdAt?: Date | null | undefined;
2579
+ platformUrl?: string | null | undefined;
2580
+ };
2581
+ };
2582
+ }, {
2583
+ type: "IMPORTED";
2584
+ data: {
2585
+ post: {
2586
+ platformId: string;
2587
+ post: {
2588
+ status?: string | null | undefined;
2589
+ price?: number | null | undefined;
2590
+ currency?: string | null | undefined;
2591
+ brand?: string | null | undefined;
2592
+ catalog?: string | null | undefined;
2593
+ catalogId?: number | null | undefined;
2594
+ colors?: string[] | null | undefined;
2595
+ colorIds?: number[] | null | undefined;
2596
+ description?: string | null | undefined;
2597
+ measurementLength?: number | null | undefined;
2598
+ measurementWidth?: number | null | undefined;
2599
+ packageSizeId?: number | null | undefined;
2600
+ photoUrls?: string[] | null | undefined;
2601
+ size?: string | null | undefined;
2602
+ sizeId?: number | null | undefined;
2603
+ statusId?: number | null | undefined;
2604
+ title?: string | null | undefined;
2605
+ isDraft?: boolean | null | undefined;
2606
+ isArchived?: boolean | null | undefined;
2607
+ availableQuantity?: number | null | undefined;
2608
+ material?: number[] | null | undefined;
2609
+ manufacturerLabelling?: string | null | undefined;
2610
+ labels?: string[] | null | undefined;
2611
+ };
2612
+ createdAt?: Date | null | undefined;
2613
+ platformUrl?: string | null | undefined;
2614
+ };
2615
+ };
2616
+ }>, z.ZodObject<{
2617
+ data: z.ZodObject<{
2618
+ accountId: z.ZodString;
2619
+ }, "strip", z.ZodTypeAny, {
2620
+ accountId: string;
2621
+ }, {
2622
+ accountId: string;
2623
+ }>;
2624
+ type: z.ZodLiteral<"LIFECYCLE_COMPLETED">;
2625
+ }, "strip", z.ZodTypeAny, {
2626
+ type: "LIFECYCLE_COMPLETED";
2627
+ data: {
2628
+ accountId: string;
2629
+ };
2630
+ }, {
2631
+ type: "LIFECYCLE_COMPLETED";
2632
+ data: {
2633
+ accountId: string;
2634
+ };
2635
+ }>, z.ZodObject<{
2636
+ data: z.ZodObject<{
2637
+ accountId: z.ZodString;
2638
+ caseId: z.ZodString;
2639
+ }, "strip", z.ZodTypeAny, {
2640
+ accountId: string;
2641
+ caseId: string;
2642
+ }, {
2643
+ accountId: string;
2644
+ caseId: string;
2645
+ }>;
2646
+ type: z.ZodLiteral<"LIFECYCLE_STARTED">;
2647
+ }, "strip", z.ZodTypeAny, {
2648
+ type: "LIFECYCLE_STARTED";
2649
+ data: {
2650
+ accountId: string;
2651
+ caseId: string;
2652
+ };
2653
+ }, {
2654
+ type: "LIFECYCLE_STARTED";
2655
+ data: {
2656
+ accountId: string;
2657
+ caseId: string;
2658
+ };
2659
+ }>, z.ZodObject<{
2660
+ data: z.ZodObject<{
2661
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2662
+ }, "strip", z.ZodTypeAny, {
2663
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2664
+ }, {
2665
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2666
+ }>;
2667
+ type: z.ZodLiteral<"PUBLISHED">;
2668
+ }, "strip", z.ZodTypeAny, {
2669
+ type: "PUBLISHED";
2670
+ data: {
2671
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2672
+ };
2673
+ }, {
2674
+ type: "PUBLISHED";
2675
+ data: {
2676
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2677
+ };
2678
+ }>, z.ZodObject<{
2679
+ data: z.ZodObject<{
2680
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2681
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2682
+ priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2683
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
2684
+ value: z.ZodNumber;
2685
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
2686
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2687
+ maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2688
+ }, "strip", z.ZodTypeAny, {
2689
+ value: number;
2690
+ type: "PERCENTAGE" | "ABSOLUTE";
2691
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2692
+ roundStep?: number | null | undefined;
2693
+ maxRounds?: number | null | undefined;
2694
+ }, {
2695
+ value: number;
2696
+ type: "PERCENTAGE" | "ABSOLUTE";
2697
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2698
+ roundStep?: number | null | undefined;
2699
+ maxRounds?: number | null | undefined;
2700
+ }>>>;
2701
+ isTransfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2702
+ targetAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2703
+ }, "strip", z.ZodTypeAny, {
2704
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2705
+ publishingDate?: Date | null | undefined;
2706
+ priceDropPayload?: {
2707
+ value: number;
2708
+ type: "PERCENTAGE" | "ABSOLUTE";
2709
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2710
+ roundStep?: number | null | undefined;
2711
+ maxRounds?: number | null | undefined;
2712
+ } | null | undefined;
2713
+ isTransfer?: boolean | null | undefined;
2714
+ targetAccountId?: string | null | undefined;
2715
+ }, {
2716
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2717
+ publishingDate?: Date | null | undefined;
2718
+ priceDropPayload?: {
2719
+ value: number;
2720
+ type: "PERCENTAGE" | "ABSOLUTE";
2721
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2722
+ roundStep?: number | null | undefined;
2723
+ maxRounds?: number | null | undefined;
2724
+ } | null | undefined;
2725
+ isTransfer?: boolean | null | undefined;
2726
+ targetAccountId?: string | null | undefined;
2727
+ }>;
2728
+ type: z.ZodLiteral<"REPUBLISHING">;
2729
+ }, "strip", z.ZodTypeAny, {
2730
+ type: "REPUBLISHING";
2731
+ data: {
2732
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2733
+ publishingDate?: Date | null | undefined;
2734
+ priceDropPayload?: {
2735
+ value: number;
2736
+ type: "PERCENTAGE" | "ABSOLUTE";
2737
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2738
+ roundStep?: number | null | undefined;
2739
+ maxRounds?: number | null | undefined;
2740
+ } | null | undefined;
2741
+ isTransfer?: boolean | null | undefined;
2742
+ targetAccountId?: string | null | undefined;
2743
+ };
2744
+ }, {
2745
+ type: "REPUBLISHING";
2746
+ data: {
2747
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2748
+ publishingDate?: Date | null | undefined;
2749
+ priceDropPayload?: {
2750
+ value: number;
2751
+ type: "PERCENTAGE" | "ABSOLUTE";
2752
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2753
+ roundStep?: number | null | undefined;
2754
+ maxRounds?: number | null | undefined;
2755
+ } | null | undefined;
2756
+ isTransfer?: boolean | null | undefined;
2757
+ targetAccountId?: string | null | undefined;
2758
+ };
2759
+ }>, z.ZodObject<{
2760
+ data: z.ZodObject<{
2761
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2762
+ attemptNumber: z.ZodNumber;
2763
+ maxAttempts: z.ZodNumber;
2764
+ previousHistoryId: z.ZodString;
2765
+ originalFailureDate: z.ZodDate;
2766
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2767
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
2768
+ autoFixable: z.ZodBoolean;
2769
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2770
+ }, "strip", z.ZodTypeAny, {
2771
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2772
+ autoFixable: boolean;
2773
+ error?: string | null | undefined;
2774
+ }, {
2775
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2776
+ autoFixable: boolean;
2777
+ error?: string | null | undefined;
2778
+ }>, "many">>>;
2779
+ priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2780
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
2781
+ value: z.ZodNumber;
2782
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
2783
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2784
+ maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2785
+ }, "strip", z.ZodTypeAny, {
2786
+ value: number;
2787
+ type: "PERCENTAGE" | "ABSOLUTE";
2788
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2789
+ roundStep?: number | null | undefined;
2790
+ maxRounds?: number | null | undefined;
2791
+ }, {
2792
+ value: number;
2793
+ type: "PERCENTAGE" | "ABSOLUTE";
2794
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2795
+ roundStep?: number | null | undefined;
2796
+ maxRounds?: number | null | undefined;
2797
+ }>>>;
2798
+ }, "strip", z.ZodTypeAny, {
2799
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2800
+ attemptNumber: number;
2801
+ maxAttempts: number;
2802
+ previousHistoryId: string;
2803
+ originalFailureDate: Date;
2804
+ fields?: {
2805
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2806
+ autoFixable: boolean;
2807
+ error?: string | null | undefined;
2808
+ }[] | null | undefined;
2809
+ priceDropPayload?: {
2810
+ value: number;
2811
+ type: "PERCENTAGE" | "ABSOLUTE";
2812
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2813
+ roundStep?: number | null | undefined;
2814
+ maxRounds?: number | null | undefined;
2815
+ } | null | undefined;
2816
+ }, {
2817
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2818
+ attemptNumber: number;
2819
+ maxAttempts: number;
2820
+ previousHistoryId: string;
2821
+ originalFailureDate: Date;
2822
+ fields?: {
2823
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2824
+ autoFixable: boolean;
2825
+ error?: string | null | undefined;
2826
+ }[] | null | undefined;
2827
+ priceDropPayload?: {
2828
+ value: number;
2829
+ type: "PERCENTAGE" | "ABSOLUTE";
2830
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2831
+ roundStep?: number | null | undefined;
2832
+ maxRounds?: number | null | undefined;
2833
+ } | null | undefined;
2834
+ }>;
2835
+ type: z.ZodLiteral<"REPUBLISHING_RETRY">;
2836
+ }, "strip", z.ZodTypeAny, {
2837
+ type: "REPUBLISHING_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
+ priceDropPayload?: {
2850
+ value: number;
2851
+ type: "PERCENTAGE" | "ABSOLUTE";
2852
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2853
+ roundStep?: number | null | undefined;
2854
+ maxRounds?: number | null | undefined;
2855
+ } | null | undefined;
2856
+ };
2857
+ }, {
2858
+ type: "REPUBLISHING_RETRY";
2859
+ data: {
2860
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2861
+ attemptNumber: number;
2862
+ maxAttempts: number;
2863
+ previousHistoryId: string;
2864
+ originalFailureDate: Date;
2865
+ fields?: {
2866
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2867
+ autoFixable: boolean;
2868
+ error?: string | null | undefined;
2869
+ }[] | null | undefined;
2870
+ priceDropPayload?: {
2871
+ value: number;
2872
+ type: "PERCENTAGE" | "ABSOLUTE";
2873
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2874
+ roundStep?: number | null | undefined;
2875
+ maxRounds?: number | null | undefined;
2876
+ } | null | undefined;
2877
+ };
2878
+ }>, z.ZodObject<{
2879
+ data: z.ZodObject<{
2880
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2881
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2882
+ }, "strip", z.ZodTypeAny, {
2883
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2884
+ publishingDate?: Date | null | undefined;
2885
+ }, {
2886
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2887
+ publishingDate?: Date | null | undefined;
2888
+ }>;
2889
+ type: z.ZodLiteral<"SCHEDULED">;
2890
+ }, "strip", z.ZodTypeAny, {
2891
+ type: "SCHEDULED";
2892
+ data: {
2893
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2894
+ publishingDate?: Date | null | undefined;
2895
+ };
2896
+ }, {
2897
+ type: "SCHEDULED";
2898
+ data: {
2899
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2900
+ publishingDate?: Date | null | undefined;
2901
+ };
2902
+ }>, z.ZodObject<{
2903
+ data: z.ZodObject<{
2904
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2905
+ attemptNumber: z.ZodNumber;
2906
+ maxAttempts: z.ZodNumber;
2907
+ previousHistoryId: z.ZodString;
2908
+ originalFailureDate: z.ZodDate;
2909
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2910
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
2911
+ autoFixable: z.ZodBoolean;
2912
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2913
+ }, "strip", z.ZodTypeAny, {
2914
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2915
+ autoFixable: boolean;
2916
+ error?: string | null | undefined;
2917
+ }, {
2918
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2919
+ autoFixable: boolean;
2920
+ error?: string | null | undefined;
2921
+ }>, "many">>>;
2922
+ }, "strip", z.ZodTypeAny, {
2923
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2924
+ attemptNumber: number;
2925
+ maxAttempts: number;
2926
+ previousHistoryId: string;
2927
+ originalFailureDate: Date;
2928
+ fields?: {
2929
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2930
+ autoFixable: boolean;
2931
+ error?: string | null | undefined;
2932
+ }[] | null | undefined;
2933
+ }, {
2934
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2935
+ attemptNumber: number;
2936
+ maxAttempts: number;
2937
+ previousHistoryId: string;
2938
+ originalFailureDate: Date;
2939
+ fields?: {
2940
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2941
+ autoFixable: boolean;
2942
+ error?: string | null | undefined;
2943
+ }[] | null | undefined;
2944
+ }>;
2945
+ type: z.ZodLiteral<"SCHEDULED_RETRY">;
2946
+ }, "strip", z.ZodTypeAny, {
2947
+ type: "SCHEDULED_RETRY";
2948
+ data: {
2949
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2950
+ attemptNumber: number;
2951
+ maxAttempts: number;
2952
+ previousHistoryId: string;
2953
+ originalFailureDate: Date;
2954
+ fields?: {
2955
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2956
+ autoFixable: boolean;
2957
+ error?: string | null | undefined;
2958
+ }[] | null | undefined;
2959
+ };
2960
+ }, {
2961
+ type: "SCHEDULED_RETRY";
2962
+ data: {
2963
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2964
+ attemptNumber: number;
2965
+ maxAttempts: number;
2966
+ previousHistoryId: string;
2967
+ originalFailureDate: Date;
2968
+ fields?: {
2969
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2970
+ autoFixable: boolean;
2971
+ error?: string | null | undefined;
2972
+ }[] | null | undefined;
2973
+ };
2974
+ }>, z.ZodObject<{
2975
+ data: z.ZodObject<{
2976
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2977
+ }, "strip", z.ZodTypeAny, {
2978
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2979
+ }, {
2980
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2981
+ }>;
2982
+ type: z.ZodLiteral<"UPDATED">;
2983
+ }, "strip", z.ZodTypeAny, {
2984
+ type: "UPDATED";
2985
+ data: {
2986
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2987
+ };
2988
+ }, {
2989
+ type: "UPDATED";
2990
+ data: {
2991
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2992
+ };
2993
+ }>, z.ZodObject<{
2994
+ data: z.ZodObject<{
2995
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2996
+ post: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2997
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2998
+ catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2999
+ catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3000
+ colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
3001
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
3002
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3003
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3004
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3005
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3006
+ photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
3007
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3008
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3009
+ size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3010
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3011
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3012
+ statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3013
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3014
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3015
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3016
+ availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3017
+ material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
3018
+ manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3019
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
3020
+ }, "strip", z.ZodTypeAny, {
3021
+ status?: string | null | undefined;
3022
+ price?: number | null | undefined;
3023
+ currency?: string | null | undefined;
3024
+ brand?: string | null | undefined;
3025
+ catalog?: string | null | undefined;
3026
+ catalogId?: number | null | undefined;
3027
+ colors?: string[] | null | undefined;
3028
+ colorIds?: number[] | null | undefined;
3029
+ description?: string | null | undefined;
3030
+ measurementLength?: number | null | undefined;
3031
+ measurementWidth?: number | null | undefined;
3032
+ packageSizeId?: number | null | undefined;
3033
+ photoUrls?: string[] | null | undefined;
3034
+ size?: string | null | undefined;
3035
+ sizeId?: number | null | undefined;
3036
+ statusId?: number | null | undefined;
3037
+ title?: string | null | undefined;
3038
+ isDraft?: boolean | null | undefined;
3039
+ isArchived?: boolean | null | undefined;
3040
+ availableQuantity?: number | null | undefined;
3041
+ material?: number[] | null | undefined;
3042
+ manufacturerLabelling?: string | null | undefined;
3043
+ labels?: string[] | null | undefined;
3044
+ }, {
3045
+ status?: string | null | undefined;
3046
+ price?: number | null | undefined;
3047
+ currency?: string | null | undefined;
3048
+ brand?: string | null | undefined;
3049
+ catalog?: string | null | undefined;
3050
+ catalogId?: number | null | undefined;
3051
+ colors?: string[] | null | undefined;
3052
+ colorIds?: number[] | null | undefined;
3053
+ description?: string | null | undefined;
3054
+ measurementLength?: number | null | undefined;
3055
+ measurementWidth?: number | null | undefined;
3056
+ packageSizeId?: number | null | undefined;
3057
+ photoUrls?: string[] | null | undefined;
3058
+ size?: string | null | undefined;
3059
+ sizeId?: number | null | undefined;
3060
+ statusId?: number | null | undefined;
3061
+ title?: string | null | undefined;
3062
+ isDraft?: boolean | null | undefined;
3063
+ isArchived?: boolean | null | undefined;
3064
+ availableQuantity?: number | null | undefined;
3065
+ material?: number[] | null | undefined;
3066
+ manufacturerLabelling?: string | null | undefined;
3067
+ labels?: string[] | null | undefined;
3068
+ }>>>;
3069
+ targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3070
+ }, "strip", z.ZodTypeAny, {
3071
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3072
+ post?: {
3073
+ status?: string | null | undefined;
3074
+ price?: number | null | undefined;
3075
+ currency?: string | null | undefined;
3076
+ brand?: string | null | undefined;
3077
+ catalog?: string | null | undefined;
3078
+ catalogId?: number | null | undefined;
3079
+ colors?: string[] | null | undefined;
3080
+ colorIds?: number[] | null | undefined;
3081
+ description?: string | null | undefined;
3082
+ measurementLength?: number | null | undefined;
3083
+ measurementWidth?: number | null | undefined;
3084
+ packageSizeId?: number | null | undefined;
3085
+ photoUrls?: string[] | null | undefined;
3086
+ size?: string | null | undefined;
3087
+ sizeId?: number | null | undefined;
3088
+ statusId?: number | null | undefined;
3089
+ title?: string | null | undefined;
3090
+ isDraft?: boolean | null | undefined;
3091
+ isArchived?: boolean | null | undefined;
3092
+ availableQuantity?: number | null | undefined;
3093
+ material?: number[] | null | undefined;
3094
+ manufacturerLabelling?: string | null | undefined;
3095
+ labels?: string[] | null | undefined;
3096
+ } | null | undefined;
3097
+ targetDate?: Date | null | undefined;
3098
+ }, {
3099
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3100
+ post?: {
3101
+ status?: string | null | undefined;
3102
+ price?: number | null | undefined;
3103
+ currency?: string | null | undefined;
3104
+ brand?: string | null | undefined;
3105
+ catalog?: string | null | undefined;
3106
+ catalogId?: number | null | undefined;
3107
+ colors?: string[] | null | undefined;
3108
+ colorIds?: number[] | null | undefined;
3109
+ description?: string | null | undefined;
3110
+ measurementLength?: number | null | undefined;
3111
+ measurementWidth?: number | null | undefined;
3112
+ packageSizeId?: number | null | undefined;
3113
+ photoUrls?: string[] | null | undefined;
3114
+ size?: string | null | undefined;
3115
+ sizeId?: number | null | undefined;
3116
+ statusId?: number | null | undefined;
3117
+ title?: string | null | undefined;
3118
+ isDraft?: boolean | null | undefined;
3119
+ isArchived?: boolean | null | undefined;
3120
+ availableQuantity?: number | null | undefined;
3121
+ material?: number[] | null | undefined;
3122
+ manufacturerLabelling?: string | null | undefined;
3123
+ labels?: string[] | null | undefined;
3124
+ } | null | undefined;
3125
+ targetDate?: Date | null | undefined;
3126
+ }>;
3127
+ type: z.ZodLiteral<"UPDATING">;
3128
+ }, "strip", z.ZodTypeAny, {
3129
+ type: "UPDATING";
3130
+ data: {
3131
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3132
+ post?: {
3133
+ status?: string | null | undefined;
3134
+ price?: number | null | undefined;
3135
+ currency?: string | null | undefined;
3136
+ brand?: string | null | undefined;
3137
+ catalog?: string | null | undefined;
3138
+ catalogId?: number | null | undefined;
3139
+ colors?: string[] | null | undefined;
3140
+ colorIds?: number[] | null | undefined;
3141
+ description?: string | null | undefined;
3142
+ measurementLength?: number | null | undefined;
3143
+ measurementWidth?: number | null | undefined;
3144
+ packageSizeId?: number | null | undefined;
3145
+ photoUrls?: string[] | null | undefined;
3146
+ size?: string | null | undefined;
3147
+ sizeId?: number | null | undefined;
3148
+ statusId?: number | null | undefined;
3149
+ title?: string | null | undefined;
3150
+ isDraft?: boolean | null | undefined;
3151
+ isArchived?: boolean | null | undefined;
3152
+ availableQuantity?: number | null | undefined;
3153
+ material?: number[] | null | undefined;
3154
+ manufacturerLabelling?: string | null | undefined;
3155
+ labels?: string[] | null | undefined;
3156
+ } | null | undefined;
3157
+ targetDate?: Date | null | undefined;
3158
+ };
3159
+ }, {
3160
+ type: "UPDATING";
3161
+ data: {
3162
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3163
+ post?: {
3164
+ status?: string | null | undefined;
3165
+ price?: number | null | undefined;
3166
+ currency?: string | null | undefined;
3167
+ brand?: string | null | undefined;
3168
+ catalog?: string | null | undefined;
3169
+ catalogId?: number | null | undefined;
3170
+ colors?: string[] | null | undefined;
3171
+ colorIds?: number[] | null | undefined;
3172
+ description?: string | null | undefined;
3173
+ measurementLength?: number | null | undefined;
3174
+ measurementWidth?: number | null | undefined;
3175
+ packageSizeId?: number | null | undefined;
3176
+ photoUrls?: string[] | null | undefined;
3177
+ size?: string | null | undefined;
3178
+ sizeId?: number | null | undefined;
3179
+ statusId?: number | null | undefined;
3180
+ title?: string | null | undefined;
3181
+ isDraft?: boolean | null | undefined;
3182
+ isArchived?: boolean | null | undefined;
3183
+ availableQuantity?: number | null | undefined;
3184
+ material?: number[] | null | undefined;
3185
+ manufacturerLabelling?: string | null | undefined;
3186
+ labels?: string[] | null | undefined;
3187
+ } | null | undefined;
3188
+ targetDate?: Date | null | undefined;
3189
+ };
3190
+ }>]>>>;
3191
+ createdAt: z.ZodDate;
3192
+ targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3193
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3194
+ requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3195
+ }, "strip", z.ZodTypeAny, {
3196
+ 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";
3197
+ id: string;
3198
+ createdAt: Date;
3199
+ itemId: string | number;
3200
+ data?: {
3201
+ type: "ACTION_CANCELED";
3202
+ data: {
3203
+ targetItemHistoryId: string;
3204
+ };
3205
+ } | {
3206
+ type: "BUYER_PAID";
3207
+ data: {
3208
+ soldAccountId: string;
3209
+ soldOrderId: string;
3210
+ soldConversationId?: string | null | undefined;
3211
+ };
3212
+ } | {
3213
+ type: "DELIVERED";
3214
+ data: {
3215
+ soldAccountId: string;
3216
+ soldOrderId: string;
3217
+ soldConversationId?: string | null | undefined;
3218
+ };
3219
+ } | {
3220
+ type: "EMPTY";
3221
+ } | {
3222
+ type: "FAILED_TO_PUBLISH";
3223
+ data: {
3224
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3225
+ accountId?: string | null | undefined;
3226
+ reason?: string | null | undefined;
3227
+ fields?: {
3228
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3229
+ autoFixable: boolean;
3230
+ error?: string | null | undefined;
3231
+ }[] | null | undefined;
3232
+ itemHistoryId?: string | null | undefined;
3233
+ };
3234
+ } | {
3235
+ type: "IMAGE_PROCESSING_DONE";
3236
+ data: {
3237
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3238
+ variations?: {
3239
+ fileId: string;
3240
+ seed: number;
3241
+ phash: string;
3242
+ distanceOriginal: number;
3243
+ originalImageUrl: string;
3244
+ originalPhash: string;
3245
+ }[] | null | undefined;
3246
+ originalPhashes?: string[] | null | undefined;
3247
+ };
3248
+ } | {
3249
+ type: "IMPORTED";
3250
+ data: {
3251
+ post: {
3252
+ platformId: string;
3253
+ post: {
3254
+ status?: string | null | undefined;
3255
+ price?: number | null | undefined;
3256
+ currency?: string | null | undefined;
3257
+ brand?: string | null | undefined;
3258
+ catalog?: string | null | undefined;
3259
+ catalogId?: number | null | undefined;
3260
+ colors?: string[] | null | undefined;
3261
+ colorIds?: number[] | null | undefined;
3262
+ description?: string | null | undefined;
3263
+ measurementLength?: number | null | undefined;
3264
+ measurementWidth?: number | null | undefined;
3265
+ packageSizeId?: number | null | undefined;
3266
+ photoUrls?: string[] | null | undefined;
3267
+ size?: string | null | undefined;
3268
+ sizeId?: number | null | undefined;
3269
+ statusId?: number | null | undefined;
3270
+ title?: string | null | undefined;
3271
+ isDraft?: boolean | null | undefined;
3272
+ isArchived?: boolean | null | undefined;
3273
+ availableQuantity?: number | null | undefined;
3274
+ material?: number[] | null | undefined;
3275
+ manufacturerLabelling?: string | null | undefined;
3276
+ labels?: string[] | null | undefined;
3277
+ };
3278
+ createdAt?: Date | null | undefined;
3279
+ platformUrl?: string | null | undefined;
3280
+ };
3281
+ };
3282
+ } | {
3283
+ type: "LIFECYCLE_COMPLETED";
3284
+ data: {
3285
+ accountId: string;
3286
+ };
3287
+ } | {
3288
+ type: "LIFECYCLE_STARTED";
3289
+ data: {
3290
+ accountId: string;
3291
+ caseId: string;
3292
+ };
3293
+ } | {
3294
+ type: "PUBLISHED";
3295
+ data: {
3296
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3297
+ };
3298
+ } | {
3299
+ type: "REPUBLISHING";
3300
+ data: {
3301
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3302
+ publishingDate?: Date | null | undefined;
3303
+ priceDropPayload?: {
3304
+ value: number;
3305
+ type: "PERCENTAGE" | "ABSOLUTE";
3306
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3307
+ roundStep?: number | null | undefined;
3308
+ maxRounds?: number | null | undefined;
3309
+ } | null | undefined;
3310
+ isTransfer?: boolean | null | undefined;
3311
+ targetAccountId?: string | null | undefined;
3312
+ };
3313
+ } | {
3314
+ type: "REPUBLISHING_RETRY";
3315
+ data: {
3316
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3317
+ attemptNumber: number;
3318
+ maxAttempts: number;
3319
+ previousHistoryId: string;
3320
+ originalFailureDate: Date;
3321
+ fields?: {
3322
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3323
+ autoFixable: boolean;
3324
+ error?: string | null | undefined;
3325
+ }[] | null | undefined;
3326
+ priceDropPayload?: {
3327
+ value: number;
3328
+ type: "PERCENTAGE" | "ABSOLUTE";
3329
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3330
+ roundStep?: number | null | undefined;
3331
+ maxRounds?: number | null | undefined;
3332
+ } | null | undefined;
3333
+ };
3334
+ } | {
3335
+ type: "SCHEDULED";
3336
+ data: {
3337
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3338
+ publishingDate?: Date | null | undefined;
3339
+ };
3340
+ } | {
3341
+ type: "SCHEDULED_RETRY";
3342
+ data: {
3343
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3344
+ attemptNumber: number;
3345
+ maxAttempts: number;
3346
+ previousHistoryId: string;
3347
+ originalFailureDate: Date;
3348
+ fields?: {
3349
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3350
+ autoFixable: boolean;
3351
+ error?: string | null | undefined;
3352
+ }[] | null | undefined;
3353
+ };
3354
+ } | {
3355
+ type: "UPDATED";
3356
+ data: {
3357
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3358
+ };
3359
+ } | {
3360
+ type: "UPDATING";
3361
+ data: {
3362
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3363
+ post?: {
3364
+ status?: string | null | undefined;
3365
+ price?: number | null | undefined;
3366
+ currency?: string | null | undefined;
3367
+ brand?: string | null | undefined;
3368
+ catalog?: string | null | undefined;
3369
+ catalogId?: number | null | undefined;
3370
+ colors?: string[] | null | undefined;
3371
+ colorIds?: number[] | null | undefined;
3372
+ description?: string | null | undefined;
3373
+ measurementLength?: number | null | undefined;
3374
+ measurementWidth?: number | null | undefined;
3375
+ packageSizeId?: number | null | undefined;
3376
+ photoUrls?: string[] | null | undefined;
3377
+ size?: string | null | undefined;
3378
+ sizeId?: number | null | undefined;
3379
+ statusId?: number | null | undefined;
3380
+ title?: string | null | undefined;
3381
+ isDraft?: boolean | null | undefined;
3382
+ isArchived?: boolean | null | undefined;
3383
+ availableQuantity?: number | null | undefined;
3384
+ material?: number[] | null | undefined;
3385
+ manufacturerLabelling?: string | null | undefined;
3386
+ labels?: string[] | null | undefined;
3387
+ } | null | undefined;
3388
+ targetDate?: Date | null | undefined;
3389
+ };
3390
+ } | null | undefined;
3391
+ accountId?: string | null | undefined;
3392
+ requestId?: string | null | undefined;
3393
+ targetDate?: Date | null | undefined;
3394
+ }, {
3395
+ 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";
3396
+ id: string;
3397
+ createdAt: Date;
3398
+ itemId: string | number;
3399
+ data?: {
3400
+ type: "ACTION_CANCELED";
3401
+ data: {
3402
+ targetItemHistoryId: string;
3403
+ };
3404
+ } | {
3405
+ type: "BUYER_PAID";
3406
+ data: {
3407
+ soldAccountId: string;
3408
+ soldOrderId: string;
3409
+ soldConversationId?: string | null | undefined;
3410
+ };
3411
+ } | {
3412
+ type: "DELIVERED";
3413
+ data: {
3414
+ soldAccountId: string;
3415
+ soldOrderId: string;
3416
+ soldConversationId?: string | null | undefined;
3417
+ };
3418
+ } | {
3419
+ type: "EMPTY";
3420
+ } | {
3421
+ type: "FAILED_TO_PUBLISH";
3422
+ data: {
3423
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3424
+ accountId?: string | null | undefined;
3425
+ reason?: string | null | undefined;
3426
+ fields?: {
3427
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3428
+ autoFixable: boolean;
3429
+ error?: string | null | undefined;
3430
+ }[] | null | undefined;
3431
+ itemHistoryId?: string | null | undefined;
3432
+ };
3433
+ } | {
3434
+ type: "IMAGE_PROCESSING_DONE";
3435
+ data: {
3436
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3437
+ variations?: {
3438
+ fileId: string;
3439
+ seed: number;
3440
+ phash: string;
3441
+ distanceOriginal: number;
3442
+ originalImageUrl: string;
3443
+ originalPhash: string;
3444
+ }[] | null | undefined;
3445
+ originalPhashes?: string[] | null | undefined;
3446
+ };
3447
+ } | {
3448
+ type: "IMPORTED";
3449
+ data: {
3450
+ post: {
3451
+ platformId: string;
3452
+ post: {
3453
+ status?: string | null | undefined;
3454
+ price?: number | null | undefined;
3455
+ currency?: string | null | undefined;
3456
+ brand?: string | null | undefined;
3457
+ catalog?: string | null | undefined;
3458
+ catalogId?: number | null | undefined;
3459
+ colors?: string[] | null | undefined;
3460
+ colorIds?: number[] | null | undefined;
3461
+ description?: string | null | undefined;
3462
+ measurementLength?: number | null | undefined;
3463
+ measurementWidth?: number | null | undefined;
3464
+ packageSizeId?: number | null | undefined;
3465
+ photoUrls?: string[] | null | undefined;
3466
+ size?: string | null | undefined;
3467
+ sizeId?: number | null | undefined;
3468
+ statusId?: number | null | undefined;
3469
+ title?: string | null | undefined;
3470
+ isDraft?: boolean | null | undefined;
3471
+ isArchived?: boolean | null | undefined;
3472
+ availableQuantity?: number | null | undefined;
3473
+ material?: number[] | null | undefined;
3474
+ manufacturerLabelling?: string | null | undefined;
3475
+ labels?: string[] | null | undefined;
3476
+ };
3477
+ createdAt?: Date | null | undefined;
3478
+ platformUrl?: string | null | undefined;
3479
+ };
3480
+ };
3481
+ } | {
3482
+ type: "LIFECYCLE_COMPLETED";
3483
+ data: {
3484
+ accountId: string;
3485
+ };
3486
+ } | {
3487
+ type: "LIFECYCLE_STARTED";
3488
+ data: {
3489
+ accountId: string;
3490
+ caseId: string;
3491
+ };
3492
+ } | {
3493
+ type: "PUBLISHED";
3494
+ data: {
3495
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3496
+ };
3497
+ } | {
3498
+ type: "REPUBLISHING";
3499
+ data: {
3500
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3501
+ publishingDate?: Date | null | undefined;
3502
+ priceDropPayload?: {
3503
+ value: number;
3504
+ type: "PERCENTAGE" | "ABSOLUTE";
3505
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3506
+ roundStep?: number | null | undefined;
3507
+ maxRounds?: number | null | undefined;
3508
+ } | null | undefined;
3509
+ isTransfer?: boolean | null | undefined;
3510
+ targetAccountId?: string | null | undefined;
3511
+ };
3512
+ } | {
3513
+ type: "REPUBLISHING_RETRY";
3514
+ data: {
3515
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3516
+ attemptNumber: number;
3517
+ maxAttempts: number;
3518
+ previousHistoryId: string;
3519
+ originalFailureDate: Date;
3520
+ fields?: {
3521
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3522
+ autoFixable: boolean;
3523
+ error?: string | null | undefined;
3524
+ }[] | null | undefined;
3525
+ priceDropPayload?: {
3526
+ value: number;
3527
+ type: "PERCENTAGE" | "ABSOLUTE";
3528
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3529
+ roundStep?: number | null | undefined;
3530
+ maxRounds?: number | null | undefined;
3531
+ } | null | undefined;
3532
+ };
3533
+ } | {
3534
+ type: "SCHEDULED";
3535
+ data: {
3536
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3537
+ publishingDate?: Date | null | undefined;
3538
+ };
3539
+ } | {
3540
+ type: "SCHEDULED_RETRY";
3541
+ data: {
3542
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3543
+ attemptNumber: number;
3544
+ maxAttempts: number;
3545
+ previousHistoryId: string;
3546
+ originalFailureDate: Date;
3547
+ fields?: {
3548
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3549
+ autoFixable: boolean;
3550
+ error?: string | null | undefined;
3551
+ }[] | null | undefined;
3552
+ };
3553
+ } | {
3554
+ type: "UPDATED";
3555
+ data: {
3556
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3557
+ };
3558
+ } | {
3559
+ type: "UPDATING";
3560
+ data: {
3561
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3562
+ post?: {
3563
+ status?: string | null | undefined;
3564
+ price?: number | null | undefined;
3565
+ currency?: string | null | undefined;
3566
+ brand?: string | null | undefined;
3567
+ catalog?: string | null | undefined;
3568
+ catalogId?: number | null | undefined;
3569
+ colors?: string[] | null | undefined;
3570
+ colorIds?: number[] | null | undefined;
3571
+ description?: string | null | undefined;
3572
+ measurementLength?: number | null | undefined;
3573
+ measurementWidth?: number | null | undefined;
3574
+ packageSizeId?: number | null | undefined;
3575
+ photoUrls?: string[] | null | undefined;
3576
+ size?: string | null | undefined;
3577
+ sizeId?: number | null | undefined;
3578
+ statusId?: number | null | undefined;
3579
+ title?: string | null | undefined;
3580
+ isDraft?: boolean | null | undefined;
3581
+ isArchived?: boolean | null | undefined;
3582
+ availableQuantity?: number | null | undefined;
3583
+ material?: number[] | null | undefined;
3584
+ manufacturerLabelling?: string | null | undefined;
3585
+ labels?: string[] | null | undefined;
3586
+ } | null | undefined;
3587
+ targetDate?: Date | null | undefined;
3588
+ };
3589
+ } | null | undefined;
3590
+ accountId?: string | null | undefined;
3591
+ requestId?: string | null | undefined;
3592
+ targetDate?: Date | null | undefined;
3593
+ }>, "many">>>;
3594
+ createdAt: z.ZodDate;
3595
+ updatedAt: z.ZodDate;
3596
+ }, "strip", z.ZodTypeAny, {
3597
+ userId: string | number;
3598
+ id: string | number;
3599
+ updatedAt: Date;
3600
+ name: string;
3601
+ createdAt: Date;
3602
+ sold: boolean;
3603
+ state?: number | null | undefined;
3604
+ colorIds?: number[] | null | undefined;
3605
+ description?: string | null | undefined;
3606
+ packageSizeId?: number | null | undefined;
3607
+ sizeId?: number | null | undefined;
3608
+ labels?: {
3609
+ itemId: string | number;
3610
+ labelId: string | number;
3611
+ label?: {
3612
+ id: string | number;
3613
+ name: string;
3614
+ createdAt: Date;
3615
+ isUserLabel: boolean;
3616
+ userId?: string | number | null | undefined;
3617
+ itemCount?: number | null | undefined;
3618
+ parentId?: unknown;
3619
+ } | null | undefined;
3620
+ }[] | null | undefined;
3621
+ files?: {
3622
+ itemId: string | number;
3623
+ fileId: string;
3624
+ index?: number | null | undefined;
3625
+ file?: {
3626
+ path: string;
3627
+ userId: string | number;
3628
+ id: string;
3629
+ createdAt: Date;
3630
+ signedUrl: string;
3631
+ } | null | undefined;
3632
+ }[] | null | undefined;
3633
+ fields?: {
3634
+ value: string;
3635
+ itemId: string | number;
3636
+ fieldId: string | number;
3637
+ }[] | null | undefined;
3638
+ sku?: string | null | undefined;
3639
+ categoryId?: number | null | undefined;
3640
+ brandId?: string | number | null | undefined;
3641
+ sex?: string | null | undefined;
3642
+ purchasePrice?: number | null | undefined;
3643
+ purchaseDate?: Date | null | undefined;
3644
+ purchasePlaceId?: string | number | null | undefined;
3645
+ purchased?: boolean | null | undefined;
3646
+ sellingPrice?: number | null | undefined;
3647
+ sellingDate?: Date | null | undefined;
3648
+ sellingPlaceId?: string | number | null | undefined;
3649
+ estimatedPrice?: number | null | undefined;
3650
+ fees?: {
3651
+ value: number;
3652
+ type: string;
3653
+ userId: string | number;
3654
+ id: string | number;
3655
+ updatedAt: Date;
3656
+ name: string;
3657
+ createdAt: Date;
3658
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
3659
+ startDate: Date;
3660
+ active: boolean;
3661
+ description?: string | null | undefined;
3662
+ itemId?: string | number | null | undefined;
3663
+ endDate?: Date | null | undefined;
3664
+ parentFeeId?: string | number | null | undefined;
3665
+ }[] | null | undefined;
3666
+ feesSum?: number | null | undefined;
3667
+ customerId?: string | number | null | undefined;
3668
+ customer?: {
3669
+ userId: string | number;
3670
+ id: string | number;
3671
+ email: string;
3672
+ firstName: string;
3673
+ lastName: string;
3674
+ birthDate: Date;
3675
+ idNumber: string;
3676
+ phone: string;
3677
+ iban: string;
3678
+ bic: string;
3679
+ phoneVerified: boolean;
3680
+ } | null | undefined;
3681
+ customerType?: string | null | undefined;
3682
+ customerPaid?: boolean | null | undefined;
3683
+ customerPaidDate?: Date | null | undefined;
3684
+ customerPaidType?: string | null | undefined;
3685
+ contractId?: string | number | null | undefined;
3686
+ lastHistory?: {
3687
+ 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";
3688
+ id: string;
3689
+ createdAt: Date;
3690
+ itemId: string | number;
3691
+ data?: {
3692
+ type: "ACTION_CANCELED";
3693
+ data: {
3694
+ targetItemHistoryId: string;
3695
+ };
3696
+ } | {
3697
+ type: "BUYER_PAID";
3698
+ data: {
3699
+ soldAccountId: string;
3700
+ soldOrderId: string;
3701
+ soldConversationId?: string | null | undefined;
3702
+ };
3703
+ } | {
3704
+ type: "DELIVERED";
3705
+ data: {
3706
+ soldAccountId: string;
3707
+ soldOrderId: string;
3708
+ soldConversationId?: string | null | undefined;
3709
+ };
3710
+ } | {
3711
+ type: "EMPTY";
3712
+ } | {
3713
+ type: "FAILED_TO_PUBLISH";
3714
+ data: {
3715
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3716
+ accountId?: string | null | undefined;
3717
+ reason?: string | null | undefined;
3718
+ fields?: {
3719
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3720
+ autoFixable: boolean;
3721
+ error?: string | null | undefined;
3722
+ }[] | null | undefined;
3723
+ itemHistoryId?: string | null | undefined;
3724
+ };
3725
+ } | {
3726
+ type: "IMAGE_PROCESSING_DONE";
3727
+ data: {
3728
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3729
+ variations?: {
3730
+ fileId: string;
3731
+ seed: number;
3732
+ phash: string;
3733
+ distanceOriginal: number;
3734
+ originalImageUrl: string;
3735
+ originalPhash: string;
3736
+ }[] | null | undefined;
3737
+ originalPhashes?: string[] | null | undefined;
3738
+ };
3739
+ } | {
3740
+ type: "IMPORTED";
3741
+ data: {
3742
+ post: {
3743
+ platformId: string;
3744
+ post: {
3745
+ status?: string | null | undefined;
3746
+ price?: number | null | undefined;
3747
+ currency?: string | null | undefined;
3748
+ brand?: string | null | undefined;
3749
+ catalog?: string | null | undefined;
3750
+ catalogId?: number | null | undefined;
3751
+ colors?: string[] | null | undefined;
3752
+ colorIds?: number[] | null | undefined;
3753
+ description?: string | null | undefined;
3754
+ measurementLength?: number | null | undefined;
3755
+ measurementWidth?: number | null | undefined;
3756
+ packageSizeId?: number | null | undefined;
3757
+ photoUrls?: string[] | null | undefined;
3758
+ size?: string | null | undefined;
3759
+ sizeId?: number | null | undefined;
3760
+ statusId?: number | null | undefined;
3761
+ title?: string | null | undefined;
3762
+ isDraft?: boolean | null | undefined;
3763
+ isArchived?: boolean | null | undefined;
3764
+ availableQuantity?: number | null | undefined;
3765
+ material?: number[] | null | undefined;
3766
+ manufacturerLabelling?: string | null | undefined;
3767
+ labels?: string[] | null | undefined;
3768
+ };
3769
+ createdAt?: Date | null | undefined;
3770
+ platformUrl?: string | null | undefined;
3771
+ };
3772
+ };
3773
+ } | {
3774
+ type: "LIFECYCLE_COMPLETED";
3775
+ data: {
3776
+ accountId: string;
3777
+ };
3778
+ } | {
3779
+ type: "LIFECYCLE_STARTED";
3780
+ data: {
3781
+ accountId: string;
3782
+ caseId: string;
3783
+ };
3784
+ } | {
3785
+ type: "PUBLISHED";
3786
+ data: {
3787
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3788
+ };
3789
+ } | {
3790
+ type: "REPUBLISHING";
3791
+ data: {
3792
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3793
+ publishingDate?: Date | null | undefined;
3794
+ priceDropPayload?: {
3795
+ value: number;
3796
+ type: "PERCENTAGE" | "ABSOLUTE";
3797
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3798
+ roundStep?: number | null | undefined;
3799
+ maxRounds?: number | null | undefined;
3800
+ } | null | undefined;
3801
+ isTransfer?: boolean | null | undefined;
3802
+ targetAccountId?: string | null | undefined;
3803
+ };
3804
+ } | {
3805
+ type: "REPUBLISHING_RETRY";
3806
+ data: {
3807
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3808
+ attemptNumber: number;
3809
+ maxAttempts: number;
3810
+ previousHistoryId: string;
3811
+ originalFailureDate: Date;
3812
+ fields?: {
3813
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3814
+ autoFixable: boolean;
3815
+ error?: string | null | undefined;
3816
+ }[] | null | undefined;
3817
+ priceDropPayload?: {
3818
+ value: number;
3819
+ type: "PERCENTAGE" | "ABSOLUTE";
3820
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3821
+ roundStep?: number | null | undefined;
3822
+ maxRounds?: number | null | undefined;
3823
+ } | null | undefined;
3824
+ };
3825
+ } | {
3826
+ type: "SCHEDULED";
3827
+ data: {
3828
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3829
+ publishingDate?: Date | null | undefined;
3830
+ };
3831
+ } | {
3832
+ type: "SCHEDULED_RETRY";
3833
+ data: {
3834
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3835
+ attemptNumber: number;
3836
+ maxAttempts: number;
3837
+ previousHistoryId: string;
3838
+ originalFailureDate: Date;
3839
+ fields?: {
3840
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3841
+ autoFixable: boolean;
3842
+ error?: string | null | undefined;
3843
+ }[] | null | undefined;
3844
+ };
3845
+ } | {
3846
+ type: "UPDATED";
3847
+ data: {
3848
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3849
+ };
3850
+ } | {
3851
+ type: "UPDATING";
3852
+ data: {
3853
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3854
+ post?: {
3855
+ status?: string | null | undefined;
3856
+ price?: number | null | undefined;
3857
+ currency?: string | null | undefined;
3858
+ brand?: string | null | undefined;
3859
+ catalog?: string | null | undefined;
3860
+ catalogId?: number | null | undefined;
3861
+ colors?: string[] | null | undefined;
3862
+ colorIds?: number[] | null | undefined;
3863
+ description?: string | null | undefined;
3864
+ measurementLength?: number | null | undefined;
3865
+ measurementWidth?: number | null | undefined;
3866
+ packageSizeId?: number | null | undefined;
3867
+ photoUrls?: string[] | null | undefined;
3868
+ size?: string | null | undefined;
3869
+ sizeId?: number | null | undefined;
3870
+ statusId?: number | null | undefined;
3871
+ title?: string | null | undefined;
3872
+ isDraft?: boolean | null | undefined;
3873
+ isArchived?: boolean | null | undefined;
3874
+ availableQuantity?: number | null | undefined;
3875
+ material?: number[] | null | undefined;
3876
+ manufacturerLabelling?: string | null | undefined;
3877
+ labels?: string[] | null | undefined;
3878
+ } | null | undefined;
3879
+ targetDate?: Date | null | undefined;
3880
+ };
3881
+ } | null | undefined;
3882
+ accountId?: string | null | undefined;
3883
+ requestId?: string | null | undefined;
3884
+ targetDate?: Date | null | undefined;
3885
+ } | null | undefined;
3886
+ platforms?: {
3887
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
3888
+ id: string;
3889
+ updatedAt: Date;
3890
+ createdAt: Date;
3891
+ accountId: string;
3892
+ itemId: string | number;
3893
+ platformId: string;
3894
+ platformUrl: string;
3895
+ platformPrice: number;
3896
+ publishedAt: Date;
3897
+ conversationId?: string | null | undefined;
3898
+ account?: {
3899
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
3900
+ userId: string | number;
3901
+ name: string;
3902
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3903
+ accountId: string;
3904
+ locale?: string | null | undefined;
3905
+ night?: {
3906
+ startsAt: Date;
3907
+ endsAt: Date;
3908
+ } | null | undefined;
3909
+ favoritesMaxDelay?: number | null | undefined;
3910
+ ordersMaxDelay?: number | null | undefined;
3911
+ conversationsMaxDelay?: number | null | undefined;
3912
+ } | null | undefined;
3913
+ viewsCount?: number | null | undefined;
3914
+ favoritesCount?: number | null | undefined;
3915
+ }[] | null | undefined;
3916
+ history?: {
3917
+ 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";
3918
+ id: string;
3919
+ createdAt: Date;
3920
+ itemId: string | number;
3921
+ data?: {
3922
+ type: "ACTION_CANCELED";
3923
+ data: {
3924
+ targetItemHistoryId: string;
3925
+ };
3926
+ } | {
3927
+ type: "BUYER_PAID";
3928
+ data: {
3929
+ soldAccountId: string;
3930
+ soldOrderId: string;
3931
+ soldConversationId?: string | null | undefined;
3932
+ };
3933
+ } | {
3934
+ type: "DELIVERED";
3935
+ data: {
3936
+ soldAccountId: string;
3937
+ soldOrderId: string;
3938
+ soldConversationId?: string | null | undefined;
3939
+ };
3940
+ } | {
3941
+ type: "EMPTY";
3942
+ } | {
3943
+ type: "FAILED_TO_PUBLISH";
3944
+ data: {
3945
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3946
+ accountId?: string | null | undefined;
3947
+ reason?: string | null | undefined;
3948
+ fields?: {
3949
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3950
+ autoFixable: boolean;
3951
+ error?: string | null | undefined;
3952
+ }[] | null | undefined;
3953
+ itemHistoryId?: string | null | undefined;
3954
+ };
3955
+ } | {
3956
+ type: "IMAGE_PROCESSING_DONE";
3957
+ data: {
3958
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3959
+ variations?: {
3960
+ fileId: string;
3961
+ seed: number;
3962
+ phash: string;
3963
+ distanceOriginal: number;
3964
+ originalImageUrl: string;
3965
+ originalPhash: string;
3966
+ }[] | null | undefined;
3967
+ originalPhashes?: string[] | null | undefined;
3968
+ };
3969
+ } | {
3970
+ type: "IMPORTED";
3971
+ data: {
3972
+ post: {
3973
+ platformId: string;
3974
+ post: {
3975
+ status?: string | null | undefined;
3976
+ price?: number | null | undefined;
3977
+ currency?: string | null | undefined;
3978
+ brand?: string | null | undefined;
3979
+ catalog?: string | null | undefined;
3980
+ catalogId?: number | null | undefined;
3981
+ colors?: string[] | null | undefined;
3982
+ colorIds?: number[] | null | undefined;
3983
+ description?: string | null | undefined;
3984
+ measurementLength?: number | null | undefined;
3985
+ measurementWidth?: number | null | undefined;
3986
+ packageSizeId?: number | null | undefined;
3987
+ photoUrls?: string[] | null | undefined;
3988
+ size?: string | null | undefined;
3989
+ sizeId?: number | null | undefined;
3990
+ statusId?: number | null | undefined;
3991
+ title?: string | null | undefined;
3992
+ isDraft?: boolean | null | undefined;
3993
+ isArchived?: boolean | null | undefined;
3994
+ availableQuantity?: number | null | undefined;
3995
+ material?: number[] | null | undefined;
3996
+ manufacturerLabelling?: string | null | undefined;
3997
+ labels?: string[] | null | undefined;
3998
+ };
3999
+ createdAt?: Date | null | undefined;
4000
+ platformUrl?: string | null | undefined;
4001
+ };
4002
+ };
4003
+ } | {
4004
+ type: "LIFECYCLE_COMPLETED";
4005
+ data: {
4006
+ accountId: string;
4007
+ };
4008
+ } | {
4009
+ type: "LIFECYCLE_STARTED";
4010
+ data: {
4011
+ accountId: string;
4012
+ caseId: string;
4013
+ };
4014
+ } | {
4015
+ type: "PUBLISHED";
4016
+ data: {
4017
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4018
+ };
4019
+ } | {
4020
+ type: "REPUBLISHING";
4021
+ data: {
4022
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4023
+ publishingDate?: Date | null | undefined;
4024
+ priceDropPayload?: {
4025
+ value: number;
4026
+ type: "PERCENTAGE" | "ABSOLUTE";
4027
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4028
+ roundStep?: number | null | undefined;
4029
+ maxRounds?: number | null | undefined;
4030
+ } | null | undefined;
4031
+ isTransfer?: boolean | null | undefined;
4032
+ targetAccountId?: string | null | undefined;
4033
+ };
4034
+ } | {
4035
+ type: "REPUBLISHING_RETRY";
4036
+ data: {
4037
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4038
+ attemptNumber: number;
4039
+ maxAttempts: number;
4040
+ previousHistoryId: string;
4041
+ originalFailureDate: Date;
4042
+ fields?: {
4043
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4044
+ autoFixable: boolean;
4045
+ error?: string | null | undefined;
4046
+ }[] | null | undefined;
4047
+ priceDropPayload?: {
4048
+ value: number;
4049
+ type: "PERCENTAGE" | "ABSOLUTE";
4050
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4051
+ roundStep?: number | null | undefined;
4052
+ maxRounds?: number | null | undefined;
4053
+ } | null | undefined;
4054
+ };
4055
+ } | {
4056
+ type: "SCHEDULED";
4057
+ data: {
4058
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4059
+ publishingDate?: Date | null | undefined;
4060
+ };
4061
+ } | {
4062
+ type: "SCHEDULED_RETRY";
4063
+ data: {
4064
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4065
+ attemptNumber: number;
4066
+ maxAttempts: number;
4067
+ previousHistoryId: string;
4068
+ originalFailureDate: Date;
4069
+ fields?: {
4070
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4071
+ autoFixable: boolean;
4072
+ error?: string | null | undefined;
4073
+ }[] | null | undefined;
4074
+ };
4075
+ } | {
4076
+ type: "UPDATED";
4077
+ data: {
4078
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4079
+ };
4080
+ } | {
4081
+ type: "UPDATING";
4082
+ data: {
4083
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4084
+ post?: {
4085
+ status?: string | null | undefined;
4086
+ price?: number | null | undefined;
4087
+ currency?: string | null | undefined;
4088
+ brand?: string | null | undefined;
4089
+ catalog?: string | null | undefined;
4090
+ catalogId?: number | null | undefined;
4091
+ colors?: string[] | null | undefined;
4092
+ colorIds?: number[] | null | undefined;
4093
+ description?: string | null | undefined;
4094
+ measurementLength?: number | null | undefined;
4095
+ measurementWidth?: number | null | undefined;
4096
+ packageSizeId?: number | null | undefined;
4097
+ photoUrls?: string[] | null | undefined;
4098
+ size?: string | null | undefined;
4099
+ sizeId?: number | null | undefined;
4100
+ statusId?: number | null | undefined;
4101
+ title?: string | null | undefined;
4102
+ isDraft?: boolean | null | undefined;
4103
+ isArchived?: boolean | null | undefined;
4104
+ availableQuantity?: number | null | undefined;
4105
+ material?: number[] | null | undefined;
4106
+ manufacturerLabelling?: string | null | undefined;
4107
+ labels?: string[] | null | undefined;
4108
+ } | null | undefined;
4109
+ targetDate?: Date | null | undefined;
4110
+ };
4111
+ } | null | undefined;
4112
+ accountId?: string | null | undefined;
4113
+ requestId?: string | null | undefined;
4114
+ targetDate?: Date | null | undefined;
4115
+ }[] | null | undefined;
4116
+ }, {
4117
+ userId: string | number;
4118
+ id: string | number;
4119
+ updatedAt: Date;
4120
+ name: string;
4121
+ createdAt: Date;
4122
+ sold: boolean;
4123
+ state?: number | null | undefined;
4124
+ colorIds?: number[] | null | undefined;
4125
+ description?: string | null | undefined;
4126
+ packageSizeId?: number | null | undefined;
4127
+ sizeId?: number | null | undefined;
4128
+ labels?: {
4129
+ itemId: string | number;
4130
+ labelId: string | number;
4131
+ label?: {
4132
+ id: string | number;
4133
+ name: string;
4134
+ createdAt: Date;
4135
+ isUserLabel: boolean;
4136
+ userId?: string | number | null | undefined;
4137
+ itemCount?: number | null | undefined;
4138
+ parentId?: unknown;
4139
+ } | null | undefined;
4140
+ }[] | null | undefined;
4141
+ files?: {
4142
+ itemId: string | number;
4143
+ fileId: string;
4144
+ index?: number | null | undefined;
4145
+ file?: {
4146
+ path: string;
4147
+ userId: string | number;
4148
+ id: string;
4149
+ createdAt: Date;
4150
+ signedUrl: string;
4151
+ } | null | undefined;
4152
+ }[] | null | undefined;
4153
+ fields?: {
4154
+ value: string;
4155
+ itemId: string | number;
4156
+ fieldId: string | number;
4157
+ }[] | null | undefined;
4158
+ sku?: string | null | undefined;
4159
+ categoryId?: number | null | undefined;
4160
+ brandId?: string | number | null | undefined;
4161
+ sex?: string | null | undefined;
4162
+ purchasePrice?: number | null | undefined;
4163
+ purchaseDate?: Date | null | undefined;
4164
+ purchasePlaceId?: string | number | null | undefined;
4165
+ purchased?: boolean | null | undefined;
4166
+ sellingPrice?: number | null | undefined;
4167
+ sellingDate?: Date | null | undefined;
4168
+ sellingPlaceId?: string | number | null | undefined;
4169
+ estimatedPrice?: number | null | undefined;
4170
+ fees?: {
4171
+ value: number;
4172
+ type: string;
4173
+ userId: string | number;
4174
+ id: string | number;
4175
+ updatedAt: Date;
4176
+ name: string;
4177
+ createdAt: Date;
4178
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
4179
+ startDate: Date;
4180
+ active: boolean;
4181
+ description?: string | null | undefined;
4182
+ itemId?: string | number | null | undefined;
4183
+ endDate?: Date | null | undefined;
4184
+ parentFeeId?: string | number | null | undefined;
4185
+ }[] | null | undefined;
4186
+ feesSum?: number | null | undefined;
4187
+ customerId?: string | number | null | undefined;
4188
+ customer?: {
4189
+ userId: string | number;
4190
+ id: string | number;
4191
+ email: string;
4192
+ firstName: string;
4193
+ lastName: string;
4194
+ birthDate: Date;
4195
+ idNumber: string;
4196
+ phone: string;
4197
+ iban: string;
4198
+ bic: string;
4199
+ phoneVerified: boolean;
4200
+ } | null | undefined;
4201
+ customerType?: string | null | undefined;
4202
+ customerPaid?: boolean | null | undefined;
4203
+ customerPaidDate?: Date | null | undefined;
4204
+ customerPaidType?: string | null | undefined;
4205
+ contractId?: string | number | null | undefined;
4206
+ lastHistory?: {
4207
+ 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";
4208
+ id: string;
4209
+ createdAt: Date;
4210
+ itemId: string | number;
4211
+ data?: {
4212
+ type: "ACTION_CANCELED";
4213
+ data: {
4214
+ targetItemHistoryId: string;
4215
+ };
4216
+ } | {
4217
+ type: "BUYER_PAID";
4218
+ data: {
4219
+ soldAccountId: string;
4220
+ soldOrderId: string;
4221
+ soldConversationId?: string | null | undefined;
4222
+ };
4223
+ } | {
4224
+ type: "DELIVERED";
4225
+ data: {
4226
+ soldAccountId: string;
4227
+ soldOrderId: string;
4228
+ soldConversationId?: string | null | undefined;
4229
+ };
4230
+ } | {
4231
+ type: "EMPTY";
4232
+ } | {
4233
+ type: "FAILED_TO_PUBLISH";
4234
+ data: {
4235
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4236
+ accountId?: string | null | undefined;
4237
+ reason?: string | null | undefined;
4238
+ fields?: {
4239
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4240
+ autoFixable: boolean;
4241
+ error?: string | null | undefined;
4242
+ }[] | null | undefined;
4243
+ itemHistoryId?: string | null | undefined;
4244
+ };
4245
+ } | {
4246
+ type: "IMAGE_PROCESSING_DONE";
4247
+ data: {
4248
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4249
+ variations?: {
4250
+ fileId: string;
4251
+ seed: number;
4252
+ phash: string;
4253
+ distanceOriginal: number;
4254
+ originalImageUrl: string;
4255
+ originalPhash: string;
4256
+ }[] | null | undefined;
4257
+ originalPhashes?: string[] | null | undefined;
4258
+ };
4259
+ } | {
4260
+ type: "IMPORTED";
4261
+ data: {
4262
+ post: {
4263
+ platformId: string;
4264
+ post: {
4265
+ status?: string | null | undefined;
4266
+ price?: number | null | undefined;
4267
+ currency?: string | null | undefined;
4268
+ brand?: string | null | undefined;
4269
+ catalog?: string | null | undefined;
4270
+ catalogId?: number | null | undefined;
4271
+ colors?: string[] | null | undefined;
4272
+ colorIds?: number[] | null | undefined;
4273
+ description?: string | null | undefined;
4274
+ measurementLength?: number | null | undefined;
4275
+ measurementWidth?: number | null | undefined;
4276
+ packageSizeId?: number | null | undefined;
4277
+ photoUrls?: string[] | null | undefined;
4278
+ size?: string | null | undefined;
4279
+ sizeId?: number | null | undefined;
4280
+ statusId?: number | null | undefined;
4281
+ title?: string | null | undefined;
4282
+ isDraft?: boolean | null | undefined;
4283
+ isArchived?: boolean | null | undefined;
4284
+ availableQuantity?: number | null | undefined;
4285
+ material?: number[] | null | undefined;
4286
+ manufacturerLabelling?: string | null | undefined;
4287
+ labels?: string[] | null | undefined;
4288
+ };
4289
+ createdAt?: Date | null | undefined;
4290
+ platformUrl?: string | null | undefined;
4291
+ };
4292
+ };
4293
+ } | {
4294
+ type: "LIFECYCLE_COMPLETED";
4295
+ data: {
4296
+ accountId: string;
4297
+ };
4298
+ } | {
4299
+ type: "LIFECYCLE_STARTED";
4300
+ data: {
4301
+ accountId: string;
4302
+ caseId: string;
4303
+ };
4304
+ } | {
4305
+ type: "PUBLISHED";
4306
+ data: {
4307
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4308
+ };
4309
+ } | {
4310
+ type: "REPUBLISHING";
4311
+ data: {
4312
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4313
+ publishingDate?: Date | null | undefined;
4314
+ priceDropPayload?: {
4315
+ value: number;
4316
+ type: "PERCENTAGE" | "ABSOLUTE";
4317
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4318
+ roundStep?: number | null | undefined;
4319
+ maxRounds?: number | null | undefined;
4320
+ } | null | undefined;
4321
+ isTransfer?: boolean | null | undefined;
4322
+ targetAccountId?: string | null | undefined;
4323
+ };
4324
+ } | {
4325
+ type: "REPUBLISHING_RETRY";
4326
+ data: {
4327
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4328
+ attemptNumber: number;
4329
+ maxAttempts: number;
4330
+ previousHistoryId: string;
4331
+ originalFailureDate: Date;
4332
+ fields?: {
4333
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4334
+ autoFixable: boolean;
4335
+ error?: string | null | undefined;
4336
+ }[] | null | undefined;
4337
+ priceDropPayload?: {
4338
+ value: number;
4339
+ type: "PERCENTAGE" | "ABSOLUTE";
4340
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4341
+ roundStep?: number | null | undefined;
4342
+ maxRounds?: number | null | undefined;
4343
+ } | null | undefined;
4344
+ };
4345
+ } | {
4346
+ type: "SCHEDULED";
4347
+ data: {
4348
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4349
+ publishingDate?: Date | null | undefined;
4350
+ };
4351
+ } | {
4352
+ type: "SCHEDULED_RETRY";
4353
+ data: {
4354
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4355
+ attemptNumber: number;
4356
+ maxAttempts: number;
4357
+ previousHistoryId: string;
4358
+ originalFailureDate: Date;
4359
+ fields?: {
4360
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4361
+ autoFixable: boolean;
4362
+ error?: string | null | undefined;
4363
+ }[] | null | undefined;
4364
+ };
4365
+ } | {
4366
+ type: "UPDATED";
4367
+ data: {
4368
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4369
+ };
4370
+ } | {
4371
+ type: "UPDATING";
4372
+ data: {
4373
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4374
+ post?: {
4375
+ status?: string | null | undefined;
4376
+ price?: number | null | undefined;
4377
+ currency?: string | null | undefined;
4378
+ brand?: string | null | undefined;
4379
+ catalog?: string | null | undefined;
4380
+ catalogId?: number | null | undefined;
4381
+ colors?: string[] | null | undefined;
4382
+ colorIds?: number[] | null | undefined;
4383
+ description?: string | null | undefined;
4384
+ measurementLength?: number | null | undefined;
4385
+ measurementWidth?: number | null | undefined;
4386
+ packageSizeId?: number | null | undefined;
4387
+ photoUrls?: string[] | null | undefined;
4388
+ size?: string | null | undefined;
4389
+ sizeId?: number | null | undefined;
4390
+ statusId?: number | null | undefined;
4391
+ title?: string | null | undefined;
4392
+ isDraft?: boolean | null | undefined;
4393
+ isArchived?: boolean | null | undefined;
4394
+ availableQuantity?: number | null | undefined;
4395
+ material?: number[] | null | undefined;
4396
+ manufacturerLabelling?: string | null | undefined;
4397
+ labels?: string[] | null | undefined;
4398
+ } | null | undefined;
4399
+ targetDate?: Date | null | undefined;
4400
+ };
4401
+ } | null | undefined;
4402
+ accountId?: string | null | undefined;
4403
+ requestId?: string | null | undefined;
4404
+ targetDate?: Date | null | undefined;
4405
+ } | null | undefined;
4406
+ platforms?: {
4407
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
4408
+ id: string;
4409
+ updatedAt: Date;
4410
+ createdAt: Date;
4411
+ accountId: string;
4412
+ itemId: string | number;
4413
+ platformId: string;
4414
+ platformUrl: string;
4415
+ platformPrice: number;
4416
+ publishedAt: Date;
4417
+ conversationId?: string | null | undefined;
4418
+ account?: {
4419
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
4420
+ userId: string | number;
4421
+ name: string;
4422
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4423
+ accountId: string;
4424
+ locale?: string | null | undefined;
4425
+ night?: {
4426
+ startsAt: Date;
4427
+ endsAt: Date;
4428
+ } | null | undefined;
4429
+ favoritesMaxDelay?: number | null | undefined;
4430
+ ordersMaxDelay?: number | null | undefined;
4431
+ conversationsMaxDelay?: number | null | undefined;
4432
+ } | null | undefined;
4433
+ viewsCount?: number | null | undefined;
4434
+ favoritesCount?: number | null | undefined;
4435
+ }[] | null | undefined;
4436
+ history?: {
4437
+ 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";
4438
+ id: string;
4439
+ createdAt: Date;
4440
+ itemId: string | number;
4441
+ data?: {
4442
+ type: "ACTION_CANCELED";
4443
+ data: {
4444
+ targetItemHistoryId: string;
4445
+ };
4446
+ } | {
4447
+ type: "BUYER_PAID";
4448
+ data: {
4449
+ soldAccountId: string;
4450
+ soldOrderId: string;
4451
+ soldConversationId?: string | null | undefined;
4452
+ };
4453
+ } | {
4454
+ type: "DELIVERED";
4455
+ data: {
4456
+ soldAccountId: string;
4457
+ soldOrderId: string;
4458
+ soldConversationId?: string | null | undefined;
4459
+ };
4460
+ } | {
4461
+ type: "EMPTY";
4462
+ } | {
4463
+ type: "FAILED_TO_PUBLISH";
4464
+ data: {
4465
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4466
+ accountId?: string | null | undefined;
4467
+ reason?: string | null | undefined;
4468
+ fields?: {
4469
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4470
+ autoFixable: boolean;
4471
+ error?: string | null | undefined;
4472
+ }[] | null | undefined;
4473
+ itemHistoryId?: string | null | undefined;
4474
+ };
4475
+ } | {
4476
+ type: "IMAGE_PROCESSING_DONE";
4477
+ data: {
4478
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4479
+ variations?: {
1962
4480
  fileId: string;
1963
4481
  seed: number;
1964
4482
  phash: string;
@@ -2074,42 +4592,50 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
2074
4592
  error?: string | null | undefined;
2075
4593
  }[] | null | undefined;
2076
4594
  };
4595
+ } | {
4596
+ type: "UPDATED";
4597
+ data: {
4598
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4599
+ };
4600
+ } | {
4601
+ type: "UPDATING";
4602
+ data: {
4603
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4604
+ post?: {
4605
+ status?: string | null | undefined;
4606
+ price?: number | null | undefined;
4607
+ currency?: string | null | undefined;
4608
+ brand?: string | null | undefined;
4609
+ catalog?: string | null | undefined;
4610
+ catalogId?: number | null | undefined;
4611
+ colors?: string[] | null | undefined;
4612
+ colorIds?: number[] | null | undefined;
4613
+ description?: string | null | undefined;
4614
+ measurementLength?: number | null | undefined;
4615
+ measurementWidth?: number | null | undefined;
4616
+ packageSizeId?: number | null | undefined;
4617
+ photoUrls?: string[] | null | undefined;
4618
+ size?: string | null | undefined;
4619
+ sizeId?: number | null | undefined;
4620
+ statusId?: number | null | undefined;
4621
+ title?: string | null | undefined;
4622
+ isDraft?: boolean | null | undefined;
4623
+ isArchived?: boolean | null | undefined;
4624
+ availableQuantity?: number | null | undefined;
4625
+ material?: number[] | null | undefined;
4626
+ manufacturerLabelling?: string | null | undefined;
4627
+ labels?: string[] | null | undefined;
4628
+ } | null | undefined;
4629
+ targetDate?: Date | null | undefined;
4630
+ };
2077
4631
  } | null | undefined;
2078
4632
  accountId?: string | null | undefined;
2079
4633
  requestId?: string | null | undefined;
2080
4634
  targetDate?: Date | null | undefined;
2081
- } | null | undefined;
2082
- platforms?: {
2083
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2084
- id: string;
2085
- updatedAt: Date;
2086
- createdAt: Date;
2087
- accountId: string;
2088
- itemId: string | number;
2089
- platformId: string;
2090
- platformUrl: string;
2091
- platformPrice: number;
2092
- publishedAt: Date;
2093
- conversationId?: string | null | undefined;
2094
- account?: {
2095
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
2096
- userId: string | number;
2097
- name: string;
2098
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2099
- accountId: string;
2100
- locale?: string | null | undefined;
2101
- night?: {
2102
- startsAt: Date;
2103
- endsAt: Date;
2104
- } | null | undefined;
2105
- favoritesMaxDelay?: number | null | undefined;
2106
- ordersMaxDelay?: number | null | undefined;
2107
- conversationsMaxDelay?: number | null | undefined;
2108
- } | null | undefined;
2109
- viewsCount?: number | null | undefined;
2110
- favoritesCount?: number | null | undefined;
2111
4635
  }[] | null | undefined;
2112
- }, {
4636
+ }>, "many">;
4637
+ }, "strip", z.ZodTypeAny, {
4638
+ items: {
2113
4639
  userId: string | number;
2114
4640
  id: string | number;
2115
4641
  updatedAt: Date;
@@ -2358,134 +4884,78 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
2358
4884
  error?: string | null | undefined;
2359
4885
  }[] | null | undefined;
2360
4886
  };
4887
+ } | {
4888
+ type: "UPDATED";
4889
+ data: {
4890
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4891
+ };
4892
+ } | {
4893
+ type: "UPDATING";
4894
+ data: {
4895
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4896
+ post?: {
4897
+ status?: string | null | undefined;
4898
+ price?: number | null | undefined;
4899
+ currency?: string | null | undefined;
4900
+ brand?: string | null | undefined;
4901
+ catalog?: string | null | undefined;
4902
+ catalogId?: number | null | undefined;
4903
+ colors?: string[] | null | undefined;
4904
+ colorIds?: number[] | null | undefined;
4905
+ description?: string | null | undefined;
4906
+ measurementLength?: number | null | undefined;
4907
+ measurementWidth?: number | null | undefined;
4908
+ packageSizeId?: number | null | undefined;
4909
+ photoUrls?: string[] | null | undefined;
4910
+ size?: string | null | undefined;
4911
+ sizeId?: number | null | undefined;
4912
+ statusId?: number | null | undefined;
4913
+ title?: string | null | undefined;
4914
+ isDraft?: boolean | null | undefined;
4915
+ isArchived?: boolean | null | undefined;
4916
+ availableQuantity?: number | null | undefined;
4917
+ material?: number[] | null | undefined;
4918
+ manufacturerLabelling?: string | null | undefined;
4919
+ labels?: string[] | null | undefined;
4920
+ } | null | undefined;
4921
+ targetDate?: Date | null | undefined;
4922
+ };
2361
4923
  } | null | undefined;
2362
4924
  accountId?: string | null | undefined;
2363
4925
  requestId?: string | null | undefined;
2364
4926
  targetDate?: Date | null | undefined;
2365
4927
  } | 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";
2383
- accountId: string;
2384
- locale?: string | null | undefined;
2385
- night?: {
2386
- startsAt: Date;
2387
- endsAt: Date;
2388
- } | null | undefined;
2389
- favoritesMaxDelay?: number | null | undefined;
2390
- ordersMaxDelay?: number | null | undefined;
2391
- conversationsMaxDelay?: number | null | undefined;
2392
- } | null | undefined;
2393
- viewsCount?: number | null | undefined;
2394
- favoritesCount?: number | null | undefined;
2395
- }[] | null | undefined;
2396
- }>, "many">;
2397
- }, "strip", z.ZodTypeAny, {
2398
- items: {
2399
- userId: string | number;
2400
- id: string | number;
2401
- updatedAt: Date;
2402
- name: string;
2403
- createdAt: Date;
2404
- sold: boolean;
2405
- state?: number | null | undefined;
2406
- colorIds?: number[] | null | undefined;
2407
- description?: string | null | undefined;
2408
- packageSizeId?: number | null | undefined;
2409
- sizeId?: number | null | undefined;
2410
- labels?: {
2411
- itemId: string | number;
2412
- labelId: string | number;
2413
- label?: {
2414
- id: string | number;
2415
- name: string;
2416
- createdAt: Date;
2417
- isUserLabel: boolean;
2418
- userId?: string | number | null | undefined;
2419
- itemCount?: number | null | undefined;
2420
- parentId?: unknown;
2421
- } | null | undefined;
2422
- }[] | null | undefined;
2423
- files?: {
2424
- itemId: string | number;
2425
- fileId: string;
2426
- index?: number | null | undefined;
2427
- file?: {
2428
- path: string;
2429
- userId: string | number;
2430
- id: string;
2431
- createdAt: Date;
2432
- signedUrl: string;
2433
- } | null | undefined;
2434
- }[] | null | undefined;
2435
- fields?: {
2436
- value: string;
2437
- itemId: string | number;
2438
- fieldId: string | number;
2439
- }[] | null | undefined;
2440
- sku?: string | null | undefined;
2441
- categoryId?: number | null | undefined;
2442
- brandId?: string | number | null | undefined;
2443
- sex?: string | null | undefined;
2444
- purchasePrice?: number | null | undefined;
2445
- purchaseDate?: Date | null | undefined;
2446
- purchasePlaceId?: string | number | null | undefined;
2447
- purchased?: boolean | null | undefined;
2448
- sellingPrice?: number | null | undefined;
2449
- sellingDate?: Date | null | undefined;
2450
- sellingPlaceId?: string | number | null | undefined;
2451
- estimatedPrice?: number | null | undefined;
2452
- fees?: {
2453
- value: number;
2454
- type: string;
2455
- userId: string | number;
2456
- id: string | number;
2457
- updatedAt: Date;
2458
- name: string;
2459
- createdAt: Date;
2460
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
2461
- startDate: Date;
2462
- active: boolean;
2463
- description?: string | null | undefined;
2464
- itemId?: string | number | null | undefined;
2465
- endDate?: Date | null | undefined;
2466
- parentFeeId?: string | number | null | undefined;
2467
- }[] | null | undefined;
2468
- feesSum?: number | null | undefined;
2469
- customerId?: string | number | null | undefined;
2470
- customer?: {
2471
- userId: string | number;
2472
- id: string | number;
2473
- email: string;
2474
- firstName: string;
2475
- lastName: string;
2476
- birthDate: Date;
2477
- idNumber: string;
2478
- phone: string;
2479
- iban: string;
2480
- bic: string;
2481
- phoneVerified: boolean;
2482
- } | null | undefined;
2483
- customerType?: string | null | undefined;
2484
- customerPaid?: boolean | null | undefined;
2485
- customerPaidDate?: Date | null | undefined;
2486
- customerPaidType?: string | null | undefined;
2487
- contractId?: string | number | null | undefined;
2488
- lastHistory?: {
4928
+ platforms?: {
4929
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
4930
+ id: string;
4931
+ updatedAt: Date;
4932
+ createdAt: Date;
4933
+ accountId: string;
4934
+ itemId: string | number;
4935
+ platformId: string;
4936
+ platformUrl: string;
4937
+ platformPrice: number;
4938
+ publishedAt: Date;
4939
+ conversationId?: string | null | undefined;
4940
+ account?: {
4941
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
4942
+ userId: string | number;
4943
+ name: string;
4944
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4945
+ accountId: string;
4946
+ locale?: string | null | undefined;
4947
+ night?: {
4948
+ startsAt: Date;
4949
+ endsAt: Date;
4950
+ } | null | undefined;
4951
+ favoritesMaxDelay?: number | null | undefined;
4952
+ ordersMaxDelay?: number | null | undefined;
4953
+ conversationsMaxDelay?: number | null | undefined;
4954
+ } | null | undefined;
4955
+ viewsCount?: number | null | undefined;
4956
+ favoritesCount?: number | null | undefined;
4957
+ }[] | null | undefined;
4958
+ history?: {
2489
4959
  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";
2490
4960
  id: string;
2491
4961
  createdAt: Date;
@@ -2644,40 +5114,46 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
2644
5114
  error?: string | null | undefined;
2645
5115
  }[] | null | undefined;
2646
5116
  };
5117
+ } | {
5118
+ type: "UPDATED";
5119
+ data: {
5120
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5121
+ };
5122
+ } | {
5123
+ type: "UPDATING";
5124
+ data: {
5125
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5126
+ post?: {
5127
+ status?: string | null | undefined;
5128
+ price?: number | null | undefined;
5129
+ currency?: string | null | undefined;
5130
+ brand?: string | null | undefined;
5131
+ catalog?: string | null | undefined;
5132
+ catalogId?: number | null | undefined;
5133
+ colors?: string[] | null | undefined;
5134
+ colorIds?: number[] | null | undefined;
5135
+ description?: string | null | undefined;
5136
+ measurementLength?: number | null | undefined;
5137
+ measurementWidth?: number | null | undefined;
5138
+ packageSizeId?: number | null | undefined;
5139
+ photoUrls?: string[] | null | undefined;
5140
+ size?: string | null | undefined;
5141
+ sizeId?: number | null | undefined;
5142
+ statusId?: number | null | undefined;
5143
+ title?: string | null | undefined;
5144
+ isDraft?: boolean | null | undefined;
5145
+ isArchived?: boolean | null | undefined;
5146
+ availableQuantity?: number | null | undefined;
5147
+ material?: number[] | null | undefined;
5148
+ manufacturerLabelling?: string | null | undefined;
5149
+ labels?: string[] | null | undefined;
5150
+ } | null | undefined;
5151
+ targetDate?: Date | null | undefined;
5152
+ };
2647
5153
  } | null | undefined;
2648
5154
  accountId?: string | null | undefined;
2649
5155
  requestId?: string | null | undefined;
2650
5156
  targetDate?: Date | null | undefined;
2651
- } | null | undefined;
2652
- platforms?: {
2653
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2654
- id: string;
2655
- updatedAt: Date;
2656
- createdAt: Date;
2657
- accountId: string;
2658
- itemId: string | number;
2659
- platformId: string;
2660
- platformUrl: string;
2661
- platformPrice: number;
2662
- publishedAt: Date;
2663
- conversationId?: string | null | undefined;
2664
- account?: {
2665
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
2666
- userId: string | number;
2667
- name: string;
2668
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2669
- accountId: string;
2670
- locale?: string | null | undefined;
2671
- night?: {
2672
- startsAt: Date;
2673
- endsAt: Date;
2674
- } | null | undefined;
2675
- favoritesMaxDelay?: number | null | undefined;
2676
- ordersMaxDelay?: number | null | undefined;
2677
- conversationsMaxDelay?: number | null | undefined;
2678
- } | null | undefined;
2679
- viewsCount?: number | null | undefined;
2680
- favoritesCount?: number | null | undefined;
2681
5157
  }[] | null | undefined;
2682
5158
  }[];
2683
5159
  transaction: {
@@ -2973,6 +5449,42 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
2973
5449
  error?: string | null | undefined;
2974
5450
  }[] | null | undefined;
2975
5451
  };
5452
+ } | {
5453
+ type: "UPDATED";
5454
+ data: {
5455
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5456
+ };
5457
+ } | {
5458
+ type: "UPDATING";
5459
+ data: {
5460
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5461
+ post?: {
5462
+ status?: string | null | undefined;
5463
+ price?: number | null | undefined;
5464
+ currency?: string | null | undefined;
5465
+ brand?: string | null | undefined;
5466
+ catalog?: string | null | undefined;
5467
+ catalogId?: number | null | undefined;
5468
+ colors?: string[] | null | undefined;
5469
+ colorIds?: number[] | null | undefined;
5470
+ description?: string | null | undefined;
5471
+ measurementLength?: number | null | undefined;
5472
+ measurementWidth?: number | null | undefined;
5473
+ packageSizeId?: number | null | undefined;
5474
+ photoUrls?: string[] | null | undefined;
5475
+ size?: string | null | undefined;
5476
+ sizeId?: number | null | undefined;
5477
+ statusId?: number | null | undefined;
5478
+ title?: string | null | undefined;
5479
+ isDraft?: boolean | null | undefined;
5480
+ isArchived?: boolean | null | undefined;
5481
+ availableQuantity?: number | null | undefined;
5482
+ material?: number[] | null | undefined;
5483
+ manufacturerLabelling?: string | null | undefined;
5484
+ labels?: string[] | null | undefined;
5485
+ } | null | undefined;
5486
+ targetDate?: Date | null | undefined;
5487
+ };
2976
5488
  } | null | undefined;
2977
5489
  accountId?: string | null | undefined;
2978
5490
  requestId?: string | null | undefined;
@@ -3008,6 +5520,206 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
3008
5520
  viewsCount?: number | null | undefined;
3009
5521
  favoritesCount?: number | null | undefined;
3010
5522
  }[] | null | undefined;
5523
+ history?: {
5524
+ 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";
5525
+ id: string;
5526
+ createdAt: Date;
5527
+ itemId: string | number;
5528
+ data?: {
5529
+ type: "ACTION_CANCELED";
5530
+ data: {
5531
+ targetItemHistoryId: string;
5532
+ };
5533
+ } | {
5534
+ type: "BUYER_PAID";
5535
+ data: {
5536
+ soldAccountId: string;
5537
+ soldOrderId: string;
5538
+ soldConversationId?: string | null | undefined;
5539
+ };
5540
+ } | {
5541
+ type: "DELIVERED";
5542
+ data: {
5543
+ soldAccountId: string;
5544
+ soldOrderId: string;
5545
+ soldConversationId?: string | null | undefined;
5546
+ };
5547
+ } | {
5548
+ type: "EMPTY";
5549
+ } | {
5550
+ type: "FAILED_TO_PUBLISH";
5551
+ data: {
5552
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5553
+ accountId?: string | null | undefined;
5554
+ reason?: string | null | undefined;
5555
+ fields?: {
5556
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
5557
+ autoFixable: boolean;
5558
+ error?: string | null | undefined;
5559
+ }[] | null | undefined;
5560
+ itemHistoryId?: string | null | undefined;
5561
+ };
5562
+ } | {
5563
+ type: "IMAGE_PROCESSING_DONE";
5564
+ data: {
5565
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5566
+ variations?: {
5567
+ fileId: string;
5568
+ seed: number;
5569
+ phash: string;
5570
+ distanceOriginal: number;
5571
+ originalImageUrl: string;
5572
+ originalPhash: string;
5573
+ }[] | null | undefined;
5574
+ originalPhashes?: string[] | null | undefined;
5575
+ };
5576
+ } | {
5577
+ type: "IMPORTED";
5578
+ data: {
5579
+ post: {
5580
+ platformId: string;
5581
+ post: {
5582
+ status?: string | null | undefined;
5583
+ price?: number | null | undefined;
5584
+ currency?: string | null | undefined;
5585
+ brand?: string | null | undefined;
5586
+ catalog?: string | null | undefined;
5587
+ catalogId?: number | null | undefined;
5588
+ colors?: string[] | null | undefined;
5589
+ colorIds?: number[] | null | undefined;
5590
+ description?: string | null | undefined;
5591
+ measurementLength?: number | null | undefined;
5592
+ measurementWidth?: number | null | undefined;
5593
+ packageSizeId?: number | null | undefined;
5594
+ photoUrls?: string[] | null | undefined;
5595
+ size?: string | null | undefined;
5596
+ sizeId?: number | null | undefined;
5597
+ statusId?: number | null | undefined;
5598
+ title?: string | null | undefined;
5599
+ isDraft?: boolean | null | undefined;
5600
+ isArchived?: boolean | null | undefined;
5601
+ availableQuantity?: number | null | undefined;
5602
+ material?: number[] | null | undefined;
5603
+ manufacturerLabelling?: string | null | undefined;
5604
+ labels?: string[] | null | undefined;
5605
+ };
5606
+ createdAt?: Date | null | undefined;
5607
+ platformUrl?: string | null | undefined;
5608
+ };
5609
+ };
5610
+ } | {
5611
+ type: "LIFECYCLE_COMPLETED";
5612
+ data: {
5613
+ accountId: string;
5614
+ };
5615
+ } | {
5616
+ type: "LIFECYCLE_STARTED";
5617
+ data: {
5618
+ accountId: string;
5619
+ caseId: string;
5620
+ };
5621
+ } | {
5622
+ type: "PUBLISHED";
5623
+ data: {
5624
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5625
+ };
5626
+ } | {
5627
+ type: "REPUBLISHING";
5628
+ data: {
5629
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5630
+ publishingDate?: Date | null | undefined;
5631
+ priceDropPayload?: {
5632
+ value: number;
5633
+ type: "PERCENTAGE" | "ABSOLUTE";
5634
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
5635
+ roundStep?: number | null | undefined;
5636
+ maxRounds?: number | null | undefined;
5637
+ } | null | undefined;
5638
+ isTransfer?: boolean | null | undefined;
5639
+ targetAccountId?: string | null | undefined;
5640
+ };
5641
+ } | {
5642
+ type: "REPUBLISHING_RETRY";
5643
+ data: {
5644
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5645
+ attemptNumber: number;
5646
+ maxAttempts: number;
5647
+ previousHistoryId: string;
5648
+ originalFailureDate: Date;
5649
+ fields?: {
5650
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
5651
+ autoFixable: boolean;
5652
+ error?: string | null | undefined;
5653
+ }[] | null | undefined;
5654
+ priceDropPayload?: {
5655
+ value: number;
5656
+ type: "PERCENTAGE" | "ABSOLUTE";
5657
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
5658
+ roundStep?: number | null | undefined;
5659
+ maxRounds?: number | null | undefined;
5660
+ } | null | undefined;
5661
+ };
5662
+ } | {
5663
+ type: "SCHEDULED";
5664
+ data: {
5665
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5666
+ publishingDate?: Date | null | undefined;
5667
+ };
5668
+ } | {
5669
+ type: "SCHEDULED_RETRY";
5670
+ data: {
5671
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5672
+ attemptNumber: number;
5673
+ maxAttempts: number;
5674
+ previousHistoryId: string;
5675
+ originalFailureDate: Date;
5676
+ fields?: {
5677
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
5678
+ autoFixable: boolean;
5679
+ error?: string | null | undefined;
5680
+ }[] | null | undefined;
5681
+ };
5682
+ } | {
5683
+ type: "UPDATED";
5684
+ data: {
5685
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5686
+ };
5687
+ } | {
5688
+ type: "UPDATING";
5689
+ data: {
5690
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5691
+ post?: {
5692
+ status?: string | null | undefined;
5693
+ price?: number | null | undefined;
5694
+ currency?: string | null | undefined;
5695
+ brand?: string | null | undefined;
5696
+ catalog?: string | null | undefined;
5697
+ catalogId?: number | null | undefined;
5698
+ colors?: string[] | null | undefined;
5699
+ colorIds?: number[] | null | undefined;
5700
+ description?: string | null | undefined;
5701
+ measurementLength?: number | null | undefined;
5702
+ measurementWidth?: number | null | undefined;
5703
+ packageSizeId?: number | null | undefined;
5704
+ photoUrls?: string[] | null | undefined;
5705
+ size?: string | null | undefined;
5706
+ sizeId?: number | null | undefined;
5707
+ statusId?: number | null | undefined;
5708
+ title?: string | null | undefined;
5709
+ isDraft?: boolean | null | undefined;
5710
+ isArchived?: boolean | null | undefined;
5711
+ availableQuantity?: number | null | undefined;
5712
+ material?: number[] | null | undefined;
5713
+ manufacturerLabelling?: string | null | undefined;
5714
+ labels?: string[] | null | undefined;
5715
+ } | null | undefined;
5716
+ targetDate?: Date | null | undefined;
5717
+ };
5718
+ } | null | undefined;
5719
+ accountId?: string | null | undefined;
5720
+ requestId?: string | null | undefined;
5721
+ targetDate?: Date | null | undefined;
5722
+ }[] | null | undefined;
3011
5723
  }[];
3012
5724
  transaction: {
3013
5725
  id: string;