controlresell 2.9.4 → 2.9.6
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 +2 -2
- package/src/com/controlresell/api/requests/items/cancel/CancelRequest.d.ts +16 -0
- package/src/com/controlresell/api/requests/items/cancel/CancelRequest.d.ts.map +1 -0
- package/src/com/controlresell/api/requests/items/cancel/CancelRequest.js +8 -0
- package/src/com/controlresell/api/requests/items/cancel/CancelRequest.js.map +1 -0
- package/src/com/controlresell/api/requests/items/cancel/CancelRequest.ts +9 -0
- package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.d.ts +4 -0
- package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.d.ts.map +1 -0
- package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.js +5 -0
- package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.js.map +1 -0
- package/src/com/controlresell/api/requests/items/cancel/CancelRequestAction.ts +6 -0
- package/src/com/controlresell/api/requests/items/publish/PublishRequest.d.ts +3 -0
- package/src/com/controlresell/api/requests/items/publish/PublishRequest.d.ts.map +1 -1
- package/src/com/controlresell/api/requests/items/publish/PublishRequest.js +1 -0
- package/src/com/controlresell/api/requests/items/publish/PublishRequest.js.map +1 -1
- package/src/com/controlresell/api/requests/items/publish/PublishRequest.ts +1 -0
- package/src/com/controlresell/api/requests/items/republish/RepublishRequest.d.ts +3 -0
- package/src/com/controlresell/api/requests/items/republish/RepublishRequest.d.ts.map +1 -1
- package/src/com/controlresell/api/requests/items/republish/RepublishRequest.js +1 -0
- package/src/com/controlresell/api/requests/items/republish/RepublishRequest.js.map +1 -1
- package/src/com/controlresell/api/requests/items/republish/RepublishRequest.ts +1 -0
- package/src/com/controlresell/api/responses/items/ItemActions.d.ts +10 -0
- package/src/com/controlresell/api/responses/items/ItemActions.d.ts.map +1 -0
- package/src/com/controlresell/api/responses/items/ItemActions.js +6 -0
- package/src/com/controlresell/api/responses/items/ItemActions.js.map +1 -0
- package/src/com/controlresell/api/responses/items/ItemActions.ts +7 -0
- package/src/com/controlresell/api/responses/items/ItemsWithFilters.d.ts +68 -5
- package/src/com/controlresell/api/responses/items/ItemsWithFilters.d.ts.map +1 -1
- package/src/com/controlresell/api/responses/items/ListedItem.d.ts +52 -3
- package/src/com/controlresell/api/responses/items/ListedItem.d.ts.map +1 -1
- package/src/com/controlresell/api/responses/items/ListedItem.js +2 -2
- package/src/com/controlresell/api/responses/items/ListedItem.js.map +1 -1
- package/src/com/controlresell/api/responses/items/ListedItem.ts +2 -2
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.d.ts +2 -2
- package/src/com/controlresell/inbox/models/transactions/items/TransactionWithItems.d.ts +2235 -338
- package/src/com/controlresell/inbox/models/transactions/items/TransactionWithItems.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/CreatedItems.d.ts +2250 -353
- package/src/com/controlresell/inventory/models/items/CreatedItems.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/Item.d.ts +1701 -142
- package/src/com/controlresell/inventory/models/items/Item.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/Item.js +1 -0
- package/src/com/controlresell/inventory/models/items/Item.js.map +1 -1
- package/src/com/controlresell/inventory/models/items/Item.ts +1 -0
- package/src/com/controlresell/inventory/models/items/ItemUpdate.d.ts +2250 -353
- package/src/com/controlresell/inventory/models/items/ItemUpdate.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/UpdatedItem.d.ts +2250 -353
- package/src/com/controlresell/inventory/models/items/UpdatedItem.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/history/CreateItemHistoryPayload.d.ts +29 -0
- package/src/com/controlresell/inventory/models/items/history/CreateItemHistoryPayload.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/history/ItemHistory.d.ts +29 -0
- package/src/com/controlresell/inventory/models/items/history/ItemHistory.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.d.ts +40 -0
- package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.js +6 -0
- package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.js.map +1 -1
- package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.ts +8 -0
- package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryPublishedPayload.d.ts +10 -0
- package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryPublishedPayload.d.ts.map +1 -0
- package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryPublishedPayload.js +6 -0
- package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryPublishedPayload.js.map +1 -0
- package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryPublishedPayload.ts +7 -0
- package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts +2766 -531
- package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts.map +1 -1
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +2190 -293
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts.map +1 -1
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +7057 -3263
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts.map +1 -1
- package/src/index.d.ts +4 -0
- package/src/index.d.ts.map +1 -1
- package/src/index.js +4 -0
- package/src/index.js.map +1 -1
- package/src/index.ts +4 -0
|
@@ -1367,6 +1367,25 @@ export declare const UserOrdersSchema: z.ZodObject<{
|
|
|
1367
1367
|
accountId: string;
|
|
1368
1368
|
caseId: string;
|
|
1369
1369
|
};
|
|
1370
|
+
}>, z.ZodObject<{
|
|
1371
|
+
data: z.ZodObject<{
|
|
1372
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
1373
|
+
}, "strip", z.ZodTypeAny, {
|
|
1374
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1375
|
+
}, {
|
|
1376
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1377
|
+
}>;
|
|
1378
|
+
type: z.ZodLiteral<"PUBLISHED">;
|
|
1379
|
+
}, "strip", z.ZodTypeAny, {
|
|
1380
|
+
type: "PUBLISHED";
|
|
1381
|
+
data: {
|
|
1382
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1383
|
+
};
|
|
1384
|
+
}, {
|
|
1385
|
+
type: "PUBLISHED";
|
|
1386
|
+
data: {
|
|
1387
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1388
|
+
};
|
|
1370
1389
|
}>, z.ZodObject<{
|
|
1371
1390
|
data: z.ZodObject<{
|
|
1372
1391
|
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
@@ -1766,6 +1785,11 @@ export declare const UserOrdersSchema: z.ZodObject<{
|
|
|
1766
1785
|
accountId: string;
|
|
1767
1786
|
caseId: string;
|
|
1768
1787
|
};
|
|
1788
|
+
} | {
|
|
1789
|
+
type: "PUBLISHED";
|
|
1790
|
+
data: {
|
|
1791
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1792
|
+
};
|
|
1769
1793
|
} | {
|
|
1770
1794
|
type: "REPUBLISHING";
|
|
1771
1795
|
data: {
|
|
@@ -1924,6 +1948,11 @@ export declare const UserOrdersSchema: z.ZodObject<{
|
|
|
1924
1948
|
accountId: string;
|
|
1925
1949
|
caseId: string;
|
|
1926
1950
|
};
|
|
1951
|
+
} | {
|
|
1952
|
+
type: "PUBLISHED";
|
|
1953
|
+
data: {
|
|
1954
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
1955
|
+
};
|
|
1927
1956
|
} | {
|
|
1928
1957
|
type: "REPUBLISHING";
|
|
1929
1958
|
data: {
|
|
@@ -2107,125 +2136,135 @@ export declare const UserOrdersSchema: z.ZodObject<{
|
|
|
2107
2136
|
viewsCount?: number | null | undefined;
|
|
2108
2137
|
favoritesCount?: number | null | undefined;
|
|
2109
2138
|
}>, "many">>>;
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
labels?: {
|
|
2125
|
-
itemId: string | number;
|
|
2126
|
-
labelId: string | number;
|
|
2127
|
-
label?: {
|
|
2128
|
-
id: string | number;
|
|
2129
|
-
name: string;
|
|
2130
|
-
createdAt: Date;
|
|
2131
|
-
isUserLabel: boolean;
|
|
2132
|
-
userId?: string | number | null | undefined;
|
|
2133
|
-
itemCount?: number | null | undefined;
|
|
2134
|
-
parentId?: unknown;
|
|
2135
|
-
} | null | undefined;
|
|
2136
|
-
}[] | null | undefined;
|
|
2137
|
-
files?: {
|
|
2138
|
-
itemId: string | number;
|
|
2139
|
-
fileId: string;
|
|
2140
|
-
index?: number | null | undefined;
|
|
2141
|
-
file?: {
|
|
2142
|
-
path: string;
|
|
2143
|
-
userId: string | number;
|
|
2144
|
-
id: string;
|
|
2145
|
-
createdAt: Date;
|
|
2146
|
-
signedUrl: string;
|
|
2147
|
-
} | null | undefined;
|
|
2148
|
-
}[] | null | undefined;
|
|
2149
|
-
fields?: {
|
|
2150
|
-
value: string;
|
|
2151
|
-
itemId: string | number;
|
|
2152
|
-
fieldId: string | number;
|
|
2153
|
-
}[] | null | undefined;
|
|
2154
|
-
sku?: string | null | undefined;
|
|
2155
|
-
categoryId?: number | null | undefined;
|
|
2156
|
-
brandId?: string | number | null | undefined;
|
|
2157
|
-
sex?: string | null | undefined;
|
|
2158
|
-
purchasePrice?: number | null | undefined;
|
|
2159
|
-
purchaseDate?: Date | null | undefined;
|
|
2160
|
-
purchasePlaceId?: string | number | null | undefined;
|
|
2161
|
-
purchased?: boolean | null | undefined;
|
|
2162
|
-
sellingPrice?: number | null | undefined;
|
|
2163
|
-
sellingDate?: Date | null | undefined;
|
|
2164
|
-
sellingPlaceId?: string | number | null | undefined;
|
|
2165
|
-
estimatedPrice?: number | null | undefined;
|
|
2166
|
-
fees?: {
|
|
2167
|
-
value: number;
|
|
2168
|
-
type: string;
|
|
2169
|
-
userId: string | number;
|
|
2170
|
-
id: string | number;
|
|
2171
|
-
updatedAt: Date;
|
|
2172
|
-
name: string;
|
|
2173
|
-
createdAt: Date;
|
|
2174
|
-
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
2175
|
-
startDate: Date;
|
|
2176
|
-
active: boolean;
|
|
2177
|
-
description?: string | null | undefined;
|
|
2178
|
-
itemId?: string | number | null | undefined;
|
|
2179
|
-
endDate?: Date | null | undefined;
|
|
2180
|
-
parentFeeId?: string | number | null | undefined;
|
|
2181
|
-
}[] | null | undefined;
|
|
2182
|
-
feesSum?: number | null | undefined;
|
|
2183
|
-
customerId?: string | number | null | undefined;
|
|
2184
|
-
customer?: {
|
|
2185
|
-
userId: string | number;
|
|
2186
|
-
id: string | number;
|
|
2187
|
-
email: string;
|
|
2188
|
-
firstName: string;
|
|
2189
|
-
lastName: string;
|
|
2190
|
-
birthDate: Date;
|
|
2191
|
-
idNumber: string;
|
|
2192
|
-
phone: string;
|
|
2193
|
-
iban: string;
|
|
2194
|
-
bic: string;
|
|
2195
|
-
phoneVerified: boolean;
|
|
2196
|
-
} | null | undefined;
|
|
2197
|
-
customerType?: string | null | undefined;
|
|
2198
|
-
customerPaid?: boolean | null | undefined;
|
|
2199
|
-
customerPaidDate?: Date | null | undefined;
|
|
2200
|
-
customerPaidType?: string | null | undefined;
|
|
2201
|
-
contractId?: string | number | null | undefined;
|
|
2202
|
-
lastHistory?: {
|
|
2203
|
-
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
2204
|
-
id: string;
|
|
2205
|
-
createdAt: Date;
|
|
2206
|
-
itemId: string | number;
|
|
2207
|
-
data?: {
|
|
2139
|
+
history: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2140
|
+
id: z.ZodString;
|
|
2141
|
+
itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2142
|
+
type: z.ZodEnum<["IMPORTED", "ARCHIVED", "UNARCHIVED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED_RETRY", "REPUBLISHING_RETRY", "PUBLISH_CANCELED", "SCHEDULED", "REPUBLISHING", "IMAGE_PROCESSING_DONE", "REPUBLISHED", "REPUBLISH_CANCELED", "UPDATING", "UPDATED", "UPDATE_CANCELED", "CANCELED", "DISPUTE", "DELETING", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND", "LIFECYCLE_STARTED", "LIFECYCLE_COMPLETED", "LIFECYCLE_CANCELED"]>;
|
|
2143
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2144
|
+
data: z.ZodObject<{
|
|
2145
|
+
targetItemHistoryId: z.ZodString;
|
|
2146
|
+
}, "strip", z.ZodTypeAny, {
|
|
2147
|
+
targetItemHistoryId: string;
|
|
2148
|
+
}, {
|
|
2149
|
+
targetItemHistoryId: string;
|
|
2150
|
+
}>;
|
|
2151
|
+
type: z.ZodLiteral<"ACTION_CANCELED">;
|
|
2152
|
+
}, "strip", z.ZodTypeAny, {
|
|
2208
2153
|
type: "ACTION_CANCELED";
|
|
2209
2154
|
data: {
|
|
2210
2155
|
targetItemHistoryId: string;
|
|
2211
2156
|
};
|
|
2212
|
-
}
|
|
2157
|
+
}, {
|
|
2158
|
+
type: "ACTION_CANCELED";
|
|
2159
|
+
data: {
|
|
2160
|
+
targetItemHistoryId: string;
|
|
2161
|
+
};
|
|
2162
|
+
}>, z.ZodObject<{
|
|
2163
|
+
data: z.ZodObject<{
|
|
2164
|
+
soldAccountId: z.ZodString;
|
|
2165
|
+
soldOrderId: z.ZodString;
|
|
2166
|
+
soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2167
|
+
}, "strip", z.ZodTypeAny, {
|
|
2168
|
+
soldAccountId: string;
|
|
2169
|
+
soldOrderId: string;
|
|
2170
|
+
soldConversationId?: string | null | undefined;
|
|
2171
|
+
}, {
|
|
2172
|
+
soldAccountId: string;
|
|
2173
|
+
soldOrderId: string;
|
|
2174
|
+
soldConversationId?: string | null | undefined;
|
|
2175
|
+
}>;
|
|
2176
|
+
type: z.ZodLiteral<"BUYER_PAID">;
|
|
2177
|
+
}, "strip", z.ZodTypeAny, {
|
|
2213
2178
|
type: "BUYER_PAID";
|
|
2214
2179
|
data: {
|
|
2215
2180
|
soldAccountId: string;
|
|
2216
2181
|
soldOrderId: string;
|
|
2217
2182
|
soldConversationId?: string | null | undefined;
|
|
2218
2183
|
};
|
|
2219
|
-
}
|
|
2184
|
+
}, {
|
|
2185
|
+
type: "BUYER_PAID";
|
|
2186
|
+
data: {
|
|
2187
|
+
soldAccountId: string;
|
|
2188
|
+
soldOrderId: string;
|
|
2189
|
+
soldConversationId?: string | null | undefined;
|
|
2190
|
+
};
|
|
2191
|
+
}>, z.ZodObject<{
|
|
2192
|
+
data: z.ZodObject<{
|
|
2193
|
+
soldAccountId: z.ZodString;
|
|
2194
|
+
soldOrderId: z.ZodString;
|
|
2195
|
+
soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2196
|
+
}, "strip", z.ZodTypeAny, {
|
|
2197
|
+
soldAccountId: string;
|
|
2198
|
+
soldOrderId: string;
|
|
2199
|
+
soldConversationId?: string | null | undefined;
|
|
2200
|
+
}, {
|
|
2201
|
+
soldAccountId: string;
|
|
2202
|
+
soldOrderId: string;
|
|
2203
|
+
soldConversationId?: string | null | undefined;
|
|
2204
|
+
}>;
|
|
2205
|
+
type: z.ZodLiteral<"DELIVERED">;
|
|
2206
|
+
}, "strip", z.ZodTypeAny, {
|
|
2220
2207
|
type: "DELIVERED";
|
|
2221
2208
|
data: {
|
|
2222
2209
|
soldAccountId: string;
|
|
2223
2210
|
soldOrderId: string;
|
|
2224
2211
|
soldConversationId?: string | null | undefined;
|
|
2225
2212
|
};
|
|
2226
|
-
}
|
|
2213
|
+
}, {
|
|
2214
|
+
type: "DELIVERED";
|
|
2215
|
+
data: {
|
|
2216
|
+
soldAccountId: string;
|
|
2217
|
+
soldOrderId: string;
|
|
2218
|
+
soldConversationId?: string | null | undefined;
|
|
2219
|
+
};
|
|
2220
|
+
}>, z.ZodObject<{
|
|
2221
|
+
type: z.ZodLiteral<"EMPTY">;
|
|
2222
|
+
}, "strip", z.ZodTypeAny, {
|
|
2227
2223
|
type: "EMPTY";
|
|
2228
|
-
}
|
|
2224
|
+
}, {
|
|
2225
|
+
type: "EMPTY";
|
|
2226
|
+
}>, z.ZodObject<{
|
|
2227
|
+
data: z.ZodObject<{
|
|
2228
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2229
|
+
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2230
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2231
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2232
|
+
field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
|
|
2233
|
+
autoFixable: z.ZodBoolean;
|
|
2234
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2235
|
+
}, "strip", z.ZodTypeAny, {
|
|
2236
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2237
|
+
autoFixable: boolean;
|
|
2238
|
+
error?: string | null | undefined;
|
|
2239
|
+
}, {
|
|
2240
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2241
|
+
autoFixable: boolean;
|
|
2242
|
+
error?: string | null | undefined;
|
|
2243
|
+
}>, "many">>>;
|
|
2244
|
+
itemHistoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2245
|
+
}, "strip", z.ZodTypeAny, {
|
|
2246
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2247
|
+
accountId?: string | null | undefined;
|
|
2248
|
+
reason?: string | null | undefined;
|
|
2249
|
+
fields?: {
|
|
2250
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2251
|
+
autoFixable: boolean;
|
|
2252
|
+
error?: string | null | undefined;
|
|
2253
|
+
}[] | null | undefined;
|
|
2254
|
+
itemHistoryId?: string | null | undefined;
|
|
2255
|
+
}, {
|
|
2256
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2257
|
+
accountId?: string | null | undefined;
|
|
2258
|
+
reason?: string | null | undefined;
|
|
2259
|
+
fields?: {
|
|
2260
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2261
|
+
autoFixable: boolean;
|
|
2262
|
+
error?: string | null | undefined;
|
|
2263
|
+
}[] | null | undefined;
|
|
2264
|
+
itemHistoryId?: string | null | undefined;
|
|
2265
|
+
}>;
|
|
2266
|
+
type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
|
|
2267
|
+
}, "strip", z.ZodTypeAny, {
|
|
2229
2268
|
type: "FAILED_TO_PUBLISH";
|
|
2230
2269
|
data: {
|
|
2231
2270
|
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
@@ -2238,19 +2277,2293 @@ export declare const UserOrdersSchema: z.ZodObject<{
|
|
|
2238
2277
|
}[] | null | undefined;
|
|
2239
2278
|
itemHistoryId?: string | null | undefined;
|
|
2240
2279
|
};
|
|
2241
|
-
}
|
|
2242
|
-
type: "
|
|
2280
|
+
}, {
|
|
2281
|
+
type: "FAILED_TO_PUBLISH";
|
|
2243
2282
|
data: {
|
|
2244
2283
|
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
originalPhash: string;
|
|
2284
|
+
accountId?: string | null | undefined;
|
|
2285
|
+
reason?: string | null | undefined;
|
|
2286
|
+
fields?: {
|
|
2287
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2288
|
+
autoFixable: boolean;
|
|
2289
|
+
error?: string | null | undefined;
|
|
2252
2290
|
}[] | null | undefined;
|
|
2253
|
-
|
|
2291
|
+
itemHistoryId?: string | null | undefined;
|
|
2292
|
+
};
|
|
2293
|
+
}>, z.ZodObject<{
|
|
2294
|
+
data: z.ZodObject<{
|
|
2295
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2296
|
+
variations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2297
|
+
fileId: z.ZodString;
|
|
2298
|
+
seed: z.ZodNumber;
|
|
2299
|
+
phash: z.ZodString;
|
|
2300
|
+
distanceOriginal: z.ZodNumber;
|
|
2301
|
+
originalImageUrl: z.ZodString;
|
|
2302
|
+
originalPhash: z.ZodString;
|
|
2303
|
+
}, "strip", z.ZodTypeAny, {
|
|
2304
|
+
fileId: string;
|
|
2305
|
+
seed: number;
|
|
2306
|
+
phash: string;
|
|
2307
|
+
distanceOriginal: number;
|
|
2308
|
+
originalImageUrl: string;
|
|
2309
|
+
originalPhash: string;
|
|
2310
|
+
}, {
|
|
2311
|
+
fileId: string;
|
|
2312
|
+
seed: number;
|
|
2313
|
+
phash: string;
|
|
2314
|
+
distanceOriginal: number;
|
|
2315
|
+
originalImageUrl: string;
|
|
2316
|
+
originalPhash: string;
|
|
2317
|
+
}>, "many">>>;
|
|
2318
|
+
originalPhashes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2319
|
+
}, "strip", z.ZodTypeAny, {
|
|
2320
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2321
|
+
variations?: {
|
|
2322
|
+
fileId: string;
|
|
2323
|
+
seed: number;
|
|
2324
|
+
phash: string;
|
|
2325
|
+
distanceOriginal: number;
|
|
2326
|
+
originalImageUrl: string;
|
|
2327
|
+
originalPhash: string;
|
|
2328
|
+
}[] | null | undefined;
|
|
2329
|
+
originalPhashes?: string[] | null | undefined;
|
|
2330
|
+
}, {
|
|
2331
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2332
|
+
variations?: {
|
|
2333
|
+
fileId: string;
|
|
2334
|
+
seed: number;
|
|
2335
|
+
phash: string;
|
|
2336
|
+
distanceOriginal: number;
|
|
2337
|
+
originalImageUrl: string;
|
|
2338
|
+
originalPhash: string;
|
|
2339
|
+
}[] | null | undefined;
|
|
2340
|
+
originalPhashes?: string[] | null | undefined;
|
|
2341
|
+
}>;
|
|
2342
|
+
type: z.ZodLiteral<"IMAGE_PROCESSING_DONE">;
|
|
2343
|
+
}, "strip", z.ZodTypeAny, {
|
|
2344
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
2345
|
+
data: {
|
|
2346
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2347
|
+
variations?: {
|
|
2348
|
+
fileId: string;
|
|
2349
|
+
seed: number;
|
|
2350
|
+
phash: string;
|
|
2351
|
+
distanceOriginal: number;
|
|
2352
|
+
originalImageUrl: string;
|
|
2353
|
+
originalPhash: string;
|
|
2354
|
+
}[] | null | undefined;
|
|
2355
|
+
originalPhashes?: string[] | null | undefined;
|
|
2356
|
+
};
|
|
2357
|
+
}, {
|
|
2358
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
2359
|
+
data: {
|
|
2360
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2361
|
+
variations?: {
|
|
2362
|
+
fileId: string;
|
|
2363
|
+
seed: number;
|
|
2364
|
+
phash: string;
|
|
2365
|
+
distanceOriginal: number;
|
|
2366
|
+
originalImageUrl: string;
|
|
2367
|
+
originalPhash: string;
|
|
2368
|
+
}[] | null | undefined;
|
|
2369
|
+
originalPhashes?: string[] | null | undefined;
|
|
2370
|
+
};
|
|
2371
|
+
}>, z.ZodObject<{
|
|
2372
|
+
data: z.ZodObject<{
|
|
2373
|
+
post: z.ZodObject<{
|
|
2374
|
+
platformId: z.ZodString;
|
|
2375
|
+
platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2376
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2377
|
+
post: z.ZodObject<{
|
|
2378
|
+
brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2379
|
+
catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2380
|
+
catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2381
|
+
colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2382
|
+
colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
2383
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2384
|
+
measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2385
|
+
measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2386
|
+
packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2387
|
+
photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2388
|
+
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2389
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2390
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2391
|
+
sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2392
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2393
|
+
statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2394
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2395
|
+
isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2396
|
+
isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2397
|
+
availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2398
|
+
material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
2399
|
+
manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2400
|
+
labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2401
|
+
}, "strip", z.ZodTypeAny, {
|
|
2402
|
+
status?: string | null | undefined;
|
|
2403
|
+
price?: number | null | undefined;
|
|
2404
|
+
currency?: string | null | undefined;
|
|
2405
|
+
brand?: string | null | undefined;
|
|
2406
|
+
catalog?: string | null | undefined;
|
|
2407
|
+
catalogId?: number | null | undefined;
|
|
2408
|
+
colors?: string[] | null | undefined;
|
|
2409
|
+
colorIds?: number[] | null | undefined;
|
|
2410
|
+
description?: string | null | undefined;
|
|
2411
|
+
measurementLength?: number | null | undefined;
|
|
2412
|
+
measurementWidth?: number | null | undefined;
|
|
2413
|
+
packageSizeId?: number | null | undefined;
|
|
2414
|
+
photoUrls?: string[] | null | undefined;
|
|
2415
|
+
size?: string | null | undefined;
|
|
2416
|
+
sizeId?: number | null | undefined;
|
|
2417
|
+
statusId?: number | null | undefined;
|
|
2418
|
+
title?: string | null | undefined;
|
|
2419
|
+
isDraft?: boolean | null | undefined;
|
|
2420
|
+
isArchived?: boolean | null | undefined;
|
|
2421
|
+
availableQuantity?: number | null | undefined;
|
|
2422
|
+
material?: number[] | null | undefined;
|
|
2423
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2424
|
+
labels?: string[] | null | undefined;
|
|
2425
|
+
}, {
|
|
2426
|
+
status?: string | null | undefined;
|
|
2427
|
+
price?: number | null | undefined;
|
|
2428
|
+
currency?: string | null | undefined;
|
|
2429
|
+
brand?: string | null | undefined;
|
|
2430
|
+
catalog?: string | null | undefined;
|
|
2431
|
+
catalogId?: number | null | undefined;
|
|
2432
|
+
colors?: string[] | null | undefined;
|
|
2433
|
+
colorIds?: number[] | null | undefined;
|
|
2434
|
+
description?: string | null | undefined;
|
|
2435
|
+
measurementLength?: number | null | undefined;
|
|
2436
|
+
measurementWidth?: number | null | undefined;
|
|
2437
|
+
packageSizeId?: number | null | undefined;
|
|
2438
|
+
photoUrls?: string[] | null | undefined;
|
|
2439
|
+
size?: string | null | undefined;
|
|
2440
|
+
sizeId?: number | null | undefined;
|
|
2441
|
+
statusId?: number | null | undefined;
|
|
2442
|
+
title?: string | null | undefined;
|
|
2443
|
+
isDraft?: boolean | null | undefined;
|
|
2444
|
+
isArchived?: boolean | null | undefined;
|
|
2445
|
+
availableQuantity?: number | null | undefined;
|
|
2446
|
+
material?: number[] | null | undefined;
|
|
2447
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2448
|
+
labels?: string[] | null | undefined;
|
|
2449
|
+
}>;
|
|
2450
|
+
}, "strip", z.ZodTypeAny, {
|
|
2451
|
+
platformId: string;
|
|
2452
|
+
post: {
|
|
2453
|
+
status?: string | null | undefined;
|
|
2454
|
+
price?: number | null | undefined;
|
|
2455
|
+
currency?: string | null | undefined;
|
|
2456
|
+
brand?: string | null | undefined;
|
|
2457
|
+
catalog?: string | null | undefined;
|
|
2458
|
+
catalogId?: number | null | undefined;
|
|
2459
|
+
colors?: string[] | null | undefined;
|
|
2460
|
+
colorIds?: number[] | null | undefined;
|
|
2461
|
+
description?: string | null | undefined;
|
|
2462
|
+
measurementLength?: number | null | undefined;
|
|
2463
|
+
measurementWidth?: number | null | undefined;
|
|
2464
|
+
packageSizeId?: number | null | undefined;
|
|
2465
|
+
photoUrls?: string[] | null | undefined;
|
|
2466
|
+
size?: string | null | undefined;
|
|
2467
|
+
sizeId?: number | null | undefined;
|
|
2468
|
+
statusId?: number | null | undefined;
|
|
2469
|
+
title?: string | null | undefined;
|
|
2470
|
+
isDraft?: boolean | null | undefined;
|
|
2471
|
+
isArchived?: boolean | null | undefined;
|
|
2472
|
+
availableQuantity?: number | null | undefined;
|
|
2473
|
+
material?: number[] | null | undefined;
|
|
2474
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2475
|
+
labels?: string[] | null | undefined;
|
|
2476
|
+
};
|
|
2477
|
+
createdAt?: Date | null | undefined;
|
|
2478
|
+
platformUrl?: string | null | undefined;
|
|
2479
|
+
}, {
|
|
2480
|
+
platformId: string;
|
|
2481
|
+
post: {
|
|
2482
|
+
status?: string | null | undefined;
|
|
2483
|
+
price?: number | null | undefined;
|
|
2484
|
+
currency?: string | null | undefined;
|
|
2485
|
+
brand?: string | null | undefined;
|
|
2486
|
+
catalog?: string | null | undefined;
|
|
2487
|
+
catalogId?: number | null | undefined;
|
|
2488
|
+
colors?: string[] | null | undefined;
|
|
2489
|
+
colorIds?: number[] | null | undefined;
|
|
2490
|
+
description?: string | null | undefined;
|
|
2491
|
+
measurementLength?: number | null | undefined;
|
|
2492
|
+
measurementWidth?: number | null | undefined;
|
|
2493
|
+
packageSizeId?: number | null | undefined;
|
|
2494
|
+
photoUrls?: string[] | null | undefined;
|
|
2495
|
+
size?: string | null | undefined;
|
|
2496
|
+
sizeId?: number | null | undefined;
|
|
2497
|
+
statusId?: number | null | undefined;
|
|
2498
|
+
title?: string | null | undefined;
|
|
2499
|
+
isDraft?: boolean | null | undefined;
|
|
2500
|
+
isArchived?: boolean | null | undefined;
|
|
2501
|
+
availableQuantity?: number | null | undefined;
|
|
2502
|
+
material?: number[] | null | undefined;
|
|
2503
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2504
|
+
labels?: string[] | null | undefined;
|
|
2505
|
+
};
|
|
2506
|
+
createdAt?: Date | null | undefined;
|
|
2507
|
+
platformUrl?: string | null | undefined;
|
|
2508
|
+
}>;
|
|
2509
|
+
}, "strip", z.ZodTypeAny, {
|
|
2510
|
+
post: {
|
|
2511
|
+
platformId: string;
|
|
2512
|
+
post: {
|
|
2513
|
+
status?: string | null | undefined;
|
|
2514
|
+
price?: number | null | undefined;
|
|
2515
|
+
currency?: string | null | undefined;
|
|
2516
|
+
brand?: string | null | undefined;
|
|
2517
|
+
catalog?: string | null | undefined;
|
|
2518
|
+
catalogId?: number | null | undefined;
|
|
2519
|
+
colors?: string[] | null | undefined;
|
|
2520
|
+
colorIds?: number[] | null | undefined;
|
|
2521
|
+
description?: string | null | undefined;
|
|
2522
|
+
measurementLength?: number | null | undefined;
|
|
2523
|
+
measurementWidth?: number | null | undefined;
|
|
2524
|
+
packageSizeId?: number | null | undefined;
|
|
2525
|
+
photoUrls?: string[] | null | undefined;
|
|
2526
|
+
size?: string | null | undefined;
|
|
2527
|
+
sizeId?: number | null | undefined;
|
|
2528
|
+
statusId?: number | null | undefined;
|
|
2529
|
+
title?: string | null | undefined;
|
|
2530
|
+
isDraft?: boolean | null | undefined;
|
|
2531
|
+
isArchived?: boolean | null | undefined;
|
|
2532
|
+
availableQuantity?: number | null | undefined;
|
|
2533
|
+
material?: number[] | null | undefined;
|
|
2534
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2535
|
+
labels?: string[] | null | undefined;
|
|
2536
|
+
};
|
|
2537
|
+
createdAt?: Date | null | undefined;
|
|
2538
|
+
platformUrl?: string | null | undefined;
|
|
2539
|
+
};
|
|
2540
|
+
}, {
|
|
2541
|
+
post: {
|
|
2542
|
+
platformId: string;
|
|
2543
|
+
post: {
|
|
2544
|
+
status?: string | null | undefined;
|
|
2545
|
+
price?: number | null | undefined;
|
|
2546
|
+
currency?: string | null | undefined;
|
|
2547
|
+
brand?: string | null | undefined;
|
|
2548
|
+
catalog?: string | null | undefined;
|
|
2549
|
+
catalogId?: number | null | undefined;
|
|
2550
|
+
colors?: string[] | null | undefined;
|
|
2551
|
+
colorIds?: number[] | null | undefined;
|
|
2552
|
+
description?: string | null | undefined;
|
|
2553
|
+
measurementLength?: number | null | undefined;
|
|
2554
|
+
measurementWidth?: number | null | undefined;
|
|
2555
|
+
packageSizeId?: number | null | undefined;
|
|
2556
|
+
photoUrls?: string[] | null | undefined;
|
|
2557
|
+
size?: string | null | undefined;
|
|
2558
|
+
sizeId?: number | null | undefined;
|
|
2559
|
+
statusId?: number | null | undefined;
|
|
2560
|
+
title?: string | null | undefined;
|
|
2561
|
+
isDraft?: boolean | null | undefined;
|
|
2562
|
+
isArchived?: boolean | null | undefined;
|
|
2563
|
+
availableQuantity?: number | null | undefined;
|
|
2564
|
+
material?: number[] | null | undefined;
|
|
2565
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2566
|
+
labels?: string[] | null | undefined;
|
|
2567
|
+
};
|
|
2568
|
+
createdAt?: Date | null | undefined;
|
|
2569
|
+
platformUrl?: string | null | undefined;
|
|
2570
|
+
};
|
|
2571
|
+
}>;
|
|
2572
|
+
type: z.ZodLiteral<"IMPORTED">;
|
|
2573
|
+
}, "strip", z.ZodTypeAny, {
|
|
2574
|
+
type: "IMPORTED";
|
|
2575
|
+
data: {
|
|
2576
|
+
post: {
|
|
2577
|
+
platformId: string;
|
|
2578
|
+
post: {
|
|
2579
|
+
status?: string | null | undefined;
|
|
2580
|
+
price?: number | null | undefined;
|
|
2581
|
+
currency?: string | null | undefined;
|
|
2582
|
+
brand?: string | null | undefined;
|
|
2583
|
+
catalog?: string | null | undefined;
|
|
2584
|
+
catalogId?: number | null | undefined;
|
|
2585
|
+
colors?: string[] | null | undefined;
|
|
2586
|
+
colorIds?: number[] | null | undefined;
|
|
2587
|
+
description?: string | null | undefined;
|
|
2588
|
+
measurementLength?: number | null | undefined;
|
|
2589
|
+
measurementWidth?: number | null | undefined;
|
|
2590
|
+
packageSizeId?: number | null | undefined;
|
|
2591
|
+
photoUrls?: string[] | null | undefined;
|
|
2592
|
+
size?: string | null | undefined;
|
|
2593
|
+
sizeId?: number | null | undefined;
|
|
2594
|
+
statusId?: number | null | undefined;
|
|
2595
|
+
title?: string | null | undefined;
|
|
2596
|
+
isDraft?: boolean | null | undefined;
|
|
2597
|
+
isArchived?: boolean | null | undefined;
|
|
2598
|
+
availableQuantity?: number | null | undefined;
|
|
2599
|
+
material?: number[] | null | undefined;
|
|
2600
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2601
|
+
labels?: string[] | null | undefined;
|
|
2602
|
+
};
|
|
2603
|
+
createdAt?: Date | null | undefined;
|
|
2604
|
+
platformUrl?: string | null | undefined;
|
|
2605
|
+
};
|
|
2606
|
+
};
|
|
2607
|
+
}, {
|
|
2608
|
+
type: "IMPORTED";
|
|
2609
|
+
data: {
|
|
2610
|
+
post: {
|
|
2611
|
+
platformId: string;
|
|
2612
|
+
post: {
|
|
2613
|
+
status?: string | null | undefined;
|
|
2614
|
+
price?: number | null | undefined;
|
|
2615
|
+
currency?: string | null | undefined;
|
|
2616
|
+
brand?: string | null | undefined;
|
|
2617
|
+
catalog?: string | null | undefined;
|
|
2618
|
+
catalogId?: number | null | undefined;
|
|
2619
|
+
colors?: string[] | null | undefined;
|
|
2620
|
+
colorIds?: number[] | null | undefined;
|
|
2621
|
+
description?: string | null | undefined;
|
|
2622
|
+
measurementLength?: number | null | undefined;
|
|
2623
|
+
measurementWidth?: number | null | undefined;
|
|
2624
|
+
packageSizeId?: number | null | undefined;
|
|
2625
|
+
photoUrls?: string[] | null | undefined;
|
|
2626
|
+
size?: string | null | undefined;
|
|
2627
|
+
sizeId?: number | null | undefined;
|
|
2628
|
+
statusId?: number | null | undefined;
|
|
2629
|
+
title?: string | null | undefined;
|
|
2630
|
+
isDraft?: boolean | null | undefined;
|
|
2631
|
+
isArchived?: boolean | null | undefined;
|
|
2632
|
+
availableQuantity?: number | null | undefined;
|
|
2633
|
+
material?: number[] | null | undefined;
|
|
2634
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2635
|
+
labels?: string[] | null | undefined;
|
|
2636
|
+
};
|
|
2637
|
+
createdAt?: Date | null | undefined;
|
|
2638
|
+
platformUrl?: string | null | undefined;
|
|
2639
|
+
};
|
|
2640
|
+
};
|
|
2641
|
+
}>, z.ZodObject<{
|
|
2642
|
+
data: z.ZodObject<{
|
|
2643
|
+
accountId: z.ZodString;
|
|
2644
|
+
}, "strip", z.ZodTypeAny, {
|
|
2645
|
+
accountId: string;
|
|
2646
|
+
}, {
|
|
2647
|
+
accountId: string;
|
|
2648
|
+
}>;
|
|
2649
|
+
type: z.ZodLiteral<"LIFECYCLE_COMPLETED">;
|
|
2650
|
+
}, "strip", z.ZodTypeAny, {
|
|
2651
|
+
type: "LIFECYCLE_COMPLETED";
|
|
2652
|
+
data: {
|
|
2653
|
+
accountId: string;
|
|
2654
|
+
};
|
|
2655
|
+
}, {
|
|
2656
|
+
type: "LIFECYCLE_COMPLETED";
|
|
2657
|
+
data: {
|
|
2658
|
+
accountId: string;
|
|
2659
|
+
};
|
|
2660
|
+
}>, z.ZodObject<{
|
|
2661
|
+
data: z.ZodObject<{
|
|
2662
|
+
accountId: z.ZodString;
|
|
2663
|
+
caseId: z.ZodString;
|
|
2664
|
+
}, "strip", z.ZodTypeAny, {
|
|
2665
|
+
accountId: string;
|
|
2666
|
+
caseId: string;
|
|
2667
|
+
}, {
|
|
2668
|
+
accountId: string;
|
|
2669
|
+
caseId: string;
|
|
2670
|
+
}>;
|
|
2671
|
+
type: z.ZodLiteral<"LIFECYCLE_STARTED">;
|
|
2672
|
+
}, "strip", z.ZodTypeAny, {
|
|
2673
|
+
type: "LIFECYCLE_STARTED";
|
|
2674
|
+
data: {
|
|
2675
|
+
accountId: string;
|
|
2676
|
+
caseId: string;
|
|
2677
|
+
};
|
|
2678
|
+
}, {
|
|
2679
|
+
type: "LIFECYCLE_STARTED";
|
|
2680
|
+
data: {
|
|
2681
|
+
accountId: string;
|
|
2682
|
+
caseId: string;
|
|
2683
|
+
};
|
|
2684
|
+
}>, z.ZodObject<{
|
|
2685
|
+
data: z.ZodObject<{
|
|
2686
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2687
|
+
}, "strip", z.ZodTypeAny, {
|
|
2688
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2689
|
+
}, {
|
|
2690
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2691
|
+
}>;
|
|
2692
|
+
type: z.ZodLiteral<"PUBLISHED">;
|
|
2693
|
+
}, "strip", z.ZodTypeAny, {
|
|
2694
|
+
type: "PUBLISHED";
|
|
2695
|
+
data: {
|
|
2696
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2697
|
+
};
|
|
2698
|
+
}, {
|
|
2699
|
+
type: "PUBLISHED";
|
|
2700
|
+
data: {
|
|
2701
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2702
|
+
};
|
|
2703
|
+
}>, z.ZodObject<{
|
|
2704
|
+
data: z.ZodObject<{
|
|
2705
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2706
|
+
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2707
|
+
priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2708
|
+
type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
|
|
2709
|
+
value: z.ZodNumber;
|
|
2710
|
+
roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
|
|
2711
|
+
roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2712
|
+
maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2713
|
+
}, "strip", z.ZodTypeAny, {
|
|
2714
|
+
value: number;
|
|
2715
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2716
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2717
|
+
roundStep?: number | null | undefined;
|
|
2718
|
+
maxRounds?: number | null | undefined;
|
|
2719
|
+
}, {
|
|
2720
|
+
value: number;
|
|
2721
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2722
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2723
|
+
roundStep?: number | null | undefined;
|
|
2724
|
+
maxRounds?: number | null | undefined;
|
|
2725
|
+
}>>>;
|
|
2726
|
+
isTransfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2727
|
+
targetAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2728
|
+
}, "strip", z.ZodTypeAny, {
|
|
2729
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2730
|
+
publishingDate?: Date | null | undefined;
|
|
2731
|
+
priceDropPayload?: {
|
|
2732
|
+
value: number;
|
|
2733
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2734
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2735
|
+
roundStep?: number | null | undefined;
|
|
2736
|
+
maxRounds?: number | null | undefined;
|
|
2737
|
+
} | null | undefined;
|
|
2738
|
+
isTransfer?: boolean | null | undefined;
|
|
2739
|
+
targetAccountId?: string | null | undefined;
|
|
2740
|
+
}, {
|
|
2741
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2742
|
+
publishingDate?: Date | null | undefined;
|
|
2743
|
+
priceDropPayload?: {
|
|
2744
|
+
value: number;
|
|
2745
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2746
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2747
|
+
roundStep?: number | null | undefined;
|
|
2748
|
+
maxRounds?: number | null | undefined;
|
|
2749
|
+
} | null | undefined;
|
|
2750
|
+
isTransfer?: boolean | null | undefined;
|
|
2751
|
+
targetAccountId?: string | null | undefined;
|
|
2752
|
+
}>;
|
|
2753
|
+
type: z.ZodLiteral<"REPUBLISHING">;
|
|
2754
|
+
}, "strip", z.ZodTypeAny, {
|
|
2755
|
+
type: "REPUBLISHING";
|
|
2756
|
+
data: {
|
|
2757
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2758
|
+
publishingDate?: Date | null | undefined;
|
|
2759
|
+
priceDropPayload?: {
|
|
2760
|
+
value: number;
|
|
2761
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2762
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2763
|
+
roundStep?: number | null | undefined;
|
|
2764
|
+
maxRounds?: number | null | undefined;
|
|
2765
|
+
} | null | undefined;
|
|
2766
|
+
isTransfer?: boolean | null | undefined;
|
|
2767
|
+
targetAccountId?: string | null | undefined;
|
|
2768
|
+
};
|
|
2769
|
+
}, {
|
|
2770
|
+
type: "REPUBLISHING";
|
|
2771
|
+
data: {
|
|
2772
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2773
|
+
publishingDate?: Date | null | undefined;
|
|
2774
|
+
priceDropPayload?: {
|
|
2775
|
+
value: number;
|
|
2776
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2777
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2778
|
+
roundStep?: number | null | undefined;
|
|
2779
|
+
maxRounds?: number | null | undefined;
|
|
2780
|
+
} | null | undefined;
|
|
2781
|
+
isTransfer?: boolean | null | undefined;
|
|
2782
|
+
targetAccountId?: string | null | undefined;
|
|
2783
|
+
};
|
|
2784
|
+
}>, z.ZodObject<{
|
|
2785
|
+
data: z.ZodObject<{
|
|
2786
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2787
|
+
attemptNumber: z.ZodNumber;
|
|
2788
|
+
maxAttempts: z.ZodNumber;
|
|
2789
|
+
previousHistoryId: z.ZodString;
|
|
2790
|
+
originalFailureDate: z.ZodDate;
|
|
2791
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2792
|
+
field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
|
|
2793
|
+
autoFixable: z.ZodBoolean;
|
|
2794
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2795
|
+
}, "strip", z.ZodTypeAny, {
|
|
2796
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2797
|
+
autoFixable: boolean;
|
|
2798
|
+
error?: string | null | undefined;
|
|
2799
|
+
}, {
|
|
2800
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2801
|
+
autoFixable: boolean;
|
|
2802
|
+
error?: string | null | undefined;
|
|
2803
|
+
}>, "many">>>;
|
|
2804
|
+
priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2805
|
+
type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
|
|
2806
|
+
value: z.ZodNumber;
|
|
2807
|
+
roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
|
|
2808
|
+
roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2809
|
+
maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2810
|
+
}, "strip", z.ZodTypeAny, {
|
|
2811
|
+
value: number;
|
|
2812
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2813
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2814
|
+
roundStep?: number | null | undefined;
|
|
2815
|
+
maxRounds?: number | null | undefined;
|
|
2816
|
+
}, {
|
|
2817
|
+
value: number;
|
|
2818
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2819
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2820
|
+
roundStep?: number | null | undefined;
|
|
2821
|
+
maxRounds?: number | null | undefined;
|
|
2822
|
+
}>>>;
|
|
2823
|
+
}, "strip", z.ZodTypeAny, {
|
|
2824
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2825
|
+
attemptNumber: number;
|
|
2826
|
+
maxAttempts: number;
|
|
2827
|
+
previousHistoryId: string;
|
|
2828
|
+
originalFailureDate: Date;
|
|
2829
|
+
fields?: {
|
|
2830
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2831
|
+
autoFixable: boolean;
|
|
2832
|
+
error?: string | null | undefined;
|
|
2833
|
+
}[] | null | undefined;
|
|
2834
|
+
priceDropPayload?: {
|
|
2835
|
+
value: number;
|
|
2836
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2837
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2838
|
+
roundStep?: number | null | undefined;
|
|
2839
|
+
maxRounds?: number | null | undefined;
|
|
2840
|
+
} | null | undefined;
|
|
2841
|
+
}, {
|
|
2842
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2843
|
+
attemptNumber: number;
|
|
2844
|
+
maxAttempts: number;
|
|
2845
|
+
previousHistoryId: string;
|
|
2846
|
+
originalFailureDate: Date;
|
|
2847
|
+
fields?: {
|
|
2848
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2849
|
+
autoFixable: boolean;
|
|
2850
|
+
error?: string | null | undefined;
|
|
2851
|
+
}[] | null | undefined;
|
|
2852
|
+
priceDropPayload?: {
|
|
2853
|
+
value: number;
|
|
2854
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2855
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2856
|
+
roundStep?: number | null | undefined;
|
|
2857
|
+
maxRounds?: number | null | undefined;
|
|
2858
|
+
} | null | undefined;
|
|
2859
|
+
}>;
|
|
2860
|
+
type: z.ZodLiteral<"REPUBLISHING_RETRY">;
|
|
2861
|
+
}, "strip", z.ZodTypeAny, {
|
|
2862
|
+
type: "REPUBLISHING_RETRY";
|
|
2863
|
+
data: {
|
|
2864
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2865
|
+
attemptNumber: number;
|
|
2866
|
+
maxAttempts: number;
|
|
2867
|
+
previousHistoryId: string;
|
|
2868
|
+
originalFailureDate: Date;
|
|
2869
|
+
fields?: {
|
|
2870
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2871
|
+
autoFixable: boolean;
|
|
2872
|
+
error?: string | null | undefined;
|
|
2873
|
+
}[] | null | undefined;
|
|
2874
|
+
priceDropPayload?: {
|
|
2875
|
+
value: number;
|
|
2876
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2877
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2878
|
+
roundStep?: number | null | undefined;
|
|
2879
|
+
maxRounds?: number | null | undefined;
|
|
2880
|
+
} | null | undefined;
|
|
2881
|
+
};
|
|
2882
|
+
}, {
|
|
2883
|
+
type: "REPUBLISHING_RETRY";
|
|
2884
|
+
data: {
|
|
2885
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2886
|
+
attemptNumber: number;
|
|
2887
|
+
maxAttempts: number;
|
|
2888
|
+
previousHistoryId: string;
|
|
2889
|
+
originalFailureDate: Date;
|
|
2890
|
+
fields?: {
|
|
2891
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2892
|
+
autoFixable: boolean;
|
|
2893
|
+
error?: string | null | undefined;
|
|
2894
|
+
}[] | null | undefined;
|
|
2895
|
+
priceDropPayload?: {
|
|
2896
|
+
value: number;
|
|
2897
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2898
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2899
|
+
roundStep?: number | null | undefined;
|
|
2900
|
+
maxRounds?: number | null | undefined;
|
|
2901
|
+
} | null | undefined;
|
|
2902
|
+
};
|
|
2903
|
+
}>, z.ZodObject<{
|
|
2904
|
+
data: z.ZodObject<{
|
|
2905
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2906
|
+
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2907
|
+
}, "strip", z.ZodTypeAny, {
|
|
2908
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2909
|
+
publishingDate?: Date | null | undefined;
|
|
2910
|
+
}, {
|
|
2911
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2912
|
+
publishingDate?: Date | null | undefined;
|
|
2913
|
+
}>;
|
|
2914
|
+
type: z.ZodLiteral<"SCHEDULED">;
|
|
2915
|
+
}, "strip", z.ZodTypeAny, {
|
|
2916
|
+
type: "SCHEDULED";
|
|
2917
|
+
data: {
|
|
2918
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2919
|
+
publishingDate?: Date | null | undefined;
|
|
2920
|
+
};
|
|
2921
|
+
}, {
|
|
2922
|
+
type: "SCHEDULED";
|
|
2923
|
+
data: {
|
|
2924
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2925
|
+
publishingDate?: Date | null | undefined;
|
|
2926
|
+
};
|
|
2927
|
+
}>, z.ZodObject<{
|
|
2928
|
+
data: z.ZodObject<{
|
|
2929
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2930
|
+
attemptNumber: z.ZodNumber;
|
|
2931
|
+
maxAttempts: z.ZodNumber;
|
|
2932
|
+
previousHistoryId: z.ZodString;
|
|
2933
|
+
originalFailureDate: z.ZodDate;
|
|
2934
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2935
|
+
field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
|
|
2936
|
+
autoFixable: z.ZodBoolean;
|
|
2937
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2938
|
+
}, "strip", z.ZodTypeAny, {
|
|
2939
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2940
|
+
autoFixable: boolean;
|
|
2941
|
+
error?: string | null | undefined;
|
|
2942
|
+
}, {
|
|
2943
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2944
|
+
autoFixable: boolean;
|
|
2945
|
+
error?: string | null | undefined;
|
|
2946
|
+
}>, "many">>>;
|
|
2947
|
+
}, "strip", z.ZodTypeAny, {
|
|
2948
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2949
|
+
attemptNumber: number;
|
|
2950
|
+
maxAttempts: number;
|
|
2951
|
+
previousHistoryId: string;
|
|
2952
|
+
originalFailureDate: Date;
|
|
2953
|
+
fields?: {
|
|
2954
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2955
|
+
autoFixable: boolean;
|
|
2956
|
+
error?: string | null | undefined;
|
|
2957
|
+
}[] | null | undefined;
|
|
2958
|
+
}, {
|
|
2959
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2960
|
+
attemptNumber: number;
|
|
2961
|
+
maxAttempts: number;
|
|
2962
|
+
previousHistoryId: string;
|
|
2963
|
+
originalFailureDate: Date;
|
|
2964
|
+
fields?: {
|
|
2965
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2966
|
+
autoFixable: boolean;
|
|
2967
|
+
error?: string | null | undefined;
|
|
2968
|
+
}[] | null | undefined;
|
|
2969
|
+
}>;
|
|
2970
|
+
type: z.ZodLiteral<"SCHEDULED_RETRY">;
|
|
2971
|
+
}, "strip", z.ZodTypeAny, {
|
|
2972
|
+
type: "SCHEDULED_RETRY";
|
|
2973
|
+
data: {
|
|
2974
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2975
|
+
attemptNumber: number;
|
|
2976
|
+
maxAttempts: number;
|
|
2977
|
+
previousHistoryId: string;
|
|
2978
|
+
originalFailureDate: Date;
|
|
2979
|
+
fields?: {
|
|
2980
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2981
|
+
autoFixable: boolean;
|
|
2982
|
+
error?: string | null | undefined;
|
|
2983
|
+
}[] | null | undefined;
|
|
2984
|
+
};
|
|
2985
|
+
}, {
|
|
2986
|
+
type: "SCHEDULED_RETRY";
|
|
2987
|
+
data: {
|
|
2988
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2989
|
+
attemptNumber: number;
|
|
2990
|
+
maxAttempts: number;
|
|
2991
|
+
previousHistoryId: string;
|
|
2992
|
+
originalFailureDate: Date;
|
|
2993
|
+
fields?: {
|
|
2994
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2995
|
+
autoFixable: boolean;
|
|
2996
|
+
error?: string | null | undefined;
|
|
2997
|
+
}[] | null | undefined;
|
|
2998
|
+
};
|
|
2999
|
+
}>]>>>;
|
|
3000
|
+
createdAt: z.ZodDate;
|
|
3001
|
+
targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
3002
|
+
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3003
|
+
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3004
|
+
}, "strip", z.ZodTypeAny, {
|
|
3005
|
+
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
3006
|
+
id: string;
|
|
3007
|
+
createdAt: Date;
|
|
3008
|
+
itemId: string | number;
|
|
3009
|
+
data?: {
|
|
3010
|
+
type: "ACTION_CANCELED";
|
|
3011
|
+
data: {
|
|
3012
|
+
targetItemHistoryId: string;
|
|
3013
|
+
};
|
|
3014
|
+
} | {
|
|
3015
|
+
type: "BUYER_PAID";
|
|
3016
|
+
data: {
|
|
3017
|
+
soldAccountId: string;
|
|
3018
|
+
soldOrderId: string;
|
|
3019
|
+
soldConversationId?: string | null | undefined;
|
|
3020
|
+
};
|
|
3021
|
+
} | {
|
|
3022
|
+
type: "DELIVERED";
|
|
3023
|
+
data: {
|
|
3024
|
+
soldAccountId: string;
|
|
3025
|
+
soldOrderId: string;
|
|
3026
|
+
soldConversationId?: string | null | undefined;
|
|
3027
|
+
};
|
|
3028
|
+
} | {
|
|
3029
|
+
type: "EMPTY";
|
|
3030
|
+
} | {
|
|
3031
|
+
type: "FAILED_TO_PUBLISH";
|
|
3032
|
+
data: {
|
|
3033
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3034
|
+
accountId?: string | null | undefined;
|
|
3035
|
+
reason?: string | null | undefined;
|
|
3036
|
+
fields?: {
|
|
3037
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3038
|
+
autoFixable: boolean;
|
|
3039
|
+
error?: string | null | undefined;
|
|
3040
|
+
}[] | null | undefined;
|
|
3041
|
+
itemHistoryId?: string | null | undefined;
|
|
3042
|
+
};
|
|
3043
|
+
} | {
|
|
3044
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
3045
|
+
data: {
|
|
3046
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3047
|
+
variations?: {
|
|
3048
|
+
fileId: string;
|
|
3049
|
+
seed: number;
|
|
3050
|
+
phash: string;
|
|
3051
|
+
distanceOriginal: number;
|
|
3052
|
+
originalImageUrl: string;
|
|
3053
|
+
originalPhash: string;
|
|
3054
|
+
}[] | null | undefined;
|
|
3055
|
+
originalPhashes?: string[] | null | undefined;
|
|
3056
|
+
};
|
|
3057
|
+
} | {
|
|
3058
|
+
type: "IMPORTED";
|
|
3059
|
+
data: {
|
|
3060
|
+
post: {
|
|
3061
|
+
platformId: string;
|
|
3062
|
+
post: {
|
|
3063
|
+
status?: string | null | undefined;
|
|
3064
|
+
price?: number | null | undefined;
|
|
3065
|
+
currency?: string | null | undefined;
|
|
3066
|
+
brand?: string | null | undefined;
|
|
3067
|
+
catalog?: string | null | undefined;
|
|
3068
|
+
catalogId?: number | null | undefined;
|
|
3069
|
+
colors?: string[] | null | undefined;
|
|
3070
|
+
colorIds?: number[] | null | undefined;
|
|
3071
|
+
description?: string | null | undefined;
|
|
3072
|
+
measurementLength?: number | null | undefined;
|
|
3073
|
+
measurementWidth?: number | null | undefined;
|
|
3074
|
+
packageSizeId?: number | null | undefined;
|
|
3075
|
+
photoUrls?: string[] | null | undefined;
|
|
3076
|
+
size?: string | null | undefined;
|
|
3077
|
+
sizeId?: number | null | undefined;
|
|
3078
|
+
statusId?: number | null | undefined;
|
|
3079
|
+
title?: string | null | undefined;
|
|
3080
|
+
isDraft?: boolean | null | undefined;
|
|
3081
|
+
isArchived?: boolean | null | undefined;
|
|
3082
|
+
availableQuantity?: number | null | undefined;
|
|
3083
|
+
material?: number[] | null | undefined;
|
|
3084
|
+
manufacturerLabelling?: string | null | undefined;
|
|
3085
|
+
labels?: string[] | null | undefined;
|
|
3086
|
+
};
|
|
3087
|
+
createdAt?: Date | null | undefined;
|
|
3088
|
+
platformUrl?: string | null | undefined;
|
|
3089
|
+
};
|
|
3090
|
+
};
|
|
3091
|
+
} | {
|
|
3092
|
+
type: "LIFECYCLE_COMPLETED";
|
|
3093
|
+
data: {
|
|
3094
|
+
accountId: string;
|
|
3095
|
+
};
|
|
3096
|
+
} | {
|
|
3097
|
+
type: "LIFECYCLE_STARTED";
|
|
3098
|
+
data: {
|
|
3099
|
+
accountId: string;
|
|
3100
|
+
caseId: string;
|
|
3101
|
+
};
|
|
3102
|
+
} | {
|
|
3103
|
+
type: "PUBLISHED";
|
|
3104
|
+
data: {
|
|
3105
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3106
|
+
};
|
|
3107
|
+
} | {
|
|
3108
|
+
type: "REPUBLISHING";
|
|
3109
|
+
data: {
|
|
3110
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3111
|
+
publishingDate?: Date | null | undefined;
|
|
3112
|
+
priceDropPayload?: {
|
|
3113
|
+
value: number;
|
|
3114
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3115
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3116
|
+
roundStep?: number | null | undefined;
|
|
3117
|
+
maxRounds?: number | null | undefined;
|
|
3118
|
+
} | null | undefined;
|
|
3119
|
+
isTransfer?: boolean | null | undefined;
|
|
3120
|
+
targetAccountId?: string | null | undefined;
|
|
3121
|
+
};
|
|
3122
|
+
} | {
|
|
3123
|
+
type: "REPUBLISHING_RETRY";
|
|
3124
|
+
data: {
|
|
3125
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3126
|
+
attemptNumber: number;
|
|
3127
|
+
maxAttempts: number;
|
|
3128
|
+
previousHistoryId: string;
|
|
3129
|
+
originalFailureDate: Date;
|
|
3130
|
+
fields?: {
|
|
3131
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3132
|
+
autoFixable: boolean;
|
|
3133
|
+
error?: string | null | undefined;
|
|
3134
|
+
}[] | null | undefined;
|
|
3135
|
+
priceDropPayload?: {
|
|
3136
|
+
value: number;
|
|
3137
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3138
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3139
|
+
roundStep?: number | null | undefined;
|
|
3140
|
+
maxRounds?: number | null | undefined;
|
|
3141
|
+
} | null | undefined;
|
|
3142
|
+
};
|
|
3143
|
+
} | {
|
|
3144
|
+
type: "SCHEDULED";
|
|
3145
|
+
data: {
|
|
3146
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3147
|
+
publishingDate?: Date | null | undefined;
|
|
3148
|
+
};
|
|
3149
|
+
} | {
|
|
3150
|
+
type: "SCHEDULED_RETRY";
|
|
3151
|
+
data: {
|
|
3152
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3153
|
+
attemptNumber: number;
|
|
3154
|
+
maxAttempts: number;
|
|
3155
|
+
previousHistoryId: string;
|
|
3156
|
+
originalFailureDate: Date;
|
|
3157
|
+
fields?: {
|
|
3158
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3159
|
+
autoFixable: boolean;
|
|
3160
|
+
error?: string | null | undefined;
|
|
3161
|
+
}[] | null | undefined;
|
|
3162
|
+
};
|
|
3163
|
+
} | null | undefined;
|
|
3164
|
+
accountId?: string | null | undefined;
|
|
3165
|
+
requestId?: string | null | undefined;
|
|
3166
|
+
targetDate?: Date | null | undefined;
|
|
3167
|
+
}, {
|
|
3168
|
+
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
3169
|
+
id: string;
|
|
3170
|
+
createdAt: Date;
|
|
3171
|
+
itemId: string | number;
|
|
3172
|
+
data?: {
|
|
3173
|
+
type: "ACTION_CANCELED";
|
|
3174
|
+
data: {
|
|
3175
|
+
targetItemHistoryId: string;
|
|
3176
|
+
};
|
|
3177
|
+
} | {
|
|
3178
|
+
type: "BUYER_PAID";
|
|
3179
|
+
data: {
|
|
3180
|
+
soldAccountId: string;
|
|
3181
|
+
soldOrderId: string;
|
|
3182
|
+
soldConversationId?: string | null | undefined;
|
|
3183
|
+
};
|
|
3184
|
+
} | {
|
|
3185
|
+
type: "DELIVERED";
|
|
3186
|
+
data: {
|
|
3187
|
+
soldAccountId: string;
|
|
3188
|
+
soldOrderId: string;
|
|
3189
|
+
soldConversationId?: string | null | undefined;
|
|
3190
|
+
};
|
|
3191
|
+
} | {
|
|
3192
|
+
type: "EMPTY";
|
|
3193
|
+
} | {
|
|
3194
|
+
type: "FAILED_TO_PUBLISH";
|
|
3195
|
+
data: {
|
|
3196
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3197
|
+
accountId?: string | null | undefined;
|
|
3198
|
+
reason?: string | null | undefined;
|
|
3199
|
+
fields?: {
|
|
3200
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3201
|
+
autoFixable: boolean;
|
|
3202
|
+
error?: string | null | undefined;
|
|
3203
|
+
}[] | null | undefined;
|
|
3204
|
+
itemHistoryId?: string | null | undefined;
|
|
3205
|
+
};
|
|
3206
|
+
} | {
|
|
3207
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
3208
|
+
data: {
|
|
3209
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3210
|
+
variations?: {
|
|
3211
|
+
fileId: string;
|
|
3212
|
+
seed: number;
|
|
3213
|
+
phash: string;
|
|
3214
|
+
distanceOriginal: number;
|
|
3215
|
+
originalImageUrl: string;
|
|
3216
|
+
originalPhash: string;
|
|
3217
|
+
}[] | null | undefined;
|
|
3218
|
+
originalPhashes?: string[] | null | undefined;
|
|
3219
|
+
};
|
|
3220
|
+
} | {
|
|
3221
|
+
type: "IMPORTED";
|
|
3222
|
+
data: {
|
|
3223
|
+
post: {
|
|
3224
|
+
platformId: string;
|
|
3225
|
+
post: {
|
|
3226
|
+
status?: string | null | undefined;
|
|
3227
|
+
price?: number | null | undefined;
|
|
3228
|
+
currency?: string | null | undefined;
|
|
3229
|
+
brand?: string | null | undefined;
|
|
3230
|
+
catalog?: string | null | undefined;
|
|
3231
|
+
catalogId?: number | null | undefined;
|
|
3232
|
+
colors?: string[] | null | undefined;
|
|
3233
|
+
colorIds?: number[] | null | undefined;
|
|
3234
|
+
description?: string | null | undefined;
|
|
3235
|
+
measurementLength?: number | null | undefined;
|
|
3236
|
+
measurementWidth?: number | null | undefined;
|
|
3237
|
+
packageSizeId?: number | null | undefined;
|
|
3238
|
+
photoUrls?: string[] | null | undefined;
|
|
3239
|
+
size?: string | null | undefined;
|
|
3240
|
+
sizeId?: number | null | undefined;
|
|
3241
|
+
statusId?: number | null | undefined;
|
|
3242
|
+
title?: string | null | undefined;
|
|
3243
|
+
isDraft?: boolean | null | undefined;
|
|
3244
|
+
isArchived?: boolean | null | undefined;
|
|
3245
|
+
availableQuantity?: number | null | undefined;
|
|
3246
|
+
material?: number[] | null | undefined;
|
|
3247
|
+
manufacturerLabelling?: string | null | undefined;
|
|
3248
|
+
labels?: string[] | null | undefined;
|
|
3249
|
+
};
|
|
3250
|
+
createdAt?: Date | null | undefined;
|
|
3251
|
+
platformUrl?: string | null | undefined;
|
|
3252
|
+
};
|
|
3253
|
+
};
|
|
3254
|
+
} | {
|
|
3255
|
+
type: "LIFECYCLE_COMPLETED";
|
|
3256
|
+
data: {
|
|
3257
|
+
accountId: string;
|
|
3258
|
+
};
|
|
3259
|
+
} | {
|
|
3260
|
+
type: "LIFECYCLE_STARTED";
|
|
3261
|
+
data: {
|
|
3262
|
+
accountId: string;
|
|
3263
|
+
caseId: string;
|
|
3264
|
+
};
|
|
3265
|
+
} | {
|
|
3266
|
+
type: "PUBLISHED";
|
|
3267
|
+
data: {
|
|
3268
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3269
|
+
};
|
|
3270
|
+
} | {
|
|
3271
|
+
type: "REPUBLISHING";
|
|
3272
|
+
data: {
|
|
3273
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3274
|
+
publishingDate?: Date | null | undefined;
|
|
3275
|
+
priceDropPayload?: {
|
|
3276
|
+
value: number;
|
|
3277
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3278
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3279
|
+
roundStep?: number | null | undefined;
|
|
3280
|
+
maxRounds?: number | null | undefined;
|
|
3281
|
+
} | null | undefined;
|
|
3282
|
+
isTransfer?: boolean | null | undefined;
|
|
3283
|
+
targetAccountId?: string | null | undefined;
|
|
3284
|
+
};
|
|
3285
|
+
} | {
|
|
3286
|
+
type: "REPUBLISHING_RETRY";
|
|
3287
|
+
data: {
|
|
3288
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3289
|
+
attemptNumber: number;
|
|
3290
|
+
maxAttempts: number;
|
|
3291
|
+
previousHistoryId: string;
|
|
3292
|
+
originalFailureDate: Date;
|
|
3293
|
+
fields?: {
|
|
3294
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3295
|
+
autoFixable: boolean;
|
|
3296
|
+
error?: string | null | undefined;
|
|
3297
|
+
}[] | null | undefined;
|
|
3298
|
+
priceDropPayload?: {
|
|
3299
|
+
value: number;
|
|
3300
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3301
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3302
|
+
roundStep?: number | null | undefined;
|
|
3303
|
+
maxRounds?: number | null | undefined;
|
|
3304
|
+
} | null | undefined;
|
|
3305
|
+
};
|
|
3306
|
+
} | {
|
|
3307
|
+
type: "SCHEDULED";
|
|
3308
|
+
data: {
|
|
3309
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3310
|
+
publishingDate?: Date | null | undefined;
|
|
3311
|
+
};
|
|
3312
|
+
} | {
|
|
3313
|
+
type: "SCHEDULED_RETRY";
|
|
3314
|
+
data: {
|
|
3315
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3316
|
+
attemptNumber: number;
|
|
3317
|
+
maxAttempts: number;
|
|
3318
|
+
previousHistoryId: string;
|
|
3319
|
+
originalFailureDate: Date;
|
|
3320
|
+
fields?: {
|
|
3321
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3322
|
+
autoFixable: boolean;
|
|
3323
|
+
error?: string | null | undefined;
|
|
3324
|
+
}[] | null | undefined;
|
|
3325
|
+
};
|
|
3326
|
+
} | null | undefined;
|
|
3327
|
+
accountId?: string | null | undefined;
|
|
3328
|
+
requestId?: string | null | undefined;
|
|
3329
|
+
targetDate?: Date | null | undefined;
|
|
3330
|
+
}>, "many">>>;
|
|
3331
|
+
createdAt: z.ZodDate;
|
|
3332
|
+
updatedAt: z.ZodDate;
|
|
3333
|
+
}, "strip", z.ZodTypeAny, {
|
|
3334
|
+
userId: string | number;
|
|
3335
|
+
id: string | number;
|
|
3336
|
+
updatedAt: Date;
|
|
3337
|
+
name: string;
|
|
3338
|
+
createdAt: Date;
|
|
3339
|
+
sold: boolean;
|
|
3340
|
+
state?: number | null | undefined;
|
|
3341
|
+
colorIds?: number[] | null | undefined;
|
|
3342
|
+
description?: string | null | undefined;
|
|
3343
|
+
packageSizeId?: number | null | undefined;
|
|
3344
|
+
sizeId?: number | null | undefined;
|
|
3345
|
+
labels?: {
|
|
3346
|
+
itemId: string | number;
|
|
3347
|
+
labelId: string | number;
|
|
3348
|
+
label?: {
|
|
3349
|
+
id: string | number;
|
|
3350
|
+
name: string;
|
|
3351
|
+
createdAt: Date;
|
|
3352
|
+
isUserLabel: boolean;
|
|
3353
|
+
userId?: string | number | null | undefined;
|
|
3354
|
+
itemCount?: number | null | undefined;
|
|
3355
|
+
parentId?: unknown;
|
|
3356
|
+
} | null | undefined;
|
|
3357
|
+
}[] | null | undefined;
|
|
3358
|
+
files?: {
|
|
3359
|
+
itemId: string | number;
|
|
3360
|
+
fileId: string;
|
|
3361
|
+
index?: number | null | undefined;
|
|
3362
|
+
file?: {
|
|
3363
|
+
path: string;
|
|
3364
|
+
userId: string | number;
|
|
3365
|
+
id: string;
|
|
3366
|
+
createdAt: Date;
|
|
3367
|
+
signedUrl: string;
|
|
3368
|
+
} | null | undefined;
|
|
3369
|
+
}[] | null | undefined;
|
|
3370
|
+
fields?: {
|
|
3371
|
+
value: string;
|
|
3372
|
+
itemId: string | number;
|
|
3373
|
+
fieldId: string | number;
|
|
3374
|
+
}[] | null | undefined;
|
|
3375
|
+
sku?: string | null | undefined;
|
|
3376
|
+
categoryId?: number | null | undefined;
|
|
3377
|
+
brandId?: string | number | null | undefined;
|
|
3378
|
+
sex?: string | null | undefined;
|
|
3379
|
+
purchasePrice?: number | null | undefined;
|
|
3380
|
+
purchaseDate?: Date | null | undefined;
|
|
3381
|
+
purchasePlaceId?: string | number | null | undefined;
|
|
3382
|
+
purchased?: boolean | null | undefined;
|
|
3383
|
+
sellingPrice?: number | null | undefined;
|
|
3384
|
+
sellingDate?: Date | null | undefined;
|
|
3385
|
+
sellingPlaceId?: string | number | null | undefined;
|
|
3386
|
+
estimatedPrice?: number | null | undefined;
|
|
3387
|
+
fees?: {
|
|
3388
|
+
value: number;
|
|
3389
|
+
type: string;
|
|
3390
|
+
userId: string | number;
|
|
3391
|
+
id: string | number;
|
|
3392
|
+
updatedAt: Date;
|
|
3393
|
+
name: string;
|
|
3394
|
+
createdAt: Date;
|
|
3395
|
+
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
3396
|
+
startDate: Date;
|
|
3397
|
+
active: boolean;
|
|
3398
|
+
description?: string | null | undefined;
|
|
3399
|
+
itemId?: string | number | null | undefined;
|
|
3400
|
+
endDate?: Date | null | undefined;
|
|
3401
|
+
parentFeeId?: string | number | null | undefined;
|
|
3402
|
+
}[] | null | undefined;
|
|
3403
|
+
feesSum?: number | null | undefined;
|
|
3404
|
+
customerId?: string | number | null | undefined;
|
|
3405
|
+
customer?: {
|
|
3406
|
+
userId: string | number;
|
|
3407
|
+
id: string | number;
|
|
3408
|
+
email: string;
|
|
3409
|
+
firstName: string;
|
|
3410
|
+
lastName: string;
|
|
3411
|
+
birthDate: Date;
|
|
3412
|
+
idNumber: string;
|
|
3413
|
+
phone: string;
|
|
3414
|
+
iban: string;
|
|
3415
|
+
bic: string;
|
|
3416
|
+
phoneVerified: boolean;
|
|
3417
|
+
} | null | undefined;
|
|
3418
|
+
customerType?: string | null | undefined;
|
|
3419
|
+
customerPaid?: boolean | null | undefined;
|
|
3420
|
+
customerPaidDate?: Date | null | undefined;
|
|
3421
|
+
customerPaidType?: string | null | undefined;
|
|
3422
|
+
contractId?: string | number | null | undefined;
|
|
3423
|
+
lastHistory?: {
|
|
3424
|
+
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
3425
|
+
id: string;
|
|
3426
|
+
createdAt: Date;
|
|
3427
|
+
itemId: string | number;
|
|
3428
|
+
data?: {
|
|
3429
|
+
type: "ACTION_CANCELED";
|
|
3430
|
+
data: {
|
|
3431
|
+
targetItemHistoryId: string;
|
|
3432
|
+
};
|
|
3433
|
+
} | {
|
|
3434
|
+
type: "BUYER_PAID";
|
|
3435
|
+
data: {
|
|
3436
|
+
soldAccountId: string;
|
|
3437
|
+
soldOrderId: string;
|
|
3438
|
+
soldConversationId?: string | null | undefined;
|
|
3439
|
+
};
|
|
3440
|
+
} | {
|
|
3441
|
+
type: "DELIVERED";
|
|
3442
|
+
data: {
|
|
3443
|
+
soldAccountId: string;
|
|
3444
|
+
soldOrderId: string;
|
|
3445
|
+
soldConversationId?: string | null | undefined;
|
|
3446
|
+
};
|
|
3447
|
+
} | {
|
|
3448
|
+
type: "EMPTY";
|
|
3449
|
+
} | {
|
|
3450
|
+
type: "FAILED_TO_PUBLISH";
|
|
3451
|
+
data: {
|
|
3452
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3453
|
+
accountId?: string | null | undefined;
|
|
3454
|
+
reason?: string | null | undefined;
|
|
3455
|
+
fields?: {
|
|
3456
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3457
|
+
autoFixable: boolean;
|
|
3458
|
+
error?: string | null | undefined;
|
|
3459
|
+
}[] | null | undefined;
|
|
3460
|
+
itemHistoryId?: string | null | undefined;
|
|
3461
|
+
};
|
|
3462
|
+
} | {
|
|
3463
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
3464
|
+
data: {
|
|
3465
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3466
|
+
variations?: {
|
|
3467
|
+
fileId: string;
|
|
3468
|
+
seed: number;
|
|
3469
|
+
phash: string;
|
|
3470
|
+
distanceOriginal: number;
|
|
3471
|
+
originalImageUrl: string;
|
|
3472
|
+
originalPhash: string;
|
|
3473
|
+
}[] | null | undefined;
|
|
3474
|
+
originalPhashes?: string[] | null | undefined;
|
|
3475
|
+
};
|
|
3476
|
+
} | {
|
|
3477
|
+
type: "IMPORTED";
|
|
3478
|
+
data: {
|
|
3479
|
+
post: {
|
|
3480
|
+
platformId: string;
|
|
3481
|
+
post: {
|
|
3482
|
+
status?: string | null | undefined;
|
|
3483
|
+
price?: number | null | undefined;
|
|
3484
|
+
currency?: string | null | undefined;
|
|
3485
|
+
brand?: string | null | undefined;
|
|
3486
|
+
catalog?: string | null | undefined;
|
|
3487
|
+
catalogId?: number | null | undefined;
|
|
3488
|
+
colors?: string[] | null | undefined;
|
|
3489
|
+
colorIds?: number[] | null | undefined;
|
|
3490
|
+
description?: string | null | undefined;
|
|
3491
|
+
measurementLength?: number | null | undefined;
|
|
3492
|
+
measurementWidth?: number | null | undefined;
|
|
3493
|
+
packageSizeId?: number | null | undefined;
|
|
3494
|
+
photoUrls?: string[] | null | undefined;
|
|
3495
|
+
size?: string | null | undefined;
|
|
3496
|
+
sizeId?: number | null | undefined;
|
|
3497
|
+
statusId?: number | null | undefined;
|
|
3498
|
+
title?: string | null | undefined;
|
|
3499
|
+
isDraft?: boolean | null | undefined;
|
|
3500
|
+
isArchived?: boolean | null | undefined;
|
|
3501
|
+
availableQuantity?: number | null | undefined;
|
|
3502
|
+
material?: number[] | null | undefined;
|
|
3503
|
+
manufacturerLabelling?: string | null | undefined;
|
|
3504
|
+
labels?: string[] | null | undefined;
|
|
3505
|
+
};
|
|
3506
|
+
createdAt?: Date | null | undefined;
|
|
3507
|
+
platformUrl?: string | null | undefined;
|
|
3508
|
+
};
|
|
3509
|
+
};
|
|
3510
|
+
} | {
|
|
3511
|
+
type: "LIFECYCLE_COMPLETED";
|
|
3512
|
+
data: {
|
|
3513
|
+
accountId: string;
|
|
3514
|
+
};
|
|
3515
|
+
} | {
|
|
3516
|
+
type: "LIFECYCLE_STARTED";
|
|
3517
|
+
data: {
|
|
3518
|
+
accountId: string;
|
|
3519
|
+
caseId: string;
|
|
3520
|
+
};
|
|
3521
|
+
} | {
|
|
3522
|
+
type: "PUBLISHED";
|
|
3523
|
+
data: {
|
|
3524
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3525
|
+
};
|
|
3526
|
+
} | {
|
|
3527
|
+
type: "REPUBLISHING";
|
|
3528
|
+
data: {
|
|
3529
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3530
|
+
publishingDate?: Date | null | undefined;
|
|
3531
|
+
priceDropPayload?: {
|
|
3532
|
+
value: number;
|
|
3533
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3534
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3535
|
+
roundStep?: number | null | undefined;
|
|
3536
|
+
maxRounds?: number | null | undefined;
|
|
3537
|
+
} | null | undefined;
|
|
3538
|
+
isTransfer?: boolean | null | undefined;
|
|
3539
|
+
targetAccountId?: string | null | undefined;
|
|
3540
|
+
};
|
|
3541
|
+
} | {
|
|
3542
|
+
type: "REPUBLISHING_RETRY";
|
|
3543
|
+
data: {
|
|
3544
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3545
|
+
attemptNumber: number;
|
|
3546
|
+
maxAttempts: number;
|
|
3547
|
+
previousHistoryId: string;
|
|
3548
|
+
originalFailureDate: Date;
|
|
3549
|
+
fields?: {
|
|
3550
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3551
|
+
autoFixable: boolean;
|
|
3552
|
+
error?: string | null | undefined;
|
|
3553
|
+
}[] | null | undefined;
|
|
3554
|
+
priceDropPayload?: {
|
|
3555
|
+
value: number;
|
|
3556
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3557
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3558
|
+
roundStep?: number | null | undefined;
|
|
3559
|
+
maxRounds?: number | null | undefined;
|
|
3560
|
+
} | null | undefined;
|
|
3561
|
+
};
|
|
3562
|
+
} | {
|
|
3563
|
+
type: "SCHEDULED";
|
|
3564
|
+
data: {
|
|
3565
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3566
|
+
publishingDate?: Date | null | undefined;
|
|
3567
|
+
};
|
|
3568
|
+
} | {
|
|
3569
|
+
type: "SCHEDULED_RETRY";
|
|
3570
|
+
data: {
|
|
3571
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3572
|
+
attemptNumber: number;
|
|
3573
|
+
maxAttempts: number;
|
|
3574
|
+
previousHistoryId: string;
|
|
3575
|
+
originalFailureDate: Date;
|
|
3576
|
+
fields?: {
|
|
3577
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3578
|
+
autoFixable: boolean;
|
|
3579
|
+
error?: string | null | undefined;
|
|
3580
|
+
}[] | null | undefined;
|
|
3581
|
+
};
|
|
3582
|
+
} | null | undefined;
|
|
3583
|
+
accountId?: string | null | undefined;
|
|
3584
|
+
requestId?: string | null | undefined;
|
|
3585
|
+
targetDate?: Date | null | undefined;
|
|
3586
|
+
} | null | undefined;
|
|
3587
|
+
platforms?: {
|
|
3588
|
+
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
3589
|
+
id: string;
|
|
3590
|
+
updatedAt: Date;
|
|
3591
|
+
createdAt: Date;
|
|
3592
|
+
accountId: string;
|
|
3593
|
+
itemId: string | number;
|
|
3594
|
+
platformId: string;
|
|
3595
|
+
platformUrl: string;
|
|
3596
|
+
platformPrice: number;
|
|
3597
|
+
publishedAt: Date;
|
|
3598
|
+
conversationId?: string | null | undefined;
|
|
3599
|
+
account?: {
|
|
3600
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
3601
|
+
userId: string | number;
|
|
3602
|
+
name: string;
|
|
3603
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3604
|
+
accountId: string;
|
|
3605
|
+
locale?: string | null | undefined;
|
|
3606
|
+
night?: {
|
|
3607
|
+
startsAt: Date;
|
|
3608
|
+
endsAt: Date;
|
|
3609
|
+
} | null | undefined;
|
|
3610
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
3611
|
+
ordersMaxDelay?: number | null | undefined;
|
|
3612
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
3613
|
+
} | null | undefined;
|
|
3614
|
+
viewsCount?: number | null | undefined;
|
|
3615
|
+
favoritesCount?: number | null | undefined;
|
|
3616
|
+
}[] | null | undefined;
|
|
3617
|
+
history?: {
|
|
3618
|
+
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
3619
|
+
id: string;
|
|
3620
|
+
createdAt: Date;
|
|
3621
|
+
itemId: string | number;
|
|
3622
|
+
data?: {
|
|
3623
|
+
type: "ACTION_CANCELED";
|
|
3624
|
+
data: {
|
|
3625
|
+
targetItemHistoryId: string;
|
|
3626
|
+
};
|
|
3627
|
+
} | {
|
|
3628
|
+
type: "BUYER_PAID";
|
|
3629
|
+
data: {
|
|
3630
|
+
soldAccountId: string;
|
|
3631
|
+
soldOrderId: string;
|
|
3632
|
+
soldConversationId?: string | null | undefined;
|
|
3633
|
+
};
|
|
3634
|
+
} | {
|
|
3635
|
+
type: "DELIVERED";
|
|
3636
|
+
data: {
|
|
3637
|
+
soldAccountId: string;
|
|
3638
|
+
soldOrderId: string;
|
|
3639
|
+
soldConversationId?: string | null | undefined;
|
|
3640
|
+
};
|
|
3641
|
+
} | {
|
|
3642
|
+
type: "EMPTY";
|
|
3643
|
+
} | {
|
|
3644
|
+
type: "FAILED_TO_PUBLISH";
|
|
3645
|
+
data: {
|
|
3646
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3647
|
+
accountId?: string | null | undefined;
|
|
3648
|
+
reason?: string | null | undefined;
|
|
3649
|
+
fields?: {
|
|
3650
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3651
|
+
autoFixable: boolean;
|
|
3652
|
+
error?: string | null | undefined;
|
|
3653
|
+
}[] | null | undefined;
|
|
3654
|
+
itemHistoryId?: string | null | undefined;
|
|
3655
|
+
};
|
|
3656
|
+
} | {
|
|
3657
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
3658
|
+
data: {
|
|
3659
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3660
|
+
variations?: {
|
|
3661
|
+
fileId: string;
|
|
3662
|
+
seed: number;
|
|
3663
|
+
phash: string;
|
|
3664
|
+
distanceOriginal: number;
|
|
3665
|
+
originalImageUrl: string;
|
|
3666
|
+
originalPhash: string;
|
|
3667
|
+
}[] | null | undefined;
|
|
3668
|
+
originalPhashes?: string[] | null | undefined;
|
|
3669
|
+
};
|
|
3670
|
+
} | {
|
|
3671
|
+
type: "IMPORTED";
|
|
3672
|
+
data: {
|
|
3673
|
+
post: {
|
|
3674
|
+
platformId: string;
|
|
3675
|
+
post: {
|
|
3676
|
+
status?: string | null | undefined;
|
|
3677
|
+
price?: number | null | undefined;
|
|
3678
|
+
currency?: string | null | undefined;
|
|
3679
|
+
brand?: string | null | undefined;
|
|
3680
|
+
catalog?: string | null | undefined;
|
|
3681
|
+
catalogId?: number | null | undefined;
|
|
3682
|
+
colors?: string[] | null | undefined;
|
|
3683
|
+
colorIds?: number[] | null | undefined;
|
|
3684
|
+
description?: string | null | undefined;
|
|
3685
|
+
measurementLength?: number | null | undefined;
|
|
3686
|
+
measurementWidth?: number | null | undefined;
|
|
3687
|
+
packageSizeId?: number | null | undefined;
|
|
3688
|
+
photoUrls?: string[] | null | undefined;
|
|
3689
|
+
size?: string | null | undefined;
|
|
3690
|
+
sizeId?: number | null | undefined;
|
|
3691
|
+
statusId?: number | null | undefined;
|
|
3692
|
+
title?: string | null | undefined;
|
|
3693
|
+
isDraft?: boolean | null | undefined;
|
|
3694
|
+
isArchived?: boolean | null | undefined;
|
|
3695
|
+
availableQuantity?: number | null | undefined;
|
|
3696
|
+
material?: number[] | null | undefined;
|
|
3697
|
+
manufacturerLabelling?: string | null | undefined;
|
|
3698
|
+
labels?: string[] | null | undefined;
|
|
3699
|
+
};
|
|
3700
|
+
createdAt?: Date | null | undefined;
|
|
3701
|
+
platformUrl?: string | null | undefined;
|
|
3702
|
+
};
|
|
3703
|
+
};
|
|
3704
|
+
} | {
|
|
3705
|
+
type: "LIFECYCLE_COMPLETED";
|
|
3706
|
+
data: {
|
|
3707
|
+
accountId: string;
|
|
3708
|
+
};
|
|
3709
|
+
} | {
|
|
3710
|
+
type: "LIFECYCLE_STARTED";
|
|
3711
|
+
data: {
|
|
3712
|
+
accountId: string;
|
|
3713
|
+
caseId: string;
|
|
3714
|
+
};
|
|
3715
|
+
} | {
|
|
3716
|
+
type: "PUBLISHED";
|
|
3717
|
+
data: {
|
|
3718
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3719
|
+
};
|
|
3720
|
+
} | {
|
|
3721
|
+
type: "REPUBLISHING";
|
|
3722
|
+
data: {
|
|
3723
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3724
|
+
publishingDate?: Date | null | undefined;
|
|
3725
|
+
priceDropPayload?: {
|
|
3726
|
+
value: number;
|
|
3727
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3728
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3729
|
+
roundStep?: number | null | undefined;
|
|
3730
|
+
maxRounds?: number | null | undefined;
|
|
3731
|
+
} | null | undefined;
|
|
3732
|
+
isTransfer?: boolean | null | undefined;
|
|
3733
|
+
targetAccountId?: string | null | undefined;
|
|
3734
|
+
};
|
|
3735
|
+
} | {
|
|
3736
|
+
type: "REPUBLISHING_RETRY";
|
|
3737
|
+
data: {
|
|
3738
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3739
|
+
attemptNumber: number;
|
|
3740
|
+
maxAttempts: number;
|
|
3741
|
+
previousHistoryId: string;
|
|
3742
|
+
originalFailureDate: Date;
|
|
3743
|
+
fields?: {
|
|
3744
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3745
|
+
autoFixable: boolean;
|
|
3746
|
+
error?: string | null | undefined;
|
|
3747
|
+
}[] | null | undefined;
|
|
3748
|
+
priceDropPayload?: {
|
|
3749
|
+
value: number;
|
|
3750
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3751
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3752
|
+
roundStep?: number | null | undefined;
|
|
3753
|
+
maxRounds?: number | null | undefined;
|
|
3754
|
+
} | null | undefined;
|
|
3755
|
+
};
|
|
3756
|
+
} | {
|
|
3757
|
+
type: "SCHEDULED";
|
|
3758
|
+
data: {
|
|
3759
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3760
|
+
publishingDate?: Date | null | undefined;
|
|
3761
|
+
};
|
|
3762
|
+
} | {
|
|
3763
|
+
type: "SCHEDULED_RETRY";
|
|
3764
|
+
data: {
|
|
3765
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3766
|
+
attemptNumber: number;
|
|
3767
|
+
maxAttempts: number;
|
|
3768
|
+
previousHistoryId: string;
|
|
3769
|
+
originalFailureDate: Date;
|
|
3770
|
+
fields?: {
|
|
3771
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3772
|
+
autoFixable: boolean;
|
|
3773
|
+
error?: string | null | undefined;
|
|
3774
|
+
}[] | null | undefined;
|
|
3775
|
+
};
|
|
3776
|
+
} | null | undefined;
|
|
3777
|
+
accountId?: string | null | undefined;
|
|
3778
|
+
requestId?: string | null | undefined;
|
|
3779
|
+
targetDate?: Date | null | undefined;
|
|
3780
|
+
}[] | null | undefined;
|
|
3781
|
+
}, {
|
|
3782
|
+
userId: string | number;
|
|
3783
|
+
id: string | number;
|
|
3784
|
+
updatedAt: Date;
|
|
3785
|
+
name: string;
|
|
3786
|
+
createdAt: Date;
|
|
3787
|
+
sold: boolean;
|
|
3788
|
+
state?: number | null | undefined;
|
|
3789
|
+
colorIds?: number[] | null | undefined;
|
|
3790
|
+
description?: string | null | undefined;
|
|
3791
|
+
packageSizeId?: number | null | undefined;
|
|
3792
|
+
sizeId?: number | null | undefined;
|
|
3793
|
+
labels?: {
|
|
3794
|
+
itemId: string | number;
|
|
3795
|
+
labelId: string | number;
|
|
3796
|
+
label?: {
|
|
3797
|
+
id: string | number;
|
|
3798
|
+
name: string;
|
|
3799
|
+
createdAt: Date;
|
|
3800
|
+
isUserLabel: boolean;
|
|
3801
|
+
userId?: string | number | null | undefined;
|
|
3802
|
+
itemCount?: number | null | undefined;
|
|
3803
|
+
parentId?: unknown;
|
|
3804
|
+
} | null | undefined;
|
|
3805
|
+
}[] | null | undefined;
|
|
3806
|
+
files?: {
|
|
3807
|
+
itemId: string | number;
|
|
3808
|
+
fileId: string;
|
|
3809
|
+
index?: number | null | undefined;
|
|
3810
|
+
file?: {
|
|
3811
|
+
path: string;
|
|
3812
|
+
userId: string | number;
|
|
3813
|
+
id: string;
|
|
3814
|
+
createdAt: Date;
|
|
3815
|
+
signedUrl: string;
|
|
3816
|
+
} | null | undefined;
|
|
3817
|
+
}[] | null | undefined;
|
|
3818
|
+
fields?: {
|
|
3819
|
+
value: string;
|
|
3820
|
+
itemId: string | number;
|
|
3821
|
+
fieldId: string | number;
|
|
3822
|
+
}[] | null | undefined;
|
|
3823
|
+
sku?: string | null | undefined;
|
|
3824
|
+
categoryId?: number | null | undefined;
|
|
3825
|
+
brandId?: string | number | null | undefined;
|
|
3826
|
+
sex?: string | null | undefined;
|
|
3827
|
+
purchasePrice?: number | null | undefined;
|
|
3828
|
+
purchaseDate?: Date | null | undefined;
|
|
3829
|
+
purchasePlaceId?: string | number | null | undefined;
|
|
3830
|
+
purchased?: boolean | null | undefined;
|
|
3831
|
+
sellingPrice?: number | null | undefined;
|
|
3832
|
+
sellingDate?: Date | null | undefined;
|
|
3833
|
+
sellingPlaceId?: string | number | null | undefined;
|
|
3834
|
+
estimatedPrice?: number | null | undefined;
|
|
3835
|
+
fees?: {
|
|
3836
|
+
value: number;
|
|
3837
|
+
type: string;
|
|
3838
|
+
userId: string | number;
|
|
3839
|
+
id: string | number;
|
|
3840
|
+
updatedAt: Date;
|
|
3841
|
+
name: string;
|
|
3842
|
+
createdAt: Date;
|
|
3843
|
+
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
3844
|
+
startDate: Date;
|
|
3845
|
+
active: boolean;
|
|
3846
|
+
description?: string | null | undefined;
|
|
3847
|
+
itemId?: string | number | null | undefined;
|
|
3848
|
+
endDate?: Date | null | undefined;
|
|
3849
|
+
parentFeeId?: string | number | null | undefined;
|
|
3850
|
+
}[] | null | undefined;
|
|
3851
|
+
feesSum?: number | null | undefined;
|
|
3852
|
+
customerId?: string | number | null | undefined;
|
|
3853
|
+
customer?: {
|
|
3854
|
+
userId: string | number;
|
|
3855
|
+
id: string | number;
|
|
3856
|
+
email: string;
|
|
3857
|
+
firstName: string;
|
|
3858
|
+
lastName: string;
|
|
3859
|
+
birthDate: Date;
|
|
3860
|
+
idNumber: string;
|
|
3861
|
+
phone: string;
|
|
3862
|
+
iban: string;
|
|
3863
|
+
bic: string;
|
|
3864
|
+
phoneVerified: boolean;
|
|
3865
|
+
} | null | undefined;
|
|
3866
|
+
customerType?: string | null | undefined;
|
|
3867
|
+
customerPaid?: boolean | null | undefined;
|
|
3868
|
+
customerPaidDate?: Date | null | undefined;
|
|
3869
|
+
customerPaidType?: string | null | undefined;
|
|
3870
|
+
contractId?: string | number | null | undefined;
|
|
3871
|
+
lastHistory?: {
|
|
3872
|
+
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
3873
|
+
id: string;
|
|
3874
|
+
createdAt: Date;
|
|
3875
|
+
itemId: string | number;
|
|
3876
|
+
data?: {
|
|
3877
|
+
type: "ACTION_CANCELED";
|
|
3878
|
+
data: {
|
|
3879
|
+
targetItemHistoryId: string;
|
|
3880
|
+
};
|
|
3881
|
+
} | {
|
|
3882
|
+
type: "BUYER_PAID";
|
|
3883
|
+
data: {
|
|
3884
|
+
soldAccountId: string;
|
|
3885
|
+
soldOrderId: string;
|
|
3886
|
+
soldConversationId?: string | null | undefined;
|
|
3887
|
+
};
|
|
3888
|
+
} | {
|
|
3889
|
+
type: "DELIVERED";
|
|
3890
|
+
data: {
|
|
3891
|
+
soldAccountId: string;
|
|
3892
|
+
soldOrderId: string;
|
|
3893
|
+
soldConversationId?: string | null | undefined;
|
|
3894
|
+
};
|
|
3895
|
+
} | {
|
|
3896
|
+
type: "EMPTY";
|
|
3897
|
+
} | {
|
|
3898
|
+
type: "FAILED_TO_PUBLISH";
|
|
3899
|
+
data: {
|
|
3900
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3901
|
+
accountId?: string | null | undefined;
|
|
3902
|
+
reason?: string | null | undefined;
|
|
3903
|
+
fields?: {
|
|
3904
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3905
|
+
autoFixable: boolean;
|
|
3906
|
+
error?: string | null | undefined;
|
|
3907
|
+
}[] | null | undefined;
|
|
3908
|
+
itemHistoryId?: string | null | undefined;
|
|
3909
|
+
};
|
|
3910
|
+
} | {
|
|
3911
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
3912
|
+
data: {
|
|
3913
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3914
|
+
variations?: {
|
|
3915
|
+
fileId: string;
|
|
3916
|
+
seed: number;
|
|
3917
|
+
phash: string;
|
|
3918
|
+
distanceOriginal: number;
|
|
3919
|
+
originalImageUrl: string;
|
|
3920
|
+
originalPhash: string;
|
|
3921
|
+
}[] | null | undefined;
|
|
3922
|
+
originalPhashes?: string[] | null | undefined;
|
|
3923
|
+
};
|
|
3924
|
+
} | {
|
|
3925
|
+
type: "IMPORTED";
|
|
3926
|
+
data: {
|
|
3927
|
+
post: {
|
|
3928
|
+
platformId: string;
|
|
3929
|
+
post: {
|
|
3930
|
+
status?: string | null | undefined;
|
|
3931
|
+
price?: number | null | undefined;
|
|
3932
|
+
currency?: string | null | undefined;
|
|
3933
|
+
brand?: string | null | undefined;
|
|
3934
|
+
catalog?: string | null | undefined;
|
|
3935
|
+
catalogId?: number | null | undefined;
|
|
3936
|
+
colors?: string[] | null | undefined;
|
|
3937
|
+
colorIds?: number[] | null | undefined;
|
|
3938
|
+
description?: string | null | undefined;
|
|
3939
|
+
measurementLength?: number | null | undefined;
|
|
3940
|
+
measurementWidth?: number | null | undefined;
|
|
3941
|
+
packageSizeId?: number | null | undefined;
|
|
3942
|
+
photoUrls?: string[] | null | undefined;
|
|
3943
|
+
size?: string | null | undefined;
|
|
3944
|
+
sizeId?: number | null | undefined;
|
|
3945
|
+
statusId?: number | null | undefined;
|
|
3946
|
+
title?: string | null | undefined;
|
|
3947
|
+
isDraft?: boolean | null | undefined;
|
|
3948
|
+
isArchived?: boolean | null | undefined;
|
|
3949
|
+
availableQuantity?: number | null | undefined;
|
|
3950
|
+
material?: number[] | null | undefined;
|
|
3951
|
+
manufacturerLabelling?: string | null | undefined;
|
|
3952
|
+
labels?: string[] | null | undefined;
|
|
3953
|
+
};
|
|
3954
|
+
createdAt?: Date | null | undefined;
|
|
3955
|
+
platformUrl?: string | null | undefined;
|
|
3956
|
+
};
|
|
3957
|
+
};
|
|
3958
|
+
} | {
|
|
3959
|
+
type: "LIFECYCLE_COMPLETED";
|
|
3960
|
+
data: {
|
|
3961
|
+
accountId: string;
|
|
3962
|
+
};
|
|
3963
|
+
} | {
|
|
3964
|
+
type: "LIFECYCLE_STARTED";
|
|
3965
|
+
data: {
|
|
3966
|
+
accountId: string;
|
|
3967
|
+
caseId: string;
|
|
3968
|
+
};
|
|
3969
|
+
} | {
|
|
3970
|
+
type: "PUBLISHED";
|
|
3971
|
+
data: {
|
|
3972
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3973
|
+
};
|
|
3974
|
+
} | {
|
|
3975
|
+
type: "REPUBLISHING";
|
|
3976
|
+
data: {
|
|
3977
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3978
|
+
publishingDate?: Date | null | undefined;
|
|
3979
|
+
priceDropPayload?: {
|
|
3980
|
+
value: number;
|
|
3981
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3982
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3983
|
+
roundStep?: number | null | undefined;
|
|
3984
|
+
maxRounds?: number | null | undefined;
|
|
3985
|
+
} | null | undefined;
|
|
3986
|
+
isTransfer?: boolean | null | undefined;
|
|
3987
|
+
targetAccountId?: string | null | undefined;
|
|
3988
|
+
};
|
|
3989
|
+
} | {
|
|
3990
|
+
type: "REPUBLISHING_RETRY";
|
|
3991
|
+
data: {
|
|
3992
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3993
|
+
attemptNumber: number;
|
|
3994
|
+
maxAttempts: number;
|
|
3995
|
+
previousHistoryId: string;
|
|
3996
|
+
originalFailureDate: Date;
|
|
3997
|
+
fields?: {
|
|
3998
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3999
|
+
autoFixable: boolean;
|
|
4000
|
+
error?: string | null | undefined;
|
|
4001
|
+
}[] | null | undefined;
|
|
4002
|
+
priceDropPayload?: {
|
|
4003
|
+
value: number;
|
|
4004
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
4005
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
4006
|
+
roundStep?: number | null | undefined;
|
|
4007
|
+
maxRounds?: number | null | undefined;
|
|
4008
|
+
} | null | undefined;
|
|
4009
|
+
};
|
|
4010
|
+
} | {
|
|
4011
|
+
type: "SCHEDULED";
|
|
4012
|
+
data: {
|
|
4013
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4014
|
+
publishingDate?: Date | null | undefined;
|
|
4015
|
+
};
|
|
4016
|
+
} | {
|
|
4017
|
+
type: "SCHEDULED_RETRY";
|
|
4018
|
+
data: {
|
|
4019
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4020
|
+
attemptNumber: number;
|
|
4021
|
+
maxAttempts: number;
|
|
4022
|
+
previousHistoryId: string;
|
|
4023
|
+
originalFailureDate: Date;
|
|
4024
|
+
fields?: {
|
|
4025
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
4026
|
+
autoFixable: boolean;
|
|
4027
|
+
error?: string | null | undefined;
|
|
4028
|
+
}[] | null | undefined;
|
|
4029
|
+
};
|
|
4030
|
+
} | null | undefined;
|
|
4031
|
+
accountId?: string | null | undefined;
|
|
4032
|
+
requestId?: string | null | undefined;
|
|
4033
|
+
targetDate?: Date | null | undefined;
|
|
4034
|
+
} | null | undefined;
|
|
4035
|
+
platforms?: {
|
|
4036
|
+
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
4037
|
+
id: string;
|
|
4038
|
+
updatedAt: Date;
|
|
4039
|
+
createdAt: Date;
|
|
4040
|
+
accountId: string;
|
|
4041
|
+
itemId: string | number;
|
|
4042
|
+
platformId: string;
|
|
4043
|
+
platformUrl: string;
|
|
4044
|
+
platformPrice: number;
|
|
4045
|
+
publishedAt: Date;
|
|
4046
|
+
conversationId?: string | null | undefined;
|
|
4047
|
+
account?: {
|
|
4048
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
4049
|
+
userId: string | number;
|
|
4050
|
+
name: string;
|
|
4051
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4052
|
+
accountId: string;
|
|
4053
|
+
locale?: string | null | undefined;
|
|
4054
|
+
night?: {
|
|
4055
|
+
startsAt: Date;
|
|
4056
|
+
endsAt: Date;
|
|
4057
|
+
} | null | undefined;
|
|
4058
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
4059
|
+
ordersMaxDelay?: number | null | undefined;
|
|
4060
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
4061
|
+
} | null | undefined;
|
|
4062
|
+
viewsCount?: number | null | undefined;
|
|
4063
|
+
favoritesCount?: number | null | undefined;
|
|
4064
|
+
}[] | null | undefined;
|
|
4065
|
+
history?: {
|
|
4066
|
+
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
4067
|
+
id: string;
|
|
4068
|
+
createdAt: Date;
|
|
4069
|
+
itemId: string | number;
|
|
4070
|
+
data?: {
|
|
4071
|
+
type: "ACTION_CANCELED";
|
|
4072
|
+
data: {
|
|
4073
|
+
targetItemHistoryId: string;
|
|
4074
|
+
};
|
|
4075
|
+
} | {
|
|
4076
|
+
type: "BUYER_PAID";
|
|
4077
|
+
data: {
|
|
4078
|
+
soldAccountId: string;
|
|
4079
|
+
soldOrderId: string;
|
|
4080
|
+
soldConversationId?: string | null | undefined;
|
|
4081
|
+
};
|
|
4082
|
+
} | {
|
|
4083
|
+
type: "DELIVERED";
|
|
4084
|
+
data: {
|
|
4085
|
+
soldAccountId: string;
|
|
4086
|
+
soldOrderId: string;
|
|
4087
|
+
soldConversationId?: string | null | undefined;
|
|
4088
|
+
};
|
|
4089
|
+
} | {
|
|
4090
|
+
type: "EMPTY";
|
|
4091
|
+
} | {
|
|
4092
|
+
type: "FAILED_TO_PUBLISH";
|
|
4093
|
+
data: {
|
|
4094
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4095
|
+
accountId?: string | null | undefined;
|
|
4096
|
+
reason?: string | null | undefined;
|
|
4097
|
+
fields?: {
|
|
4098
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
4099
|
+
autoFixable: boolean;
|
|
4100
|
+
error?: string | null | undefined;
|
|
4101
|
+
}[] | null | undefined;
|
|
4102
|
+
itemHistoryId?: string | null | undefined;
|
|
4103
|
+
};
|
|
4104
|
+
} | {
|
|
4105
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
4106
|
+
data: {
|
|
4107
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4108
|
+
variations?: {
|
|
4109
|
+
fileId: string;
|
|
4110
|
+
seed: number;
|
|
4111
|
+
phash: string;
|
|
4112
|
+
distanceOriginal: number;
|
|
4113
|
+
originalImageUrl: string;
|
|
4114
|
+
originalPhash: string;
|
|
4115
|
+
}[] | null | undefined;
|
|
4116
|
+
originalPhashes?: string[] | null | undefined;
|
|
4117
|
+
};
|
|
4118
|
+
} | {
|
|
4119
|
+
type: "IMPORTED";
|
|
4120
|
+
data: {
|
|
4121
|
+
post: {
|
|
4122
|
+
platformId: string;
|
|
4123
|
+
post: {
|
|
4124
|
+
status?: string | null | undefined;
|
|
4125
|
+
price?: number | null | undefined;
|
|
4126
|
+
currency?: string | null | undefined;
|
|
4127
|
+
brand?: string | null | undefined;
|
|
4128
|
+
catalog?: string | null | undefined;
|
|
4129
|
+
catalogId?: number | null | undefined;
|
|
4130
|
+
colors?: string[] | null | undefined;
|
|
4131
|
+
colorIds?: number[] | null | undefined;
|
|
4132
|
+
description?: string | null | undefined;
|
|
4133
|
+
measurementLength?: number | null | undefined;
|
|
4134
|
+
measurementWidth?: number | null | undefined;
|
|
4135
|
+
packageSizeId?: number | null | undefined;
|
|
4136
|
+
photoUrls?: string[] | null | undefined;
|
|
4137
|
+
size?: string | null | undefined;
|
|
4138
|
+
sizeId?: number | null | undefined;
|
|
4139
|
+
statusId?: number | null | undefined;
|
|
4140
|
+
title?: string | null | undefined;
|
|
4141
|
+
isDraft?: boolean | null | undefined;
|
|
4142
|
+
isArchived?: boolean | null | undefined;
|
|
4143
|
+
availableQuantity?: number | null | undefined;
|
|
4144
|
+
material?: number[] | null | undefined;
|
|
4145
|
+
manufacturerLabelling?: string | null | undefined;
|
|
4146
|
+
labels?: string[] | null | undefined;
|
|
4147
|
+
};
|
|
4148
|
+
createdAt?: Date | null | undefined;
|
|
4149
|
+
platformUrl?: string | null | undefined;
|
|
4150
|
+
};
|
|
4151
|
+
};
|
|
4152
|
+
} | {
|
|
4153
|
+
type: "LIFECYCLE_COMPLETED";
|
|
4154
|
+
data: {
|
|
4155
|
+
accountId: string;
|
|
4156
|
+
};
|
|
4157
|
+
} | {
|
|
4158
|
+
type: "LIFECYCLE_STARTED";
|
|
4159
|
+
data: {
|
|
4160
|
+
accountId: string;
|
|
4161
|
+
caseId: string;
|
|
4162
|
+
};
|
|
4163
|
+
} | {
|
|
4164
|
+
type: "PUBLISHED";
|
|
4165
|
+
data: {
|
|
4166
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4167
|
+
};
|
|
4168
|
+
} | {
|
|
4169
|
+
type: "REPUBLISHING";
|
|
4170
|
+
data: {
|
|
4171
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4172
|
+
publishingDate?: Date | null | undefined;
|
|
4173
|
+
priceDropPayload?: {
|
|
4174
|
+
value: number;
|
|
4175
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
4176
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
4177
|
+
roundStep?: number | null | undefined;
|
|
4178
|
+
maxRounds?: number | null | undefined;
|
|
4179
|
+
} | null | undefined;
|
|
4180
|
+
isTransfer?: boolean | null | undefined;
|
|
4181
|
+
targetAccountId?: string | null | undefined;
|
|
4182
|
+
};
|
|
4183
|
+
} | {
|
|
4184
|
+
type: "REPUBLISHING_RETRY";
|
|
4185
|
+
data: {
|
|
4186
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4187
|
+
attemptNumber: number;
|
|
4188
|
+
maxAttempts: number;
|
|
4189
|
+
previousHistoryId: string;
|
|
4190
|
+
originalFailureDate: Date;
|
|
4191
|
+
fields?: {
|
|
4192
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
4193
|
+
autoFixable: boolean;
|
|
4194
|
+
error?: string | null | undefined;
|
|
4195
|
+
}[] | null | undefined;
|
|
4196
|
+
priceDropPayload?: {
|
|
4197
|
+
value: number;
|
|
4198
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
4199
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
4200
|
+
roundStep?: number | null | undefined;
|
|
4201
|
+
maxRounds?: number | null | undefined;
|
|
4202
|
+
} | null | undefined;
|
|
4203
|
+
};
|
|
4204
|
+
} | {
|
|
4205
|
+
type: "SCHEDULED";
|
|
4206
|
+
data: {
|
|
4207
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4208
|
+
publishingDate?: Date | null | undefined;
|
|
4209
|
+
};
|
|
4210
|
+
} | {
|
|
4211
|
+
type: "SCHEDULED_RETRY";
|
|
4212
|
+
data: {
|
|
4213
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4214
|
+
attemptNumber: number;
|
|
4215
|
+
maxAttempts: number;
|
|
4216
|
+
previousHistoryId: string;
|
|
4217
|
+
originalFailureDate: Date;
|
|
4218
|
+
fields?: {
|
|
4219
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
4220
|
+
autoFixable: boolean;
|
|
4221
|
+
error?: string | null | undefined;
|
|
4222
|
+
}[] | null | undefined;
|
|
4223
|
+
};
|
|
4224
|
+
} | null | undefined;
|
|
4225
|
+
accountId?: string | null | undefined;
|
|
4226
|
+
requestId?: string | null | undefined;
|
|
4227
|
+
targetDate?: Date | null | undefined;
|
|
4228
|
+
}[] | null | undefined;
|
|
4229
|
+
}>, "many">;
|
|
4230
|
+
}, "strip", z.ZodTypeAny, {
|
|
4231
|
+
items: {
|
|
4232
|
+
userId: string | number;
|
|
4233
|
+
id: string | number;
|
|
4234
|
+
updatedAt: Date;
|
|
4235
|
+
name: string;
|
|
4236
|
+
createdAt: Date;
|
|
4237
|
+
sold: boolean;
|
|
4238
|
+
state?: number | null | undefined;
|
|
4239
|
+
colorIds?: number[] | null | undefined;
|
|
4240
|
+
description?: string | null | undefined;
|
|
4241
|
+
packageSizeId?: number | null | undefined;
|
|
4242
|
+
sizeId?: number | null | undefined;
|
|
4243
|
+
labels?: {
|
|
4244
|
+
itemId: string | number;
|
|
4245
|
+
labelId: string | number;
|
|
4246
|
+
label?: {
|
|
4247
|
+
id: string | number;
|
|
4248
|
+
name: string;
|
|
4249
|
+
createdAt: Date;
|
|
4250
|
+
isUserLabel: boolean;
|
|
4251
|
+
userId?: string | number | null | undefined;
|
|
4252
|
+
itemCount?: number | null | undefined;
|
|
4253
|
+
parentId?: unknown;
|
|
4254
|
+
} | null | undefined;
|
|
4255
|
+
}[] | null | undefined;
|
|
4256
|
+
files?: {
|
|
4257
|
+
itemId: string | number;
|
|
4258
|
+
fileId: string;
|
|
4259
|
+
index?: number | null | undefined;
|
|
4260
|
+
file?: {
|
|
4261
|
+
path: string;
|
|
4262
|
+
userId: string | number;
|
|
4263
|
+
id: string;
|
|
4264
|
+
createdAt: Date;
|
|
4265
|
+
signedUrl: string;
|
|
4266
|
+
} | null | undefined;
|
|
4267
|
+
}[] | null | undefined;
|
|
4268
|
+
fields?: {
|
|
4269
|
+
value: string;
|
|
4270
|
+
itemId: string | number;
|
|
4271
|
+
fieldId: string | number;
|
|
4272
|
+
}[] | null | undefined;
|
|
4273
|
+
sku?: string | null | undefined;
|
|
4274
|
+
categoryId?: number | null | undefined;
|
|
4275
|
+
brandId?: string | number | null | undefined;
|
|
4276
|
+
sex?: string | null | undefined;
|
|
4277
|
+
purchasePrice?: number | null | undefined;
|
|
4278
|
+
purchaseDate?: Date | null | undefined;
|
|
4279
|
+
purchasePlaceId?: string | number | null | undefined;
|
|
4280
|
+
purchased?: boolean | null | undefined;
|
|
4281
|
+
sellingPrice?: number | null | undefined;
|
|
4282
|
+
sellingDate?: Date | null | undefined;
|
|
4283
|
+
sellingPlaceId?: string | number | null | undefined;
|
|
4284
|
+
estimatedPrice?: number | null | undefined;
|
|
4285
|
+
fees?: {
|
|
4286
|
+
value: number;
|
|
4287
|
+
type: string;
|
|
4288
|
+
userId: string | number;
|
|
4289
|
+
id: string | number;
|
|
4290
|
+
updatedAt: Date;
|
|
4291
|
+
name: string;
|
|
4292
|
+
createdAt: Date;
|
|
4293
|
+
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
4294
|
+
startDate: Date;
|
|
4295
|
+
active: boolean;
|
|
4296
|
+
description?: string | null | undefined;
|
|
4297
|
+
itemId?: string | number | null | undefined;
|
|
4298
|
+
endDate?: Date | null | undefined;
|
|
4299
|
+
parentFeeId?: string | number | null | undefined;
|
|
4300
|
+
}[] | null | undefined;
|
|
4301
|
+
feesSum?: number | null | undefined;
|
|
4302
|
+
customerId?: string | number | null | undefined;
|
|
4303
|
+
customer?: {
|
|
4304
|
+
userId: string | number;
|
|
4305
|
+
id: string | number;
|
|
4306
|
+
email: string;
|
|
4307
|
+
firstName: string;
|
|
4308
|
+
lastName: string;
|
|
4309
|
+
birthDate: Date;
|
|
4310
|
+
idNumber: string;
|
|
4311
|
+
phone: string;
|
|
4312
|
+
iban: string;
|
|
4313
|
+
bic: string;
|
|
4314
|
+
phoneVerified: boolean;
|
|
4315
|
+
} | null | undefined;
|
|
4316
|
+
customerType?: string | null | undefined;
|
|
4317
|
+
customerPaid?: boolean | null | undefined;
|
|
4318
|
+
customerPaidDate?: Date | null | undefined;
|
|
4319
|
+
customerPaidType?: string | null | undefined;
|
|
4320
|
+
contractId?: string | number | null | undefined;
|
|
4321
|
+
lastHistory?: {
|
|
4322
|
+
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
4323
|
+
id: string;
|
|
4324
|
+
createdAt: Date;
|
|
4325
|
+
itemId: string | number;
|
|
4326
|
+
data?: {
|
|
4327
|
+
type: "ACTION_CANCELED";
|
|
4328
|
+
data: {
|
|
4329
|
+
targetItemHistoryId: string;
|
|
4330
|
+
};
|
|
4331
|
+
} | {
|
|
4332
|
+
type: "BUYER_PAID";
|
|
4333
|
+
data: {
|
|
4334
|
+
soldAccountId: string;
|
|
4335
|
+
soldOrderId: string;
|
|
4336
|
+
soldConversationId?: string | null | undefined;
|
|
4337
|
+
};
|
|
4338
|
+
} | {
|
|
4339
|
+
type: "DELIVERED";
|
|
4340
|
+
data: {
|
|
4341
|
+
soldAccountId: string;
|
|
4342
|
+
soldOrderId: string;
|
|
4343
|
+
soldConversationId?: string | null | undefined;
|
|
4344
|
+
};
|
|
4345
|
+
} | {
|
|
4346
|
+
type: "EMPTY";
|
|
4347
|
+
} | {
|
|
4348
|
+
type: "FAILED_TO_PUBLISH";
|
|
4349
|
+
data: {
|
|
4350
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4351
|
+
accountId?: string | null | undefined;
|
|
4352
|
+
reason?: string | null | undefined;
|
|
4353
|
+
fields?: {
|
|
4354
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
4355
|
+
autoFixable: boolean;
|
|
4356
|
+
error?: string | null | undefined;
|
|
4357
|
+
}[] | null | undefined;
|
|
4358
|
+
itemHistoryId?: string | null | undefined;
|
|
4359
|
+
};
|
|
4360
|
+
} | {
|
|
4361
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
4362
|
+
data: {
|
|
4363
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4364
|
+
variations?: {
|
|
4365
|
+
fileId: string;
|
|
4366
|
+
seed: number;
|
|
4367
|
+
phash: string;
|
|
4368
|
+
distanceOriginal: number;
|
|
4369
|
+
originalImageUrl: string;
|
|
4370
|
+
originalPhash: string;
|
|
4371
|
+
}[] | null | undefined;
|
|
4372
|
+
originalPhashes?: string[] | null | undefined;
|
|
4373
|
+
};
|
|
4374
|
+
} | {
|
|
4375
|
+
type: "IMPORTED";
|
|
4376
|
+
data: {
|
|
4377
|
+
post: {
|
|
4378
|
+
platformId: string;
|
|
4379
|
+
post: {
|
|
4380
|
+
status?: string | null | undefined;
|
|
4381
|
+
price?: number | null | undefined;
|
|
4382
|
+
currency?: string | null | undefined;
|
|
4383
|
+
brand?: string | null | undefined;
|
|
4384
|
+
catalog?: string | null | undefined;
|
|
4385
|
+
catalogId?: number | null | undefined;
|
|
4386
|
+
colors?: string[] | null | undefined;
|
|
4387
|
+
colorIds?: number[] | null | undefined;
|
|
4388
|
+
description?: string | null | undefined;
|
|
4389
|
+
measurementLength?: number | null | undefined;
|
|
4390
|
+
measurementWidth?: number | null | undefined;
|
|
4391
|
+
packageSizeId?: number | null | undefined;
|
|
4392
|
+
photoUrls?: string[] | null | undefined;
|
|
4393
|
+
size?: string | null | undefined;
|
|
4394
|
+
sizeId?: number | null | undefined;
|
|
4395
|
+
statusId?: number | null | undefined;
|
|
4396
|
+
title?: string | null | undefined;
|
|
4397
|
+
isDraft?: boolean | null | undefined;
|
|
4398
|
+
isArchived?: boolean | null | undefined;
|
|
4399
|
+
availableQuantity?: number | null | undefined;
|
|
4400
|
+
material?: number[] | null | undefined;
|
|
4401
|
+
manufacturerLabelling?: string | null | undefined;
|
|
4402
|
+
labels?: string[] | null | undefined;
|
|
4403
|
+
};
|
|
4404
|
+
createdAt?: Date | null | undefined;
|
|
4405
|
+
platformUrl?: string | null | undefined;
|
|
4406
|
+
};
|
|
4407
|
+
};
|
|
4408
|
+
} | {
|
|
4409
|
+
type: "LIFECYCLE_COMPLETED";
|
|
4410
|
+
data: {
|
|
4411
|
+
accountId: string;
|
|
4412
|
+
};
|
|
4413
|
+
} | {
|
|
4414
|
+
type: "LIFECYCLE_STARTED";
|
|
4415
|
+
data: {
|
|
4416
|
+
accountId: string;
|
|
4417
|
+
caseId: string;
|
|
4418
|
+
};
|
|
4419
|
+
} | {
|
|
4420
|
+
type: "PUBLISHED";
|
|
4421
|
+
data: {
|
|
4422
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4423
|
+
};
|
|
4424
|
+
} | {
|
|
4425
|
+
type: "REPUBLISHING";
|
|
4426
|
+
data: {
|
|
4427
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4428
|
+
publishingDate?: Date | null | undefined;
|
|
4429
|
+
priceDropPayload?: {
|
|
4430
|
+
value: number;
|
|
4431
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
4432
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
4433
|
+
roundStep?: number | null | undefined;
|
|
4434
|
+
maxRounds?: number | null | undefined;
|
|
4435
|
+
} | null | undefined;
|
|
4436
|
+
isTransfer?: boolean | null | undefined;
|
|
4437
|
+
targetAccountId?: string | null | undefined;
|
|
4438
|
+
};
|
|
4439
|
+
} | {
|
|
4440
|
+
type: "REPUBLISHING_RETRY";
|
|
4441
|
+
data: {
|
|
4442
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4443
|
+
attemptNumber: number;
|
|
4444
|
+
maxAttempts: number;
|
|
4445
|
+
previousHistoryId: string;
|
|
4446
|
+
originalFailureDate: Date;
|
|
4447
|
+
fields?: {
|
|
4448
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
4449
|
+
autoFixable: boolean;
|
|
4450
|
+
error?: string | null | undefined;
|
|
4451
|
+
}[] | null | undefined;
|
|
4452
|
+
priceDropPayload?: {
|
|
4453
|
+
value: number;
|
|
4454
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
4455
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
4456
|
+
roundStep?: number | null | undefined;
|
|
4457
|
+
maxRounds?: number | null | undefined;
|
|
4458
|
+
} | null | undefined;
|
|
4459
|
+
};
|
|
4460
|
+
} | {
|
|
4461
|
+
type: "SCHEDULED";
|
|
4462
|
+
data: {
|
|
4463
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4464
|
+
publishingDate?: Date | null | undefined;
|
|
4465
|
+
};
|
|
4466
|
+
} | {
|
|
4467
|
+
type: "SCHEDULED_RETRY";
|
|
4468
|
+
data: {
|
|
4469
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4470
|
+
attemptNumber: number;
|
|
4471
|
+
maxAttempts: number;
|
|
4472
|
+
previousHistoryId: string;
|
|
4473
|
+
originalFailureDate: Date;
|
|
4474
|
+
fields?: {
|
|
4475
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
4476
|
+
autoFixable: boolean;
|
|
4477
|
+
error?: string | null | undefined;
|
|
4478
|
+
}[] | null | undefined;
|
|
4479
|
+
};
|
|
4480
|
+
} | null | undefined;
|
|
4481
|
+
accountId?: string | null | undefined;
|
|
4482
|
+
requestId?: string | null | undefined;
|
|
4483
|
+
targetDate?: Date | null | undefined;
|
|
4484
|
+
} | null | undefined;
|
|
4485
|
+
platforms?: {
|
|
4486
|
+
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
4487
|
+
id: string;
|
|
4488
|
+
updatedAt: Date;
|
|
4489
|
+
createdAt: Date;
|
|
4490
|
+
accountId: string;
|
|
4491
|
+
itemId: string | number;
|
|
4492
|
+
platformId: string;
|
|
4493
|
+
platformUrl: string;
|
|
4494
|
+
platformPrice: number;
|
|
4495
|
+
publishedAt: Date;
|
|
4496
|
+
conversationId?: string | null | undefined;
|
|
4497
|
+
account?: {
|
|
4498
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
4499
|
+
userId: string | number;
|
|
4500
|
+
name: string;
|
|
4501
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4502
|
+
accountId: string;
|
|
4503
|
+
locale?: string | null | undefined;
|
|
4504
|
+
night?: {
|
|
4505
|
+
startsAt: Date;
|
|
4506
|
+
endsAt: Date;
|
|
4507
|
+
} | null | undefined;
|
|
4508
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
4509
|
+
ordersMaxDelay?: number | null | undefined;
|
|
4510
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
4511
|
+
} | null | undefined;
|
|
4512
|
+
viewsCount?: number | null | undefined;
|
|
4513
|
+
favoritesCount?: number | null | undefined;
|
|
4514
|
+
}[] | null | undefined;
|
|
4515
|
+
history?: {
|
|
4516
|
+
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
4517
|
+
id: string;
|
|
4518
|
+
createdAt: Date;
|
|
4519
|
+
itemId: string | number;
|
|
4520
|
+
data?: {
|
|
4521
|
+
type: "ACTION_CANCELED";
|
|
4522
|
+
data: {
|
|
4523
|
+
targetItemHistoryId: string;
|
|
4524
|
+
};
|
|
4525
|
+
} | {
|
|
4526
|
+
type: "BUYER_PAID";
|
|
4527
|
+
data: {
|
|
4528
|
+
soldAccountId: string;
|
|
4529
|
+
soldOrderId: string;
|
|
4530
|
+
soldConversationId?: string | null | undefined;
|
|
4531
|
+
};
|
|
4532
|
+
} | {
|
|
4533
|
+
type: "DELIVERED";
|
|
4534
|
+
data: {
|
|
4535
|
+
soldAccountId: string;
|
|
4536
|
+
soldOrderId: string;
|
|
4537
|
+
soldConversationId?: string | null | undefined;
|
|
4538
|
+
};
|
|
4539
|
+
} | {
|
|
4540
|
+
type: "EMPTY";
|
|
4541
|
+
} | {
|
|
4542
|
+
type: "FAILED_TO_PUBLISH";
|
|
4543
|
+
data: {
|
|
4544
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4545
|
+
accountId?: string | null | undefined;
|
|
4546
|
+
reason?: string | null | undefined;
|
|
4547
|
+
fields?: {
|
|
4548
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
4549
|
+
autoFixable: boolean;
|
|
4550
|
+
error?: string | null | undefined;
|
|
4551
|
+
}[] | null | undefined;
|
|
4552
|
+
itemHistoryId?: string | null | undefined;
|
|
4553
|
+
};
|
|
4554
|
+
} | {
|
|
4555
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
4556
|
+
data: {
|
|
4557
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4558
|
+
variations?: {
|
|
4559
|
+
fileId: string;
|
|
4560
|
+
seed: number;
|
|
4561
|
+
phash: string;
|
|
4562
|
+
distanceOriginal: number;
|
|
4563
|
+
originalImageUrl: string;
|
|
4564
|
+
originalPhash: string;
|
|
4565
|
+
}[] | null | undefined;
|
|
4566
|
+
originalPhashes?: string[] | null | undefined;
|
|
2254
4567
|
};
|
|
2255
4568
|
} | {
|
|
2256
4569
|
type: "IMPORTED";
|
|
@@ -2297,6 +4610,11 @@ export declare const UserOrdersSchema: z.ZodObject<{
|
|
|
2297
4610
|
accountId: string;
|
|
2298
4611
|
caseId: string;
|
|
2299
4612
|
};
|
|
4613
|
+
} | {
|
|
4614
|
+
type: "PUBLISHED";
|
|
4615
|
+
data: {
|
|
4616
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4617
|
+
};
|
|
2300
4618
|
} | {
|
|
2301
4619
|
type: "REPUBLISHING";
|
|
2302
4620
|
data: {
|
|
@@ -2357,38 +4675,105 @@ export declare const UserOrdersSchema: z.ZodObject<{
|
|
|
2357
4675
|
accountId?: string | null | undefined;
|
|
2358
4676
|
requestId?: string | null | undefined;
|
|
2359
4677
|
targetDate?: Date | null | undefined;
|
|
2360
|
-
} | null | undefined;
|
|
2361
|
-
|
|
2362
|
-
|
|
4678
|
+
}[] | null | undefined;
|
|
4679
|
+
}[];
|
|
4680
|
+
order: {
|
|
4681
|
+
type: "SALE" | "PURCHASE";
|
|
4682
|
+
status: "UNKNOWN" | "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "ORDER_RETURNED_TO_SENDER";
|
|
4683
|
+
date: Date;
|
|
4684
|
+
id: string;
|
|
4685
|
+
price: number;
|
|
4686
|
+
accountId: string;
|
|
4687
|
+
isPrepared: boolean;
|
|
4688
|
+
platformOrderId: string;
|
|
4689
|
+
transactionId?: string | null | undefined;
|
|
4690
|
+
conversationId?: string | null | undefined;
|
|
4691
|
+
labels?: {
|
|
2363
4692
|
id: string;
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
4693
|
+
orderId: string;
|
|
4694
|
+
fileId: string;
|
|
4695
|
+
nonCroppedFileId: string;
|
|
4696
|
+
originalFileId: string;
|
|
4697
|
+
file?: {
|
|
4698
|
+
path: string;
|
|
4699
|
+
userId: string | number;
|
|
4700
|
+
id: string;
|
|
4701
|
+
createdAt: Date;
|
|
4702
|
+
signedUrl: string;
|
|
4703
|
+
} | null | undefined;
|
|
4704
|
+
originalFile?: {
|
|
4705
|
+
path: string;
|
|
4706
|
+
userId: string | number;
|
|
4707
|
+
id: string;
|
|
4708
|
+
createdAt: Date;
|
|
4709
|
+
signedUrl: string;
|
|
4710
|
+
} | null | undefined;
|
|
4711
|
+
nonCroppedFile?: {
|
|
4712
|
+
path: string;
|
|
2375
4713
|
userId: string | number;
|
|
4714
|
+
id: string;
|
|
4715
|
+
createdAt: Date;
|
|
4716
|
+
signedUrl: string;
|
|
4717
|
+
} | null | undefined;
|
|
4718
|
+
}[] | null | undefined;
|
|
4719
|
+
pickupPoints?: {
|
|
4720
|
+
orderId: string;
|
|
4721
|
+
pickupPointId: string;
|
|
4722
|
+
isQrcode: boolean;
|
|
4723
|
+
code?: string | null | undefined;
|
|
4724
|
+
trackingLink?: string | null | undefined;
|
|
4725
|
+
availableUntil?: Date | null | undefined;
|
|
4726
|
+
pickupPoint?: {
|
|
4727
|
+
id: string;
|
|
2376
4728
|
name: string;
|
|
2377
|
-
|
|
4729
|
+
postalCode: string;
|
|
4730
|
+
city: string;
|
|
4731
|
+
countryCode: string;
|
|
2378
4732
|
accountId: string;
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
4733
|
+
addressLine1: string;
|
|
4734
|
+
platformPickupPointId: string;
|
|
4735
|
+
addressLine2?: string | null | undefined;
|
|
4736
|
+
latitude?: number | null | undefined;
|
|
4737
|
+
longitude?: number | null | undefined;
|
|
4738
|
+
} | null | undefined;
|
|
4739
|
+
}[] | null | undefined;
|
|
4740
|
+
items?: {
|
|
4741
|
+
orderId: string;
|
|
4742
|
+
itemOnPlatformId: string;
|
|
4743
|
+
itemOnPlatform?: {
|
|
4744
|
+
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
4745
|
+
id: string;
|
|
4746
|
+
updatedAt: Date;
|
|
4747
|
+
createdAt: Date;
|
|
4748
|
+
accountId: string;
|
|
4749
|
+
itemId: string | number;
|
|
4750
|
+
platformId: string;
|
|
4751
|
+
platformUrl: string;
|
|
4752
|
+
platformPrice: number;
|
|
4753
|
+
publishedAt: Date;
|
|
4754
|
+
conversationId?: string | null | undefined;
|
|
4755
|
+
account?: {
|
|
4756
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
4757
|
+
userId: string | number;
|
|
4758
|
+
name: string;
|
|
4759
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4760
|
+
accountId: string;
|
|
4761
|
+
locale?: string | null | undefined;
|
|
4762
|
+
night?: {
|
|
4763
|
+
startsAt: Date;
|
|
4764
|
+
endsAt: Date;
|
|
4765
|
+
} | null | undefined;
|
|
4766
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
4767
|
+
ordersMaxDelay?: number | null | undefined;
|
|
4768
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
2383
4769
|
} | null | undefined;
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
conversationsMaxDelay?: number | null | undefined;
|
|
4770
|
+
viewsCount?: number | null | undefined;
|
|
4771
|
+
favoritesCount?: number | null | undefined;
|
|
2387
4772
|
} | null | undefined;
|
|
2388
|
-
viewsCount?: number | null | undefined;
|
|
2389
|
-
favoritesCount?: number | null | undefined;
|
|
2390
4773
|
}[] | null | undefined;
|
|
2391
|
-
}
|
|
4774
|
+
};
|
|
4775
|
+
}, {
|
|
4776
|
+
items: {
|
|
2392
4777
|
userId: string | number;
|
|
2393
4778
|
id: string | number;
|
|
2394
4779
|
updatedAt: Date;
|
|
@@ -2576,6 +4961,11 @@ export declare const UserOrdersSchema: z.ZodObject<{
|
|
|
2576
4961
|
accountId: string;
|
|
2577
4962
|
caseId: string;
|
|
2578
4963
|
};
|
|
4964
|
+
} | {
|
|
4965
|
+
type: "PUBLISHED";
|
|
4966
|
+
data: {
|
|
4967
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4968
|
+
};
|
|
2579
4969
|
} | {
|
|
2580
4970
|
type: "REPUBLISHING";
|
|
2581
4971
|
data: {
|
|
@@ -2647,119 +5037,27 @@ export declare const UserOrdersSchema: z.ZodObject<{
|
|
|
2647
5037
|
platformId: string;
|
|
2648
5038
|
platformUrl: string;
|
|
2649
5039
|
platformPrice: number;
|
|
2650
|
-
publishedAt: Date;
|
|
2651
|
-
conversationId?: string | null | undefined;
|
|
2652
|
-
account?: {
|
|
2653
|
-
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
2654
|
-
userId: string | number;
|
|
2655
|
-
name: string;
|
|
2656
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2657
|
-
accountId: string;
|
|
2658
|
-
locale?: string | null | undefined;
|
|
2659
|
-
night?: {
|
|
2660
|
-
startsAt: Date;
|
|
2661
|
-
endsAt: Date;
|
|
2662
|
-
} | null | undefined;
|
|
2663
|
-
favoritesMaxDelay?: number | null | undefined;
|
|
2664
|
-
ordersMaxDelay?: number | null | undefined;
|
|
2665
|
-
conversationsMaxDelay?: number | null | undefined;
|
|
2666
|
-
} | null | undefined;
|
|
2667
|
-
viewsCount?: number | null | undefined;
|
|
2668
|
-
favoritesCount?: number | null | undefined;
|
|
2669
|
-
}[] | null | undefined;
|
|
2670
|
-
|
|
2671
|
-
}, "strip", z.ZodTypeAny, {
|
|
2672
|
-
items: {
|
|
2673
|
-
userId: string | number;
|
|
2674
|
-
id: string | number;
|
|
2675
|
-
updatedAt: Date;
|
|
2676
|
-
name: string;
|
|
2677
|
-
createdAt: Date;
|
|
2678
|
-
sold: boolean;
|
|
2679
|
-
state?: number | null | undefined;
|
|
2680
|
-
colorIds?: number[] | null | undefined;
|
|
2681
|
-
description?: string | null | undefined;
|
|
2682
|
-
packageSizeId?: number | null | undefined;
|
|
2683
|
-
sizeId?: number | null | undefined;
|
|
2684
|
-
labels?: {
|
|
2685
|
-
itemId: string | number;
|
|
2686
|
-
labelId: string | number;
|
|
2687
|
-
label?: {
|
|
2688
|
-
id: string | number;
|
|
2689
|
-
name: string;
|
|
2690
|
-
createdAt: Date;
|
|
2691
|
-
isUserLabel: boolean;
|
|
2692
|
-
userId?: string | number | null | undefined;
|
|
2693
|
-
itemCount?: number | null | undefined;
|
|
2694
|
-
parentId?: unknown;
|
|
2695
|
-
} | null | undefined;
|
|
2696
|
-
}[] | null | undefined;
|
|
2697
|
-
files?: {
|
|
2698
|
-
itemId: string | number;
|
|
2699
|
-
fileId: string;
|
|
2700
|
-
index?: number | null | undefined;
|
|
2701
|
-
file?: {
|
|
2702
|
-
path: string;
|
|
2703
|
-
userId: string | number;
|
|
2704
|
-
id: string;
|
|
2705
|
-
createdAt: Date;
|
|
2706
|
-
signedUrl: string;
|
|
2707
|
-
} | null | undefined;
|
|
2708
|
-
}[] | null | undefined;
|
|
2709
|
-
fields?: {
|
|
2710
|
-
value: string;
|
|
2711
|
-
itemId: string | number;
|
|
2712
|
-
fieldId: string | number;
|
|
2713
|
-
}[] | null | undefined;
|
|
2714
|
-
sku?: string | null | undefined;
|
|
2715
|
-
categoryId?: number | null | undefined;
|
|
2716
|
-
brandId?: string | number | null | undefined;
|
|
2717
|
-
sex?: string | null | undefined;
|
|
2718
|
-
purchasePrice?: number | null | undefined;
|
|
2719
|
-
purchaseDate?: Date | null | undefined;
|
|
2720
|
-
purchasePlaceId?: string | number | null | undefined;
|
|
2721
|
-
purchased?: boolean | null | undefined;
|
|
2722
|
-
sellingPrice?: number | null | undefined;
|
|
2723
|
-
sellingDate?: Date | null | undefined;
|
|
2724
|
-
sellingPlaceId?: string | number | null | undefined;
|
|
2725
|
-
estimatedPrice?: number | null | undefined;
|
|
2726
|
-
fees?: {
|
|
2727
|
-
value: number;
|
|
2728
|
-
type: string;
|
|
2729
|
-
userId: string | number;
|
|
2730
|
-
id: string | number;
|
|
2731
|
-
updatedAt: Date;
|
|
2732
|
-
name: string;
|
|
2733
|
-
createdAt: Date;
|
|
2734
|
-
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
2735
|
-
startDate: Date;
|
|
2736
|
-
active: boolean;
|
|
2737
|
-
description?: string | null | undefined;
|
|
2738
|
-
itemId?: string | number | null | undefined;
|
|
2739
|
-
endDate?: Date | null | undefined;
|
|
2740
|
-
parentFeeId?: string | number | null | undefined;
|
|
2741
|
-
}[] | null | undefined;
|
|
2742
|
-
feesSum?: number | null | undefined;
|
|
2743
|
-
customerId?: string | number | null | undefined;
|
|
2744
|
-
customer?: {
|
|
2745
|
-
userId: string | number;
|
|
2746
|
-
id: string | number;
|
|
2747
|
-
email: string;
|
|
2748
|
-
firstName: string;
|
|
2749
|
-
lastName: string;
|
|
2750
|
-
birthDate: Date;
|
|
2751
|
-
idNumber: string;
|
|
2752
|
-
phone: string;
|
|
2753
|
-
iban: string;
|
|
2754
|
-
bic: string;
|
|
2755
|
-
phoneVerified: boolean;
|
|
2756
|
-
} | null | undefined;
|
|
2757
|
-
customerType?: string | null | undefined;
|
|
2758
|
-
customerPaid?: boolean | null | undefined;
|
|
2759
|
-
customerPaidDate?: Date | null | undefined;
|
|
2760
|
-
customerPaidType?: string | null | undefined;
|
|
2761
|
-
contractId?: string | number | null | undefined;
|
|
2762
|
-
lastHistory?: {
|
|
5040
|
+
publishedAt: Date;
|
|
5041
|
+
conversationId?: string | null | undefined;
|
|
5042
|
+
account?: {
|
|
5043
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
5044
|
+
userId: string | number;
|
|
5045
|
+
name: string;
|
|
5046
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5047
|
+
accountId: string;
|
|
5048
|
+
locale?: string | null | undefined;
|
|
5049
|
+
night?: {
|
|
5050
|
+
startsAt: Date;
|
|
5051
|
+
endsAt: Date;
|
|
5052
|
+
} | null | undefined;
|
|
5053
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
5054
|
+
ordersMaxDelay?: number | null | undefined;
|
|
5055
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
5056
|
+
} | null | undefined;
|
|
5057
|
+
viewsCount?: number | null | undefined;
|
|
5058
|
+
favoritesCount?: number | null | undefined;
|
|
5059
|
+
}[] | null | undefined;
|
|
5060
|
+
history?: {
|
|
2763
5061
|
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
2764
5062
|
id: string;
|
|
2765
5063
|
createdAt: Date;
|
|
@@ -2857,6 +5155,11 @@ export declare const UserOrdersSchema: z.ZodObject<{
|
|
|
2857
5155
|
accountId: string;
|
|
2858
5156
|
caseId: string;
|
|
2859
5157
|
};
|
|
5158
|
+
} | {
|
|
5159
|
+
type: "PUBLISHED";
|
|
5160
|
+
data: {
|
|
5161
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5162
|
+
};
|
|
2860
5163
|
} | {
|
|
2861
5164
|
type: "REPUBLISHING";
|
|
2862
5165
|
data: {
|
|
@@ -2917,36 +5220,6 @@ export declare const UserOrdersSchema: z.ZodObject<{
|
|
|
2917
5220
|
accountId?: string | null | undefined;
|
|
2918
5221
|
requestId?: string | null | undefined;
|
|
2919
5222
|
targetDate?: Date | null | undefined;
|
|
2920
|
-
} | null | undefined;
|
|
2921
|
-
platforms?: {
|
|
2922
|
-
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
2923
|
-
id: string;
|
|
2924
|
-
updatedAt: Date;
|
|
2925
|
-
createdAt: Date;
|
|
2926
|
-
accountId: string;
|
|
2927
|
-
itemId: string | number;
|
|
2928
|
-
platformId: string;
|
|
2929
|
-
platformUrl: string;
|
|
2930
|
-
platformPrice: number;
|
|
2931
|
-
publishedAt: Date;
|
|
2932
|
-
conversationId?: string | null | undefined;
|
|
2933
|
-
account?: {
|
|
2934
|
-
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
2935
|
-
userId: string | number;
|
|
2936
|
-
name: string;
|
|
2937
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2938
|
-
accountId: string;
|
|
2939
|
-
locale?: string | null | undefined;
|
|
2940
|
-
night?: {
|
|
2941
|
-
startsAt: Date;
|
|
2942
|
-
endsAt: Date;
|
|
2943
|
-
} | null | undefined;
|
|
2944
|
-
favoritesMaxDelay?: number | null | undefined;
|
|
2945
|
-
ordersMaxDelay?: number | null | undefined;
|
|
2946
|
-
conversationsMaxDelay?: number | null | undefined;
|
|
2947
|
-
} | null | undefined;
|
|
2948
|
-
viewsCount?: number | null | undefined;
|
|
2949
|
-
favoritesCount?: number | null | undefined;
|
|
2950
5223
|
}[] | null | undefined;
|
|
2951
5224
|
}[];
|
|
2952
5225
|
order: {
|
|
@@ -3044,7 +5317,12 @@ export declare const UserOrdersSchema: z.ZodObject<{
|
|
|
3044
5317
|
} | null | undefined;
|
|
3045
5318
|
}[] | null | undefined;
|
|
3046
5319
|
};
|
|
3047
|
-
}
|
|
5320
|
+
}>, "many">;
|
|
5321
|
+
currentPage: z.ZodNumber;
|
|
5322
|
+
totalPages: z.ZodNumber;
|
|
5323
|
+
}, "strip", z.ZodTypeAny, {
|
|
5324
|
+
count: number;
|
|
5325
|
+
rows: {
|
|
3048
5326
|
items: {
|
|
3049
5327
|
userId: string | number;
|
|
3050
5328
|
id: string | number;
|
|
@@ -3233,6 +5511,11 @@ export declare const UserOrdersSchema: z.ZodObject<{
|
|
|
3233
5511
|
accountId: string;
|
|
3234
5512
|
caseId: string;
|
|
3235
5513
|
};
|
|
5514
|
+
} | {
|
|
5515
|
+
type: "PUBLISHED";
|
|
5516
|
+
data: {
|
|
5517
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5518
|
+
};
|
|
3236
5519
|
} | {
|
|
3237
5520
|
type: "REPUBLISHING";
|
|
3238
5521
|
data: {
|
|
@@ -3294,229 +5577,37 @@ export declare const UserOrdersSchema: z.ZodObject<{
|
|
|
3294
5577
|
requestId?: string | null | undefined;
|
|
3295
5578
|
targetDate?: Date | null | undefined;
|
|
3296
5579
|
} | null | undefined;
|
|
3297
|
-
platforms?: {
|
|
3298
|
-
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
3299
|
-
id: string;
|
|
3300
|
-
updatedAt: Date;
|
|
3301
|
-
createdAt: Date;
|
|
3302
|
-
accountId: string;
|
|
3303
|
-
itemId: string | number;
|
|
3304
|
-
platformId: string;
|
|
3305
|
-
platformUrl: string;
|
|
3306
|
-
platformPrice: number;
|
|
3307
|
-
publishedAt: Date;
|
|
3308
|
-
conversationId?: string | null | undefined;
|
|
3309
|
-
account?: {
|
|
3310
|
-
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
3311
|
-
userId: string | number;
|
|
3312
|
-
name: string;
|
|
3313
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3314
|
-
accountId: string;
|
|
3315
|
-
locale?: string | null | undefined;
|
|
3316
|
-
night?: {
|
|
3317
|
-
startsAt: Date;
|
|
3318
|
-
endsAt: Date;
|
|
3319
|
-
} | null | undefined;
|
|
3320
|
-
favoritesMaxDelay?: number | null | undefined;
|
|
3321
|
-
ordersMaxDelay?: number | null | undefined;
|
|
3322
|
-
conversationsMaxDelay?: number | null | undefined;
|
|
3323
|
-
} | null | undefined;
|
|
3324
|
-
viewsCount?: number | null | undefined;
|
|
3325
|
-
favoritesCount?: number | null | undefined;
|
|
3326
|
-
}[] | null | undefined;
|
|
3327
|
-
}[];
|
|
3328
|
-
order: {
|
|
3329
|
-
type: "SALE" | "PURCHASE";
|
|
3330
|
-
status: "UNKNOWN" | "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "ORDER_RETURNED_TO_SENDER";
|
|
3331
|
-
date: Date;
|
|
3332
|
-
id: string;
|
|
3333
|
-
price: number;
|
|
3334
|
-
accountId: string;
|
|
3335
|
-
isPrepared: boolean;
|
|
3336
|
-
platformOrderId: string;
|
|
3337
|
-
transactionId?: string | null | undefined;
|
|
3338
|
-
conversationId?: string | null | undefined;
|
|
3339
|
-
labels?: {
|
|
3340
|
-
id: string;
|
|
3341
|
-
orderId: string;
|
|
3342
|
-
fileId: string;
|
|
3343
|
-
nonCroppedFileId: string;
|
|
3344
|
-
originalFileId: string;
|
|
3345
|
-
file?: {
|
|
3346
|
-
path: string;
|
|
3347
|
-
userId: string | number;
|
|
3348
|
-
id: string;
|
|
3349
|
-
createdAt: Date;
|
|
3350
|
-
signedUrl: string;
|
|
3351
|
-
} | null | undefined;
|
|
3352
|
-
originalFile?: {
|
|
3353
|
-
path: string;
|
|
3354
|
-
userId: string | number;
|
|
3355
|
-
id: string;
|
|
3356
|
-
createdAt: Date;
|
|
3357
|
-
signedUrl: string;
|
|
3358
|
-
} | null | undefined;
|
|
3359
|
-
nonCroppedFile?: {
|
|
3360
|
-
path: string;
|
|
3361
|
-
userId: string | number;
|
|
3362
|
-
id: string;
|
|
3363
|
-
createdAt: Date;
|
|
3364
|
-
signedUrl: string;
|
|
3365
|
-
} | null | undefined;
|
|
3366
|
-
}[] | null | undefined;
|
|
3367
|
-
pickupPoints?: {
|
|
3368
|
-
orderId: string;
|
|
3369
|
-
pickupPointId: string;
|
|
3370
|
-
isQrcode: boolean;
|
|
3371
|
-
code?: string | null | undefined;
|
|
3372
|
-
trackingLink?: string | null | undefined;
|
|
3373
|
-
availableUntil?: Date | null | undefined;
|
|
3374
|
-
pickupPoint?: {
|
|
3375
|
-
id: string;
|
|
3376
|
-
name: string;
|
|
3377
|
-
postalCode: string;
|
|
3378
|
-
city: string;
|
|
3379
|
-
countryCode: string;
|
|
3380
|
-
accountId: string;
|
|
3381
|
-
addressLine1: string;
|
|
3382
|
-
platformPickupPointId: string;
|
|
3383
|
-
addressLine2?: string | null | undefined;
|
|
3384
|
-
latitude?: number | null | undefined;
|
|
3385
|
-
longitude?: number | null | undefined;
|
|
3386
|
-
} | null | undefined;
|
|
3387
|
-
}[] | null | undefined;
|
|
3388
|
-
items?: {
|
|
3389
|
-
orderId: string;
|
|
3390
|
-
itemOnPlatformId: string;
|
|
3391
|
-
itemOnPlatform?: {
|
|
3392
|
-
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
3393
|
-
id: string;
|
|
3394
|
-
updatedAt: Date;
|
|
3395
|
-
createdAt: Date;
|
|
3396
|
-
accountId: string;
|
|
3397
|
-
itemId: string | number;
|
|
3398
|
-
platformId: string;
|
|
3399
|
-
platformUrl: string;
|
|
3400
|
-
platformPrice: number;
|
|
3401
|
-
publishedAt: Date;
|
|
3402
|
-
conversationId?: string | null | undefined;
|
|
3403
|
-
account?: {
|
|
3404
|
-
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
3405
|
-
userId: string | number;
|
|
3406
|
-
name: string;
|
|
3407
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3408
|
-
accountId: string;
|
|
3409
|
-
locale?: string | null | undefined;
|
|
3410
|
-
night?: {
|
|
3411
|
-
startsAt: Date;
|
|
3412
|
-
endsAt: Date;
|
|
3413
|
-
} | null | undefined;
|
|
3414
|
-
favoritesMaxDelay?: number | null | undefined;
|
|
3415
|
-
ordersMaxDelay?: number | null | undefined;
|
|
3416
|
-
conversationsMaxDelay?: number | null | undefined;
|
|
3417
|
-
} | null | undefined;
|
|
3418
|
-
viewsCount?: number | null | undefined;
|
|
3419
|
-
favoritesCount?: number | null | undefined;
|
|
3420
|
-
} | null | undefined;
|
|
3421
|
-
}[] | null | undefined;
|
|
3422
|
-
};
|
|
3423
|
-
}>, "many">;
|
|
3424
|
-
currentPage: z.ZodNumber;
|
|
3425
|
-
totalPages: z.ZodNumber;
|
|
3426
|
-
}, "strip", z.ZodTypeAny, {
|
|
3427
|
-
count: number;
|
|
3428
|
-
rows: {
|
|
3429
|
-
items: {
|
|
3430
|
-
userId: string | number;
|
|
3431
|
-
id: string | number;
|
|
3432
|
-
updatedAt: Date;
|
|
3433
|
-
name: string;
|
|
3434
|
-
createdAt: Date;
|
|
3435
|
-
sold: boolean;
|
|
3436
|
-
state?: number | null | undefined;
|
|
3437
|
-
colorIds?: number[] | null | undefined;
|
|
3438
|
-
description?: string | null | undefined;
|
|
3439
|
-
packageSizeId?: number | null | undefined;
|
|
3440
|
-
sizeId?: number | null | undefined;
|
|
3441
|
-
labels?: {
|
|
3442
|
-
itemId: string | number;
|
|
3443
|
-
labelId: string | number;
|
|
3444
|
-
label?: {
|
|
3445
|
-
id: string | number;
|
|
3446
|
-
name: string;
|
|
3447
|
-
createdAt: Date;
|
|
3448
|
-
isUserLabel: boolean;
|
|
3449
|
-
userId?: string | number | null | undefined;
|
|
3450
|
-
itemCount?: number | null | undefined;
|
|
3451
|
-
parentId?: unknown;
|
|
3452
|
-
} | null | undefined;
|
|
3453
|
-
}[] | null | undefined;
|
|
3454
|
-
files?: {
|
|
3455
|
-
itemId: string | number;
|
|
3456
|
-
fileId: string;
|
|
3457
|
-
index?: number | null | undefined;
|
|
3458
|
-
file?: {
|
|
3459
|
-
path: string;
|
|
3460
|
-
userId: string | number;
|
|
3461
|
-
id: string;
|
|
3462
|
-
createdAt: Date;
|
|
3463
|
-
signedUrl: string;
|
|
3464
|
-
} | null | undefined;
|
|
3465
|
-
}[] | null | undefined;
|
|
3466
|
-
fields?: {
|
|
3467
|
-
value: string;
|
|
3468
|
-
itemId: string | number;
|
|
3469
|
-
fieldId: string | number;
|
|
3470
|
-
}[] | null | undefined;
|
|
3471
|
-
sku?: string | null | undefined;
|
|
3472
|
-
categoryId?: number | null | undefined;
|
|
3473
|
-
brandId?: string | number | null | undefined;
|
|
3474
|
-
sex?: string | null | undefined;
|
|
3475
|
-
purchasePrice?: number | null | undefined;
|
|
3476
|
-
purchaseDate?: Date | null | undefined;
|
|
3477
|
-
purchasePlaceId?: string | number | null | undefined;
|
|
3478
|
-
purchased?: boolean | null | undefined;
|
|
3479
|
-
sellingPrice?: number | null | undefined;
|
|
3480
|
-
sellingDate?: Date | null | undefined;
|
|
3481
|
-
sellingPlaceId?: string | number | null | undefined;
|
|
3482
|
-
estimatedPrice?: number | null | undefined;
|
|
3483
|
-
fees?: {
|
|
3484
|
-
value: number;
|
|
3485
|
-
type: string;
|
|
3486
|
-
userId: string | number;
|
|
3487
|
-
id: string | number;
|
|
5580
|
+
platforms?: {
|
|
5581
|
+
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
5582
|
+
id: string;
|
|
3488
5583
|
updatedAt: Date;
|
|
3489
|
-
name: string;
|
|
3490
5584
|
createdAt: Date;
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
5585
|
+
accountId: string;
|
|
5586
|
+
itemId: string | number;
|
|
5587
|
+
platformId: string;
|
|
5588
|
+
platformUrl: string;
|
|
5589
|
+
platformPrice: number;
|
|
5590
|
+
publishedAt: Date;
|
|
5591
|
+
conversationId?: string | null | undefined;
|
|
5592
|
+
account?: {
|
|
5593
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
5594
|
+
userId: string | number;
|
|
5595
|
+
name: string;
|
|
5596
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5597
|
+
accountId: string;
|
|
5598
|
+
locale?: string | null | undefined;
|
|
5599
|
+
night?: {
|
|
5600
|
+
startsAt: Date;
|
|
5601
|
+
endsAt: Date;
|
|
5602
|
+
} | null | undefined;
|
|
5603
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
5604
|
+
ordersMaxDelay?: number | null | undefined;
|
|
5605
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
5606
|
+
} | null | undefined;
|
|
5607
|
+
viewsCount?: number | null | undefined;
|
|
5608
|
+
favoritesCount?: number | null | undefined;
|
|
3498
5609
|
}[] | null | undefined;
|
|
3499
|
-
|
|
3500
|
-
customerId?: string | number | null | undefined;
|
|
3501
|
-
customer?: {
|
|
3502
|
-
userId: string | number;
|
|
3503
|
-
id: string | number;
|
|
3504
|
-
email: string;
|
|
3505
|
-
firstName: string;
|
|
3506
|
-
lastName: string;
|
|
3507
|
-
birthDate: Date;
|
|
3508
|
-
idNumber: string;
|
|
3509
|
-
phone: string;
|
|
3510
|
-
iban: string;
|
|
3511
|
-
bic: string;
|
|
3512
|
-
phoneVerified: boolean;
|
|
3513
|
-
} | null | undefined;
|
|
3514
|
-
customerType?: string | null | undefined;
|
|
3515
|
-
customerPaid?: boolean | null | undefined;
|
|
3516
|
-
customerPaidDate?: Date | null | undefined;
|
|
3517
|
-
customerPaidType?: string | null | undefined;
|
|
3518
|
-
contractId?: string | number | null | undefined;
|
|
3519
|
-
lastHistory?: {
|
|
5610
|
+
history?: {
|
|
3520
5611
|
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
3521
5612
|
id: string;
|
|
3522
5613
|
createdAt: Date;
|
|
@@ -3614,6 +5705,11 @@ export declare const UserOrdersSchema: z.ZodObject<{
|
|
|
3614
5705
|
accountId: string;
|
|
3615
5706
|
caseId: string;
|
|
3616
5707
|
};
|
|
5708
|
+
} | {
|
|
5709
|
+
type: "PUBLISHED";
|
|
5710
|
+
data: {
|
|
5711
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5712
|
+
};
|
|
3617
5713
|
} | {
|
|
3618
5714
|
type: "REPUBLISHING";
|
|
3619
5715
|
data: {
|
|
@@ -3674,36 +5770,6 @@ export declare const UserOrdersSchema: z.ZodObject<{
|
|
|
3674
5770
|
accountId?: string | null | undefined;
|
|
3675
5771
|
requestId?: string | null | undefined;
|
|
3676
5772
|
targetDate?: Date | null | undefined;
|
|
3677
|
-
} | null | undefined;
|
|
3678
|
-
platforms?: {
|
|
3679
|
-
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
3680
|
-
id: string;
|
|
3681
|
-
updatedAt: Date;
|
|
3682
|
-
createdAt: Date;
|
|
3683
|
-
accountId: string;
|
|
3684
|
-
itemId: string | number;
|
|
3685
|
-
platformId: string;
|
|
3686
|
-
platformUrl: string;
|
|
3687
|
-
platformPrice: number;
|
|
3688
|
-
publishedAt: Date;
|
|
3689
|
-
conversationId?: string | null | undefined;
|
|
3690
|
-
account?: {
|
|
3691
|
-
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
3692
|
-
userId: string | number;
|
|
3693
|
-
name: string;
|
|
3694
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3695
|
-
accountId: string;
|
|
3696
|
-
locale?: string | null | undefined;
|
|
3697
|
-
night?: {
|
|
3698
|
-
startsAt: Date;
|
|
3699
|
-
endsAt: Date;
|
|
3700
|
-
} | null | undefined;
|
|
3701
|
-
favoritesMaxDelay?: number | null | undefined;
|
|
3702
|
-
ordersMaxDelay?: number | null | undefined;
|
|
3703
|
-
conversationsMaxDelay?: number | null | undefined;
|
|
3704
|
-
} | null | undefined;
|
|
3705
|
-
viewsCount?: number | null | undefined;
|
|
3706
|
-
favoritesCount?: number | null | undefined;
|
|
3707
5773
|
}[] | null | undefined;
|
|
3708
5774
|
}[];
|
|
3709
5775
|
order: {
|
|
@@ -3996,6 +6062,11 @@ export declare const UserOrdersSchema: z.ZodObject<{
|
|
|
3996
6062
|
accountId: string;
|
|
3997
6063
|
caseId: string;
|
|
3998
6064
|
};
|
|
6065
|
+
} | {
|
|
6066
|
+
type: "PUBLISHED";
|
|
6067
|
+
data: {
|
|
6068
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
6069
|
+
};
|
|
3999
6070
|
} | {
|
|
4000
6071
|
type: "REPUBLISHING";
|
|
4001
6072
|
data: {
|
|
@@ -4087,6 +6158,170 @@ export declare const UserOrdersSchema: z.ZodObject<{
|
|
|
4087
6158
|
viewsCount?: number | null | undefined;
|
|
4088
6159
|
favoritesCount?: number | null | undefined;
|
|
4089
6160
|
}[] | null | undefined;
|
|
6161
|
+
history?: {
|
|
6162
|
+
type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
|
|
6163
|
+
id: string;
|
|
6164
|
+
createdAt: Date;
|
|
6165
|
+
itemId: string | number;
|
|
6166
|
+
data?: {
|
|
6167
|
+
type: "ACTION_CANCELED";
|
|
6168
|
+
data: {
|
|
6169
|
+
targetItemHistoryId: string;
|
|
6170
|
+
};
|
|
6171
|
+
} | {
|
|
6172
|
+
type: "BUYER_PAID";
|
|
6173
|
+
data: {
|
|
6174
|
+
soldAccountId: string;
|
|
6175
|
+
soldOrderId: string;
|
|
6176
|
+
soldConversationId?: string | null | undefined;
|
|
6177
|
+
};
|
|
6178
|
+
} | {
|
|
6179
|
+
type: "DELIVERED";
|
|
6180
|
+
data: {
|
|
6181
|
+
soldAccountId: string;
|
|
6182
|
+
soldOrderId: string;
|
|
6183
|
+
soldConversationId?: string | null | undefined;
|
|
6184
|
+
};
|
|
6185
|
+
} | {
|
|
6186
|
+
type: "EMPTY";
|
|
6187
|
+
} | {
|
|
6188
|
+
type: "FAILED_TO_PUBLISH";
|
|
6189
|
+
data: {
|
|
6190
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
6191
|
+
accountId?: string | null | undefined;
|
|
6192
|
+
reason?: string | null | undefined;
|
|
6193
|
+
fields?: {
|
|
6194
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
6195
|
+
autoFixable: boolean;
|
|
6196
|
+
error?: string | null | undefined;
|
|
6197
|
+
}[] | null | undefined;
|
|
6198
|
+
itemHistoryId?: string | null | undefined;
|
|
6199
|
+
};
|
|
6200
|
+
} | {
|
|
6201
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
6202
|
+
data: {
|
|
6203
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
6204
|
+
variations?: {
|
|
6205
|
+
fileId: string;
|
|
6206
|
+
seed: number;
|
|
6207
|
+
phash: string;
|
|
6208
|
+
distanceOriginal: number;
|
|
6209
|
+
originalImageUrl: string;
|
|
6210
|
+
originalPhash: string;
|
|
6211
|
+
}[] | null | undefined;
|
|
6212
|
+
originalPhashes?: string[] | null | undefined;
|
|
6213
|
+
};
|
|
6214
|
+
} | {
|
|
6215
|
+
type: "IMPORTED";
|
|
6216
|
+
data: {
|
|
6217
|
+
post: {
|
|
6218
|
+
platformId: string;
|
|
6219
|
+
post: {
|
|
6220
|
+
status?: string | null | undefined;
|
|
6221
|
+
price?: number | null | undefined;
|
|
6222
|
+
currency?: string | null | undefined;
|
|
6223
|
+
brand?: string | null | undefined;
|
|
6224
|
+
catalog?: string | null | undefined;
|
|
6225
|
+
catalogId?: number | null | undefined;
|
|
6226
|
+
colors?: string[] | null | undefined;
|
|
6227
|
+
colorIds?: number[] | null | undefined;
|
|
6228
|
+
description?: string | null | undefined;
|
|
6229
|
+
measurementLength?: number | null | undefined;
|
|
6230
|
+
measurementWidth?: number | null | undefined;
|
|
6231
|
+
packageSizeId?: number | null | undefined;
|
|
6232
|
+
photoUrls?: string[] | null | undefined;
|
|
6233
|
+
size?: string | null | undefined;
|
|
6234
|
+
sizeId?: number | null | undefined;
|
|
6235
|
+
statusId?: number | null | undefined;
|
|
6236
|
+
title?: string | null | undefined;
|
|
6237
|
+
isDraft?: boolean | null | undefined;
|
|
6238
|
+
isArchived?: boolean | null | undefined;
|
|
6239
|
+
availableQuantity?: number | null | undefined;
|
|
6240
|
+
material?: number[] | null | undefined;
|
|
6241
|
+
manufacturerLabelling?: string | null | undefined;
|
|
6242
|
+
labels?: string[] | null | undefined;
|
|
6243
|
+
};
|
|
6244
|
+
createdAt?: Date | null | undefined;
|
|
6245
|
+
platformUrl?: string | null | undefined;
|
|
6246
|
+
};
|
|
6247
|
+
};
|
|
6248
|
+
} | {
|
|
6249
|
+
type: "LIFECYCLE_COMPLETED";
|
|
6250
|
+
data: {
|
|
6251
|
+
accountId: string;
|
|
6252
|
+
};
|
|
6253
|
+
} | {
|
|
6254
|
+
type: "LIFECYCLE_STARTED";
|
|
6255
|
+
data: {
|
|
6256
|
+
accountId: string;
|
|
6257
|
+
caseId: string;
|
|
6258
|
+
};
|
|
6259
|
+
} | {
|
|
6260
|
+
type: "PUBLISHED";
|
|
6261
|
+
data: {
|
|
6262
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
6263
|
+
};
|
|
6264
|
+
} | {
|
|
6265
|
+
type: "REPUBLISHING";
|
|
6266
|
+
data: {
|
|
6267
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
6268
|
+
publishingDate?: Date | null | undefined;
|
|
6269
|
+
priceDropPayload?: {
|
|
6270
|
+
value: number;
|
|
6271
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
6272
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
6273
|
+
roundStep?: number | null | undefined;
|
|
6274
|
+
maxRounds?: number | null | undefined;
|
|
6275
|
+
} | null | undefined;
|
|
6276
|
+
isTransfer?: boolean | null | undefined;
|
|
6277
|
+
targetAccountId?: string | null | undefined;
|
|
6278
|
+
};
|
|
6279
|
+
} | {
|
|
6280
|
+
type: "REPUBLISHING_RETRY";
|
|
6281
|
+
data: {
|
|
6282
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
6283
|
+
attemptNumber: number;
|
|
6284
|
+
maxAttempts: number;
|
|
6285
|
+
previousHistoryId: string;
|
|
6286
|
+
originalFailureDate: Date;
|
|
6287
|
+
fields?: {
|
|
6288
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
6289
|
+
autoFixable: boolean;
|
|
6290
|
+
error?: string | null | undefined;
|
|
6291
|
+
}[] | null | undefined;
|
|
6292
|
+
priceDropPayload?: {
|
|
6293
|
+
value: number;
|
|
6294
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
6295
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
6296
|
+
roundStep?: number | null | undefined;
|
|
6297
|
+
maxRounds?: number | null | undefined;
|
|
6298
|
+
} | null | undefined;
|
|
6299
|
+
};
|
|
6300
|
+
} | {
|
|
6301
|
+
type: "SCHEDULED";
|
|
6302
|
+
data: {
|
|
6303
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
6304
|
+
publishingDate?: Date | null | undefined;
|
|
6305
|
+
};
|
|
6306
|
+
} | {
|
|
6307
|
+
type: "SCHEDULED_RETRY";
|
|
6308
|
+
data: {
|
|
6309
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
6310
|
+
attemptNumber: number;
|
|
6311
|
+
maxAttempts: number;
|
|
6312
|
+
previousHistoryId: string;
|
|
6313
|
+
originalFailureDate: Date;
|
|
6314
|
+
fields?: {
|
|
6315
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
6316
|
+
autoFixable: boolean;
|
|
6317
|
+
error?: string | null | undefined;
|
|
6318
|
+
}[] | null | undefined;
|
|
6319
|
+
};
|
|
6320
|
+
} | null | undefined;
|
|
6321
|
+
accountId?: string | null | undefined;
|
|
6322
|
+
requestId?: string | null | undefined;
|
|
6323
|
+
targetDate?: Date | null | undefined;
|
|
6324
|
+
}[] | null | undefined;
|
|
4090
6325
|
}[];
|
|
4091
6326
|
order: {
|
|
4092
6327
|
type: "SALE" | "PURCHASE";
|