controlresell 2.7.7 → 2.8.3
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.
- package/package.json +4 -5
- package/src/com/controlresell/models/catalogs/Catalog.d.ts +3 -0
- package/src/com/controlresell/models/catalogs/Catalog.d.ts.map +1 -1
- package/src/com/controlresell/models/catalogs/Catalog.js +2 -1
- package/src/com/controlresell/models/catalogs/Catalog.js.map +1 -1
- package/src/com/controlresell/models/catalogs/Catalog.ts +2 -1
- package/src/com/controlresell/models/catalogs/CatalogRoot.d.ts +5 -0
- package/src/com/controlresell/models/catalogs/CatalogRoot.d.ts.map +1 -1
- package/src/com/controlresell/models/filters/SavedFilters.d.ts +5 -5
- package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts +5 -5
- package/src/com/controlresell/models/orders/FetchOrdersRequest.d.ts +53 -0
- package/src/com/controlresell/models/orders/FetchOrdersRequest.d.ts.map +1 -0
- package/src/com/controlresell/models/orders/FetchOrdersRequest.js +10 -0
- package/src/com/controlresell/models/orders/FetchOrdersRequest.js.map +1 -0
- package/src/com/controlresell/models/orders/FetchOrdersRequest.ts +8 -0
- package/src/com/controlresell/models/orders/FetchOrdersResponse.d.ts +50 -0
- package/src/com/controlresell/models/orders/FetchOrdersResponse.d.ts.map +1 -0
- package/src/com/controlresell/models/orders/FetchOrdersResponse.js +9 -0
- package/src/com/controlresell/models/orders/FetchOrdersResponse.js.map +1 -0
- package/src/com/controlresell/models/orders/FetchOrdersResponse.ts +7 -0
- package/src/com/controlresell/models/platforms/orders/Order.d.ts +6 -6
- package/src/com/controlresell/models/platforms/orders/OrderLabelUpdate.d.ts +187 -0
- package/src/com/controlresell/models/platforms/orders/OrderLabelUpdate.d.ts.map +1 -0
- package/src/com/controlresell/models/platforms/orders/OrderLabelUpdate.js +12 -0
- package/src/com/controlresell/models/platforms/orders/OrderLabelUpdate.js.map +1 -0
- package/src/com/controlresell/models/platforms/orders/OrderLabelUpdate.ts +10 -0
- package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts +37 -37
- package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +4 -4
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +29 -29
- package/src/com/controlresell/models/users/ws/ResourceUpdate.d.ts +495 -0
- package/src/com/controlresell/models/users/ws/ResourceUpdate.d.ts.map +1 -0
- package/src/com/controlresell/models/users/ws/ResourceUpdate.js +12 -0
- package/src/com/controlresell/models/users/ws/ResourceUpdate.js.map +1 -0
- package/src/com/controlresell/models/users/ws/ResourceUpdate.ts +10 -0
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +3997 -355
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts.map +1 -1
- package/src/com/controlresell/models/users/ws/UserWsPayload.js +22 -1
- package/src/com/controlresell/models/users/ws/UserWsPayload.js.map +1 -1
- package/src/com/controlresell/models/users/ws/UserWsPayload.ts +27 -0
- package/src/com/controlresell/models/users/ws/UserWsResourcePayload.d.ts +674 -0
- package/src/com/controlresell/models/users/ws/UserWsResourcePayload.d.ts.map +1 -0
- package/src/com/controlresell/models/users/ws/UserWsResourcePayload.js +67 -0
- package/src/com/controlresell/models/users/ws/UserWsResourcePayload.js.map +1 -0
- package/src/com/controlresell/models/users/ws/UserWsResourcePayload.ts +85 -0
- package/src/index.d.ts +5 -0
- package/src/index.d.ts.map +1 -1
- package/src/index.js +12 -2
- package/src/index.js.map +1 -1
- package/src/index.ts +5 -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,499 @@ 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.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2274
|
+
brand: z.ZodObject<{
|
|
2275
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2276
|
+
name: z.ZodString;
|
|
2277
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
2278
|
+
createdAt: z.ZodDate;
|
|
2279
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2280
|
+
}, "strip", z.ZodTypeAny, {
|
|
2281
|
+
id: string | number;
|
|
2282
|
+
createdAt: Date;
|
|
2283
|
+
name: string;
|
|
2284
|
+
itemCount?: number | null | undefined;
|
|
2285
|
+
userId?: string | number | null | undefined;
|
|
2286
|
+
}, {
|
|
2287
|
+
id: string | number;
|
|
2288
|
+
createdAt: Date;
|
|
2289
|
+
name: string;
|
|
2290
|
+
itemCount?: number | null | undefined;
|
|
2291
|
+
userId?: string | number | null | undefined;
|
|
2292
|
+
}>;
|
|
2293
|
+
type: z.ZodLiteral<"BRAND">;
|
|
2294
|
+
}, "strip", z.ZodTypeAny, {
|
|
2295
|
+
type: "BRAND";
|
|
2296
|
+
brand: {
|
|
2297
|
+
id: string | number;
|
|
2298
|
+
createdAt: Date;
|
|
2299
|
+
name: string;
|
|
2300
|
+
itemCount?: number | null | undefined;
|
|
2301
|
+
userId?: string | number | null | undefined;
|
|
2302
|
+
};
|
|
2303
|
+
}, {
|
|
2304
|
+
type: "BRAND";
|
|
2305
|
+
brand: {
|
|
2306
|
+
id: string | number;
|
|
2307
|
+
createdAt: Date;
|
|
2308
|
+
name: string;
|
|
2309
|
+
itemCount?: number | null | undefined;
|
|
2310
|
+
userId?: string | number | null | undefined;
|
|
2311
|
+
};
|
|
2312
|
+
}>, z.ZodObject<{
|
|
2313
|
+
catalog: z.ZodObject<{
|
|
2314
|
+
id: z.ZodNumber;
|
|
2315
|
+
multipleSizeGroupIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
2316
|
+
title: z.ZodString;
|
|
2317
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2318
|
+
}, "strip", z.ZodTypeAny, {
|
|
2319
|
+
id: number;
|
|
2320
|
+
title: string;
|
|
2321
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
2322
|
+
itemCount?: number | null | undefined;
|
|
2323
|
+
}, {
|
|
2324
|
+
id: number;
|
|
2325
|
+
title: string;
|
|
2326
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
2327
|
+
itemCount?: number | null | undefined;
|
|
2328
|
+
}>;
|
|
2329
|
+
type: z.ZodLiteral<"CATALOG">;
|
|
2330
|
+
}, "strip", z.ZodTypeAny, {
|
|
2331
|
+
type: "CATALOG";
|
|
2332
|
+
catalog: {
|
|
2333
|
+
id: number;
|
|
2334
|
+
title: string;
|
|
2335
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
2336
|
+
itemCount?: number | null | undefined;
|
|
2337
|
+
};
|
|
2338
|
+
}, {
|
|
2339
|
+
type: "CATALOG";
|
|
2340
|
+
catalog: {
|
|
2341
|
+
id: number;
|
|
2342
|
+
title: string;
|
|
2343
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
2344
|
+
itemCount?: number | null | undefined;
|
|
2345
|
+
};
|
|
2346
|
+
}>, z.ZodObject<{
|
|
2347
|
+
color: z.ZodObject<{
|
|
2348
|
+
id: z.ZodNumber;
|
|
2349
|
+
title: z.ZodString;
|
|
2350
|
+
}, "strip", z.ZodTypeAny, {
|
|
2351
|
+
id: number;
|
|
2352
|
+
title: string;
|
|
2353
|
+
}, {
|
|
2354
|
+
id: number;
|
|
2355
|
+
title: string;
|
|
2356
|
+
}>;
|
|
2357
|
+
type: z.ZodLiteral<"COLOR">;
|
|
2358
|
+
}, "strip", z.ZodTypeAny, {
|
|
2359
|
+
type: "COLOR";
|
|
2360
|
+
color: {
|
|
2361
|
+
id: number;
|
|
2362
|
+
title: string;
|
|
2363
|
+
};
|
|
2364
|
+
}, {
|
|
2365
|
+
type: "COLOR";
|
|
2366
|
+
color: {
|
|
2367
|
+
id: number;
|
|
2368
|
+
title: string;
|
|
2369
|
+
};
|
|
2370
|
+
}>, z.ZodObject<{
|
|
2371
|
+
favorite: z.ZodObject<{
|
|
2372
|
+
resourceId: z.ZodNumber;
|
|
2373
|
+
type: z.ZodEnum<["BRAND", "CATALOG", "PURCHASE_PRICE", "ESTIMATED_PRICE", "PURCHASE_PLACE", "SELLING_PLACE", "SIZE", "COLOR", "PACKAGE_SIZE", "CONDITION"]>;
|
|
2374
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2375
|
+
userId: z.ZodNumber;
|
|
2376
|
+
isSuggestion: z.ZodBoolean;
|
|
2377
|
+
}, "strip", z.ZodTypeAny, {
|
|
2378
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
2379
|
+
userId: number;
|
|
2380
|
+
resourceId: number;
|
|
2381
|
+
isSuggestion: boolean;
|
|
2382
|
+
value?: number | null | undefined;
|
|
2383
|
+
}, {
|
|
2384
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
2385
|
+
userId: number;
|
|
2386
|
+
resourceId: number;
|
|
2387
|
+
isSuggestion: boolean;
|
|
2388
|
+
value?: number | null | undefined;
|
|
2389
|
+
}>;
|
|
2390
|
+
type: z.ZodLiteral<"FAVORITE">;
|
|
2391
|
+
}, "strip", z.ZodTypeAny, {
|
|
2392
|
+
type: "FAVORITE";
|
|
2393
|
+
favorite: {
|
|
2394
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
2395
|
+
userId: number;
|
|
2396
|
+
resourceId: number;
|
|
2397
|
+
isSuggestion: boolean;
|
|
2398
|
+
value?: number | null | undefined;
|
|
2399
|
+
};
|
|
2400
|
+
}, {
|
|
2401
|
+
type: "FAVORITE";
|
|
2402
|
+
favorite: {
|
|
2403
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
2404
|
+
userId: number;
|
|
2405
|
+
resourceId: number;
|
|
2406
|
+
isSuggestion: boolean;
|
|
2407
|
+
value?: number | null | undefined;
|
|
2408
|
+
};
|
|
2409
|
+
}>, z.ZodObject<{
|
|
2410
|
+
historyType: z.ZodObject<{
|
|
2411
|
+
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"]>;
|
|
2412
|
+
count: z.ZodNumber;
|
|
2413
|
+
}, "strip", z.ZodTypeAny, {
|
|
2414
|
+
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";
|
|
2415
|
+
count: number;
|
|
2416
|
+
}, {
|
|
2417
|
+
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";
|
|
2418
|
+
count: number;
|
|
2419
|
+
}>;
|
|
2420
|
+
type: z.ZodLiteral<"HISTORY_TYPE">;
|
|
2421
|
+
}, "strip", z.ZodTypeAny, {
|
|
2422
|
+
type: "HISTORY_TYPE";
|
|
2423
|
+
historyType: {
|
|
2424
|
+
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";
|
|
2425
|
+
count: number;
|
|
2426
|
+
};
|
|
2427
|
+
}, {
|
|
2428
|
+
type: "HISTORY_TYPE";
|
|
2429
|
+
historyType: {
|
|
2430
|
+
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";
|
|
2431
|
+
count: number;
|
|
2432
|
+
};
|
|
2433
|
+
}>, z.ZodObject<{
|
|
2434
|
+
label: z.ZodObject<{
|
|
2435
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2436
|
+
name: z.ZodString;
|
|
2437
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
2438
|
+
isUserLabel: z.ZodBoolean;
|
|
2439
|
+
createdAt: z.ZodDate;
|
|
2440
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2441
|
+
}, "strip", z.ZodTypeAny, {
|
|
2442
|
+
id: string | number;
|
|
2443
|
+
createdAt: Date;
|
|
2444
|
+
name: string;
|
|
2445
|
+
isUserLabel: boolean;
|
|
2446
|
+
itemCount?: number | null | undefined;
|
|
2447
|
+
userId?: string | number | null | undefined;
|
|
2448
|
+
}, {
|
|
2449
|
+
id: string | number;
|
|
2450
|
+
createdAt: Date;
|
|
2451
|
+
name: string;
|
|
2452
|
+
isUserLabel: boolean;
|
|
2453
|
+
itemCount?: number | null | undefined;
|
|
2454
|
+
userId?: string | number | null | undefined;
|
|
2455
|
+
}>;
|
|
2456
|
+
type: z.ZodLiteral<"LABEL">;
|
|
2457
|
+
}, "strip", z.ZodTypeAny, {
|
|
2458
|
+
type: "LABEL";
|
|
2459
|
+
label: {
|
|
2460
|
+
id: string | number;
|
|
2461
|
+
createdAt: Date;
|
|
2462
|
+
name: string;
|
|
2463
|
+
isUserLabel: boolean;
|
|
2464
|
+
itemCount?: number | null | undefined;
|
|
2465
|
+
userId?: string | number | null | undefined;
|
|
2466
|
+
};
|
|
2467
|
+
}, {
|
|
2468
|
+
type: "LABEL";
|
|
2469
|
+
label: {
|
|
2470
|
+
id: string | number;
|
|
2471
|
+
createdAt: Date;
|
|
2472
|
+
name: string;
|
|
2473
|
+
isUserLabel: boolean;
|
|
2474
|
+
itemCount?: number | null | undefined;
|
|
2475
|
+
userId?: string | number | null | undefined;
|
|
2476
|
+
};
|
|
2477
|
+
}>, z.ZodObject<{
|
|
2478
|
+
packageSize: z.ZodObject<{
|
|
2479
|
+
id: z.ZodNumber;
|
|
2480
|
+
title: z.ZodString;
|
|
2481
|
+
weightDescription: z.ZodString;
|
|
2482
|
+
}, "strip", z.ZodTypeAny, {
|
|
2483
|
+
id: number;
|
|
2484
|
+
title: string;
|
|
2485
|
+
weightDescription: string;
|
|
2486
|
+
}, {
|
|
2487
|
+
id: number;
|
|
2488
|
+
title: string;
|
|
2489
|
+
weightDescription: string;
|
|
2490
|
+
}>;
|
|
2491
|
+
type: z.ZodLiteral<"PACKAGE_SIZE">;
|
|
2492
|
+
}, "strip", z.ZodTypeAny, {
|
|
2493
|
+
type: "PACKAGE_SIZE";
|
|
2494
|
+
packageSize: {
|
|
2495
|
+
id: number;
|
|
2496
|
+
title: string;
|
|
2497
|
+
weightDescription: string;
|
|
2498
|
+
};
|
|
2499
|
+
}, {
|
|
2500
|
+
type: "PACKAGE_SIZE";
|
|
2501
|
+
packageSize: {
|
|
2502
|
+
id: number;
|
|
2503
|
+
title: string;
|
|
2504
|
+
weightDescription: string;
|
|
2505
|
+
};
|
|
2506
|
+
}>, z.ZodObject<{
|
|
2507
|
+
place: z.ZodObject<{
|
|
2508
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2509
|
+
name: z.ZodString;
|
|
2510
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
2511
|
+
createdAt: z.ZodDate;
|
|
2512
|
+
}, "strip", z.ZodTypeAny, {
|
|
2513
|
+
id: string | number;
|
|
2514
|
+
createdAt: Date;
|
|
2515
|
+
name: string;
|
|
2516
|
+
userId?: string | number | null | undefined;
|
|
2517
|
+
}, {
|
|
2518
|
+
id: string | number;
|
|
2519
|
+
createdAt: Date;
|
|
2520
|
+
name: string;
|
|
2521
|
+
userId?: string | number | null | undefined;
|
|
2522
|
+
}>;
|
|
2523
|
+
type: z.ZodLiteral<"PLACE">;
|
|
2524
|
+
}, "strip", z.ZodTypeAny, {
|
|
2525
|
+
type: "PLACE";
|
|
2526
|
+
place: {
|
|
2527
|
+
id: string | number;
|
|
2528
|
+
createdAt: Date;
|
|
2529
|
+
name: string;
|
|
2530
|
+
userId?: string | number | null | undefined;
|
|
2531
|
+
};
|
|
2532
|
+
}, {
|
|
2533
|
+
type: "PLACE";
|
|
2534
|
+
place: {
|
|
2535
|
+
id: string | number;
|
|
2536
|
+
createdAt: Date;
|
|
2537
|
+
name: string;
|
|
2538
|
+
userId?: string | number | null | undefined;
|
|
2539
|
+
};
|
|
2540
|
+
}>, z.ZodObject<{
|
|
2541
|
+
size: z.ZodObject<{
|
|
2542
|
+
id: z.ZodNumber;
|
|
2543
|
+
title: z.ZodString;
|
|
2544
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2545
|
+
}, "strip", z.ZodTypeAny, {
|
|
2546
|
+
id: number;
|
|
2547
|
+
title: string;
|
|
2548
|
+
itemCount?: number | null | undefined;
|
|
2549
|
+
}, {
|
|
2550
|
+
id: number;
|
|
2551
|
+
title: string;
|
|
2552
|
+
itemCount?: number | null | undefined;
|
|
2553
|
+
}>;
|
|
2554
|
+
type: z.ZodLiteral<"SIZE">;
|
|
2555
|
+
}, "strip", z.ZodTypeAny, {
|
|
2556
|
+
type: "SIZE";
|
|
2557
|
+
size: {
|
|
2558
|
+
id: number;
|
|
2559
|
+
title: string;
|
|
2560
|
+
itemCount?: number | null | undefined;
|
|
2561
|
+
};
|
|
2562
|
+
}, {
|
|
2563
|
+
type: "SIZE";
|
|
2564
|
+
size: {
|
|
2565
|
+
id: number;
|
|
2566
|
+
title: string;
|
|
2567
|
+
itemCount?: number | null | undefined;
|
|
2568
|
+
};
|
|
2569
|
+
}>, z.ZodObject<{
|
|
2570
|
+
status: z.ZodObject<{
|
|
2571
|
+
id: z.ZodNumber;
|
|
2572
|
+
title: z.ZodString;
|
|
2573
|
+
description: z.ZodString;
|
|
2574
|
+
}, "strip", z.ZodTypeAny, {
|
|
2575
|
+
id: number;
|
|
2576
|
+
title: string;
|
|
2577
|
+
description: string;
|
|
2578
|
+
}, {
|
|
2579
|
+
id: number;
|
|
2580
|
+
title: string;
|
|
2581
|
+
description: string;
|
|
2582
|
+
}>;
|
|
2583
|
+
type: z.ZodLiteral<"STATUS">;
|
|
2584
|
+
}, "strip", z.ZodTypeAny, {
|
|
2585
|
+
type: "STATUS";
|
|
2586
|
+
status: {
|
|
2587
|
+
id: number;
|
|
2588
|
+
title: string;
|
|
2589
|
+
description: string;
|
|
2590
|
+
};
|
|
2591
|
+
}, {
|
|
2592
|
+
type: "STATUS";
|
|
2593
|
+
status: {
|
|
2594
|
+
id: number;
|
|
2595
|
+
title: string;
|
|
2596
|
+
description: string;
|
|
2597
|
+
};
|
|
2598
|
+
}>]>;
|
|
2599
|
+
deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2600
|
+
type: z.ZodLiteral<"RESOURCE">;
|
|
2601
|
+
}, "strip", z.ZodTypeAny, {
|
|
2602
|
+
value: {
|
|
2603
|
+
type: "BRAND";
|
|
2604
|
+
brand: {
|
|
2605
|
+
id: string | number;
|
|
2606
|
+
createdAt: Date;
|
|
2607
|
+
name: string;
|
|
2608
|
+
itemCount?: number | null | undefined;
|
|
2609
|
+
userId?: string | number | null | undefined;
|
|
2610
|
+
};
|
|
2611
|
+
} | {
|
|
2612
|
+
type: "CATALOG";
|
|
2613
|
+
catalog: {
|
|
2614
|
+
id: number;
|
|
2615
|
+
title: string;
|
|
2616
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
2617
|
+
itemCount?: number | null | undefined;
|
|
2618
|
+
};
|
|
2619
|
+
} | {
|
|
2620
|
+
type: "COLOR";
|
|
2621
|
+
color: {
|
|
2622
|
+
id: number;
|
|
2623
|
+
title: string;
|
|
2624
|
+
};
|
|
2625
|
+
} | {
|
|
2626
|
+
type: "FAVORITE";
|
|
2627
|
+
favorite: {
|
|
2628
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
2629
|
+
userId: number;
|
|
2630
|
+
resourceId: number;
|
|
2631
|
+
isSuggestion: boolean;
|
|
2632
|
+
value?: number | null | undefined;
|
|
2633
|
+
};
|
|
2634
|
+
} | {
|
|
2635
|
+
type: "HISTORY_TYPE";
|
|
2636
|
+
historyType: {
|
|
2637
|
+
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";
|
|
2638
|
+
count: number;
|
|
2639
|
+
};
|
|
2640
|
+
} | {
|
|
2641
|
+
type: "LABEL";
|
|
2642
|
+
label: {
|
|
2643
|
+
id: string | number;
|
|
2644
|
+
createdAt: Date;
|
|
2645
|
+
name: string;
|
|
2646
|
+
isUserLabel: boolean;
|
|
2647
|
+
itemCount?: number | null | undefined;
|
|
2648
|
+
userId?: string | number | null | undefined;
|
|
2649
|
+
};
|
|
2650
|
+
} | {
|
|
2651
|
+
type: "PACKAGE_SIZE";
|
|
2652
|
+
packageSize: {
|
|
2653
|
+
id: number;
|
|
2654
|
+
title: string;
|
|
2655
|
+
weightDescription: string;
|
|
2656
|
+
};
|
|
2657
|
+
} | {
|
|
2658
|
+
type: "PLACE";
|
|
2659
|
+
place: {
|
|
2660
|
+
id: string | number;
|
|
2661
|
+
createdAt: Date;
|
|
2662
|
+
name: string;
|
|
2663
|
+
userId?: string | number | null | undefined;
|
|
2664
|
+
};
|
|
2665
|
+
} | {
|
|
2666
|
+
type: "SIZE";
|
|
2667
|
+
size: {
|
|
2668
|
+
id: number;
|
|
2669
|
+
title: string;
|
|
2670
|
+
itemCount?: number | null | undefined;
|
|
2671
|
+
};
|
|
2672
|
+
} | {
|
|
2673
|
+
type: "STATUS";
|
|
2674
|
+
status: {
|
|
2675
|
+
id: number;
|
|
2676
|
+
title: string;
|
|
2677
|
+
description: string;
|
|
2678
|
+
};
|
|
2679
|
+
};
|
|
2680
|
+
type: "RESOURCE";
|
|
2681
|
+
deleted?: boolean | null | undefined;
|
|
2682
|
+
}, {
|
|
2683
|
+
value: {
|
|
2684
|
+
type: "BRAND";
|
|
2685
|
+
brand: {
|
|
2686
|
+
id: string | number;
|
|
2687
|
+
createdAt: Date;
|
|
2688
|
+
name: string;
|
|
2689
|
+
itemCount?: number | null | undefined;
|
|
2690
|
+
userId?: string | number | null | undefined;
|
|
2691
|
+
};
|
|
2692
|
+
} | {
|
|
2693
|
+
type: "CATALOG";
|
|
2694
|
+
catalog: {
|
|
2695
|
+
id: number;
|
|
2696
|
+
title: string;
|
|
2697
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
2698
|
+
itemCount?: number | null | undefined;
|
|
2699
|
+
};
|
|
2700
|
+
} | {
|
|
2701
|
+
type: "COLOR";
|
|
2702
|
+
color: {
|
|
2703
|
+
id: number;
|
|
2704
|
+
title: string;
|
|
2705
|
+
};
|
|
2706
|
+
} | {
|
|
2707
|
+
type: "FAVORITE";
|
|
2708
|
+
favorite: {
|
|
2709
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
2710
|
+
userId: number;
|
|
2711
|
+
resourceId: number;
|
|
2712
|
+
isSuggestion: boolean;
|
|
2713
|
+
value?: number | null | undefined;
|
|
2714
|
+
};
|
|
2715
|
+
} | {
|
|
2716
|
+
type: "HISTORY_TYPE";
|
|
2717
|
+
historyType: {
|
|
2718
|
+
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";
|
|
2719
|
+
count: number;
|
|
2720
|
+
};
|
|
2721
|
+
} | {
|
|
2722
|
+
type: "LABEL";
|
|
2723
|
+
label: {
|
|
2724
|
+
id: string | number;
|
|
2725
|
+
createdAt: Date;
|
|
2726
|
+
name: string;
|
|
2727
|
+
isUserLabel: boolean;
|
|
2728
|
+
itemCount?: number | null | undefined;
|
|
2729
|
+
userId?: string | number | null | undefined;
|
|
2730
|
+
};
|
|
2731
|
+
} | {
|
|
2732
|
+
type: "PACKAGE_SIZE";
|
|
2733
|
+
packageSize: {
|
|
2734
|
+
id: number;
|
|
2735
|
+
title: string;
|
|
2736
|
+
weightDescription: string;
|
|
2737
|
+
};
|
|
2738
|
+
} | {
|
|
2739
|
+
type: "PLACE";
|
|
2740
|
+
place: {
|
|
2741
|
+
id: string | number;
|
|
2742
|
+
createdAt: Date;
|
|
2743
|
+
name: string;
|
|
2744
|
+
userId?: string | number | null | undefined;
|
|
2745
|
+
};
|
|
2746
|
+
} | {
|
|
2747
|
+
type: "SIZE";
|
|
2748
|
+
size: {
|
|
2749
|
+
id: number;
|
|
2750
|
+
title: string;
|
|
2751
|
+
itemCount?: number | null | undefined;
|
|
2752
|
+
};
|
|
2753
|
+
} | {
|
|
2754
|
+
type: "STATUS";
|
|
2755
|
+
status: {
|
|
2756
|
+
id: number;
|
|
2757
|
+
title: string;
|
|
2758
|
+
description: string;
|
|
2759
|
+
};
|
|
2760
|
+
};
|
|
2761
|
+
type: "RESOURCE";
|
|
2762
|
+
deleted?: boolean | null | undefined;
|
|
2763
|
+
}>;
|
|
2764
|
+
export type UserWsPayloadResourceUpdated = z.infer<typeof UserWsPayloadResourceUpdatedSchema>;
|
|
941
2765
|
export declare const UserWsPayloadUserOnPlatformSessionSchema: z.ZodObject<{
|
|
942
2766
|
accountId: z.ZodString;
|
|
943
2767
|
data: z.ZodObject<{
|
|
@@ -1175,7 +2999,224 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1175
2999
|
body: string;
|
|
1176
3000
|
lang: string;
|
|
1177
3001
|
} | null | undefined;
|
|
1178
|
-
}, {
|
|
3002
|
+
}, {
|
|
3003
|
+
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
3004
|
+
status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
3005
|
+
id: string;
|
|
3006
|
+
createdAt: Date;
|
|
3007
|
+
conversationId: string;
|
|
3008
|
+
body?: string | null | undefined;
|
|
3009
|
+
offer?: {
|
|
3010
|
+
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
|
|
3011
|
+
id: string;
|
|
3012
|
+
price: number;
|
|
3013
|
+
messageId: string;
|
|
3014
|
+
originalPrice: number;
|
|
3015
|
+
transactionId?: string | null | undefined;
|
|
3016
|
+
platformOfferId?: string | null | undefined;
|
|
3017
|
+
} | null | undefined;
|
|
3018
|
+
files?: {
|
|
3019
|
+
fileId: string;
|
|
3020
|
+
messageId: string;
|
|
3021
|
+
file?: {
|
|
3022
|
+
path: string;
|
|
3023
|
+
id: string;
|
|
3024
|
+
userId: string | number;
|
|
3025
|
+
signedUrl: string;
|
|
3026
|
+
createdAt: Date;
|
|
3027
|
+
} | null | undefined;
|
|
3028
|
+
index?: number | null | undefined;
|
|
3029
|
+
}[] | null | undefined;
|
|
3030
|
+
conversationUserId?: string | null | undefined;
|
|
3031
|
+
platformMessageId?: string | null | undefined;
|
|
3032
|
+
statusHistory?: {
|
|
3033
|
+
status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
3034
|
+
id: string;
|
|
3035
|
+
createdAt: Date;
|
|
3036
|
+
messageId: string;
|
|
3037
|
+
}[] | null | undefined;
|
|
3038
|
+
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;
|
|
3039
|
+
translation?: {
|
|
3040
|
+
messageId: string;
|
|
3041
|
+
body: string;
|
|
3042
|
+
lang: string;
|
|
3043
|
+
} | null | undefined;
|
|
3044
|
+
}>>>;
|
|
3045
|
+
users: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3046
|
+
id: z.ZodString;
|
|
3047
|
+
platformUserId: z.ZodString;
|
|
3048
|
+
conversationId: z.ZodString;
|
|
3049
|
+
login: z.ZodString;
|
|
3050
|
+
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3051
|
+
reviewCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3052
|
+
reviewValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3053
|
+
photoFileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3054
|
+
photoFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3055
|
+
id: z.ZodString;
|
|
3056
|
+
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
3057
|
+
path: z.ZodString;
|
|
3058
|
+
signedUrl: z.ZodString;
|
|
3059
|
+
createdAt: z.ZodDate;
|
|
3060
|
+
}, "strip", z.ZodTypeAny, {
|
|
3061
|
+
path: string;
|
|
3062
|
+
id: string;
|
|
3063
|
+
userId: string | number;
|
|
3064
|
+
signedUrl: string;
|
|
3065
|
+
createdAt: Date;
|
|
3066
|
+
}, {
|
|
3067
|
+
path: string;
|
|
3068
|
+
id: string;
|
|
3069
|
+
userId: string | number;
|
|
3070
|
+
signedUrl: string;
|
|
3071
|
+
createdAt: Date;
|
|
3072
|
+
}>>>;
|
|
3073
|
+
}, "strip", z.ZodTypeAny, {
|
|
3074
|
+
id: string;
|
|
3075
|
+
conversationId: string;
|
|
3076
|
+
login: string;
|
|
3077
|
+
platformUserId: string;
|
|
3078
|
+
reviewCount?: number | null | undefined;
|
|
3079
|
+
reviewValue?: number | null | undefined;
|
|
3080
|
+
location?: string | null | undefined;
|
|
3081
|
+
photoFileId?: string | null | undefined;
|
|
3082
|
+
photoFile?: {
|
|
3083
|
+
path: string;
|
|
3084
|
+
id: string;
|
|
3085
|
+
userId: string | number;
|
|
3086
|
+
signedUrl: string;
|
|
3087
|
+
createdAt: Date;
|
|
3088
|
+
} | null | undefined;
|
|
3089
|
+
}, {
|
|
3090
|
+
id: string;
|
|
3091
|
+
conversationId: string;
|
|
3092
|
+
login: string;
|
|
3093
|
+
platformUserId: string;
|
|
3094
|
+
reviewCount?: number | null | undefined;
|
|
3095
|
+
reviewValue?: number | null | undefined;
|
|
3096
|
+
location?: string | null | undefined;
|
|
3097
|
+
photoFileId?: string | null | undefined;
|
|
3098
|
+
photoFile?: {
|
|
3099
|
+
path: string;
|
|
3100
|
+
id: string;
|
|
3101
|
+
userId: string | number;
|
|
3102
|
+
signedUrl: string;
|
|
3103
|
+
createdAt: Date;
|
|
3104
|
+
} | null | undefined;
|
|
3105
|
+
}>, "many">>>;
|
|
3106
|
+
lastRead: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
3107
|
+
}, "strip", z.ZodTypeAny, {
|
|
3108
|
+
id: string;
|
|
3109
|
+
updatedAt: Date;
|
|
3110
|
+
accountId: string;
|
|
3111
|
+
platformConversationId: string;
|
|
3112
|
+
account?: {
|
|
3113
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
3114
|
+
userId: string | number;
|
|
3115
|
+
name: string;
|
|
3116
|
+
platform: "VINTED" | "SHOPIFY";
|
|
3117
|
+
accountId: string;
|
|
3118
|
+
night?: {
|
|
3119
|
+
startsAt: Date;
|
|
3120
|
+
endsAt: Date;
|
|
3121
|
+
} | null | undefined;
|
|
3122
|
+
locale?: string | null | undefined;
|
|
3123
|
+
} | null | undefined;
|
|
3124
|
+
users?: {
|
|
3125
|
+
id: string;
|
|
3126
|
+
conversationId: string;
|
|
3127
|
+
login: string;
|
|
3128
|
+
platformUserId: string;
|
|
3129
|
+
reviewCount?: number | null | undefined;
|
|
3130
|
+
reviewValue?: number | null | undefined;
|
|
3131
|
+
location?: string | null | undefined;
|
|
3132
|
+
photoFileId?: string | null | undefined;
|
|
3133
|
+
photoFile?: {
|
|
3134
|
+
path: string;
|
|
3135
|
+
id: string;
|
|
3136
|
+
userId: string | number;
|
|
3137
|
+
signedUrl: string;
|
|
3138
|
+
createdAt: Date;
|
|
3139
|
+
} | null | undefined;
|
|
3140
|
+
}[] | null | undefined;
|
|
3141
|
+
lastMessage?: {
|
|
3142
|
+
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
3143
|
+
status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
3144
|
+
id: string;
|
|
3145
|
+
createdAt: Date;
|
|
3146
|
+
conversationId: string;
|
|
3147
|
+
body?: string | null | undefined;
|
|
3148
|
+
offer?: {
|
|
3149
|
+
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
|
|
3150
|
+
id: string;
|
|
3151
|
+
price: number;
|
|
3152
|
+
messageId: string;
|
|
3153
|
+
originalPrice: number;
|
|
3154
|
+
transactionId?: string | null | undefined;
|
|
3155
|
+
platformOfferId?: string | null | undefined;
|
|
3156
|
+
} | null | undefined;
|
|
3157
|
+
files?: {
|
|
3158
|
+
fileId: string;
|
|
3159
|
+
messageId: string;
|
|
3160
|
+
file?: {
|
|
3161
|
+
path: string;
|
|
3162
|
+
id: string;
|
|
3163
|
+
userId: string | number;
|
|
3164
|
+
signedUrl: string;
|
|
3165
|
+
createdAt: Date;
|
|
3166
|
+
} | null | undefined;
|
|
3167
|
+
index?: number | null | undefined;
|
|
3168
|
+
}[] | null | undefined;
|
|
3169
|
+
conversationUserId?: string | null | undefined;
|
|
3170
|
+
platformMessageId?: string | null | undefined;
|
|
3171
|
+
statusHistory?: {
|
|
3172
|
+
status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
3173
|
+
id: string;
|
|
3174
|
+
createdAt: Date;
|
|
3175
|
+
messageId: string;
|
|
3176
|
+
}[] | null | undefined;
|
|
3177
|
+
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;
|
|
3178
|
+
translation?: {
|
|
3179
|
+
messageId: string;
|
|
3180
|
+
body: string;
|
|
3181
|
+
lang: string;
|
|
3182
|
+
} | null | undefined;
|
|
3183
|
+
} | null | undefined;
|
|
3184
|
+
lastRead?: Date | null | undefined;
|
|
3185
|
+
}, {
|
|
3186
|
+
id: string;
|
|
3187
|
+
updatedAt: Date;
|
|
3188
|
+
accountId: string;
|
|
3189
|
+
platformConversationId: string;
|
|
3190
|
+
account?: {
|
|
3191
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
3192
|
+
userId: string | number;
|
|
3193
|
+
name: string;
|
|
3194
|
+
platform: "VINTED" | "SHOPIFY";
|
|
3195
|
+
accountId: string;
|
|
3196
|
+
night?: {
|
|
3197
|
+
startsAt: Date;
|
|
3198
|
+
endsAt: Date;
|
|
3199
|
+
} | null | undefined;
|
|
3200
|
+
locale?: string | null | undefined;
|
|
3201
|
+
} | null | undefined;
|
|
3202
|
+
users?: {
|
|
3203
|
+
id: string;
|
|
3204
|
+
conversationId: string;
|
|
3205
|
+
login: string;
|
|
3206
|
+
platformUserId: string;
|
|
3207
|
+
reviewCount?: number | null | undefined;
|
|
3208
|
+
reviewValue?: number | null | undefined;
|
|
3209
|
+
location?: string | null | undefined;
|
|
3210
|
+
photoFileId?: string | null | undefined;
|
|
3211
|
+
photoFile?: {
|
|
3212
|
+
path: string;
|
|
3213
|
+
id: string;
|
|
3214
|
+
userId: string | number;
|
|
3215
|
+
signedUrl: string;
|
|
3216
|
+
createdAt: Date;
|
|
3217
|
+
} | null | undefined;
|
|
3218
|
+
}[] | null | undefined;
|
|
3219
|
+
lastMessage?: {
|
|
1179
3220
|
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
1180
3221
|
status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
1181
3222
|
id: string;
|
|
@@ -1217,17 +3258,78 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1217
3258
|
body: string;
|
|
1218
3259
|
lang: string;
|
|
1219
3260
|
} | null | undefined;
|
|
1220
|
-
}
|
|
1221
|
-
|
|
3261
|
+
} | null | undefined;
|
|
3262
|
+
lastRead?: Date | null | undefined;
|
|
3263
|
+
}>;
|
|
3264
|
+
newMessages: z.ZodArray<z.ZodObject<{
|
|
3265
|
+
id: z.ZodString;
|
|
3266
|
+
conversationId: z.ZodString;
|
|
3267
|
+
conversationUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3268
|
+
platformMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3269
|
+
type: z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE"]>;
|
|
3270
|
+
status: z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN"]>;
|
|
3271
|
+
statusHistory: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1222
3272
|
id: z.ZodString;
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
3273
|
+
messageId: z.ZodString;
|
|
3274
|
+
status: z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN"]>;
|
|
3275
|
+
createdAt: z.ZodDate;
|
|
3276
|
+
}, "strip", z.ZodTypeAny, {
|
|
3277
|
+
status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
3278
|
+
id: string;
|
|
3279
|
+
createdAt: Date;
|
|
3280
|
+
messageId: string;
|
|
3281
|
+
}, {
|
|
3282
|
+
status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
3283
|
+
id: string;
|
|
3284
|
+
createdAt: Date;
|
|
3285
|
+
messageId: string;
|
|
3286
|
+
}>, "many">>>;
|
|
3287
|
+
associatedPreferenceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEGOTIATION", "REPUBLISH", "VISION", "PHOTO_ADDING", "TITLE", "DESCRIPTION", "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"]>>>;
|
|
3288
|
+
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3289
|
+
createdAt: z.ZodDate;
|
|
3290
|
+
offer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3291
|
+
id: z.ZodString;
|
|
3292
|
+
platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3293
|
+
messageId: z.ZodString;
|
|
3294
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3295
|
+
price: z.ZodNumber;
|
|
3296
|
+
originalPrice: z.ZodNumber;
|
|
3297
|
+
status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]>;
|
|
3298
|
+
}, "strip", z.ZodTypeAny, {
|
|
3299
|
+
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
|
|
3300
|
+
id: string;
|
|
3301
|
+
price: number;
|
|
3302
|
+
messageId: string;
|
|
3303
|
+
originalPrice: number;
|
|
3304
|
+
transactionId?: string | null | undefined;
|
|
3305
|
+
platformOfferId?: string | null | undefined;
|
|
3306
|
+
}, {
|
|
3307
|
+
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
|
|
3308
|
+
id: string;
|
|
3309
|
+
price: number;
|
|
3310
|
+
messageId: string;
|
|
3311
|
+
originalPrice: number;
|
|
3312
|
+
transactionId?: string | null | undefined;
|
|
3313
|
+
platformOfferId?: string | null | undefined;
|
|
3314
|
+
}>>>;
|
|
3315
|
+
translation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3316
|
+
messageId: z.ZodString;
|
|
3317
|
+
lang: z.ZodString;
|
|
3318
|
+
body: z.ZodString;
|
|
3319
|
+
}, "strip", z.ZodTypeAny, {
|
|
3320
|
+
messageId: string;
|
|
3321
|
+
body: string;
|
|
3322
|
+
lang: string;
|
|
3323
|
+
}, {
|
|
3324
|
+
messageId: string;
|
|
3325
|
+
body: string;
|
|
3326
|
+
lang: string;
|
|
3327
|
+
}>>>;
|
|
3328
|
+
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3329
|
+
fileId: z.ZodString;
|
|
3330
|
+
messageId: z.ZodString;
|
|
3331
|
+
index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3332
|
+
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1231
3333
|
id: z.ZodString;
|
|
1232
3334
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
1233
3335
|
path: z.ZodString;
|
|
@@ -1247,40 +3349,117 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1247
3349
|
createdAt: Date;
|
|
1248
3350
|
}>>>;
|
|
1249
3351
|
}, "strip", z.ZodTypeAny, {
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
platformUserId: string;
|
|
1254
|
-
reviewCount?: number | null | undefined;
|
|
1255
|
-
reviewValue?: number | null | undefined;
|
|
1256
|
-
location?: string | null | undefined;
|
|
1257
|
-
photoFileId?: string | null | undefined;
|
|
1258
|
-
photoFile?: {
|
|
3352
|
+
fileId: string;
|
|
3353
|
+
messageId: string;
|
|
3354
|
+
file?: {
|
|
1259
3355
|
path: string;
|
|
1260
3356
|
id: string;
|
|
1261
3357
|
userId: string | number;
|
|
1262
3358
|
signedUrl: string;
|
|
1263
3359
|
createdAt: Date;
|
|
1264
3360
|
} | null | undefined;
|
|
3361
|
+
index?: number | null | undefined;
|
|
1265
3362
|
}, {
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
platformUserId: string;
|
|
1270
|
-
reviewCount?: number | null | undefined;
|
|
1271
|
-
reviewValue?: number | null | undefined;
|
|
1272
|
-
location?: string | null | undefined;
|
|
1273
|
-
photoFileId?: string | null | undefined;
|
|
1274
|
-
photoFile?: {
|
|
3363
|
+
fileId: string;
|
|
3364
|
+
messageId: string;
|
|
3365
|
+
file?: {
|
|
1275
3366
|
path: string;
|
|
1276
3367
|
id: string;
|
|
1277
3368
|
userId: string | number;
|
|
1278
3369
|
signedUrl: string;
|
|
1279
3370
|
createdAt: Date;
|
|
1280
3371
|
} | null | undefined;
|
|
3372
|
+
index?: number | null | undefined;
|
|
1281
3373
|
}>, "many">>>;
|
|
1282
|
-
lastRead: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1283
3374
|
}, "strip", z.ZodTypeAny, {
|
|
3375
|
+
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
3376
|
+
status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
3377
|
+
id: string;
|
|
3378
|
+
createdAt: Date;
|
|
3379
|
+
conversationId: string;
|
|
3380
|
+
body?: string | null | undefined;
|
|
3381
|
+
offer?: {
|
|
3382
|
+
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
|
|
3383
|
+
id: string;
|
|
3384
|
+
price: number;
|
|
3385
|
+
messageId: string;
|
|
3386
|
+
originalPrice: number;
|
|
3387
|
+
transactionId?: string | null | undefined;
|
|
3388
|
+
platformOfferId?: string | null | undefined;
|
|
3389
|
+
} | null | undefined;
|
|
3390
|
+
files?: {
|
|
3391
|
+
fileId: string;
|
|
3392
|
+
messageId: string;
|
|
3393
|
+
file?: {
|
|
3394
|
+
path: string;
|
|
3395
|
+
id: string;
|
|
3396
|
+
userId: string | number;
|
|
3397
|
+
signedUrl: string;
|
|
3398
|
+
createdAt: Date;
|
|
3399
|
+
} | null | undefined;
|
|
3400
|
+
index?: number | null | undefined;
|
|
3401
|
+
}[] | null | undefined;
|
|
3402
|
+
conversationUserId?: string | null | undefined;
|
|
3403
|
+
platformMessageId?: string | null | undefined;
|
|
3404
|
+
statusHistory?: {
|
|
3405
|
+
status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
3406
|
+
id: string;
|
|
3407
|
+
createdAt: Date;
|
|
3408
|
+
messageId: string;
|
|
3409
|
+
}[] | null | undefined;
|
|
3410
|
+
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;
|
|
3411
|
+
translation?: {
|
|
3412
|
+
messageId: string;
|
|
3413
|
+
body: string;
|
|
3414
|
+
lang: string;
|
|
3415
|
+
} | null | undefined;
|
|
3416
|
+
}, {
|
|
3417
|
+
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
3418
|
+
status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
3419
|
+
id: string;
|
|
3420
|
+
createdAt: Date;
|
|
3421
|
+
conversationId: string;
|
|
3422
|
+
body?: string | null | undefined;
|
|
3423
|
+
offer?: {
|
|
3424
|
+
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
|
|
3425
|
+
id: string;
|
|
3426
|
+
price: number;
|
|
3427
|
+
messageId: string;
|
|
3428
|
+
originalPrice: number;
|
|
3429
|
+
transactionId?: string | null | undefined;
|
|
3430
|
+
platformOfferId?: string | null | undefined;
|
|
3431
|
+
} | null | undefined;
|
|
3432
|
+
files?: {
|
|
3433
|
+
fileId: string;
|
|
3434
|
+
messageId: string;
|
|
3435
|
+
file?: {
|
|
3436
|
+
path: string;
|
|
3437
|
+
id: string;
|
|
3438
|
+
userId: string | number;
|
|
3439
|
+
signedUrl: string;
|
|
3440
|
+
createdAt: Date;
|
|
3441
|
+
} | null | undefined;
|
|
3442
|
+
index?: number | null | undefined;
|
|
3443
|
+
}[] | null | undefined;
|
|
3444
|
+
conversationUserId?: string | null | undefined;
|
|
3445
|
+
platformMessageId?: string | null | undefined;
|
|
3446
|
+
statusHistory?: {
|
|
3447
|
+
status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
3448
|
+
id: string;
|
|
3449
|
+
createdAt: Date;
|
|
3450
|
+
messageId: string;
|
|
3451
|
+
}[] | null | undefined;
|
|
3452
|
+
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;
|
|
3453
|
+
translation?: {
|
|
3454
|
+
messageId: string;
|
|
3455
|
+
body: string;
|
|
3456
|
+
lang: string;
|
|
3457
|
+
} | null | undefined;
|
|
3458
|
+
}>, "many">;
|
|
3459
|
+
type: z.ZodLiteral<"CONVERSATION">;
|
|
3460
|
+
}, "strip", z.ZodTypeAny, {
|
|
3461
|
+
type: "CONVERSATION";
|
|
3462
|
+
conversation: {
|
|
1284
3463
|
id: string;
|
|
1285
3464
|
updatedAt: Date;
|
|
1286
3465
|
accountId: string;
|
|
@@ -1358,7 +3537,53 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1358
3537
|
} | null | undefined;
|
|
1359
3538
|
} | null | undefined;
|
|
1360
3539
|
lastRead?: Date | null | undefined;
|
|
1361
|
-
}
|
|
3540
|
+
};
|
|
3541
|
+
newMessages: {
|
|
3542
|
+
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
3543
|
+
status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
3544
|
+
id: string;
|
|
3545
|
+
createdAt: Date;
|
|
3546
|
+
conversationId: string;
|
|
3547
|
+
body?: string | null | undefined;
|
|
3548
|
+
offer?: {
|
|
3549
|
+
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
|
|
3550
|
+
id: string;
|
|
3551
|
+
price: number;
|
|
3552
|
+
messageId: string;
|
|
3553
|
+
originalPrice: number;
|
|
3554
|
+
transactionId?: string | null | undefined;
|
|
3555
|
+
platformOfferId?: string | null | undefined;
|
|
3556
|
+
} | null | undefined;
|
|
3557
|
+
files?: {
|
|
3558
|
+
fileId: string;
|
|
3559
|
+
messageId: string;
|
|
3560
|
+
file?: {
|
|
3561
|
+
path: string;
|
|
3562
|
+
id: string;
|
|
3563
|
+
userId: string | number;
|
|
3564
|
+
signedUrl: string;
|
|
3565
|
+
createdAt: Date;
|
|
3566
|
+
} | null | undefined;
|
|
3567
|
+
index?: number | null | undefined;
|
|
3568
|
+
}[] | null | undefined;
|
|
3569
|
+
conversationUserId?: string | null | undefined;
|
|
3570
|
+
platformMessageId?: string | null | undefined;
|
|
3571
|
+
statusHistory?: {
|
|
3572
|
+
status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
3573
|
+
id: string;
|
|
3574
|
+
createdAt: Date;
|
|
3575
|
+
messageId: string;
|
|
3576
|
+
}[] | null | undefined;
|
|
3577
|
+
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;
|
|
3578
|
+
translation?: {
|
|
3579
|
+
messageId: string;
|
|
3580
|
+
body: string;
|
|
3581
|
+
lang: string;
|
|
3582
|
+
} | null | undefined;
|
|
3583
|
+
}[];
|
|
3584
|
+
}, {
|
|
3585
|
+
type: "CONVERSATION";
|
|
3586
|
+
conversation: {
|
|
1362
3587
|
id: string;
|
|
1363
3588
|
updatedAt: Date;
|
|
1364
3589
|
accountId: string;
|
|
@@ -1436,42 +3661,15 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1436
3661
|
} | null | undefined;
|
|
1437
3662
|
} | null | undefined;
|
|
1438
3663
|
lastRead?: Date | null | undefined;
|
|
1439
|
-
}
|
|
1440
|
-
newMessages:
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
id: z.ZodString;
|
|
1449
|
-
messageId: z.ZodString;
|
|
1450
|
-
status: z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN"]>;
|
|
1451
|
-
createdAt: z.ZodDate;
|
|
1452
|
-
}, "strip", z.ZodTypeAny, {
|
|
1453
|
-
status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
1454
|
-
id: string;
|
|
1455
|
-
createdAt: Date;
|
|
1456
|
-
messageId: string;
|
|
1457
|
-
}, {
|
|
1458
|
-
status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
1459
|
-
id: string;
|
|
1460
|
-
createdAt: Date;
|
|
1461
|
-
messageId: string;
|
|
1462
|
-
}>, "many">>>;
|
|
1463
|
-
associatedPreferenceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEGOTIATION", "REPUBLISH", "VISION", "PHOTO_ADDING", "TITLE", "DESCRIPTION", "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"]>>>;
|
|
1464
|
-
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1465
|
-
createdAt: z.ZodDate;
|
|
1466
|
-
offer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1467
|
-
id: z.ZodString;
|
|
1468
|
-
platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1469
|
-
messageId: z.ZodString;
|
|
1470
|
-
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1471
|
-
price: z.ZodNumber;
|
|
1472
|
-
originalPrice: z.ZodNumber;
|
|
1473
|
-
status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]>;
|
|
1474
|
-
}, "strip", z.ZodTypeAny, {
|
|
3664
|
+
};
|
|
3665
|
+
newMessages: {
|
|
3666
|
+
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
3667
|
+
status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
3668
|
+
id: string;
|
|
3669
|
+
createdAt: Date;
|
|
3670
|
+
conversationId: string;
|
|
3671
|
+
body?: string | null | undefined;
|
|
3672
|
+
offer?: {
|
|
1475
3673
|
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
|
|
1476
3674
|
id: string;
|
|
1477
3675
|
price: number;
|
|
@@ -1479,31 +3677,49 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1479
3677
|
originalPrice: number;
|
|
1480
3678
|
transactionId?: string | null | undefined;
|
|
1481
3679
|
platformOfferId?: string | null | undefined;
|
|
1482
|
-
}
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
price: number;
|
|
3680
|
+
} | null | undefined;
|
|
3681
|
+
files?: {
|
|
3682
|
+
fileId: string;
|
|
1486
3683
|
messageId: string;
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
}
|
|
3684
|
+
file?: {
|
|
3685
|
+
path: string;
|
|
3686
|
+
id: string;
|
|
3687
|
+
userId: string | number;
|
|
3688
|
+
signedUrl: string;
|
|
3689
|
+
createdAt: Date;
|
|
3690
|
+
} | null | undefined;
|
|
3691
|
+
index?: number | null | undefined;
|
|
3692
|
+
}[] | null | undefined;
|
|
3693
|
+
conversationUserId?: string | null | undefined;
|
|
3694
|
+
platformMessageId?: string | null | undefined;
|
|
3695
|
+
statusHistory?: {
|
|
3696
|
+
status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
3697
|
+
id: string;
|
|
3698
|
+
createdAt: Date;
|
|
1496
3699
|
messageId: string;
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
3700
|
+
}[] | null | undefined;
|
|
3701
|
+
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;
|
|
3702
|
+
translation?: {
|
|
1500
3703
|
messageId: string;
|
|
1501
3704
|
body: string;
|
|
1502
3705
|
lang: string;
|
|
1503
|
-
}
|
|
3706
|
+
} | null | undefined;
|
|
3707
|
+
}[];
|
|
3708
|
+
}>, z.ZodObject<{
|
|
3709
|
+
type: z.ZodLiteral<"EMPTY">;
|
|
3710
|
+
}, "strip", z.ZodTypeAny, {
|
|
3711
|
+
type: "EMPTY";
|
|
3712
|
+
}, {
|
|
3713
|
+
type: "EMPTY";
|
|
3714
|
+
}>, z.ZodObject<{
|
|
3715
|
+
item: z.ZodObject<{
|
|
3716
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
3717
|
+
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
3718
|
+
name: z.ZodString;
|
|
3719
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1504
3720
|
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1505
3721
|
fileId: z.ZodString;
|
|
1506
|
-
|
|
3722
|
+
itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
1507
3723
|
index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1508
3724
|
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1509
3725
|
id: z.ZodString;
|
|
@@ -1526,7 +3742,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1526
3742
|
}>>>;
|
|
1527
3743
|
}, "strip", z.ZodTypeAny, {
|
|
1528
3744
|
fileId: string;
|
|
1529
|
-
|
|
3745
|
+
itemId: string | number;
|
|
1530
3746
|
file?: {
|
|
1531
3747
|
path: string;
|
|
1532
3748
|
id: string;
|
|
@@ -1537,7 +3753,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1537
3753
|
index?: number | null | undefined;
|
|
1538
3754
|
}, {
|
|
1539
3755
|
fileId: string;
|
|
1540
|
-
|
|
3756
|
+
itemId: string | number;
|
|
1541
3757
|
file?: {
|
|
1542
3758
|
path: string;
|
|
1543
3759
|
id: string;
|
|
@@ -1547,67 +3763,533 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1547
3763
|
} | null | undefined;
|
|
1548
3764
|
index?: number | null | undefined;
|
|
1549
3765
|
}>, "many">>>;
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
3766
|
+
categoryId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3767
|
+
brandId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
3768
|
+
sex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3769
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3770
|
+
sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3771
|
+
purchasePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3772
|
+
purchaseDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
3773
|
+
purchasePlaceId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
3774
|
+
sold: z.ZodBoolean;
|
|
3775
|
+
purchased: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3776
|
+
sellingPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3777
|
+
sellingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
3778
|
+
sellingPlaceId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
3779
|
+
estimatedPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3780
|
+
fees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3781
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
3782
|
+
type: z.ZodString;
|
|
3783
|
+
value: z.ZodNumber;
|
|
3784
|
+
name: z.ZodString;
|
|
3785
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3786
|
+
recurrence: z.ZodEnum<["UNIQUE", "MONTHLY", "YEARLY"]>;
|
|
3787
|
+
startDate: z.ZodDate;
|
|
3788
|
+
endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
3789
|
+
active: z.ZodBoolean;
|
|
3790
|
+
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
3791
|
+
itemId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
3792
|
+
parentFeeId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
3793
|
+
createdAt: z.ZodDate;
|
|
3794
|
+
updatedAt: z.ZodDate;
|
|
3795
|
+
}, "strip", z.ZodTypeAny, {
|
|
3796
|
+
value: number;
|
|
3797
|
+
type: string;
|
|
3798
|
+
id: string | number;
|
|
3799
|
+
userId: string | number;
|
|
3800
|
+
createdAt: Date;
|
|
3801
|
+
name: string;
|
|
3802
|
+
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
3803
|
+
startDate: Date;
|
|
3804
|
+
active: boolean;
|
|
3805
|
+
updatedAt: Date;
|
|
3806
|
+
description?: string | null | undefined;
|
|
3807
|
+
endDate?: Date | null | undefined;
|
|
3808
|
+
itemId?: string | number | null | undefined;
|
|
3809
|
+
parentFeeId?: string | number | null | undefined;
|
|
3810
|
+
}, {
|
|
3811
|
+
value: number;
|
|
3812
|
+
type: string;
|
|
3813
|
+
id: string | number;
|
|
3814
|
+
userId: string | number;
|
|
3815
|
+
createdAt: Date;
|
|
3816
|
+
name: string;
|
|
3817
|
+
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
3818
|
+
startDate: Date;
|
|
3819
|
+
active: boolean;
|
|
3820
|
+
updatedAt: Date;
|
|
3821
|
+
description?: string | null | undefined;
|
|
3822
|
+
endDate?: Date | null | undefined;
|
|
3823
|
+
itemId?: string | number | null | undefined;
|
|
3824
|
+
parentFeeId?: string | number | null | undefined;
|
|
3825
|
+
}>, "many">>>;
|
|
3826
|
+
feesSum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3827
|
+
labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3828
|
+
labelId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
3829
|
+
itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
3830
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3831
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
3832
|
+
name: z.ZodString;
|
|
3833
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
3834
|
+
isUserLabel: z.ZodBoolean;
|
|
3835
|
+
createdAt: z.ZodDate;
|
|
3836
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3837
|
+
}, "strip", z.ZodTypeAny, {
|
|
3838
|
+
id: string | number;
|
|
3839
|
+
createdAt: Date;
|
|
3840
|
+
name: string;
|
|
3841
|
+
isUserLabel: boolean;
|
|
3842
|
+
itemCount?: number | null | undefined;
|
|
3843
|
+
userId?: string | number | null | undefined;
|
|
3844
|
+
}, {
|
|
3845
|
+
id: string | number;
|
|
3846
|
+
createdAt: Date;
|
|
3847
|
+
name: string;
|
|
3848
|
+
isUserLabel: boolean;
|
|
3849
|
+
itemCount?: number | null | undefined;
|
|
3850
|
+
userId?: string | number | null | undefined;
|
|
3851
|
+
}>>>;
|
|
3852
|
+
}, "strip", z.ZodTypeAny, {
|
|
3853
|
+
itemId: string | number;
|
|
3854
|
+
labelId: string | number;
|
|
3855
|
+
label?: {
|
|
3856
|
+
id: string | number;
|
|
3857
|
+
createdAt: Date;
|
|
3858
|
+
name: string;
|
|
3859
|
+
isUserLabel: boolean;
|
|
3860
|
+
itemCount?: number | null | undefined;
|
|
3861
|
+
userId?: string | number | null | undefined;
|
|
3862
|
+
} | null | undefined;
|
|
3863
|
+
}, {
|
|
3864
|
+
itemId: string | number;
|
|
3865
|
+
labelId: string | number;
|
|
3866
|
+
label?: {
|
|
3867
|
+
id: string | number;
|
|
3868
|
+
createdAt: Date;
|
|
3869
|
+
name: string;
|
|
3870
|
+
isUserLabel: boolean;
|
|
3871
|
+
itemCount?: number | null | undefined;
|
|
3872
|
+
userId?: string | number | null | undefined;
|
|
3873
|
+
} | null | undefined;
|
|
3874
|
+
}>, "many">>>;
|
|
3875
|
+
colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
3876
|
+
packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3877
|
+
customerId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
3878
|
+
customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3879
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
3880
|
+
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
3881
|
+
firstName: z.ZodString;
|
|
3882
|
+
lastName: z.ZodString;
|
|
3883
|
+
birthDate: z.ZodDate;
|
|
3884
|
+
email: z.ZodString;
|
|
3885
|
+
idNumber: z.ZodString;
|
|
3886
|
+
phone: z.ZodString;
|
|
3887
|
+
iban: z.ZodString;
|
|
3888
|
+
bic: z.ZodString;
|
|
3889
|
+
phoneVerified: z.ZodBoolean;
|
|
3890
|
+
}, "strip", z.ZodTypeAny, {
|
|
3891
|
+
email: string;
|
|
3892
|
+
id: string | number;
|
|
3893
|
+
userId: string | number;
|
|
3894
|
+
firstName: string;
|
|
3895
|
+
lastName: string;
|
|
3896
|
+
birthDate: Date;
|
|
3897
|
+
idNumber: string;
|
|
3898
|
+
phone: string;
|
|
3899
|
+
iban: string;
|
|
3900
|
+
bic: string;
|
|
3901
|
+
phoneVerified: boolean;
|
|
3902
|
+
}, {
|
|
3903
|
+
email: string;
|
|
3904
|
+
id: string | number;
|
|
3905
|
+
userId: string | number;
|
|
3906
|
+
firstName: string;
|
|
3907
|
+
lastName: string;
|
|
3908
|
+
birthDate: Date;
|
|
3909
|
+
idNumber: string;
|
|
3910
|
+
phone: string;
|
|
3911
|
+
iban: string;
|
|
3912
|
+
bic: string;
|
|
3913
|
+
phoneVerified: boolean;
|
|
3914
|
+
}>>>;
|
|
3915
|
+
customerType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3916
|
+
customerPaid: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3917
|
+
customerPaidDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
3918
|
+
customerPaidType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3919
|
+
contractId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
3920
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3921
|
+
itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
3922
|
+
fieldId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
3923
|
+
value: z.ZodString;
|
|
3924
|
+
}, "strip", z.ZodTypeAny, {
|
|
3925
|
+
value: string;
|
|
3926
|
+
itemId: string | number;
|
|
3927
|
+
fieldId: string | number;
|
|
3928
|
+
}, {
|
|
3929
|
+
value: string;
|
|
3930
|
+
itemId: string | number;
|
|
3931
|
+
fieldId: string | number;
|
|
3932
|
+
}>, "many">>>;
|
|
3933
|
+
lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3934
|
+
id: z.ZodString;
|
|
3935
|
+
itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
3936
|
+
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"]>;
|
|
3937
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3938
|
+
data: z.ZodObject<{
|
|
3939
|
+
soldAccountId: z.ZodString;
|
|
3940
|
+
soldOrderId: z.ZodString;
|
|
3941
|
+
soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3942
|
+
}, "strip", z.ZodTypeAny, {
|
|
3943
|
+
soldAccountId: string;
|
|
3944
|
+
soldOrderId: string;
|
|
3945
|
+
soldConversationId?: string | null | undefined;
|
|
3946
|
+
}, {
|
|
3947
|
+
soldAccountId: string;
|
|
3948
|
+
soldOrderId: string;
|
|
3949
|
+
soldConversationId?: string | null | undefined;
|
|
3950
|
+
}>;
|
|
3951
|
+
type: z.ZodLiteral<"BUYER_PAID">;
|
|
3952
|
+
}, "strip", z.ZodTypeAny, {
|
|
3953
|
+
type: "BUYER_PAID";
|
|
3954
|
+
data: {
|
|
3955
|
+
soldAccountId: string;
|
|
3956
|
+
soldOrderId: string;
|
|
3957
|
+
soldConversationId?: string | null | undefined;
|
|
3958
|
+
};
|
|
3959
|
+
}, {
|
|
3960
|
+
type: "BUYER_PAID";
|
|
3961
|
+
data: {
|
|
3962
|
+
soldAccountId: string;
|
|
3963
|
+
soldOrderId: string;
|
|
3964
|
+
soldConversationId?: string | null | undefined;
|
|
3965
|
+
};
|
|
3966
|
+
}>, z.ZodObject<{
|
|
3967
|
+
data: z.ZodObject<{
|
|
3968
|
+
soldAccountId: z.ZodString;
|
|
3969
|
+
soldOrderId: z.ZodString;
|
|
3970
|
+
soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3971
|
+
}, "strip", z.ZodTypeAny, {
|
|
3972
|
+
soldAccountId: string;
|
|
3973
|
+
soldOrderId: string;
|
|
3974
|
+
soldConversationId?: string | null | undefined;
|
|
3975
|
+
}, {
|
|
3976
|
+
soldAccountId: string;
|
|
3977
|
+
soldOrderId: string;
|
|
3978
|
+
soldConversationId?: string | null | undefined;
|
|
3979
|
+
}>;
|
|
3980
|
+
type: z.ZodLiteral<"DELIVERED">;
|
|
3981
|
+
}, "strip", z.ZodTypeAny, {
|
|
3982
|
+
type: "DELIVERED";
|
|
3983
|
+
data: {
|
|
3984
|
+
soldAccountId: string;
|
|
3985
|
+
soldOrderId: string;
|
|
3986
|
+
soldConversationId?: string | null | undefined;
|
|
3987
|
+
};
|
|
3988
|
+
}, {
|
|
3989
|
+
type: "DELIVERED";
|
|
3990
|
+
data: {
|
|
3991
|
+
soldAccountId: string;
|
|
3992
|
+
soldOrderId: string;
|
|
3993
|
+
soldConversationId?: string | null | undefined;
|
|
3994
|
+
};
|
|
3995
|
+
}>, z.ZodObject<{
|
|
3996
|
+
type: z.ZodLiteral<"EMPTY">;
|
|
3997
|
+
}, "strip", z.ZodTypeAny, {
|
|
3998
|
+
type: "EMPTY";
|
|
3999
|
+
}, {
|
|
4000
|
+
type: "EMPTY";
|
|
4001
|
+
}>, z.ZodObject<{
|
|
4002
|
+
data: z.ZodObject<{
|
|
4003
|
+
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
4004
|
+
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4005
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4006
|
+
}, "strip", z.ZodTypeAny, {
|
|
4007
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4008
|
+
accountId?: string | null | undefined;
|
|
4009
|
+
reason?: string | null | undefined;
|
|
4010
|
+
}, {
|
|
4011
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4012
|
+
accountId?: string | null | undefined;
|
|
4013
|
+
reason?: string | null | undefined;
|
|
4014
|
+
}>;
|
|
4015
|
+
type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
|
|
4016
|
+
}, "strip", z.ZodTypeAny, {
|
|
4017
|
+
type: "FAILED_TO_PUBLISH";
|
|
4018
|
+
data: {
|
|
4019
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4020
|
+
accountId?: string | null | undefined;
|
|
4021
|
+
reason?: string | null | undefined;
|
|
4022
|
+
};
|
|
4023
|
+
}, {
|
|
4024
|
+
type: "FAILED_TO_PUBLISH";
|
|
4025
|
+
data: {
|
|
4026
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4027
|
+
accountId?: string | null | undefined;
|
|
4028
|
+
reason?: string | null | undefined;
|
|
4029
|
+
};
|
|
4030
|
+
}>, z.ZodObject<{
|
|
4031
|
+
data: z.ZodObject<{
|
|
4032
|
+
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
4033
|
+
}, "strip", z.ZodTypeAny, {
|
|
4034
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4035
|
+
}, {
|
|
4036
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4037
|
+
}>;
|
|
4038
|
+
type: z.ZodLiteral<"REPUBLISHING">;
|
|
4039
|
+
}, "strip", z.ZodTypeAny, {
|
|
4040
|
+
type: "REPUBLISHING";
|
|
4041
|
+
data: {
|
|
4042
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4043
|
+
};
|
|
4044
|
+
}, {
|
|
4045
|
+
type: "REPUBLISHING";
|
|
4046
|
+
data: {
|
|
4047
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4048
|
+
};
|
|
4049
|
+
}>, z.ZodObject<{
|
|
4050
|
+
data: z.ZodObject<{
|
|
4051
|
+
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
4052
|
+
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
4053
|
+
}, "strip", z.ZodTypeAny, {
|
|
4054
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4055
|
+
publishingDate?: Date | null | undefined;
|
|
4056
|
+
}, {
|
|
4057
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4058
|
+
publishingDate?: Date | null | undefined;
|
|
4059
|
+
}>;
|
|
4060
|
+
type: z.ZodLiteral<"SCHEDULED">;
|
|
4061
|
+
}, "strip", z.ZodTypeAny, {
|
|
4062
|
+
type: "SCHEDULED";
|
|
4063
|
+
data: {
|
|
4064
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4065
|
+
publishingDate?: Date | null | undefined;
|
|
4066
|
+
};
|
|
4067
|
+
}, {
|
|
4068
|
+
type: "SCHEDULED";
|
|
4069
|
+
data: {
|
|
4070
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4071
|
+
publishingDate?: Date | null | undefined;
|
|
4072
|
+
};
|
|
4073
|
+
}>]>>>;
|
|
4074
|
+
createdAt: z.ZodDate;
|
|
4075
|
+
}, "strip", z.ZodTypeAny, {
|
|
4076
|
+
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";
|
|
1559
4077
|
id: string;
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
4078
|
+
createdAt: Date;
|
|
4079
|
+
itemId: string | number;
|
|
4080
|
+
data?: {
|
|
4081
|
+
type: "BUYER_PAID";
|
|
4082
|
+
data: {
|
|
4083
|
+
soldAccountId: string;
|
|
4084
|
+
soldOrderId: string;
|
|
4085
|
+
soldConversationId?: string | null | undefined;
|
|
4086
|
+
};
|
|
4087
|
+
} | {
|
|
4088
|
+
type: "DELIVERED";
|
|
4089
|
+
data: {
|
|
4090
|
+
soldAccountId: string;
|
|
4091
|
+
soldOrderId: string;
|
|
4092
|
+
soldConversationId?: string | null | undefined;
|
|
4093
|
+
};
|
|
4094
|
+
} | {
|
|
4095
|
+
type: "EMPTY";
|
|
4096
|
+
} | {
|
|
4097
|
+
type: "FAILED_TO_PUBLISH";
|
|
4098
|
+
data: {
|
|
4099
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4100
|
+
accountId?: string | null | undefined;
|
|
4101
|
+
reason?: string | null | undefined;
|
|
4102
|
+
};
|
|
4103
|
+
} | {
|
|
4104
|
+
type: "REPUBLISHING";
|
|
4105
|
+
data: {
|
|
4106
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4107
|
+
};
|
|
4108
|
+
} | {
|
|
4109
|
+
type: "SCHEDULED";
|
|
4110
|
+
data: {
|
|
4111
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4112
|
+
publishingDate?: Date | null | undefined;
|
|
4113
|
+
};
|
|
4114
|
+
} | null | undefined;
|
|
4115
|
+
}, {
|
|
4116
|
+
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";
|
|
4117
|
+
id: string;
|
|
4118
|
+
createdAt: Date;
|
|
4119
|
+
itemId: string | number;
|
|
4120
|
+
data?: {
|
|
4121
|
+
type: "BUYER_PAID";
|
|
4122
|
+
data: {
|
|
4123
|
+
soldAccountId: string;
|
|
4124
|
+
soldOrderId: string;
|
|
4125
|
+
soldConversationId?: string | null | undefined;
|
|
4126
|
+
};
|
|
4127
|
+
} | {
|
|
4128
|
+
type: "DELIVERED";
|
|
4129
|
+
data: {
|
|
4130
|
+
soldAccountId: string;
|
|
4131
|
+
soldOrderId: string;
|
|
4132
|
+
soldConversationId?: string | null | undefined;
|
|
4133
|
+
};
|
|
4134
|
+
} | {
|
|
4135
|
+
type: "EMPTY";
|
|
4136
|
+
} | {
|
|
4137
|
+
type: "FAILED_TO_PUBLISH";
|
|
4138
|
+
data: {
|
|
4139
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4140
|
+
accountId?: string | null | undefined;
|
|
4141
|
+
reason?: string | null | undefined;
|
|
4142
|
+
};
|
|
4143
|
+
} | {
|
|
4144
|
+
type: "REPUBLISHING";
|
|
4145
|
+
data: {
|
|
4146
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4147
|
+
};
|
|
4148
|
+
} | {
|
|
4149
|
+
type: "SCHEDULED";
|
|
4150
|
+
data: {
|
|
4151
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4152
|
+
publishingDate?: Date | null | undefined;
|
|
4153
|
+
};
|
|
4154
|
+
} | null | undefined;
|
|
4155
|
+
}>>>;
|
|
4156
|
+
platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
4157
|
+
id: z.ZodString;
|
|
4158
|
+
itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4159
|
+
accountId: z.ZodString;
|
|
4160
|
+
platformId: z.ZodString;
|
|
4161
|
+
platformUrl: z.ZodString;
|
|
4162
|
+
platformPrice: z.ZodNumber;
|
|
4163
|
+
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "ARCHIVED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
4164
|
+
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4165
|
+
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4166
|
+
accountId: z.ZodString;
|
|
4167
|
+
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
4168
|
+
name: z.ZodString;
|
|
4169
|
+
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4170
|
+
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
4171
|
+
night: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4172
|
+
startsAt: z.ZodDate;
|
|
4173
|
+
endsAt: z.ZodDate;
|
|
4174
|
+
}, "strip", z.ZodTypeAny, {
|
|
4175
|
+
startsAt: Date;
|
|
4176
|
+
endsAt: Date;
|
|
4177
|
+
}, {
|
|
4178
|
+
startsAt: Date;
|
|
4179
|
+
endsAt: Date;
|
|
4180
|
+
}>>>;
|
|
4181
|
+
}, "strip", z.ZodTypeAny, {
|
|
4182
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
4183
|
+
userId: string | number;
|
|
4184
|
+
name: string;
|
|
4185
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4186
|
+
accountId: string;
|
|
4187
|
+
night?: {
|
|
4188
|
+
startsAt: Date;
|
|
4189
|
+
endsAt: Date;
|
|
4190
|
+
} | null | undefined;
|
|
4191
|
+
locale?: string | null | undefined;
|
|
4192
|
+
}, {
|
|
4193
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
4194
|
+
userId: string | number;
|
|
4195
|
+
name: string;
|
|
4196
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4197
|
+
accountId: string;
|
|
4198
|
+
night?: {
|
|
4199
|
+
startsAt: Date;
|
|
4200
|
+
endsAt: Date;
|
|
4201
|
+
} | null | undefined;
|
|
4202
|
+
locale?: string | null | undefined;
|
|
4203
|
+
}>>>;
|
|
4204
|
+
}, "strip", z.ZodTypeAny, {
|
|
4205
|
+
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
4206
|
+
id: string;
|
|
4207
|
+
itemId: string | number;
|
|
4208
|
+
accountId: string;
|
|
4209
|
+
platformId: string;
|
|
4210
|
+
platformUrl: string;
|
|
4211
|
+
platformPrice: number;
|
|
4212
|
+
account?: {
|
|
4213
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1572
4214
|
userId: string | number;
|
|
1573
|
-
|
|
4215
|
+
name: string;
|
|
4216
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4217
|
+
accountId: string;
|
|
4218
|
+
night?: {
|
|
4219
|
+
startsAt: Date;
|
|
4220
|
+
endsAt: Date;
|
|
4221
|
+
} | null | undefined;
|
|
4222
|
+
locale?: string | null | undefined;
|
|
4223
|
+
} | null | undefined;
|
|
4224
|
+
}, {
|
|
4225
|
+
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
4226
|
+
id: string;
|
|
4227
|
+
itemId: string | number;
|
|
4228
|
+
accountId: string;
|
|
4229
|
+
platformId: string;
|
|
4230
|
+
platformUrl: string;
|
|
4231
|
+
platformPrice: number;
|
|
4232
|
+
account?: {
|
|
4233
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
4234
|
+
userId: string | number;
|
|
4235
|
+
name: string;
|
|
4236
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4237
|
+
accountId: string;
|
|
4238
|
+
night?: {
|
|
4239
|
+
startsAt: Date;
|
|
4240
|
+
endsAt: Date;
|
|
4241
|
+
} | null | undefined;
|
|
4242
|
+
locale?: string | null | undefined;
|
|
4243
|
+
} | null | undefined;
|
|
4244
|
+
}>, "many">>>;
|
|
4245
|
+
createdAt: z.ZodDate;
|
|
4246
|
+
updatedAt: z.ZodDate;
|
|
4247
|
+
}, "strip", z.ZodTypeAny, {
|
|
4248
|
+
id: string | number;
|
|
4249
|
+
userId: string | number;
|
|
4250
|
+
createdAt: Date;
|
|
4251
|
+
name: string;
|
|
4252
|
+
updatedAt: Date;
|
|
4253
|
+
sold: boolean;
|
|
4254
|
+
customerId?: string | number | null | undefined;
|
|
4255
|
+
description?: string | null | undefined;
|
|
4256
|
+
colorIds?: number[] | null | undefined;
|
|
4257
|
+
packageSizeId?: number | null | undefined;
|
|
4258
|
+
sizeId?: number | null | undefined;
|
|
4259
|
+
labels?: {
|
|
4260
|
+
itemId: string | number;
|
|
4261
|
+
labelId: string | number;
|
|
4262
|
+
label?: {
|
|
4263
|
+
id: string | number;
|
|
1574
4264
|
createdAt: Date;
|
|
4265
|
+
name: string;
|
|
4266
|
+
isUserLabel: boolean;
|
|
4267
|
+
itemCount?: number | null | undefined;
|
|
4268
|
+
userId?: string | number | null | undefined;
|
|
1575
4269
|
} | null | undefined;
|
|
1576
|
-
index?: number | null | undefined;
|
|
1577
4270
|
}[] | null | undefined;
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
id: string;
|
|
4271
|
+
state?: number | null | undefined;
|
|
4272
|
+
fees?: {
|
|
4273
|
+
value: number;
|
|
4274
|
+
type: string;
|
|
4275
|
+
id: string | number;
|
|
4276
|
+
userId: string | number;
|
|
1583
4277
|
createdAt: Date;
|
|
1584
|
-
|
|
4278
|
+
name: string;
|
|
4279
|
+
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
4280
|
+
startDate: Date;
|
|
4281
|
+
active: boolean;
|
|
4282
|
+
updatedAt: Date;
|
|
4283
|
+
description?: string | null | undefined;
|
|
4284
|
+
endDate?: Date | null | undefined;
|
|
4285
|
+
itemId?: string | number | null | undefined;
|
|
4286
|
+
parentFeeId?: string | number | null | undefined;
|
|
1585
4287
|
}[] | null | undefined;
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
messageId: string;
|
|
1589
|
-
body: string;
|
|
1590
|
-
lang: string;
|
|
1591
|
-
} | null | undefined;
|
|
1592
|
-
}, {
|
|
1593
|
-
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
1594
|
-
status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
1595
|
-
id: string;
|
|
1596
|
-
createdAt: Date;
|
|
1597
|
-
conversationId: string;
|
|
1598
|
-
body?: string | null | undefined;
|
|
1599
|
-
offer?: {
|
|
1600
|
-
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
|
|
1601
|
-
id: string;
|
|
1602
|
-
price: number;
|
|
1603
|
-
messageId: string;
|
|
1604
|
-
originalPrice: number;
|
|
1605
|
-
transactionId?: string | null | undefined;
|
|
1606
|
-
platformOfferId?: string | null | undefined;
|
|
1607
|
-
} | null | undefined;
|
|
4288
|
+
categoryId?: number | null | undefined;
|
|
4289
|
+
brandId?: string | number | null | undefined;
|
|
1608
4290
|
files?: {
|
|
1609
4291
|
fileId: string;
|
|
1610
|
-
|
|
4292
|
+
itemId: string | number;
|
|
1611
4293
|
file?: {
|
|
1612
4294
|
path: string;
|
|
1613
4295
|
id: string;
|
|
@@ -1617,122 +4299,147 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1617
4299
|
} | null | undefined;
|
|
1618
4300
|
index?: number | null | undefined;
|
|
1619
4301
|
}[] | null | undefined;
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
4302
|
+
sex?: string | null | undefined;
|
|
4303
|
+
purchasePrice?: number | null | undefined;
|
|
4304
|
+
purchaseDate?: Date | null | undefined;
|
|
4305
|
+
purchasePlaceId?: string | number | null | undefined;
|
|
4306
|
+
purchased?: boolean | null | undefined;
|
|
4307
|
+
sellingPrice?: number | null | undefined;
|
|
4308
|
+
sellingDate?: Date | null | undefined;
|
|
4309
|
+
sellingPlaceId?: string | number | null | undefined;
|
|
4310
|
+
estimatedPrice?: number | null | undefined;
|
|
4311
|
+
feesSum?: number | null | undefined;
|
|
4312
|
+
customer?: {
|
|
4313
|
+
email: string;
|
|
4314
|
+
id: string | number;
|
|
4315
|
+
userId: string | number;
|
|
4316
|
+
firstName: string;
|
|
4317
|
+
lastName: string;
|
|
4318
|
+
birthDate: Date;
|
|
4319
|
+
idNumber: string;
|
|
4320
|
+
phone: string;
|
|
4321
|
+
iban: string;
|
|
4322
|
+
bic: string;
|
|
4323
|
+
phoneVerified: boolean;
|
|
4324
|
+
} | null | undefined;
|
|
4325
|
+
customerType?: string | null | undefined;
|
|
4326
|
+
customerPaid?: boolean | null | undefined;
|
|
4327
|
+
customerPaidDate?: Date | null | undefined;
|
|
4328
|
+
customerPaidType?: string | null | undefined;
|
|
4329
|
+
contractId?: string | number | null | undefined;
|
|
4330
|
+
fields?: {
|
|
4331
|
+
value: string;
|
|
4332
|
+
itemId: string | number;
|
|
4333
|
+
fieldId: string | number;
|
|
4334
|
+
}[] | null | undefined;
|
|
4335
|
+
lastHistory?: {
|
|
4336
|
+
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";
|
|
1624
4337
|
id: string;
|
|
1625
4338
|
createdAt: Date;
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
4339
|
+
itemId: string | number;
|
|
4340
|
+
data?: {
|
|
4341
|
+
type: "BUYER_PAID";
|
|
4342
|
+
data: {
|
|
4343
|
+
soldAccountId: string;
|
|
4344
|
+
soldOrderId: string;
|
|
4345
|
+
soldConversationId?: string | null | undefined;
|
|
4346
|
+
};
|
|
4347
|
+
} | {
|
|
4348
|
+
type: "DELIVERED";
|
|
4349
|
+
data: {
|
|
4350
|
+
soldAccountId: string;
|
|
4351
|
+
soldOrderId: string;
|
|
4352
|
+
soldConversationId?: string | null | undefined;
|
|
4353
|
+
};
|
|
4354
|
+
} | {
|
|
4355
|
+
type: "EMPTY";
|
|
4356
|
+
} | {
|
|
4357
|
+
type: "FAILED_TO_PUBLISH";
|
|
4358
|
+
data: {
|
|
4359
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4360
|
+
accountId?: string | null | undefined;
|
|
4361
|
+
reason?: string | null | undefined;
|
|
4362
|
+
};
|
|
4363
|
+
} | {
|
|
4364
|
+
type: "REPUBLISHING";
|
|
4365
|
+
data: {
|
|
4366
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4367
|
+
};
|
|
4368
|
+
} | {
|
|
4369
|
+
type: "SCHEDULED";
|
|
4370
|
+
data: {
|
|
4371
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4372
|
+
publishingDate?: Date | null | undefined;
|
|
4373
|
+
};
|
|
1652
4374
|
} | null | undefined;
|
|
1653
|
-
locale?: string | null | undefined;
|
|
1654
4375
|
} | null | undefined;
|
|
1655
|
-
|
|
4376
|
+
platforms?: {
|
|
4377
|
+
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
1656
4378
|
id: string;
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
photoFile?: {
|
|
1665
|
-
path: string;
|
|
1666
|
-
id: string;
|
|
4379
|
+
itemId: string | number;
|
|
4380
|
+
accountId: string;
|
|
4381
|
+
platformId: string;
|
|
4382
|
+
platformUrl: string;
|
|
4383
|
+
platformPrice: number;
|
|
4384
|
+
account?: {
|
|
4385
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1667
4386
|
userId: string | number;
|
|
1668
|
-
|
|
1669
|
-
|
|
4387
|
+
name: string;
|
|
4388
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4389
|
+
accountId: string;
|
|
4390
|
+
night?: {
|
|
4391
|
+
startsAt: Date;
|
|
4392
|
+
endsAt: Date;
|
|
4393
|
+
} | null | undefined;
|
|
4394
|
+
locale?: string | null | undefined;
|
|
1670
4395
|
} | null | undefined;
|
|
1671
4396
|
}[] | null | undefined;
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
fileId: string;
|
|
1690
|
-
messageId: string;
|
|
1691
|
-
file?: {
|
|
1692
|
-
path: string;
|
|
1693
|
-
id: string;
|
|
1694
|
-
userId: string | number;
|
|
1695
|
-
signedUrl: string;
|
|
1696
|
-
createdAt: Date;
|
|
1697
|
-
} | null | undefined;
|
|
1698
|
-
index?: number | null | undefined;
|
|
1699
|
-
}[] | null | undefined;
|
|
1700
|
-
conversationUserId?: string | null | undefined;
|
|
1701
|
-
platformMessageId?: string | null | undefined;
|
|
1702
|
-
statusHistory?: {
|
|
1703
|
-
status: "SCHEDULED" | "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
1704
|
-
id: string;
|
|
4397
|
+
}, {
|
|
4398
|
+
id: string | number;
|
|
4399
|
+
userId: string | number;
|
|
4400
|
+
createdAt: Date;
|
|
4401
|
+
name: string;
|
|
4402
|
+
updatedAt: Date;
|
|
4403
|
+
sold: boolean;
|
|
4404
|
+
customerId?: string | number | null | undefined;
|
|
4405
|
+
description?: string | null | undefined;
|
|
4406
|
+
colorIds?: number[] | null | undefined;
|
|
4407
|
+
packageSizeId?: number | null | undefined;
|
|
4408
|
+
sizeId?: number | null | undefined;
|
|
4409
|
+
labels?: {
|
|
4410
|
+
itemId: string | number;
|
|
4411
|
+
labelId: string | number;
|
|
4412
|
+
label?: {
|
|
4413
|
+
id: string | number;
|
|
1705
4414
|
createdAt: Date;
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
messageId: string;
|
|
1711
|
-
body: string;
|
|
1712
|
-
lang: string;
|
|
4415
|
+
name: string;
|
|
4416
|
+
isUserLabel: boolean;
|
|
4417
|
+
itemCount?: number | null | undefined;
|
|
4418
|
+
userId?: string | number | null | undefined;
|
|
1713
4419
|
} | null | undefined;
|
|
1714
|
-
} | null | undefined;
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
4420
|
+
}[] | null | undefined;
|
|
4421
|
+
state?: number | null | undefined;
|
|
4422
|
+
fees?: {
|
|
4423
|
+
value: number;
|
|
4424
|
+
type: string;
|
|
4425
|
+
id: string | number;
|
|
4426
|
+
userId: string | number;
|
|
4427
|
+
createdAt: Date;
|
|
4428
|
+
name: string;
|
|
4429
|
+
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
4430
|
+
startDate: Date;
|
|
4431
|
+
active: boolean;
|
|
4432
|
+
updatedAt: Date;
|
|
4433
|
+
description?: string | null | undefined;
|
|
4434
|
+
endDate?: Date | null | undefined;
|
|
4435
|
+
itemId?: string | number | null | undefined;
|
|
4436
|
+
parentFeeId?: string | number | null | undefined;
|
|
4437
|
+
}[] | null | undefined;
|
|
4438
|
+
categoryId?: number | null | undefined;
|
|
4439
|
+
brandId?: string | number | null | undefined;
|
|
1733
4440
|
files?: {
|
|
1734
4441
|
fileId: string;
|
|
1735
|
-
|
|
4442
|
+
itemId: string | number;
|
|
1736
4443
|
file?: {
|
|
1737
4444
|
path: string;
|
|
1738
4445
|
id: string;
|
|
@@ -1742,121 +4449,306 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1742
4449
|
} | null | undefined;
|
|
1743
4450
|
index?: number | null | undefined;
|
|
1744
4451
|
}[] | null | undefined;
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
4452
|
+
sex?: string | null | undefined;
|
|
4453
|
+
purchasePrice?: number | null | undefined;
|
|
4454
|
+
purchaseDate?: Date | null | undefined;
|
|
4455
|
+
purchasePlaceId?: string | number | null | undefined;
|
|
4456
|
+
purchased?: boolean | null | undefined;
|
|
4457
|
+
sellingPrice?: number | null | undefined;
|
|
4458
|
+
sellingDate?: Date | null | undefined;
|
|
4459
|
+
sellingPlaceId?: string | number | null | undefined;
|
|
4460
|
+
estimatedPrice?: number | null | undefined;
|
|
4461
|
+
feesSum?: number | null | undefined;
|
|
4462
|
+
customer?: {
|
|
4463
|
+
email: string;
|
|
4464
|
+
id: string | number;
|
|
4465
|
+
userId: string | number;
|
|
4466
|
+
firstName: string;
|
|
4467
|
+
lastName: string;
|
|
4468
|
+
birthDate: Date;
|
|
4469
|
+
idNumber: string;
|
|
4470
|
+
phone: string;
|
|
4471
|
+
iban: string;
|
|
4472
|
+
bic: string;
|
|
4473
|
+
phoneVerified: boolean;
|
|
4474
|
+
} | null | undefined;
|
|
4475
|
+
customerType?: string | null | undefined;
|
|
4476
|
+
customerPaid?: boolean | null | undefined;
|
|
4477
|
+
customerPaidDate?: Date | null | undefined;
|
|
4478
|
+
customerPaidType?: string | null | undefined;
|
|
4479
|
+
contractId?: string | number | null | undefined;
|
|
4480
|
+
fields?: {
|
|
4481
|
+
value: string;
|
|
4482
|
+
itemId: string | number;
|
|
4483
|
+
fieldId: string | number;
|
|
4484
|
+
}[] | null | undefined;
|
|
4485
|
+
lastHistory?: {
|
|
4486
|
+
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
4487
|
id: string;
|
|
1750
4488
|
createdAt: Date;
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
4489
|
+
itemId: string | number;
|
|
4490
|
+
data?: {
|
|
4491
|
+
type: "BUYER_PAID";
|
|
4492
|
+
data: {
|
|
4493
|
+
soldAccountId: string;
|
|
4494
|
+
soldOrderId: string;
|
|
4495
|
+
soldConversationId?: string | null | undefined;
|
|
4496
|
+
};
|
|
4497
|
+
} | {
|
|
4498
|
+
type: "DELIVERED";
|
|
4499
|
+
data: {
|
|
4500
|
+
soldAccountId: string;
|
|
4501
|
+
soldOrderId: string;
|
|
4502
|
+
soldConversationId?: string | null | undefined;
|
|
4503
|
+
};
|
|
4504
|
+
} | {
|
|
4505
|
+
type: "EMPTY";
|
|
4506
|
+
} | {
|
|
4507
|
+
type: "FAILED_TO_PUBLISH";
|
|
4508
|
+
data: {
|
|
4509
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4510
|
+
accountId?: string | null | undefined;
|
|
4511
|
+
reason?: string | null | undefined;
|
|
4512
|
+
};
|
|
4513
|
+
} | {
|
|
4514
|
+
type: "REPUBLISHING";
|
|
4515
|
+
data: {
|
|
4516
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4517
|
+
};
|
|
4518
|
+
} | {
|
|
4519
|
+
type: "SCHEDULED";
|
|
4520
|
+
data: {
|
|
4521
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4522
|
+
publishingDate?: Date | null | undefined;
|
|
4523
|
+
};
|
|
1776
4524
|
} | null | undefined;
|
|
1777
|
-
locale?: string | null | undefined;
|
|
1778
4525
|
} | null | undefined;
|
|
1779
|
-
|
|
4526
|
+
platforms?: {
|
|
4527
|
+
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
1780
4528
|
id: string;
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
photoFile?: {
|
|
1789
|
-
path: string;
|
|
1790
|
-
id: string;
|
|
4529
|
+
itemId: string | number;
|
|
4530
|
+
accountId: string;
|
|
4531
|
+
platformId: string;
|
|
4532
|
+
platformUrl: string;
|
|
4533
|
+
platformPrice: number;
|
|
4534
|
+
account?: {
|
|
4535
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
1791
4536
|
userId: string | number;
|
|
1792
|
-
|
|
4537
|
+
name: string;
|
|
4538
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4539
|
+
accountId: string;
|
|
4540
|
+
night?: {
|
|
4541
|
+
startsAt: Date;
|
|
4542
|
+
endsAt: Date;
|
|
4543
|
+
} | null | undefined;
|
|
4544
|
+
locale?: string | null | undefined;
|
|
4545
|
+
} | null | undefined;
|
|
4546
|
+
}[] | null | undefined;
|
|
4547
|
+
}>;
|
|
4548
|
+
deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4549
|
+
type: z.ZodLiteral<"ITEM">;
|
|
4550
|
+
}, "strip", z.ZodTypeAny, {
|
|
4551
|
+
type: "ITEM";
|
|
4552
|
+
item: {
|
|
4553
|
+
id: string | number;
|
|
4554
|
+
userId: string | number;
|
|
4555
|
+
createdAt: Date;
|
|
4556
|
+
name: string;
|
|
4557
|
+
updatedAt: Date;
|
|
4558
|
+
sold: boolean;
|
|
4559
|
+
customerId?: string | number | null | undefined;
|
|
4560
|
+
description?: string | null | undefined;
|
|
4561
|
+
colorIds?: number[] | null | undefined;
|
|
4562
|
+
packageSizeId?: number | null | undefined;
|
|
4563
|
+
sizeId?: number | null | undefined;
|
|
4564
|
+
labels?: {
|
|
4565
|
+
itemId: string | number;
|
|
4566
|
+
labelId: string | number;
|
|
4567
|
+
label?: {
|
|
4568
|
+
id: string | number;
|
|
1793
4569
|
createdAt: Date;
|
|
4570
|
+
name: string;
|
|
4571
|
+
isUserLabel: boolean;
|
|
4572
|
+
itemCount?: number | null | undefined;
|
|
4573
|
+
userId?: string | number | null | undefined;
|
|
1794
4574
|
} | null | undefined;
|
|
1795
4575
|
}[] | null | undefined;
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
4576
|
+
state?: number | null | undefined;
|
|
4577
|
+
fees?: {
|
|
4578
|
+
value: number;
|
|
4579
|
+
type: string;
|
|
4580
|
+
id: string | number;
|
|
4581
|
+
userId: string | number;
|
|
1800
4582
|
createdAt: Date;
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
userId: string | number;
|
|
1819
|
-
signedUrl: string;
|
|
1820
|
-
createdAt: Date;
|
|
1821
|
-
} | 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";
|
|
4583
|
+
name: string;
|
|
4584
|
+
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
4585
|
+
startDate: Date;
|
|
4586
|
+
active: boolean;
|
|
4587
|
+
updatedAt: Date;
|
|
4588
|
+
description?: string | null | undefined;
|
|
4589
|
+
endDate?: Date | null | undefined;
|
|
4590
|
+
itemId?: string | number | null | undefined;
|
|
4591
|
+
parentFeeId?: string | number | null | undefined;
|
|
4592
|
+
}[] | null | undefined;
|
|
4593
|
+
categoryId?: number | null | undefined;
|
|
4594
|
+
brandId?: string | number | null | undefined;
|
|
4595
|
+
files?: {
|
|
4596
|
+
fileId: string;
|
|
4597
|
+
itemId: string | number;
|
|
4598
|
+
file?: {
|
|
4599
|
+
path: string;
|
|
1828
4600
|
id: string;
|
|
4601
|
+
userId: string | number;
|
|
4602
|
+
signedUrl: string;
|
|
1829
4603
|
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;
|
|
1837
4604
|
} | null | undefined;
|
|
4605
|
+
index?: number | null | undefined;
|
|
4606
|
+
}[] | null | undefined;
|
|
4607
|
+
sex?: string | null | undefined;
|
|
4608
|
+
purchasePrice?: number | null | undefined;
|
|
4609
|
+
purchaseDate?: Date | null | undefined;
|
|
4610
|
+
purchasePlaceId?: string | number | null | undefined;
|
|
4611
|
+
purchased?: boolean | null | undefined;
|
|
4612
|
+
sellingPrice?: number | null | undefined;
|
|
4613
|
+
sellingDate?: Date | null | undefined;
|
|
4614
|
+
sellingPlaceId?: string | number | null | undefined;
|
|
4615
|
+
estimatedPrice?: number | null | undefined;
|
|
4616
|
+
feesSum?: number | null | undefined;
|
|
4617
|
+
customer?: {
|
|
4618
|
+
email: string;
|
|
4619
|
+
id: string | number;
|
|
4620
|
+
userId: string | number;
|
|
4621
|
+
firstName: string;
|
|
4622
|
+
lastName: string;
|
|
4623
|
+
birthDate: Date;
|
|
4624
|
+
idNumber: string;
|
|
4625
|
+
phone: string;
|
|
4626
|
+
iban: string;
|
|
4627
|
+
bic: string;
|
|
4628
|
+
phoneVerified: boolean;
|
|
1838
4629
|
} | null | undefined;
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
4630
|
+
customerType?: string | null | undefined;
|
|
4631
|
+
customerPaid?: boolean | null | undefined;
|
|
4632
|
+
customerPaidDate?: Date | null | undefined;
|
|
4633
|
+
customerPaidType?: string | null | undefined;
|
|
4634
|
+
contractId?: string | number | null | undefined;
|
|
4635
|
+
fields?: {
|
|
4636
|
+
value: string;
|
|
4637
|
+
itemId: string | number;
|
|
4638
|
+
fieldId: string | number;
|
|
4639
|
+
}[] | null | undefined;
|
|
4640
|
+
lastHistory?: {
|
|
4641
|
+
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";
|
|
1850
4642
|
id: string;
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
4643
|
+
createdAt: Date;
|
|
4644
|
+
itemId: string | number;
|
|
4645
|
+
data?: {
|
|
4646
|
+
type: "BUYER_PAID";
|
|
4647
|
+
data: {
|
|
4648
|
+
soldAccountId: string;
|
|
4649
|
+
soldOrderId: string;
|
|
4650
|
+
soldConversationId?: string | null | undefined;
|
|
4651
|
+
};
|
|
4652
|
+
} | {
|
|
4653
|
+
type: "DELIVERED";
|
|
4654
|
+
data: {
|
|
4655
|
+
soldAccountId: string;
|
|
4656
|
+
soldOrderId: string;
|
|
4657
|
+
soldConversationId?: string | null | undefined;
|
|
4658
|
+
};
|
|
4659
|
+
} | {
|
|
4660
|
+
type: "EMPTY";
|
|
4661
|
+
} | {
|
|
4662
|
+
type: "FAILED_TO_PUBLISH";
|
|
4663
|
+
data: {
|
|
4664
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4665
|
+
accountId?: string | null | undefined;
|
|
4666
|
+
reason?: string | null | undefined;
|
|
4667
|
+
};
|
|
4668
|
+
} | {
|
|
4669
|
+
type: "REPUBLISHING";
|
|
4670
|
+
data: {
|
|
4671
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4672
|
+
};
|
|
4673
|
+
} | {
|
|
4674
|
+
type: "SCHEDULED";
|
|
4675
|
+
data: {
|
|
4676
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4677
|
+
publishingDate?: Date | null | undefined;
|
|
4678
|
+
};
|
|
4679
|
+
} | null | undefined;
|
|
1856
4680
|
} | null | undefined;
|
|
4681
|
+
platforms?: {
|
|
4682
|
+
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
4683
|
+
id: string;
|
|
4684
|
+
itemId: string | number;
|
|
4685
|
+
accountId: string;
|
|
4686
|
+
platformId: string;
|
|
4687
|
+
platformUrl: string;
|
|
4688
|
+
platformPrice: number;
|
|
4689
|
+
account?: {
|
|
4690
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
4691
|
+
userId: string | number;
|
|
4692
|
+
name: string;
|
|
4693
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4694
|
+
accountId: string;
|
|
4695
|
+
night?: {
|
|
4696
|
+
startsAt: Date;
|
|
4697
|
+
endsAt: Date;
|
|
4698
|
+
} | null | undefined;
|
|
4699
|
+
locale?: string | null | undefined;
|
|
4700
|
+
} | null | undefined;
|
|
4701
|
+
}[] | null | undefined;
|
|
4702
|
+
};
|
|
4703
|
+
deleted?: boolean | null | undefined;
|
|
4704
|
+
}, {
|
|
4705
|
+
type: "ITEM";
|
|
4706
|
+
item: {
|
|
4707
|
+
id: string | number;
|
|
4708
|
+
userId: string | number;
|
|
4709
|
+
createdAt: Date;
|
|
4710
|
+
name: string;
|
|
4711
|
+
updatedAt: Date;
|
|
4712
|
+
sold: boolean;
|
|
4713
|
+
customerId?: string | number | null | undefined;
|
|
4714
|
+
description?: string | null | undefined;
|
|
4715
|
+
colorIds?: number[] | null | undefined;
|
|
4716
|
+
packageSizeId?: number | null | undefined;
|
|
4717
|
+
sizeId?: number | null | undefined;
|
|
4718
|
+
labels?: {
|
|
4719
|
+
itemId: string | number;
|
|
4720
|
+
labelId: string | number;
|
|
4721
|
+
label?: {
|
|
4722
|
+
id: string | number;
|
|
4723
|
+
createdAt: Date;
|
|
4724
|
+
name: string;
|
|
4725
|
+
isUserLabel: boolean;
|
|
4726
|
+
itemCount?: number | null | undefined;
|
|
4727
|
+
userId?: string | number | null | undefined;
|
|
4728
|
+
} | null | undefined;
|
|
4729
|
+
}[] | null | undefined;
|
|
4730
|
+
state?: number | null | undefined;
|
|
4731
|
+
fees?: {
|
|
4732
|
+
value: number;
|
|
4733
|
+
type: string;
|
|
4734
|
+
id: string | number;
|
|
4735
|
+
userId: string | number;
|
|
4736
|
+
createdAt: Date;
|
|
4737
|
+
name: string;
|
|
4738
|
+
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
4739
|
+
startDate: Date;
|
|
4740
|
+
active: boolean;
|
|
4741
|
+
updatedAt: Date;
|
|
4742
|
+
description?: string | null | undefined;
|
|
4743
|
+
endDate?: Date | null | undefined;
|
|
4744
|
+
itemId?: string | number | null | undefined;
|
|
4745
|
+
parentFeeId?: string | number | null | undefined;
|
|
4746
|
+
}[] | null | undefined;
|
|
4747
|
+
categoryId?: number | null | undefined;
|
|
4748
|
+
brandId?: string | number | null | undefined;
|
|
1857
4749
|
files?: {
|
|
1858
4750
|
fileId: string;
|
|
1859
|
-
|
|
4751
|
+
itemId: string | number;
|
|
1860
4752
|
file?: {
|
|
1861
4753
|
path: string;
|
|
1862
4754
|
id: string;
|
|
@@ -1866,27 +4758,286 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1866
4758
|
} | null | undefined;
|
|
1867
4759
|
index?: number | null | undefined;
|
|
1868
4760
|
}[] | null | undefined;
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
4761
|
+
sex?: string | null | undefined;
|
|
4762
|
+
purchasePrice?: number | null | undefined;
|
|
4763
|
+
purchaseDate?: Date | null | undefined;
|
|
4764
|
+
purchasePlaceId?: string | number | null | undefined;
|
|
4765
|
+
purchased?: boolean | null | undefined;
|
|
4766
|
+
sellingPrice?: number | null | undefined;
|
|
4767
|
+
sellingDate?: Date | null | undefined;
|
|
4768
|
+
sellingPlaceId?: string | number | null | undefined;
|
|
4769
|
+
estimatedPrice?: number | null | undefined;
|
|
4770
|
+
feesSum?: number | null | undefined;
|
|
4771
|
+
customer?: {
|
|
4772
|
+
email: string;
|
|
4773
|
+
id: string | number;
|
|
4774
|
+
userId: string | number;
|
|
4775
|
+
firstName: string;
|
|
4776
|
+
lastName: string;
|
|
4777
|
+
birthDate: Date;
|
|
4778
|
+
idNumber: string;
|
|
4779
|
+
phone: string;
|
|
4780
|
+
iban: string;
|
|
4781
|
+
bic: string;
|
|
4782
|
+
phoneVerified: boolean;
|
|
4783
|
+
} | null | undefined;
|
|
4784
|
+
customerType?: string | null | undefined;
|
|
4785
|
+
customerPaid?: boolean | null | undefined;
|
|
4786
|
+
customerPaidDate?: Date | null | undefined;
|
|
4787
|
+
customerPaidType?: string | null | undefined;
|
|
4788
|
+
contractId?: string | number | null | undefined;
|
|
4789
|
+
fields?: {
|
|
4790
|
+
value: string;
|
|
4791
|
+
itemId: string | number;
|
|
4792
|
+
fieldId: string | number;
|
|
4793
|
+
}[] | null | undefined;
|
|
4794
|
+
lastHistory?: {
|
|
4795
|
+
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
4796
|
id: string;
|
|
1874
4797
|
createdAt: Date;
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
4798
|
+
itemId: string | number;
|
|
4799
|
+
data?: {
|
|
4800
|
+
type: "BUYER_PAID";
|
|
4801
|
+
data: {
|
|
4802
|
+
soldAccountId: string;
|
|
4803
|
+
soldOrderId: string;
|
|
4804
|
+
soldConversationId?: string | null | undefined;
|
|
4805
|
+
};
|
|
4806
|
+
} | {
|
|
4807
|
+
type: "DELIVERED";
|
|
4808
|
+
data: {
|
|
4809
|
+
soldAccountId: string;
|
|
4810
|
+
soldOrderId: string;
|
|
4811
|
+
soldConversationId?: string | null | undefined;
|
|
4812
|
+
};
|
|
4813
|
+
} | {
|
|
4814
|
+
type: "EMPTY";
|
|
4815
|
+
} | {
|
|
4816
|
+
type: "FAILED_TO_PUBLISH";
|
|
4817
|
+
data: {
|
|
4818
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4819
|
+
accountId?: string | null | undefined;
|
|
4820
|
+
reason?: string | null | undefined;
|
|
4821
|
+
};
|
|
4822
|
+
} | {
|
|
4823
|
+
type: "REPUBLISHING";
|
|
4824
|
+
data: {
|
|
4825
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4826
|
+
};
|
|
4827
|
+
} | {
|
|
4828
|
+
type: "SCHEDULED";
|
|
4829
|
+
data: {
|
|
4830
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4831
|
+
publishingDate?: Date | null | undefined;
|
|
4832
|
+
};
|
|
4833
|
+
} | null | undefined;
|
|
1882
4834
|
} | null | undefined;
|
|
1883
|
-
|
|
4835
|
+
platforms?: {
|
|
4836
|
+
status: "ARCHIVED" | "DELETED" | "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
4837
|
+
id: string;
|
|
4838
|
+
itemId: string | number;
|
|
4839
|
+
accountId: string;
|
|
4840
|
+
platformId: string;
|
|
4841
|
+
platformUrl: string;
|
|
4842
|
+
platformPrice: number;
|
|
4843
|
+
account?: {
|
|
4844
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR";
|
|
4845
|
+
userId: string | number;
|
|
4846
|
+
name: string;
|
|
4847
|
+
platform: "VINTED" | "SHOPIFY";
|
|
4848
|
+
accountId: string;
|
|
4849
|
+
night?: {
|
|
4850
|
+
startsAt: Date;
|
|
4851
|
+
endsAt: Date;
|
|
4852
|
+
} | null | undefined;
|
|
4853
|
+
locale?: string | null | undefined;
|
|
4854
|
+
} | null | undefined;
|
|
4855
|
+
}[] | null | undefined;
|
|
4856
|
+
};
|
|
4857
|
+
deleted?: boolean | null | undefined;
|
|
1884
4858
|
}>, z.ZodObject<{
|
|
1885
|
-
|
|
4859
|
+
orderLabel: z.ZodObject<{
|
|
4860
|
+
id: z.ZodString;
|
|
4861
|
+
orderId: z.ZodString;
|
|
4862
|
+
fileId: z.ZodString;
|
|
4863
|
+
nonCroppedFileId: z.ZodString;
|
|
4864
|
+
originalFileId: z.ZodString;
|
|
4865
|
+
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4866
|
+
id: z.ZodString;
|
|
4867
|
+
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4868
|
+
path: z.ZodString;
|
|
4869
|
+
signedUrl: z.ZodString;
|
|
4870
|
+
createdAt: z.ZodDate;
|
|
4871
|
+
}, "strip", z.ZodTypeAny, {
|
|
4872
|
+
path: string;
|
|
4873
|
+
id: string;
|
|
4874
|
+
userId: string | number;
|
|
4875
|
+
signedUrl: string;
|
|
4876
|
+
createdAt: Date;
|
|
4877
|
+
}, {
|
|
4878
|
+
path: string;
|
|
4879
|
+
id: string;
|
|
4880
|
+
userId: string | number;
|
|
4881
|
+
signedUrl: string;
|
|
4882
|
+
createdAt: Date;
|
|
4883
|
+
}>>>;
|
|
4884
|
+
nonCroppedFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4885
|
+
id: z.ZodString;
|
|
4886
|
+
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4887
|
+
path: z.ZodString;
|
|
4888
|
+
signedUrl: z.ZodString;
|
|
4889
|
+
createdAt: z.ZodDate;
|
|
4890
|
+
}, "strip", z.ZodTypeAny, {
|
|
4891
|
+
path: string;
|
|
4892
|
+
id: string;
|
|
4893
|
+
userId: string | number;
|
|
4894
|
+
signedUrl: string;
|
|
4895
|
+
createdAt: Date;
|
|
4896
|
+
}, {
|
|
4897
|
+
path: string;
|
|
4898
|
+
id: string;
|
|
4899
|
+
userId: string | number;
|
|
4900
|
+
signedUrl: string;
|
|
4901
|
+
createdAt: Date;
|
|
4902
|
+
}>>>;
|
|
4903
|
+
originalFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4904
|
+
id: z.ZodString;
|
|
4905
|
+
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4906
|
+
path: z.ZodString;
|
|
4907
|
+
signedUrl: z.ZodString;
|
|
4908
|
+
createdAt: z.ZodDate;
|
|
4909
|
+
}, "strip", z.ZodTypeAny, {
|
|
4910
|
+
path: string;
|
|
4911
|
+
id: string;
|
|
4912
|
+
userId: string | number;
|
|
4913
|
+
signedUrl: string;
|
|
4914
|
+
createdAt: Date;
|
|
4915
|
+
}, {
|
|
4916
|
+
path: string;
|
|
4917
|
+
id: string;
|
|
4918
|
+
userId: string | number;
|
|
4919
|
+
signedUrl: string;
|
|
4920
|
+
createdAt: Date;
|
|
4921
|
+
}>>>;
|
|
4922
|
+
}, "strip", z.ZodTypeAny, {
|
|
4923
|
+
id: string;
|
|
4924
|
+
fileId: string;
|
|
4925
|
+
orderId: string;
|
|
4926
|
+
nonCroppedFileId: string;
|
|
4927
|
+
originalFileId: string;
|
|
4928
|
+
file?: {
|
|
4929
|
+
path: string;
|
|
4930
|
+
id: string;
|
|
4931
|
+
userId: string | number;
|
|
4932
|
+
signedUrl: string;
|
|
4933
|
+
createdAt: Date;
|
|
4934
|
+
} | null | undefined;
|
|
4935
|
+
originalFile?: {
|
|
4936
|
+
path: string;
|
|
4937
|
+
id: string;
|
|
4938
|
+
userId: string | number;
|
|
4939
|
+
signedUrl: string;
|
|
4940
|
+
createdAt: Date;
|
|
4941
|
+
} | null | undefined;
|
|
4942
|
+
nonCroppedFile?: {
|
|
4943
|
+
path: string;
|
|
4944
|
+
id: string;
|
|
4945
|
+
userId: string | number;
|
|
4946
|
+
signedUrl: string;
|
|
4947
|
+
createdAt: Date;
|
|
4948
|
+
} | null | undefined;
|
|
4949
|
+
}, {
|
|
4950
|
+
id: string;
|
|
4951
|
+
fileId: string;
|
|
4952
|
+
orderId: string;
|
|
4953
|
+
nonCroppedFileId: string;
|
|
4954
|
+
originalFileId: string;
|
|
4955
|
+
file?: {
|
|
4956
|
+
path: string;
|
|
4957
|
+
id: string;
|
|
4958
|
+
userId: string | number;
|
|
4959
|
+
signedUrl: string;
|
|
4960
|
+
createdAt: Date;
|
|
4961
|
+
} | null | undefined;
|
|
4962
|
+
originalFile?: {
|
|
4963
|
+
path: string;
|
|
4964
|
+
id: string;
|
|
4965
|
+
userId: string | number;
|
|
4966
|
+
signedUrl: string;
|
|
4967
|
+
createdAt: Date;
|
|
4968
|
+
} | null | undefined;
|
|
4969
|
+
nonCroppedFile?: {
|
|
4970
|
+
path: string;
|
|
4971
|
+
id: string;
|
|
4972
|
+
userId: string | number;
|
|
4973
|
+
signedUrl: string;
|
|
4974
|
+
createdAt: Date;
|
|
4975
|
+
} | null | undefined;
|
|
4976
|
+
}>;
|
|
4977
|
+
deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4978
|
+
type: z.ZodLiteral<"ORDER_LABEL">;
|
|
1886
4979
|
}, "strip", z.ZodTypeAny, {
|
|
1887
|
-
type: "
|
|
4980
|
+
type: "ORDER_LABEL";
|
|
4981
|
+
orderLabel: {
|
|
4982
|
+
id: string;
|
|
4983
|
+
fileId: string;
|
|
4984
|
+
orderId: string;
|
|
4985
|
+
nonCroppedFileId: string;
|
|
4986
|
+
originalFileId: string;
|
|
4987
|
+
file?: {
|
|
4988
|
+
path: string;
|
|
4989
|
+
id: string;
|
|
4990
|
+
userId: string | number;
|
|
4991
|
+
signedUrl: string;
|
|
4992
|
+
createdAt: Date;
|
|
4993
|
+
} | null | undefined;
|
|
4994
|
+
originalFile?: {
|
|
4995
|
+
path: string;
|
|
4996
|
+
id: string;
|
|
4997
|
+
userId: string | number;
|
|
4998
|
+
signedUrl: string;
|
|
4999
|
+
createdAt: Date;
|
|
5000
|
+
} | null | undefined;
|
|
5001
|
+
nonCroppedFile?: {
|
|
5002
|
+
path: string;
|
|
5003
|
+
id: string;
|
|
5004
|
+
userId: string | number;
|
|
5005
|
+
signedUrl: string;
|
|
5006
|
+
createdAt: Date;
|
|
5007
|
+
} | null | undefined;
|
|
5008
|
+
};
|
|
5009
|
+
deleted?: boolean | null | undefined;
|
|
1888
5010
|
}, {
|
|
1889
|
-
type: "
|
|
5011
|
+
type: "ORDER_LABEL";
|
|
5012
|
+
orderLabel: {
|
|
5013
|
+
id: string;
|
|
5014
|
+
fileId: string;
|
|
5015
|
+
orderId: string;
|
|
5016
|
+
nonCroppedFileId: string;
|
|
5017
|
+
originalFileId: string;
|
|
5018
|
+
file?: {
|
|
5019
|
+
path: string;
|
|
5020
|
+
id: string;
|
|
5021
|
+
userId: string | number;
|
|
5022
|
+
signedUrl: string;
|
|
5023
|
+
createdAt: Date;
|
|
5024
|
+
} | null | undefined;
|
|
5025
|
+
originalFile?: {
|
|
5026
|
+
path: string;
|
|
5027
|
+
id: string;
|
|
5028
|
+
userId: string | number;
|
|
5029
|
+
signedUrl: string;
|
|
5030
|
+
createdAt: Date;
|
|
5031
|
+
} | null | undefined;
|
|
5032
|
+
nonCroppedFile?: {
|
|
5033
|
+
path: string;
|
|
5034
|
+
id: string;
|
|
5035
|
+
userId: string | number;
|
|
5036
|
+
signedUrl: string;
|
|
5037
|
+
createdAt: Date;
|
|
5038
|
+
} | null | undefined;
|
|
5039
|
+
};
|
|
5040
|
+
deleted?: boolean | null | undefined;
|
|
1890
5041
|
}>, z.ZodObject<{
|
|
1891
5042
|
accountId: z.ZodString;
|
|
1892
5043
|
otp: z.ZodString;
|
|
@@ -1908,6 +5059,497 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1908
5059
|
}, {
|
|
1909
5060
|
type: "RECONNECT";
|
|
1910
5061
|
accountId: string;
|
|
5062
|
+
}>, z.ZodObject<{
|
|
5063
|
+
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5064
|
+
brand: z.ZodObject<{
|
|
5065
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
5066
|
+
name: z.ZodString;
|
|
5067
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
5068
|
+
createdAt: z.ZodDate;
|
|
5069
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5070
|
+
}, "strip", z.ZodTypeAny, {
|
|
5071
|
+
id: string | number;
|
|
5072
|
+
createdAt: Date;
|
|
5073
|
+
name: string;
|
|
5074
|
+
itemCount?: number | null | undefined;
|
|
5075
|
+
userId?: string | number | null | undefined;
|
|
5076
|
+
}, {
|
|
5077
|
+
id: string | number;
|
|
5078
|
+
createdAt: Date;
|
|
5079
|
+
name: string;
|
|
5080
|
+
itemCount?: number | null | undefined;
|
|
5081
|
+
userId?: string | number | null | undefined;
|
|
5082
|
+
}>;
|
|
5083
|
+
type: z.ZodLiteral<"BRAND">;
|
|
5084
|
+
}, "strip", z.ZodTypeAny, {
|
|
5085
|
+
type: "BRAND";
|
|
5086
|
+
brand: {
|
|
5087
|
+
id: string | number;
|
|
5088
|
+
createdAt: Date;
|
|
5089
|
+
name: string;
|
|
5090
|
+
itemCount?: number | null | undefined;
|
|
5091
|
+
userId?: string | number | null | undefined;
|
|
5092
|
+
};
|
|
5093
|
+
}, {
|
|
5094
|
+
type: "BRAND";
|
|
5095
|
+
brand: {
|
|
5096
|
+
id: string | number;
|
|
5097
|
+
createdAt: Date;
|
|
5098
|
+
name: string;
|
|
5099
|
+
itemCount?: number | null | undefined;
|
|
5100
|
+
userId?: string | number | null | undefined;
|
|
5101
|
+
};
|
|
5102
|
+
}>, z.ZodObject<{
|
|
5103
|
+
catalog: z.ZodObject<{
|
|
5104
|
+
id: z.ZodNumber;
|
|
5105
|
+
multipleSizeGroupIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
5106
|
+
title: z.ZodString;
|
|
5107
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5108
|
+
}, "strip", z.ZodTypeAny, {
|
|
5109
|
+
id: number;
|
|
5110
|
+
title: string;
|
|
5111
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
5112
|
+
itemCount?: number | null | undefined;
|
|
5113
|
+
}, {
|
|
5114
|
+
id: number;
|
|
5115
|
+
title: string;
|
|
5116
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
5117
|
+
itemCount?: number | null | undefined;
|
|
5118
|
+
}>;
|
|
5119
|
+
type: z.ZodLiteral<"CATALOG">;
|
|
5120
|
+
}, "strip", z.ZodTypeAny, {
|
|
5121
|
+
type: "CATALOG";
|
|
5122
|
+
catalog: {
|
|
5123
|
+
id: number;
|
|
5124
|
+
title: string;
|
|
5125
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
5126
|
+
itemCount?: number | null | undefined;
|
|
5127
|
+
};
|
|
5128
|
+
}, {
|
|
5129
|
+
type: "CATALOG";
|
|
5130
|
+
catalog: {
|
|
5131
|
+
id: number;
|
|
5132
|
+
title: string;
|
|
5133
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
5134
|
+
itemCount?: number | null | undefined;
|
|
5135
|
+
};
|
|
5136
|
+
}>, z.ZodObject<{
|
|
5137
|
+
color: z.ZodObject<{
|
|
5138
|
+
id: z.ZodNumber;
|
|
5139
|
+
title: z.ZodString;
|
|
5140
|
+
}, "strip", z.ZodTypeAny, {
|
|
5141
|
+
id: number;
|
|
5142
|
+
title: string;
|
|
5143
|
+
}, {
|
|
5144
|
+
id: number;
|
|
5145
|
+
title: string;
|
|
5146
|
+
}>;
|
|
5147
|
+
type: z.ZodLiteral<"COLOR">;
|
|
5148
|
+
}, "strip", z.ZodTypeAny, {
|
|
5149
|
+
type: "COLOR";
|
|
5150
|
+
color: {
|
|
5151
|
+
id: number;
|
|
5152
|
+
title: string;
|
|
5153
|
+
};
|
|
5154
|
+
}, {
|
|
5155
|
+
type: "COLOR";
|
|
5156
|
+
color: {
|
|
5157
|
+
id: number;
|
|
5158
|
+
title: string;
|
|
5159
|
+
};
|
|
5160
|
+
}>, z.ZodObject<{
|
|
5161
|
+
favorite: z.ZodObject<{
|
|
5162
|
+
resourceId: z.ZodNumber;
|
|
5163
|
+
type: z.ZodEnum<["BRAND", "CATALOG", "PURCHASE_PRICE", "ESTIMATED_PRICE", "PURCHASE_PLACE", "SELLING_PLACE", "SIZE", "COLOR", "PACKAGE_SIZE", "CONDITION"]>;
|
|
5164
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5165
|
+
userId: z.ZodNumber;
|
|
5166
|
+
isSuggestion: z.ZodBoolean;
|
|
5167
|
+
}, "strip", z.ZodTypeAny, {
|
|
5168
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
5169
|
+
userId: number;
|
|
5170
|
+
resourceId: number;
|
|
5171
|
+
isSuggestion: boolean;
|
|
5172
|
+
value?: number | null | undefined;
|
|
5173
|
+
}, {
|
|
5174
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
5175
|
+
userId: number;
|
|
5176
|
+
resourceId: number;
|
|
5177
|
+
isSuggestion: boolean;
|
|
5178
|
+
value?: number | null | undefined;
|
|
5179
|
+
}>;
|
|
5180
|
+
type: z.ZodLiteral<"FAVORITE">;
|
|
5181
|
+
}, "strip", z.ZodTypeAny, {
|
|
5182
|
+
type: "FAVORITE";
|
|
5183
|
+
favorite: {
|
|
5184
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
5185
|
+
userId: number;
|
|
5186
|
+
resourceId: number;
|
|
5187
|
+
isSuggestion: boolean;
|
|
5188
|
+
value?: number | null | undefined;
|
|
5189
|
+
};
|
|
5190
|
+
}, {
|
|
5191
|
+
type: "FAVORITE";
|
|
5192
|
+
favorite: {
|
|
5193
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
5194
|
+
userId: number;
|
|
5195
|
+
resourceId: number;
|
|
5196
|
+
isSuggestion: boolean;
|
|
5197
|
+
value?: number | null | undefined;
|
|
5198
|
+
};
|
|
5199
|
+
}>, z.ZodObject<{
|
|
5200
|
+
historyType: z.ZodObject<{
|
|
5201
|
+
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"]>;
|
|
5202
|
+
count: z.ZodNumber;
|
|
5203
|
+
}, "strip", z.ZodTypeAny, {
|
|
5204
|
+
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";
|
|
5205
|
+
count: number;
|
|
5206
|
+
}, {
|
|
5207
|
+
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";
|
|
5208
|
+
count: number;
|
|
5209
|
+
}>;
|
|
5210
|
+
type: z.ZodLiteral<"HISTORY_TYPE">;
|
|
5211
|
+
}, "strip", z.ZodTypeAny, {
|
|
5212
|
+
type: "HISTORY_TYPE";
|
|
5213
|
+
historyType: {
|
|
5214
|
+
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";
|
|
5215
|
+
count: number;
|
|
5216
|
+
};
|
|
5217
|
+
}, {
|
|
5218
|
+
type: "HISTORY_TYPE";
|
|
5219
|
+
historyType: {
|
|
5220
|
+
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";
|
|
5221
|
+
count: number;
|
|
5222
|
+
};
|
|
5223
|
+
}>, z.ZodObject<{
|
|
5224
|
+
label: z.ZodObject<{
|
|
5225
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
5226
|
+
name: z.ZodString;
|
|
5227
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
5228
|
+
isUserLabel: z.ZodBoolean;
|
|
5229
|
+
createdAt: z.ZodDate;
|
|
5230
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5231
|
+
}, "strip", z.ZodTypeAny, {
|
|
5232
|
+
id: string | number;
|
|
5233
|
+
createdAt: Date;
|
|
5234
|
+
name: string;
|
|
5235
|
+
isUserLabel: boolean;
|
|
5236
|
+
itemCount?: number | null | undefined;
|
|
5237
|
+
userId?: string | number | null | undefined;
|
|
5238
|
+
}, {
|
|
5239
|
+
id: string | number;
|
|
5240
|
+
createdAt: Date;
|
|
5241
|
+
name: string;
|
|
5242
|
+
isUserLabel: boolean;
|
|
5243
|
+
itemCount?: number | null | undefined;
|
|
5244
|
+
userId?: string | number | null | undefined;
|
|
5245
|
+
}>;
|
|
5246
|
+
type: z.ZodLiteral<"LABEL">;
|
|
5247
|
+
}, "strip", z.ZodTypeAny, {
|
|
5248
|
+
type: "LABEL";
|
|
5249
|
+
label: {
|
|
5250
|
+
id: string | number;
|
|
5251
|
+
createdAt: Date;
|
|
5252
|
+
name: string;
|
|
5253
|
+
isUserLabel: boolean;
|
|
5254
|
+
itemCount?: number | null | undefined;
|
|
5255
|
+
userId?: string | number | null | undefined;
|
|
5256
|
+
};
|
|
5257
|
+
}, {
|
|
5258
|
+
type: "LABEL";
|
|
5259
|
+
label: {
|
|
5260
|
+
id: string | number;
|
|
5261
|
+
createdAt: Date;
|
|
5262
|
+
name: string;
|
|
5263
|
+
isUserLabel: boolean;
|
|
5264
|
+
itemCount?: number | null | undefined;
|
|
5265
|
+
userId?: string | number | null | undefined;
|
|
5266
|
+
};
|
|
5267
|
+
}>, z.ZodObject<{
|
|
5268
|
+
packageSize: z.ZodObject<{
|
|
5269
|
+
id: z.ZodNumber;
|
|
5270
|
+
title: z.ZodString;
|
|
5271
|
+
weightDescription: z.ZodString;
|
|
5272
|
+
}, "strip", z.ZodTypeAny, {
|
|
5273
|
+
id: number;
|
|
5274
|
+
title: string;
|
|
5275
|
+
weightDescription: string;
|
|
5276
|
+
}, {
|
|
5277
|
+
id: number;
|
|
5278
|
+
title: string;
|
|
5279
|
+
weightDescription: string;
|
|
5280
|
+
}>;
|
|
5281
|
+
type: z.ZodLiteral<"PACKAGE_SIZE">;
|
|
5282
|
+
}, "strip", z.ZodTypeAny, {
|
|
5283
|
+
type: "PACKAGE_SIZE";
|
|
5284
|
+
packageSize: {
|
|
5285
|
+
id: number;
|
|
5286
|
+
title: string;
|
|
5287
|
+
weightDescription: string;
|
|
5288
|
+
};
|
|
5289
|
+
}, {
|
|
5290
|
+
type: "PACKAGE_SIZE";
|
|
5291
|
+
packageSize: {
|
|
5292
|
+
id: number;
|
|
5293
|
+
title: string;
|
|
5294
|
+
weightDescription: string;
|
|
5295
|
+
};
|
|
5296
|
+
}>, z.ZodObject<{
|
|
5297
|
+
place: z.ZodObject<{
|
|
5298
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
5299
|
+
name: z.ZodString;
|
|
5300
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
5301
|
+
createdAt: z.ZodDate;
|
|
5302
|
+
}, "strip", z.ZodTypeAny, {
|
|
5303
|
+
id: string | number;
|
|
5304
|
+
createdAt: Date;
|
|
5305
|
+
name: string;
|
|
5306
|
+
userId?: string | number | null | undefined;
|
|
5307
|
+
}, {
|
|
5308
|
+
id: string | number;
|
|
5309
|
+
createdAt: Date;
|
|
5310
|
+
name: string;
|
|
5311
|
+
userId?: string | number | null | undefined;
|
|
5312
|
+
}>;
|
|
5313
|
+
type: z.ZodLiteral<"PLACE">;
|
|
5314
|
+
}, "strip", z.ZodTypeAny, {
|
|
5315
|
+
type: "PLACE";
|
|
5316
|
+
place: {
|
|
5317
|
+
id: string | number;
|
|
5318
|
+
createdAt: Date;
|
|
5319
|
+
name: string;
|
|
5320
|
+
userId?: string | number | null | undefined;
|
|
5321
|
+
};
|
|
5322
|
+
}, {
|
|
5323
|
+
type: "PLACE";
|
|
5324
|
+
place: {
|
|
5325
|
+
id: string | number;
|
|
5326
|
+
createdAt: Date;
|
|
5327
|
+
name: string;
|
|
5328
|
+
userId?: string | number | null | undefined;
|
|
5329
|
+
};
|
|
5330
|
+
}>, z.ZodObject<{
|
|
5331
|
+
size: z.ZodObject<{
|
|
5332
|
+
id: z.ZodNumber;
|
|
5333
|
+
title: z.ZodString;
|
|
5334
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5335
|
+
}, "strip", z.ZodTypeAny, {
|
|
5336
|
+
id: number;
|
|
5337
|
+
title: string;
|
|
5338
|
+
itemCount?: number | null | undefined;
|
|
5339
|
+
}, {
|
|
5340
|
+
id: number;
|
|
5341
|
+
title: string;
|
|
5342
|
+
itemCount?: number | null | undefined;
|
|
5343
|
+
}>;
|
|
5344
|
+
type: z.ZodLiteral<"SIZE">;
|
|
5345
|
+
}, "strip", z.ZodTypeAny, {
|
|
5346
|
+
type: "SIZE";
|
|
5347
|
+
size: {
|
|
5348
|
+
id: number;
|
|
5349
|
+
title: string;
|
|
5350
|
+
itemCount?: number | null | undefined;
|
|
5351
|
+
};
|
|
5352
|
+
}, {
|
|
5353
|
+
type: "SIZE";
|
|
5354
|
+
size: {
|
|
5355
|
+
id: number;
|
|
5356
|
+
title: string;
|
|
5357
|
+
itemCount?: number | null | undefined;
|
|
5358
|
+
};
|
|
5359
|
+
}>, z.ZodObject<{
|
|
5360
|
+
status: z.ZodObject<{
|
|
5361
|
+
id: z.ZodNumber;
|
|
5362
|
+
title: z.ZodString;
|
|
5363
|
+
description: z.ZodString;
|
|
5364
|
+
}, "strip", z.ZodTypeAny, {
|
|
5365
|
+
id: number;
|
|
5366
|
+
title: string;
|
|
5367
|
+
description: string;
|
|
5368
|
+
}, {
|
|
5369
|
+
id: number;
|
|
5370
|
+
title: string;
|
|
5371
|
+
description: string;
|
|
5372
|
+
}>;
|
|
5373
|
+
type: z.ZodLiteral<"STATUS">;
|
|
5374
|
+
}, "strip", z.ZodTypeAny, {
|
|
5375
|
+
type: "STATUS";
|
|
5376
|
+
status: {
|
|
5377
|
+
id: number;
|
|
5378
|
+
title: string;
|
|
5379
|
+
description: string;
|
|
5380
|
+
};
|
|
5381
|
+
}, {
|
|
5382
|
+
type: "STATUS";
|
|
5383
|
+
status: {
|
|
5384
|
+
id: number;
|
|
5385
|
+
title: string;
|
|
5386
|
+
description: string;
|
|
5387
|
+
};
|
|
5388
|
+
}>]>;
|
|
5389
|
+
deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5390
|
+
type: z.ZodLiteral<"RESOURCE">;
|
|
5391
|
+
}, "strip", z.ZodTypeAny, {
|
|
5392
|
+
value: {
|
|
5393
|
+
type: "BRAND";
|
|
5394
|
+
brand: {
|
|
5395
|
+
id: string | number;
|
|
5396
|
+
createdAt: Date;
|
|
5397
|
+
name: string;
|
|
5398
|
+
itemCount?: number | null | undefined;
|
|
5399
|
+
userId?: string | number | null | undefined;
|
|
5400
|
+
};
|
|
5401
|
+
} | {
|
|
5402
|
+
type: "CATALOG";
|
|
5403
|
+
catalog: {
|
|
5404
|
+
id: number;
|
|
5405
|
+
title: string;
|
|
5406
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
5407
|
+
itemCount?: number | null | undefined;
|
|
5408
|
+
};
|
|
5409
|
+
} | {
|
|
5410
|
+
type: "COLOR";
|
|
5411
|
+
color: {
|
|
5412
|
+
id: number;
|
|
5413
|
+
title: string;
|
|
5414
|
+
};
|
|
5415
|
+
} | {
|
|
5416
|
+
type: "FAVORITE";
|
|
5417
|
+
favorite: {
|
|
5418
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
5419
|
+
userId: number;
|
|
5420
|
+
resourceId: number;
|
|
5421
|
+
isSuggestion: boolean;
|
|
5422
|
+
value?: number | null | undefined;
|
|
5423
|
+
};
|
|
5424
|
+
} | {
|
|
5425
|
+
type: "HISTORY_TYPE";
|
|
5426
|
+
historyType: {
|
|
5427
|
+
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";
|
|
5428
|
+
count: number;
|
|
5429
|
+
};
|
|
5430
|
+
} | {
|
|
5431
|
+
type: "LABEL";
|
|
5432
|
+
label: {
|
|
5433
|
+
id: string | number;
|
|
5434
|
+
createdAt: Date;
|
|
5435
|
+
name: string;
|
|
5436
|
+
isUserLabel: boolean;
|
|
5437
|
+
itemCount?: number | null | undefined;
|
|
5438
|
+
userId?: string | number | null | undefined;
|
|
5439
|
+
};
|
|
5440
|
+
} | {
|
|
5441
|
+
type: "PACKAGE_SIZE";
|
|
5442
|
+
packageSize: {
|
|
5443
|
+
id: number;
|
|
5444
|
+
title: string;
|
|
5445
|
+
weightDescription: string;
|
|
5446
|
+
};
|
|
5447
|
+
} | {
|
|
5448
|
+
type: "PLACE";
|
|
5449
|
+
place: {
|
|
5450
|
+
id: string | number;
|
|
5451
|
+
createdAt: Date;
|
|
5452
|
+
name: string;
|
|
5453
|
+
userId?: string | number | null | undefined;
|
|
5454
|
+
};
|
|
5455
|
+
} | {
|
|
5456
|
+
type: "SIZE";
|
|
5457
|
+
size: {
|
|
5458
|
+
id: number;
|
|
5459
|
+
title: string;
|
|
5460
|
+
itemCount?: number | null | undefined;
|
|
5461
|
+
};
|
|
5462
|
+
} | {
|
|
5463
|
+
type: "STATUS";
|
|
5464
|
+
status: {
|
|
5465
|
+
id: number;
|
|
5466
|
+
title: string;
|
|
5467
|
+
description: string;
|
|
5468
|
+
};
|
|
5469
|
+
};
|
|
5470
|
+
type: "RESOURCE";
|
|
5471
|
+
deleted?: boolean | null | undefined;
|
|
5472
|
+
}, {
|
|
5473
|
+
value: {
|
|
5474
|
+
type: "BRAND";
|
|
5475
|
+
brand: {
|
|
5476
|
+
id: string | number;
|
|
5477
|
+
createdAt: Date;
|
|
5478
|
+
name: string;
|
|
5479
|
+
itemCount?: number | null | undefined;
|
|
5480
|
+
userId?: string | number | null | undefined;
|
|
5481
|
+
};
|
|
5482
|
+
} | {
|
|
5483
|
+
type: "CATALOG";
|
|
5484
|
+
catalog: {
|
|
5485
|
+
id: number;
|
|
5486
|
+
title: string;
|
|
5487
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
5488
|
+
itemCount?: number | null | undefined;
|
|
5489
|
+
};
|
|
5490
|
+
} | {
|
|
5491
|
+
type: "COLOR";
|
|
5492
|
+
color: {
|
|
5493
|
+
id: number;
|
|
5494
|
+
title: string;
|
|
5495
|
+
};
|
|
5496
|
+
} | {
|
|
5497
|
+
type: "FAVORITE";
|
|
5498
|
+
favorite: {
|
|
5499
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
5500
|
+
userId: number;
|
|
5501
|
+
resourceId: number;
|
|
5502
|
+
isSuggestion: boolean;
|
|
5503
|
+
value?: number | null | undefined;
|
|
5504
|
+
};
|
|
5505
|
+
} | {
|
|
5506
|
+
type: "HISTORY_TYPE";
|
|
5507
|
+
historyType: {
|
|
5508
|
+
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";
|
|
5509
|
+
count: number;
|
|
5510
|
+
};
|
|
5511
|
+
} | {
|
|
5512
|
+
type: "LABEL";
|
|
5513
|
+
label: {
|
|
5514
|
+
id: string | number;
|
|
5515
|
+
createdAt: Date;
|
|
5516
|
+
name: string;
|
|
5517
|
+
isUserLabel: boolean;
|
|
5518
|
+
itemCount?: number | null | undefined;
|
|
5519
|
+
userId?: string | number | null | undefined;
|
|
5520
|
+
};
|
|
5521
|
+
} | {
|
|
5522
|
+
type: "PACKAGE_SIZE";
|
|
5523
|
+
packageSize: {
|
|
5524
|
+
id: number;
|
|
5525
|
+
title: string;
|
|
5526
|
+
weightDescription: string;
|
|
5527
|
+
};
|
|
5528
|
+
} | {
|
|
5529
|
+
type: "PLACE";
|
|
5530
|
+
place: {
|
|
5531
|
+
id: string | number;
|
|
5532
|
+
createdAt: Date;
|
|
5533
|
+
name: string;
|
|
5534
|
+
userId?: string | number | null | undefined;
|
|
5535
|
+
};
|
|
5536
|
+
} | {
|
|
5537
|
+
type: "SIZE";
|
|
5538
|
+
size: {
|
|
5539
|
+
id: number;
|
|
5540
|
+
title: string;
|
|
5541
|
+
itemCount?: number | null | undefined;
|
|
5542
|
+
};
|
|
5543
|
+
} | {
|
|
5544
|
+
type: "STATUS";
|
|
5545
|
+
status: {
|
|
5546
|
+
id: number;
|
|
5547
|
+
title: string;
|
|
5548
|
+
description: string;
|
|
5549
|
+
};
|
|
5550
|
+
};
|
|
5551
|
+
type: "RESOURCE";
|
|
5552
|
+
deleted?: boolean | null | undefined;
|
|
1911
5553
|
}>, z.ZodObject<{
|
|
1912
5554
|
accountId: z.ZodString;
|
|
1913
5555
|
data: z.ZodObject<{
|