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
@@ -1083,6 +1083,222 @@ export declare const ItemSchema: z.ZodObject<{
1083
1083
  error?: string | null | undefined;
1084
1084
  }[] | null | undefined;
1085
1085
  };
1086
+ }>, z.ZodObject<{
1087
+ data: z.ZodObject<{
1088
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1089
+ }, "strip", z.ZodTypeAny, {
1090
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1091
+ }, {
1092
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1093
+ }>;
1094
+ type: z.ZodLiteral<"UPDATED">;
1095
+ }, "strip", z.ZodTypeAny, {
1096
+ type: "UPDATED";
1097
+ data: {
1098
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1099
+ };
1100
+ }, {
1101
+ type: "UPDATED";
1102
+ data: {
1103
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1104
+ };
1105
+ }>, z.ZodObject<{
1106
+ data: z.ZodObject<{
1107
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1108
+ post: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1109
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1110
+ catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1111
+ catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1112
+ colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1113
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1114
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1115
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1116
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1117
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1118
+ photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1119
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1120
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1121
+ size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1122
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1123
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1124
+ statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1125
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1126
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1127
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1128
+ availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1129
+ material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1130
+ manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1131
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1132
+ }, "strip", z.ZodTypeAny, {
1133
+ status?: string | null | undefined;
1134
+ price?: number | null | undefined;
1135
+ currency?: string | null | undefined;
1136
+ brand?: string | null | undefined;
1137
+ catalog?: string | null | undefined;
1138
+ catalogId?: number | null | undefined;
1139
+ colors?: string[] | null | undefined;
1140
+ colorIds?: number[] | null | undefined;
1141
+ description?: string | null | undefined;
1142
+ measurementLength?: number | null | undefined;
1143
+ measurementWidth?: number | null | undefined;
1144
+ packageSizeId?: number | null | undefined;
1145
+ photoUrls?: string[] | null | undefined;
1146
+ size?: string | null | undefined;
1147
+ sizeId?: number | null | undefined;
1148
+ statusId?: number | null | undefined;
1149
+ title?: string | null | undefined;
1150
+ isDraft?: boolean | null | undefined;
1151
+ isArchived?: boolean | null | undefined;
1152
+ availableQuantity?: number | null | undefined;
1153
+ material?: number[] | null | undefined;
1154
+ manufacturerLabelling?: string | null | undefined;
1155
+ labels?: string[] | null | undefined;
1156
+ }, {
1157
+ status?: string | null | undefined;
1158
+ price?: number | null | undefined;
1159
+ currency?: string | null | undefined;
1160
+ brand?: string | null | undefined;
1161
+ catalog?: string | null | undefined;
1162
+ catalogId?: number | null | undefined;
1163
+ colors?: string[] | null | undefined;
1164
+ colorIds?: number[] | null | undefined;
1165
+ description?: string | null | undefined;
1166
+ measurementLength?: number | null | undefined;
1167
+ measurementWidth?: number | null | undefined;
1168
+ packageSizeId?: number | null | undefined;
1169
+ photoUrls?: string[] | null | undefined;
1170
+ size?: string | null | undefined;
1171
+ sizeId?: number | null | undefined;
1172
+ statusId?: number | null | undefined;
1173
+ title?: string | null | undefined;
1174
+ isDraft?: boolean | null | undefined;
1175
+ isArchived?: boolean | null | undefined;
1176
+ availableQuantity?: number | null | undefined;
1177
+ material?: number[] | null | undefined;
1178
+ manufacturerLabelling?: string | null | undefined;
1179
+ labels?: string[] | null | undefined;
1180
+ }>>>;
1181
+ targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1182
+ }, "strip", z.ZodTypeAny, {
1183
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1184
+ post?: {
1185
+ status?: string | null | undefined;
1186
+ price?: number | null | undefined;
1187
+ currency?: string | null | undefined;
1188
+ brand?: string | null | undefined;
1189
+ catalog?: string | null | undefined;
1190
+ catalogId?: number | null | undefined;
1191
+ colors?: string[] | null | undefined;
1192
+ colorIds?: number[] | null | undefined;
1193
+ description?: string | null | undefined;
1194
+ measurementLength?: number | null | undefined;
1195
+ measurementWidth?: number | null | undefined;
1196
+ packageSizeId?: number | null | undefined;
1197
+ photoUrls?: string[] | null | undefined;
1198
+ size?: string | null | undefined;
1199
+ sizeId?: number | null | undefined;
1200
+ statusId?: number | null | undefined;
1201
+ title?: string | null | undefined;
1202
+ isDraft?: boolean | null | undefined;
1203
+ isArchived?: boolean | null | undefined;
1204
+ availableQuantity?: number | null | undefined;
1205
+ material?: number[] | null | undefined;
1206
+ manufacturerLabelling?: string | null | undefined;
1207
+ labels?: string[] | null | undefined;
1208
+ } | null | undefined;
1209
+ targetDate?: Date | null | undefined;
1210
+ }, {
1211
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1212
+ post?: {
1213
+ status?: string | null | undefined;
1214
+ price?: number | null | undefined;
1215
+ currency?: string | null | undefined;
1216
+ brand?: string | null | undefined;
1217
+ catalog?: string | null | undefined;
1218
+ catalogId?: number | null | undefined;
1219
+ colors?: string[] | null | undefined;
1220
+ colorIds?: number[] | null | undefined;
1221
+ description?: string | null | undefined;
1222
+ measurementLength?: number | null | undefined;
1223
+ measurementWidth?: number | null | undefined;
1224
+ packageSizeId?: number | null | undefined;
1225
+ photoUrls?: string[] | null | undefined;
1226
+ size?: string | null | undefined;
1227
+ sizeId?: number | null | undefined;
1228
+ statusId?: number | null | undefined;
1229
+ title?: string | null | undefined;
1230
+ isDraft?: boolean | null | undefined;
1231
+ isArchived?: boolean | null | undefined;
1232
+ availableQuantity?: number | null | undefined;
1233
+ material?: number[] | null | undefined;
1234
+ manufacturerLabelling?: string | null | undefined;
1235
+ labels?: string[] | null | undefined;
1236
+ } | null | undefined;
1237
+ targetDate?: Date | null | undefined;
1238
+ }>;
1239
+ type: z.ZodLiteral<"UPDATING">;
1240
+ }, "strip", z.ZodTypeAny, {
1241
+ type: "UPDATING";
1242
+ data: {
1243
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1244
+ post?: {
1245
+ status?: string | null | undefined;
1246
+ price?: number | null | undefined;
1247
+ currency?: string | null | undefined;
1248
+ brand?: string | null | undefined;
1249
+ catalog?: string | null | undefined;
1250
+ catalogId?: number | null | undefined;
1251
+ colors?: string[] | null | undefined;
1252
+ colorIds?: number[] | null | undefined;
1253
+ description?: string | null | undefined;
1254
+ measurementLength?: number | null | undefined;
1255
+ measurementWidth?: number | null | undefined;
1256
+ packageSizeId?: number | null | undefined;
1257
+ photoUrls?: string[] | null | undefined;
1258
+ size?: string | null | undefined;
1259
+ sizeId?: number | null | undefined;
1260
+ statusId?: number | null | undefined;
1261
+ title?: string | null | undefined;
1262
+ isDraft?: boolean | null | undefined;
1263
+ isArchived?: boolean | null | undefined;
1264
+ availableQuantity?: number | null | undefined;
1265
+ material?: number[] | null | undefined;
1266
+ manufacturerLabelling?: string | null | undefined;
1267
+ labels?: string[] | null | undefined;
1268
+ } | null | undefined;
1269
+ targetDate?: Date | null | undefined;
1270
+ };
1271
+ }, {
1272
+ type: "UPDATING";
1273
+ data: {
1274
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1275
+ post?: {
1276
+ status?: string | null | undefined;
1277
+ price?: number | null | undefined;
1278
+ currency?: string | null | undefined;
1279
+ brand?: string | null | undefined;
1280
+ catalog?: string | null | undefined;
1281
+ catalogId?: number | null | undefined;
1282
+ colors?: string[] | null | undefined;
1283
+ colorIds?: number[] | null | undefined;
1284
+ description?: string | null | undefined;
1285
+ measurementLength?: number | null | undefined;
1286
+ measurementWidth?: number | null | undefined;
1287
+ packageSizeId?: number | null | undefined;
1288
+ photoUrls?: string[] | null | undefined;
1289
+ size?: string | null | undefined;
1290
+ sizeId?: number | null | undefined;
1291
+ statusId?: number | null | undefined;
1292
+ title?: string | null | undefined;
1293
+ isDraft?: boolean | null | undefined;
1294
+ isArchived?: boolean | null | undefined;
1295
+ availableQuantity?: number | null | undefined;
1296
+ material?: number[] | null | undefined;
1297
+ manufacturerLabelling?: string | null | undefined;
1298
+ labels?: string[] | null | undefined;
1299
+ } | null | undefined;
1300
+ targetDate?: Date | null | undefined;
1301
+ };
1086
1302
  }>]>>>;
1087
1303
  createdAt: z.ZodDate;
1088
1304
  targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -1247,6 +1463,42 @@ export declare const ItemSchema: z.ZodObject<{
1247
1463
  error?: string | null | undefined;
1248
1464
  }[] | null | undefined;
1249
1465
  };
1466
+ } | {
1467
+ type: "UPDATED";
1468
+ data: {
1469
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1470
+ };
1471
+ } | {
1472
+ type: "UPDATING";
1473
+ data: {
1474
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1475
+ post?: {
1476
+ status?: string | null | undefined;
1477
+ price?: number | null | undefined;
1478
+ currency?: string | null | undefined;
1479
+ brand?: string | null | undefined;
1480
+ catalog?: string | null | undefined;
1481
+ catalogId?: number | null | undefined;
1482
+ colors?: string[] | null | undefined;
1483
+ colorIds?: number[] | null | undefined;
1484
+ description?: string | null | undefined;
1485
+ measurementLength?: number | null | undefined;
1486
+ measurementWidth?: number | null | undefined;
1487
+ packageSizeId?: number | null | undefined;
1488
+ photoUrls?: string[] | null | undefined;
1489
+ size?: string | null | undefined;
1490
+ sizeId?: number | null | undefined;
1491
+ statusId?: number | null | undefined;
1492
+ title?: string | null | undefined;
1493
+ isDraft?: boolean | null | undefined;
1494
+ isArchived?: boolean | null | undefined;
1495
+ availableQuantity?: number | null | undefined;
1496
+ material?: number[] | null | undefined;
1497
+ manufacturerLabelling?: string | null | undefined;
1498
+ labels?: string[] | null | undefined;
1499
+ } | null | undefined;
1500
+ targetDate?: Date | null | undefined;
1501
+ };
1250
1502
  } | null | undefined;
1251
1503
  accountId?: string | null | undefined;
1252
1504
  requestId?: string | null | undefined;
@@ -1410,6 +1662,42 @@ export declare const ItemSchema: z.ZodObject<{
1410
1662
  error?: string | null | undefined;
1411
1663
  }[] | null | undefined;
1412
1664
  };
1665
+ } | {
1666
+ type: "UPDATED";
1667
+ data: {
1668
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1669
+ };
1670
+ } | {
1671
+ type: "UPDATING";
1672
+ data: {
1673
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1674
+ post?: {
1675
+ status?: string | null | undefined;
1676
+ price?: number | null | undefined;
1677
+ currency?: string | null | undefined;
1678
+ brand?: string | null | undefined;
1679
+ catalog?: string | null | undefined;
1680
+ catalogId?: number | null | undefined;
1681
+ colors?: string[] | null | undefined;
1682
+ colorIds?: number[] | null | undefined;
1683
+ description?: string | null | undefined;
1684
+ measurementLength?: number | null | undefined;
1685
+ measurementWidth?: number | null | undefined;
1686
+ packageSizeId?: number | null | undefined;
1687
+ photoUrls?: string[] | null | undefined;
1688
+ size?: string | null | undefined;
1689
+ sizeId?: number | null | undefined;
1690
+ statusId?: number | null | undefined;
1691
+ title?: string | null | undefined;
1692
+ isDraft?: boolean | null | undefined;
1693
+ isArchived?: boolean | null | undefined;
1694
+ availableQuantity?: number | null | undefined;
1695
+ material?: number[] | null | undefined;
1696
+ manufacturerLabelling?: string | null | undefined;
1697
+ labels?: string[] | null | undefined;
1698
+ } | null | undefined;
1699
+ targetDate?: Date | null | undefined;
1700
+ };
1413
1701
  } | null | undefined;
1414
1702
  accountId?: string | null | undefined;
1415
1703
  requestId?: string | null | undefined;
@@ -1537,127 +1825,113 @@ export declare const ItemSchema: z.ZodObject<{
1537
1825
  viewsCount?: number | null | undefined;
1538
1826
  favoritesCount?: number | null | undefined;
1539
1827
  }>, "many">>>;
1540
- createdAt: z.ZodDate;
1541
- updatedAt: z.ZodDate;
1542
- }, "strip", z.ZodTypeAny, {
1543
- userId: string | number;
1544
- id: string | number;
1545
- updatedAt: Date;
1546
- name: string;
1547
- createdAt: Date;
1548
- sold: boolean;
1549
- state?: number | null | undefined;
1550
- colorIds?: number[] | null | undefined;
1551
- description?: string | null | undefined;
1552
- packageSizeId?: number | null | undefined;
1553
- sizeId?: number | null | undefined;
1554
- labels?: {
1555
- itemId: string | number;
1556
- labelId: string | number;
1557
- label?: {
1558
- id: string | number;
1559
- name: string;
1560
- createdAt: Date;
1561
- isUserLabel: boolean;
1562
- userId?: string | number | null | undefined;
1563
- itemCount?: number | null | undefined;
1564
- parentId?: unknown;
1565
- } | null | undefined;
1566
- }[] | null | undefined;
1567
- files?: {
1568
- itemId: string | number;
1569
- fileId: string;
1570
- index?: number | null | undefined;
1571
- file?: {
1572
- path: string;
1573
- userId: string | number;
1574
- id: string;
1575
- createdAt: Date;
1576
- signedUrl: string;
1577
- } | null | undefined;
1578
- }[] | null | undefined;
1579
- fields?: {
1580
- value: string;
1581
- itemId: string | number;
1582
- fieldId: string | number;
1583
- }[] | null | undefined;
1584
- sku?: string | null | undefined;
1585
- categoryId?: number | null | undefined;
1586
- brandId?: string | number | null | undefined;
1587
- sex?: string | null | undefined;
1588
- purchasePrice?: number | null | undefined;
1589
- purchaseDate?: Date | null | undefined;
1590
- purchasePlaceId?: string | number | null | undefined;
1591
- purchased?: boolean | null | undefined;
1592
- sellingPrice?: number | null | undefined;
1593
- sellingDate?: Date | null | undefined;
1594
- sellingPlaceId?: string | number | null | undefined;
1595
- estimatedPrice?: number | null | undefined;
1596
- fees?: {
1597
- value: number;
1598
- type: string;
1599
- userId: string | number;
1600
- id: string | number;
1601
- updatedAt: Date;
1602
- name: string;
1603
- createdAt: Date;
1604
- recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1605
- startDate: Date;
1606
- active: boolean;
1607
- description?: string | null | undefined;
1608
- itemId?: string | number | null | undefined;
1609
- endDate?: Date | null | undefined;
1610
- parentFeeId?: string | number | null | undefined;
1611
- }[] | null | undefined;
1612
- feesSum?: number | null | undefined;
1613
- customerId?: string | number | null | undefined;
1614
- customer?: {
1615
- userId: string | number;
1616
- id: string | number;
1617
- email: string;
1618
- firstName: string;
1619
- lastName: string;
1620
- birthDate: Date;
1621
- idNumber: string;
1622
- phone: string;
1623
- iban: string;
1624
- bic: string;
1625
- phoneVerified: boolean;
1626
- } | null | undefined;
1627
- customerType?: string | null | undefined;
1628
- customerPaid?: boolean | null | undefined;
1629
- customerPaidDate?: Date | null | undefined;
1630
- customerPaidType?: string | null | undefined;
1631
- contractId?: string | number | null | undefined;
1632
- lastHistory?: {
1633
- 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";
1634
- id: string;
1635
- createdAt: Date;
1636
- itemId: string | number;
1637
- data?: {
1828
+ history: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1829
+ id: z.ZodString;
1830
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1831
+ 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"]>;
1832
+ data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1833
+ data: z.ZodObject<{
1834
+ targetItemHistoryId: z.ZodString;
1835
+ }, "strip", z.ZodTypeAny, {
1836
+ targetItemHistoryId: string;
1837
+ }, {
1838
+ targetItemHistoryId: string;
1839
+ }>;
1840
+ type: z.ZodLiteral<"ACTION_CANCELED">;
1841
+ }, "strip", z.ZodTypeAny, {
1638
1842
  type: "ACTION_CANCELED";
1639
1843
  data: {
1640
1844
  targetItemHistoryId: string;
1641
1845
  };
1642
- } | {
1846
+ }, {
1847
+ type: "ACTION_CANCELED";
1848
+ data: {
1849
+ targetItemHistoryId: string;
1850
+ };
1851
+ }>, z.ZodObject<{
1852
+ data: z.ZodObject<{
1853
+ soldAccountId: z.ZodString;
1854
+ soldOrderId: z.ZodString;
1855
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1856
+ }, "strip", z.ZodTypeAny, {
1857
+ soldAccountId: string;
1858
+ soldOrderId: string;
1859
+ soldConversationId?: string | null | undefined;
1860
+ }, {
1861
+ soldAccountId: string;
1862
+ soldOrderId: string;
1863
+ soldConversationId?: string | null | undefined;
1864
+ }>;
1865
+ type: z.ZodLiteral<"BUYER_PAID">;
1866
+ }, "strip", z.ZodTypeAny, {
1643
1867
  type: "BUYER_PAID";
1644
1868
  data: {
1645
1869
  soldAccountId: string;
1646
1870
  soldOrderId: string;
1647
1871
  soldConversationId?: string | null | undefined;
1648
1872
  };
1649
- } | {
1873
+ }, {
1874
+ type: "BUYER_PAID";
1875
+ data: {
1876
+ soldAccountId: string;
1877
+ soldOrderId: string;
1878
+ soldConversationId?: string | null | undefined;
1879
+ };
1880
+ }>, z.ZodObject<{
1881
+ data: z.ZodObject<{
1882
+ soldAccountId: z.ZodString;
1883
+ soldOrderId: z.ZodString;
1884
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1885
+ }, "strip", z.ZodTypeAny, {
1886
+ soldAccountId: string;
1887
+ soldOrderId: string;
1888
+ soldConversationId?: string | null | undefined;
1889
+ }, {
1890
+ soldAccountId: string;
1891
+ soldOrderId: string;
1892
+ soldConversationId?: string | null | undefined;
1893
+ }>;
1894
+ type: z.ZodLiteral<"DELIVERED">;
1895
+ }, "strip", z.ZodTypeAny, {
1650
1896
  type: "DELIVERED";
1651
1897
  data: {
1652
1898
  soldAccountId: string;
1653
1899
  soldOrderId: string;
1654
1900
  soldConversationId?: string | null | undefined;
1655
1901
  };
1656
- } | {
1657
- type: "EMPTY";
1658
- } | {
1659
- type: "FAILED_TO_PUBLISH";
1902
+ }, {
1903
+ type: "DELIVERED";
1660
1904
  data: {
1905
+ soldAccountId: string;
1906
+ soldOrderId: string;
1907
+ soldConversationId?: string | null | undefined;
1908
+ };
1909
+ }>, z.ZodObject<{
1910
+ type: z.ZodLiteral<"EMPTY">;
1911
+ }, "strip", z.ZodTypeAny, {
1912
+ type: "EMPTY";
1913
+ }, {
1914
+ type: "EMPTY";
1915
+ }>, z.ZodObject<{
1916
+ data: z.ZodObject<{
1917
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1918
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1919
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1920
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1921
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
1922
+ autoFixable: z.ZodBoolean;
1923
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1924
+ }, "strip", z.ZodTypeAny, {
1925
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1926
+ autoFixable: boolean;
1927
+ error?: string | null | undefined;
1928
+ }, {
1929
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1930
+ autoFixable: boolean;
1931
+ error?: string | null | undefined;
1932
+ }>, "many">>>;
1933
+ itemHistoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1934
+ }, "strip", z.ZodTypeAny, {
1661
1935
  platform: "ETSY" | "SHOPIFY" | "VINTED";
1662
1936
  accountId?: string | null | undefined;
1663
1937
  reason?: string | null | undefined;
@@ -1667,12 +1941,1736 @@ export declare const ItemSchema: z.ZodObject<{
1667
1941
  error?: string | null | undefined;
1668
1942
  }[] | null | undefined;
1669
1943
  itemHistoryId?: string | null | undefined;
1670
- };
1671
- } | {
1672
- type: "IMAGE_PROCESSING_DONE";
1673
- data: {
1944
+ }, {
1674
1945
  platform: "ETSY" | "SHOPIFY" | "VINTED";
1675
- variations?: {
1946
+ accountId?: string | null | undefined;
1947
+ reason?: string | null | undefined;
1948
+ fields?: {
1949
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1950
+ autoFixable: boolean;
1951
+ error?: string | null | undefined;
1952
+ }[] | null | undefined;
1953
+ itemHistoryId?: string | null | undefined;
1954
+ }>;
1955
+ type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
1956
+ }, "strip", z.ZodTypeAny, {
1957
+ type: "FAILED_TO_PUBLISH";
1958
+ data: {
1959
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1960
+ accountId?: string | null | undefined;
1961
+ reason?: string | null | undefined;
1962
+ fields?: {
1963
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1964
+ autoFixable: boolean;
1965
+ error?: string | null | undefined;
1966
+ }[] | null | undefined;
1967
+ itemHistoryId?: string | null | undefined;
1968
+ };
1969
+ }, {
1970
+ type: "FAILED_TO_PUBLISH";
1971
+ data: {
1972
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
1973
+ accountId?: string | null | undefined;
1974
+ reason?: string | null | undefined;
1975
+ fields?: {
1976
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1977
+ autoFixable: boolean;
1978
+ error?: string | null | undefined;
1979
+ }[] | null | undefined;
1980
+ itemHistoryId?: string | null | undefined;
1981
+ };
1982
+ }>, z.ZodObject<{
1983
+ data: z.ZodObject<{
1984
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
1985
+ variations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1986
+ fileId: z.ZodString;
1987
+ seed: z.ZodNumber;
1988
+ phash: z.ZodString;
1989
+ distanceOriginal: z.ZodNumber;
1990
+ originalImageUrl: z.ZodString;
1991
+ originalPhash: z.ZodString;
1992
+ }, "strip", z.ZodTypeAny, {
1993
+ fileId: string;
1994
+ seed: number;
1995
+ phash: string;
1996
+ distanceOriginal: number;
1997
+ originalImageUrl: string;
1998
+ originalPhash: string;
1999
+ }, {
2000
+ fileId: string;
2001
+ seed: number;
2002
+ phash: string;
2003
+ distanceOriginal: number;
2004
+ originalImageUrl: string;
2005
+ originalPhash: string;
2006
+ }>, "many">>>;
2007
+ originalPhashes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2008
+ }, "strip", z.ZodTypeAny, {
2009
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2010
+ variations?: {
2011
+ fileId: string;
2012
+ seed: number;
2013
+ phash: string;
2014
+ distanceOriginal: number;
2015
+ originalImageUrl: string;
2016
+ originalPhash: string;
2017
+ }[] | null | undefined;
2018
+ originalPhashes?: string[] | null | undefined;
2019
+ }, {
2020
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2021
+ variations?: {
2022
+ fileId: string;
2023
+ seed: number;
2024
+ phash: string;
2025
+ distanceOriginal: number;
2026
+ originalImageUrl: string;
2027
+ originalPhash: string;
2028
+ }[] | null | undefined;
2029
+ originalPhashes?: string[] | null | undefined;
2030
+ }>;
2031
+ type: z.ZodLiteral<"IMAGE_PROCESSING_DONE">;
2032
+ }, "strip", z.ZodTypeAny, {
2033
+ type: "IMAGE_PROCESSING_DONE";
2034
+ data: {
2035
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2036
+ variations?: {
2037
+ fileId: string;
2038
+ seed: number;
2039
+ phash: string;
2040
+ distanceOriginal: number;
2041
+ originalImageUrl: string;
2042
+ originalPhash: string;
2043
+ }[] | null | undefined;
2044
+ originalPhashes?: string[] | null | undefined;
2045
+ };
2046
+ }, {
2047
+ type: "IMAGE_PROCESSING_DONE";
2048
+ data: {
2049
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2050
+ variations?: {
2051
+ fileId: string;
2052
+ seed: number;
2053
+ phash: string;
2054
+ distanceOriginal: number;
2055
+ originalImageUrl: string;
2056
+ originalPhash: string;
2057
+ }[] | null | undefined;
2058
+ originalPhashes?: string[] | null | undefined;
2059
+ };
2060
+ }>, z.ZodObject<{
2061
+ data: z.ZodObject<{
2062
+ post: z.ZodObject<{
2063
+ platformId: z.ZodString;
2064
+ platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2065
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2066
+ post: z.ZodObject<{
2067
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2068
+ catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2069
+ catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2070
+ colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2071
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
2072
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2073
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2074
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2075
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2076
+ photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2077
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2078
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2079
+ size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2080
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2081
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2082
+ statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2083
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2084
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2085
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2086
+ availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2087
+ material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
2088
+ manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2089
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2090
+ }, "strip", z.ZodTypeAny, {
2091
+ status?: string | null | undefined;
2092
+ price?: number | null | undefined;
2093
+ currency?: string | null | undefined;
2094
+ brand?: string | null | undefined;
2095
+ catalog?: string | null | undefined;
2096
+ catalogId?: number | null | undefined;
2097
+ colors?: string[] | null | undefined;
2098
+ colorIds?: number[] | null | undefined;
2099
+ description?: string | null | undefined;
2100
+ measurementLength?: number | null | undefined;
2101
+ measurementWidth?: number | null | undefined;
2102
+ packageSizeId?: number | null | undefined;
2103
+ photoUrls?: string[] | null | undefined;
2104
+ size?: string | null | undefined;
2105
+ sizeId?: number | null | undefined;
2106
+ statusId?: number | null | undefined;
2107
+ title?: string | null | undefined;
2108
+ isDraft?: boolean | null | undefined;
2109
+ isArchived?: boolean | null | undefined;
2110
+ availableQuantity?: number | null | undefined;
2111
+ material?: number[] | null | undefined;
2112
+ manufacturerLabelling?: string | null | undefined;
2113
+ labels?: string[] | null | undefined;
2114
+ }, {
2115
+ status?: string | null | undefined;
2116
+ price?: number | null | undefined;
2117
+ currency?: string | null | undefined;
2118
+ brand?: string | null | undefined;
2119
+ catalog?: string | null | undefined;
2120
+ catalogId?: number | null | undefined;
2121
+ colors?: string[] | null | undefined;
2122
+ colorIds?: number[] | null | undefined;
2123
+ description?: string | null | undefined;
2124
+ measurementLength?: number | null | undefined;
2125
+ measurementWidth?: number | null | undefined;
2126
+ packageSizeId?: number | null | undefined;
2127
+ photoUrls?: string[] | null | undefined;
2128
+ size?: string | null | undefined;
2129
+ sizeId?: number | null | undefined;
2130
+ statusId?: number | null | undefined;
2131
+ title?: string | null | undefined;
2132
+ isDraft?: boolean | null | undefined;
2133
+ isArchived?: boolean | null | undefined;
2134
+ availableQuantity?: number | null | undefined;
2135
+ material?: number[] | null | undefined;
2136
+ manufacturerLabelling?: string | null | undefined;
2137
+ labels?: string[] | null | undefined;
2138
+ }>;
2139
+ }, "strip", z.ZodTypeAny, {
2140
+ platformId: string;
2141
+ post: {
2142
+ status?: string | null | undefined;
2143
+ price?: number | null | undefined;
2144
+ currency?: string | null | undefined;
2145
+ brand?: string | null | undefined;
2146
+ catalog?: string | null | undefined;
2147
+ catalogId?: number | null | undefined;
2148
+ colors?: string[] | null | undefined;
2149
+ colorIds?: number[] | null | undefined;
2150
+ description?: string | null | undefined;
2151
+ measurementLength?: number | null | undefined;
2152
+ measurementWidth?: number | null | undefined;
2153
+ packageSizeId?: number | null | undefined;
2154
+ photoUrls?: string[] | null | undefined;
2155
+ size?: string | null | undefined;
2156
+ sizeId?: number | null | undefined;
2157
+ statusId?: number | null | undefined;
2158
+ title?: string | null | undefined;
2159
+ isDraft?: boolean | null | undefined;
2160
+ isArchived?: boolean | null | undefined;
2161
+ availableQuantity?: number | null | undefined;
2162
+ material?: number[] | null | undefined;
2163
+ manufacturerLabelling?: string | null | undefined;
2164
+ labels?: string[] | null | undefined;
2165
+ };
2166
+ createdAt?: Date | null | undefined;
2167
+ platformUrl?: string | null | undefined;
2168
+ }, {
2169
+ platformId: string;
2170
+ post: {
2171
+ status?: string | null | undefined;
2172
+ price?: number | null | undefined;
2173
+ currency?: string | null | undefined;
2174
+ brand?: string | null | undefined;
2175
+ catalog?: string | null | undefined;
2176
+ catalogId?: number | null | undefined;
2177
+ colors?: string[] | null | undefined;
2178
+ colorIds?: number[] | null | undefined;
2179
+ description?: string | null | undefined;
2180
+ measurementLength?: number | null | undefined;
2181
+ measurementWidth?: number | null | undefined;
2182
+ packageSizeId?: number | null | undefined;
2183
+ photoUrls?: string[] | null | undefined;
2184
+ size?: string | null | undefined;
2185
+ sizeId?: number | null | undefined;
2186
+ statusId?: number | null | undefined;
2187
+ title?: string | null | undefined;
2188
+ isDraft?: boolean | null | undefined;
2189
+ isArchived?: boolean | null | undefined;
2190
+ availableQuantity?: number | null | undefined;
2191
+ material?: number[] | null | undefined;
2192
+ manufacturerLabelling?: string | null | undefined;
2193
+ labels?: string[] | null | undefined;
2194
+ };
2195
+ createdAt?: Date | null | undefined;
2196
+ platformUrl?: string | null | undefined;
2197
+ }>;
2198
+ }, "strip", z.ZodTypeAny, {
2199
+ post: {
2200
+ platformId: string;
2201
+ post: {
2202
+ status?: string | null | undefined;
2203
+ price?: number | null | undefined;
2204
+ currency?: string | null | undefined;
2205
+ brand?: string | null | undefined;
2206
+ catalog?: string | null | undefined;
2207
+ catalogId?: number | null | undefined;
2208
+ colors?: string[] | null | undefined;
2209
+ colorIds?: number[] | null | undefined;
2210
+ description?: string | null | undefined;
2211
+ measurementLength?: number | null | undefined;
2212
+ measurementWidth?: number | null | undefined;
2213
+ packageSizeId?: number | null | undefined;
2214
+ photoUrls?: string[] | null | undefined;
2215
+ size?: string | null | undefined;
2216
+ sizeId?: number | null | undefined;
2217
+ statusId?: number | null | undefined;
2218
+ title?: string | null | undefined;
2219
+ isDraft?: boolean | null | undefined;
2220
+ isArchived?: boolean | null | undefined;
2221
+ availableQuantity?: number | null | undefined;
2222
+ material?: number[] | null | undefined;
2223
+ manufacturerLabelling?: string | null | undefined;
2224
+ labels?: string[] | null | undefined;
2225
+ };
2226
+ createdAt?: Date | null | undefined;
2227
+ platformUrl?: string | null | undefined;
2228
+ };
2229
+ }, {
2230
+ post: {
2231
+ platformId: string;
2232
+ post: {
2233
+ status?: string | null | undefined;
2234
+ price?: number | null | undefined;
2235
+ currency?: string | null | undefined;
2236
+ brand?: string | null | undefined;
2237
+ catalog?: string | null | undefined;
2238
+ catalogId?: number | null | undefined;
2239
+ colors?: string[] | null | undefined;
2240
+ colorIds?: number[] | null | undefined;
2241
+ description?: string | null | undefined;
2242
+ measurementLength?: number | null | undefined;
2243
+ measurementWidth?: number | null | undefined;
2244
+ packageSizeId?: number | null | undefined;
2245
+ photoUrls?: string[] | null | undefined;
2246
+ size?: string | null | undefined;
2247
+ sizeId?: number | null | undefined;
2248
+ statusId?: number | null | undefined;
2249
+ title?: string | null | undefined;
2250
+ isDraft?: boolean | null | undefined;
2251
+ isArchived?: boolean | null | undefined;
2252
+ availableQuantity?: number | null | undefined;
2253
+ material?: number[] | null | undefined;
2254
+ manufacturerLabelling?: string | null | undefined;
2255
+ labels?: string[] | null | undefined;
2256
+ };
2257
+ createdAt?: Date | null | undefined;
2258
+ platformUrl?: string | null | undefined;
2259
+ };
2260
+ }>;
2261
+ type: z.ZodLiteral<"IMPORTED">;
2262
+ }, "strip", z.ZodTypeAny, {
2263
+ type: "IMPORTED";
2264
+ data: {
2265
+ post: {
2266
+ platformId: string;
2267
+ post: {
2268
+ status?: string | null | undefined;
2269
+ price?: number | null | undefined;
2270
+ currency?: string | null | undefined;
2271
+ brand?: string | null | undefined;
2272
+ catalog?: string | null | undefined;
2273
+ catalogId?: number | null | undefined;
2274
+ colors?: string[] | null | undefined;
2275
+ colorIds?: number[] | null | undefined;
2276
+ description?: string | null | undefined;
2277
+ measurementLength?: number | null | undefined;
2278
+ measurementWidth?: number | null | undefined;
2279
+ packageSizeId?: number | null | undefined;
2280
+ photoUrls?: string[] | null | undefined;
2281
+ size?: string | null | undefined;
2282
+ sizeId?: number | null | undefined;
2283
+ statusId?: number | null | undefined;
2284
+ title?: string | null | undefined;
2285
+ isDraft?: boolean | null | undefined;
2286
+ isArchived?: boolean | null | undefined;
2287
+ availableQuantity?: number | null | undefined;
2288
+ material?: number[] | null | undefined;
2289
+ manufacturerLabelling?: string | null | undefined;
2290
+ labels?: string[] | null | undefined;
2291
+ };
2292
+ createdAt?: Date | null | undefined;
2293
+ platformUrl?: string | null | undefined;
2294
+ };
2295
+ };
2296
+ }, {
2297
+ type: "IMPORTED";
2298
+ data: {
2299
+ post: {
2300
+ platformId: string;
2301
+ post: {
2302
+ status?: string | null | undefined;
2303
+ price?: number | null | undefined;
2304
+ currency?: string | null | undefined;
2305
+ brand?: string | null | undefined;
2306
+ catalog?: string | null | undefined;
2307
+ catalogId?: number | null | undefined;
2308
+ colors?: string[] | null | undefined;
2309
+ colorIds?: number[] | null | undefined;
2310
+ description?: string | null | undefined;
2311
+ measurementLength?: number | null | undefined;
2312
+ measurementWidth?: number | null | undefined;
2313
+ packageSizeId?: number | null | undefined;
2314
+ photoUrls?: string[] | null | undefined;
2315
+ size?: string | null | undefined;
2316
+ sizeId?: number | null | undefined;
2317
+ statusId?: number | null | undefined;
2318
+ title?: string | null | undefined;
2319
+ isDraft?: boolean | null | undefined;
2320
+ isArchived?: boolean | null | undefined;
2321
+ availableQuantity?: number | null | undefined;
2322
+ material?: number[] | null | undefined;
2323
+ manufacturerLabelling?: string | null | undefined;
2324
+ labels?: string[] | null | undefined;
2325
+ };
2326
+ createdAt?: Date | null | undefined;
2327
+ platformUrl?: string | null | undefined;
2328
+ };
2329
+ };
2330
+ }>, z.ZodObject<{
2331
+ data: z.ZodObject<{
2332
+ accountId: z.ZodString;
2333
+ }, "strip", z.ZodTypeAny, {
2334
+ accountId: string;
2335
+ }, {
2336
+ accountId: string;
2337
+ }>;
2338
+ type: z.ZodLiteral<"LIFECYCLE_COMPLETED">;
2339
+ }, "strip", z.ZodTypeAny, {
2340
+ type: "LIFECYCLE_COMPLETED";
2341
+ data: {
2342
+ accountId: string;
2343
+ };
2344
+ }, {
2345
+ type: "LIFECYCLE_COMPLETED";
2346
+ data: {
2347
+ accountId: string;
2348
+ };
2349
+ }>, z.ZodObject<{
2350
+ data: z.ZodObject<{
2351
+ accountId: z.ZodString;
2352
+ caseId: z.ZodString;
2353
+ }, "strip", z.ZodTypeAny, {
2354
+ accountId: string;
2355
+ caseId: string;
2356
+ }, {
2357
+ accountId: string;
2358
+ caseId: string;
2359
+ }>;
2360
+ type: z.ZodLiteral<"LIFECYCLE_STARTED">;
2361
+ }, "strip", z.ZodTypeAny, {
2362
+ type: "LIFECYCLE_STARTED";
2363
+ data: {
2364
+ accountId: string;
2365
+ caseId: string;
2366
+ };
2367
+ }, {
2368
+ type: "LIFECYCLE_STARTED";
2369
+ data: {
2370
+ accountId: string;
2371
+ caseId: string;
2372
+ };
2373
+ }>, z.ZodObject<{
2374
+ data: z.ZodObject<{
2375
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2376
+ }, "strip", z.ZodTypeAny, {
2377
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2378
+ }, {
2379
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2380
+ }>;
2381
+ type: z.ZodLiteral<"PUBLISHED">;
2382
+ }, "strip", z.ZodTypeAny, {
2383
+ type: "PUBLISHED";
2384
+ data: {
2385
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2386
+ };
2387
+ }, {
2388
+ type: "PUBLISHED";
2389
+ data: {
2390
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2391
+ };
2392
+ }>, z.ZodObject<{
2393
+ data: z.ZodObject<{
2394
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2395
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2396
+ priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2397
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
2398
+ value: z.ZodNumber;
2399
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
2400
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2401
+ maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2402
+ }, "strip", z.ZodTypeAny, {
2403
+ value: number;
2404
+ type: "PERCENTAGE" | "ABSOLUTE";
2405
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2406
+ roundStep?: number | null | undefined;
2407
+ maxRounds?: number | null | undefined;
2408
+ }, {
2409
+ value: number;
2410
+ type: "PERCENTAGE" | "ABSOLUTE";
2411
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2412
+ roundStep?: number | null | undefined;
2413
+ maxRounds?: number | null | undefined;
2414
+ }>>>;
2415
+ isTransfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2416
+ targetAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2417
+ }, "strip", z.ZodTypeAny, {
2418
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2419
+ publishingDate?: Date | null | undefined;
2420
+ priceDropPayload?: {
2421
+ value: number;
2422
+ type: "PERCENTAGE" | "ABSOLUTE";
2423
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2424
+ roundStep?: number | null | undefined;
2425
+ maxRounds?: number | null | undefined;
2426
+ } | null | undefined;
2427
+ isTransfer?: boolean | null | undefined;
2428
+ targetAccountId?: string | null | undefined;
2429
+ }, {
2430
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2431
+ publishingDate?: Date | null | undefined;
2432
+ priceDropPayload?: {
2433
+ value: number;
2434
+ type: "PERCENTAGE" | "ABSOLUTE";
2435
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2436
+ roundStep?: number | null | undefined;
2437
+ maxRounds?: number | null | undefined;
2438
+ } | null | undefined;
2439
+ isTransfer?: boolean | null | undefined;
2440
+ targetAccountId?: string | null | undefined;
2441
+ }>;
2442
+ type: z.ZodLiteral<"REPUBLISHING">;
2443
+ }, "strip", z.ZodTypeAny, {
2444
+ type: "REPUBLISHING";
2445
+ data: {
2446
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2447
+ publishingDate?: Date | null | undefined;
2448
+ priceDropPayload?: {
2449
+ value: number;
2450
+ type: "PERCENTAGE" | "ABSOLUTE";
2451
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2452
+ roundStep?: number | null | undefined;
2453
+ maxRounds?: number | null | undefined;
2454
+ } | null | undefined;
2455
+ isTransfer?: boolean | null | undefined;
2456
+ targetAccountId?: string | null | undefined;
2457
+ };
2458
+ }, {
2459
+ type: "REPUBLISHING";
2460
+ data: {
2461
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2462
+ publishingDate?: Date | null | undefined;
2463
+ priceDropPayload?: {
2464
+ value: number;
2465
+ type: "PERCENTAGE" | "ABSOLUTE";
2466
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2467
+ roundStep?: number | null | undefined;
2468
+ maxRounds?: number | null | undefined;
2469
+ } | null | undefined;
2470
+ isTransfer?: boolean | null | undefined;
2471
+ targetAccountId?: string | null | undefined;
2472
+ };
2473
+ }>, z.ZodObject<{
2474
+ data: z.ZodObject<{
2475
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2476
+ attemptNumber: z.ZodNumber;
2477
+ maxAttempts: z.ZodNumber;
2478
+ previousHistoryId: z.ZodString;
2479
+ originalFailureDate: z.ZodDate;
2480
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2481
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
2482
+ autoFixable: z.ZodBoolean;
2483
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2484
+ }, "strip", z.ZodTypeAny, {
2485
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2486
+ autoFixable: boolean;
2487
+ error?: string | null | undefined;
2488
+ }, {
2489
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2490
+ autoFixable: boolean;
2491
+ error?: string | null | undefined;
2492
+ }>, "many">>>;
2493
+ priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2494
+ type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
2495
+ value: z.ZodNumber;
2496
+ roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
2497
+ roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2498
+ maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2499
+ }, "strip", z.ZodTypeAny, {
2500
+ value: number;
2501
+ type: "PERCENTAGE" | "ABSOLUTE";
2502
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2503
+ roundStep?: number | null | undefined;
2504
+ maxRounds?: number | null | undefined;
2505
+ }, {
2506
+ value: number;
2507
+ type: "PERCENTAGE" | "ABSOLUTE";
2508
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2509
+ roundStep?: number | null | undefined;
2510
+ maxRounds?: number | null | undefined;
2511
+ }>>>;
2512
+ }, "strip", z.ZodTypeAny, {
2513
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2514
+ attemptNumber: number;
2515
+ maxAttempts: number;
2516
+ previousHistoryId: string;
2517
+ originalFailureDate: Date;
2518
+ fields?: {
2519
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2520
+ autoFixable: boolean;
2521
+ error?: string | null | undefined;
2522
+ }[] | null | undefined;
2523
+ priceDropPayload?: {
2524
+ value: number;
2525
+ type: "PERCENTAGE" | "ABSOLUTE";
2526
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2527
+ roundStep?: number | null | undefined;
2528
+ maxRounds?: number | null | undefined;
2529
+ } | null | undefined;
2530
+ }, {
2531
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2532
+ attemptNumber: number;
2533
+ maxAttempts: number;
2534
+ previousHistoryId: string;
2535
+ originalFailureDate: Date;
2536
+ fields?: {
2537
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2538
+ autoFixable: boolean;
2539
+ error?: string | null | undefined;
2540
+ }[] | null | undefined;
2541
+ priceDropPayload?: {
2542
+ value: number;
2543
+ type: "PERCENTAGE" | "ABSOLUTE";
2544
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2545
+ roundStep?: number | null | undefined;
2546
+ maxRounds?: number | null | undefined;
2547
+ } | null | undefined;
2548
+ }>;
2549
+ type: z.ZodLiteral<"REPUBLISHING_RETRY">;
2550
+ }, "strip", z.ZodTypeAny, {
2551
+ type: "REPUBLISHING_RETRY";
2552
+ data: {
2553
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2554
+ attemptNumber: number;
2555
+ maxAttempts: number;
2556
+ previousHistoryId: string;
2557
+ originalFailureDate: Date;
2558
+ fields?: {
2559
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2560
+ autoFixable: boolean;
2561
+ error?: string | null | undefined;
2562
+ }[] | null | undefined;
2563
+ priceDropPayload?: {
2564
+ value: number;
2565
+ type: "PERCENTAGE" | "ABSOLUTE";
2566
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2567
+ roundStep?: number | null | undefined;
2568
+ maxRounds?: number | null | undefined;
2569
+ } | null | undefined;
2570
+ };
2571
+ }, {
2572
+ type: "REPUBLISHING_RETRY";
2573
+ data: {
2574
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2575
+ attemptNumber: number;
2576
+ maxAttempts: number;
2577
+ previousHistoryId: string;
2578
+ originalFailureDate: Date;
2579
+ fields?: {
2580
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2581
+ autoFixable: boolean;
2582
+ error?: string | null | undefined;
2583
+ }[] | null | undefined;
2584
+ priceDropPayload?: {
2585
+ value: number;
2586
+ type: "PERCENTAGE" | "ABSOLUTE";
2587
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
2588
+ roundStep?: number | null | undefined;
2589
+ maxRounds?: number | null | undefined;
2590
+ } | null | undefined;
2591
+ };
2592
+ }>, z.ZodObject<{
2593
+ data: z.ZodObject<{
2594
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2595
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2596
+ }, "strip", z.ZodTypeAny, {
2597
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2598
+ publishingDate?: Date | null | undefined;
2599
+ }, {
2600
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2601
+ publishingDate?: Date | null | undefined;
2602
+ }>;
2603
+ type: z.ZodLiteral<"SCHEDULED">;
2604
+ }, "strip", z.ZodTypeAny, {
2605
+ type: "SCHEDULED";
2606
+ data: {
2607
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2608
+ publishingDate?: Date | null | undefined;
2609
+ };
2610
+ }, {
2611
+ type: "SCHEDULED";
2612
+ data: {
2613
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2614
+ publishingDate?: Date | null | undefined;
2615
+ };
2616
+ }>, z.ZodObject<{
2617
+ data: z.ZodObject<{
2618
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2619
+ attemptNumber: z.ZodNumber;
2620
+ maxAttempts: z.ZodNumber;
2621
+ previousHistoryId: z.ZodString;
2622
+ originalFailureDate: z.ZodDate;
2623
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2624
+ field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
2625
+ autoFixable: z.ZodBoolean;
2626
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2627
+ }, "strip", z.ZodTypeAny, {
2628
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2629
+ autoFixable: boolean;
2630
+ error?: string | null | undefined;
2631
+ }, {
2632
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2633
+ autoFixable: boolean;
2634
+ error?: string | null | undefined;
2635
+ }>, "many">>>;
2636
+ }, "strip", z.ZodTypeAny, {
2637
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2638
+ attemptNumber: number;
2639
+ maxAttempts: number;
2640
+ previousHistoryId: string;
2641
+ originalFailureDate: Date;
2642
+ fields?: {
2643
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2644
+ autoFixable: boolean;
2645
+ error?: string | null | undefined;
2646
+ }[] | null | undefined;
2647
+ }, {
2648
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2649
+ attemptNumber: number;
2650
+ maxAttempts: number;
2651
+ previousHistoryId: string;
2652
+ originalFailureDate: Date;
2653
+ fields?: {
2654
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2655
+ autoFixable: boolean;
2656
+ error?: string | null | undefined;
2657
+ }[] | null | undefined;
2658
+ }>;
2659
+ type: z.ZodLiteral<"SCHEDULED_RETRY">;
2660
+ }, "strip", z.ZodTypeAny, {
2661
+ type: "SCHEDULED_RETRY";
2662
+ data: {
2663
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2664
+ attemptNumber: number;
2665
+ maxAttempts: number;
2666
+ previousHistoryId: string;
2667
+ originalFailureDate: Date;
2668
+ fields?: {
2669
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2670
+ autoFixable: boolean;
2671
+ error?: string | null | undefined;
2672
+ }[] | null | undefined;
2673
+ };
2674
+ }, {
2675
+ type: "SCHEDULED_RETRY";
2676
+ data: {
2677
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2678
+ attemptNumber: number;
2679
+ maxAttempts: number;
2680
+ previousHistoryId: string;
2681
+ originalFailureDate: Date;
2682
+ fields?: {
2683
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2684
+ autoFixable: boolean;
2685
+ error?: string | null | undefined;
2686
+ }[] | null | undefined;
2687
+ };
2688
+ }>, z.ZodObject<{
2689
+ data: z.ZodObject<{
2690
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2691
+ }, "strip", z.ZodTypeAny, {
2692
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2693
+ }, {
2694
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2695
+ }>;
2696
+ type: z.ZodLiteral<"UPDATED">;
2697
+ }, "strip", z.ZodTypeAny, {
2698
+ type: "UPDATED";
2699
+ data: {
2700
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2701
+ };
2702
+ }, {
2703
+ type: "UPDATED";
2704
+ data: {
2705
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2706
+ };
2707
+ }>, z.ZodObject<{
2708
+ data: z.ZodObject<{
2709
+ platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
2710
+ post: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2711
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2712
+ catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2713
+ catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2714
+ colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2715
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
2716
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2717
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2718
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2719
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2720
+ photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2721
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2722
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2723
+ size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2724
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2725
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2726
+ statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2727
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2728
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2729
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2730
+ availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2731
+ material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
2732
+ manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2733
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2734
+ }, "strip", z.ZodTypeAny, {
2735
+ status?: string | null | undefined;
2736
+ price?: number | null | undefined;
2737
+ currency?: string | null | undefined;
2738
+ brand?: string | null | undefined;
2739
+ catalog?: string | null | undefined;
2740
+ catalogId?: number | null | undefined;
2741
+ colors?: string[] | null | undefined;
2742
+ colorIds?: number[] | null | undefined;
2743
+ description?: string | null | undefined;
2744
+ measurementLength?: number | null | undefined;
2745
+ measurementWidth?: number | null | undefined;
2746
+ packageSizeId?: number | null | undefined;
2747
+ photoUrls?: string[] | null | undefined;
2748
+ size?: string | null | undefined;
2749
+ sizeId?: number | null | undefined;
2750
+ statusId?: number | null | undefined;
2751
+ title?: string | null | undefined;
2752
+ isDraft?: boolean | null | undefined;
2753
+ isArchived?: boolean | null | undefined;
2754
+ availableQuantity?: number | null | undefined;
2755
+ material?: number[] | null | undefined;
2756
+ manufacturerLabelling?: string | null | undefined;
2757
+ labels?: string[] | null | undefined;
2758
+ }, {
2759
+ status?: string | null | undefined;
2760
+ price?: number | null | undefined;
2761
+ currency?: string | null | undefined;
2762
+ brand?: string | null | undefined;
2763
+ catalog?: string | null | undefined;
2764
+ catalogId?: number | null | undefined;
2765
+ colors?: string[] | null | undefined;
2766
+ colorIds?: number[] | null | undefined;
2767
+ description?: string | null | undefined;
2768
+ measurementLength?: number | null | undefined;
2769
+ measurementWidth?: number | null | undefined;
2770
+ packageSizeId?: number | null | undefined;
2771
+ photoUrls?: string[] | null | undefined;
2772
+ size?: string | null | undefined;
2773
+ sizeId?: number | null | undefined;
2774
+ statusId?: number | null | undefined;
2775
+ title?: string | null | undefined;
2776
+ isDraft?: boolean | null | undefined;
2777
+ isArchived?: boolean | null | undefined;
2778
+ availableQuantity?: number | null | undefined;
2779
+ material?: number[] | null | undefined;
2780
+ manufacturerLabelling?: string | null | undefined;
2781
+ labels?: string[] | null | undefined;
2782
+ }>>>;
2783
+ targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2784
+ }, "strip", z.ZodTypeAny, {
2785
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2786
+ post?: {
2787
+ status?: string | null | undefined;
2788
+ price?: number | null | undefined;
2789
+ currency?: string | null | undefined;
2790
+ brand?: string | null | undefined;
2791
+ catalog?: string | null | undefined;
2792
+ catalogId?: number | null | undefined;
2793
+ colors?: string[] | null | undefined;
2794
+ colorIds?: number[] | null | undefined;
2795
+ description?: string | null | undefined;
2796
+ measurementLength?: number | null | undefined;
2797
+ measurementWidth?: number | null | undefined;
2798
+ packageSizeId?: number | null | undefined;
2799
+ photoUrls?: string[] | null | undefined;
2800
+ size?: string | null | undefined;
2801
+ sizeId?: number | null | undefined;
2802
+ statusId?: number | null | undefined;
2803
+ title?: string | null | undefined;
2804
+ isDraft?: boolean | null | undefined;
2805
+ isArchived?: boolean | null | undefined;
2806
+ availableQuantity?: number | null | undefined;
2807
+ material?: number[] | null | undefined;
2808
+ manufacturerLabelling?: string | null | undefined;
2809
+ labels?: string[] | null | undefined;
2810
+ } | null | undefined;
2811
+ targetDate?: Date | null | undefined;
2812
+ }, {
2813
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2814
+ post?: {
2815
+ status?: string | null | undefined;
2816
+ price?: number | null | undefined;
2817
+ currency?: string | null | undefined;
2818
+ brand?: string | null | undefined;
2819
+ catalog?: string | null | undefined;
2820
+ catalogId?: number | null | undefined;
2821
+ colors?: string[] | null | undefined;
2822
+ colorIds?: number[] | null | undefined;
2823
+ description?: string | null | undefined;
2824
+ measurementLength?: number | null | undefined;
2825
+ measurementWidth?: number | null | undefined;
2826
+ packageSizeId?: number | null | undefined;
2827
+ photoUrls?: string[] | null | undefined;
2828
+ size?: string | null | undefined;
2829
+ sizeId?: number | null | undefined;
2830
+ statusId?: number | null | undefined;
2831
+ title?: string | null | undefined;
2832
+ isDraft?: boolean | null | undefined;
2833
+ isArchived?: boolean | null | undefined;
2834
+ availableQuantity?: number | null | undefined;
2835
+ material?: number[] | null | undefined;
2836
+ manufacturerLabelling?: string | null | undefined;
2837
+ labels?: string[] | null | undefined;
2838
+ } | null | undefined;
2839
+ targetDate?: Date | null | undefined;
2840
+ }>;
2841
+ type: z.ZodLiteral<"UPDATING">;
2842
+ }, "strip", z.ZodTypeAny, {
2843
+ type: "UPDATING";
2844
+ data: {
2845
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2846
+ post?: {
2847
+ status?: string | null | undefined;
2848
+ price?: number | null | undefined;
2849
+ currency?: string | null | undefined;
2850
+ brand?: string | null | undefined;
2851
+ catalog?: string | null | undefined;
2852
+ catalogId?: number | null | undefined;
2853
+ colors?: string[] | null | undefined;
2854
+ colorIds?: number[] | null | undefined;
2855
+ description?: string | null | undefined;
2856
+ measurementLength?: number | null | undefined;
2857
+ measurementWidth?: number | null | undefined;
2858
+ packageSizeId?: number | null | undefined;
2859
+ photoUrls?: string[] | null | undefined;
2860
+ size?: string | null | undefined;
2861
+ sizeId?: number | null | undefined;
2862
+ statusId?: number | null | undefined;
2863
+ title?: string | null | undefined;
2864
+ isDraft?: boolean | null | undefined;
2865
+ isArchived?: boolean | null | undefined;
2866
+ availableQuantity?: number | null | undefined;
2867
+ material?: number[] | null | undefined;
2868
+ manufacturerLabelling?: string | null | undefined;
2869
+ labels?: string[] | null | undefined;
2870
+ } | null | undefined;
2871
+ targetDate?: Date | null | undefined;
2872
+ };
2873
+ }, {
2874
+ type: "UPDATING";
2875
+ data: {
2876
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2877
+ post?: {
2878
+ status?: string | null | undefined;
2879
+ price?: number | null | undefined;
2880
+ currency?: string | null | undefined;
2881
+ brand?: string | null | undefined;
2882
+ catalog?: string | null | undefined;
2883
+ catalogId?: number | null | undefined;
2884
+ colors?: string[] | null | undefined;
2885
+ colorIds?: number[] | null | undefined;
2886
+ description?: string | null | undefined;
2887
+ measurementLength?: number | null | undefined;
2888
+ measurementWidth?: number | null | undefined;
2889
+ packageSizeId?: number | null | undefined;
2890
+ photoUrls?: string[] | null | undefined;
2891
+ size?: string | null | undefined;
2892
+ sizeId?: number | null | undefined;
2893
+ statusId?: number | null | undefined;
2894
+ title?: string | null | undefined;
2895
+ isDraft?: boolean | null | undefined;
2896
+ isArchived?: boolean | null | undefined;
2897
+ availableQuantity?: number | null | undefined;
2898
+ material?: number[] | null | undefined;
2899
+ manufacturerLabelling?: string | null | undefined;
2900
+ labels?: string[] | null | undefined;
2901
+ } | null | undefined;
2902
+ targetDate?: Date | null | undefined;
2903
+ };
2904
+ }>]>>>;
2905
+ createdAt: z.ZodDate;
2906
+ targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2907
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2908
+ requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2909
+ }, "strip", z.ZodTypeAny, {
2910
+ 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";
2911
+ id: string;
2912
+ createdAt: Date;
2913
+ itemId: string | number;
2914
+ data?: {
2915
+ type: "ACTION_CANCELED";
2916
+ data: {
2917
+ targetItemHistoryId: string;
2918
+ };
2919
+ } | {
2920
+ type: "BUYER_PAID";
2921
+ data: {
2922
+ soldAccountId: string;
2923
+ soldOrderId: string;
2924
+ soldConversationId?: string | null | undefined;
2925
+ };
2926
+ } | {
2927
+ type: "DELIVERED";
2928
+ data: {
2929
+ soldAccountId: string;
2930
+ soldOrderId: string;
2931
+ soldConversationId?: string | null | undefined;
2932
+ };
2933
+ } | {
2934
+ type: "EMPTY";
2935
+ } | {
2936
+ type: "FAILED_TO_PUBLISH";
2937
+ data: {
2938
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2939
+ accountId?: string | null | undefined;
2940
+ reason?: string | null | undefined;
2941
+ fields?: {
2942
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2943
+ autoFixable: boolean;
2944
+ error?: string | null | undefined;
2945
+ }[] | null | undefined;
2946
+ itemHistoryId?: string | null | undefined;
2947
+ };
2948
+ } | {
2949
+ type: "IMAGE_PROCESSING_DONE";
2950
+ data: {
2951
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2952
+ variations?: {
2953
+ fileId: string;
2954
+ seed: number;
2955
+ phash: string;
2956
+ distanceOriginal: number;
2957
+ originalImageUrl: string;
2958
+ originalPhash: string;
2959
+ }[] | null | undefined;
2960
+ originalPhashes?: string[] | null | undefined;
2961
+ };
2962
+ } | {
2963
+ type: "IMPORTED";
2964
+ data: {
2965
+ post: {
2966
+ platformId: string;
2967
+ post: {
2968
+ status?: string | null | undefined;
2969
+ price?: number | null | undefined;
2970
+ currency?: string | null | undefined;
2971
+ brand?: string | null | undefined;
2972
+ catalog?: string | null | undefined;
2973
+ catalogId?: number | null | undefined;
2974
+ colors?: string[] | null | undefined;
2975
+ colorIds?: number[] | null | undefined;
2976
+ description?: string | null | undefined;
2977
+ measurementLength?: number | null | undefined;
2978
+ measurementWidth?: number | null | undefined;
2979
+ packageSizeId?: number | null | undefined;
2980
+ photoUrls?: string[] | null | undefined;
2981
+ size?: string | null | undefined;
2982
+ sizeId?: number | null | undefined;
2983
+ statusId?: number | null | undefined;
2984
+ title?: string | null | undefined;
2985
+ isDraft?: boolean | null | undefined;
2986
+ isArchived?: boolean | null | undefined;
2987
+ availableQuantity?: number | null | undefined;
2988
+ material?: number[] | null | undefined;
2989
+ manufacturerLabelling?: string | null | undefined;
2990
+ labels?: string[] | null | undefined;
2991
+ };
2992
+ createdAt?: Date | null | undefined;
2993
+ platformUrl?: string | null | undefined;
2994
+ };
2995
+ };
2996
+ } | {
2997
+ type: "LIFECYCLE_COMPLETED";
2998
+ data: {
2999
+ accountId: string;
3000
+ };
3001
+ } | {
3002
+ type: "LIFECYCLE_STARTED";
3003
+ data: {
3004
+ accountId: string;
3005
+ caseId: string;
3006
+ };
3007
+ } | {
3008
+ type: "PUBLISHED";
3009
+ data: {
3010
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3011
+ };
3012
+ } | {
3013
+ type: "REPUBLISHING";
3014
+ data: {
3015
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3016
+ publishingDate?: Date | null | undefined;
3017
+ priceDropPayload?: {
3018
+ value: number;
3019
+ type: "PERCENTAGE" | "ABSOLUTE";
3020
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3021
+ roundStep?: number | null | undefined;
3022
+ maxRounds?: number | null | undefined;
3023
+ } | null | undefined;
3024
+ isTransfer?: boolean | null | undefined;
3025
+ targetAccountId?: string | null | undefined;
3026
+ };
3027
+ } | {
3028
+ type: "REPUBLISHING_RETRY";
3029
+ data: {
3030
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3031
+ attemptNumber: number;
3032
+ maxAttempts: number;
3033
+ previousHistoryId: string;
3034
+ originalFailureDate: Date;
3035
+ fields?: {
3036
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3037
+ autoFixable: boolean;
3038
+ error?: string | null | undefined;
3039
+ }[] | null | undefined;
3040
+ priceDropPayload?: {
3041
+ value: number;
3042
+ type: "PERCENTAGE" | "ABSOLUTE";
3043
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3044
+ roundStep?: number | null | undefined;
3045
+ maxRounds?: number | null | undefined;
3046
+ } | null | undefined;
3047
+ };
3048
+ } | {
3049
+ type: "SCHEDULED";
3050
+ data: {
3051
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3052
+ publishingDate?: Date | null | undefined;
3053
+ };
3054
+ } | {
3055
+ type: "SCHEDULED_RETRY";
3056
+ data: {
3057
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3058
+ attemptNumber: number;
3059
+ maxAttempts: number;
3060
+ previousHistoryId: string;
3061
+ originalFailureDate: Date;
3062
+ fields?: {
3063
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3064
+ autoFixable: boolean;
3065
+ error?: string | null | undefined;
3066
+ }[] | null | undefined;
3067
+ };
3068
+ } | {
3069
+ type: "UPDATED";
3070
+ data: {
3071
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3072
+ };
3073
+ } | {
3074
+ type: "UPDATING";
3075
+ data: {
3076
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3077
+ post?: {
3078
+ status?: string | null | undefined;
3079
+ price?: number | null | undefined;
3080
+ currency?: string | null | undefined;
3081
+ brand?: string | null | undefined;
3082
+ catalog?: string | null | undefined;
3083
+ catalogId?: number | null | undefined;
3084
+ colors?: string[] | null | undefined;
3085
+ colorIds?: number[] | null | undefined;
3086
+ description?: string | null | undefined;
3087
+ measurementLength?: number | null | undefined;
3088
+ measurementWidth?: number | null | undefined;
3089
+ packageSizeId?: number | null | undefined;
3090
+ photoUrls?: string[] | null | undefined;
3091
+ size?: string | null | undefined;
3092
+ sizeId?: number | null | undefined;
3093
+ statusId?: number | null | undefined;
3094
+ title?: string | null | undefined;
3095
+ isDraft?: boolean | null | undefined;
3096
+ isArchived?: boolean | null | undefined;
3097
+ availableQuantity?: number | null | undefined;
3098
+ material?: number[] | null | undefined;
3099
+ manufacturerLabelling?: string | null | undefined;
3100
+ labels?: string[] | null | undefined;
3101
+ } | null | undefined;
3102
+ targetDate?: Date | null | undefined;
3103
+ };
3104
+ } | null | undefined;
3105
+ accountId?: string | null | undefined;
3106
+ requestId?: string | null | undefined;
3107
+ targetDate?: Date | null | undefined;
3108
+ }, {
3109
+ 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";
3110
+ id: string;
3111
+ createdAt: Date;
3112
+ itemId: string | number;
3113
+ data?: {
3114
+ type: "ACTION_CANCELED";
3115
+ data: {
3116
+ targetItemHistoryId: string;
3117
+ };
3118
+ } | {
3119
+ type: "BUYER_PAID";
3120
+ data: {
3121
+ soldAccountId: string;
3122
+ soldOrderId: string;
3123
+ soldConversationId?: string | null | undefined;
3124
+ };
3125
+ } | {
3126
+ type: "DELIVERED";
3127
+ data: {
3128
+ soldAccountId: string;
3129
+ soldOrderId: string;
3130
+ soldConversationId?: string | null | undefined;
3131
+ };
3132
+ } | {
3133
+ type: "EMPTY";
3134
+ } | {
3135
+ type: "FAILED_TO_PUBLISH";
3136
+ data: {
3137
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3138
+ accountId?: string | null | undefined;
3139
+ reason?: string | null | undefined;
3140
+ fields?: {
3141
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3142
+ autoFixable: boolean;
3143
+ error?: string | null | undefined;
3144
+ }[] | null | undefined;
3145
+ itemHistoryId?: string | null | undefined;
3146
+ };
3147
+ } | {
3148
+ type: "IMAGE_PROCESSING_DONE";
3149
+ data: {
3150
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3151
+ variations?: {
3152
+ fileId: string;
3153
+ seed: number;
3154
+ phash: string;
3155
+ distanceOriginal: number;
3156
+ originalImageUrl: string;
3157
+ originalPhash: string;
3158
+ }[] | null | undefined;
3159
+ originalPhashes?: string[] | null | undefined;
3160
+ };
3161
+ } | {
3162
+ type: "IMPORTED";
3163
+ data: {
3164
+ post: {
3165
+ platformId: string;
3166
+ post: {
3167
+ status?: string | null | undefined;
3168
+ price?: number | null | undefined;
3169
+ currency?: string | null | undefined;
3170
+ brand?: string | null | undefined;
3171
+ catalog?: string | null | undefined;
3172
+ catalogId?: number | null | undefined;
3173
+ colors?: string[] | null | undefined;
3174
+ colorIds?: number[] | null | undefined;
3175
+ description?: string | null | undefined;
3176
+ measurementLength?: number | null | undefined;
3177
+ measurementWidth?: number | null | undefined;
3178
+ packageSizeId?: number | null | undefined;
3179
+ photoUrls?: string[] | null | undefined;
3180
+ size?: string | null | undefined;
3181
+ sizeId?: number | null | undefined;
3182
+ statusId?: number | null | undefined;
3183
+ title?: string | null | undefined;
3184
+ isDraft?: boolean | null | undefined;
3185
+ isArchived?: boolean | null | undefined;
3186
+ availableQuantity?: number | null | undefined;
3187
+ material?: number[] | null | undefined;
3188
+ manufacturerLabelling?: string | null | undefined;
3189
+ labels?: string[] | null | undefined;
3190
+ };
3191
+ createdAt?: Date | null | undefined;
3192
+ platformUrl?: string | null | undefined;
3193
+ };
3194
+ };
3195
+ } | {
3196
+ type: "LIFECYCLE_COMPLETED";
3197
+ data: {
3198
+ accountId: string;
3199
+ };
3200
+ } | {
3201
+ type: "LIFECYCLE_STARTED";
3202
+ data: {
3203
+ accountId: string;
3204
+ caseId: string;
3205
+ };
3206
+ } | {
3207
+ type: "PUBLISHED";
3208
+ data: {
3209
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3210
+ };
3211
+ } | {
3212
+ type: "REPUBLISHING";
3213
+ data: {
3214
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3215
+ publishingDate?: Date | null | undefined;
3216
+ priceDropPayload?: {
3217
+ value: number;
3218
+ type: "PERCENTAGE" | "ABSOLUTE";
3219
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3220
+ roundStep?: number | null | undefined;
3221
+ maxRounds?: number | null | undefined;
3222
+ } | null | undefined;
3223
+ isTransfer?: boolean | null | undefined;
3224
+ targetAccountId?: string | null | undefined;
3225
+ };
3226
+ } | {
3227
+ type: "REPUBLISHING_RETRY";
3228
+ data: {
3229
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3230
+ attemptNumber: number;
3231
+ maxAttempts: number;
3232
+ previousHistoryId: string;
3233
+ originalFailureDate: Date;
3234
+ fields?: {
3235
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3236
+ autoFixable: boolean;
3237
+ error?: string | null | undefined;
3238
+ }[] | null | undefined;
3239
+ priceDropPayload?: {
3240
+ value: number;
3241
+ type: "PERCENTAGE" | "ABSOLUTE";
3242
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3243
+ roundStep?: number | null | undefined;
3244
+ maxRounds?: number | null | undefined;
3245
+ } | null | undefined;
3246
+ };
3247
+ } | {
3248
+ type: "SCHEDULED";
3249
+ data: {
3250
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3251
+ publishingDate?: Date | null | undefined;
3252
+ };
3253
+ } | {
3254
+ type: "SCHEDULED_RETRY";
3255
+ data: {
3256
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3257
+ attemptNumber: number;
3258
+ maxAttempts: number;
3259
+ previousHistoryId: string;
3260
+ originalFailureDate: Date;
3261
+ fields?: {
3262
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3263
+ autoFixable: boolean;
3264
+ error?: string | null | undefined;
3265
+ }[] | null | undefined;
3266
+ };
3267
+ } | {
3268
+ type: "UPDATED";
3269
+ data: {
3270
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3271
+ };
3272
+ } | {
3273
+ type: "UPDATING";
3274
+ data: {
3275
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3276
+ post?: {
3277
+ status?: string | null | undefined;
3278
+ price?: number | null | undefined;
3279
+ currency?: string | null | undefined;
3280
+ brand?: string | null | undefined;
3281
+ catalog?: string | null | undefined;
3282
+ catalogId?: number | null | undefined;
3283
+ colors?: string[] | null | undefined;
3284
+ colorIds?: number[] | null | undefined;
3285
+ description?: string | null | undefined;
3286
+ measurementLength?: number | null | undefined;
3287
+ measurementWidth?: number | null | undefined;
3288
+ packageSizeId?: number | null | undefined;
3289
+ photoUrls?: string[] | null | undefined;
3290
+ size?: string | null | undefined;
3291
+ sizeId?: number | null | undefined;
3292
+ statusId?: number | null | undefined;
3293
+ title?: string | null | undefined;
3294
+ isDraft?: boolean | null | undefined;
3295
+ isArchived?: boolean | null | undefined;
3296
+ availableQuantity?: number | null | undefined;
3297
+ material?: number[] | null | undefined;
3298
+ manufacturerLabelling?: string | null | undefined;
3299
+ labels?: string[] | null | undefined;
3300
+ } | null | undefined;
3301
+ targetDate?: Date | null | undefined;
3302
+ };
3303
+ } | null | undefined;
3304
+ accountId?: string | null | undefined;
3305
+ requestId?: string | null | undefined;
3306
+ targetDate?: Date | null | undefined;
3307
+ }>, "many">>>;
3308
+ createdAt: z.ZodDate;
3309
+ updatedAt: z.ZodDate;
3310
+ }, "strip", z.ZodTypeAny, {
3311
+ userId: string | number;
3312
+ id: string | number;
3313
+ updatedAt: Date;
3314
+ name: string;
3315
+ createdAt: Date;
3316
+ sold: boolean;
3317
+ state?: number | null | undefined;
3318
+ colorIds?: number[] | null | undefined;
3319
+ description?: string | null | undefined;
3320
+ packageSizeId?: number | null | undefined;
3321
+ sizeId?: number | null | undefined;
3322
+ labels?: {
3323
+ itemId: string | number;
3324
+ labelId: string | number;
3325
+ label?: {
3326
+ id: string | number;
3327
+ name: string;
3328
+ createdAt: Date;
3329
+ isUserLabel: boolean;
3330
+ userId?: string | number | null | undefined;
3331
+ itemCount?: number | null | undefined;
3332
+ parentId?: unknown;
3333
+ } | null | undefined;
3334
+ }[] | null | undefined;
3335
+ files?: {
3336
+ itemId: string | number;
3337
+ fileId: string;
3338
+ index?: number | null | undefined;
3339
+ file?: {
3340
+ path: string;
3341
+ userId: string | number;
3342
+ id: string;
3343
+ createdAt: Date;
3344
+ signedUrl: string;
3345
+ } | null | undefined;
3346
+ }[] | null | undefined;
3347
+ fields?: {
3348
+ value: string;
3349
+ itemId: string | number;
3350
+ fieldId: string | number;
3351
+ }[] | null | undefined;
3352
+ sku?: string | null | undefined;
3353
+ categoryId?: number | null | undefined;
3354
+ brandId?: string | number | null | undefined;
3355
+ sex?: string | null | undefined;
3356
+ purchasePrice?: number | null | undefined;
3357
+ purchaseDate?: Date | null | undefined;
3358
+ purchasePlaceId?: string | number | null | undefined;
3359
+ purchased?: boolean | null | undefined;
3360
+ sellingPrice?: number | null | undefined;
3361
+ sellingDate?: Date | null | undefined;
3362
+ sellingPlaceId?: string | number | null | undefined;
3363
+ estimatedPrice?: number | null | undefined;
3364
+ fees?: {
3365
+ value: number;
3366
+ type: string;
3367
+ userId: string | number;
3368
+ id: string | number;
3369
+ updatedAt: Date;
3370
+ name: string;
3371
+ createdAt: Date;
3372
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
3373
+ startDate: Date;
3374
+ active: boolean;
3375
+ description?: string | null | undefined;
3376
+ itemId?: string | number | null | undefined;
3377
+ endDate?: Date | null | undefined;
3378
+ parentFeeId?: string | number | null | undefined;
3379
+ }[] | null | undefined;
3380
+ feesSum?: number | null | undefined;
3381
+ customerId?: string | number | null | undefined;
3382
+ customer?: {
3383
+ userId: string | number;
3384
+ id: string | number;
3385
+ email: string;
3386
+ firstName: string;
3387
+ lastName: string;
3388
+ birthDate: Date;
3389
+ idNumber: string;
3390
+ phone: string;
3391
+ iban: string;
3392
+ bic: string;
3393
+ phoneVerified: boolean;
3394
+ } | null | undefined;
3395
+ customerType?: string | null | undefined;
3396
+ customerPaid?: boolean | null | undefined;
3397
+ customerPaidDate?: Date | null | undefined;
3398
+ customerPaidType?: string | null | undefined;
3399
+ contractId?: string | number | null | undefined;
3400
+ lastHistory?: {
3401
+ 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";
3402
+ id: string;
3403
+ createdAt: Date;
3404
+ itemId: string | number;
3405
+ data?: {
3406
+ type: "ACTION_CANCELED";
3407
+ data: {
3408
+ targetItemHistoryId: string;
3409
+ };
3410
+ } | {
3411
+ type: "BUYER_PAID";
3412
+ data: {
3413
+ soldAccountId: string;
3414
+ soldOrderId: string;
3415
+ soldConversationId?: string | null | undefined;
3416
+ };
3417
+ } | {
3418
+ type: "DELIVERED";
3419
+ data: {
3420
+ soldAccountId: string;
3421
+ soldOrderId: string;
3422
+ soldConversationId?: string | null | undefined;
3423
+ };
3424
+ } | {
3425
+ type: "EMPTY";
3426
+ } | {
3427
+ type: "FAILED_TO_PUBLISH";
3428
+ data: {
3429
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3430
+ accountId?: string | null | undefined;
3431
+ reason?: string | null | undefined;
3432
+ fields?: {
3433
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3434
+ autoFixable: boolean;
3435
+ error?: string | null | undefined;
3436
+ }[] | null | undefined;
3437
+ itemHistoryId?: string | null | undefined;
3438
+ };
3439
+ } | {
3440
+ type: "IMAGE_PROCESSING_DONE";
3441
+ data: {
3442
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3443
+ variations?: {
3444
+ fileId: string;
3445
+ seed: number;
3446
+ phash: string;
3447
+ distanceOriginal: number;
3448
+ originalImageUrl: string;
3449
+ originalPhash: string;
3450
+ }[] | null | undefined;
3451
+ originalPhashes?: string[] | null | undefined;
3452
+ };
3453
+ } | {
3454
+ type: "IMPORTED";
3455
+ data: {
3456
+ post: {
3457
+ platformId: string;
3458
+ post: {
3459
+ status?: string | null | undefined;
3460
+ price?: number | null | undefined;
3461
+ currency?: string | null | undefined;
3462
+ brand?: string | null | undefined;
3463
+ catalog?: string | null | undefined;
3464
+ catalogId?: number | null | undefined;
3465
+ colors?: string[] | null | undefined;
3466
+ colorIds?: number[] | null | undefined;
3467
+ description?: string | null | undefined;
3468
+ measurementLength?: number | null | undefined;
3469
+ measurementWidth?: number | null | undefined;
3470
+ packageSizeId?: number | null | undefined;
3471
+ photoUrls?: string[] | null | undefined;
3472
+ size?: string | null | undefined;
3473
+ sizeId?: number | null | undefined;
3474
+ statusId?: number | null | undefined;
3475
+ title?: string | null | undefined;
3476
+ isDraft?: boolean | null | undefined;
3477
+ isArchived?: boolean | null | undefined;
3478
+ availableQuantity?: number | null | undefined;
3479
+ material?: number[] | null | undefined;
3480
+ manufacturerLabelling?: string | null | undefined;
3481
+ labels?: string[] | null | undefined;
3482
+ };
3483
+ createdAt?: Date | null | undefined;
3484
+ platformUrl?: string | null | undefined;
3485
+ };
3486
+ };
3487
+ } | {
3488
+ type: "LIFECYCLE_COMPLETED";
3489
+ data: {
3490
+ accountId: string;
3491
+ };
3492
+ } | {
3493
+ type: "LIFECYCLE_STARTED";
3494
+ data: {
3495
+ accountId: string;
3496
+ caseId: string;
3497
+ };
3498
+ } | {
3499
+ type: "PUBLISHED";
3500
+ data: {
3501
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3502
+ };
3503
+ } | {
3504
+ type: "REPUBLISHING";
3505
+ data: {
3506
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3507
+ publishingDate?: Date | null | undefined;
3508
+ priceDropPayload?: {
3509
+ value: number;
3510
+ type: "PERCENTAGE" | "ABSOLUTE";
3511
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3512
+ roundStep?: number | null | undefined;
3513
+ maxRounds?: number | null | undefined;
3514
+ } | null | undefined;
3515
+ isTransfer?: boolean | null | undefined;
3516
+ targetAccountId?: string | null | undefined;
3517
+ };
3518
+ } | {
3519
+ type: "REPUBLISHING_RETRY";
3520
+ data: {
3521
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3522
+ attemptNumber: number;
3523
+ maxAttempts: number;
3524
+ previousHistoryId: string;
3525
+ originalFailureDate: Date;
3526
+ fields?: {
3527
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3528
+ autoFixable: boolean;
3529
+ error?: string | null | undefined;
3530
+ }[] | null | undefined;
3531
+ priceDropPayload?: {
3532
+ value: number;
3533
+ type: "PERCENTAGE" | "ABSOLUTE";
3534
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
3535
+ roundStep?: number | null | undefined;
3536
+ maxRounds?: number | null | undefined;
3537
+ } | null | undefined;
3538
+ };
3539
+ } | {
3540
+ type: "SCHEDULED";
3541
+ data: {
3542
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3543
+ publishingDate?: Date | null | undefined;
3544
+ };
3545
+ } | {
3546
+ type: "SCHEDULED_RETRY";
3547
+ data: {
3548
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3549
+ attemptNumber: number;
3550
+ maxAttempts: number;
3551
+ previousHistoryId: string;
3552
+ originalFailureDate: Date;
3553
+ fields?: {
3554
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3555
+ autoFixable: boolean;
3556
+ error?: string | null | undefined;
3557
+ }[] | null | undefined;
3558
+ };
3559
+ } | {
3560
+ type: "UPDATED";
3561
+ data: {
3562
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3563
+ };
3564
+ } | {
3565
+ type: "UPDATING";
3566
+ data: {
3567
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3568
+ post?: {
3569
+ status?: string | null | undefined;
3570
+ price?: number | null | undefined;
3571
+ currency?: string | null | undefined;
3572
+ brand?: string | null | undefined;
3573
+ catalog?: string | null | undefined;
3574
+ catalogId?: number | null | undefined;
3575
+ colors?: string[] | null | undefined;
3576
+ colorIds?: number[] | null | undefined;
3577
+ description?: string | null | undefined;
3578
+ measurementLength?: number | null | undefined;
3579
+ measurementWidth?: number | null | undefined;
3580
+ packageSizeId?: number | null | undefined;
3581
+ photoUrls?: string[] | null | undefined;
3582
+ size?: string | null | undefined;
3583
+ sizeId?: number | null | undefined;
3584
+ statusId?: number | null | undefined;
3585
+ title?: string | null | undefined;
3586
+ isDraft?: boolean | null | undefined;
3587
+ isArchived?: boolean | null | undefined;
3588
+ availableQuantity?: number | null | undefined;
3589
+ material?: number[] | null | undefined;
3590
+ manufacturerLabelling?: string | null | undefined;
3591
+ labels?: string[] | null | undefined;
3592
+ } | null | undefined;
3593
+ targetDate?: Date | null | undefined;
3594
+ };
3595
+ } | null | undefined;
3596
+ accountId?: string | null | undefined;
3597
+ requestId?: string | null | undefined;
3598
+ targetDate?: Date | null | undefined;
3599
+ } | null | undefined;
3600
+ platforms?: {
3601
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
3602
+ id: string;
3603
+ updatedAt: Date;
3604
+ createdAt: Date;
3605
+ accountId: string;
3606
+ itemId: string | number;
3607
+ platformId: string;
3608
+ platformUrl: string;
3609
+ platformPrice: number;
3610
+ publishedAt: Date;
3611
+ conversationId?: string | null | undefined;
3612
+ account?: {
3613
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
3614
+ userId: string | number;
3615
+ name: string;
3616
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3617
+ accountId: string;
3618
+ locale?: string | null | undefined;
3619
+ night?: {
3620
+ startsAt: Date;
3621
+ endsAt: Date;
3622
+ } | null | undefined;
3623
+ favoritesMaxDelay?: number | null | undefined;
3624
+ ordersMaxDelay?: number | null | undefined;
3625
+ conversationsMaxDelay?: number | null | undefined;
3626
+ } | null | undefined;
3627
+ viewsCount?: number | null | undefined;
3628
+ favoritesCount?: number | null | undefined;
3629
+ }[] | null | undefined;
3630
+ history?: {
3631
+ 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";
3632
+ id: string;
3633
+ createdAt: Date;
3634
+ itemId: string | number;
3635
+ data?: {
3636
+ type: "ACTION_CANCELED";
3637
+ data: {
3638
+ targetItemHistoryId: string;
3639
+ };
3640
+ } | {
3641
+ type: "BUYER_PAID";
3642
+ data: {
3643
+ soldAccountId: string;
3644
+ soldOrderId: string;
3645
+ soldConversationId?: string | null | undefined;
3646
+ };
3647
+ } | {
3648
+ type: "DELIVERED";
3649
+ data: {
3650
+ soldAccountId: string;
3651
+ soldOrderId: string;
3652
+ soldConversationId?: string | null | undefined;
3653
+ };
3654
+ } | {
3655
+ type: "EMPTY";
3656
+ } | {
3657
+ type: "FAILED_TO_PUBLISH";
3658
+ data: {
3659
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3660
+ accountId?: string | null | undefined;
3661
+ reason?: string | null | undefined;
3662
+ fields?: {
3663
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3664
+ autoFixable: boolean;
3665
+ error?: string | null | undefined;
3666
+ }[] | null | undefined;
3667
+ itemHistoryId?: string | null | undefined;
3668
+ };
3669
+ } | {
3670
+ type: "IMAGE_PROCESSING_DONE";
3671
+ data: {
3672
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3673
+ variations?: {
1676
3674
  fileId: string;
1677
3675
  seed: number;
1678
3676
  phash: string;
@@ -1788,40 +3786,46 @@ export declare const ItemSchema: z.ZodObject<{
1788
3786
  error?: string | null | undefined;
1789
3787
  }[] | null | undefined;
1790
3788
  };
3789
+ } | {
3790
+ type: "UPDATED";
3791
+ data: {
3792
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3793
+ };
3794
+ } | {
3795
+ type: "UPDATING";
3796
+ data: {
3797
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3798
+ post?: {
3799
+ status?: string | null | undefined;
3800
+ price?: number | null | undefined;
3801
+ currency?: string | null | undefined;
3802
+ brand?: string | null | undefined;
3803
+ catalog?: string | null | undefined;
3804
+ catalogId?: number | null | undefined;
3805
+ colors?: string[] | null | undefined;
3806
+ colorIds?: number[] | null | undefined;
3807
+ description?: string | null | undefined;
3808
+ measurementLength?: number | null | undefined;
3809
+ measurementWidth?: number | null | undefined;
3810
+ packageSizeId?: number | null | undefined;
3811
+ photoUrls?: string[] | null | undefined;
3812
+ size?: string | null | undefined;
3813
+ sizeId?: number | null | undefined;
3814
+ statusId?: number | null | undefined;
3815
+ title?: string | null | undefined;
3816
+ isDraft?: boolean | null | undefined;
3817
+ isArchived?: boolean | null | undefined;
3818
+ availableQuantity?: number | null | undefined;
3819
+ material?: number[] | null | undefined;
3820
+ manufacturerLabelling?: string | null | undefined;
3821
+ labels?: string[] | null | undefined;
3822
+ } | null | undefined;
3823
+ targetDate?: Date | null | undefined;
3824
+ };
1791
3825
  } | null | undefined;
1792
3826
  accountId?: string | null | undefined;
1793
3827
  requestId?: string | null | undefined;
1794
3828
  targetDate?: Date | null | undefined;
1795
- } | null | undefined;
1796
- platforms?: {
1797
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1798
- id: string;
1799
- updatedAt: Date;
1800
- createdAt: Date;
1801
- accountId: string;
1802
- itemId: string | number;
1803
- platformId: string;
1804
- platformUrl: string;
1805
- platformPrice: number;
1806
- publishedAt: Date;
1807
- conversationId?: string | null | undefined;
1808
- account?: {
1809
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
1810
- userId: string | number;
1811
- name: string;
1812
- platform: "ETSY" | "SHOPIFY" | "VINTED";
1813
- accountId: string;
1814
- locale?: string | null | undefined;
1815
- night?: {
1816
- startsAt: Date;
1817
- endsAt: Date;
1818
- } | null | undefined;
1819
- favoritesMaxDelay?: number | null | undefined;
1820
- ordersMaxDelay?: number | null | undefined;
1821
- conversationsMaxDelay?: number | null | undefined;
1822
- } | null | undefined;
1823
- viewsCount?: number | null | undefined;
1824
- favoritesCount?: number | null | undefined;
1825
3829
  }[] | null | undefined;
1826
3830
  }, {
1827
3831
  userId: string | number;
@@ -2072,6 +4076,42 @@ export declare const ItemSchema: z.ZodObject<{
2072
4076
  error?: string | null | undefined;
2073
4077
  }[] | null | undefined;
2074
4078
  };
4079
+ } | {
4080
+ type: "UPDATED";
4081
+ data: {
4082
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4083
+ };
4084
+ } | {
4085
+ type: "UPDATING";
4086
+ data: {
4087
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4088
+ post?: {
4089
+ status?: string | null | undefined;
4090
+ price?: number | null | undefined;
4091
+ currency?: string | null | undefined;
4092
+ brand?: string | null | undefined;
4093
+ catalog?: string | null | undefined;
4094
+ catalogId?: number | null | undefined;
4095
+ colors?: string[] | null | undefined;
4096
+ colorIds?: number[] | null | undefined;
4097
+ description?: string | null | undefined;
4098
+ measurementLength?: number | null | undefined;
4099
+ measurementWidth?: number | null | undefined;
4100
+ packageSizeId?: number | null | undefined;
4101
+ photoUrls?: string[] | null | undefined;
4102
+ size?: string | null | undefined;
4103
+ sizeId?: number | null | undefined;
4104
+ statusId?: number | null | undefined;
4105
+ title?: string | null | undefined;
4106
+ isDraft?: boolean | null | undefined;
4107
+ isArchived?: boolean | null | undefined;
4108
+ availableQuantity?: number | null | undefined;
4109
+ material?: number[] | null | undefined;
4110
+ manufacturerLabelling?: string | null | undefined;
4111
+ labels?: string[] | null | undefined;
4112
+ } | null | undefined;
4113
+ targetDate?: Date | null | undefined;
4114
+ };
2075
4115
  } | null | undefined;
2076
4116
  accountId?: string | null | undefined;
2077
4117
  requestId?: string | null | undefined;
@@ -2107,6 +4147,206 @@ export declare const ItemSchema: z.ZodObject<{
2107
4147
  viewsCount?: number | null | undefined;
2108
4148
  favoritesCount?: number | null | undefined;
2109
4149
  }[] | null | undefined;
4150
+ history?: {
4151
+ 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";
4152
+ id: string;
4153
+ createdAt: Date;
4154
+ itemId: string | number;
4155
+ data?: {
4156
+ type: "ACTION_CANCELED";
4157
+ data: {
4158
+ targetItemHistoryId: string;
4159
+ };
4160
+ } | {
4161
+ type: "BUYER_PAID";
4162
+ data: {
4163
+ soldAccountId: string;
4164
+ soldOrderId: string;
4165
+ soldConversationId?: string | null | undefined;
4166
+ };
4167
+ } | {
4168
+ type: "DELIVERED";
4169
+ data: {
4170
+ soldAccountId: string;
4171
+ soldOrderId: string;
4172
+ soldConversationId?: string | null | undefined;
4173
+ };
4174
+ } | {
4175
+ type: "EMPTY";
4176
+ } | {
4177
+ type: "FAILED_TO_PUBLISH";
4178
+ data: {
4179
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4180
+ accountId?: string | null | undefined;
4181
+ reason?: string | null | undefined;
4182
+ fields?: {
4183
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4184
+ autoFixable: boolean;
4185
+ error?: string | null | undefined;
4186
+ }[] | null | undefined;
4187
+ itemHistoryId?: string | null | undefined;
4188
+ };
4189
+ } | {
4190
+ type: "IMAGE_PROCESSING_DONE";
4191
+ data: {
4192
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4193
+ variations?: {
4194
+ fileId: string;
4195
+ seed: number;
4196
+ phash: string;
4197
+ distanceOriginal: number;
4198
+ originalImageUrl: string;
4199
+ originalPhash: string;
4200
+ }[] | null | undefined;
4201
+ originalPhashes?: string[] | null | undefined;
4202
+ };
4203
+ } | {
4204
+ type: "IMPORTED";
4205
+ data: {
4206
+ post: {
4207
+ platformId: string;
4208
+ post: {
4209
+ status?: string | null | undefined;
4210
+ price?: number | null | undefined;
4211
+ currency?: string | null | undefined;
4212
+ brand?: string | null | undefined;
4213
+ catalog?: string | null | undefined;
4214
+ catalogId?: number | null | undefined;
4215
+ colors?: string[] | null | undefined;
4216
+ colorIds?: number[] | null | undefined;
4217
+ description?: string | null | undefined;
4218
+ measurementLength?: number | null | undefined;
4219
+ measurementWidth?: number | null | undefined;
4220
+ packageSizeId?: number | null | undefined;
4221
+ photoUrls?: string[] | null | undefined;
4222
+ size?: string | null | undefined;
4223
+ sizeId?: number | null | undefined;
4224
+ statusId?: number | null | undefined;
4225
+ title?: string | null | undefined;
4226
+ isDraft?: boolean | null | undefined;
4227
+ isArchived?: boolean | null | undefined;
4228
+ availableQuantity?: number | null | undefined;
4229
+ material?: number[] | null | undefined;
4230
+ manufacturerLabelling?: string | null | undefined;
4231
+ labels?: string[] | null | undefined;
4232
+ };
4233
+ createdAt?: Date | null | undefined;
4234
+ platformUrl?: string | null | undefined;
4235
+ };
4236
+ };
4237
+ } | {
4238
+ type: "LIFECYCLE_COMPLETED";
4239
+ data: {
4240
+ accountId: string;
4241
+ };
4242
+ } | {
4243
+ type: "LIFECYCLE_STARTED";
4244
+ data: {
4245
+ accountId: string;
4246
+ caseId: string;
4247
+ };
4248
+ } | {
4249
+ type: "PUBLISHED";
4250
+ data: {
4251
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4252
+ };
4253
+ } | {
4254
+ type: "REPUBLISHING";
4255
+ data: {
4256
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4257
+ publishingDate?: Date | null | undefined;
4258
+ priceDropPayload?: {
4259
+ value: number;
4260
+ type: "PERCENTAGE" | "ABSOLUTE";
4261
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4262
+ roundStep?: number | null | undefined;
4263
+ maxRounds?: number | null | undefined;
4264
+ } | null | undefined;
4265
+ isTransfer?: boolean | null | undefined;
4266
+ targetAccountId?: string | null | undefined;
4267
+ };
4268
+ } | {
4269
+ type: "REPUBLISHING_RETRY";
4270
+ data: {
4271
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4272
+ attemptNumber: number;
4273
+ maxAttempts: number;
4274
+ previousHistoryId: string;
4275
+ originalFailureDate: Date;
4276
+ fields?: {
4277
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4278
+ autoFixable: boolean;
4279
+ error?: string | null | undefined;
4280
+ }[] | null | undefined;
4281
+ priceDropPayload?: {
4282
+ value: number;
4283
+ type: "PERCENTAGE" | "ABSOLUTE";
4284
+ roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
4285
+ roundStep?: number | null | undefined;
4286
+ maxRounds?: number | null | undefined;
4287
+ } | null | undefined;
4288
+ };
4289
+ } | {
4290
+ type: "SCHEDULED";
4291
+ data: {
4292
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4293
+ publishingDate?: Date | null | undefined;
4294
+ };
4295
+ } | {
4296
+ type: "SCHEDULED_RETRY";
4297
+ data: {
4298
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4299
+ attemptNumber: number;
4300
+ maxAttempts: number;
4301
+ previousHistoryId: string;
4302
+ originalFailureDate: Date;
4303
+ fields?: {
4304
+ field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
4305
+ autoFixable: boolean;
4306
+ error?: string | null | undefined;
4307
+ }[] | null | undefined;
4308
+ };
4309
+ } | {
4310
+ type: "UPDATED";
4311
+ data: {
4312
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4313
+ };
4314
+ } | {
4315
+ type: "UPDATING";
4316
+ data: {
4317
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
4318
+ post?: {
4319
+ status?: string | null | undefined;
4320
+ price?: number | null | undefined;
4321
+ currency?: string | null | undefined;
4322
+ brand?: string | null | undefined;
4323
+ catalog?: string | null | undefined;
4324
+ catalogId?: number | null | undefined;
4325
+ colors?: string[] | null | undefined;
4326
+ colorIds?: number[] | null | undefined;
4327
+ description?: string | null | undefined;
4328
+ measurementLength?: number | null | undefined;
4329
+ measurementWidth?: number | null | undefined;
4330
+ packageSizeId?: number | null | undefined;
4331
+ photoUrls?: string[] | null | undefined;
4332
+ size?: string | null | undefined;
4333
+ sizeId?: number | null | undefined;
4334
+ statusId?: number | null | undefined;
4335
+ title?: string | null | undefined;
4336
+ isDraft?: boolean | null | undefined;
4337
+ isArchived?: boolean | null | undefined;
4338
+ availableQuantity?: number | null | undefined;
4339
+ material?: number[] | null | undefined;
4340
+ manufacturerLabelling?: string | null | undefined;
4341
+ labels?: string[] | null | undefined;
4342
+ } | null | undefined;
4343
+ targetDate?: Date | null | undefined;
4344
+ };
4345
+ } | null | undefined;
4346
+ accountId?: string | null | undefined;
4347
+ requestId?: string | null | undefined;
4348
+ targetDate?: Date | null | undefined;
4349
+ }[] | null | undefined;
2110
4350
  }>;
2111
4351
  export type Item = z.infer<typeof ItemSchema>;
2112
4352
  //# sourceMappingURL=Item.d.ts.map