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
@@ -1085,6 +1085,222 @@ export declare const ItemUpdateSchema: z.ZodObject<{
1085
1085
  error?: string | null | undefined;
1086
1086
  }[] | null | undefined;
1087
1087
  };
1088
+ }>, z.ZodObject<{
1089
+ data: z.ZodObject<{
1090
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1091
+ }, "strip", z.ZodTypeAny, {
1092
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1093
+ }, {
1094
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1095
+ }>;
1096
+ type: z.ZodLiteral<"UPDATED">;
1097
+ }, "strip", z.ZodTypeAny, {
1098
+ type: "UPDATED";
1099
+ data: {
1100
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1101
+ };
1102
+ }, {
1103
+ type: "UPDATED";
1104
+ data: {
1105
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1106
+ };
1107
+ }>, z.ZodObject<{
1108
+ data: z.ZodObject<{
1109
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1110
+ post: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1111
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1112
+ catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1113
+ catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1114
+ colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1115
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1116
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1117
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1118
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1119
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1120
+ photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1121
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1122
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1123
+ size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1124
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1125
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1126
+ statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1127
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1128
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1129
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1130
+ availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1131
+ material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1132
+ manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1133
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1134
+ }, "strip", z.ZodTypeAny, {
1135
+ status?: string | null | undefined;
1136
+ price?: number | null | undefined;
1137
+ currency?: string | null | undefined;
1138
+ brand?: string | null | undefined;
1139
+ catalog?: string | null | undefined;
1140
+ catalogId?: number | null | undefined;
1141
+ colors?: string[] | null | undefined;
1142
+ colorIds?: number[] | null | undefined;
1143
+ description?: string | null | undefined;
1144
+ measurementLength?: number | null | undefined;
1145
+ measurementWidth?: number | null | undefined;
1146
+ packageSizeId?: number | null | undefined;
1147
+ photoUrls?: string[] | null | undefined;
1148
+ size?: string | null | undefined;
1149
+ sizeId?: number | null | undefined;
1150
+ statusId?: number | null | undefined;
1151
+ title?: string | null | undefined;
1152
+ isDraft?: boolean | null | undefined;
1153
+ isArchived?: boolean | null | undefined;
1154
+ availableQuantity?: number | null | undefined;
1155
+ material?: number[] | null | undefined;
1156
+ manufacturerLabelling?: string | null | undefined;
1157
+ labels?: string[] | null | undefined;
1158
+ }, {
1159
+ status?: string | null | undefined;
1160
+ price?: number | null | undefined;
1161
+ currency?: string | null | undefined;
1162
+ brand?: string | null | undefined;
1163
+ catalog?: string | null | undefined;
1164
+ catalogId?: number | null | undefined;
1165
+ colors?: string[] | null | undefined;
1166
+ colorIds?: number[] | null | undefined;
1167
+ description?: string | null | undefined;
1168
+ measurementLength?: number | null | undefined;
1169
+ measurementWidth?: number | null | undefined;
1170
+ packageSizeId?: number | null | undefined;
1171
+ photoUrls?: string[] | null | undefined;
1172
+ size?: string | null | undefined;
1173
+ sizeId?: number | null | undefined;
1174
+ statusId?: number | null | undefined;
1175
+ title?: string | null | undefined;
1176
+ isDraft?: boolean | null | undefined;
1177
+ isArchived?: boolean | null | undefined;
1178
+ availableQuantity?: number | null | undefined;
1179
+ material?: number[] | null | undefined;
1180
+ manufacturerLabelling?: string | null | undefined;
1181
+ labels?: string[] | null | undefined;
1182
+ }>>>;
1183
+ targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1184
+ }, "strip", z.ZodTypeAny, {
1185
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1186
+ post?: {
1187
+ status?: string | null | undefined;
1188
+ price?: number | null | undefined;
1189
+ currency?: string | null | undefined;
1190
+ brand?: string | null | undefined;
1191
+ catalog?: string | null | undefined;
1192
+ catalogId?: number | null | undefined;
1193
+ colors?: string[] | null | undefined;
1194
+ colorIds?: number[] | null | undefined;
1195
+ description?: string | null | undefined;
1196
+ measurementLength?: number | null | undefined;
1197
+ measurementWidth?: number | null | undefined;
1198
+ packageSizeId?: number | null | undefined;
1199
+ photoUrls?: string[] | null | undefined;
1200
+ size?: string | null | undefined;
1201
+ sizeId?: number | null | undefined;
1202
+ statusId?: number | null | undefined;
1203
+ title?: string | null | undefined;
1204
+ isDraft?: boolean | null | undefined;
1205
+ isArchived?: boolean | null | undefined;
1206
+ availableQuantity?: number | null | undefined;
1207
+ material?: number[] | null | undefined;
1208
+ manufacturerLabelling?: string | null | undefined;
1209
+ labels?: string[] | null | undefined;
1210
+ } | null | undefined;
1211
+ targetDate?: Date | null | undefined;
1212
+ }, {
1213
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1214
+ post?: {
1215
+ status?: string | null | undefined;
1216
+ price?: number | null | undefined;
1217
+ currency?: string | null | undefined;
1218
+ brand?: string | null | undefined;
1219
+ catalog?: string | null | undefined;
1220
+ catalogId?: number | null | undefined;
1221
+ colors?: string[] | null | undefined;
1222
+ colorIds?: number[] | null | undefined;
1223
+ description?: string | null | undefined;
1224
+ measurementLength?: number | null | undefined;
1225
+ measurementWidth?: number | null | undefined;
1226
+ packageSizeId?: number | null | undefined;
1227
+ photoUrls?: string[] | null | undefined;
1228
+ size?: string | null | undefined;
1229
+ sizeId?: number | null | undefined;
1230
+ statusId?: number | null | undefined;
1231
+ title?: string | null | undefined;
1232
+ isDraft?: boolean | null | undefined;
1233
+ isArchived?: boolean | null | undefined;
1234
+ availableQuantity?: number | null | undefined;
1235
+ material?: number[] | null | undefined;
1236
+ manufacturerLabelling?: string | null | undefined;
1237
+ labels?: string[] | null | undefined;
1238
+ } | null | undefined;
1239
+ targetDate?: Date | null | undefined;
1240
+ }>;
1241
+ type: z.ZodLiteral<"UPDATING">;
1242
+ }, "strip", z.ZodTypeAny, {
1243
+ type: "UPDATING";
1244
+ data: {
1245
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1246
+ post?: {
1247
+ status?: string | null | undefined;
1248
+ price?: number | null | undefined;
1249
+ currency?: string | null | undefined;
1250
+ brand?: string | null | undefined;
1251
+ catalog?: string | null | undefined;
1252
+ catalogId?: number | null | undefined;
1253
+ colors?: string[] | null | undefined;
1254
+ colorIds?: number[] | null | undefined;
1255
+ description?: string | null | undefined;
1256
+ measurementLength?: number | null | undefined;
1257
+ measurementWidth?: number | null | undefined;
1258
+ packageSizeId?: number | null | undefined;
1259
+ photoUrls?: string[] | null | undefined;
1260
+ size?: string | null | undefined;
1261
+ sizeId?: number | null | undefined;
1262
+ statusId?: number | null | undefined;
1263
+ title?: string | null | undefined;
1264
+ isDraft?: boolean | null | undefined;
1265
+ isArchived?: boolean | null | undefined;
1266
+ availableQuantity?: number | null | undefined;
1267
+ material?: number[] | null | undefined;
1268
+ manufacturerLabelling?: string | null | undefined;
1269
+ labels?: string[] | null | undefined;
1270
+ } | null | undefined;
1271
+ targetDate?: Date | null | undefined;
1272
+ };
1273
+ }, {
1274
+ type: "UPDATING";
1275
+ data: {
1276
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1277
+ post?: {
1278
+ status?: string | null | undefined;
1279
+ price?: number | null | undefined;
1280
+ currency?: string | null | undefined;
1281
+ brand?: string | null | undefined;
1282
+ catalog?: string | null | undefined;
1283
+ catalogId?: number | null | undefined;
1284
+ colors?: string[] | null | undefined;
1285
+ colorIds?: number[] | null | undefined;
1286
+ description?: string | null | undefined;
1287
+ measurementLength?: number | null | undefined;
1288
+ measurementWidth?: number | null | undefined;
1289
+ packageSizeId?: number | null | undefined;
1290
+ photoUrls?: string[] | null | undefined;
1291
+ size?: string | null | undefined;
1292
+ sizeId?: number | null | undefined;
1293
+ statusId?: number | null | undefined;
1294
+ title?: string | null | undefined;
1295
+ isDraft?: boolean | null | undefined;
1296
+ isArchived?: boolean | null | undefined;
1297
+ availableQuantity?: number | null | undefined;
1298
+ material?: number[] | null | undefined;
1299
+ manufacturerLabelling?: string | null | undefined;
1300
+ labels?: string[] | null | undefined;
1301
+ } | null | undefined;
1302
+ targetDate?: Date | null | undefined;
1303
+ };
1088
1304
  }>]>>>;
1089
1305
  createdAt: z.ZodDate;
1090
1306
  targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -1249,6 +1465,42 @@ export declare const ItemUpdateSchema: z.ZodObject<{
1249
1465
  error?: string | null | undefined;
1250
1466
  }[] | null | undefined;
1251
1467
  };
1468
+ } | {
1469
+ type: "UPDATED";
1470
+ data: {
1471
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1472
+ };
1473
+ } | {
1474
+ type: "UPDATING";
1475
+ data: {
1476
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1477
+ post?: {
1478
+ status?: string | null | undefined;
1479
+ price?: number | null | undefined;
1480
+ currency?: string | null | undefined;
1481
+ brand?: string | null | undefined;
1482
+ catalog?: string | null | undefined;
1483
+ catalogId?: number | null | undefined;
1484
+ colors?: string[] | null | undefined;
1485
+ colorIds?: number[] | null | undefined;
1486
+ description?: string | null | undefined;
1487
+ measurementLength?: number | null | undefined;
1488
+ measurementWidth?: number | null | undefined;
1489
+ packageSizeId?: number | null | undefined;
1490
+ photoUrls?: string[] | null | undefined;
1491
+ size?: string | null | undefined;
1492
+ sizeId?: number | null | undefined;
1493
+ statusId?: number | null | undefined;
1494
+ title?: string | null | undefined;
1495
+ isDraft?: boolean | null | undefined;
1496
+ isArchived?: boolean | null | undefined;
1497
+ availableQuantity?: number | null | undefined;
1498
+ material?: number[] | null | undefined;
1499
+ manufacturerLabelling?: string | null | undefined;
1500
+ labels?: string[] | null | undefined;
1501
+ } | null | undefined;
1502
+ targetDate?: Date | null | undefined;
1503
+ };
1252
1504
  } | null | undefined;
1253
1505
  accountId?: string | null | undefined;
1254
1506
  requestId?: string | null | undefined;
@@ -1412,6 +1664,42 @@ export declare const ItemUpdateSchema: z.ZodObject<{
1412
1664
  error?: string | null | undefined;
1413
1665
  }[] | null | undefined;
1414
1666
  };
1667
+ } | {
1668
+ type: "UPDATED";
1669
+ data: {
1670
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1671
+ };
1672
+ } | {
1673
+ type: "UPDATING";
1674
+ data: {
1675
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1676
+ post?: {
1677
+ status?: string | null | undefined;
1678
+ price?: number | null | undefined;
1679
+ currency?: string | null | undefined;
1680
+ brand?: string | null | undefined;
1681
+ catalog?: string | null | undefined;
1682
+ catalogId?: number | null | undefined;
1683
+ colors?: string[] | null | undefined;
1684
+ colorIds?: number[] | null | undefined;
1685
+ description?: string | null | undefined;
1686
+ measurementLength?: number | null | undefined;
1687
+ measurementWidth?: number | null | undefined;
1688
+ packageSizeId?: number | null | undefined;
1689
+ photoUrls?: string[] | null | undefined;
1690
+ size?: string | null | undefined;
1691
+ sizeId?: number | null | undefined;
1692
+ statusId?: number | null | undefined;
1693
+ title?: string | null | undefined;
1694
+ isDraft?: boolean | null | undefined;
1695
+ isArchived?: boolean | null | undefined;
1696
+ availableQuantity?: number | null | undefined;
1697
+ material?: number[] | null | undefined;
1698
+ manufacturerLabelling?: string | null | undefined;
1699
+ labels?: string[] | null | undefined;
1700
+ } | null | undefined;
1701
+ targetDate?: Date | null | undefined;
1702
+ };
1415
1703
  } | null | undefined;
1416
1704
  accountId?: string | null | undefined;
1417
1705
  requestId?: string | null | undefined;
@@ -1539,127 +1827,113 @@ export declare const ItemUpdateSchema: z.ZodObject<{
1539
1827
  viewsCount?: number | null | undefined;
1540
1828
  favoritesCount?: number | null | undefined;
1541
1829
  }>, "many">>>;
1542
- createdAt: z.ZodDate;
1543
- updatedAt: z.ZodDate;
1544
- }, "strip", z.ZodTypeAny, {
1545
- userId: string | number;
1546
- id: string | number;
1547
- updatedAt: Date;
1548
- name: string;
1549
- createdAt: Date;
1550
- sold: boolean;
1551
- state?: number | null | undefined;
1552
- colorIds?: number[] | null | undefined;
1553
- description?: string | null | undefined;
1554
- packageSizeId?: number | null | undefined;
1555
- sizeId?: number | null | undefined;
1556
- labels?: {
1557
- itemId: string | number;
1558
- labelId: string | number;
1559
- label?: {
1560
- id: string | number;
1561
- name: string;
1562
- createdAt: Date;
1563
- isUserLabel: boolean;
1564
- userId?: string | number | null | undefined;
1565
- itemCount?: number | null | undefined;
1566
- parentId?: unknown;
1567
- } | null | undefined;
1568
- }[] | null | undefined;
1569
- files?: {
1570
- itemId: string | number;
1571
- fileId: string;
1572
- index?: number | null | undefined;
1573
- file?: {
1574
- path: string;
1575
- userId: string | number;
1576
- id: string;
1577
- createdAt: Date;
1578
- signedUrl: string;
1579
- } | null | undefined;
1580
- }[] | null | undefined;
1581
- fields?: {
1582
- value: string;
1583
- itemId: string | number;
1584
- fieldId: string | number;
1585
- }[] | null | undefined;
1586
- sku?: string | null | undefined;
1587
- categoryId?: number | null | undefined;
1588
- brandId?: string | number | null | undefined;
1589
- sex?: string | null | undefined;
1590
- purchasePrice?: number | null | undefined;
1591
- purchaseDate?: Date | null | undefined;
1592
- purchasePlaceId?: string | number | null | undefined;
1593
- purchased?: boolean | null | undefined;
1594
- sellingPrice?: number | null | undefined;
1595
- sellingDate?: Date | null | undefined;
1596
- sellingPlaceId?: string | number | null | undefined;
1597
- estimatedPrice?: number | null | undefined;
1598
- fees?: {
1599
- value: number;
1600
- type: string;
1601
- userId: string | number;
1602
- id: string | number;
1603
- updatedAt: Date;
1604
- name: string;
1605
- createdAt: Date;
1606
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1607
- startDate: Date;
1608
- active: boolean;
1609
- description?: string | null | undefined;
1610
- itemId?: string | number | null | undefined;
1611
- endDate?: Date | null | undefined;
1612
- parentFeeId?: string | number | null | undefined;
1613
- }[] | null | undefined;
1614
- feesSum?: number | null | undefined;
1615
- customerId?: string | number | null | undefined;
1616
- customer?: {
1617
- userId: string | number;
1618
- id: string | number;
1619
- email: string;
1620
- firstName: string;
1621
- lastName: string;
1622
- birthDate: Date;
1623
- idNumber: string;
1624
- phone: string;
1625
- iban: string;
1626
- bic: string;
1627
- phoneVerified: boolean;
1628
- } | null | undefined;
1629
- customerType?: string | null | undefined;
1630
- customerPaid?: boolean | null | undefined;
1631
- customerPaidDate?: Date | null | undefined;
1632
- customerPaidType?: string | null | undefined;
1633
- contractId?: string | number | null | undefined;
1634
- lastHistory?: {
1635
- 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";
1636
- id: string;
1637
- createdAt: Date;
1638
- itemId: string | number;
1639
- data?: {
1830
+ history: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1831
+ id: z.ZodString;
1832
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1833
+ 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"]>;
1834
+ data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1835
+ data: z.ZodObject<{
1836
+ targetItemHistoryId: z.ZodString;
1837
+ }, "strip", z.ZodTypeAny, {
1838
+ targetItemHistoryId: string;
1839
+ }, {
1840
+ targetItemHistoryId: string;
1841
+ }>;
1842
+ type: z.ZodLiteral<"ACTION_CANCELED">;
1843
+ }, "strip", z.ZodTypeAny, {
1640
1844
  type: "ACTION_CANCELED";
1641
1845
  data: {
1642
1846
  targetItemHistoryId: string;
1643
1847
  };
1644
- } | {
1848
+ }, {
1849
+ type: "ACTION_CANCELED";
1850
+ data: {
1851
+ targetItemHistoryId: string;
1852
+ };
1853
+ }>, z.ZodObject<{
1854
+ data: z.ZodObject<{
1855
+ soldAccountId: z.ZodString;
1856
+ soldOrderId: z.ZodString;
1857
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1858
+ }, "strip", z.ZodTypeAny, {
1859
+ soldAccountId: string;
1860
+ soldOrderId: string;
1861
+ soldConversationId?: string | null | undefined;
1862
+ }, {
1863
+ soldAccountId: string;
1864
+ soldOrderId: string;
1865
+ soldConversationId?: string | null | undefined;
1866
+ }>;
1867
+ type: z.ZodLiteral<"BUYER_PAID">;
1868
+ }, "strip", z.ZodTypeAny, {
1645
1869
  type: "BUYER_PAID";
1646
1870
  data: {
1647
1871
  soldAccountId: string;
1648
1872
  soldOrderId: string;
1649
1873
  soldConversationId?: string | null | undefined;
1650
1874
  };
1651
- } | {
1875
+ }, {
1876
+ type: "BUYER_PAID";
1877
+ data: {
1878
+ soldAccountId: string;
1879
+ soldOrderId: string;
1880
+ soldConversationId?: string | null | undefined;
1881
+ };
1882
+ }>, z.ZodObject<{
1883
+ data: z.ZodObject<{
1884
+ soldAccountId: z.ZodString;
1885
+ soldOrderId: z.ZodString;
1886
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1887
+ }, "strip", z.ZodTypeAny, {
1888
+ soldAccountId: string;
1889
+ soldOrderId: string;
1890
+ soldConversationId?: string | null | undefined;
1891
+ }, {
1892
+ soldAccountId: string;
1893
+ soldOrderId: string;
1894
+ soldConversationId?: string | null | undefined;
1895
+ }>;
1896
+ type: z.ZodLiteral<"DELIVERED">;
1897
+ }, "strip", z.ZodTypeAny, {
1652
1898
  type: "DELIVERED";
1653
1899
  data: {
1654
1900
  soldAccountId: string;
1655
1901
  soldOrderId: string;
1656
1902
  soldConversationId?: string | null | undefined;
1657
1903
  };
1658
- } | {
1659
- type: "EMPTY";
1660
- } | {
1661
- type: "FAILED_TO_PUBLISH";
1904
+ }, {
1905
+ type: "DELIVERED";
1662
1906
  data: {
1907
+ soldAccountId: string;
1908
+ soldOrderId: string;
1909
+ soldConversationId?: string | null | undefined;
1910
+ };
1911
+ }>, z.ZodObject<{
1912
+ type: z.ZodLiteral<"EMPTY">;
1913
+ }, "strip", z.ZodTypeAny, {
1914
+ type: "EMPTY";
1915
+ }, {
1916
+ type: "EMPTY";
1917
+ }>, z.ZodObject<{
1918
+ data: z.ZodObject<{
1919
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1920
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1921
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1922
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1923
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
1924
+ autoFixable: z.ZodBoolean;
1925
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1926
+ }, "strip", z.ZodTypeAny, {
1927
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1928
+ autoFixable: boolean;
1929
+ error?: string | null | undefined;
1930
+ }, {
1931
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1932
+ autoFixable: boolean;
1933
+ error?: string | null | undefined;
1934
+ }>, "many">>>;
1935
+ itemHistoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1936
+ }, "strip", z.ZodTypeAny, {
1663
1937
  platform: "ETSY" | "SHOPIFY" | "VINTED";
1664
1938
  accountId?: string | null | undefined;
1665
1939
  reason?: string | null | undefined;
@@ -1669,12 +1943,2256 @@ export declare const ItemUpdateSchema: z.ZodObject<{
1669
1943
  error?: string | null | undefined;
1670
1944
  }[] | null | undefined;
1671
1945
  itemHistoryId?: string | null | undefined;
1672
- };
1673
- } | {
1674
- type: "IMAGE_PROCESSING_DONE";
1675
- data: {
1946
+ }, {
1676
1947
  platform: "ETSY" | "SHOPIFY" | "VINTED";
1677
- variations?: {
1948
+ accountId?: string | null | undefined;
1949
+ reason?: string | null | undefined;
1950
+ fields?: {
1951
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1952
+ autoFixable: boolean;
1953
+ error?: string | null | undefined;
1954
+ }[] | null | undefined;
1955
+ itemHistoryId?: string | null | undefined;
1956
+ }>;
1957
+ type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
1958
+ }, "strip", z.ZodTypeAny, {
1959
+ type: "FAILED_TO_PUBLISH";
1960
+ data: {
1961
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1962
+ accountId?: string | null | undefined;
1963
+ reason?: string | null | undefined;
1964
+ fields?: {
1965
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1966
+ autoFixable: boolean;
1967
+ error?: string | null | undefined;
1968
+ }[] | null | undefined;
1969
+ itemHistoryId?: string | null | undefined;
1970
+ };
1971
+ }, {
1972
+ type: "FAILED_TO_PUBLISH";
1973
+ data: {
1974
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1975
+ accountId?: string | null | undefined;
1976
+ reason?: string | null | undefined;
1977
+ fields?: {
1978
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1979
+ autoFixable: boolean;
1980
+ error?: string | null | undefined;
1981
+ }[] | null | undefined;
1982
+ itemHistoryId?: string | null | undefined;
1983
+ };
1984
+ }>, z.ZodObject<{
1985
+ data: z.ZodObject<{
1986
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1987
+ variations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1988
+ fileId: z.ZodString;
1989
+ seed: z.ZodNumber;
1990
+ phash: z.ZodString;
1991
+ distanceOriginal: z.ZodNumber;
1992
+ originalImageUrl: z.ZodString;
1993
+ originalPhash: z.ZodString;
1994
+ }, "strip", z.ZodTypeAny, {
1995
+ fileId: string;
1996
+ seed: number;
1997
+ phash: string;
1998
+ distanceOriginal: number;
1999
+ originalImageUrl: string;
2000
+ originalPhash: string;
2001
+ }, {
2002
+ fileId: string;
2003
+ seed: number;
2004
+ phash: string;
2005
+ distanceOriginal: number;
2006
+ originalImageUrl: string;
2007
+ originalPhash: string;
2008
+ }>, "many">>>;
2009
+ originalPhashes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2010
+ }, "strip", z.ZodTypeAny, {
2011
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2012
+ variations?: {
2013
+ fileId: string;
2014
+ seed: number;
2015
+ phash: string;
2016
+ distanceOriginal: number;
2017
+ originalImageUrl: string;
2018
+ originalPhash: string;
2019
+ }[] | null | undefined;
2020
+ originalPhashes?: string[] | null | undefined;
2021
+ }, {
2022
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2023
+ variations?: {
2024
+ fileId: string;
2025
+ seed: number;
2026
+ phash: string;
2027
+ distanceOriginal: number;
2028
+ originalImageUrl: string;
2029
+ originalPhash: string;
2030
+ }[] | null | undefined;
2031
+ originalPhashes?: string[] | null | undefined;
2032
+ }>;
2033
+ type: z.ZodLiteral<"IMAGE_PROCESSING_DONE">;
2034
+ }, "strip", z.ZodTypeAny, {
2035
+ type: "IMAGE_PROCESSING_DONE";
2036
+ data: {
2037
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2038
+ variations?: {
2039
+ fileId: string;
2040
+ seed: number;
2041
+ phash: string;
2042
+ distanceOriginal: number;
2043
+ originalImageUrl: string;
2044
+ originalPhash: string;
2045
+ }[] | null | undefined;
2046
+ originalPhashes?: string[] | null | undefined;
2047
+ };
2048
+ }, {
2049
+ type: "IMAGE_PROCESSING_DONE";
2050
+ data: {
2051
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2052
+ variations?: {
2053
+ fileId: string;
2054
+ seed: number;
2055
+ phash: string;
2056
+ distanceOriginal: number;
2057
+ originalImageUrl: string;
2058
+ originalPhash: string;
2059
+ }[] | null | undefined;
2060
+ originalPhashes?: string[] | null | undefined;
2061
+ };
2062
+ }>, z.ZodObject<{
2063
+ data: z.ZodObject<{
2064
+ post: z.ZodObject<{
2065
+ platformId: z.ZodString;
2066
+ platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2067
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2068
+ post: z.ZodObject<{
2069
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2070
+ catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2071
+ catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2072
+ colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2073
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
2074
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2075
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2076
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2077
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2078
+ photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2079
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2080
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2081
+ size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2082
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2083
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2084
+ statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2085
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2086
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2087
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2088
+ availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2089
+ material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
2090
+ manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2091
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2092
+ }, "strip", z.ZodTypeAny, {
2093
+ status?: string | null | undefined;
2094
+ price?: number | null | undefined;
2095
+ currency?: string | null | undefined;
2096
+ brand?: string | null | undefined;
2097
+ catalog?: string | null | undefined;
2098
+ catalogId?: number | null | undefined;
2099
+ colors?: string[] | null | undefined;
2100
+ colorIds?: number[] | null | undefined;
2101
+ description?: string | null | undefined;
2102
+ measurementLength?: number | null | undefined;
2103
+ measurementWidth?: number | null | undefined;
2104
+ packageSizeId?: number | null | undefined;
2105
+ photoUrls?: string[] | null | undefined;
2106
+ size?: string | null | undefined;
2107
+ sizeId?: number | null | undefined;
2108
+ statusId?: number | null | undefined;
2109
+ title?: string | null | undefined;
2110
+ isDraft?: boolean | null | undefined;
2111
+ isArchived?: boolean | null | undefined;
2112
+ availableQuantity?: number | null | undefined;
2113
+ material?: number[] | null | undefined;
2114
+ manufacturerLabelling?: string | null | undefined;
2115
+ labels?: string[] | null | undefined;
2116
+ }, {
2117
+ status?: string | null | undefined;
2118
+ price?: number | null | undefined;
2119
+ currency?: string | null | undefined;
2120
+ brand?: string | null | undefined;
2121
+ catalog?: string | null | undefined;
2122
+ catalogId?: number | null | undefined;
2123
+ colors?: string[] | null | undefined;
2124
+ colorIds?: number[] | null | undefined;
2125
+ description?: string | null | undefined;
2126
+ measurementLength?: number | null | undefined;
2127
+ measurementWidth?: number | null | undefined;
2128
+ packageSizeId?: number | null | undefined;
2129
+ photoUrls?: string[] | null | undefined;
2130
+ size?: string | null | undefined;
2131
+ sizeId?: number | null | undefined;
2132
+ statusId?: number | null | undefined;
2133
+ title?: string | null | undefined;
2134
+ isDraft?: boolean | null | undefined;
2135
+ isArchived?: boolean | null | undefined;
2136
+ availableQuantity?: number | null | undefined;
2137
+ material?: number[] | null | undefined;
2138
+ manufacturerLabelling?: string | null | undefined;
2139
+ labels?: string[] | null | undefined;
2140
+ }>;
2141
+ }, "strip", z.ZodTypeAny, {
2142
+ platformId: string;
2143
+ post: {
2144
+ status?: string | null | undefined;
2145
+ price?: number | null | undefined;
2146
+ currency?: string | null | undefined;
2147
+ brand?: string | null | undefined;
2148
+ catalog?: string | null | undefined;
2149
+ catalogId?: number | null | undefined;
2150
+ colors?: string[] | null | undefined;
2151
+ colorIds?: number[] | null | undefined;
2152
+ description?: string | null | undefined;
2153
+ measurementLength?: number | null | undefined;
2154
+ measurementWidth?: number | null | undefined;
2155
+ packageSizeId?: number | null | undefined;
2156
+ photoUrls?: string[] | null | undefined;
2157
+ size?: string | null | undefined;
2158
+ sizeId?: number | null | undefined;
2159
+ statusId?: number | null | undefined;
2160
+ title?: string | null | undefined;
2161
+ isDraft?: boolean | null | undefined;
2162
+ isArchived?: boolean | null | undefined;
2163
+ availableQuantity?: number | null | undefined;
2164
+ material?: number[] | null | undefined;
2165
+ manufacturerLabelling?: string | null | undefined;
2166
+ labels?: string[] | null | undefined;
2167
+ };
2168
+ createdAt?: Date | null | undefined;
2169
+ platformUrl?: string | null | undefined;
2170
+ }, {
2171
+ platformId: string;
2172
+ post: {
2173
+ status?: string | null | undefined;
2174
+ price?: number | null | undefined;
2175
+ currency?: string | null | undefined;
2176
+ brand?: string | null | undefined;
2177
+ catalog?: string | null | undefined;
2178
+ catalogId?: number | null | undefined;
2179
+ colors?: string[] | null | undefined;
2180
+ colorIds?: number[] | null | undefined;
2181
+ description?: string | null | undefined;
2182
+ measurementLength?: number | null | undefined;
2183
+ measurementWidth?: number | null | undefined;
2184
+ packageSizeId?: number | null | undefined;
2185
+ photoUrls?: string[] | null | undefined;
2186
+ size?: string | null | undefined;
2187
+ sizeId?: number | null | undefined;
2188
+ statusId?: number | null | undefined;
2189
+ title?: string | null | undefined;
2190
+ isDraft?: boolean | null | undefined;
2191
+ isArchived?: boolean | null | undefined;
2192
+ availableQuantity?: number | null | undefined;
2193
+ material?: number[] | null | undefined;
2194
+ manufacturerLabelling?: string | null | undefined;
2195
+ labels?: string[] | null | undefined;
2196
+ };
2197
+ createdAt?: Date | null | undefined;
2198
+ platformUrl?: string | null | undefined;
2199
+ }>;
2200
+ }, "strip", z.ZodTypeAny, {
2201
+ post: {
2202
+ platformId: string;
2203
+ post: {
2204
+ status?: string | null | undefined;
2205
+ price?: number | null | undefined;
2206
+ currency?: string | null | undefined;
2207
+ brand?: string | null | undefined;
2208
+ catalog?: string | null | undefined;
2209
+ catalogId?: number | null | undefined;
2210
+ colors?: string[] | null | undefined;
2211
+ colorIds?: number[] | null | undefined;
2212
+ description?: string | null | undefined;
2213
+ measurementLength?: number | null | undefined;
2214
+ measurementWidth?: number | null | undefined;
2215
+ packageSizeId?: number | null | undefined;
2216
+ photoUrls?: string[] | null | undefined;
2217
+ size?: string | null | undefined;
2218
+ sizeId?: number | null | undefined;
2219
+ statusId?: number | null | undefined;
2220
+ title?: string | null | undefined;
2221
+ isDraft?: boolean | null | undefined;
2222
+ isArchived?: boolean | null | undefined;
2223
+ availableQuantity?: number | null | undefined;
2224
+ material?: number[] | null | undefined;
2225
+ manufacturerLabelling?: string | null | undefined;
2226
+ labels?: string[] | null | undefined;
2227
+ };
2228
+ createdAt?: Date | null | undefined;
2229
+ platformUrl?: string | null | undefined;
2230
+ };
2231
+ }, {
2232
+ post: {
2233
+ platformId: string;
2234
+ post: {
2235
+ status?: string | null | undefined;
2236
+ price?: number | null | undefined;
2237
+ currency?: string | null | undefined;
2238
+ brand?: string | null | undefined;
2239
+ catalog?: string | null | undefined;
2240
+ catalogId?: number | null | undefined;
2241
+ colors?: string[] | null | undefined;
2242
+ colorIds?: number[] | null | undefined;
2243
+ description?: string | null | undefined;
2244
+ measurementLength?: number | null | undefined;
2245
+ measurementWidth?: number | null | undefined;
2246
+ packageSizeId?: number | null | undefined;
2247
+ photoUrls?: string[] | null | undefined;
2248
+ size?: string | null | undefined;
2249
+ sizeId?: number | null | undefined;
2250
+ statusId?: number | null | undefined;
2251
+ title?: string | null | undefined;
2252
+ isDraft?: boolean | null | undefined;
2253
+ isArchived?: boolean | null | undefined;
2254
+ availableQuantity?: number | null | undefined;
2255
+ material?: number[] | null | undefined;
2256
+ manufacturerLabelling?: string | null | undefined;
2257
+ labels?: string[] | null | undefined;
2258
+ };
2259
+ createdAt?: Date | null | undefined;
2260
+ platformUrl?: string | null | undefined;
2261
+ };
2262
+ }>;
2263
+ type: z.ZodLiteral<"IMPORTED">;
2264
+ }, "strip", z.ZodTypeAny, {
2265
+ type: "IMPORTED";
2266
+ data: {
2267
+ post: {
2268
+ platformId: string;
2269
+ post: {
2270
+ status?: string | null | undefined;
2271
+ price?: number | null | undefined;
2272
+ currency?: string | null | undefined;
2273
+ brand?: string | null | undefined;
2274
+ catalog?: string | null | undefined;
2275
+ catalogId?: number | null | undefined;
2276
+ colors?: string[] | null | undefined;
2277
+ colorIds?: number[] | null | undefined;
2278
+ description?: string | null | undefined;
2279
+ measurementLength?: number | null | undefined;
2280
+ measurementWidth?: number | null | undefined;
2281
+ packageSizeId?: number | null | undefined;
2282
+ photoUrls?: string[] | null | undefined;
2283
+ size?: string | null | undefined;
2284
+ sizeId?: number | null | undefined;
2285
+ statusId?: number | null | undefined;
2286
+ title?: string | null | undefined;
2287
+ isDraft?: boolean | null | undefined;
2288
+ isArchived?: boolean | null | undefined;
2289
+ availableQuantity?: number | null | undefined;
2290
+ material?: number[] | null | undefined;
2291
+ manufacturerLabelling?: string | null | undefined;
2292
+ labels?: string[] | null | undefined;
2293
+ };
2294
+ createdAt?: Date | null | undefined;
2295
+ platformUrl?: string | null | undefined;
2296
+ };
2297
+ };
2298
+ }, {
2299
+ type: "IMPORTED";
2300
+ data: {
2301
+ post: {
2302
+ platformId: string;
2303
+ post: {
2304
+ status?: string | null | undefined;
2305
+ price?: number | null | undefined;
2306
+ currency?: string | null | undefined;
2307
+ brand?: string | null | undefined;
2308
+ catalog?: string | null | undefined;
2309
+ catalogId?: number | null | undefined;
2310
+ colors?: string[] | null | undefined;
2311
+ colorIds?: number[] | null | undefined;
2312
+ description?: string | null | undefined;
2313
+ measurementLength?: number | null | undefined;
2314
+ measurementWidth?: number | null | undefined;
2315
+ packageSizeId?: number | null | undefined;
2316
+ photoUrls?: string[] | null | undefined;
2317
+ size?: string | null | undefined;
2318
+ sizeId?: number | null | undefined;
2319
+ statusId?: number | null | undefined;
2320
+ title?: string | null | undefined;
2321
+ isDraft?: boolean | null | undefined;
2322
+ isArchived?: boolean | null | undefined;
2323
+ availableQuantity?: number | null | undefined;
2324
+ material?: number[] | null | undefined;
2325
+ manufacturerLabelling?: string | null | undefined;
2326
+ labels?: string[] | null | undefined;
2327
+ };
2328
+ createdAt?: Date | null | undefined;
2329
+ platformUrl?: string | null | undefined;
2330
+ };
2331
+ };
2332
+ }>, z.ZodObject<{
2333
+ data: z.ZodObject<{
2334
+ accountId: z.ZodString;
2335
+ }, "strip", z.ZodTypeAny, {
2336
+ accountId: string;
2337
+ }, {
2338
+ accountId: string;
2339
+ }>;
2340
+ type: z.ZodLiteral<"LIFECYCLE_COMPLETED">;
2341
+ }, "strip", z.ZodTypeAny, {
2342
+ type: "LIFECYCLE_COMPLETED";
2343
+ data: {
2344
+ accountId: string;
2345
+ };
2346
+ }, {
2347
+ type: "LIFECYCLE_COMPLETED";
2348
+ data: {
2349
+ accountId: string;
2350
+ };
2351
+ }>, z.ZodObject<{
2352
+ data: z.ZodObject<{
2353
+ accountId: z.ZodString;
2354
+ caseId: z.ZodString;
2355
+ }, "strip", z.ZodTypeAny, {
2356
+ accountId: string;
2357
+ caseId: string;
2358
+ }, {
2359
+ accountId: string;
2360
+ caseId: string;
2361
+ }>;
2362
+ type: z.ZodLiteral<"LIFECYCLE_STARTED">;
2363
+ }, "strip", z.ZodTypeAny, {
2364
+ type: "LIFECYCLE_STARTED";
2365
+ data: {
2366
+ accountId: string;
2367
+ caseId: string;
2368
+ };
2369
+ }, {
2370
+ type: "LIFECYCLE_STARTED";
2371
+ data: {
2372
+ accountId: string;
2373
+ caseId: string;
2374
+ };
2375
+ }>, z.ZodObject<{
2376
+ data: z.ZodObject<{
2377
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2378
+ }, "strip", z.ZodTypeAny, {
2379
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2380
+ }, {
2381
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2382
+ }>;
2383
+ type: z.ZodLiteral<"PUBLISHED">;
2384
+ }, "strip", z.ZodTypeAny, {
2385
+ type: "PUBLISHED";
2386
+ data: {
2387
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2388
+ };
2389
+ }, {
2390
+ type: "PUBLISHED";
2391
+ data: {
2392
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2393
+ };
2394
+ }>, z.ZodObject<{
2395
+ data: z.ZodObject<{
2396
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2397
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2398
+ priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2399
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
2400
+ value: z.ZodNumber;
2401
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
2402
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2403
+ maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2404
+ }, "strip", z.ZodTypeAny, {
2405
+ value: number;
2406
+ type: "PERCENTAGE" | "ABSOLUTE";
2407
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2408
+ roundStep?: number | null | undefined;
2409
+ maxRounds?: number | null | undefined;
2410
+ }, {
2411
+ value: number;
2412
+ type: "PERCENTAGE" | "ABSOLUTE";
2413
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2414
+ roundStep?: number | null | undefined;
2415
+ maxRounds?: number | null | undefined;
2416
+ }>>>;
2417
+ isTransfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2418
+ targetAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2419
+ }, "strip", z.ZodTypeAny, {
2420
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2421
+ publishingDate?: Date | null | undefined;
2422
+ priceDropPayload?: {
2423
+ value: number;
2424
+ type: "PERCENTAGE" | "ABSOLUTE";
2425
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2426
+ roundStep?: number | null | undefined;
2427
+ maxRounds?: number | null | undefined;
2428
+ } | null | undefined;
2429
+ isTransfer?: boolean | null | undefined;
2430
+ targetAccountId?: string | null | undefined;
2431
+ }, {
2432
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2433
+ publishingDate?: Date | null | undefined;
2434
+ priceDropPayload?: {
2435
+ value: number;
2436
+ type: "PERCENTAGE" | "ABSOLUTE";
2437
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2438
+ roundStep?: number | null | undefined;
2439
+ maxRounds?: number | null | undefined;
2440
+ } | null | undefined;
2441
+ isTransfer?: boolean | null | undefined;
2442
+ targetAccountId?: string | null | undefined;
2443
+ }>;
2444
+ type: z.ZodLiteral<"REPUBLISHING">;
2445
+ }, "strip", z.ZodTypeAny, {
2446
+ type: "REPUBLISHING";
2447
+ data: {
2448
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2449
+ publishingDate?: Date | null | undefined;
2450
+ priceDropPayload?: {
2451
+ value: number;
2452
+ type: "PERCENTAGE" | "ABSOLUTE";
2453
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2454
+ roundStep?: number | null | undefined;
2455
+ maxRounds?: number | null | undefined;
2456
+ } | null | undefined;
2457
+ isTransfer?: boolean | null | undefined;
2458
+ targetAccountId?: string | null | undefined;
2459
+ };
2460
+ }, {
2461
+ type: "REPUBLISHING";
2462
+ data: {
2463
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2464
+ publishingDate?: Date | null | undefined;
2465
+ priceDropPayload?: {
2466
+ value: number;
2467
+ type: "PERCENTAGE" | "ABSOLUTE";
2468
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2469
+ roundStep?: number | null | undefined;
2470
+ maxRounds?: number | null | undefined;
2471
+ } | null | undefined;
2472
+ isTransfer?: boolean | null | undefined;
2473
+ targetAccountId?: string | null | undefined;
2474
+ };
2475
+ }>, z.ZodObject<{
2476
+ data: z.ZodObject<{
2477
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2478
+ attemptNumber: z.ZodNumber;
2479
+ maxAttempts: z.ZodNumber;
2480
+ previousHistoryId: z.ZodString;
2481
+ originalFailureDate: z.ZodDate;
2482
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2483
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
2484
+ autoFixable: z.ZodBoolean;
2485
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2486
+ }, "strip", z.ZodTypeAny, {
2487
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2488
+ autoFixable: boolean;
2489
+ error?: string | null | undefined;
2490
+ }, {
2491
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2492
+ autoFixable: boolean;
2493
+ error?: string | null | undefined;
2494
+ }>, "many">>>;
2495
+ priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2496
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
2497
+ value: z.ZodNumber;
2498
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
2499
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2500
+ maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2501
+ }, "strip", z.ZodTypeAny, {
2502
+ value: number;
2503
+ type: "PERCENTAGE" | "ABSOLUTE";
2504
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2505
+ roundStep?: number | null | undefined;
2506
+ maxRounds?: number | null | undefined;
2507
+ }, {
2508
+ value: number;
2509
+ type: "PERCENTAGE" | "ABSOLUTE";
2510
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2511
+ roundStep?: number | null | undefined;
2512
+ maxRounds?: number | null | undefined;
2513
+ }>>>;
2514
+ }, "strip", z.ZodTypeAny, {
2515
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2516
+ attemptNumber: number;
2517
+ maxAttempts: number;
2518
+ previousHistoryId: string;
2519
+ originalFailureDate: Date;
2520
+ fields?: {
2521
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2522
+ autoFixable: boolean;
2523
+ error?: string | null | undefined;
2524
+ }[] | null | undefined;
2525
+ priceDropPayload?: {
2526
+ value: number;
2527
+ type: "PERCENTAGE" | "ABSOLUTE";
2528
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2529
+ roundStep?: number | null | undefined;
2530
+ maxRounds?: number | null | undefined;
2531
+ } | null | undefined;
2532
+ }, {
2533
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2534
+ attemptNumber: number;
2535
+ maxAttempts: number;
2536
+ previousHistoryId: string;
2537
+ originalFailureDate: Date;
2538
+ fields?: {
2539
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2540
+ autoFixable: boolean;
2541
+ error?: string | null | undefined;
2542
+ }[] | null | undefined;
2543
+ priceDropPayload?: {
2544
+ value: number;
2545
+ type: "PERCENTAGE" | "ABSOLUTE";
2546
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2547
+ roundStep?: number | null | undefined;
2548
+ maxRounds?: number | null | undefined;
2549
+ } | null | undefined;
2550
+ }>;
2551
+ type: z.ZodLiteral<"REPUBLISHING_RETRY">;
2552
+ }, "strip", z.ZodTypeAny, {
2553
+ type: "REPUBLISHING_RETRY";
2554
+ data: {
2555
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2556
+ attemptNumber: number;
2557
+ maxAttempts: number;
2558
+ previousHistoryId: string;
2559
+ originalFailureDate: Date;
2560
+ fields?: {
2561
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2562
+ autoFixable: boolean;
2563
+ error?: string | null | undefined;
2564
+ }[] | null | undefined;
2565
+ priceDropPayload?: {
2566
+ value: number;
2567
+ type: "PERCENTAGE" | "ABSOLUTE";
2568
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2569
+ roundStep?: number | null | undefined;
2570
+ maxRounds?: number | null | undefined;
2571
+ } | null | undefined;
2572
+ };
2573
+ }, {
2574
+ type: "REPUBLISHING_RETRY";
2575
+ data: {
2576
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2577
+ attemptNumber: number;
2578
+ maxAttempts: number;
2579
+ previousHistoryId: string;
2580
+ originalFailureDate: Date;
2581
+ fields?: {
2582
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2583
+ autoFixable: boolean;
2584
+ error?: string | null | undefined;
2585
+ }[] | null | undefined;
2586
+ priceDropPayload?: {
2587
+ value: number;
2588
+ type: "PERCENTAGE" | "ABSOLUTE";
2589
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2590
+ roundStep?: number | null | undefined;
2591
+ maxRounds?: number | null | undefined;
2592
+ } | null | undefined;
2593
+ };
2594
+ }>, z.ZodObject<{
2595
+ data: z.ZodObject<{
2596
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2597
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2598
+ }, "strip", z.ZodTypeAny, {
2599
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2600
+ publishingDate?: Date | null | undefined;
2601
+ }, {
2602
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2603
+ publishingDate?: Date | null | undefined;
2604
+ }>;
2605
+ type: z.ZodLiteral<"SCHEDULED">;
2606
+ }, "strip", z.ZodTypeAny, {
2607
+ type: "SCHEDULED";
2608
+ data: {
2609
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2610
+ publishingDate?: Date | null | undefined;
2611
+ };
2612
+ }, {
2613
+ type: "SCHEDULED";
2614
+ data: {
2615
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2616
+ publishingDate?: Date | null | undefined;
2617
+ };
2618
+ }>, z.ZodObject<{
2619
+ data: z.ZodObject<{
2620
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2621
+ attemptNumber: z.ZodNumber;
2622
+ maxAttempts: z.ZodNumber;
2623
+ previousHistoryId: z.ZodString;
2624
+ originalFailureDate: z.ZodDate;
2625
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2626
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
2627
+ autoFixable: z.ZodBoolean;
2628
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2629
+ }, "strip", z.ZodTypeAny, {
2630
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2631
+ autoFixable: boolean;
2632
+ error?: string | null | undefined;
2633
+ }, {
2634
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2635
+ autoFixable: boolean;
2636
+ error?: string | null | undefined;
2637
+ }>, "many">>>;
2638
+ }, "strip", z.ZodTypeAny, {
2639
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2640
+ attemptNumber: number;
2641
+ maxAttempts: number;
2642
+ previousHistoryId: string;
2643
+ originalFailureDate: Date;
2644
+ fields?: {
2645
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2646
+ autoFixable: boolean;
2647
+ error?: string | null | undefined;
2648
+ }[] | null | undefined;
2649
+ }, {
2650
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2651
+ attemptNumber: number;
2652
+ maxAttempts: number;
2653
+ previousHistoryId: string;
2654
+ originalFailureDate: Date;
2655
+ fields?: {
2656
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2657
+ autoFixable: boolean;
2658
+ error?: string | null | undefined;
2659
+ }[] | null | undefined;
2660
+ }>;
2661
+ type: z.ZodLiteral<"SCHEDULED_RETRY">;
2662
+ }, "strip", z.ZodTypeAny, {
2663
+ type: "SCHEDULED_RETRY";
2664
+ data: {
2665
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2666
+ attemptNumber: number;
2667
+ maxAttempts: number;
2668
+ previousHistoryId: string;
2669
+ originalFailureDate: Date;
2670
+ fields?: {
2671
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2672
+ autoFixable: boolean;
2673
+ error?: string | null | undefined;
2674
+ }[] | null | undefined;
2675
+ };
2676
+ }, {
2677
+ type: "SCHEDULED_RETRY";
2678
+ data: {
2679
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2680
+ attemptNumber: number;
2681
+ maxAttempts: number;
2682
+ previousHistoryId: string;
2683
+ originalFailureDate: Date;
2684
+ fields?: {
2685
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2686
+ autoFixable: boolean;
2687
+ error?: string | null | undefined;
2688
+ }[] | null | undefined;
2689
+ };
2690
+ }>, z.ZodObject<{
2691
+ data: z.ZodObject<{
2692
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2693
+ }, "strip", z.ZodTypeAny, {
2694
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2695
+ }, {
2696
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2697
+ }>;
2698
+ type: z.ZodLiteral<"UPDATED">;
2699
+ }, "strip", z.ZodTypeAny, {
2700
+ type: "UPDATED";
2701
+ data: {
2702
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2703
+ };
2704
+ }, {
2705
+ type: "UPDATED";
2706
+ data: {
2707
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2708
+ };
2709
+ }>, z.ZodObject<{
2710
+ data: z.ZodObject<{
2711
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2712
+ post: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2713
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2714
+ catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2715
+ catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2716
+ colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2717
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
2718
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2719
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2720
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2721
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2722
+ photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2723
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2724
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2725
+ size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2726
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2727
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2728
+ statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2729
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2730
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2731
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2732
+ availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2733
+ material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
2734
+ manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2735
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2736
+ }, "strip", z.ZodTypeAny, {
2737
+ status?: string | null | undefined;
2738
+ price?: number | null | undefined;
2739
+ currency?: string | null | undefined;
2740
+ brand?: string | null | undefined;
2741
+ catalog?: string | null | undefined;
2742
+ catalogId?: number | null | undefined;
2743
+ colors?: string[] | null | undefined;
2744
+ colorIds?: number[] | null | undefined;
2745
+ description?: string | null | undefined;
2746
+ measurementLength?: number | null | undefined;
2747
+ measurementWidth?: number | null | undefined;
2748
+ packageSizeId?: number | null | undefined;
2749
+ photoUrls?: string[] | null | undefined;
2750
+ size?: string | null | undefined;
2751
+ sizeId?: number | null | undefined;
2752
+ statusId?: number | null | undefined;
2753
+ title?: string | null | undefined;
2754
+ isDraft?: boolean | null | undefined;
2755
+ isArchived?: boolean | null | undefined;
2756
+ availableQuantity?: number | null | undefined;
2757
+ material?: number[] | null | undefined;
2758
+ manufacturerLabelling?: string | null | undefined;
2759
+ labels?: string[] | null | undefined;
2760
+ }, {
2761
+ status?: string | null | undefined;
2762
+ price?: number | null | undefined;
2763
+ currency?: string | null | undefined;
2764
+ brand?: string | null | undefined;
2765
+ catalog?: string | null | undefined;
2766
+ catalogId?: number | null | undefined;
2767
+ colors?: string[] | null | undefined;
2768
+ colorIds?: number[] | null | undefined;
2769
+ description?: string | null | undefined;
2770
+ measurementLength?: number | null | undefined;
2771
+ measurementWidth?: number | null | undefined;
2772
+ packageSizeId?: number | null | undefined;
2773
+ photoUrls?: string[] | null | undefined;
2774
+ size?: string | null | undefined;
2775
+ sizeId?: number | null | undefined;
2776
+ statusId?: number | null | undefined;
2777
+ title?: string | null | undefined;
2778
+ isDraft?: boolean | null | undefined;
2779
+ isArchived?: boolean | null | undefined;
2780
+ availableQuantity?: number | null | undefined;
2781
+ material?: number[] | null | undefined;
2782
+ manufacturerLabelling?: string | null | undefined;
2783
+ labels?: string[] | null | undefined;
2784
+ }>>>;
2785
+ targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2786
+ }, "strip", z.ZodTypeAny, {
2787
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2788
+ post?: {
2789
+ status?: string | null | undefined;
2790
+ price?: number | null | undefined;
2791
+ currency?: string | null | undefined;
2792
+ brand?: string | null | undefined;
2793
+ catalog?: string | null | undefined;
2794
+ catalogId?: number | null | undefined;
2795
+ colors?: string[] | null | undefined;
2796
+ colorIds?: number[] | null | undefined;
2797
+ description?: string | null | undefined;
2798
+ measurementLength?: number | null | undefined;
2799
+ measurementWidth?: number | null | undefined;
2800
+ packageSizeId?: number | null | undefined;
2801
+ photoUrls?: string[] | null | undefined;
2802
+ size?: string | null | undefined;
2803
+ sizeId?: number | null | undefined;
2804
+ statusId?: number | null | undefined;
2805
+ title?: string | null | undefined;
2806
+ isDraft?: boolean | null | undefined;
2807
+ isArchived?: boolean | null | undefined;
2808
+ availableQuantity?: number | null | undefined;
2809
+ material?: number[] | null | undefined;
2810
+ manufacturerLabelling?: string | null | undefined;
2811
+ labels?: string[] | null | undefined;
2812
+ } | null | undefined;
2813
+ targetDate?: Date | null | undefined;
2814
+ }, {
2815
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2816
+ post?: {
2817
+ status?: string | null | undefined;
2818
+ price?: number | null | undefined;
2819
+ currency?: string | null | undefined;
2820
+ brand?: string | null | undefined;
2821
+ catalog?: string | null | undefined;
2822
+ catalogId?: number | null | undefined;
2823
+ colors?: string[] | null | undefined;
2824
+ colorIds?: number[] | null | undefined;
2825
+ description?: string | null | undefined;
2826
+ measurementLength?: number | null | undefined;
2827
+ measurementWidth?: number | null | undefined;
2828
+ packageSizeId?: number | null | undefined;
2829
+ photoUrls?: string[] | null | undefined;
2830
+ size?: string | null | undefined;
2831
+ sizeId?: number | null | undefined;
2832
+ statusId?: number | null | undefined;
2833
+ title?: string | null | undefined;
2834
+ isDraft?: boolean | null | undefined;
2835
+ isArchived?: boolean | null | undefined;
2836
+ availableQuantity?: number | null | undefined;
2837
+ material?: number[] | null | undefined;
2838
+ manufacturerLabelling?: string | null | undefined;
2839
+ labels?: string[] | null | undefined;
2840
+ } | null | undefined;
2841
+ targetDate?: Date | null | undefined;
2842
+ }>;
2843
+ type: z.ZodLiteral<"UPDATING">;
2844
+ }, "strip", z.ZodTypeAny, {
2845
+ type: "UPDATING";
2846
+ data: {
2847
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2848
+ post?: {
2849
+ status?: string | null | undefined;
2850
+ price?: number | null | undefined;
2851
+ currency?: string | null | undefined;
2852
+ brand?: string | null | undefined;
2853
+ catalog?: string | null | undefined;
2854
+ catalogId?: number | null | undefined;
2855
+ colors?: string[] | null | undefined;
2856
+ colorIds?: number[] | null | undefined;
2857
+ description?: string | null | undefined;
2858
+ measurementLength?: number | null | undefined;
2859
+ measurementWidth?: number | null | undefined;
2860
+ packageSizeId?: number | null | undefined;
2861
+ photoUrls?: string[] | null | undefined;
2862
+ size?: string | null | undefined;
2863
+ sizeId?: number | null | undefined;
2864
+ statusId?: number | null | undefined;
2865
+ title?: string | null | undefined;
2866
+ isDraft?: boolean | null | undefined;
2867
+ isArchived?: boolean | null | undefined;
2868
+ availableQuantity?: number | null | undefined;
2869
+ material?: number[] | null | undefined;
2870
+ manufacturerLabelling?: string | null | undefined;
2871
+ labels?: string[] | null | undefined;
2872
+ } | null | undefined;
2873
+ targetDate?: Date | null | undefined;
2874
+ };
2875
+ }, {
2876
+ type: "UPDATING";
2877
+ data: {
2878
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2879
+ post?: {
2880
+ status?: string | null | undefined;
2881
+ price?: number | null | undefined;
2882
+ currency?: string | null | undefined;
2883
+ brand?: string | null | undefined;
2884
+ catalog?: string | null | undefined;
2885
+ catalogId?: number | null | undefined;
2886
+ colors?: string[] | null | undefined;
2887
+ colorIds?: number[] | null | undefined;
2888
+ description?: string | null | undefined;
2889
+ measurementLength?: number | null | undefined;
2890
+ measurementWidth?: number | null | undefined;
2891
+ packageSizeId?: number | null | undefined;
2892
+ photoUrls?: string[] | null | undefined;
2893
+ size?: string | null | undefined;
2894
+ sizeId?: number | null | undefined;
2895
+ statusId?: number | null | undefined;
2896
+ title?: string | null | undefined;
2897
+ isDraft?: boolean | null | undefined;
2898
+ isArchived?: boolean | null | undefined;
2899
+ availableQuantity?: number | null | undefined;
2900
+ material?: number[] | null | undefined;
2901
+ manufacturerLabelling?: string | null | undefined;
2902
+ labels?: string[] | null | undefined;
2903
+ } | null | undefined;
2904
+ targetDate?: Date | null | undefined;
2905
+ };
2906
+ }>]>>>;
2907
+ createdAt: z.ZodDate;
2908
+ targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2909
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2910
+ requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2911
+ }, "strip", z.ZodTypeAny, {
2912
+ 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";
2913
+ id: string;
2914
+ createdAt: Date;
2915
+ itemId: string | number;
2916
+ data?: {
2917
+ type: "ACTION_CANCELED";
2918
+ data: {
2919
+ targetItemHistoryId: string;
2920
+ };
2921
+ } | {
2922
+ type: "BUYER_PAID";
2923
+ data: {
2924
+ soldAccountId: string;
2925
+ soldOrderId: string;
2926
+ soldConversationId?: string | null | undefined;
2927
+ };
2928
+ } | {
2929
+ type: "DELIVERED";
2930
+ data: {
2931
+ soldAccountId: string;
2932
+ soldOrderId: string;
2933
+ soldConversationId?: string | null | undefined;
2934
+ };
2935
+ } | {
2936
+ type: "EMPTY";
2937
+ } | {
2938
+ type: "FAILED_TO_PUBLISH";
2939
+ data: {
2940
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2941
+ accountId?: string | null | undefined;
2942
+ reason?: string | null | undefined;
2943
+ fields?: {
2944
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2945
+ autoFixable: boolean;
2946
+ error?: string | null | undefined;
2947
+ }[] | null | undefined;
2948
+ itemHistoryId?: string | null | undefined;
2949
+ };
2950
+ } | {
2951
+ type: "IMAGE_PROCESSING_DONE";
2952
+ data: {
2953
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2954
+ variations?: {
2955
+ fileId: string;
2956
+ seed: number;
2957
+ phash: string;
2958
+ distanceOriginal: number;
2959
+ originalImageUrl: string;
2960
+ originalPhash: string;
2961
+ }[] | null | undefined;
2962
+ originalPhashes?: string[] | null | undefined;
2963
+ };
2964
+ } | {
2965
+ type: "IMPORTED";
2966
+ data: {
2967
+ post: {
2968
+ platformId: string;
2969
+ post: {
2970
+ status?: string | null | undefined;
2971
+ price?: number | null | undefined;
2972
+ currency?: string | null | undefined;
2973
+ brand?: string | null | undefined;
2974
+ catalog?: string | null | undefined;
2975
+ catalogId?: number | null | undefined;
2976
+ colors?: string[] | null | undefined;
2977
+ colorIds?: number[] | null | undefined;
2978
+ description?: string | null | undefined;
2979
+ measurementLength?: number | null | undefined;
2980
+ measurementWidth?: number | null | undefined;
2981
+ packageSizeId?: number | null | undefined;
2982
+ photoUrls?: string[] | null | undefined;
2983
+ size?: string | null | undefined;
2984
+ sizeId?: number | null | undefined;
2985
+ statusId?: number | null | undefined;
2986
+ title?: string | null | undefined;
2987
+ isDraft?: boolean | null | undefined;
2988
+ isArchived?: boolean | null | undefined;
2989
+ availableQuantity?: number | null | undefined;
2990
+ material?: number[] | null | undefined;
2991
+ manufacturerLabelling?: string | null | undefined;
2992
+ labels?: string[] | null | undefined;
2993
+ };
2994
+ createdAt?: Date | null | undefined;
2995
+ platformUrl?: string | null | undefined;
2996
+ };
2997
+ };
2998
+ } | {
2999
+ type: "LIFECYCLE_COMPLETED";
3000
+ data: {
3001
+ accountId: string;
3002
+ };
3003
+ } | {
3004
+ type: "LIFECYCLE_STARTED";
3005
+ data: {
3006
+ accountId: string;
3007
+ caseId: string;
3008
+ };
3009
+ } | {
3010
+ type: "PUBLISHED";
3011
+ data: {
3012
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3013
+ };
3014
+ } | {
3015
+ type: "REPUBLISHING";
3016
+ data: {
3017
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3018
+ publishingDate?: Date | null | undefined;
3019
+ priceDropPayload?: {
3020
+ value: number;
3021
+ type: "PERCENTAGE" | "ABSOLUTE";
3022
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3023
+ roundStep?: number | null | undefined;
3024
+ maxRounds?: number | null | undefined;
3025
+ } | null | undefined;
3026
+ isTransfer?: boolean | null | undefined;
3027
+ targetAccountId?: string | null | undefined;
3028
+ };
3029
+ } | {
3030
+ type: "REPUBLISHING_RETRY";
3031
+ data: {
3032
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3033
+ attemptNumber: number;
3034
+ maxAttempts: number;
3035
+ previousHistoryId: string;
3036
+ originalFailureDate: Date;
3037
+ fields?: {
3038
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3039
+ autoFixable: boolean;
3040
+ error?: string | null | undefined;
3041
+ }[] | null | undefined;
3042
+ priceDropPayload?: {
3043
+ value: number;
3044
+ type: "PERCENTAGE" | "ABSOLUTE";
3045
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3046
+ roundStep?: number | null | undefined;
3047
+ maxRounds?: number | null | undefined;
3048
+ } | null | undefined;
3049
+ };
3050
+ } | {
3051
+ type: "SCHEDULED";
3052
+ data: {
3053
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3054
+ publishingDate?: Date | null | undefined;
3055
+ };
3056
+ } | {
3057
+ type: "SCHEDULED_RETRY";
3058
+ data: {
3059
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3060
+ attemptNumber: number;
3061
+ maxAttempts: number;
3062
+ previousHistoryId: string;
3063
+ originalFailureDate: Date;
3064
+ fields?: {
3065
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3066
+ autoFixable: boolean;
3067
+ error?: string | null | undefined;
3068
+ }[] | null | undefined;
3069
+ };
3070
+ } | {
3071
+ type: "UPDATED";
3072
+ data: {
3073
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3074
+ };
3075
+ } | {
3076
+ type: "UPDATING";
3077
+ data: {
3078
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3079
+ post?: {
3080
+ status?: string | null | undefined;
3081
+ price?: number | null | undefined;
3082
+ currency?: string | null | undefined;
3083
+ brand?: string | null | undefined;
3084
+ catalog?: string | null | undefined;
3085
+ catalogId?: number | null | undefined;
3086
+ colors?: string[] | null | undefined;
3087
+ colorIds?: number[] | null | undefined;
3088
+ description?: string | null | undefined;
3089
+ measurementLength?: number | null | undefined;
3090
+ measurementWidth?: number | null | undefined;
3091
+ packageSizeId?: number | null | undefined;
3092
+ photoUrls?: string[] | null | undefined;
3093
+ size?: string | null | undefined;
3094
+ sizeId?: number | null | undefined;
3095
+ statusId?: number | null | undefined;
3096
+ title?: string | null | undefined;
3097
+ isDraft?: boolean | null | undefined;
3098
+ isArchived?: boolean | null | undefined;
3099
+ availableQuantity?: number | null | undefined;
3100
+ material?: number[] | null | undefined;
3101
+ manufacturerLabelling?: string | null | undefined;
3102
+ labels?: string[] | null | undefined;
3103
+ } | null | undefined;
3104
+ targetDate?: Date | null | undefined;
3105
+ };
3106
+ } | null | undefined;
3107
+ accountId?: string | null | undefined;
3108
+ requestId?: string | null | undefined;
3109
+ targetDate?: Date | null | undefined;
3110
+ }, {
3111
+ 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";
3112
+ id: string;
3113
+ createdAt: Date;
3114
+ itemId: string | number;
3115
+ data?: {
3116
+ type: "ACTION_CANCELED";
3117
+ data: {
3118
+ targetItemHistoryId: string;
3119
+ };
3120
+ } | {
3121
+ type: "BUYER_PAID";
3122
+ data: {
3123
+ soldAccountId: string;
3124
+ soldOrderId: string;
3125
+ soldConversationId?: string | null | undefined;
3126
+ };
3127
+ } | {
3128
+ type: "DELIVERED";
3129
+ data: {
3130
+ soldAccountId: string;
3131
+ soldOrderId: string;
3132
+ soldConversationId?: string | null | undefined;
3133
+ };
3134
+ } | {
3135
+ type: "EMPTY";
3136
+ } | {
3137
+ type: "FAILED_TO_PUBLISH";
3138
+ data: {
3139
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3140
+ accountId?: string | null | undefined;
3141
+ reason?: string | null | undefined;
3142
+ fields?: {
3143
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3144
+ autoFixable: boolean;
3145
+ error?: string | null | undefined;
3146
+ }[] | null | undefined;
3147
+ itemHistoryId?: string | null | undefined;
3148
+ };
3149
+ } | {
3150
+ type: "IMAGE_PROCESSING_DONE";
3151
+ data: {
3152
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3153
+ variations?: {
3154
+ fileId: string;
3155
+ seed: number;
3156
+ phash: string;
3157
+ distanceOriginal: number;
3158
+ originalImageUrl: string;
3159
+ originalPhash: string;
3160
+ }[] | null | undefined;
3161
+ originalPhashes?: string[] | null | undefined;
3162
+ };
3163
+ } | {
3164
+ type: "IMPORTED";
3165
+ data: {
3166
+ post: {
3167
+ platformId: string;
3168
+ post: {
3169
+ status?: string | null | undefined;
3170
+ price?: number | null | undefined;
3171
+ currency?: string | null | undefined;
3172
+ brand?: string | null | undefined;
3173
+ catalog?: string | null | undefined;
3174
+ catalogId?: number | null | undefined;
3175
+ colors?: string[] | null | undefined;
3176
+ colorIds?: number[] | null | undefined;
3177
+ description?: string | null | undefined;
3178
+ measurementLength?: number | null | undefined;
3179
+ measurementWidth?: number | null | undefined;
3180
+ packageSizeId?: number | null | undefined;
3181
+ photoUrls?: string[] | null | undefined;
3182
+ size?: string | null | undefined;
3183
+ sizeId?: number | null | undefined;
3184
+ statusId?: number | null | undefined;
3185
+ title?: string | null | undefined;
3186
+ isDraft?: boolean | null | undefined;
3187
+ isArchived?: boolean | null | undefined;
3188
+ availableQuantity?: number | null | undefined;
3189
+ material?: number[] | null | undefined;
3190
+ manufacturerLabelling?: string | null | undefined;
3191
+ labels?: string[] | null | undefined;
3192
+ };
3193
+ createdAt?: Date | null | undefined;
3194
+ platformUrl?: string | null | undefined;
3195
+ };
3196
+ };
3197
+ } | {
3198
+ type: "LIFECYCLE_COMPLETED";
3199
+ data: {
3200
+ accountId: string;
3201
+ };
3202
+ } | {
3203
+ type: "LIFECYCLE_STARTED";
3204
+ data: {
3205
+ accountId: string;
3206
+ caseId: string;
3207
+ };
3208
+ } | {
3209
+ type: "PUBLISHED";
3210
+ data: {
3211
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3212
+ };
3213
+ } | {
3214
+ type: "REPUBLISHING";
3215
+ data: {
3216
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3217
+ publishingDate?: Date | null | undefined;
3218
+ priceDropPayload?: {
3219
+ value: number;
3220
+ type: "PERCENTAGE" | "ABSOLUTE";
3221
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3222
+ roundStep?: number | null | undefined;
3223
+ maxRounds?: number | null | undefined;
3224
+ } | null | undefined;
3225
+ isTransfer?: boolean | null | undefined;
3226
+ targetAccountId?: string | null | undefined;
3227
+ };
3228
+ } | {
3229
+ type: "REPUBLISHING_RETRY";
3230
+ data: {
3231
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3232
+ attemptNumber: number;
3233
+ maxAttempts: number;
3234
+ previousHistoryId: string;
3235
+ originalFailureDate: Date;
3236
+ fields?: {
3237
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3238
+ autoFixable: boolean;
3239
+ error?: string | null | undefined;
3240
+ }[] | null | undefined;
3241
+ priceDropPayload?: {
3242
+ value: number;
3243
+ type: "PERCENTAGE" | "ABSOLUTE";
3244
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3245
+ roundStep?: number | null | undefined;
3246
+ maxRounds?: number | null | undefined;
3247
+ } | null | undefined;
3248
+ };
3249
+ } | {
3250
+ type: "SCHEDULED";
3251
+ data: {
3252
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3253
+ publishingDate?: Date | null | undefined;
3254
+ };
3255
+ } | {
3256
+ type: "SCHEDULED_RETRY";
3257
+ data: {
3258
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3259
+ attemptNumber: number;
3260
+ maxAttempts: number;
3261
+ previousHistoryId: string;
3262
+ originalFailureDate: Date;
3263
+ fields?: {
3264
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3265
+ autoFixable: boolean;
3266
+ error?: string | null | undefined;
3267
+ }[] | null | undefined;
3268
+ };
3269
+ } | {
3270
+ type: "UPDATED";
3271
+ data: {
3272
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3273
+ };
3274
+ } | {
3275
+ type: "UPDATING";
3276
+ data: {
3277
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3278
+ post?: {
3279
+ status?: string | null | undefined;
3280
+ price?: number | null | undefined;
3281
+ currency?: string | null | undefined;
3282
+ brand?: string | null | undefined;
3283
+ catalog?: string | null | undefined;
3284
+ catalogId?: number | null | undefined;
3285
+ colors?: string[] | null | undefined;
3286
+ colorIds?: number[] | null | undefined;
3287
+ description?: string | null | undefined;
3288
+ measurementLength?: number | null | undefined;
3289
+ measurementWidth?: number | null | undefined;
3290
+ packageSizeId?: number | null | undefined;
3291
+ photoUrls?: string[] | null | undefined;
3292
+ size?: string | null | undefined;
3293
+ sizeId?: number | null | undefined;
3294
+ statusId?: number | null | undefined;
3295
+ title?: string | null | undefined;
3296
+ isDraft?: boolean | null | undefined;
3297
+ isArchived?: boolean | null | undefined;
3298
+ availableQuantity?: number | null | undefined;
3299
+ material?: number[] | null | undefined;
3300
+ manufacturerLabelling?: string | null | undefined;
3301
+ labels?: string[] | null | undefined;
3302
+ } | null | undefined;
3303
+ targetDate?: Date | null | undefined;
3304
+ };
3305
+ } | null | undefined;
3306
+ accountId?: string | null | undefined;
3307
+ requestId?: string | null | undefined;
3308
+ targetDate?: Date | null | undefined;
3309
+ }>, "many">>>;
3310
+ createdAt: z.ZodDate;
3311
+ updatedAt: z.ZodDate;
3312
+ }, "strip", z.ZodTypeAny, {
3313
+ userId: string | number;
3314
+ id: string | number;
3315
+ updatedAt: Date;
3316
+ name: string;
3317
+ createdAt: Date;
3318
+ sold: boolean;
3319
+ state?: number | null | undefined;
3320
+ colorIds?: number[] | null | undefined;
3321
+ description?: string | null | undefined;
3322
+ packageSizeId?: number | null | undefined;
3323
+ sizeId?: number | null | undefined;
3324
+ labels?: {
3325
+ itemId: string | number;
3326
+ labelId: string | number;
3327
+ label?: {
3328
+ id: string | number;
3329
+ name: string;
3330
+ createdAt: Date;
3331
+ isUserLabel: boolean;
3332
+ userId?: string | number | null | undefined;
3333
+ itemCount?: number | null | undefined;
3334
+ parentId?: unknown;
3335
+ } | null | undefined;
3336
+ }[] | null | undefined;
3337
+ files?: {
3338
+ itemId: string | number;
3339
+ fileId: string;
3340
+ index?: number | null | undefined;
3341
+ file?: {
3342
+ path: string;
3343
+ userId: string | number;
3344
+ id: string;
3345
+ createdAt: Date;
3346
+ signedUrl: string;
3347
+ } | null | undefined;
3348
+ }[] | null | undefined;
3349
+ fields?: {
3350
+ value: string;
3351
+ itemId: string | number;
3352
+ fieldId: string | number;
3353
+ }[] | null | undefined;
3354
+ sku?: string | null | undefined;
3355
+ categoryId?: number | null | undefined;
3356
+ brandId?: string | number | null | undefined;
3357
+ sex?: string | null | undefined;
3358
+ purchasePrice?: number | null | undefined;
3359
+ purchaseDate?: Date | null | undefined;
3360
+ purchasePlaceId?: string | number | null | undefined;
3361
+ purchased?: boolean | null | undefined;
3362
+ sellingPrice?: number | null | undefined;
3363
+ sellingDate?: Date | null | undefined;
3364
+ sellingPlaceId?: string | number | null | undefined;
3365
+ estimatedPrice?: number | null | undefined;
3366
+ fees?: {
3367
+ value: number;
3368
+ type: string;
3369
+ userId: string | number;
3370
+ id: string | number;
3371
+ updatedAt: Date;
3372
+ name: string;
3373
+ createdAt: Date;
3374
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
3375
+ startDate: Date;
3376
+ active: boolean;
3377
+ description?: string | null | undefined;
3378
+ itemId?: string | number | null | undefined;
3379
+ endDate?: Date | null | undefined;
3380
+ parentFeeId?: string | number | null | undefined;
3381
+ }[] | null | undefined;
3382
+ feesSum?: number | null | undefined;
3383
+ customerId?: string | number | null | undefined;
3384
+ customer?: {
3385
+ userId: string | number;
3386
+ id: string | number;
3387
+ email: string;
3388
+ firstName: string;
3389
+ lastName: string;
3390
+ birthDate: Date;
3391
+ idNumber: string;
3392
+ phone: string;
3393
+ iban: string;
3394
+ bic: string;
3395
+ phoneVerified: boolean;
3396
+ } | null | undefined;
3397
+ customerType?: string | null | undefined;
3398
+ customerPaid?: boolean | null | undefined;
3399
+ customerPaidDate?: Date | null | undefined;
3400
+ customerPaidType?: string | null | undefined;
3401
+ contractId?: string | number | null | undefined;
3402
+ lastHistory?: {
3403
+ 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";
3404
+ id: string;
3405
+ createdAt: Date;
3406
+ itemId: string | number;
3407
+ data?: {
3408
+ type: "ACTION_CANCELED";
3409
+ data: {
3410
+ targetItemHistoryId: string;
3411
+ };
3412
+ } | {
3413
+ type: "BUYER_PAID";
3414
+ data: {
3415
+ soldAccountId: string;
3416
+ soldOrderId: string;
3417
+ soldConversationId?: string | null | undefined;
3418
+ };
3419
+ } | {
3420
+ type: "DELIVERED";
3421
+ data: {
3422
+ soldAccountId: string;
3423
+ soldOrderId: string;
3424
+ soldConversationId?: string | null | undefined;
3425
+ };
3426
+ } | {
3427
+ type: "EMPTY";
3428
+ } | {
3429
+ type: "FAILED_TO_PUBLISH";
3430
+ data: {
3431
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3432
+ accountId?: string | null | undefined;
3433
+ reason?: string | null | undefined;
3434
+ fields?: {
3435
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3436
+ autoFixable: boolean;
3437
+ error?: string | null | undefined;
3438
+ }[] | null | undefined;
3439
+ itemHistoryId?: string | null | undefined;
3440
+ };
3441
+ } | {
3442
+ type: "IMAGE_PROCESSING_DONE";
3443
+ data: {
3444
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3445
+ variations?: {
3446
+ fileId: string;
3447
+ seed: number;
3448
+ phash: string;
3449
+ distanceOriginal: number;
3450
+ originalImageUrl: string;
3451
+ originalPhash: string;
3452
+ }[] | null | undefined;
3453
+ originalPhashes?: string[] | null | undefined;
3454
+ };
3455
+ } | {
3456
+ type: "IMPORTED";
3457
+ data: {
3458
+ post: {
3459
+ platformId: string;
3460
+ post: {
3461
+ status?: string | null | undefined;
3462
+ price?: number | null | undefined;
3463
+ currency?: string | null | undefined;
3464
+ brand?: string | null | undefined;
3465
+ catalog?: string | null | undefined;
3466
+ catalogId?: number | null | undefined;
3467
+ colors?: string[] | null | undefined;
3468
+ colorIds?: number[] | null | undefined;
3469
+ description?: string | null | undefined;
3470
+ measurementLength?: number | null | undefined;
3471
+ measurementWidth?: number | null | undefined;
3472
+ packageSizeId?: number | null | undefined;
3473
+ photoUrls?: string[] | null | undefined;
3474
+ size?: string | null | undefined;
3475
+ sizeId?: number | null | undefined;
3476
+ statusId?: number | null | undefined;
3477
+ title?: string | null | undefined;
3478
+ isDraft?: boolean | null | undefined;
3479
+ isArchived?: boolean | null | undefined;
3480
+ availableQuantity?: number | null | undefined;
3481
+ material?: number[] | null | undefined;
3482
+ manufacturerLabelling?: string | null | undefined;
3483
+ labels?: string[] | null | undefined;
3484
+ };
3485
+ createdAt?: Date | null | undefined;
3486
+ platformUrl?: string | null | undefined;
3487
+ };
3488
+ };
3489
+ } | {
3490
+ type: "LIFECYCLE_COMPLETED";
3491
+ data: {
3492
+ accountId: string;
3493
+ };
3494
+ } | {
3495
+ type: "LIFECYCLE_STARTED";
3496
+ data: {
3497
+ accountId: string;
3498
+ caseId: string;
3499
+ };
3500
+ } | {
3501
+ type: "PUBLISHED";
3502
+ data: {
3503
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3504
+ };
3505
+ } | {
3506
+ type: "REPUBLISHING";
3507
+ data: {
3508
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3509
+ publishingDate?: Date | null | undefined;
3510
+ priceDropPayload?: {
3511
+ value: number;
3512
+ type: "PERCENTAGE" | "ABSOLUTE";
3513
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3514
+ roundStep?: number | null | undefined;
3515
+ maxRounds?: number | null | undefined;
3516
+ } | null | undefined;
3517
+ isTransfer?: boolean | null | undefined;
3518
+ targetAccountId?: string | null | undefined;
3519
+ };
3520
+ } | {
3521
+ type: "REPUBLISHING_RETRY";
3522
+ data: {
3523
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3524
+ attemptNumber: number;
3525
+ maxAttempts: number;
3526
+ previousHistoryId: string;
3527
+ originalFailureDate: Date;
3528
+ fields?: {
3529
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3530
+ autoFixable: boolean;
3531
+ error?: string | null | undefined;
3532
+ }[] | null | undefined;
3533
+ priceDropPayload?: {
3534
+ value: number;
3535
+ type: "PERCENTAGE" | "ABSOLUTE";
3536
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3537
+ roundStep?: number | null | undefined;
3538
+ maxRounds?: number | null | undefined;
3539
+ } | null | undefined;
3540
+ };
3541
+ } | {
3542
+ type: "SCHEDULED";
3543
+ data: {
3544
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3545
+ publishingDate?: Date | null | undefined;
3546
+ };
3547
+ } | {
3548
+ type: "SCHEDULED_RETRY";
3549
+ data: {
3550
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3551
+ attemptNumber: number;
3552
+ maxAttempts: number;
3553
+ previousHistoryId: string;
3554
+ originalFailureDate: Date;
3555
+ fields?: {
3556
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3557
+ autoFixable: boolean;
3558
+ error?: string | null | undefined;
3559
+ }[] | null | undefined;
3560
+ };
3561
+ } | {
3562
+ type: "UPDATED";
3563
+ data: {
3564
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3565
+ };
3566
+ } | {
3567
+ type: "UPDATING";
3568
+ data: {
3569
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3570
+ post?: {
3571
+ status?: string | null | undefined;
3572
+ price?: number | null | undefined;
3573
+ currency?: string | null | undefined;
3574
+ brand?: string | null | undefined;
3575
+ catalog?: string | null | undefined;
3576
+ catalogId?: number | null | undefined;
3577
+ colors?: string[] | null | undefined;
3578
+ colorIds?: number[] | null | undefined;
3579
+ description?: string | null | undefined;
3580
+ measurementLength?: number | null | undefined;
3581
+ measurementWidth?: number | null | undefined;
3582
+ packageSizeId?: number | null | undefined;
3583
+ photoUrls?: string[] | null | undefined;
3584
+ size?: string | null | undefined;
3585
+ sizeId?: number | null | undefined;
3586
+ statusId?: number | null | undefined;
3587
+ title?: string | null | undefined;
3588
+ isDraft?: boolean | null | undefined;
3589
+ isArchived?: boolean | null | undefined;
3590
+ availableQuantity?: number | null | undefined;
3591
+ material?: number[] | null | undefined;
3592
+ manufacturerLabelling?: string | null | undefined;
3593
+ labels?: string[] | null | undefined;
3594
+ } | null | undefined;
3595
+ targetDate?: Date | null | undefined;
3596
+ };
3597
+ } | null | undefined;
3598
+ accountId?: string | null | undefined;
3599
+ requestId?: string | null | undefined;
3600
+ targetDate?: Date | null | undefined;
3601
+ } | null | undefined;
3602
+ platforms?: {
3603
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
3604
+ id: string;
3605
+ updatedAt: Date;
3606
+ createdAt: Date;
3607
+ accountId: string;
3608
+ itemId: string | number;
3609
+ platformId: string;
3610
+ platformUrl: string;
3611
+ platformPrice: number;
3612
+ publishedAt: Date;
3613
+ conversationId?: string | null | undefined;
3614
+ account?: {
3615
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
3616
+ userId: string | number;
3617
+ name: string;
3618
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3619
+ accountId: string;
3620
+ locale?: string | null | undefined;
3621
+ night?: {
3622
+ startsAt: Date;
3623
+ endsAt: Date;
3624
+ } | null | undefined;
3625
+ favoritesMaxDelay?: number | null | undefined;
3626
+ ordersMaxDelay?: number | null | undefined;
3627
+ conversationsMaxDelay?: number | null | undefined;
3628
+ } | null | undefined;
3629
+ viewsCount?: number | null | undefined;
3630
+ favoritesCount?: number | null | undefined;
3631
+ }[] | null | undefined;
3632
+ history?: {
3633
+ 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";
3634
+ id: string;
3635
+ createdAt: Date;
3636
+ itemId: string | number;
3637
+ data?: {
3638
+ type: "ACTION_CANCELED";
3639
+ data: {
3640
+ targetItemHistoryId: string;
3641
+ };
3642
+ } | {
3643
+ type: "BUYER_PAID";
3644
+ data: {
3645
+ soldAccountId: string;
3646
+ soldOrderId: string;
3647
+ soldConversationId?: string | null | undefined;
3648
+ };
3649
+ } | {
3650
+ type: "DELIVERED";
3651
+ data: {
3652
+ soldAccountId: string;
3653
+ soldOrderId: string;
3654
+ soldConversationId?: string | null | undefined;
3655
+ };
3656
+ } | {
3657
+ type: "EMPTY";
3658
+ } | {
3659
+ type: "FAILED_TO_PUBLISH";
3660
+ data: {
3661
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3662
+ accountId?: string | null | undefined;
3663
+ reason?: string | null | undefined;
3664
+ fields?: {
3665
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3666
+ autoFixable: boolean;
3667
+ error?: string | null | undefined;
3668
+ }[] | null | undefined;
3669
+ itemHistoryId?: string | null | undefined;
3670
+ };
3671
+ } | {
3672
+ type: "IMAGE_PROCESSING_DONE";
3673
+ data: {
3674
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3675
+ variations?: {
3676
+ fileId: string;
3677
+ seed: number;
3678
+ phash: string;
3679
+ distanceOriginal: number;
3680
+ originalImageUrl: string;
3681
+ originalPhash: string;
3682
+ }[] | null | undefined;
3683
+ originalPhashes?: string[] | null | undefined;
3684
+ };
3685
+ } | {
3686
+ type: "IMPORTED";
3687
+ data: {
3688
+ post: {
3689
+ platformId: string;
3690
+ post: {
3691
+ status?: string | null | undefined;
3692
+ price?: number | null | undefined;
3693
+ currency?: string | null | undefined;
3694
+ brand?: string | null | undefined;
3695
+ catalog?: string | null | undefined;
3696
+ catalogId?: number | null | undefined;
3697
+ colors?: string[] | null | undefined;
3698
+ colorIds?: number[] | null | undefined;
3699
+ description?: string | null | undefined;
3700
+ measurementLength?: number | null | undefined;
3701
+ measurementWidth?: number | null | undefined;
3702
+ packageSizeId?: number | null | undefined;
3703
+ photoUrls?: string[] | null | undefined;
3704
+ size?: string | null | undefined;
3705
+ sizeId?: number | null | undefined;
3706
+ statusId?: number | null | undefined;
3707
+ title?: string | null | undefined;
3708
+ isDraft?: boolean | null | undefined;
3709
+ isArchived?: boolean | null | undefined;
3710
+ availableQuantity?: number | null | undefined;
3711
+ material?: number[] | null | undefined;
3712
+ manufacturerLabelling?: string | null | undefined;
3713
+ labels?: string[] | null | undefined;
3714
+ };
3715
+ createdAt?: Date | null | undefined;
3716
+ platformUrl?: string | null | undefined;
3717
+ };
3718
+ };
3719
+ } | {
3720
+ type: "LIFECYCLE_COMPLETED";
3721
+ data: {
3722
+ accountId: string;
3723
+ };
3724
+ } | {
3725
+ type: "LIFECYCLE_STARTED";
3726
+ data: {
3727
+ accountId: string;
3728
+ caseId: string;
3729
+ };
3730
+ } | {
3731
+ type: "PUBLISHED";
3732
+ data: {
3733
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3734
+ };
3735
+ } | {
3736
+ type: "REPUBLISHING";
3737
+ data: {
3738
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3739
+ publishingDate?: Date | null | undefined;
3740
+ priceDropPayload?: {
3741
+ value: number;
3742
+ type: "PERCENTAGE" | "ABSOLUTE";
3743
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3744
+ roundStep?: number | null | undefined;
3745
+ maxRounds?: number | null | undefined;
3746
+ } | null | undefined;
3747
+ isTransfer?: boolean | null | undefined;
3748
+ targetAccountId?: string | null | undefined;
3749
+ };
3750
+ } | {
3751
+ type: "REPUBLISHING_RETRY";
3752
+ data: {
3753
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3754
+ attemptNumber: number;
3755
+ maxAttempts: number;
3756
+ previousHistoryId: string;
3757
+ originalFailureDate: Date;
3758
+ fields?: {
3759
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3760
+ autoFixable: boolean;
3761
+ error?: string | null | undefined;
3762
+ }[] | null | undefined;
3763
+ priceDropPayload?: {
3764
+ value: number;
3765
+ type: "PERCENTAGE" | "ABSOLUTE";
3766
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3767
+ roundStep?: number | null | undefined;
3768
+ maxRounds?: number | null | undefined;
3769
+ } | null | undefined;
3770
+ };
3771
+ } | {
3772
+ type: "SCHEDULED";
3773
+ data: {
3774
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3775
+ publishingDate?: Date | null | undefined;
3776
+ };
3777
+ } | {
3778
+ type: "SCHEDULED_RETRY";
3779
+ data: {
3780
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3781
+ attemptNumber: number;
3782
+ maxAttempts: number;
3783
+ previousHistoryId: string;
3784
+ originalFailureDate: Date;
3785
+ fields?: {
3786
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3787
+ autoFixable: boolean;
3788
+ error?: string | null | undefined;
3789
+ }[] | null | undefined;
3790
+ };
3791
+ } | {
3792
+ type: "UPDATED";
3793
+ data: {
3794
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3795
+ };
3796
+ } | {
3797
+ type: "UPDATING";
3798
+ data: {
3799
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3800
+ post?: {
3801
+ status?: string | null | undefined;
3802
+ price?: number | null | undefined;
3803
+ currency?: string | null | undefined;
3804
+ brand?: string | null | undefined;
3805
+ catalog?: string | null | undefined;
3806
+ catalogId?: number | null | undefined;
3807
+ colors?: string[] | null | undefined;
3808
+ colorIds?: number[] | null | undefined;
3809
+ description?: string | null | undefined;
3810
+ measurementLength?: number | null | undefined;
3811
+ measurementWidth?: number | null | undefined;
3812
+ packageSizeId?: number | null | undefined;
3813
+ photoUrls?: string[] | null | undefined;
3814
+ size?: string | null | undefined;
3815
+ sizeId?: number | null | undefined;
3816
+ statusId?: number | null | undefined;
3817
+ title?: string | null | undefined;
3818
+ isDraft?: boolean | null | undefined;
3819
+ isArchived?: boolean | null | undefined;
3820
+ availableQuantity?: number | null | undefined;
3821
+ material?: number[] | null | undefined;
3822
+ manufacturerLabelling?: string | null | undefined;
3823
+ labels?: string[] | null | undefined;
3824
+ } | null | undefined;
3825
+ targetDate?: Date | null | undefined;
3826
+ };
3827
+ } | null | undefined;
3828
+ accountId?: string | null | undefined;
3829
+ requestId?: string | null | undefined;
3830
+ targetDate?: Date | null | undefined;
3831
+ }[] | null | undefined;
3832
+ }, {
3833
+ userId: string | number;
3834
+ id: string | number;
3835
+ updatedAt: Date;
3836
+ name: string;
3837
+ createdAt: Date;
3838
+ sold: boolean;
3839
+ state?: number | null | undefined;
3840
+ colorIds?: number[] | null | undefined;
3841
+ description?: string | null | undefined;
3842
+ packageSizeId?: number | null | undefined;
3843
+ sizeId?: number | null | undefined;
3844
+ labels?: {
3845
+ itemId: string | number;
3846
+ labelId: string | number;
3847
+ label?: {
3848
+ id: string | number;
3849
+ name: string;
3850
+ createdAt: Date;
3851
+ isUserLabel: boolean;
3852
+ userId?: string | number | null | undefined;
3853
+ itemCount?: number | null | undefined;
3854
+ parentId?: unknown;
3855
+ } | null | undefined;
3856
+ }[] | null | undefined;
3857
+ files?: {
3858
+ itemId: string | number;
3859
+ fileId: string;
3860
+ index?: number | null | undefined;
3861
+ file?: {
3862
+ path: string;
3863
+ userId: string | number;
3864
+ id: string;
3865
+ createdAt: Date;
3866
+ signedUrl: string;
3867
+ } | null | undefined;
3868
+ }[] | null | undefined;
3869
+ fields?: {
3870
+ value: string;
3871
+ itemId: string | number;
3872
+ fieldId: string | number;
3873
+ }[] | null | undefined;
3874
+ sku?: string | null | undefined;
3875
+ categoryId?: number | null | undefined;
3876
+ brandId?: string | number | null | undefined;
3877
+ sex?: string | null | undefined;
3878
+ purchasePrice?: number | null | undefined;
3879
+ purchaseDate?: Date | null | undefined;
3880
+ purchasePlaceId?: string | number | null | undefined;
3881
+ purchased?: boolean | null | undefined;
3882
+ sellingPrice?: number | null | undefined;
3883
+ sellingDate?: Date | null | undefined;
3884
+ sellingPlaceId?: string | number | null | undefined;
3885
+ estimatedPrice?: number | null | undefined;
3886
+ fees?: {
3887
+ value: number;
3888
+ type: string;
3889
+ userId: string | number;
3890
+ id: string | number;
3891
+ updatedAt: Date;
3892
+ name: string;
3893
+ createdAt: Date;
3894
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
3895
+ startDate: Date;
3896
+ active: boolean;
3897
+ description?: string | null | undefined;
3898
+ itemId?: string | number | null | undefined;
3899
+ endDate?: Date | null | undefined;
3900
+ parentFeeId?: string | number | null | undefined;
3901
+ }[] | null | undefined;
3902
+ feesSum?: number | null | undefined;
3903
+ customerId?: string | number | null | undefined;
3904
+ customer?: {
3905
+ userId: string | number;
3906
+ id: string | number;
3907
+ email: string;
3908
+ firstName: string;
3909
+ lastName: string;
3910
+ birthDate: Date;
3911
+ idNumber: string;
3912
+ phone: string;
3913
+ iban: string;
3914
+ bic: string;
3915
+ phoneVerified: boolean;
3916
+ } | null | undefined;
3917
+ customerType?: string | null | undefined;
3918
+ customerPaid?: boolean | null | undefined;
3919
+ customerPaidDate?: Date | null | undefined;
3920
+ customerPaidType?: string | null | undefined;
3921
+ contractId?: string | number | null | undefined;
3922
+ lastHistory?: {
3923
+ 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";
3924
+ id: string;
3925
+ createdAt: Date;
3926
+ itemId: string | number;
3927
+ data?: {
3928
+ type: "ACTION_CANCELED";
3929
+ data: {
3930
+ targetItemHistoryId: string;
3931
+ };
3932
+ } | {
3933
+ type: "BUYER_PAID";
3934
+ data: {
3935
+ soldAccountId: string;
3936
+ soldOrderId: string;
3937
+ soldConversationId?: string | null | undefined;
3938
+ };
3939
+ } | {
3940
+ type: "DELIVERED";
3941
+ data: {
3942
+ soldAccountId: string;
3943
+ soldOrderId: string;
3944
+ soldConversationId?: string | null | undefined;
3945
+ };
3946
+ } | {
3947
+ type: "EMPTY";
3948
+ } | {
3949
+ type: "FAILED_TO_PUBLISH";
3950
+ data: {
3951
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3952
+ accountId?: string | null | undefined;
3953
+ reason?: string | null | undefined;
3954
+ fields?: {
3955
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3956
+ autoFixable: boolean;
3957
+ error?: string | null | undefined;
3958
+ }[] | null | undefined;
3959
+ itemHistoryId?: string | null | undefined;
3960
+ };
3961
+ } | {
3962
+ type: "IMAGE_PROCESSING_DONE";
3963
+ data: {
3964
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3965
+ variations?: {
3966
+ fileId: string;
3967
+ seed: number;
3968
+ phash: string;
3969
+ distanceOriginal: number;
3970
+ originalImageUrl: string;
3971
+ originalPhash: string;
3972
+ }[] | null | undefined;
3973
+ originalPhashes?: string[] | null | undefined;
3974
+ };
3975
+ } | {
3976
+ type: "IMPORTED";
3977
+ data: {
3978
+ post: {
3979
+ platformId: string;
3980
+ post: {
3981
+ status?: string | null | undefined;
3982
+ price?: number | null | undefined;
3983
+ currency?: string | null | undefined;
3984
+ brand?: string | null | undefined;
3985
+ catalog?: string | null | undefined;
3986
+ catalogId?: number | null | undefined;
3987
+ colors?: string[] | null | undefined;
3988
+ colorIds?: number[] | null | undefined;
3989
+ description?: string | null | undefined;
3990
+ measurementLength?: number | null | undefined;
3991
+ measurementWidth?: number | null | undefined;
3992
+ packageSizeId?: number | null | undefined;
3993
+ photoUrls?: string[] | null | undefined;
3994
+ size?: string | null | undefined;
3995
+ sizeId?: number | null | undefined;
3996
+ statusId?: number | null | undefined;
3997
+ title?: string | null | undefined;
3998
+ isDraft?: boolean | null | undefined;
3999
+ isArchived?: boolean | null | undefined;
4000
+ availableQuantity?: number | null | undefined;
4001
+ material?: number[] | null | undefined;
4002
+ manufacturerLabelling?: string | null | undefined;
4003
+ labels?: string[] | null | undefined;
4004
+ };
4005
+ createdAt?: Date | null | undefined;
4006
+ platformUrl?: string | null | undefined;
4007
+ };
4008
+ };
4009
+ } | {
4010
+ type: "LIFECYCLE_COMPLETED";
4011
+ data: {
4012
+ accountId: string;
4013
+ };
4014
+ } | {
4015
+ type: "LIFECYCLE_STARTED";
4016
+ data: {
4017
+ accountId: string;
4018
+ caseId: string;
4019
+ };
4020
+ } | {
4021
+ type: "PUBLISHED";
4022
+ data: {
4023
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4024
+ };
4025
+ } | {
4026
+ type: "REPUBLISHING";
4027
+ data: {
4028
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4029
+ publishingDate?: Date | null | undefined;
4030
+ priceDropPayload?: {
4031
+ value: number;
4032
+ type: "PERCENTAGE" | "ABSOLUTE";
4033
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4034
+ roundStep?: number | null | undefined;
4035
+ maxRounds?: number | null | undefined;
4036
+ } | null | undefined;
4037
+ isTransfer?: boolean | null | undefined;
4038
+ targetAccountId?: string | null | undefined;
4039
+ };
4040
+ } | {
4041
+ type: "REPUBLISHING_RETRY";
4042
+ data: {
4043
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4044
+ attemptNumber: number;
4045
+ maxAttempts: number;
4046
+ previousHistoryId: string;
4047
+ originalFailureDate: Date;
4048
+ fields?: {
4049
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4050
+ autoFixable: boolean;
4051
+ error?: string | null | undefined;
4052
+ }[] | null | undefined;
4053
+ priceDropPayload?: {
4054
+ value: number;
4055
+ type: "PERCENTAGE" | "ABSOLUTE";
4056
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4057
+ roundStep?: number | null | undefined;
4058
+ maxRounds?: number | null | undefined;
4059
+ } | null | undefined;
4060
+ };
4061
+ } | {
4062
+ type: "SCHEDULED";
4063
+ data: {
4064
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4065
+ publishingDate?: Date | null | undefined;
4066
+ };
4067
+ } | {
4068
+ type: "SCHEDULED_RETRY";
4069
+ data: {
4070
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4071
+ attemptNumber: number;
4072
+ maxAttempts: number;
4073
+ previousHistoryId: string;
4074
+ originalFailureDate: Date;
4075
+ fields?: {
4076
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4077
+ autoFixable: boolean;
4078
+ error?: string | null | undefined;
4079
+ }[] | null | undefined;
4080
+ };
4081
+ } | {
4082
+ type: "UPDATED";
4083
+ data: {
4084
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4085
+ };
4086
+ } | {
4087
+ type: "UPDATING";
4088
+ data: {
4089
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4090
+ post?: {
4091
+ status?: string | null | undefined;
4092
+ price?: number | null | undefined;
4093
+ currency?: string | null | undefined;
4094
+ brand?: string | null | undefined;
4095
+ catalog?: string | null | undefined;
4096
+ catalogId?: number | null | undefined;
4097
+ colors?: string[] | null | undefined;
4098
+ colorIds?: number[] | null | undefined;
4099
+ description?: string | null | undefined;
4100
+ measurementLength?: number | null | undefined;
4101
+ measurementWidth?: number | null | undefined;
4102
+ packageSizeId?: number | null | undefined;
4103
+ photoUrls?: string[] | null | undefined;
4104
+ size?: string | null | undefined;
4105
+ sizeId?: number | null | undefined;
4106
+ statusId?: number | null | undefined;
4107
+ title?: string | null | undefined;
4108
+ isDraft?: boolean | null | undefined;
4109
+ isArchived?: boolean | null | undefined;
4110
+ availableQuantity?: number | null | undefined;
4111
+ material?: number[] | null | undefined;
4112
+ manufacturerLabelling?: string | null | undefined;
4113
+ labels?: string[] | null | undefined;
4114
+ } | null | undefined;
4115
+ targetDate?: Date | null | undefined;
4116
+ };
4117
+ } | null | undefined;
4118
+ accountId?: string | null | undefined;
4119
+ requestId?: string | null | undefined;
4120
+ targetDate?: Date | null | undefined;
4121
+ } | null | undefined;
4122
+ platforms?: {
4123
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
4124
+ id: string;
4125
+ updatedAt: Date;
4126
+ createdAt: Date;
4127
+ accountId: string;
4128
+ itemId: string | number;
4129
+ platformId: string;
4130
+ platformUrl: string;
4131
+ platformPrice: number;
4132
+ publishedAt: Date;
4133
+ conversationId?: string | null | undefined;
4134
+ account?: {
4135
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
4136
+ userId: string | number;
4137
+ name: string;
4138
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4139
+ accountId: string;
4140
+ locale?: string | null | undefined;
4141
+ night?: {
4142
+ startsAt: Date;
4143
+ endsAt: Date;
4144
+ } | null | undefined;
4145
+ favoritesMaxDelay?: number | null | undefined;
4146
+ ordersMaxDelay?: number | null | undefined;
4147
+ conversationsMaxDelay?: number | null | undefined;
4148
+ } | null | undefined;
4149
+ viewsCount?: number | null | undefined;
4150
+ favoritesCount?: number | null | undefined;
4151
+ }[] | null | undefined;
4152
+ history?: {
4153
+ 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";
4154
+ id: string;
4155
+ createdAt: Date;
4156
+ itemId: string | number;
4157
+ data?: {
4158
+ type: "ACTION_CANCELED";
4159
+ data: {
4160
+ targetItemHistoryId: string;
4161
+ };
4162
+ } | {
4163
+ type: "BUYER_PAID";
4164
+ data: {
4165
+ soldAccountId: string;
4166
+ soldOrderId: string;
4167
+ soldConversationId?: string | null | undefined;
4168
+ };
4169
+ } | {
4170
+ type: "DELIVERED";
4171
+ data: {
4172
+ soldAccountId: string;
4173
+ soldOrderId: string;
4174
+ soldConversationId?: string | null | undefined;
4175
+ };
4176
+ } | {
4177
+ type: "EMPTY";
4178
+ } | {
4179
+ type: "FAILED_TO_PUBLISH";
4180
+ data: {
4181
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4182
+ accountId?: string | null | undefined;
4183
+ reason?: string | null | undefined;
4184
+ fields?: {
4185
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4186
+ autoFixable: boolean;
4187
+ error?: string | null | undefined;
4188
+ }[] | null | undefined;
4189
+ itemHistoryId?: string | null | undefined;
4190
+ };
4191
+ } | {
4192
+ type: "IMAGE_PROCESSING_DONE";
4193
+ data: {
4194
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4195
+ variations?: {
1678
4196
  fileId: string;
1679
4197
  seed: number;
1680
4198
  phash: string;
@@ -1790,42 +4308,52 @@ export declare const ItemUpdateSchema: z.ZodObject<{
1790
4308
  error?: string | null | undefined;
1791
4309
  }[] | null | undefined;
1792
4310
  };
4311
+ } | {
4312
+ type: "UPDATED";
4313
+ data: {
4314
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4315
+ };
4316
+ } | {
4317
+ type: "UPDATING";
4318
+ data: {
4319
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4320
+ post?: {
4321
+ status?: string | null | undefined;
4322
+ price?: number | null | undefined;
4323
+ currency?: string | null | undefined;
4324
+ brand?: string | null | undefined;
4325
+ catalog?: string | null | undefined;
4326
+ catalogId?: number | null | undefined;
4327
+ colors?: string[] | null | undefined;
4328
+ colorIds?: number[] | null | undefined;
4329
+ description?: string | null | undefined;
4330
+ measurementLength?: number | null | undefined;
4331
+ measurementWidth?: number | null | undefined;
4332
+ packageSizeId?: number | null | undefined;
4333
+ photoUrls?: string[] | null | undefined;
4334
+ size?: string | null | undefined;
4335
+ sizeId?: number | null | undefined;
4336
+ statusId?: number | null | undefined;
4337
+ title?: string | null | undefined;
4338
+ isDraft?: boolean | null | undefined;
4339
+ isArchived?: boolean | null | undefined;
4340
+ availableQuantity?: number | null | undefined;
4341
+ material?: number[] | null | undefined;
4342
+ manufacturerLabelling?: string | null | undefined;
4343
+ labels?: string[] | null | undefined;
4344
+ } | null | undefined;
4345
+ targetDate?: Date | null | undefined;
4346
+ };
1793
4347
  } | null | undefined;
1794
4348
  accountId?: string | null | undefined;
1795
4349
  requestId?: string | null | undefined;
1796
4350
  targetDate?: Date | null | undefined;
1797
- } | null | undefined;
1798
- platforms?: {
1799
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1800
- id: string;
1801
- updatedAt: Date;
1802
- createdAt: Date;
1803
- accountId: string;
1804
- itemId: string | number;
1805
- platformId: string;
1806
- platformUrl: string;
1807
- platformPrice: number;
1808
- publishedAt: Date;
1809
- conversationId?: string | null | undefined;
1810
- account?: {
1811
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
1812
- userId: string | number;
1813
- name: string;
1814
- platform: "ETSY" | "SHOPIFY" | "VINTED";
1815
- accountId: string;
1816
- locale?: string | null | undefined;
1817
- night?: {
1818
- startsAt: Date;
1819
- endsAt: Date;
1820
- } | null | undefined;
1821
- favoritesMaxDelay?: number | null | undefined;
1822
- ordersMaxDelay?: number | null | undefined;
1823
- conversationsMaxDelay?: number | null | undefined;
1824
- } | null | undefined;
1825
- viewsCount?: number | null | undefined;
1826
- favoritesCount?: number | null | undefined;
1827
4351
  }[] | null | undefined;
1828
- }, {
4352
+ }>;
4353
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4354
+ }, "strip", z.ZodTypeAny, {
4355
+ userId: string | number;
4356
+ item: {
1829
4357
  userId: string | number;
1830
4358
  id: string | number;
1831
4359
  updatedAt: Date;
@@ -1885,37 +4413,267 @@ export declare const ItemUpdateSchema: z.ZodObject<{
1885
4413
  userId: string | number;
1886
4414
  id: string | number;
1887
4415
  updatedAt: Date;
1888
- name: string;
4416
+ name: string;
4417
+ createdAt: Date;
4418
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
4419
+ startDate: Date;
4420
+ active: boolean;
4421
+ description?: string | null | undefined;
4422
+ itemId?: string | number | null | undefined;
4423
+ endDate?: Date | null | undefined;
4424
+ parentFeeId?: string | number | null | undefined;
4425
+ }[] | null | undefined;
4426
+ feesSum?: number | null | undefined;
4427
+ customerId?: string | number | null | undefined;
4428
+ customer?: {
4429
+ userId: string | number;
4430
+ id: string | number;
4431
+ email: string;
4432
+ firstName: string;
4433
+ lastName: string;
4434
+ birthDate: Date;
4435
+ idNumber: string;
4436
+ phone: string;
4437
+ iban: string;
4438
+ bic: string;
4439
+ phoneVerified: boolean;
4440
+ } | null | undefined;
4441
+ customerType?: string | null | undefined;
4442
+ customerPaid?: boolean | null | undefined;
4443
+ customerPaidDate?: Date | null | undefined;
4444
+ customerPaidType?: string | null | undefined;
4445
+ contractId?: string | number | null | undefined;
4446
+ lastHistory?: {
4447
+ 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";
4448
+ id: string;
4449
+ createdAt: Date;
4450
+ itemId: string | number;
4451
+ data?: {
4452
+ type: "ACTION_CANCELED";
4453
+ data: {
4454
+ targetItemHistoryId: string;
4455
+ };
4456
+ } | {
4457
+ type: "BUYER_PAID";
4458
+ data: {
4459
+ soldAccountId: string;
4460
+ soldOrderId: string;
4461
+ soldConversationId?: string | null | undefined;
4462
+ };
4463
+ } | {
4464
+ type: "DELIVERED";
4465
+ data: {
4466
+ soldAccountId: string;
4467
+ soldOrderId: string;
4468
+ soldConversationId?: string | null | undefined;
4469
+ };
4470
+ } | {
4471
+ type: "EMPTY";
4472
+ } | {
4473
+ type: "FAILED_TO_PUBLISH";
4474
+ data: {
4475
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4476
+ accountId?: string | null | undefined;
4477
+ reason?: string | null | undefined;
4478
+ fields?: {
4479
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4480
+ autoFixable: boolean;
4481
+ error?: string | null | undefined;
4482
+ }[] | null | undefined;
4483
+ itemHistoryId?: string | null | undefined;
4484
+ };
4485
+ } | {
4486
+ type: "IMAGE_PROCESSING_DONE";
4487
+ data: {
4488
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4489
+ variations?: {
4490
+ fileId: string;
4491
+ seed: number;
4492
+ phash: string;
4493
+ distanceOriginal: number;
4494
+ originalImageUrl: string;
4495
+ originalPhash: string;
4496
+ }[] | null | undefined;
4497
+ originalPhashes?: string[] | null | undefined;
4498
+ };
4499
+ } | {
4500
+ type: "IMPORTED";
4501
+ data: {
4502
+ post: {
4503
+ platformId: string;
4504
+ post: {
4505
+ status?: string | null | undefined;
4506
+ price?: number | null | undefined;
4507
+ currency?: string | null | undefined;
4508
+ brand?: string | null | undefined;
4509
+ catalog?: string | null | undefined;
4510
+ catalogId?: number | null | undefined;
4511
+ colors?: string[] | null | undefined;
4512
+ colorIds?: number[] | null | undefined;
4513
+ description?: string | null | undefined;
4514
+ measurementLength?: number | null | undefined;
4515
+ measurementWidth?: number | null | undefined;
4516
+ packageSizeId?: number | null | undefined;
4517
+ photoUrls?: string[] | null | undefined;
4518
+ size?: string | null | undefined;
4519
+ sizeId?: number | null | undefined;
4520
+ statusId?: number | null | undefined;
4521
+ title?: string | null | undefined;
4522
+ isDraft?: boolean | null | undefined;
4523
+ isArchived?: boolean | null | undefined;
4524
+ availableQuantity?: number | null | undefined;
4525
+ material?: number[] | null | undefined;
4526
+ manufacturerLabelling?: string | null | undefined;
4527
+ labels?: string[] | null | undefined;
4528
+ };
4529
+ createdAt?: Date | null | undefined;
4530
+ platformUrl?: string | null | undefined;
4531
+ };
4532
+ };
4533
+ } | {
4534
+ type: "LIFECYCLE_COMPLETED";
4535
+ data: {
4536
+ accountId: string;
4537
+ };
4538
+ } | {
4539
+ type: "LIFECYCLE_STARTED";
4540
+ data: {
4541
+ accountId: string;
4542
+ caseId: string;
4543
+ };
4544
+ } | {
4545
+ type: "PUBLISHED";
4546
+ data: {
4547
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4548
+ };
4549
+ } | {
4550
+ type: "REPUBLISHING";
4551
+ data: {
4552
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4553
+ publishingDate?: Date | null | undefined;
4554
+ priceDropPayload?: {
4555
+ value: number;
4556
+ type: "PERCENTAGE" | "ABSOLUTE";
4557
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4558
+ roundStep?: number | null | undefined;
4559
+ maxRounds?: number | null | undefined;
4560
+ } | null | undefined;
4561
+ isTransfer?: boolean | null | undefined;
4562
+ targetAccountId?: string | null | undefined;
4563
+ };
4564
+ } | {
4565
+ type: "REPUBLISHING_RETRY";
4566
+ data: {
4567
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4568
+ attemptNumber: number;
4569
+ maxAttempts: number;
4570
+ previousHistoryId: string;
4571
+ originalFailureDate: Date;
4572
+ fields?: {
4573
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4574
+ autoFixable: boolean;
4575
+ error?: string | null | undefined;
4576
+ }[] | null | undefined;
4577
+ priceDropPayload?: {
4578
+ value: number;
4579
+ type: "PERCENTAGE" | "ABSOLUTE";
4580
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4581
+ roundStep?: number | null | undefined;
4582
+ maxRounds?: number | null | undefined;
4583
+ } | null | undefined;
4584
+ };
4585
+ } | {
4586
+ type: "SCHEDULED";
4587
+ data: {
4588
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4589
+ publishingDate?: Date | null | undefined;
4590
+ };
4591
+ } | {
4592
+ type: "SCHEDULED_RETRY";
4593
+ data: {
4594
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4595
+ attemptNumber: number;
4596
+ maxAttempts: number;
4597
+ previousHistoryId: string;
4598
+ originalFailureDate: Date;
4599
+ fields?: {
4600
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4601
+ autoFixable: boolean;
4602
+ error?: string | null | undefined;
4603
+ }[] | null | undefined;
4604
+ };
4605
+ } | {
4606
+ type: "UPDATED";
4607
+ data: {
4608
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4609
+ };
4610
+ } | {
4611
+ type: "UPDATING";
4612
+ data: {
4613
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4614
+ post?: {
4615
+ status?: string | null | undefined;
4616
+ price?: number | null | undefined;
4617
+ currency?: string | null | undefined;
4618
+ brand?: string | null | undefined;
4619
+ catalog?: string | null | undefined;
4620
+ catalogId?: number | null | undefined;
4621
+ colors?: string[] | null | undefined;
4622
+ colorIds?: number[] | null | undefined;
4623
+ description?: string | null | undefined;
4624
+ measurementLength?: number | null | undefined;
4625
+ measurementWidth?: number | null | undefined;
4626
+ packageSizeId?: number | null | undefined;
4627
+ photoUrls?: string[] | null | undefined;
4628
+ size?: string | null | undefined;
4629
+ sizeId?: number | null | undefined;
4630
+ statusId?: number | null | undefined;
4631
+ title?: string | null | undefined;
4632
+ isDraft?: boolean | null | undefined;
4633
+ isArchived?: boolean | null | undefined;
4634
+ availableQuantity?: number | null | undefined;
4635
+ material?: number[] | null | undefined;
4636
+ manufacturerLabelling?: string | null | undefined;
4637
+ labels?: string[] | null | undefined;
4638
+ } | null | undefined;
4639
+ targetDate?: Date | null | undefined;
4640
+ };
4641
+ } | null | undefined;
4642
+ accountId?: string | null | undefined;
4643
+ requestId?: string | null | undefined;
4644
+ targetDate?: Date | null | undefined;
4645
+ } | null | undefined;
4646
+ platforms?: {
4647
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
4648
+ id: string;
4649
+ updatedAt: Date;
1889
4650
  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;
4651
+ accountId: string;
4652
+ itemId: string | number;
4653
+ platformId: string;
4654
+ platformUrl: string;
4655
+ platformPrice: number;
4656
+ publishedAt: Date;
4657
+ conversationId?: string | null | undefined;
4658
+ account?: {
4659
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
4660
+ userId: string | number;
4661
+ name: string;
4662
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4663
+ accountId: string;
4664
+ locale?: string | null | undefined;
4665
+ night?: {
4666
+ startsAt: Date;
4667
+ endsAt: Date;
4668
+ } | null | undefined;
4669
+ favoritesMaxDelay?: number | null | undefined;
4670
+ ordersMaxDelay?: number | null | undefined;
4671
+ conversationsMaxDelay?: number | null | undefined;
4672
+ } | null | undefined;
4673
+ viewsCount?: number | null | undefined;
4674
+ favoritesCount?: number | null | undefined;
1897
4675
  }[] | 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?: {
4676
+ history?: {
1919
4677
  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
4678
  id: string;
1921
4679
  createdAt: Date;
@@ -2074,44 +4832,50 @@ export declare const ItemUpdateSchema: z.ZodObject<{
2074
4832
  error?: string | null | undefined;
2075
4833
  }[] | null | undefined;
2076
4834
  };
4835
+ } | {
4836
+ type: "UPDATED";
4837
+ data: {
4838
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4839
+ };
4840
+ } | {
4841
+ type: "UPDATING";
4842
+ data: {
4843
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4844
+ post?: {
4845
+ status?: string | null | undefined;
4846
+ price?: number | null | undefined;
4847
+ currency?: string | null | undefined;
4848
+ brand?: string | null | undefined;
4849
+ catalog?: string | null | undefined;
4850
+ catalogId?: number | null | undefined;
4851
+ colors?: string[] | null | undefined;
4852
+ colorIds?: number[] | null | undefined;
4853
+ description?: string | null | undefined;
4854
+ measurementLength?: number | null | undefined;
4855
+ measurementWidth?: number | null | undefined;
4856
+ packageSizeId?: number | null | undefined;
4857
+ photoUrls?: string[] | null | undefined;
4858
+ size?: string | null | undefined;
4859
+ sizeId?: number | null | undefined;
4860
+ statusId?: number | null | undefined;
4861
+ title?: string | null | undefined;
4862
+ isDraft?: boolean | null | undefined;
4863
+ isArchived?: boolean | null | undefined;
4864
+ availableQuantity?: number | null | undefined;
4865
+ material?: number[] | null | undefined;
4866
+ manufacturerLabelling?: string | null | undefined;
4867
+ labels?: string[] | null | undefined;
4868
+ } | null | undefined;
4869
+ targetDate?: Date | null | undefined;
4870
+ };
2077
4871
  } | null | undefined;
2078
4872
  accountId?: string | null | undefined;
2079
4873
  requestId?: string | null | undefined;
2080
4874
  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
4875
  }[] | null | undefined;
2112
- }>;
2113
- deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2114
- }, "strip", z.ZodTypeAny, {
4876
+ };
4877
+ deleted?: boolean | null | undefined;
4878
+ }, {
2115
4879
  userId: string | number;
2116
4880
  item: {
2117
4881
  userId: string | number;
@@ -2362,6 +5126,42 @@ export declare const ItemUpdateSchema: z.ZodObject<{
2362
5126
  error?: string | null | undefined;
2363
5127
  }[] | null | undefined;
2364
5128
  };
5129
+ } | {
5130
+ type: "UPDATED";
5131
+ data: {
5132
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5133
+ };
5134
+ } | {
5135
+ type: "UPDATING";
5136
+ data: {
5137
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5138
+ post?: {
5139
+ status?: string | null | undefined;
5140
+ price?: number | null | undefined;
5141
+ currency?: string | null | undefined;
5142
+ brand?: string | null | undefined;
5143
+ catalog?: string | null | undefined;
5144
+ catalogId?: number | null | undefined;
5145
+ colors?: string[] | null | undefined;
5146
+ colorIds?: number[] | null | undefined;
5147
+ description?: string | null | undefined;
5148
+ measurementLength?: number | null | undefined;
5149
+ measurementWidth?: number | null | undefined;
5150
+ packageSizeId?: number | null | undefined;
5151
+ photoUrls?: string[] | null | undefined;
5152
+ size?: string | null | undefined;
5153
+ sizeId?: number | null | undefined;
5154
+ statusId?: number | null | undefined;
5155
+ title?: string | null | undefined;
5156
+ isDraft?: boolean | null | undefined;
5157
+ isArchived?: boolean | null | undefined;
5158
+ availableQuantity?: number | null | undefined;
5159
+ material?: number[] | null | undefined;
5160
+ manufacturerLabelling?: string | null | undefined;
5161
+ labels?: string[] | null | undefined;
5162
+ } | null | undefined;
5163
+ targetDate?: Date | null | undefined;
5164
+ };
2365
5165
  } | null | undefined;
2366
5166
  accountId?: string | null | undefined;
2367
5167
  requestId?: string | null | undefined;
@@ -2397,101 +5197,7 @@ export declare const ItemUpdateSchema: z.ZodObject<{
2397
5197
  viewsCount?: number | null | undefined;
2398
5198
  favoritesCount?: number | null | undefined;
2399
5199
  }[] | null | undefined;
2400
- };
2401
- deleted?: boolean | null | undefined;
2402
- }, {
2403
- userId: string | number;
2404
- item: {
2405
- userId: string | number;
2406
- id: string | number;
2407
- updatedAt: Date;
2408
- name: string;
2409
- createdAt: Date;
2410
- sold: boolean;
2411
- state?: number | null | undefined;
2412
- colorIds?: number[] | null | undefined;
2413
- description?: string | null | undefined;
2414
- packageSizeId?: number | null | undefined;
2415
- sizeId?: number | null | undefined;
2416
- labels?: {
2417
- itemId: string | number;
2418
- labelId: string | number;
2419
- label?: {
2420
- id: string | number;
2421
- name: string;
2422
- createdAt: Date;
2423
- isUserLabel: boolean;
2424
- userId?: string | number | null | undefined;
2425
- itemCount?: number | null | undefined;
2426
- parentId?: unknown;
2427
- } | null | undefined;
2428
- }[] | null | undefined;
2429
- files?: {
2430
- itemId: string | number;
2431
- fileId: string;
2432
- index?: number | null | undefined;
2433
- file?: {
2434
- path: string;
2435
- userId: string | number;
2436
- id: string;
2437
- createdAt: Date;
2438
- signedUrl: string;
2439
- } | null | undefined;
2440
- }[] | null | undefined;
2441
- fields?: {
2442
- value: string;
2443
- itemId: string | number;
2444
- fieldId: string | number;
2445
- }[] | null | undefined;
2446
- sku?: string | null | undefined;
2447
- categoryId?: number | null | undefined;
2448
- brandId?: string | number | null | undefined;
2449
- sex?: string | null | undefined;
2450
- purchasePrice?: number | null | undefined;
2451
- purchaseDate?: Date | null | undefined;
2452
- purchasePlaceId?: string | number | null | undefined;
2453
- purchased?: boolean | null | undefined;
2454
- sellingPrice?: number | null | undefined;
2455
- sellingDate?: Date | null | undefined;
2456
- sellingPlaceId?: string | number | null | undefined;
2457
- estimatedPrice?: number | null | undefined;
2458
- fees?: {
2459
- value: number;
2460
- type: string;
2461
- userId: string | number;
2462
- id: string | number;
2463
- updatedAt: Date;
2464
- name: string;
2465
- createdAt: Date;
2466
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
2467
- startDate: Date;
2468
- active: boolean;
2469
- description?: string | null | undefined;
2470
- itemId?: string | number | null | undefined;
2471
- endDate?: Date | null | undefined;
2472
- parentFeeId?: string | number | null | undefined;
2473
- }[] | null | undefined;
2474
- feesSum?: number | null | undefined;
2475
- customerId?: string | number | null | undefined;
2476
- customer?: {
2477
- userId: string | number;
2478
- id: string | number;
2479
- email: string;
2480
- firstName: string;
2481
- lastName: string;
2482
- birthDate: Date;
2483
- idNumber: string;
2484
- phone: string;
2485
- iban: string;
2486
- bic: string;
2487
- phoneVerified: boolean;
2488
- } | null | undefined;
2489
- customerType?: string | null | undefined;
2490
- customerPaid?: boolean | null | undefined;
2491
- customerPaidDate?: Date | null | undefined;
2492
- customerPaidType?: string | null | undefined;
2493
- contractId?: string | number | null | undefined;
2494
- lastHistory?: {
5200
+ history?: {
2495
5201
  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";
2496
5202
  id: string;
2497
5203
  createdAt: Date;
@@ -2650,40 +5356,46 @@ export declare const ItemUpdateSchema: z.ZodObject<{
2650
5356
  error?: string | null | undefined;
2651
5357
  }[] | null | undefined;
2652
5358
  };
5359
+ } | {
5360
+ type: "UPDATED";
5361
+ data: {
5362
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5363
+ };
5364
+ } | {
5365
+ type: "UPDATING";
5366
+ data: {
5367
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
5368
+ post?: {
5369
+ status?: string | null | undefined;
5370
+ price?: number | null | undefined;
5371
+ currency?: string | null | undefined;
5372
+ brand?: string | null | undefined;
5373
+ catalog?: string | null | undefined;
5374
+ catalogId?: number | null | undefined;
5375
+ colors?: string[] | null | undefined;
5376
+ colorIds?: number[] | null | undefined;
5377
+ description?: string | null | undefined;
5378
+ measurementLength?: number | null | undefined;
5379
+ measurementWidth?: number | null | undefined;
5380
+ packageSizeId?: number | null | undefined;
5381
+ photoUrls?: string[] | null | undefined;
5382
+ size?: string | null | undefined;
5383
+ sizeId?: number | null | undefined;
5384
+ statusId?: number | null | undefined;
5385
+ title?: string | null | undefined;
5386
+ isDraft?: boolean | null | undefined;
5387
+ isArchived?: boolean | null | undefined;
5388
+ availableQuantity?: number | null | undefined;
5389
+ material?: number[] | null | undefined;
5390
+ manufacturerLabelling?: string | null | undefined;
5391
+ labels?: string[] | null | undefined;
5392
+ } | null | undefined;
5393
+ targetDate?: Date | null | undefined;
5394
+ };
2653
5395
  } | null | undefined;
2654
5396
  accountId?: string | null | undefined;
2655
5397
  requestId?: string | null | undefined;
2656
5398
  targetDate?: Date | null | undefined;
2657
- } | null | undefined;
2658
- platforms?: {
2659
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2660
- id: string;
2661
- updatedAt: Date;
2662
- createdAt: Date;
2663
- accountId: string;
2664
- itemId: string | number;
2665
- platformId: string;
2666
- platformUrl: string;
2667
- platformPrice: number;
2668
- publishedAt: Date;
2669
- conversationId?: string | null | undefined;
2670
- account?: {
2671
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
2672
- userId: string | number;
2673
- name: string;
2674
- platform: "ETSY" | "SHOPIFY" | "VINTED";
2675
- accountId: string;
2676
- locale?: string | null | undefined;
2677
- night?: {
2678
- startsAt: Date;
2679
- endsAt: Date;
2680
- } | null | undefined;
2681
- favoritesMaxDelay?: number | null | undefined;
2682
- ordersMaxDelay?: number | null | undefined;
2683
- conversationsMaxDelay?: number | null | undefined;
2684
- } | null | undefined;
2685
- viewsCount?: number | null | undefined;
2686
- favoritesCount?: number | null | undefined;
2687
5399
  }[] | null | undefined;
2688
5400
  };
2689
5401
  deleted?: boolean | null | undefined;