controlresell 2.7.7 → 2.8.2

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 (44) hide show
  1. package/package.json +4 -5
  2. package/src/com/controlresell/models/catalogs/Catalog.d.ts +3 -0
  3. package/src/com/controlresell/models/catalogs/Catalog.d.ts.map +1 -1
  4. package/src/com/controlresell/models/catalogs/Catalog.js +2 -1
  5. package/src/com/controlresell/models/catalogs/Catalog.js.map +1 -1
  6. package/src/com/controlresell/models/catalogs/Catalog.ts +2 -1
  7. package/src/com/controlresell/models/catalogs/CatalogRoot.d.ts +5 -0
  8. package/src/com/controlresell/models/catalogs/CatalogRoot.d.ts.map +1 -1
  9. package/src/com/controlresell/models/filters/SavedFilters.d.ts +5 -5
  10. package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts +5 -5
  11. package/src/com/controlresell/models/orders/FetchOrdersRequest.d.ts +53 -0
  12. package/src/com/controlresell/models/orders/FetchOrdersRequest.d.ts.map +1 -0
  13. package/src/com/controlresell/models/orders/FetchOrdersRequest.js +10 -0
  14. package/src/com/controlresell/models/orders/FetchOrdersRequest.js.map +1 -0
  15. package/src/com/controlresell/models/orders/FetchOrdersRequest.ts +8 -0
  16. package/src/com/controlresell/models/orders/FetchOrdersResponse.d.ts +50 -0
  17. package/src/com/controlresell/models/orders/FetchOrdersResponse.d.ts.map +1 -0
  18. package/src/com/controlresell/models/orders/FetchOrdersResponse.js +9 -0
  19. package/src/com/controlresell/models/orders/FetchOrdersResponse.js.map +1 -0
  20. package/src/com/controlresell/models/orders/FetchOrdersResponse.ts +7 -0
  21. package/src/com/controlresell/models/platforms/orders/Order.d.ts +6 -6
  22. package/src/com/controlresell/models/platforms/orders/OrderLabelUpdate.d.ts +187 -0
  23. package/src/com/controlresell/models/platforms/orders/OrderLabelUpdate.d.ts.map +1 -0
  24. package/src/com/controlresell/models/platforms/orders/OrderLabelUpdate.js +12 -0
  25. package/src/com/controlresell/models/platforms/orders/OrderLabelUpdate.js.map +1 -0
  26. package/src/com/controlresell/models/platforms/orders/OrderLabelUpdate.ts +10 -0
  27. package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts +37 -37
  28. package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +4 -4
  29. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +29 -29
  30. package/src/com/controlresell/models/users/ws/ResourceUpdate.d.ts +16 -0
  31. package/src/com/controlresell/models/users/ws/ResourceUpdate.d.ts.map +1 -0
  32. package/src/com/controlresell/models/users/ws/ResourceUpdate.js +11 -0
  33. package/src/com/controlresell/models/users/ws/ResourceUpdate.js.map +1 -0
  34. package/src/com/controlresell/models/users/ws/ResourceUpdate.ts +9 -0
  35. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +2814 -130
  36. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts.map +1 -1
  37. package/src/com/controlresell/models/users/ws/UserWsPayload.js +21 -1
  38. package/src/com/controlresell/models/users/ws/UserWsPayload.js.map +1 -1
  39. package/src/com/controlresell/models/users/ws/UserWsPayload.ts +26 -0
  40. package/src/index.d.ts +4 -0
  41. package/src/index.d.ts.map +1 -1
  42. package/src/index.js +10 -2
  43. package/src/index.js.map +1 -1
  44. package/src/index.ts +4 -0
@@ -913,6 +913,1337 @@ export declare const UserWsPayloadEmptySchema: z.ZodObject<{
913
913
  type: "EMPTY";
914
914
  }>;
915
915
  export type UserWsPayloadEmpty = z.infer<typeof UserWsPayloadEmptySchema>;
916
+ export declare const UserWsPayloadItemUpdatedSchema: z.ZodObject<{
917
+ item: z.ZodObject<{
918
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
919
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
920
+ name: z.ZodString;
921
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
922
+ files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
923
+ fileId: z.ZodString;
924
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
925
+ index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
926
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
927
+ id: z.ZodString;
928
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
929
+ path: z.ZodString;
930
+ signedUrl: z.ZodString;
931
+ createdAt: z.ZodDate;
932
+ }, "strip", z.ZodTypeAny, {
933
+ path: string;
934
+ id: string;
935
+ userId: string | number;
936
+ signedUrl: string;
937
+ createdAt: Date;
938
+ }, {
939
+ path: string;
940
+ id: string;
941
+ userId: string | number;
942
+ signedUrl: string;
943
+ createdAt: Date;
944
+ }>>>;
945
+ }, "strip", z.ZodTypeAny, {
946
+ fileId: string;
947
+ itemId: string | number;
948
+ file?: {
949
+ path: string;
950
+ id: string;
951
+ userId: string | number;
952
+ signedUrl: string;
953
+ createdAt: Date;
954
+ } | null | undefined;
955
+ index?: number | null | undefined;
956
+ }, {
957
+ fileId: string;
958
+ itemId: string | number;
959
+ file?: {
960
+ path: string;
961
+ id: string;
962
+ userId: string | number;
963
+ signedUrl: string;
964
+ createdAt: Date;
965
+ } | null | undefined;
966
+ index?: number | null | undefined;
967
+ }>, "many">>>;
968
+ categoryId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
969
+ brandId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
970
+ sex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
971
+ state: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
972
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
973
+ purchasePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
974
+ purchaseDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
975
+ purchasePlaceId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
976
+ sold: z.ZodBoolean;
977
+ purchased: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
978
+ sellingPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
979
+ sellingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
980
+ sellingPlaceId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
981
+ estimatedPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
982
+ fees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
983
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
984
+ type: z.ZodString;
985
+ value: z.ZodNumber;
986
+ name: z.ZodString;
987
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
988
+ recurrence: z.ZodEnum<["UNIQUE", "MONTHLY", "YEARLY"]>;
989
+ startDate: z.ZodDate;
990
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
991
+ active: z.ZodBoolean;
992
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
993
+ itemId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
994
+ parentFeeId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
995
+ createdAt: z.ZodDate;
996
+ updatedAt: z.ZodDate;
997
+ }, "strip", z.ZodTypeAny, {
998
+ value: number;
999
+ type: string;
1000
+ id: string | number;
1001
+ userId: string | number;
1002
+ createdAt: Date;
1003
+ name: string;
1004
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1005
+ startDate: Date;
1006
+ active: boolean;
1007
+ updatedAt: Date;
1008
+ description?: string | null | undefined;
1009
+ endDate?: Date | null | undefined;
1010
+ itemId?: string | number | null | undefined;
1011
+ parentFeeId?: string | number | null | undefined;
1012
+ }, {
1013
+ value: number;
1014
+ type: string;
1015
+ id: string | number;
1016
+ userId: string | number;
1017
+ createdAt: Date;
1018
+ name: string;
1019
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1020
+ startDate: Date;
1021
+ active: boolean;
1022
+ updatedAt: Date;
1023
+ description?: string | null | undefined;
1024
+ endDate?: Date | null | undefined;
1025
+ itemId?: string | number | null | undefined;
1026
+ parentFeeId?: string | number | null | undefined;
1027
+ }>, "many">>>;
1028
+ feesSum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1029
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1030
+ labelId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1031
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1032
+ label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1033
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1034
+ name: z.ZodString;
1035
+ userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
1036
+ isUserLabel: z.ZodBoolean;
1037
+ createdAt: z.ZodDate;
1038
+ itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1039
+ }, "strip", z.ZodTypeAny, {
1040
+ id: string | number;
1041
+ createdAt: Date;
1042
+ name: string;
1043
+ isUserLabel: boolean;
1044
+ itemCount?: number | null | undefined;
1045
+ userId?: string | number | null | undefined;
1046
+ }, {
1047
+ id: string | number;
1048
+ createdAt: Date;
1049
+ name: string;
1050
+ isUserLabel: boolean;
1051
+ itemCount?: number | null | undefined;
1052
+ userId?: string | number | null | undefined;
1053
+ }>>>;
1054
+ }, "strip", z.ZodTypeAny, {
1055
+ itemId: string | number;
1056
+ labelId: string | number;
1057
+ label?: {
1058
+ id: string | number;
1059
+ createdAt: Date;
1060
+ name: string;
1061
+ isUserLabel: boolean;
1062
+ itemCount?: number | null | undefined;
1063
+ userId?: string | number | null | undefined;
1064
+ } | null | undefined;
1065
+ }, {
1066
+ itemId: string | number;
1067
+ labelId: string | number;
1068
+ label?: {
1069
+ id: string | number;
1070
+ createdAt: Date;
1071
+ name: string;
1072
+ isUserLabel: boolean;
1073
+ itemCount?: number | null | undefined;
1074
+ userId?: string | number | null | undefined;
1075
+ } | null | undefined;
1076
+ }>, "many">>>;
1077
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
1078
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1079
+ customerId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
1080
+ customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1081
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1082
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1083
+ firstName: z.ZodString;
1084
+ lastName: z.ZodString;
1085
+ birthDate: z.ZodDate;
1086
+ email: z.ZodString;
1087
+ idNumber: z.ZodString;
1088
+ phone: z.ZodString;
1089
+ iban: z.ZodString;
1090
+ bic: z.ZodString;
1091
+ phoneVerified: z.ZodBoolean;
1092
+ }, "strip", z.ZodTypeAny, {
1093
+ email: string;
1094
+ id: string | number;
1095
+ userId: string | number;
1096
+ firstName: string;
1097
+ lastName: string;
1098
+ birthDate: Date;
1099
+ idNumber: string;
1100
+ phone: string;
1101
+ iban: string;
1102
+ bic: string;
1103
+ phoneVerified: boolean;
1104
+ }, {
1105
+ email: string;
1106
+ id: string | number;
1107
+ userId: string | number;
1108
+ firstName: string;
1109
+ lastName: string;
1110
+ birthDate: Date;
1111
+ idNumber: string;
1112
+ phone: string;
1113
+ iban: string;
1114
+ bic: string;
1115
+ phoneVerified: boolean;
1116
+ }>>>;
1117
+ customerType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1118
+ customerPaid: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1119
+ customerPaidDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1120
+ customerPaidType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1121
+ contractId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
1122
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1123
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1124
+ fieldId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1125
+ value: z.ZodString;
1126
+ }, "strip", z.ZodTypeAny, {
1127
+ value: string;
1128
+ itemId: string | number;
1129
+ fieldId: string | number;
1130
+ }, {
1131
+ value: string;
1132
+ itemId: string | number;
1133
+ fieldId: string | number;
1134
+ }>, "many">>>;
1135
+ lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1136
+ id: z.ZodString;
1137
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1138
+ type: z.ZodEnum<["IMPORTED", "ARCHIVED", "UNARCHIVED", "PUBLISHED", "FAILED_TO_PUBLISH", "PUBLISH_CANCELED", "SCHEDULED", "REPUBLISHING", "REPUBLISHED", "UPDATING", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
1139
+ data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1140
+ data: z.ZodObject<{
1141
+ soldAccountId: z.ZodString;
1142
+ soldOrderId: z.ZodString;
1143
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1144
+ }, "strip", z.ZodTypeAny, {
1145
+ soldAccountId: string;
1146
+ soldOrderId: string;
1147
+ soldConversationId?: string | null | undefined;
1148
+ }, {
1149
+ soldAccountId: string;
1150
+ soldOrderId: string;
1151
+ soldConversationId?: string | null | undefined;
1152
+ }>;
1153
+ type: z.ZodLiteral<"BUYER_PAID">;
1154
+ }, "strip", z.ZodTypeAny, {
1155
+ type: "BUYER_PAID";
1156
+ data: {
1157
+ soldAccountId: string;
1158
+ soldOrderId: string;
1159
+ soldConversationId?: string | null | undefined;
1160
+ };
1161
+ }, {
1162
+ type: "BUYER_PAID";
1163
+ data: {
1164
+ soldAccountId: string;
1165
+ soldOrderId: string;
1166
+ soldConversationId?: string | null | undefined;
1167
+ };
1168
+ }>, z.ZodObject<{
1169
+ data: z.ZodObject<{
1170
+ soldAccountId: z.ZodString;
1171
+ soldOrderId: z.ZodString;
1172
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1173
+ }, "strip", z.ZodTypeAny, {
1174
+ soldAccountId: string;
1175
+ soldOrderId: string;
1176
+ soldConversationId?: string | null | undefined;
1177
+ }, {
1178
+ soldAccountId: string;
1179
+ soldOrderId: string;
1180
+ soldConversationId?: string | null | undefined;
1181
+ }>;
1182
+ type: z.ZodLiteral<"DELIVERED">;
1183
+ }, "strip", z.ZodTypeAny, {
1184
+ type: "DELIVERED";
1185
+ data: {
1186
+ soldAccountId: string;
1187
+ soldOrderId: string;
1188
+ soldConversationId?: string | null | undefined;
1189
+ };
1190
+ }, {
1191
+ type: "DELIVERED";
1192
+ data: {
1193
+ soldAccountId: string;
1194
+ soldOrderId: string;
1195
+ soldConversationId?: string | null | undefined;
1196
+ };
1197
+ }>, z.ZodObject<{
1198
+ type: z.ZodLiteral<"EMPTY">;
1199
+ }, "strip", z.ZodTypeAny, {
1200
+ type: "EMPTY";
1201
+ }, {
1202
+ type: "EMPTY";
1203
+ }>, z.ZodObject<{
1204
+ data: z.ZodObject<{
1205
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
1206
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1207
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1208
+ }, "strip", z.ZodTypeAny, {
1209
+ platform: "VINTED" | "SHOPIFY";
1210
+ accountId?: string | null | undefined;
1211
+ reason?: string | null | undefined;
1212
+ }, {
1213
+ platform: "VINTED" | "SHOPIFY";
1214
+ accountId?: string | null | undefined;
1215
+ reason?: string | null | undefined;
1216
+ }>;
1217
+ type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
1218
+ }, "strip", z.ZodTypeAny, {
1219
+ type: "FAILED_TO_PUBLISH";
1220
+ data: {
1221
+ platform: "VINTED" | "SHOPIFY";
1222
+ accountId?: string | null | undefined;
1223
+ reason?: string | null | undefined;
1224
+ };
1225
+ }, {
1226
+ type: "FAILED_TO_PUBLISH";
1227
+ data: {
1228
+ platform: "VINTED" | "SHOPIFY";
1229
+ accountId?: string | null | undefined;
1230
+ reason?: string | null | undefined;
1231
+ };
1232
+ }>, z.ZodObject<{
1233
+ data: z.ZodObject<{
1234
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
1235
+ }, "strip", z.ZodTypeAny, {
1236
+ platform: "VINTED" | "SHOPIFY";
1237
+ }, {
1238
+ platform: "VINTED" | "SHOPIFY";
1239
+ }>;
1240
+ type: z.ZodLiteral<"REPUBLISHING">;
1241
+ }, "strip", z.ZodTypeAny, {
1242
+ type: "REPUBLISHING";
1243
+ data: {
1244
+ platform: "VINTED" | "SHOPIFY";
1245
+ };
1246
+ }, {
1247
+ type: "REPUBLISHING";
1248
+ data: {
1249
+ platform: "VINTED" | "SHOPIFY";
1250
+ };
1251
+ }>, z.ZodObject<{
1252
+ data: z.ZodObject<{
1253
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
1254
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1255
+ }, "strip", z.ZodTypeAny, {
1256
+ platform: "VINTED" | "SHOPIFY";
1257
+ publishingDate?: Date | null | undefined;
1258
+ }, {
1259
+ platform: "VINTED" | "SHOPIFY";
1260
+ publishingDate?: Date | null | undefined;
1261
+ }>;
1262
+ type: z.ZodLiteral<"SCHEDULED">;
1263
+ }, "strip", z.ZodTypeAny, {
1264
+ type: "SCHEDULED";
1265
+ data: {
1266
+ platform: "VINTED" | "SHOPIFY";
1267
+ publishingDate?: Date | null | undefined;
1268
+ };
1269
+ }, {
1270
+ type: "SCHEDULED";
1271
+ data: {
1272
+ platform: "VINTED" | "SHOPIFY";
1273
+ publishingDate?: Date | null | undefined;
1274
+ };
1275
+ }>]>>>;
1276
+ createdAt: z.ZodDate;
1277
+ }, "strip", z.ZodTypeAny, {
1278
+ type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1279
+ id: string;
1280
+ createdAt: Date;
1281
+ itemId: string | number;
1282
+ data?: {
1283
+ type: "BUYER_PAID";
1284
+ data: {
1285
+ soldAccountId: string;
1286
+ soldOrderId: string;
1287
+ soldConversationId?: string | null | undefined;
1288
+ };
1289
+ } | {
1290
+ type: "DELIVERED";
1291
+ data: {
1292
+ soldAccountId: string;
1293
+ soldOrderId: string;
1294
+ soldConversationId?: string | null | undefined;
1295
+ };
1296
+ } | {
1297
+ type: "EMPTY";
1298
+ } | {
1299
+ type: "FAILED_TO_PUBLISH";
1300
+ data: {
1301
+ platform: "VINTED" | "SHOPIFY";
1302
+ accountId?: string | null | undefined;
1303
+ reason?: string | null | undefined;
1304
+ };
1305
+ } | {
1306
+ type: "REPUBLISHING";
1307
+ data: {
1308
+ platform: "VINTED" | "SHOPIFY";
1309
+ };
1310
+ } | {
1311
+ type: "SCHEDULED";
1312
+ data: {
1313
+ platform: "VINTED" | "SHOPIFY";
1314
+ publishingDate?: Date | null | undefined;
1315
+ };
1316
+ } | null | undefined;
1317
+ }, {
1318
+ type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1319
+ id: string;
1320
+ createdAt: Date;
1321
+ itemId: string | number;
1322
+ data?: {
1323
+ type: "BUYER_PAID";
1324
+ data: {
1325
+ soldAccountId: string;
1326
+ soldOrderId: string;
1327
+ soldConversationId?: string | null | undefined;
1328
+ };
1329
+ } | {
1330
+ type: "DELIVERED";
1331
+ data: {
1332
+ soldAccountId: string;
1333
+ soldOrderId: string;
1334
+ soldConversationId?: string | null | undefined;
1335
+ };
1336
+ } | {
1337
+ type: "EMPTY";
1338
+ } | {
1339
+ type: "FAILED_TO_PUBLISH";
1340
+ data: {
1341
+ platform: "VINTED" | "SHOPIFY";
1342
+ accountId?: string | null | undefined;
1343
+ reason?: string | null | undefined;
1344
+ };
1345
+ } | {
1346
+ type: "REPUBLISHING";
1347
+ data: {
1348
+ platform: "VINTED" | "SHOPIFY";
1349
+ };
1350
+ } | {
1351
+ type: "SCHEDULED";
1352
+ data: {
1353
+ platform: "VINTED" | "SHOPIFY";
1354
+ publishingDate?: Date | null | undefined;
1355
+ };
1356
+ } | null | undefined;
1357
+ }>>>;
1358
+ platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1359
+ id: z.ZodString;
1360
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1361
+ accountId: z.ZodString;
1362
+ platformId: z.ZodString;
1363
+ platformUrl: z.ZodString;
1364
+ platformPrice: z.ZodNumber;
1365
+ status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "ARCHIVED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
1366
+ account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1367
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1368
+ accountId: z.ZodString;
1369
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
1370
+ name: z.ZodString;
1371
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1372
+ status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
1373
+ night: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1374
+ startsAt: z.ZodDate;
1375
+ endsAt: z.ZodDate;
1376
+ }, "strip", z.ZodTypeAny, {
1377
+ startsAt: Date;
1378
+ endsAt: Date;
1379
+ }, {
1380
+ startsAt: Date;
1381
+ endsAt: Date;
1382
+ }>>>;
1383
+ }, "strip", z.ZodTypeAny, {
1384
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1385
+ userId: string | number;
1386
+ name: string;
1387
+ platform: "VINTED" | "SHOPIFY";
1388
+ accountId: string;
1389
+ night?: {
1390
+ startsAt: Date;
1391
+ endsAt: Date;
1392
+ } | null | undefined;
1393
+ locale?: string | null | undefined;
1394
+ }, {
1395
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1396
+ userId: string | number;
1397
+ name: string;
1398
+ platform: "VINTED" | "SHOPIFY";
1399
+ accountId: string;
1400
+ night?: {
1401
+ startsAt: Date;
1402
+ endsAt: Date;
1403
+ } | null | undefined;
1404
+ locale?: string | null | undefined;
1405
+ }>>>;
1406
+ }, "strip", z.ZodTypeAny, {
1407
+ status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1408
+ id: string;
1409
+ itemId: string | number;
1410
+ accountId: string;
1411
+ platformId: string;
1412
+ platformUrl: string;
1413
+ platformPrice: number;
1414
+ account?: {
1415
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1416
+ userId: string | number;
1417
+ name: string;
1418
+ platform: "VINTED" | "SHOPIFY";
1419
+ accountId: string;
1420
+ night?: {
1421
+ startsAt: Date;
1422
+ endsAt: Date;
1423
+ } | null | undefined;
1424
+ locale?: string | null | undefined;
1425
+ } | null | undefined;
1426
+ }, {
1427
+ status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1428
+ id: string;
1429
+ itemId: string | number;
1430
+ accountId: string;
1431
+ platformId: string;
1432
+ platformUrl: string;
1433
+ platformPrice: number;
1434
+ account?: {
1435
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1436
+ userId: string | number;
1437
+ name: string;
1438
+ platform: "VINTED" | "SHOPIFY";
1439
+ accountId: string;
1440
+ night?: {
1441
+ startsAt: Date;
1442
+ endsAt: Date;
1443
+ } | null | undefined;
1444
+ locale?: string | null | undefined;
1445
+ } | null | undefined;
1446
+ }>, "many">>>;
1447
+ createdAt: z.ZodDate;
1448
+ updatedAt: z.ZodDate;
1449
+ }, "strip", z.ZodTypeAny, {
1450
+ id: string | number;
1451
+ userId: string | number;
1452
+ createdAt: Date;
1453
+ name: string;
1454
+ updatedAt: Date;
1455
+ sold: boolean;
1456
+ customerId?: string | number | null | undefined;
1457
+ description?: string | null | undefined;
1458
+ colorIds?: number[] | null | undefined;
1459
+ packageSizeId?: number | null | undefined;
1460
+ sizeId?: number | null | undefined;
1461
+ labels?: {
1462
+ itemId: string | number;
1463
+ labelId: string | number;
1464
+ label?: {
1465
+ id: string | number;
1466
+ createdAt: Date;
1467
+ name: string;
1468
+ isUserLabel: boolean;
1469
+ itemCount?: number | null | undefined;
1470
+ userId?: string | number | null | undefined;
1471
+ } | null | undefined;
1472
+ }[] | null | undefined;
1473
+ state?: number | null | undefined;
1474
+ fees?: {
1475
+ value: number;
1476
+ type: string;
1477
+ id: string | number;
1478
+ userId: string | number;
1479
+ createdAt: Date;
1480
+ name: string;
1481
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1482
+ startDate: Date;
1483
+ active: boolean;
1484
+ updatedAt: Date;
1485
+ description?: string | null | undefined;
1486
+ endDate?: Date | null | undefined;
1487
+ itemId?: string | number | null | undefined;
1488
+ parentFeeId?: string | number | null | undefined;
1489
+ }[] | null | undefined;
1490
+ categoryId?: number | null | undefined;
1491
+ brandId?: string | number | null | undefined;
1492
+ files?: {
1493
+ fileId: string;
1494
+ itemId: string | number;
1495
+ file?: {
1496
+ path: string;
1497
+ id: string;
1498
+ userId: string | number;
1499
+ signedUrl: string;
1500
+ createdAt: Date;
1501
+ } | null | undefined;
1502
+ index?: number | null | undefined;
1503
+ }[] | null | undefined;
1504
+ sex?: string | null | undefined;
1505
+ purchasePrice?: number | null | undefined;
1506
+ purchaseDate?: Date | null | undefined;
1507
+ purchasePlaceId?: string | number | null | undefined;
1508
+ purchased?: boolean | null | undefined;
1509
+ sellingPrice?: number | null | undefined;
1510
+ sellingDate?: Date | null | undefined;
1511
+ sellingPlaceId?: string | number | null | undefined;
1512
+ estimatedPrice?: number | null | undefined;
1513
+ feesSum?: number | null | undefined;
1514
+ customer?: {
1515
+ email: string;
1516
+ id: string | number;
1517
+ userId: string | number;
1518
+ firstName: string;
1519
+ lastName: string;
1520
+ birthDate: Date;
1521
+ idNumber: string;
1522
+ phone: string;
1523
+ iban: string;
1524
+ bic: string;
1525
+ phoneVerified: boolean;
1526
+ } | null | undefined;
1527
+ customerType?: string | null | undefined;
1528
+ customerPaid?: boolean | null | undefined;
1529
+ customerPaidDate?: Date | null | undefined;
1530
+ customerPaidType?: string | null | undefined;
1531
+ contractId?: string | number | null | undefined;
1532
+ fields?: {
1533
+ value: string;
1534
+ itemId: string | number;
1535
+ fieldId: string | number;
1536
+ }[] | null | undefined;
1537
+ lastHistory?: {
1538
+ type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1539
+ id: string;
1540
+ createdAt: Date;
1541
+ itemId: string | number;
1542
+ data?: {
1543
+ type: "BUYER_PAID";
1544
+ data: {
1545
+ soldAccountId: string;
1546
+ soldOrderId: string;
1547
+ soldConversationId?: string | null | undefined;
1548
+ };
1549
+ } | {
1550
+ type: "DELIVERED";
1551
+ data: {
1552
+ soldAccountId: string;
1553
+ soldOrderId: string;
1554
+ soldConversationId?: string | null | undefined;
1555
+ };
1556
+ } | {
1557
+ type: "EMPTY";
1558
+ } | {
1559
+ type: "FAILED_TO_PUBLISH";
1560
+ data: {
1561
+ platform: "VINTED" | "SHOPIFY";
1562
+ accountId?: string | null | undefined;
1563
+ reason?: string | null | undefined;
1564
+ };
1565
+ } | {
1566
+ type: "REPUBLISHING";
1567
+ data: {
1568
+ platform: "VINTED" | "SHOPIFY";
1569
+ };
1570
+ } | {
1571
+ type: "SCHEDULED";
1572
+ data: {
1573
+ platform: "VINTED" | "SHOPIFY";
1574
+ publishingDate?: Date | null | undefined;
1575
+ };
1576
+ } | null | undefined;
1577
+ } | null | undefined;
1578
+ platforms?: {
1579
+ status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1580
+ id: string;
1581
+ itemId: string | number;
1582
+ accountId: string;
1583
+ platformId: string;
1584
+ platformUrl: string;
1585
+ platformPrice: number;
1586
+ account?: {
1587
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1588
+ userId: string | number;
1589
+ name: string;
1590
+ platform: "VINTED" | "SHOPIFY";
1591
+ accountId: string;
1592
+ night?: {
1593
+ startsAt: Date;
1594
+ endsAt: Date;
1595
+ } | null | undefined;
1596
+ locale?: string | null | undefined;
1597
+ } | null | undefined;
1598
+ }[] | null | undefined;
1599
+ }, {
1600
+ id: string | number;
1601
+ userId: string | number;
1602
+ createdAt: Date;
1603
+ name: string;
1604
+ updatedAt: Date;
1605
+ sold: boolean;
1606
+ customerId?: string | number | null | undefined;
1607
+ description?: string | null | undefined;
1608
+ colorIds?: number[] | null | undefined;
1609
+ packageSizeId?: number | null | undefined;
1610
+ sizeId?: number | null | undefined;
1611
+ labels?: {
1612
+ itemId: string | number;
1613
+ labelId: string | number;
1614
+ label?: {
1615
+ id: string | number;
1616
+ createdAt: Date;
1617
+ name: string;
1618
+ isUserLabel: boolean;
1619
+ itemCount?: number | null | undefined;
1620
+ userId?: string | number | null | undefined;
1621
+ } | null | undefined;
1622
+ }[] | null | undefined;
1623
+ state?: number | null | undefined;
1624
+ fees?: {
1625
+ value: number;
1626
+ type: string;
1627
+ id: string | number;
1628
+ userId: string | number;
1629
+ createdAt: Date;
1630
+ name: string;
1631
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1632
+ startDate: Date;
1633
+ active: boolean;
1634
+ updatedAt: Date;
1635
+ description?: string | null | undefined;
1636
+ endDate?: Date | null | undefined;
1637
+ itemId?: string | number | null | undefined;
1638
+ parentFeeId?: string | number | null | undefined;
1639
+ }[] | null | undefined;
1640
+ categoryId?: number | null | undefined;
1641
+ brandId?: string | number | null | undefined;
1642
+ files?: {
1643
+ fileId: string;
1644
+ itemId: string | number;
1645
+ file?: {
1646
+ path: string;
1647
+ id: string;
1648
+ userId: string | number;
1649
+ signedUrl: string;
1650
+ createdAt: Date;
1651
+ } | null | undefined;
1652
+ index?: number | null | undefined;
1653
+ }[] | null | undefined;
1654
+ sex?: string | null | undefined;
1655
+ purchasePrice?: number | null | undefined;
1656
+ purchaseDate?: Date | null | undefined;
1657
+ purchasePlaceId?: string | number | null | undefined;
1658
+ purchased?: boolean | null | undefined;
1659
+ sellingPrice?: number | null | undefined;
1660
+ sellingDate?: Date | null | undefined;
1661
+ sellingPlaceId?: string | number | null | undefined;
1662
+ estimatedPrice?: number | null | undefined;
1663
+ feesSum?: number | null | undefined;
1664
+ customer?: {
1665
+ email: string;
1666
+ id: string | number;
1667
+ userId: string | number;
1668
+ firstName: string;
1669
+ lastName: string;
1670
+ birthDate: Date;
1671
+ idNumber: string;
1672
+ phone: string;
1673
+ iban: string;
1674
+ bic: string;
1675
+ phoneVerified: boolean;
1676
+ } | null | undefined;
1677
+ customerType?: string | null | undefined;
1678
+ customerPaid?: boolean | null | undefined;
1679
+ customerPaidDate?: Date | null | undefined;
1680
+ customerPaidType?: string | null | undefined;
1681
+ contractId?: string | number | null | undefined;
1682
+ fields?: {
1683
+ value: string;
1684
+ itemId: string | number;
1685
+ fieldId: string | number;
1686
+ }[] | null | undefined;
1687
+ lastHistory?: {
1688
+ type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1689
+ id: string;
1690
+ createdAt: Date;
1691
+ itemId: string | number;
1692
+ data?: {
1693
+ type: "BUYER_PAID";
1694
+ data: {
1695
+ soldAccountId: string;
1696
+ soldOrderId: string;
1697
+ soldConversationId?: string | null | undefined;
1698
+ };
1699
+ } | {
1700
+ type: "DELIVERED";
1701
+ data: {
1702
+ soldAccountId: string;
1703
+ soldOrderId: string;
1704
+ soldConversationId?: string | null | undefined;
1705
+ };
1706
+ } | {
1707
+ type: "EMPTY";
1708
+ } | {
1709
+ type: "FAILED_TO_PUBLISH";
1710
+ data: {
1711
+ platform: "VINTED" | "SHOPIFY";
1712
+ accountId?: string | null | undefined;
1713
+ reason?: string | null | undefined;
1714
+ };
1715
+ } | {
1716
+ type: "REPUBLISHING";
1717
+ data: {
1718
+ platform: "VINTED" | "SHOPIFY";
1719
+ };
1720
+ } | {
1721
+ type: "SCHEDULED";
1722
+ data: {
1723
+ platform: "VINTED" | "SHOPIFY";
1724
+ publishingDate?: Date | null | undefined;
1725
+ };
1726
+ } | null | undefined;
1727
+ } | null | undefined;
1728
+ platforms?: {
1729
+ status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1730
+ id: string;
1731
+ itemId: string | number;
1732
+ accountId: string;
1733
+ platformId: string;
1734
+ platformUrl: string;
1735
+ platformPrice: number;
1736
+ account?: {
1737
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1738
+ userId: string | number;
1739
+ name: string;
1740
+ platform: "VINTED" | "SHOPIFY";
1741
+ accountId: string;
1742
+ night?: {
1743
+ startsAt: Date;
1744
+ endsAt: Date;
1745
+ } | null | undefined;
1746
+ locale?: string | null | undefined;
1747
+ } | null | undefined;
1748
+ }[] | null | undefined;
1749
+ }>;
1750
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1751
+ type: z.ZodLiteral<"ITEM">;
1752
+ }, "strip", z.ZodTypeAny, {
1753
+ type: "ITEM";
1754
+ item: {
1755
+ id: string | number;
1756
+ userId: string | number;
1757
+ createdAt: Date;
1758
+ name: string;
1759
+ updatedAt: Date;
1760
+ sold: boolean;
1761
+ customerId?: string | number | null | undefined;
1762
+ description?: string | null | undefined;
1763
+ colorIds?: number[] | null | undefined;
1764
+ packageSizeId?: number | null | undefined;
1765
+ sizeId?: number | null | undefined;
1766
+ labels?: {
1767
+ itemId: string | number;
1768
+ labelId: string | number;
1769
+ label?: {
1770
+ id: string | number;
1771
+ createdAt: Date;
1772
+ name: string;
1773
+ isUserLabel: boolean;
1774
+ itemCount?: number | null | undefined;
1775
+ userId?: string | number | null | undefined;
1776
+ } | null | undefined;
1777
+ }[] | null | undefined;
1778
+ state?: number | null | undefined;
1779
+ fees?: {
1780
+ value: number;
1781
+ type: string;
1782
+ id: string | number;
1783
+ userId: string | number;
1784
+ createdAt: Date;
1785
+ name: string;
1786
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1787
+ startDate: Date;
1788
+ active: boolean;
1789
+ updatedAt: Date;
1790
+ description?: string | null | undefined;
1791
+ endDate?: Date | null | undefined;
1792
+ itemId?: string | number | null | undefined;
1793
+ parentFeeId?: string | number | null | undefined;
1794
+ }[] | null | undefined;
1795
+ categoryId?: number | null | undefined;
1796
+ brandId?: string | number | null | undefined;
1797
+ files?: {
1798
+ fileId: string;
1799
+ itemId: string | number;
1800
+ file?: {
1801
+ path: string;
1802
+ id: string;
1803
+ userId: string | number;
1804
+ signedUrl: string;
1805
+ createdAt: Date;
1806
+ } | null | undefined;
1807
+ index?: number | null | undefined;
1808
+ }[] | null | undefined;
1809
+ sex?: string | null | undefined;
1810
+ purchasePrice?: number | null | undefined;
1811
+ purchaseDate?: Date | null | undefined;
1812
+ purchasePlaceId?: string | number | null | undefined;
1813
+ purchased?: boolean | null | undefined;
1814
+ sellingPrice?: number | null | undefined;
1815
+ sellingDate?: Date | null | undefined;
1816
+ sellingPlaceId?: string | number | null | undefined;
1817
+ estimatedPrice?: number | null | undefined;
1818
+ feesSum?: number | null | undefined;
1819
+ customer?: {
1820
+ email: string;
1821
+ id: string | number;
1822
+ userId: string | number;
1823
+ firstName: string;
1824
+ lastName: string;
1825
+ birthDate: Date;
1826
+ idNumber: string;
1827
+ phone: string;
1828
+ iban: string;
1829
+ bic: string;
1830
+ phoneVerified: boolean;
1831
+ } | null | undefined;
1832
+ customerType?: string | null | undefined;
1833
+ customerPaid?: boolean | null | undefined;
1834
+ customerPaidDate?: Date | null | undefined;
1835
+ customerPaidType?: string | null | undefined;
1836
+ contractId?: string | number | null | undefined;
1837
+ fields?: {
1838
+ value: string;
1839
+ itemId: string | number;
1840
+ fieldId: string | number;
1841
+ }[] | null | undefined;
1842
+ lastHistory?: {
1843
+ type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1844
+ id: string;
1845
+ createdAt: Date;
1846
+ itemId: string | number;
1847
+ data?: {
1848
+ type: "BUYER_PAID";
1849
+ data: {
1850
+ soldAccountId: string;
1851
+ soldOrderId: string;
1852
+ soldConversationId?: string | null | undefined;
1853
+ };
1854
+ } | {
1855
+ type: "DELIVERED";
1856
+ data: {
1857
+ soldAccountId: string;
1858
+ soldOrderId: string;
1859
+ soldConversationId?: string | null | undefined;
1860
+ };
1861
+ } | {
1862
+ type: "EMPTY";
1863
+ } | {
1864
+ type: "FAILED_TO_PUBLISH";
1865
+ data: {
1866
+ platform: "VINTED" | "SHOPIFY";
1867
+ accountId?: string | null | undefined;
1868
+ reason?: string | null | undefined;
1869
+ };
1870
+ } | {
1871
+ type: "REPUBLISHING";
1872
+ data: {
1873
+ platform: "VINTED" | "SHOPIFY";
1874
+ };
1875
+ } | {
1876
+ type: "SCHEDULED";
1877
+ data: {
1878
+ platform: "VINTED" | "SHOPIFY";
1879
+ publishingDate?: Date | null | undefined;
1880
+ };
1881
+ } | null | undefined;
1882
+ } | null | undefined;
1883
+ platforms?: {
1884
+ status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
1885
+ id: string;
1886
+ itemId: string | number;
1887
+ accountId: string;
1888
+ platformId: string;
1889
+ platformUrl: string;
1890
+ platformPrice: number;
1891
+ account?: {
1892
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
1893
+ userId: string | number;
1894
+ name: string;
1895
+ platform: "VINTED" | "SHOPIFY";
1896
+ accountId: string;
1897
+ night?: {
1898
+ startsAt: Date;
1899
+ endsAt: Date;
1900
+ } | null | undefined;
1901
+ locale?: string | null | undefined;
1902
+ } | null | undefined;
1903
+ }[] | null | undefined;
1904
+ };
1905
+ deleted?: boolean | null | undefined;
1906
+ }, {
1907
+ type: "ITEM";
1908
+ item: {
1909
+ id: string | number;
1910
+ userId: string | number;
1911
+ createdAt: Date;
1912
+ name: string;
1913
+ updatedAt: Date;
1914
+ sold: boolean;
1915
+ customerId?: string | number | null | undefined;
1916
+ description?: string | null | undefined;
1917
+ colorIds?: number[] | null | undefined;
1918
+ packageSizeId?: number | null | undefined;
1919
+ sizeId?: number | null | undefined;
1920
+ labels?: {
1921
+ itemId: string | number;
1922
+ labelId: string | number;
1923
+ label?: {
1924
+ id: string | number;
1925
+ createdAt: Date;
1926
+ name: string;
1927
+ isUserLabel: boolean;
1928
+ itemCount?: number | null | undefined;
1929
+ userId?: string | number | null | undefined;
1930
+ } | null | undefined;
1931
+ }[] | null | undefined;
1932
+ state?: number | null | undefined;
1933
+ fees?: {
1934
+ value: number;
1935
+ type: string;
1936
+ id: string | number;
1937
+ userId: string | number;
1938
+ createdAt: Date;
1939
+ name: string;
1940
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
1941
+ startDate: Date;
1942
+ active: boolean;
1943
+ updatedAt: Date;
1944
+ description?: string | null | undefined;
1945
+ endDate?: Date | null | undefined;
1946
+ itemId?: string | number | null | undefined;
1947
+ parentFeeId?: string | number | null | undefined;
1948
+ }[] | null | undefined;
1949
+ categoryId?: number | null | undefined;
1950
+ brandId?: string | number | null | undefined;
1951
+ files?: {
1952
+ fileId: string;
1953
+ itemId: string | number;
1954
+ file?: {
1955
+ path: string;
1956
+ id: string;
1957
+ userId: string | number;
1958
+ signedUrl: string;
1959
+ createdAt: Date;
1960
+ } | null | undefined;
1961
+ index?: number | null | undefined;
1962
+ }[] | null | undefined;
1963
+ sex?: string | null | undefined;
1964
+ purchasePrice?: number | null | undefined;
1965
+ purchaseDate?: Date | null | undefined;
1966
+ purchasePlaceId?: string | number | null | undefined;
1967
+ purchased?: boolean | null | undefined;
1968
+ sellingPrice?: number | null | undefined;
1969
+ sellingDate?: Date | null | undefined;
1970
+ sellingPlaceId?: string | number | null | undefined;
1971
+ estimatedPrice?: number | null | undefined;
1972
+ feesSum?: number | null | undefined;
1973
+ customer?: {
1974
+ email: string;
1975
+ id: string | number;
1976
+ userId: string | number;
1977
+ firstName: string;
1978
+ lastName: string;
1979
+ birthDate: Date;
1980
+ idNumber: string;
1981
+ phone: string;
1982
+ iban: string;
1983
+ bic: string;
1984
+ phoneVerified: boolean;
1985
+ } | null | undefined;
1986
+ customerType?: string | null | undefined;
1987
+ customerPaid?: boolean | null | undefined;
1988
+ customerPaidDate?: Date | null | undefined;
1989
+ customerPaidType?: string | null | undefined;
1990
+ contractId?: string | number | null | undefined;
1991
+ fields?: {
1992
+ value: string;
1993
+ itemId: string | number;
1994
+ fieldId: string | number;
1995
+ }[] | null | undefined;
1996
+ lastHistory?: {
1997
+ type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1998
+ id: string;
1999
+ createdAt: Date;
2000
+ itemId: string | number;
2001
+ data?: {
2002
+ type: "BUYER_PAID";
2003
+ data: {
2004
+ soldAccountId: string;
2005
+ soldOrderId: string;
2006
+ soldConversationId?: string | null | undefined;
2007
+ };
2008
+ } | {
2009
+ type: "DELIVERED";
2010
+ data: {
2011
+ soldAccountId: string;
2012
+ soldOrderId: string;
2013
+ soldConversationId?: string | null | undefined;
2014
+ };
2015
+ } | {
2016
+ type: "EMPTY";
2017
+ } | {
2018
+ type: "FAILED_TO_PUBLISH";
2019
+ data: {
2020
+ platform: "VINTED" | "SHOPIFY";
2021
+ accountId?: string | null | undefined;
2022
+ reason?: string | null | undefined;
2023
+ };
2024
+ } | {
2025
+ type: "REPUBLISHING";
2026
+ data: {
2027
+ platform: "VINTED" | "SHOPIFY";
2028
+ };
2029
+ } | {
2030
+ type: "SCHEDULED";
2031
+ data: {
2032
+ platform: "VINTED" | "SHOPIFY";
2033
+ publishingDate?: Date | null | undefined;
2034
+ };
2035
+ } | null | undefined;
2036
+ } | null | undefined;
2037
+ platforms?: {
2038
+ status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2039
+ id: string;
2040
+ itemId: string | number;
2041
+ accountId: string;
2042
+ platformId: string;
2043
+ platformUrl: string;
2044
+ platformPrice: number;
2045
+ account?: {
2046
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
2047
+ userId: string | number;
2048
+ name: string;
2049
+ platform: "VINTED" | "SHOPIFY";
2050
+ accountId: string;
2051
+ night?: {
2052
+ startsAt: Date;
2053
+ endsAt: Date;
2054
+ } | null | undefined;
2055
+ locale?: string | null | undefined;
2056
+ } | null | undefined;
2057
+ }[] | null | undefined;
2058
+ };
2059
+ deleted?: boolean | null | undefined;
2060
+ }>;
2061
+ export type UserWsPayloadItemUpdated = z.infer<typeof UserWsPayloadItemUpdatedSchema>;
2062
+ export declare const UserWsPayloadOrderLabelSchema: z.ZodObject<{
2063
+ orderLabel: z.ZodObject<{
2064
+ id: z.ZodString;
2065
+ orderId: z.ZodString;
2066
+ fileId: z.ZodString;
2067
+ nonCroppedFileId: z.ZodString;
2068
+ originalFileId: z.ZodString;
2069
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2070
+ id: z.ZodString;
2071
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
2072
+ path: z.ZodString;
2073
+ signedUrl: z.ZodString;
2074
+ createdAt: z.ZodDate;
2075
+ }, "strip", z.ZodTypeAny, {
2076
+ path: string;
2077
+ id: string;
2078
+ userId: string | number;
2079
+ signedUrl: string;
2080
+ createdAt: Date;
2081
+ }, {
2082
+ path: string;
2083
+ id: string;
2084
+ userId: string | number;
2085
+ signedUrl: string;
2086
+ createdAt: Date;
2087
+ }>>>;
2088
+ nonCroppedFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2089
+ id: z.ZodString;
2090
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
2091
+ path: z.ZodString;
2092
+ signedUrl: z.ZodString;
2093
+ createdAt: z.ZodDate;
2094
+ }, "strip", z.ZodTypeAny, {
2095
+ path: string;
2096
+ id: string;
2097
+ userId: string | number;
2098
+ signedUrl: string;
2099
+ createdAt: Date;
2100
+ }, {
2101
+ path: string;
2102
+ id: string;
2103
+ userId: string | number;
2104
+ signedUrl: string;
2105
+ createdAt: Date;
2106
+ }>>>;
2107
+ originalFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2108
+ id: z.ZodString;
2109
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
2110
+ path: z.ZodString;
2111
+ signedUrl: z.ZodString;
2112
+ createdAt: z.ZodDate;
2113
+ }, "strip", z.ZodTypeAny, {
2114
+ path: string;
2115
+ id: string;
2116
+ userId: string | number;
2117
+ signedUrl: string;
2118
+ createdAt: Date;
2119
+ }, {
2120
+ path: string;
2121
+ id: string;
2122
+ userId: string | number;
2123
+ signedUrl: string;
2124
+ createdAt: Date;
2125
+ }>>>;
2126
+ }, "strip", z.ZodTypeAny, {
2127
+ id: string;
2128
+ fileId: string;
2129
+ orderId: string;
2130
+ nonCroppedFileId: string;
2131
+ originalFileId: string;
2132
+ file?: {
2133
+ path: string;
2134
+ id: string;
2135
+ userId: string | number;
2136
+ signedUrl: string;
2137
+ createdAt: Date;
2138
+ } | null | undefined;
2139
+ originalFile?: {
2140
+ path: string;
2141
+ id: string;
2142
+ userId: string | number;
2143
+ signedUrl: string;
2144
+ createdAt: Date;
2145
+ } | null | undefined;
2146
+ nonCroppedFile?: {
2147
+ path: string;
2148
+ id: string;
2149
+ userId: string | number;
2150
+ signedUrl: string;
2151
+ createdAt: Date;
2152
+ } | null | undefined;
2153
+ }, {
2154
+ id: string;
2155
+ fileId: string;
2156
+ orderId: string;
2157
+ nonCroppedFileId: string;
2158
+ originalFileId: string;
2159
+ file?: {
2160
+ path: string;
2161
+ id: string;
2162
+ userId: string | number;
2163
+ signedUrl: string;
2164
+ createdAt: Date;
2165
+ } | null | undefined;
2166
+ originalFile?: {
2167
+ path: string;
2168
+ id: string;
2169
+ userId: string | number;
2170
+ signedUrl: string;
2171
+ createdAt: Date;
2172
+ } | null | undefined;
2173
+ nonCroppedFile?: {
2174
+ path: string;
2175
+ id: string;
2176
+ userId: string | number;
2177
+ signedUrl: string;
2178
+ createdAt: Date;
2179
+ } | null | undefined;
2180
+ }>;
2181
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2182
+ type: z.ZodLiteral<"ORDER_LABEL">;
2183
+ }, "strip", z.ZodTypeAny, {
2184
+ type: "ORDER_LABEL";
2185
+ orderLabel: {
2186
+ id: string;
2187
+ fileId: string;
2188
+ orderId: string;
2189
+ nonCroppedFileId: string;
2190
+ originalFileId: string;
2191
+ file?: {
2192
+ path: string;
2193
+ id: string;
2194
+ userId: string | number;
2195
+ signedUrl: string;
2196
+ createdAt: Date;
2197
+ } | null | undefined;
2198
+ originalFile?: {
2199
+ path: string;
2200
+ id: string;
2201
+ userId: string | number;
2202
+ signedUrl: string;
2203
+ createdAt: Date;
2204
+ } | null | undefined;
2205
+ nonCroppedFile?: {
2206
+ path: string;
2207
+ id: string;
2208
+ userId: string | number;
2209
+ signedUrl: string;
2210
+ createdAt: Date;
2211
+ } | null | undefined;
2212
+ };
2213
+ deleted?: boolean | null | undefined;
2214
+ }, {
2215
+ type: "ORDER_LABEL";
2216
+ orderLabel: {
2217
+ id: string;
2218
+ fileId: string;
2219
+ orderId: string;
2220
+ nonCroppedFileId: string;
2221
+ originalFileId: string;
2222
+ file?: {
2223
+ path: string;
2224
+ id: string;
2225
+ userId: string | number;
2226
+ signedUrl: string;
2227
+ createdAt: Date;
2228
+ } | null | undefined;
2229
+ originalFile?: {
2230
+ path: string;
2231
+ id: string;
2232
+ userId: string | number;
2233
+ signedUrl: string;
2234
+ createdAt: Date;
2235
+ } | null | undefined;
2236
+ nonCroppedFile?: {
2237
+ path: string;
2238
+ id: string;
2239
+ userId: string | number;
2240
+ signedUrl: string;
2241
+ createdAt: Date;
2242
+ } | null | undefined;
2243
+ };
2244
+ deleted?: boolean | null | undefined;
2245
+ }>;
2246
+ export type UserWsPayloadOrderLabel = z.infer<typeof UserWsPayloadOrderLabelSchema>;
916
2247
  export declare const UserWsPayloadOtpSchema: z.ZodObject<{
917
2248
  accountId: z.ZodString;
918
2249
  otp: z.ZodString;
@@ -938,6 +2269,20 @@ export declare const UserWsPayloadReconnectSchema: z.ZodObject<{
938
2269
  accountId: string;
939
2270
  }>;
940
2271
  export type UserWsPayloadReconnect = z.infer<typeof UserWsPayloadReconnectSchema>;
2272
+ export declare const UserWsPayloadResourceUpdatedSchema: z.ZodObject<{
2273
+ value: z.ZodUnknown;
2274
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2275
+ type: z.ZodLiteral<"RESOURCE">;
2276
+ }, "strip", z.ZodTypeAny, {
2277
+ type: "RESOURCE";
2278
+ value?: unknown;
2279
+ deleted?: boolean | null | undefined;
2280
+ }, {
2281
+ type: "RESOURCE";
2282
+ value?: unknown;
2283
+ deleted?: boolean | null | undefined;
2284
+ }>;
2285
+ export type UserWsPayloadResourceUpdated = z.infer<typeof UserWsPayloadResourceUpdatedSchema>;
941
2286
  export declare const UserWsPayloadUserOnPlatformSessionSchema: z.ZodObject<{
942
2287
  accountId: z.ZodString;
943
2288
  data: z.ZodObject<{
@@ -1569,27 +2914,152 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
1569
2914
  file?: {
1570
2915
  path: string;
1571
2916
  id: string;
1572
- userId: string | number;
1573
- signedUrl: string;
2917
+ userId: string | number;
2918
+ signedUrl: string;
2919
+ createdAt: Date;
2920
+ } | null | undefined;
2921
+ index?: number | null | undefined;
2922
+ }[] | null | undefined;
2923
+ conversationUserId?: string | null | undefined;
2924
+ platformMessageId?: string | null | undefined;
2925
+ statusHistory?: {
2926
+ status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
2927
+ id: string;
2928
+ createdAt: Date;
2929
+ messageId: string;
2930
+ }[] | null | undefined;
2931
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "PHOTO_ADDING" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | "TEMPLATE" | null | undefined;
2932
+ translation?: {
2933
+ messageId: string;
2934
+ body: string;
2935
+ lang: string;
2936
+ } | null | undefined;
2937
+ }, {
2938
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
2939
+ status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
2940
+ id: string;
2941
+ createdAt: Date;
2942
+ conversationId: string;
2943
+ body?: string | null | undefined;
2944
+ offer?: {
2945
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
2946
+ id: string;
2947
+ price: number;
2948
+ messageId: string;
2949
+ originalPrice: number;
2950
+ transactionId?: string | null | undefined;
2951
+ platformOfferId?: string | null | undefined;
2952
+ } | null | undefined;
2953
+ files?: {
2954
+ fileId: string;
2955
+ messageId: string;
2956
+ file?: {
2957
+ path: string;
2958
+ id: string;
2959
+ userId: string | number;
2960
+ signedUrl: string;
2961
+ createdAt: Date;
2962
+ } | null | undefined;
2963
+ index?: number | null | undefined;
2964
+ }[] | null | undefined;
2965
+ conversationUserId?: string | null | undefined;
2966
+ platformMessageId?: string | null | undefined;
2967
+ statusHistory?: {
2968
+ status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
2969
+ id: string;
2970
+ createdAt: Date;
2971
+ messageId: string;
2972
+ }[] | null | undefined;
2973
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "PHOTO_ADDING" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | "TEMPLATE" | null | undefined;
2974
+ translation?: {
2975
+ messageId: string;
2976
+ body: string;
2977
+ lang: string;
2978
+ } | null | undefined;
2979
+ }>, "many">;
2980
+ type: z.ZodLiteral<"CONVERSATION">;
2981
+ }, "strip", z.ZodTypeAny, {
2982
+ type: "CONVERSATION";
2983
+ conversation: {
2984
+ id: string;
2985
+ updatedAt: Date;
2986
+ accountId: string;
2987
+ platformConversationId: string;
2988
+ account?: {
2989
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
2990
+ userId: string | number;
2991
+ name: string;
2992
+ platform: "VINTED" | "SHOPIFY";
2993
+ accountId: string;
2994
+ night?: {
2995
+ startsAt: Date;
2996
+ endsAt: Date;
2997
+ } | null | undefined;
2998
+ locale?: string | null | undefined;
2999
+ } | null | undefined;
3000
+ users?: {
3001
+ id: string;
3002
+ conversationId: string;
3003
+ login: string;
3004
+ platformUserId: string;
3005
+ reviewCount?: number | null | undefined;
3006
+ reviewValue?: number | null | undefined;
3007
+ location?: string | null | undefined;
3008
+ photoFileId?: string | null | undefined;
3009
+ photoFile?: {
3010
+ path: string;
3011
+ id: string;
3012
+ userId: string | number;
3013
+ signedUrl: string;
3014
+ createdAt: Date;
3015
+ } | null | undefined;
3016
+ }[] | null | undefined;
3017
+ lastMessage?: {
3018
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
3019
+ status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
3020
+ id: string;
3021
+ createdAt: Date;
3022
+ conversationId: string;
3023
+ body?: string | null | undefined;
3024
+ offer?: {
3025
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
3026
+ id: string;
3027
+ price: number;
3028
+ messageId: string;
3029
+ originalPrice: number;
3030
+ transactionId?: string | null | undefined;
3031
+ platformOfferId?: string | null | undefined;
3032
+ } | null | undefined;
3033
+ files?: {
3034
+ fileId: string;
3035
+ messageId: string;
3036
+ file?: {
3037
+ path: string;
3038
+ id: string;
3039
+ userId: string | number;
3040
+ signedUrl: string;
3041
+ createdAt: Date;
3042
+ } | null | undefined;
3043
+ index?: number | null | undefined;
3044
+ }[] | null | undefined;
3045
+ conversationUserId?: string | null | undefined;
3046
+ platformMessageId?: string | null | undefined;
3047
+ statusHistory?: {
3048
+ status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
3049
+ id: string;
1574
3050
  createdAt: Date;
3051
+ messageId: string;
3052
+ }[] | null | undefined;
3053
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "PHOTO_ADDING" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | "TEMPLATE" | null | undefined;
3054
+ translation?: {
3055
+ messageId: string;
3056
+ body: string;
3057
+ lang: string;
1575
3058
  } | null | undefined;
1576
- index?: number | null | undefined;
1577
- }[] | null | undefined;
1578
- conversationUserId?: string | null | undefined;
1579
- platformMessageId?: string | null | undefined;
1580
- statusHistory?: {
1581
- status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
1582
- id: string;
1583
- createdAt: Date;
1584
- messageId: string;
1585
- }[] | null | undefined;
1586
- associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "PHOTO_ADDING" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | "TEMPLATE" | null | undefined;
1587
- translation?: {
1588
- messageId: string;
1589
- body: string;
1590
- lang: string;
1591
3059
  } | null | undefined;
1592
- }, {
3060
+ lastRead?: Date | null | undefined;
3061
+ };
3062
+ newMessages: {
1593
3063
  type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
1594
3064
  status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
1595
3065
  id: string;
@@ -1631,9 +3101,8 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
1631
3101
  body: string;
1632
3102
  lang: string;
1633
3103
  } | null | undefined;
1634
- }>, "many">;
1635
- type: z.ZodLiteral<"CONVERSATION">;
1636
- }, "strip", z.ZodTypeAny, {
3104
+ }[];
3105
+ }, {
1637
3106
  type: "CONVERSATION";
1638
3107
  conversation: {
1639
3108
  id: string;
@@ -1732,7 +3201,766 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
1732
3201
  } | null | undefined;
1733
3202
  files?: {
1734
3203
  fileId: string;
1735
- messageId: string;
3204
+ messageId: string;
3205
+ file?: {
3206
+ path: string;
3207
+ id: string;
3208
+ userId: string | number;
3209
+ signedUrl: string;
3210
+ createdAt: Date;
3211
+ } | null | undefined;
3212
+ index?: number | null | undefined;
3213
+ }[] | null | undefined;
3214
+ conversationUserId?: string | null | undefined;
3215
+ platformMessageId?: string | null | undefined;
3216
+ statusHistory?: {
3217
+ status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
3218
+ id: string;
3219
+ createdAt: Date;
3220
+ messageId: string;
3221
+ }[] | null | undefined;
3222
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "PHOTO_ADDING" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | "TEMPLATE" | null | undefined;
3223
+ translation?: {
3224
+ messageId: string;
3225
+ body: string;
3226
+ lang: string;
3227
+ } | null | undefined;
3228
+ }[];
3229
+ }>, z.ZodObject<{
3230
+ type: z.ZodLiteral<"EMPTY">;
3231
+ }, "strip", z.ZodTypeAny, {
3232
+ type: "EMPTY";
3233
+ }, {
3234
+ type: "EMPTY";
3235
+ }>, z.ZodObject<{
3236
+ item: z.ZodObject<{
3237
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
3238
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
3239
+ name: z.ZodString;
3240
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3241
+ files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3242
+ fileId: z.ZodString;
3243
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
3244
+ index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3245
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3246
+ id: z.ZodString;
3247
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
3248
+ path: z.ZodString;
3249
+ signedUrl: z.ZodString;
3250
+ createdAt: z.ZodDate;
3251
+ }, "strip", z.ZodTypeAny, {
3252
+ path: string;
3253
+ id: string;
3254
+ userId: string | number;
3255
+ signedUrl: string;
3256
+ createdAt: Date;
3257
+ }, {
3258
+ path: string;
3259
+ id: string;
3260
+ userId: string | number;
3261
+ signedUrl: string;
3262
+ createdAt: Date;
3263
+ }>>>;
3264
+ }, "strip", z.ZodTypeAny, {
3265
+ fileId: string;
3266
+ itemId: string | number;
3267
+ file?: {
3268
+ path: string;
3269
+ id: string;
3270
+ userId: string | number;
3271
+ signedUrl: string;
3272
+ createdAt: Date;
3273
+ } | null | undefined;
3274
+ index?: number | null | undefined;
3275
+ }, {
3276
+ fileId: string;
3277
+ itemId: string | number;
3278
+ file?: {
3279
+ path: string;
3280
+ id: string;
3281
+ userId: string | number;
3282
+ signedUrl: string;
3283
+ createdAt: Date;
3284
+ } | null | undefined;
3285
+ index?: number | null | undefined;
3286
+ }>, "many">>>;
3287
+ categoryId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3288
+ brandId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
3289
+ sex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3290
+ state: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3291
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3292
+ purchasePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3293
+ purchaseDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3294
+ purchasePlaceId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
3295
+ sold: z.ZodBoolean;
3296
+ purchased: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3297
+ sellingPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3298
+ sellingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3299
+ sellingPlaceId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
3300
+ estimatedPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3301
+ fees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3302
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
3303
+ type: z.ZodString;
3304
+ value: z.ZodNumber;
3305
+ name: z.ZodString;
3306
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3307
+ recurrence: z.ZodEnum<["UNIQUE", "MONTHLY", "YEARLY"]>;
3308
+ startDate: z.ZodDate;
3309
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3310
+ active: z.ZodBoolean;
3311
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
3312
+ itemId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
3313
+ parentFeeId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
3314
+ createdAt: z.ZodDate;
3315
+ updatedAt: z.ZodDate;
3316
+ }, "strip", z.ZodTypeAny, {
3317
+ value: number;
3318
+ type: string;
3319
+ id: string | number;
3320
+ userId: string | number;
3321
+ createdAt: Date;
3322
+ name: string;
3323
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
3324
+ startDate: Date;
3325
+ active: boolean;
3326
+ updatedAt: Date;
3327
+ description?: string | null | undefined;
3328
+ endDate?: Date | null | undefined;
3329
+ itemId?: string | number | null | undefined;
3330
+ parentFeeId?: string | number | null | undefined;
3331
+ }, {
3332
+ value: number;
3333
+ type: string;
3334
+ id: string | number;
3335
+ userId: string | number;
3336
+ createdAt: Date;
3337
+ name: string;
3338
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
3339
+ startDate: Date;
3340
+ active: boolean;
3341
+ updatedAt: Date;
3342
+ description?: string | null | undefined;
3343
+ endDate?: Date | null | undefined;
3344
+ itemId?: string | number | null | undefined;
3345
+ parentFeeId?: string | number | null | undefined;
3346
+ }>, "many">>>;
3347
+ feesSum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3348
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3349
+ labelId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
3350
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
3351
+ label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3352
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
3353
+ name: z.ZodString;
3354
+ userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
3355
+ isUserLabel: z.ZodBoolean;
3356
+ createdAt: z.ZodDate;
3357
+ itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3358
+ }, "strip", z.ZodTypeAny, {
3359
+ id: string | number;
3360
+ createdAt: Date;
3361
+ name: string;
3362
+ isUserLabel: boolean;
3363
+ itemCount?: number | null | undefined;
3364
+ userId?: string | number | null | undefined;
3365
+ }, {
3366
+ id: string | number;
3367
+ createdAt: Date;
3368
+ name: string;
3369
+ isUserLabel: boolean;
3370
+ itemCount?: number | null | undefined;
3371
+ userId?: string | number | null | undefined;
3372
+ }>>>;
3373
+ }, "strip", z.ZodTypeAny, {
3374
+ itemId: string | number;
3375
+ labelId: string | number;
3376
+ label?: {
3377
+ id: string | number;
3378
+ createdAt: Date;
3379
+ name: string;
3380
+ isUserLabel: boolean;
3381
+ itemCount?: number | null | undefined;
3382
+ userId?: string | number | null | undefined;
3383
+ } | null | undefined;
3384
+ }, {
3385
+ itemId: string | number;
3386
+ labelId: string | number;
3387
+ label?: {
3388
+ id: string | number;
3389
+ createdAt: Date;
3390
+ name: string;
3391
+ isUserLabel: boolean;
3392
+ itemCount?: number | null | undefined;
3393
+ userId?: string | number | null | undefined;
3394
+ } | null | undefined;
3395
+ }>, "many">>>;
3396
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
3397
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3398
+ customerId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
3399
+ customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3400
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
3401
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
3402
+ firstName: z.ZodString;
3403
+ lastName: z.ZodString;
3404
+ birthDate: z.ZodDate;
3405
+ email: z.ZodString;
3406
+ idNumber: z.ZodString;
3407
+ phone: z.ZodString;
3408
+ iban: z.ZodString;
3409
+ bic: z.ZodString;
3410
+ phoneVerified: z.ZodBoolean;
3411
+ }, "strip", z.ZodTypeAny, {
3412
+ email: string;
3413
+ id: string | number;
3414
+ userId: string | number;
3415
+ firstName: string;
3416
+ lastName: string;
3417
+ birthDate: Date;
3418
+ idNumber: string;
3419
+ phone: string;
3420
+ iban: string;
3421
+ bic: string;
3422
+ phoneVerified: boolean;
3423
+ }, {
3424
+ email: string;
3425
+ id: string | number;
3426
+ userId: string | number;
3427
+ firstName: string;
3428
+ lastName: string;
3429
+ birthDate: Date;
3430
+ idNumber: string;
3431
+ phone: string;
3432
+ iban: string;
3433
+ bic: string;
3434
+ phoneVerified: boolean;
3435
+ }>>>;
3436
+ customerType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3437
+ customerPaid: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3438
+ customerPaidDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3439
+ customerPaidType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3440
+ contractId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
3441
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3442
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
3443
+ fieldId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
3444
+ value: z.ZodString;
3445
+ }, "strip", z.ZodTypeAny, {
3446
+ value: string;
3447
+ itemId: string | number;
3448
+ fieldId: string | number;
3449
+ }, {
3450
+ value: string;
3451
+ itemId: string | number;
3452
+ fieldId: string | number;
3453
+ }>, "many">>>;
3454
+ lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3455
+ id: z.ZodString;
3456
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
3457
+ type: z.ZodEnum<["IMPORTED", "ARCHIVED", "UNARCHIVED", "PUBLISHED", "FAILED_TO_PUBLISH", "PUBLISH_CANCELED", "SCHEDULED", "REPUBLISHING", "REPUBLISHED", "UPDATING", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
3458
+ data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3459
+ data: z.ZodObject<{
3460
+ soldAccountId: z.ZodString;
3461
+ soldOrderId: z.ZodString;
3462
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3463
+ }, "strip", z.ZodTypeAny, {
3464
+ soldAccountId: string;
3465
+ soldOrderId: string;
3466
+ soldConversationId?: string | null | undefined;
3467
+ }, {
3468
+ soldAccountId: string;
3469
+ soldOrderId: string;
3470
+ soldConversationId?: string | null | undefined;
3471
+ }>;
3472
+ type: z.ZodLiteral<"BUYER_PAID">;
3473
+ }, "strip", z.ZodTypeAny, {
3474
+ type: "BUYER_PAID";
3475
+ data: {
3476
+ soldAccountId: string;
3477
+ soldOrderId: string;
3478
+ soldConversationId?: string | null | undefined;
3479
+ };
3480
+ }, {
3481
+ type: "BUYER_PAID";
3482
+ data: {
3483
+ soldAccountId: string;
3484
+ soldOrderId: string;
3485
+ soldConversationId?: string | null | undefined;
3486
+ };
3487
+ }>, z.ZodObject<{
3488
+ data: z.ZodObject<{
3489
+ soldAccountId: z.ZodString;
3490
+ soldOrderId: z.ZodString;
3491
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3492
+ }, "strip", z.ZodTypeAny, {
3493
+ soldAccountId: string;
3494
+ soldOrderId: string;
3495
+ soldConversationId?: string | null | undefined;
3496
+ }, {
3497
+ soldAccountId: string;
3498
+ soldOrderId: string;
3499
+ soldConversationId?: string | null | undefined;
3500
+ }>;
3501
+ type: z.ZodLiteral<"DELIVERED">;
3502
+ }, "strip", z.ZodTypeAny, {
3503
+ type: "DELIVERED";
3504
+ data: {
3505
+ soldAccountId: string;
3506
+ soldOrderId: string;
3507
+ soldConversationId?: string | null | undefined;
3508
+ };
3509
+ }, {
3510
+ type: "DELIVERED";
3511
+ data: {
3512
+ soldAccountId: string;
3513
+ soldOrderId: string;
3514
+ soldConversationId?: string | null | undefined;
3515
+ };
3516
+ }>, z.ZodObject<{
3517
+ type: z.ZodLiteral<"EMPTY">;
3518
+ }, "strip", z.ZodTypeAny, {
3519
+ type: "EMPTY";
3520
+ }, {
3521
+ type: "EMPTY";
3522
+ }>, z.ZodObject<{
3523
+ data: z.ZodObject<{
3524
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
3525
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3526
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3527
+ }, "strip", z.ZodTypeAny, {
3528
+ platform: "VINTED" | "SHOPIFY";
3529
+ accountId?: string | null | undefined;
3530
+ reason?: string | null | undefined;
3531
+ }, {
3532
+ platform: "VINTED" | "SHOPIFY";
3533
+ accountId?: string | null | undefined;
3534
+ reason?: string | null | undefined;
3535
+ }>;
3536
+ type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
3537
+ }, "strip", z.ZodTypeAny, {
3538
+ type: "FAILED_TO_PUBLISH";
3539
+ data: {
3540
+ platform: "VINTED" | "SHOPIFY";
3541
+ accountId?: string | null | undefined;
3542
+ reason?: string | null | undefined;
3543
+ };
3544
+ }, {
3545
+ type: "FAILED_TO_PUBLISH";
3546
+ data: {
3547
+ platform: "VINTED" | "SHOPIFY";
3548
+ accountId?: string | null | undefined;
3549
+ reason?: string | null | undefined;
3550
+ };
3551
+ }>, z.ZodObject<{
3552
+ data: z.ZodObject<{
3553
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
3554
+ }, "strip", z.ZodTypeAny, {
3555
+ platform: "VINTED" | "SHOPIFY";
3556
+ }, {
3557
+ platform: "VINTED" | "SHOPIFY";
3558
+ }>;
3559
+ type: z.ZodLiteral<"REPUBLISHING">;
3560
+ }, "strip", z.ZodTypeAny, {
3561
+ type: "REPUBLISHING";
3562
+ data: {
3563
+ platform: "VINTED" | "SHOPIFY";
3564
+ };
3565
+ }, {
3566
+ type: "REPUBLISHING";
3567
+ data: {
3568
+ platform: "VINTED" | "SHOPIFY";
3569
+ };
3570
+ }>, z.ZodObject<{
3571
+ data: z.ZodObject<{
3572
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
3573
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3574
+ }, "strip", z.ZodTypeAny, {
3575
+ platform: "VINTED" | "SHOPIFY";
3576
+ publishingDate?: Date | null | undefined;
3577
+ }, {
3578
+ platform: "VINTED" | "SHOPIFY";
3579
+ publishingDate?: Date | null | undefined;
3580
+ }>;
3581
+ type: z.ZodLiteral<"SCHEDULED">;
3582
+ }, "strip", z.ZodTypeAny, {
3583
+ type: "SCHEDULED";
3584
+ data: {
3585
+ platform: "VINTED" | "SHOPIFY";
3586
+ publishingDate?: Date | null | undefined;
3587
+ };
3588
+ }, {
3589
+ type: "SCHEDULED";
3590
+ data: {
3591
+ platform: "VINTED" | "SHOPIFY";
3592
+ publishingDate?: Date | null | undefined;
3593
+ };
3594
+ }>]>>>;
3595
+ createdAt: z.ZodDate;
3596
+ }, "strip", z.ZodTypeAny, {
3597
+ type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
3598
+ id: string;
3599
+ createdAt: Date;
3600
+ itemId: string | number;
3601
+ data?: {
3602
+ type: "BUYER_PAID";
3603
+ data: {
3604
+ soldAccountId: string;
3605
+ soldOrderId: string;
3606
+ soldConversationId?: string | null | undefined;
3607
+ };
3608
+ } | {
3609
+ type: "DELIVERED";
3610
+ data: {
3611
+ soldAccountId: string;
3612
+ soldOrderId: string;
3613
+ soldConversationId?: string | null | undefined;
3614
+ };
3615
+ } | {
3616
+ type: "EMPTY";
3617
+ } | {
3618
+ type: "FAILED_TO_PUBLISH";
3619
+ data: {
3620
+ platform: "VINTED" | "SHOPIFY";
3621
+ accountId?: string | null | undefined;
3622
+ reason?: string | null | undefined;
3623
+ };
3624
+ } | {
3625
+ type: "REPUBLISHING";
3626
+ data: {
3627
+ platform: "VINTED" | "SHOPIFY";
3628
+ };
3629
+ } | {
3630
+ type: "SCHEDULED";
3631
+ data: {
3632
+ platform: "VINTED" | "SHOPIFY";
3633
+ publishingDate?: Date | null | undefined;
3634
+ };
3635
+ } | null | undefined;
3636
+ }, {
3637
+ type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
3638
+ id: string;
3639
+ createdAt: Date;
3640
+ itemId: string | number;
3641
+ data?: {
3642
+ type: "BUYER_PAID";
3643
+ data: {
3644
+ soldAccountId: string;
3645
+ soldOrderId: string;
3646
+ soldConversationId?: string | null | undefined;
3647
+ };
3648
+ } | {
3649
+ type: "DELIVERED";
3650
+ data: {
3651
+ soldAccountId: string;
3652
+ soldOrderId: string;
3653
+ soldConversationId?: string | null | undefined;
3654
+ };
3655
+ } | {
3656
+ type: "EMPTY";
3657
+ } | {
3658
+ type: "FAILED_TO_PUBLISH";
3659
+ data: {
3660
+ platform: "VINTED" | "SHOPIFY";
3661
+ accountId?: string | null | undefined;
3662
+ reason?: string | null | undefined;
3663
+ };
3664
+ } | {
3665
+ type: "REPUBLISHING";
3666
+ data: {
3667
+ platform: "VINTED" | "SHOPIFY";
3668
+ };
3669
+ } | {
3670
+ type: "SCHEDULED";
3671
+ data: {
3672
+ platform: "VINTED" | "SHOPIFY";
3673
+ publishingDate?: Date | null | undefined;
3674
+ };
3675
+ } | null | undefined;
3676
+ }>>>;
3677
+ platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3678
+ id: z.ZodString;
3679
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
3680
+ accountId: z.ZodString;
3681
+ platformId: z.ZodString;
3682
+ platformUrl: z.ZodString;
3683
+ platformPrice: z.ZodNumber;
3684
+ status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "ARCHIVED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
3685
+ account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3686
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
3687
+ accountId: z.ZodString;
3688
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
3689
+ name: z.ZodString;
3690
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3691
+ status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
3692
+ night: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3693
+ startsAt: z.ZodDate;
3694
+ endsAt: z.ZodDate;
3695
+ }, "strip", z.ZodTypeAny, {
3696
+ startsAt: Date;
3697
+ endsAt: Date;
3698
+ }, {
3699
+ startsAt: Date;
3700
+ endsAt: Date;
3701
+ }>>>;
3702
+ }, "strip", z.ZodTypeAny, {
3703
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
3704
+ userId: string | number;
3705
+ name: string;
3706
+ platform: "VINTED" | "SHOPIFY";
3707
+ accountId: string;
3708
+ night?: {
3709
+ startsAt: Date;
3710
+ endsAt: Date;
3711
+ } | null | undefined;
3712
+ locale?: string | null | undefined;
3713
+ }, {
3714
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
3715
+ userId: string | number;
3716
+ name: string;
3717
+ platform: "VINTED" | "SHOPIFY";
3718
+ accountId: string;
3719
+ night?: {
3720
+ startsAt: Date;
3721
+ endsAt: Date;
3722
+ } | null | undefined;
3723
+ locale?: string | null | undefined;
3724
+ }>>>;
3725
+ }, "strip", z.ZodTypeAny, {
3726
+ status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
3727
+ id: string;
3728
+ itemId: string | number;
3729
+ accountId: string;
3730
+ platformId: string;
3731
+ platformUrl: string;
3732
+ platformPrice: number;
3733
+ account?: {
3734
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
3735
+ userId: string | number;
3736
+ name: string;
3737
+ platform: "VINTED" | "SHOPIFY";
3738
+ accountId: string;
3739
+ night?: {
3740
+ startsAt: Date;
3741
+ endsAt: Date;
3742
+ } | null | undefined;
3743
+ locale?: string | null | undefined;
3744
+ } | null | undefined;
3745
+ }, {
3746
+ status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
3747
+ id: string;
3748
+ itemId: string | number;
3749
+ accountId: string;
3750
+ platformId: string;
3751
+ platformUrl: string;
3752
+ platformPrice: number;
3753
+ account?: {
3754
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
3755
+ userId: string | number;
3756
+ name: string;
3757
+ platform: "VINTED" | "SHOPIFY";
3758
+ accountId: string;
3759
+ night?: {
3760
+ startsAt: Date;
3761
+ endsAt: Date;
3762
+ } | null | undefined;
3763
+ locale?: string | null | undefined;
3764
+ } | null | undefined;
3765
+ }>, "many">>>;
3766
+ createdAt: z.ZodDate;
3767
+ updatedAt: z.ZodDate;
3768
+ }, "strip", z.ZodTypeAny, {
3769
+ id: string | number;
3770
+ userId: string | number;
3771
+ createdAt: Date;
3772
+ name: string;
3773
+ updatedAt: Date;
3774
+ sold: boolean;
3775
+ customerId?: string | number | null | undefined;
3776
+ description?: string | null | undefined;
3777
+ colorIds?: number[] | null | undefined;
3778
+ packageSizeId?: number | null | undefined;
3779
+ sizeId?: number | null | undefined;
3780
+ labels?: {
3781
+ itemId: string | number;
3782
+ labelId: string | number;
3783
+ label?: {
3784
+ id: string | number;
3785
+ createdAt: Date;
3786
+ name: string;
3787
+ isUserLabel: boolean;
3788
+ itemCount?: number | null | undefined;
3789
+ userId?: string | number | null | undefined;
3790
+ } | null | undefined;
3791
+ }[] | null | undefined;
3792
+ state?: number | null | undefined;
3793
+ fees?: {
3794
+ value: number;
3795
+ type: string;
3796
+ id: string | number;
3797
+ userId: string | number;
3798
+ createdAt: Date;
3799
+ name: string;
3800
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
3801
+ startDate: Date;
3802
+ active: boolean;
3803
+ updatedAt: Date;
3804
+ description?: string | null | undefined;
3805
+ endDate?: Date | null | undefined;
3806
+ itemId?: string | number | null | undefined;
3807
+ parentFeeId?: string | number | null | undefined;
3808
+ }[] | null | undefined;
3809
+ categoryId?: number | null | undefined;
3810
+ brandId?: string | number | null | undefined;
3811
+ files?: {
3812
+ fileId: string;
3813
+ itemId: string | number;
3814
+ file?: {
3815
+ path: string;
3816
+ id: string;
3817
+ userId: string | number;
3818
+ signedUrl: string;
3819
+ createdAt: Date;
3820
+ } | null | undefined;
3821
+ index?: number | null | undefined;
3822
+ }[] | null | undefined;
3823
+ sex?: string | null | undefined;
3824
+ purchasePrice?: number | null | undefined;
3825
+ purchaseDate?: Date | null | undefined;
3826
+ purchasePlaceId?: string | number | null | undefined;
3827
+ purchased?: boolean | null | undefined;
3828
+ sellingPrice?: number | null | undefined;
3829
+ sellingDate?: Date | null | undefined;
3830
+ sellingPlaceId?: string | number | null | undefined;
3831
+ estimatedPrice?: number | null | undefined;
3832
+ feesSum?: number | null | undefined;
3833
+ customer?: {
3834
+ email: string;
3835
+ id: string | number;
3836
+ userId: string | number;
3837
+ firstName: string;
3838
+ lastName: string;
3839
+ birthDate: Date;
3840
+ idNumber: string;
3841
+ phone: string;
3842
+ iban: string;
3843
+ bic: string;
3844
+ phoneVerified: boolean;
3845
+ } | null | undefined;
3846
+ customerType?: string | null | undefined;
3847
+ customerPaid?: boolean | null | undefined;
3848
+ customerPaidDate?: Date | null | undefined;
3849
+ customerPaidType?: string | null | undefined;
3850
+ contractId?: string | number | null | undefined;
3851
+ fields?: {
3852
+ value: string;
3853
+ itemId: string | number;
3854
+ fieldId: string | number;
3855
+ }[] | null | undefined;
3856
+ lastHistory?: {
3857
+ type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
3858
+ id: string;
3859
+ createdAt: Date;
3860
+ itemId: string | number;
3861
+ data?: {
3862
+ type: "BUYER_PAID";
3863
+ data: {
3864
+ soldAccountId: string;
3865
+ soldOrderId: string;
3866
+ soldConversationId?: string | null | undefined;
3867
+ };
3868
+ } | {
3869
+ type: "DELIVERED";
3870
+ data: {
3871
+ soldAccountId: string;
3872
+ soldOrderId: string;
3873
+ soldConversationId?: string | null | undefined;
3874
+ };
3875
+ } | {
3876
+ type: "EMPTY";
3877
+ } | {
3878
+ type: "FAILED_TO_PUBLISH";
3879
+ data: {
3880
+ platform: "VINTED" | "SHOPIFY";
3881
+ accountId?: string | null | undefined;
3882
+ reason?: string | null | undefined;
3883
+ };
3884
+ } | {
3885
+ type: "REPUBLISHING";
3886
+ data: {
3887
+ platform: "VINTED" | "SHOPIFY";
3888
+ };
3889
+ } | {
3890
+ type: "SCHEDULED";
3891
+ data: {
3892
+ platform: "VINTED" | "SHOPIFY";
3893
+ publishingDate?: Date | null | undefined;
3894
+ };
3895
+ } | null | undefined;
3896
+ } | null | undefined;
3897
+ platforms?: {
3898
+ status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
3899
+ id: string;
3900
+ itemId: string | number;
3901
+ accountId: string;
3902
+ platformId: string;
3903
+ platformUrl: string;
3904
+ platformPrice: number;
3905
+ account?: {
3906
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
3907
+ userId: string | number;
3908
+ name: string;
3909
+ platform: "VINTED" | "SHOPIFY";
3910
+ accountId: string;
3911
+ night?: {
3912
+ startsAt: Date;
3913
+ endsAt: Date;
3914
+ } | null | undefined;
3915
+ locale?: string | null | undefined;
3916
+ } | null | undefined;
3917
+ }[] | null | undefined;
3918
+ }, {
3919
+ id: string | number;
3920
+ userId: string | number;
3921
+ createdAt: Date;
3922
+ name: string;
3923
+ updatedAt: Date;
3924
+ sold: boolean;
3925
+ customerId?: string | number | null | undefined;
3926
+ description?: string | null | undefined;
3927
+ colorIds?: number[] | null | undefined;
3928
+ packageSizeId?: number | null | undefined;
3929
+ sizeId?: number | null | undefined;
3930
+ labels?: {
3931
+ itemId: string | number;
3932
+ labelId: string | number;
3933
+ label?: {
3934
+ id: string | number;
3935
+ createdAt: Date;
3936
+ name: string;
3937
+ isUserLabel: boolean;
3938
+ itemCount?: number | null | undefined;
3939
+ userId?: string | number | null | undefined;
3940
+ } | null | undefined;
3941
+ }[] | null | undefined;
3942
+ state?: number | null | undefined;
3943
+ fees?: {
3944
+ value: number;
3945
+ type: string;
3946
+ id: string | number;
3947
+ userId: string | number;
3948
+ createdAt: Date;
3949
+ name: string;
3950
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
3951
+ startDate: Date;
3952
+ active: boolean;
3953
+ updatedAt: Date;
3954
+ description?: string | null | undefined;
3955
+ endDate?: Date | null | undefined;
3956
+ itemId?: string | number | null | undefined;
3957
+ parentFeeId?: string | number | null | undefined;
3958
+ }[] | null | undefined;
3959
+ categoryId?: number | null | undefined;
3960
+ brandId?: string | number | null | undefined;
3961
+ files?: {
3962
+ fileId: string;
3963
+ itemId: string | number;
1736
3964
  file?: {
1737
3965
  path: string;
1738
3966
  id: string;
@@ -1742,121 +3970,306 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
1742
3970
  } | null | undefined;
1743
3971
  index?: number | null | undefined;
1744
3972
  }[] | null | undefined;
1745
- conversationUserId?: string | null | undefined;
1746
- platformMessageId?: string | null | undefined;
1747
- statusHistory?: {
1748
- status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
3973
+ sex?: string | null | undefined;
3974
+ purchasePrice?: number | null | undefined;
3975
+ purchaseDate?: Date | null | undefined;
3976
+ purchasePlaceId?: string | number | null | undefined;
3977
+ purchased?: boolean | null | undefined;
3978
+ sellingPrice?: number | null | undefined;
3979
+ sellingDate?: Date | null | undefined;
3980
+ sellingPlaceId?: string | number | null | undefined;
3981
+ estimatedPrice?: number | null | undefined;
3982
+ feesSum?: number | null | undefined;
3983
+ customer?: {
3984
+ email: string;
3985
+ id: string | number;
3986
+ userId: string | number;
3987
+ firstName: string;
3988
+ lastName: string;
3989
+ birthDate: Date;
3990
+ idNumber: string;
3991
+ phone: string;
3992
+ iban: string;
3993
+ bic: string;
3994
+ phoneVerified: boolean;
3995
+ } | null | undefined;
3996
+ customerType?: string | null | undefined;
3997
+ customerPaid?: boolean | null | undefined;
3998
+ customerPaidDate?: Date | null | undefined;
3999
+ customerPaidType?: string | null | undefined;
4000
+ contractId?: string | number | null | undefined;
4001
+ fields?: {
4002
+ value: string;
4003
+ itemId: string | number;
4004
+ fieldId: string | number;
4005
+ }[] | null | undefined;
4006
+ lastHistory?: {
4007
+ type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1749
4008
  id: string;
1750
4009
  createdAt: Date;
1751
- messageId: string;
1752
- }[] | null | undefined;
1753
- associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "PHOTO_ADDING" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | "TEMPLATE" | null | undefined;
1754
- translation?: {
1755
- messageId: string;
1756
- body: string;
1757
- lang: string;
4010
+ itemId: string | number;
4011
+ data?: {
4012
+ type: "BUYER_PAID";
4013
+ data: {
4014
+ soldAccountId: string;
4015
+ soldOrderId: string;
4016
+ soldConversationId?: string | null | undefined;
4017
+ };
4018
+ } | {
4019
+ type: "DELIVERED";
4020
+ data: {
4021
+ soldAccountId: string;
4022
+ soldOrderId: string;
4023
+ soldConversationId?: string | null | undefined;
4024
+ };
4025
+ } | {
4026
+ type: "EMPTY";
4027
+ } | {
4028
+ type: "FAILED_TO_PUBLISH";
4029
+ data: {
4030
+ platform: "VINTED" | "SHOPIFY";
4031
+ accountId?: string | null | undefined;
4032
+ reason?: string | null | undefined;
4033
+ };
4034
+ } | {
4035
+ type: "REPUBLISHING";
4036
+ data: {
4037
+ platform: "VINTED" | "SHOPIFY";
4038
+ };
4039
+ } | {
4040
+ type: "SCHEDULED";
4041
+ data: {
4042
+ platform: "VINTED" | "SHOPIFY";
4043
+ publishingDate?: Date | null | undefined;
4044
+ };
4045
+ } | null | undefined;
1758
4046
  } | null | undefined;
1759
- }[];
1760
- }, {
1761
- type: "CONVERSATION";
1762
- conversation: {
1763
- id: string;
4047
+ platforms?: {
4048
+ status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
4049
+ id: string;
4050
+ itemId: string | number;
4051
+ accountId: string;
4052
+ platformId: string;
4053
+ platformUrl: string;
4054
+ platformPrice: number;
4055
+ account?: {
4056
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
4057
+ userId: string | number;
4058
+ name: string;
4059
+ platform: "VINTED" | "SHOPIFY";
4060
+ accountId: string;
4061
+ night?: {
4062
+ startsAt: Date;
4063
+ endsAt: Date;
4064
+ } | null | undefined;
4065
+ locale?: string | null | undefined;
4066
+ } | null | undefined;
4067
+ }[] | null | undefined;
4068
+ }>;
4069
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4070
+ type: z.ZodLiteral<"ITEM">;
4071
+ }, "strip", z.ZodTypeAny, {
4072
+ type: "ITEM";
4073
+ item: {
4074
+ id: string | number;
4075
+ userId: string | number;
4076
+ createdAt: Date;
4077
+ name: string;
1764
4078
  updatedAt: Date;
1765
- accountId: string;
1766
- platformConversationId: string;
1767
- account?: {
1768
- status: "CONNECTED" | "DISCONNECTED" | "ERROR";
4079
+ sold: boolean;
4080
+ customerId?: string | number | null | undefined;
4081
+ description?: string | null | undefined;
4082
+ colorIds?: number[] | null | undefined;
4083
+ packageSizeId?: number | null | undefined;
4084
+ sizeId?: number | null | undefined;
4085
+ labels?: {
4086
+ itemId: string | number;
4087
+ labelId: string | number;
4088
+ label?: {
4089
+ id: string | number;
4090
+ createdAt: Date;
4091
+ name: string;
4092
+ isUserLabel: boolean;
4093
+ itemCount?: number | null | undefined;
4094
+ userId?: string | number | null | undefined;
4095
+ } | null | undefined;
4096
+ }[] | null | undefined;
4097
+ state?: number | null | undefined;
4098
+ fees?: {
4099
+ value: number;
4100
+ type: string;
4101
+ id: string | number;
1769
4102
  userId: string | number;
4103
+ createdAt: Date;
1770
4104
  name: string;
1771
- platform: "VINTED" | "SHOPIFY";
1772
- accountId: string;
1773
- night?: {
1774
- startsAt: Date;
1775
- endsAt: Date;
1776
- } | null | undefined;
1777
- locale?: string | null | undefined;
1778
- } | null | undefined;
1779
- users?: {
1780
- id: string;
1781
- conversationId: string;
1782
- login: string;
1783
- platformUserId: string;
1784
- reviewCount?: number | null | undefined;
1785
- reviewValue?: number | null | undefined;
1786
- location?: string | null | undefined;
1787
- photoFileId?: string | null | undefined;
1788
- photoFile?: {
4105
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
4106
+ startDate: Date;
4107
+ active: boolean;
4108
+ updatedAt: Date;
4109
+ description?: string | null | undefined;
4110
+ endDate?: Date | null | undefined;
4111
+ itemId?: string | number | null | undefined;
4112
+ parentFeeId?: string | number | null | undefined;
4113
+ }[] | null | undefined;
4114
+ categoryId?: number | null | undefined;
4115
+ brandId?: string | number | null | undefined;
4116
+ files?: {
4117
+ fileId: string;
4118
+ itemId: string | number;
4119
+ file?: {
1789
4120
  path: string;
1790
4121
  id: string;
1791
4122
  userId: string | number;
1792
4123
  signedUrl: string;
1793
4124
  createdAt: Date;
1794
4125
  } | null | undefined;
4126
+ index?: number | null | undefined;
1795
4127
  }[] | null | undefined;
1796
- lastMessage?: {
1797
- type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
1798
- status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
4128
+ sex?: string | null | undefined;
4129
+ purchasePrice?: number | null | undefined;
4130
+ purchaseDate?: Date | null | undefined;
4131
+ purchasePlaceId?: string | number | null | undefined;
4132
+ purchased?: boolean | null | undefined;
4133
+ sellingPrice?: number | null | undefined;
4134
+ sellingDate?: Date | null | undefined;
4135
+ sellingPlaceId?: string | number | null | undefined;
4136
+ estimatedPrice?: number | null | undefined;
4137
+ feesSum?: number | null | undefined;
4138
+ customer?: {
4139
+ email: string;
4140
+ id: string | number;
4141
+ userId: string | number;
4142
+ firstName: string;
4143
+ lastName: string;
4144
+ birthDate: Date;
4145
+ idNumber: string;
4146
+ phone: string;
4147
+ iban: string;
4148
+ bic: string;
4149
+ phoneVerified: boolean;
4150
+ } | null | undefined;
4151
+ customerType?: string | null | undefined;
4152
+ customerPaid?: boolean | null | undefined;
4153
+ customerPaidDate?: Date | null | undefined;
4154
+ customerPaidType?: string | null | undefined;
4155
+ contractId?: string | number | null | undefined;
4156
+ fields?: {
4157
+ value: string;
4158
+ itemId: string | number;
4159
+ fieldId: string | number;
4160
+ }[] | null | undefined;
4161
+ lastHistory?: {
4162
+ type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1799
4163
  id: string;
1800
4164
  createdAt: Date;
1801
- conversationId: string;
1802
- body?: string | null | undefined;
1803
- offer?: {
1804
- status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
1805
- id: string;
1806
- price: number;
1807
- messageId: string;
1808
- originalPrice: number;
1809
- transactionId?: string | null | undefined;
1810
- platformOfferId?: string | null | undefined;
4165
+ itemId: string | number;
4166
+ data?: {
4167
+ type: "BUYER_PAID";
4168
+ data: {
4169
+ soldAccountId: string;
4170
+ soldOrderId: string;
4171
+ soldConversationId?: string | null | undefined;
4172
+ };
4173
+ } | {
4174
+ type: "DELIVERED";
4175
+ data: {
4176
+ soldAccountId: string;
4177
+ soldOrderId: string;
4178
+ soldConversationId?: string | null | undefined;
4179
+ };
4180
+ } | {
4181
+ type: "EMPTY";
4182
+ } | {
4183
+ type: "FAILED_TO_PUBLISH";
4184
+ data: {
4185
+ platform: "VINTED" | "SHOPIFY";
4186
+ accountId?: string | null | undefined;
4187
+ reason?: string | null | undefined;
4188
+ };
4189
+ } | {
4190
+ type: "REPUBLISHING";
4191
+ data: {
4192
+ platform: "VINTED" | "SHOPIFY";
4193
+ };
4194
+ } | {
4195
+ type: "SCHEDULED";
4196
+ data: {
4197
+ platform: "VINTED" | "SHOPIFY";
4198
+ publishingDate?: Date | null | undefined;
4199
+ };
1811
4200
  } | null | undefined;
1812
- files?: {
1813
- fileId: string;
1814
- messageId: string;
1815
- file?: {
1816
- path: string;
1817
- id: string;
1818
- userId: string | number;
1819
- signedUrl: string;
1820
- createdAt: Date;
4201
+ } | null | undefined;
4202
+ platforms?: {
4203
+ status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
4204
+ id: string;
4205
+ itemId: string | number;
4206
+ accountId: string;
4207
+ platformId: string;
4208
+ platformUrl: string;
4209
+ platformPrice: number;
4210
+ account?: {
4211
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
4212
+ userId: string | number;
4213
+ name: string;
4214
+ platform: "VINTED" | "SHOPIFY";
4215
+ accountId: string;
4216
+ night?: {
4217
+ startsAt: Date;
4218
+ endsAt: Date;
1821
4219
  } | null | undefined;
1822
- index?: number | null | undefined;
1823
- }[] | null | undefined;
1824
- conversationUserId?: string | null | undefined;
1825
- platformMessageId?: string | null | undefined;
1826
- statusHistory?: {
1827
- status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
1828
- id: string;
1829
- createdAt: Date;
1830
- messageId: string;
1831
- }[] | null | undefined;
1832
- associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "PHOTO_ADDING" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | "TEMPLATE" | null | undefined;
1833
- translation?: {
1834
- messageId: string;
1835
- body: string;
1836
- lang: string;
4220
+ locale?: string | null | undefined;
1837
4221
  } | null | undefined;
1838
- } | null | undefined;
1839
- lastRead?: Date | null | undefined;
4222
+ }[] | null | undefined;
1840
4223
  };
1841
- newMessages: {
1842
- type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
1843
- status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
1844
- id: string;
4224
+ deleted?: boolean | null | undefined;
4225
+ }, {
4226
+ type: "ITEM";
4227
+ item: {
4228
+ id: string | number;
4229
+ userId: string | number;
1845
4230
  createdAt: Date;
1846
- conversationId: string;
1847
- body?: string | null | undefined;
1848
- offer?: {
1849
- status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
1850
- id: string;
1851
- price: number;
1852
- messageId: string;
1853
- originalPrice: number;
1854
- transactionId?: string | null | undefined;
1855
- platformOfferId?: string | null | undefined;
1856
- } | null | undefined;
4231
+ name: string;
4232
+ updatedAt: Date;
4233
+ sold: boolean;
4234
+ customerId?: string | number | null | undefined;
4235
+ description?: string | null | undefined;
4236
+ colorIds?: number[] | null | undefined;
4237
+ packageSizeId?: number | null | undefined;
4238
+ sizeId?: number | null | undefined;
4239
+ labels?: {
4240
+ itemId: string | number;
4241
+ labelId: string | number;
4242
+ label?: {
4243
+ id: string | number;
4244
+ createdAt: Date;
4245
+ name: string;
4246
+ isUserLabel: boolean;
4247
+ itemCount?: number | null | undefined;
4248
+ userId?: string | number | null | undefined;
4249
+ } | null | undefined;
4250
+ }[] | null | undefined;
4251
+ state?: number | null | undefined;
4252
+ fees?: {
4253
+ value: number;
4254
+ type: string;
4255
+ id: string | number;
4256
+ userId: string | number;
4257
+ createdAt: Date;
4258
+ name: string;
4259
+ recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
4260
+ startDate: Date;
4261
+ active: boolean;
4262
+ updatedAt: Date;
4263
+ description?: string | null | undefined;
4264
+ endDate?: Date | null | undefined;
4265
+ itemId?: string | number | null | undefined;
4266
+ parentFeeId?: string | number | null | undefined;
4267
+ }[] | null | undefined;
4268
+ categoryId?: number | null | undefined;
4269
+ brandId?: string | number | null | undefined;
1857
4270
  files?: {
1858
4271
  fileId: string;
1859
- messageId: string;
4272
+ itemId: string | number;
1860
4273
  file?: {
1861
4274
  path: string;
1862
4275
  id: string;
@@ -1866,27 +4279,286 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
1866
4279
  } | null | undefined;
1867
4280
  index?: number | null | undefined;
1868
4281
  }[] | null | undefined;
1869
- conversationUserId?: string | null | undefined;
1870
- platformMessageId?: string | null | undefined;
1871
- statusHistory?: {
1872
- status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
4282
+ sex?: string | null | undefined;
4283
+ purchasePrice?: number | null | undefined;
4284
+ purchaseDate?: Date | null | undefined;
4285
+ purchasePlaceId?: string | number | null | undefined;
4286
+ purchased?: boolean | null | undefined;
4287
+ sellingPrice?: number | null | undefined;
4288
+ sellingDate?: Date | null | undefined;
4289
+ sellingPlaceId?: string | number | null | undefined;
4290
+ estimatedPrice?: number | null | undefined;
4291
+ feesSum?: number | null | undefined;
4292
+ customer?: {
4293
+ email: string;
4294
+ id: string | number;
4295
+ userId: string | number;
4296
+ firstName: string;
4297
+ lastName: string;
4298
+ birthDate: Date;
4299
+ idNumber: string;
4300
+ phone: string;
4301
+ iban: string;
4302
+ bic: string;
4303
+ phoneVerified: boolean;
4304
+ } | null | undefined;
4305
+ customerType?: string | null | undefined;
4306
+ customerPaid?: boolean | null | undefined;
4307
+ customerPaidDate?: Date | null | undefined;
4308
+ customerPaidType?: string | null | undefined;
4309
+ contractId?: string | number | null | undefined;
4310
+ fields?: {
4311
+ value: string;
4312
+ itemId: string | number;
4313
+ fieldId: string | number;
4314
+ }[] | null | undefined;
4315
+ lastHistory?: {
4316
+ type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
1873
4317
  id: string;
1874
4318
  createdAt: Date;
1875
- messageId: string;
1876
- }[] | null | undefined;
1877
- associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "PHOTO_ADDING" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | "TEMPLATE" | null | undefined;
1878
- translation?: {
1879
- messageId: string;
1880
- body: string;
1881
- lang: string;
4319
+ itemId: string | number;
4320
+ data?: {
4321
+ type: "BUYER_PAID";
4322
+ data: {
4323
+ soldAccountId: string;
4324
+ soldOrderId: string;
4325
+ soldConversationId?: string | null | undefined;
4326
+ };
4327
+ } | {
4328
+ type: "DELIVERED";
4329
+ data: {
4330
+ soldAccountId: string;
4331
+ soldOrderId: string;
4332
+ soldConversationId?: string | null | undefined;
4333
+ };
4334
+ } | {
4335
+ type: "EMPTY";
4336
+ } | {
4337
+ type: "FAILED_TO_PUBLISH";
4338
+ data: {
4339
+ platform: "VINTED" | "SHOPIFY";
4340
+ accountId?: string | null | undefined;
4341
+ reason?: string | null | undefined;
4342
+ };
4343
+ } | {
4344
+ type: "REPUBLISHING";
4345
+ data: {
4346
+ platform: "VINTED" | "SHOPIFY";
4347
+ };
4348
+ } | {
4349
+ type: "SCHEDULED";
4350
+ data: {
4351
+ platform: "VINTED" | "SHOPIFY";
4352
+ publishingDate?: Date | null | undefined;
4353
+ };
4354
+ } | null | undefined;
1882
4355
  } | null | undefined;
1883
- }[];
4356
+ platforms?: {
4357
+ status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
4358
+ id: string;
4359
+ itemId: string | number;
4360
+ accountId: string;
4361
+ platformId: string;
4362
+ platformUrl: string;
4363
+ platformPrice: number;
4364
+ account?: {
4365
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR";
4366
+ userId: string | number;
4367
+ name: string;
4368
+ platform: "VINTED" | "SHOPIFY";
4369
+ accountId: string;
4370
+ night?: {
4371
+ startsAt: Date;
4372
+ endsAt: Date;
4373
+ } | null | undefined;
4374
+ locale?: string | null | undefined;
4375
+ } | null | undefined;
4376
+ }[] | null | undefined;
4377
+ };
4378
+ deleted?: boolean | null | undefined;
1884
4379
  }>, z.ZodObject<{
1885
- type: z.ZodLiteral<"EMPTY">;
4380
+ orderLabel: z.ZodObject<{
4381
+ id: z.ZodString;
4382
+ orderId: z.ZodString;
4383
+ fileId: z.ZodString;
4384
+ nonCroppedFileId: z.ZodString;
4385
+ originalFileId: z.ZodString;
4386
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4387
+ id: z.ZodString;
4388
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
4389
+ path: z.ZodString;
4390
+ signedUrl: z.ZodString;
4391
+ createdAt: z.ZodDate;
4392
+ }, "strip", z.ZodTypeAny, {
4393
+ path: string;
4394
+ id: string;
4395
+ userId: string | number;
4396
+ signedUrl: string;
4397
+ createdAt: Date;
4398
+ }, {
4399
+ path: string;
4400
+ id: string;
4401
+ userId: string | number;
4402
+ signedUrl: string;
4403
+ createdAt: Date;
4404
+ }>>>;
4405
+ nonCroppedFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4406
+ id: z.ZodString;
4407
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
4408
+ path: z.ZodString;
4409
+ signedUrl: z.ZodString;
4410
+ createdAt: z.ZodDate;
4411
+ }, "strip", z.ZodTypeAny, {
4412
+ path: string;
4413
+ id: string;
4414
+ userId: string | number;
4415
+ signedUrl: string;
4416
+ createdAt: Date;
4417
+ }, {
4418
+ path: string;
4419
+ id: string;
4420
+ userId: string | number;
4421
+ signedUrl: string;
4422
+ createdAt: Date;
4423
+ }>>>;
4424
+ originalFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4425
+ id: z.ZodString;
4426
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
4427
+ path: z.ZodString;
4428
+ signedUrl: z.ZodString;
4429
+ createdAt: z.ZodDate;
4430
+ }, "strip", z.ZodTypeAny, {
4431
+ path: string;
4432
+ id: string;
4433
+ userId: string | number;
4434
+ signedUrl: string;
4435
+ createdAt: Date;
4436
+ }, {
4437
+ path: string;
4438
+ id: string;
4439
+ userId: string | number;
4440
+ signedUrl: string;
4441
+ createdAt: Date;
4442
+ }>>>;
4443
+ }, "strip", z.ZodTypeAny, {
4444
+ id: string;
4445
+ fileId: string;
4446
+ orderId: string;
4447
+ nonCroppedFileId: string;
4448
+ originalFileId: string;
4449
+ file?: {
4450
+ path: string;
4451
+ id: string;
4452
+ userId: string | number;
4453
+ signedUrl: string;
4454
+ createdAt: Date;
4455
+ } | null | undefined;
4456
+ originalFile?: {
4457
+ path: string;
4458
+ id: string;
4459
+ userId: string | number;
4460
+ signedUrl: string;
4461
+ createdAt: Date;
4462
+ } | null | undefined;
4463
+ nonCroppedFile?: {
4464
+ path: string;
4465
+ id: string;
4466
+ userId: string | number;
4467
+ signedUrl: string;
4468
+ createdAt: Date;
4469
+ } | null | undefined;
4470
+ }, {
4471
+ id: string;
4472
+ fileId: string;
4473
+ orderId: string;
4474
+ nonCroppedFileId: string;
4475
+ originalFileId: string;
4476
+ file?: {
4477
+ path: string;
4478
+ id: string;
4479
+ userId: string | number;
4480
+ signedUrl: string;
4481
+ createdAt: Date;
4482
+ } | null | undefined;
4483
+ originalFile?: {
4484
+ path: string;
4485
+ id: string;
4486
+ userId: string | number;
4487
+ signedUrl: string;
4488
+ createdAt: Date;
4489
+ } | null | undefined;
4490
+ nonCroppedFile?: {
4491
+ path: string;
4492
+ id: string;
4493
+ userId: string | number;
4494
+ signedUrl: string;
4495
+ createdAt: Date;
4496
+ } | null | undefined;
4497
+ }>;
4498
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4499
+ type: z.ZodLiteral<"ORDER_LABEL">;
1886
4500
  }, "strip", z.ZodTypeAny, {
1887
- type: "EMPTY";
4501
+ type: "ORDER_LABEL";
4502
+ orderLabel: {
4503
+ id: string;
4504
+ fileId: string;
4505
+ orderId: string;
4506
+ nonCroppedFileId: string;
4507
+ originalFileId: string;
4508
+ file?: {
4509
+ path: string;
4510
+ id: string;
4511
+ userId: string | number;
4512
+ signedUrl: string;
4513
+ createdAt: Date;
4514
+ } | null | undefined;
4515
+ originalFile?: {
4516
+ path: string;
4517
+ id: string;
4518
+ userId: string | number;
4519
+ signedUrl: string;
4520
+ createdAt: Date;
4521
+ } | null | undefined;
4522
+ nonCroppedFile?: {
4523
+ path: string;
4524
+ id: string;
4525
+ userId: string | number;
4526
+ signedUrl: string;
4527
+ createdAt: Date;
4528
+ } | null | undefined;
4529
+ };
4530
+ deleted?: boolean | null | undefined;
1888
4531
  }, {
1889
- type: "EMPTY";
4532
+ type: "ORDER_LABEL";
4533
+ orderLabel: {
4534
+ id: string;
4535
+ fileId: string;
4536
+ orderId: string;
4537
+ nonCroppedFileId: string;
4538
+ originalFileId: string;
4539
+ file?: {
4540
+ path: string;
4541
+ id: string;
4542
+ userId: string | number;
4543
+ signedUrl: string;
4544
+ createdAt: Date;
4545
+ } | null | undefined;
4546
+ originalFile?: {
4547
+ path: string;
4548
+ id: string;
4549
+ userId: string | number;
4550
+ signedUrl: string;
4551
+ createdAt: Date;
4552
+ } | null | undefined;
4553
+ nonCroppedFile?: {
4554
+ path: string;
4555
+ id: string;
4556
+ userId: string | number;
4557
+ signedUrl: string;
4558
+ createdAt: Date;
4559
+ } | null | undefined;
4560
+ };
4561
+ deleted?: boolean | null | undefined;
1890
4562
  }>, z.ZodObject<{
1891
4563
  accountId: z.ZodString;
1892
4564
  otp: z.ZodString;
@@ -1908,6 +4580,18 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
1908
4580
  }, {
1909
4581
  type: "RECONNECT";
1910
4582
  accountId: string;
4583
+ }>, z.ZodObject<{
4584
+ value: z.ZodUnknown;
4585
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4586
+ type: z.ZodLiteral<"RESOURCE">;
4587
+ }, "strip", z.ZodTypeAny, {
4588
+ type: "RESOURCE";
4589
+ value?: unknown;
4590
+ deleted?: boolean | null | undefined;
4591
+ }, {
4592
+ type: "RESOURCE";
4593
+ value?: unknown;
4594
+ deleted?: boolean | null | undefined;
1911
4595
  }>, z.ZodObject<{
1912
4596
  accountId: z.ZodString;
1913
4597
  data: z.ZodObject<{