controlresell 2.9.5 → 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 +1 -1
- 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 +19 -5
- package/src/com/controlresell/api/responses/items/ItemsWithFilters.d.ts.map +1 -1
- package/src/com/controlresell/api/responses/items/ListedItem.d.ts +13 -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 +2153 -305
- package/src/com/controlresell/inbox/models/transactions/items/TransactionWithItems.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/CreatedItems.d.ts +2163 -315
- package/src/com/controlresell/inventory/models/items/CreatedItems.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/Item.d.ts +1579 -59
- 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 +2097 -249
- package/src/com/controlresell/inventory/models/items/ItemUpdate.d.ts.map +1 -1
- package/src/com/controlresell/inventory/models/items/UpdatedItem.d.ts +2163 -315
- package/src/com/controlresell/inventory/models/items/UpdatedItem.d.ts.map +1 -1
- package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts +2611 -435
- package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts.map +1 -1
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +2099 -251
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts.map +1 -1
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +6259 -2563
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts.map +1 -1
- package/src/index.d.ts +3 -0
- package/src/index.d.ts.map +1 -1
- package/src/index.js +3 -0
- package/src/index.js.map +1 -1
- package/src/index.ts +3 -0
|
@@ -2133,6 +2133,1198 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
2133
2133
|
viewsCount?: number | null | undefined;
|
|
2134
2134
|
favoritesCount?: number | null | undefined;
|
|
2135
2135
|
}>, "many">>>;
|
|
2136
|
+
history: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2137
|
+
id: z.ZodString;
|
|
2138
|
+
itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2139
|
+
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"]>;
|
|
2140
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2141
|
+
data: z.ZodObject<{
|
|
2142
|
+
targetItemHistoryId: z.ZodString;
|
|
2143
|
+
}, "strip", z.ZodTypeAny, {
|
|
2144
|
+
targetItemHistoryId: string;
|
|
2145
|
+
}, {
|
|
2146
|
+
targetItemHistoryId: string;
|
|
2147
|
+
}>;
|
|
2148
|
+
type: z.ZodLiteral<"ACTION_CANCELED">;
|
|
2149
|
+
}, "strip", z.ZodTypeAny, {
|
|
2150
|
+
type: "ACTION_CANCELED";
|
|
2151
|
+
data: {
|
|
2152
|
+
targetItemHistoryId: string;
|
|
2153
|
+
};
|
|
2154
|
+
}, {
|
|
2155
|
+
type: "ACTION_CANCELED";
|
|
2156
|
+
data: {
|
|
2157
|
+
targetItemHistoryId: string;
|
|
2158
|
+
};
|
|
2159
|
+
}>, z.ZodObject<{
|
|
2160
|
+
data: z.ZodObject<{
|
|
2161
|
+
soldAccountId: z.ZodString;
|
|
2162
|
+
soldOrderId: z.ZodString;
|
|
2163
|
+
soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2164
|
+
}, "strip", z.ZodTypeAny, {
|
|
2165
|
+
soldAccountId: string;
|
|
2166
|
+
soldOrderId: string;
|
|
2167
|
+
soldConversationId?: string | null | undefined;
|
|
2168
|
+
}, {
|
|
2169
|
+
soldAccountId: string;
|
|
2170
|
+
soldOrderId: string;
|
|
2171
|
+
soldConversationId?: string | null | undefined;
|
|
2172
|
+
}>;
|
|
2173
|
+
type: z.ZodLiteral<"BUYER_PAID">;
|
|
2174
|
+
}, "strip", z.ZodTypeAny, {
|
|
2175
|
+
type: "BUYER_PAID";
|
|
2176
|
+
data: {
|
|
2177
|
+
soldAccountId: string;
|
|
2178
|
+
soldOrderId: string;
|
|
2179
|
+
soldConversationId?: string | null | undefined;
|
|
2180
|
+
};
|
|
2181
|
+
}, {
|
|
2182
|
+
type: "BUYER_PAID";
|
|
2183
|
+
data: {
|
|
2184
|
+
soldAccountId: string;
|
|
2185
|
+
soldOrderId: string;
|
|
2186
|
+
soldConversationId?: string | null | undefined;
|
|
2187
|
+
};
|
|
2188
|
+
}>, z.ZodObject<{
|
|
2189
|
+
data: z.ZodObject<{
|
|
2190
|
+
soldAccountId: z.ZodString;
|
|
2191
|
+
soldOrderId: z.ZodString;
|
|
2192
|
+
soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2193
|
+
}, "strip", z.ZodTypeAny, {
|
|
2194
|
+
soldAccountId: string;
|
|
2195
|
+
soldOrderId: string;
|
|
2196
|
+
soldConversationId?: string | null | undefined;
|
|
2197
|
+
}, {
|
|
2198
|
+
soldAccountId: string;
|
|
2199
|
+
soldOrderId: string;
|
|
2200
|
+
soldConversationId?: string | null | undefined;
|
|
2201
|
+
}>;
|
|
2202
|
+
type: z.ZodLiteral<"DELIVERED">;
|
|
2203
|
+
}, "strip", z.ZodTypeAny, {
|
|
2204
|
+
type: "DELIVERED";
|
|
2205
|
+
data: {
|
|
2206
|
+
soldAccountId: string;
|
|
2207
|
+
soldOrderId: string;
|
|
2208
|
+
soldConversationId?: string | null | undefined;
|
|
2209
|
+
};
|
|
2210
|
+
}, {
|
|
2211
|
+
type: "DELIVERED";
|
|
2212
|
+
data: {
|
|
2213
|
+
soldAccountId: string;
|
|
2214
|
+
soldOrderId: string;
|
|
2215
|
+
soldConversationId?: string | null | undefined;
|
|
2216
|
+
};
|
|
2217
|
+
}>, z.ZodObject<{
|
|
2218
|
+
type: z.ZodLiteral<"EMPTY">;
|
|
2219
|
+
}, "strip", z.ZodTypeAny, {
|
|
2220
|
+
type: "EMPTY";
|
|
2221
|
+
}, {
|
|
2222
|
+
type: "EMPTY";
|
|
2223
|
+
}>, z.ZodObject<{
|
|
2224
|
+
data: z.ZodObject<{
|
|
2225
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2226
|
+
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2227
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2228
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2229
|
+
field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
|
|
2230
|
+
autoFixable: z.ZodBoolean;
|
|
2231
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2232
|
+
}, "strip", z.ZodTypeAny, {
|
|
2233
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2234
|
+
autoFixable: boolean;
|
|
2235
|
+
error?: string | null | undefined;
|
|
2236
|
+
}, {
|
|
2237
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2238
|
+
autoFixable: boolean;
|
|
2239
|
+
error?: string | null | undefined;
|
|
2240
|
+
}>, "many">>>;
|
|
2241
|
+
itemHistoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2242
|
+
}, "strip", z.ZodTypeAny, {
|
|
2243
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2244
|
+
accountId?: string | null | undefined;
|
|
2245
|
+
reason?: string | null | undefined;
|
|
2246
|
+
fields?: {
|
|
2247
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2248
|
+
autoFixable: boolean;
|
|
2249
|
+
error?: string | null | undefined;
|
|
2250
|
+
}[] | null | undefined;
|
|
2251
|
+
itemHistoryId?: string | null | undefined;
|
|
2252
|
+
}, {
|
|
2253
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2254
|
+
accountId?: string | null | undefined;
|
|
2255
|
+
reason?: string | null | undefined;
|
|
2256
|
+
fields?: {
|
|
2257
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2258
|
+
autoFixable: boolean;
|
|
2259
|
+
error?: string | null | undefined;
|
|
2260
|
+
}[] | null | undefined;
|
|
2261
|
+
itemHistoryId?: string | null | undefined;
|
|
2262
|
+
}>;
|
|
2263
|
+
type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
|
|
2264
|
+
}, "strip", z.ZodTypeAny, {
|
|
2265
|
+
type: "FAILED_TO_PUBLISH";
|
|
2266
|
+
data: {
|
|
2267
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2268
|
+
accountId?: string | null | undefined;
|
|
2269
|
+
reason?: string | null | undefined;
|
|
2270
|
+
fields?: {
|
|
2271
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2272
|
+
autoFixable: boolean;
|
|
2273
|
+
error?: string | null | undefined;
|
|
2274
|
+
}[] | null | undefined;
|
|
2275
|
+
itemHistoryId?: string | null | undefined;
|
|
2276
|
+
};
|
|
2277
|
+
}, {
|
|
2278
|
+
type: "FAILED_TO_PUBLISH";
|
|
2279
|
+
data: {
|
|
2280
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2281
|
+
accountId?: string | null | undefined;
|
|
2282
|
+
reason?: string | null | undefined;
|
|
2283
|
+
fields?: {
|
|
2284
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2285
|
+
autoFixable: boolean;
|
|
2286
|
+
error?: string | null | undefined;
|
|
2287
|
+
}[] | null | undefined;
|
|
2288
|
+
itemHistoryId?: string | null | undefined;
|
|
2289
|
+
};
|
|
2290
|
+
}>, z.ZodObject<{
|
|
2291
|
+
data: z.ZodObject<{
|
|
2292
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2293
|
+
variations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2294
|
+
fileId: z.ZodString;
|
|
2295
|
+
seed: z.ZodNumber;
|
|
2296
|
+
phash: z.ZodString;
|
|
2297
|
+
distanceOriginal: z.ZodNumber;
|
|
2298
|
+
originalImageUrl: z.ZodString;
|
|
2299
|
+
originalPhash: z.ZodString;
|
|
2300
|
+
}, "strip", z.ZodTypeAny, {
|
|
2301
|
+
fileId: string;
|
|
2302
|
+
seed: number;
|
|
2303
|
+
phash: string;
|
|
2304
|
+
distanceOriginal: number;
|
|
2305
|
+
originalImageUrl: string;
|
|
2306
|
+
originalPhash: string;
|
|
2307
|
+
}, {
|
|
2308
|
+
fileId: string;
|
|
2309
|
+
seed: number;
|
|
2310
|
+
phash: string;
|
|
2311
|
+
distanceOriginal: number;
|
|
2312
|
+
originalImageUrl: string;
|
|
2313
|
+
originalPhash: string;
|
|
2314
|
+
}>, "many">>>;
|
|
2315
|
+
originalPhashes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2316
|
+
}, "strip", z.ZodTypeAny, {
|
|
2317
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2318
|
+
variations?: {
|
|
2319
|
+
fileId: string;
|
|
2320
|
+
seed: number;
|
|
2321
|
+
phash: string;
|
|
2322
|
+
distanceOriginal: number;
|
|
2323
|
+
originalImageUrl: string;
|
|
2324
|
+
originalPhash: string;
|
|
2325
|
+
}[] | null | undefined;
|
|
2326
|
+
originalPhashes?: string[] | null | undefined;
|
|
2327
|
+
}, {
|
|
2328
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2329
|
+
variations?: {
|
|
2330
|
+
fileId: string;
|
|
2331
|
+
seed: number;
|
|
2332
|
+
phash: string;
|
|
2333
|
+
distanceOriginal: number;
|
|
2334
|
+
originalImageUrl: string;
|
|
2335
|
+
originalPhash: string;
|
|
2336
|
+
}[] | null | undefined;
|
|
2337
|
+
originalPhashes?: string[] | null | undefined;
|
|
2338
|
+
}>;
|
|
2339
|
+
type: z.ZodLiteral<"IMAGE_PROCESSING_DONE">;
|
|
2340
|
+
}, "strip", z.ZodTypeAny, {
|
|
2341
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
2342
|
+
data: {
|
|
2343
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2344
|
+
variations?: {
|
|
2345
|
+
fileId: string;
|
|
2346
|
+
seed: number;
|
|
2347
|
+
phash: string;
|
|
2348
|
+
distanceOriginal: number;
|
|
2349
|
+
originalImageUrl: string;
|
|
2350
|
+
originalPhash: string;
|
|
2351
|
+
}[] | null | undefined;
|
|
2352
|
+
originalPhashes?: string[] | null | undefined;
|
|
2353
|
+
};
|
|
2354
|
+
}, {
|
|
2355
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
2356
|
+
data: {
|
|
2357
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2358
|
+
variations?: {
|
|
2359
|
+
fileId: string;
|
|
2360
|
+
seed: number;
|
|
2361
|
+
phash: string;
|
|
2362
|
+
distanceOriginal: number;
|
|
2363
|
+
originalImageUrl: string;
|
|
2364
|
+
originalPhash: string;
|
|
2365
|
+
}[] | null | undefined;
|
|
2366
|
+
originalPhashes?: string[] | null | undefined;
|
|
2367
|
+
};
|
|
2368
|
+
}>, z.ZodObject<{
|
|
2369
|
+
data: z.ZodObject<{
|
|
2370
|
+
post: z.ZodObject<{
|
|
2371
|
+
platformId: z.ZodString;
|
|
2372
|
+
platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2373
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2374
|
+
post: z.ZodObject<{
|
|
2375
|
+
brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2376
|
+
catalog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2377
|
+
catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2378
|
+
colors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2379
|
+
colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
2380
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2381
|
+
measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2382
|
+
measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2383
|
+
packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2384
|
+
photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2385
|
+
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2386
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2387
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2388
|
+
sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2389
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2390
|
+
statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2391
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2392
|
+
isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2393
|
+
isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2394
|
+
availableQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2395
|
+
material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
2396
|
+
manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2397
|
+
labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2398
|
+
}, "strip", z.ZodTypeAny, {
|
|
2399
|
+
status?: string | null | undefined;
|
|
2400
|
+
price?: number | null | undefined;
|
|
2401
|
+
currency?: string | null | undefined;
|
|
2402
|
+
brand?: string | null | undefined;
|
|
2403
|
+
catalog?: string | null | undefined;
|
|
2404
|
+
catalogId?: number | null | undefined;
|
|
2405
|
+
colors?: string[] | null | undefined;
|
|
2406
|
+
colorIds?: number[] | null | undefined;
|
|
2407
|
+
description?: string | null | undefined;
|
|
2408
|
+
measurementLength?: number | null | undefined;
|
|
2409
|
+
measurementWidth?: number | null | undefined;
|
|
2410
|
+
packageSizeId?: number | null | undefined;
|
|
2411
|
+
photoUrls?: string[] | null | undefined;
|
|
2412
|
+
size?: string | null | undefined;
|
|
2413
|
+
sizeId?: number | null | undefined;
|
|
2414
|
+
statusId?: number | null | undefined;
|
|
2415
|
+
title?: string | null | undefined;
|
|
2416
|
+
isDraft?: boolean | null | undefined;
|
|
2417
|
+
isArchived?: boolean | null | undefined;
|
|
2418
|
+
availableQuantity?: number | null | undefined;
|
|
2419
|
+
material?: number[] | null | undefined;
|
|
2420
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2421
|
+
labels?: string[] | null | undefined;
|
|
2422
|
+
}, {
|
|
2423
|
+
status?: string | null | undefined;
|
|
2424
|
+
price?: number | null | undefined;
|
|
2425
|
+
currency?: string | null | undefined;
|
|
2426
|
+
brand?: string | null | undefined;
|
|
2427
|
+
catalog?: string | null | undefined;
|
|
2428
|
+
catalogId?: number | null | undefined;
|
|
2429
|
+
colors?: string[] | null | undefined;
|
|
2430
|
+
colorIds?: number[] | null | undefined;
|
|
2431
|
+
description?: string | null | undefined;
|
|
2432
|
+
measurementLength?: number | null | undefined;
|
|
2433
|
+
measurementWidth?: number | null | undefined;
|
|
2434
|
+
packageSizeId?: number | null | undefined;
|
|
2435
|
+
photoUrls?: string[] | null | undefined;
|
|
2436
|
+
size?: string | null | undefined;
|
|
2437
|
+
sizeId?: number | null | undefined;
|
|
2438
|
+
statusId?: number | null | undefined;
|
|
2439
|
+
title?: string | null | undefined;
|
|
2440
|
+
isDraft?: boolean | null | undefined;
|
|
2441
|
+
isArchived?: boolean | null | undefined;
|
|
2442
|
+
availableQuantity?: number | null | undefined;
|
|
2443
|
+
material?: number[] | null | undefined;
|
|
2444
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2445
|
+
labels?: string[] | null | undefined;
|
|
2446
|
+
}>;
|
|
2447
|
+
}, "strip", z.ZodTypeAny, {
|
|
2448
|
+
platformId: string;
|
|
2449
|
+
post: {
|
|
2450
|
+
status?: string | null | undefined;
|
|
2451
|
+
price?: number | null | undefined;
|
|
2452
|
+
currency?: string | null | undefined;
|
|
2453
|
+
brand?: string | null | undefined;
|
|
2454
|
+
catalog?: string | null | undefined;
|
|
2455
|
+
catalogId?: number | null | undefined;
|
|
2456
|
+
colors?: string[] | null | undefined;
|
|
2457
|
+
colorIds?: number[] | null | undefined;
|
|
2458
|
+
description?: string | null | undefined;
|
|
2459
|
+
measurementLength?: number | null | undefined;
|
|
2460
|
+
measurementWidth?: number | null | undefined;
|
|
2461
|
+
packageSizeId?: number | null | undefined;
|
|
2462
|
+
photoUrls?: string[] | null | undefined;
|
|
2463
|
+
size?: string | null | undefined;
|
|
2464
|
+
sizeId?: number | null | undefined;
|
|
2465
|
+
statusId?: number | null | undefined;
|
|
2466
|
+
title?: string | null | undefined;
|
|
2467
|
+
isDraft?: boolean | null | undefined;
|
|
2468
|
+
isArchived?: boolean | null | undefined;
|
|
2469
|
+
availableQuantity?: number | null | undefined;
|
|
2470
|
+
material?: number[] | null | undefined;
|
|
2471
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2472
|
+
labels?: string[] | null | undefined;
|
|
2473
|
+
};
|
|
2474
|
+
createdAt?: Date | null | undefined;
|
|
2475
|
+
platformUrl?: string | null | undefined;
|
|
2476
|
+
}, {
|
|
2477
|
+
platformId: string;
|
|
2478
|
+
post: {
|
|
2479
|
+
status?: string | null | undefined;
|
|
2480
|
+
price?: number | null | undefined;
|
|
2481
|
+
currency?: string | null | undefined;
|
|
2482
|
+
brand?: string | null | undefined;
|
|
2483
|
+
catalog?: string | null | undefined;
|
|
2484
|
+
catalogId?: number | null | undefined;
|
|
2485
|
+
colors?: string[] | null | undefined;
|
|
2486
|
+
colorIds?: number[] | null | undefined;
|
|
2487
|
+
description?: string | null | undefined;
|
|
2488
|
+
measurementLength?: number | null | undefined;
|
|
2489
|
+
measurementWidth?: number | null | undefined;
|
|
2490
|
+
packageSizeId?: number | null | undefined;
|
|
2491
|
+
photoUrls?: string[] | null | undefined;
|
|
2492
|
+
size?: string | null | undefined;
|
|
2493
|
+
sizeId?: number | null | undefined;
|
|
2494
|
+
statusId?: number | null | undefined;
|
|
2495
|
+
title?: string | null | undefined;
|
|
2496
|
+
isDraft?: boolean | null | undefined;
|
|
2497
|
+
isArchived?: boolean | null | undefined;
|
|
2498
|
+
availableQuantity?: number | null | undefined;
|
|
2499
|
+
material?: number[] | null | undefined;
|
|
2500
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2501
|
+
labels?: string[] | null | undefined;
|
|
2502
|
+
};
|
|
2503
|
+
createdAt?: Date | null | undefined;
|
|
2504
|
+
platformUrl?: string | null | undefined;
|
|
2505
|
+
}>;
|
|
2506
|
+
}, "strip", z.ZodTypeAny, {
|
|
2507
|
+
post: {
|
|
2508
|
+
platformId: string;
|
|
2509
|
+
post: {
|
|
2510
|
+
status?: string | null | undefined;
|
|
2511
|
+
price?: number | null | undefined;
|
|
2512
|
+
currency?: string | null | undefined;
|
|
2513
|
+
brand?: string | null | undefined;
|
|
2514
|
+
catalog?: string | null | undefined;
|
|
2515
|
+
catalogId?: number | null | undefined;
|
|
2516
|
+
colors?: string[] | null | undefined;
|
|
2517
|
+
colorIds?: number[] | null | undefined;
|
|
2518
|
+
description?: string | null | undefined;
|
|
2519
|
+
measurementLength?: number | null | undefined;
|
|
2520
|
+
measurementWidth?: number | null | undefined;
|
|
2521
|
+
packageSizeId?: number | null | undefined;
|
|
2522
|
+
photoUrls?: string[] | null | undefined;
|
|
2523
|
+
size?: string | null | undefined;
|
|
2524
|
+
sizeId?: number | null | undefined;
|
|
2525
|
+
statusId?: number | null | undefined;
|
|
2526
|
+
title?: string | null | undefined;
|
|
2527
|
+
isDraft?: boolean | null | undefined;
|
|
2528
|
+
isArchived?: boolean | null | undefined;
|
|
2529
|
+
availableQuantity?: number | null | undefined;
|
|
2530
|
+
material?: number[] | null | undefined;
|
|
2531
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2532
|
+
labels?: string[] | null | undefined;
|
|
2533
|
+
};
|
|
2534
|
+
createdAt?: Date | null | undefined;
|
|
2535
|
+
platformUrl?: string | null | undefined;
|
|
2536
|
+
};
|
|
2537
|
+
}, {
|
|
2538
|
+
post: {
|
|
2539
|
+
platformId: string;
|
|
2540
|
+
post: {
|
|
2541
|
+
status?: string | null | undefined;
|
|
2542
|
+
price?: number | null | undefined;
|
|
2543
|
+
currency?: string | null | undefined;
|
|
2544
|
+
brand?: string | null | undefined;
|
|
2545
|
+
catalog?: string | null | undefined;
|
|
2546
|
+
catalogId?: number | null | undefined;
|
|
2547
|
+
colors?: string[] | null | undefined;
|
|
2548
|
+
colorIds?: number[] | null | undefined;
|
|
2549
|
+
description?: string | null | undefined;
|
|
2550
|
+
measurementLength?: number | null | undefined;
|
|
2551
|
+
measurementWidth?: number | null | undefined;
|
|
2552
|
+
packageSizeId?: number | null | undefined;
|
|
2553
|
+
photoUrls?: string[] | null | undefined;
|
|
2554
|
+
size?: string | null | undefined;
|
|
2555
|
+
sizeId?: number | null | undefined;
|
|
2556
|
+
statusId?: number | null | undefined;
|
|
2557
|
+
title?: string | null | undefined;
|
|
2558
|
+
isDraft?: boolean | null | undefined;
|
|
2559
|
+
isArchived?: boolean | null | undefined;
|
|
2560
|
+
availableQuantity?: number | null | undefined;
|
|
2561
|
+
material?: number[] | null | undefined;
|
|
2562
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2563
|
+
labels?: string[] | null | undefined;
|
|
2564
|
+
};
|
|
2565
|
+
createdAt?: Date | null | undefined;
|
|
2566
|
+
platformUrl?: string | null | undefined;
|
|
2567
|
+
};
|
|
2568
|
+
}>;
|
|
2569
|
+
type: z.ZodLiteral<"IMPORTED">;
|
|
2570
|
+
}, "strip", z.ZodTypeAny, {
|
|
2571
|
+
type: "IMPORTED";
|
|
2572
|
+
data: {
|
|
2573
|
+
post: {
|
|
2574
|
+
platformId: string;
|
|
2575
|
+
post: {
|
|
2576
|
+
status?: string | null | undefined;
|
|
2577
|
+
price?: number | null | undefined;
|
|
2578
|
+
currency?: string | null | undefined;
|
|
2579
|
+
brand?: string | null | undefined;
|
|
2580
|
+
catalog?: string | null | undefined;
|
|
2581
|
+
catalogId?: number | null | undefined;
|
|
2582
|
+
colors?: string[] | null | undefined;
|
|
2583
|
+
colorIds?: number[] | null | undefined;
|
|
2584
|
+
description?: string | null | undefined;
|
|
2585
|
+
measurementLength?: number | null | undefined;
|
|
2586
|
+
measurementWidth?: number | null | undefined;
|
|
2587
|
+
packageSizeId?: number | null | undefined;
|
|
2588
|
+
photoUrls?: string[] | null | undefined;
|
|
2589
|
+
size?: string | null | undefined;
|
|
2590
|
+
sizeId?: number | null | undefined;
|
|
2591
|
+
statusId?: number | null | undefined;
|
|
2592
|
+
title?: string | null | undefined;
|
|
2593
|
+
isDraft?: boolean | null | undefined;
|
|
2594
|
+
isArchived?: boolean | null | undefined;
|
|
2595
|
+
availableQuantity?: number | null | undefined;
|
|
2596
|
+
material?: number[] | null | undefined;
|
|
2597
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2598
|
+
labels?: string[] | null | undefined;
|
|
2599
|
+
};
|
|
2600
|
+
createdAt?: Date | null | undefined;
|
|
2601
|
+
platformUrl?: string | null | undefined;
|
|
2602
|
+
};
|
|
2603
|
+
};
|
|
2604
|
+
}, {
|
|
2605
|
+
type: "IMPORTED";
|
|
2606
|
+
data: {
|
|
2607
|
+
post: {
|
|
2608
|
+
platformId: string;
|
|
2609
|
+
post: {
|
|
2610
|
+
status?: string | null | undefined;
|
|
2611
|
+
price?: number | null | undefined;
|
|
2612
|
+
currency?: string | null | undefined;
|
|
2613
|
+
brand?: string | null | undefined;
|
|
2614
|
+
catalog?: string | null | undefined;
|
|
2615
|
+
catalogId?: number | null | undefined;
|
|
2616
|
+
colors?: string[] | null | undefined;
|
|
2617
|
+
colorIds?: number[] | null | undefined;
|
|
2618
|
+
description?: string | null | undefined;
|
|
2619
|
+
measurementLength?: number | null | undefined;
|
|
2620
|
+
measurementWidth?: number | null | undefined;
|
|
2621
|
+
packageSizeId?: number | null | undefined;
|
|
2622
|
+
photoUrls?: string[] | null | undefined;
|
|
2623
|
+
size?: string | null | undefined;
|
|
2624
|
+
sizeId?: number | null | undefined;
|
|
2625
|
+
statusId?: number | null | undefined;
|
|
2626
|
+
title?: string | null | undefined;
|
|
2627
|
+
isDraft?: boolean | null | undefined;
|
|
2628
|
+
isArchived?: boolean | null | undefined;
|
|
2629
|
+
availableQuantity?: number | null | undefined;
|
|
2630
|
+
material?: number[] | null | undefined;
|
|
2631
|
+
manufacturerLabelling?: string | null | undefined;
|
|
2632
|
+
labels?: string[] | null | undefined;
|
|
2633
|
+
};
|
|
2634
|
+
createdAt?: Date | null | undefined;
|
|
2635
|
+
platformUrl?: string | null | undefined;
|
|
2636
|
+
};
|
|
2637
|
+
};
|
|
2638
|
+
}>, z.ZodObject<{
|
|
2639
|
+
data: z.ZodObject<{
|
|
2640
|
+
accountId: z.ZodString;
|
|
2641
|
+
}, "strip", z.ZodTypeAny, {
|
|
2642
|
+
accountId: string;
|
|
2643
|
+
}, {
|
|
2644
|
+
accountId: string;
|
|
2645
|
+
}>;
|
|
2646
|
+
type: z.ZodLiteral<"LIFECYCLE_COMPLETED">;
|
|
2647
|
+
}, "strip", z.ZodTypeAny, {
|
|
2648
|
+
type: "LIFECYCLE_COMPLETED";
|
|
2649
|
+
data: {
|
|
2650
|
+
accountId: string;
|
|
2651
|
+
};
|
|
2652
|
+
}, {
|
|
2653
|
+
type: "LIFECYCLE_COMPLETED";
|
|
2654
|
+
data: {
|
|
2655
|
+
accountId: string;
|
|
2656
|
+
};
|
|
2657
|
+
}>, z.ZodObject<{
|
|
2658
|
+
data: z.ZodObject<{
|
|
2659
|
+
accountId: z.ZodString;
|
|
2660
|
+
caseId: z.ZodString;
|
|
2661
|
+
}, "strip", z.ZodTypeAny, {
|
|
2662
|
+
accountId: string;
|
|
2663
|
+
caseId: string;
|
|
2664
|
+
}, {
|
|
2665
|
+
accountId: string;
|
|
2666
|
+
caseId: string;
|
|
2667
|
+
}>;
|
|
2668
|
+
type: z.ZodLiteral<"LIFECYCLE_STARTED">;
|
|
2669
|
+
}, "strip", z.ZodTypeAny, {
|
|
2670
|
+
type: "LIFECYCLE_STARTED";
|
|
2671
|
+
data: {
|
|
2672
|
+
accountId: string;
|
|
2673
|
+
caseId: string;
|
|
2674
|
+
};
|
|
2675
|
+
}, {
|
|
2676
|
+
type: "LIFECYCLE_STARTED";
|
|
2677
|
+
data: {
|
|
2678
|
+
accountId: string;
|
|
2679
|
+
caseId: string;
|
|
2680
|
+
};
|
|
2681
|
+
}>, z.ZodObject<{
|
|
2682
|
+
data: z.ZodObject<{
|
|
2683
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2684
|
+
}, "strip", z.ZodTypeAny, {
|
|
2685
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2686
|
+
}, {
|
|
2687
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2688
|
+
}>;
|
|
2689
|
+
type: z.ZodLiteral<"PUBLISHED">;
|
|
2690
|
+
}, "strip", z.ZodTypeAny, {
|
|
2691
|
+
type: "PUBLISHED";
|
|
2692
|
+
data: {
|
|
2693
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2694
|
+
};
|
|
2695
|
+
}, {
|
|
2696
|
+
type: "PUBLISHED";
|
|
2697
|
+
data: {
|
|
2698
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2699
|
+
};
|
|
2700
|
+
}>, z.ZodObject<{
|
|
2701
|
+
data: z.ZodObject<{
|
|
2702
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2703
|
+
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2704
|
+
priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2705
|
+
type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
|
|
2706
|
+
value: z.ZodNumber;
|
|
2707
|
+
roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
|
|
2708
|
+
roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2709
|
+
maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2710
|
+
}, "strip", z.ZodTypeAny, {
|
|
2711
|
+
value: number;
|
|
2712
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2713
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2714
|
+
roundStep?: number | null | undefined;
|
|
2715
|
+
maxRounds?: number | null | undefined;
|
|
2716
|
+
}, {
|
|
2717
|
+
value: number;
|
|
2718
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2719
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2720
|
+
roundStep?: number | null | undefined;
|
|
2721
|
+
maxRounds?: number | null | undefined;
|
|
2722
|
+
}>>>;
|
|
2723
|
+
isTransfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2724
|
+
targetAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2725
|
+
}, "strip", z.ZodTypeAny, {
|
|
2726
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2727
|
+
publishingDate?: Date | null | undefined;
|
|
2728
|
+
priceDropPayload?: {
|
|
2729
|
+
value: number;
|
|
2730
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2731
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2732
|
+
roundStep?: number | null | undefined;
|
|
2733
|
+
maxRounds?: number | null | undefined;
|
|
2734
|
+
} | null | undefined;
|
|
2735
|
+
isTransfer?: boolean | null | undefined;
|
|
2736
|
+
targetAccountId?: string | null | undefined;
|
|
2737
|
+
}, {
|
|
2738
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2739
|
+
publishingDate?: Date | null | undefined;
|
|
2740
|
+
priceDropPayload?: {
|
|
2741
|
+
value: number;
|
|
2742
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2743
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2744
|
+
roundStep?: number | null | undefined;
|
|
2745
|
+
maxRounds?: number | null | undefined;
|
|
2746
|
+
} | null | undefined;
|
|
2747
|
+
isTransfer?: boolean | null | undefined;
|
|
2748
|
+
targetAccountId?: string | null | undefined;
|
|
2749
|
+
}>;
|
|
2750
|
+
type: z.ZodLiteral<"REPUBLISHING">;
|
|
2751
|
+
}, "strip", z.ZodTypeAny, {
|
|
2752
|
+
type: "REPUBLISHING";
|
|
2753
|
+
data: {
|
|
2754
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2755
|
+
publishingDate?: Date | null | undefined;
|
|
2756
|
+
priceDropPayload?: {
|
|
2757
|
+
value: number;
|
|
2758
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2759
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2760
|
+
roundStep?: number | null | undefined;
|
|
2761
|
+
maxRounds?: number | null | undefined;
|
|
2762
|
+
} | null | undefined;
|
|
2763
|
+
isTransfer?: boolean | null | undefined;
|
|
2764
|
+
targetAccountId?: string | null | undefined;
|
|
2765
|
+
};
|
|
2766
|
+
}, {
|
|
2767
|
+
type: "REPUBLISHING";
|
|
2768
|
+
data: {
|
|
2769
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2770
|
+
publishingDate?: Date | null | undefined;
|
|
2771
|
+
priceDropPayload?: {
|
|
2772
|
+
value: number;
|
|
2773
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2774
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2775
|
+
roundStep?: number | null | undefined;
|
|
2776
|
+
maxRounds?: number | null | undefined;
|
|
2777
|
+
} | null | undefined;
|
|
2778
|
+
isTransfer?: boolean | null | undefined;
|
|
2779
|
+
targetAccountId?: string | null | undefined;
|
|
2780
|
+
};
|
|
2781
|
+
}>, z.ZodObject<{
|
|
2782
|
+
data: z.ZodObject<{
|
|
2783
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2784
|
+
attemptNumber: z.ZodNumber;
|
|
2785
|
+
maxAttempts: z.ZodNumber;
|
|
2786
|
+
previousHistoryId: z.ZodString;
|
|
2787
|
+
originalFailureDate: z.ZodDate;
|
|
2788
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2789
|
+
field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
|
|
2790
|
+
autoFixable: z.ZodBoolean;
|
|
2791
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2792
|
+
}, "strip", z.ZodTypeAny, {
|
|
2793
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2794
|
+
autoFixable: boolean;
|
|
2795
|
+
error?: string | null | undefined;
|
|
2796
|
+
}, {
|
|
2797
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2798
|
+
autoFixable: boolean;
|
|
2799
|
+
error?: string | null | undefined;
|
|
2800
|
+
}>, "many">>>;
|
|
2801
|
+
priceDropPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2802
|
+
type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
|
|
2803
|
+
value: z.ZodNumber;
|
|
2804
|
+
roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
|
|
2805
|
+
roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2806
|
+
maxRounds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2807
|
+
}, "strip", z.ZodTypeAny, {
|
|
2808
|
+
value: number;
|
|
2809
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2810
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2811
|
+
roundStep?: number | null | undefined;
|
|
2812
|
+
maxRounds?: number | null | undefined;
|
|
2813
|
+
}, {
|
|
2814
|
+
value: number;
|
|
2815
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2816
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2817
|
+
roundStep?: number | null | undefined;
|
|
2818
|
+
maxRounds?: number | null | undefined;
|
|
2819
|
+
}>>>;
|
|
2820
|
+
}, "strip", z.ZodTypeAny, {
|
|
2821
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2822
|
+
attemptNumber: number;
|
|
2823
|
+
maxAttempts: number;
|
|
2824
|
+
previousHistoryId: string;
|
|
2825
|
+
originalFailureDate: Date;
|
|
2826
|
+
fields?: {
|
|
2827
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2828
|
+
autoFixable: boolean;
|
|
2829
|
+
error?: string | null | undefined;
|
|
2830
|
+
}[] | null | undefined;
|
|
2831
|
+
priceDropPayload?: {
|
|
2832
|
+
value: number;
|
|
2833
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2834
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2835
|
+
roundStep?: number | null | undefined;
|
|
2836
|
+
maxRounds?: number | null | undefined;
|
|
2837
|
+
} | null | undefined;
|
|
2838
|
+
}, {
|
|
2839
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2840
|
+
attemptNumber: number;
|
|
2841
|
+
maxAttempts: number;
|
|
2842
|
+
previousHistoryId: string;
|
|
2843
|
+
originalFailureDate: Date;
|
|
2844
|
+
fields?: {
|
|
2845
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2846
|
+
autoFixable: boolean;
|
|
2847
|
+
error?: string | null | undefined;
|
|
2848
|
+
}[] | null | undefined;
|
|
2849
|
+
priceDropPayload?: {
|
|
2850
|
+
value: number;
|
|
2851
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2852
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2853
|
+
roundStep?: number | null | undefined;
|
|
2854
|
+
maxRounds?: number | null | undefined;
|
|
2855
|
+
} | null | undefined;
|
|
2856
|
+
}>;
|
|
2857
|
+
type: z.ZodLiteral<"REPUBLISHING_RETRY">;
|
|
2858
|
+
}, "strip", z.ZodTypeAny, {
|
|
2859
|
+
type: "REPUBLISHING_RETRY";
|
|
2860
|
+
data: {
|
|
2861
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2862
|
+
attemptNumber: number;
|
|
2863
|
+
maxAttempts: number;
|
|
2864
|
+
previousHistoryId: string;
|
|
2865
|
+
originalFailureDate: Date;
|
|
2866
|
+
fields?: {
|
|
2867
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2868
|
+
autoFixable: boolean;
|
|
2869
|
+
error?: string | null | undefined;
|
|
2870
|
+
}[] | null | undefined;
|
|
2871
|
+
priceDropPayload?: {
|
|
2872
|
+
value: number;
|
|
2873
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2874
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2875
|
+
roundStep?: number | null | undefined;
|
|
2876
|
+
maxRounds?: number | null | undefined;
|
|
2877
|
+
} | null | undefined;
|
|
2878
|
+
};
|
|
2879
|
+
}, {
|
|
2880
|
+
type: "REPUBLISHING_RETRY";
|
|
2881
|
+
data: {
|
|
2882
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2883
|
+
attemptNumber: number;
|
|
2884
|
+
maxAttempts: number;
|
|
2885
|
+
previousHistoryId: string;
|
|
2886
|
+
originalFailureDate: Date;
|
|
2887
|
+
fields?: {
|
|
2888
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2889
|
+
autoFixable: boolean;
|
|
2890
|
+
error?: string | null | undefined;
|
|
2891
|
+
}[] | null | undefined;
|
|
2892
|
+
priceDropPayload?: {
|
|
2893
|
+
value: number;
|
|
2894
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
2895
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
2896
|
+
roundStep?: number | null | undefined;
|
|
2897
|
+
maxRounds?: number | null | undefined;
|
|
2898
|
+
} | null | undefined;
|
|
2899
|
+
};
|
|
2900
|
+
}>, z.ZodObject<{
|
|
2901
|
+
data: z.ZodObject<{
|
|
2902
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2903
|
+
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2904
|
+
}, "strip", z.ZodTypeAny, {
|
|
2905
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2906
|
+
publishingDate?: Date | null | undefined;
|
|
2907
|
+
}, {
|
|
2908
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2909
|
+
publishingDate?: Date | null | undefined;
|
|
2910
|
+
}>;
|
|
2911
|
+
type: z.ZodLiteral<"SCHEDULED">;
|
|
2912
|
+
}, "strip", z.ZodTypeAny, {
|
|
2913
|
+
type: "SCHEDULED";
|
|
2914
|
+
data: {
|
|
2915
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2916
|
+
publishingDate?: Date | null | undefined;
|
|
2917
|
+
};
|
|
2918
|
+
}, {
|
|
2919
|
+
type: "SCHEDULED";
|
|
2920
|
+
data: {
|
|
2921
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2922
|
+
publishingDate?: Date | null | undefined;
|
|
2923
|
+
};
|
|
2924
|
+
}>, z.ZodObject<{
|
|
2925
|
+
data: z.ZodObject<{
|
|
2926
|
+
platform: z.ZodEnum<["ETSY", "SHOPIFY", "VINTED"]>;
|
|
2927
|
+
attemptNumber: z.ZodNumber;
|
|
2928
|
+
maxAttempts: z.ZodNumber;
|
|
2929
|
+
previousHistoryId: z.ZodString;
|
|
2930
|
+
originalFailureDate: z.ZodDate;
|
|
2931
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2932
|
+
field: z.ZodEnum<["TITLE", "DESCRIPTION", "SIZE", "BRAND", "STATUS", "PRICE", "PACKAGE_SIZE", "COLOR", "CATALOG", "PHOTOS", "UNKNOWN"]>;
|
|
2933
|
+
autoFixable: z.ZodBoolean;
|
|
2934
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2935
|
+
}, "strip", z.ZodTypeAny, {
|
|
2936
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2937
|
+
autoFixable: boolean;
|
|
2938
|
+
error?: string | null | undefined;
|
|
2939
|
+
}, {
|
|
2940
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2941
|
+
autoFixable: boolean;
|
|
2942
|
+
error?: string | null | undefined;
|
|
2943
|
+
}>, "many">>>;
|
|
2944
|
+
}, "strip", z.ZodTypeAny, {
|
|
2945
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2946
|
+
attemptNumber: number;
|
|
2947
|
+
maxAttempts: number;
|
|
2948
|
+
previousHistoryId: string;
|
|
2949
|
+
originalFailureDate: Date;
|
|
2950
|
+
fields?: {
|
|
2951
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2952
|
+
autoFixable: boolean;
|
|
2953
|
+
error?: string | null | undefined;
|
|
2954
|
+
}[] | null | undefined;
|
|
2955
|
+
}, {
|
|
2956
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2957
|
+
attemptNumber: number;
|
|
2958
|
+
maxAttempts: number;
|
|
2959
|
+
previousHistoryId: string;
|
|
2960
|
+
originalFailureDate: Date;
|
|
2961
|
+
fields?: {
|
|
2962
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2963
|
+
autoFixable: boolean;
|
|
2964
|
+
error?: string | null | undefined;
|
|
2965
|
+
}[] | null | undefined;
|
|
2966
|
+
}>;
|
|
2967
|
+
type: z.ZodLiteral<"SCHEDULED_RETRY">;
|
|
2968
|
+
}, "strip", z.ZodTypeAny, {
|
|
2969
|
+
type: "SCHEDULED_RETRY";
|
|
2970
|
+
data: {
|
|
2971
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2972
|
+
attemptNumber: number;
|
|
2973
|
+
maxAttempts: number;
|
|
2974
|
+
previousHistoryId: string;
|
|
2975
|
+
originalFailureDate: Date;
|
|
2976
|
+
fields?: {
|
|
2977
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2978
|
+
autoFixable: boolean;
|
|
2979
|
+
error?: string | null | undefined;
|
|
2980
|
+
}[] | null | undefined;
|
|
2981
|
+
};
|
|
2982
|
+
}, {
|
|
2983
|
+
type: "SCHEDULED_RETRY";
|
|
2984
|
+
data: {
|
|
2985
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2986
|
+
attemptNumber: number;
|
|
2987
|
+
maxAttempts: number;
|
|
2988
|
+
previousHistoryId: string;
|
|
2989
|
+
originalFailureDate: Date;
|
|
2990
|
+
fields?: {
|
|
2991
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2992
|
+
autoFixable: boolean;
|
|
2993
|
+
error?: string | null | undefined;
|
|
2994
|
+
}[] | null | undefined;
|
|
2995
|
+
};
|
|
2996
|
+
}>]>>>;
|
|
2997
|
+
createdAt: z.ZodDate;
|
|
2998
|
+
targetDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2999
|
+
accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3000
|
+
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3001
|
+
}, "strip", z.ZodTypeAny, {
|
|
3002
|
+
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";
|
|
3003
|
+
id: string;
|
|
3004
|
+
createdAt: Date;
|
|
3005
|
+
itemId: string | number;
|
|
3006
|
+
data?: {
|
|
3007
|
+
type: "ACTION_CANCELED";
|
|
3008
|
+
data: {
|
|
3009
|
+
targetItemHistoryId: string;
|
|
3010
|
+
};
|
|
3011
|
+
} | {
|
|
3012
|
+
type: "BUYER_PAID";
|
|
3013
|
+
data: {
|
|
3014
|
+
soldAccountId: string;
|
|
3015
|
+
soldOrderId: string;
|
|
3016
|
+
soldConversationId?: string | null | undefined;
|
|
3017
|
+
};
|
|
3018
|
+
} | {
|
|
3019
|
+
type: "DELIVERED";
|
|
3020
|
+
data: {
|
|
3021
|
+
soldAccountId: string;
|
|
3022
|
+
soldOrderId: string;
|
|
3023
|
+
soldConversationId?: string | null | undefined;
|
|
3024
|
+
};
|
|
3025
|
+
} | {
|
|
3026
|
+
type: "EMPTY";
|
|
3027
|
+
} | {
|
|
3028
|
+
type: "FAILED_TO_PUBLISH";
|
|
3029
|
+
data: {
|
|
3030
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3031
|
+
accountId?: string | null | undefined;
|
|
3032
|
+
reason?: string | null | undefined;
|
|
3033
|
+
fields?: {
|
|
3034
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3035
|
+
autoFixable: boolean;
|
|
3036
|
+
error?: string | null | undefined;
|
|
3037
|
+
}[] | null | undefined;
|
|
3038
|
+
itemHistoryId?: string | null | undefined;
|
|
3039
|
+
};
|
|
3040
|
+
} | {
|
|
3041
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
3042
|
+
data: {
|
|
3043
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3044
|
+
variations?: {
|
|
3045
|
+
fileId: string;
|
|
3046
|
+
seed: number;
|
|
3047
|
+
phash: string;
|
|
3048
|
+
distanceOriginal: number;
|
|
3049
|
+
originalImageUrl: string;
|
|
3050
|
+
originalPhash: string;
|
|
3051
|
+
}[] | null | undefined;
|
|
3052
|
+
originalPhashes?: string[] | null | undefined;
|
|
3053
|
+
};
|
|
3054
|
+
} | {
|
|
3055
|
+
type: "IMPORTED";
|
|
3056
|
+
data: {
|
|
3057
|
+
post: {
|
|
3058
|
+
platformId: string;
|
|
3059
|
+
post: {
|
|
3060
|
+
status?: string | null | undefined;
|
|
3061
|
+
price?: number | null | undefined;
|
|
3062
|
+
currency?: string | null | undefined;
|
|
3063
|
+
brand?: string | null | undefined;
|
|
3064
|
+
catalog?: string | null | undefined;
|
|
3065
|
+
catalogId?: number | null | undefined;
|
|
3066
|
+
colors?: string[] | null | undefined;
|
|
3067
|
+
colorIds?: number[] | null | undefined;
|
|
3068
|
+
description?: string | null | undefined;
|
|
3069
|
+
measurementLength?: number | null | undefined;
|
|
3070
|
+
measurementWidth?: number | null | undefined;
|
|
3071
|
+
packageSizeId?: number | null | undefined;
|
|
3072
|
+
photoUrls?: string[] | null | undefined;
|
|
3073
|
+
size?: string | null | undefined;
|
|
3074
|
+
sizeId?: number | null | undefined;
|
|
3075
|
+
statusId?: number | null | undefined;
|
|
3076
|
+
title?: string | null | undefined;
|
|
3077
|
+
isDraft?: boolean | null | undefined;
|
|
3078
|
+
isArchived?: boolean | null | undefined;
|
|
3079
|
+
availableQuantity?: number | null | undefined;
|
|
3080
|
+
material?: number[] | null | undefined;
|
|
3081
|
+
manufacturerLabelling?: string | null | undefined;
|
|
3082
|
+
labels?: string[] | null | undefined;
|
|
3083
|
+
};
|
|
3084
|
+
createdAt?: Date | null | undefined;
|
|
3085
|
+
platformUrl?: string | null | undefined;
|
|
3086
|
+
};
|
|
3087
|
+
};
|
|
3088
|
+
} | {
|
|
3089
|
+
type: "LIFECYCLE_COMPLETED";
|
|
3090
|
+
data: {
|
|
3091
|
+
accountId: string;
|
|
3092
|
+
};
|
|
3093
|
+
} | {
|
|
3094
|
+
type: "LIFECYCLE_STARTED";
|
|
3095
|
+
data: {
|
|
3096
|
+
accountId: string;
|
|
3097
|
+
caseId: string;
|
|
3098
|
+
};
|
|
3099
|
+
} | {
|
|
3100
|
+
type: "PUBLISHED";
|
|
3101
|
+
data: {
|
|
3102
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3103
|
+
};
|
|
3104
|
+
} | {
|
|
3105
|
+
type: "REPUBLISHING";
|
|
3106
|
+
data: {
|
|
3107
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3108
|
+
publishingDate?: Date | null | undefined;
|
|
3109
|
+
priceDropPayload?: {
|
|
3110
|
+
value: number;
|
|
3111
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3112
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3113
|
+
roundStep?: number | null | undefined;
|
|
3114
|
+
maxRounds?: number | null | undefined;
|
|
3115
|
+
} | null | undefined;
|
|
3116
|
+
isTransfer?: boolean | null | undefined;
|
|
3117
|
+
targetAccountId?: string | null | undefined;
|
|
3118
|
+
};
|
|
3119
|
+
} | {
|
|
3120
|
+
type: "REPUBLISHING_RETRY";
|
|
3121
|
+
data: {
|
|
3122
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3123
|
+
attemptNumber: number;
|
|
3124
|
+
maxAttempts: number;
|
|
3125
|
+
previousHistoryId: string;
|
|
3126
|
+
originalFailureDate: Date;
|
|
3127
|
+
fields?: {
|
|
3128
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3129
|
+
autoFixable: boolean;
|
|
3130
|
+
error?: string | null | undefined;
|
|
3131
|
+
}[] | null | undefined;
|
|
3132
|
+
priceDropPayload?: {
|
|
3133
|
+
value: number;
|
|
3134
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3135
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3136
|
+
roundStep?: number | null | undefined;
|
|
3137
|
+
maxRounds?: number | null | undefined;
|
|
3138
|
+
} | null | undefined;
|
|
3139
|
+
};
|
|
3140
|
+
} | {
|
|
3141
|
+
type: "SCHEDULED";
|
|
3142
|
+
data: {
|
|
3143
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3144
|
+
publishingDate?: Date | null | undefined;
|
|
3145
|
+
};
|
|
3146
|
+
} | {
|
|
3147
|
+
type: "SCHEDULED_RETRY";
|
|
3148
|
+
data: {
|
|
3149
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3150
|
+
attemptNumber: number;
|
|
3151
|
+
maxAttempts: number;
|
|
3152
|
+
previousHistoryId: string;
|
|
3153
|
+
originalFailureDate: Date;
|
|
3154
|
+
fields?: {
|
|
3155
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3156
|
+
autoFixable: boolean;
|
|
3157
|
+
error?: string | null | undefined;
|
|
3158
|
+
}[] | null | undefined;
|
|
3159
|
+
};
|
|
3160
|
+
} | null | undefined;
|
|
3161
|
+
accountId?: string | null | undefined;
|
|
3162
|
+
requestId?: string | null | undefined;
|
|
3163
|
+
targetDate?: Date | null | undefined;
|
|
3164
|
+
}, {
|
|
3165
|
+
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";
|
|
3166
|
+
id: string;
|
|
3167
|
+
createdAt: Date;
|
|
3168
|
+
itemId: string | number;
|
|
3169
|
+
data?: {
|
|
3170
|
+
type: "ACTION_CANCELED";
|
|
3171
|
+
data: {
|
|
3172
|
+
targetItemHistoryId: string;
|
|
3173
|
+
};
|
|
3174
|
+
} | {
|
|
3175
|
+
type: "BUYER_PAID";
|
|
3176
|
+
data: {
|
|
3177
|
+
soldAccountId: string;
|
|
3178
|
+
soldOrderId: string;
|
|
3179
|
+
soldConversationId?: string | null | undefined;
|
|
3180
|
+
};
|
|
3181
|
+
} | {
|
|
3182
|
+
type: "DELIVERED";
|
|
3183
|
+
data: {
|
|
3184
|
+
soldAccountId: string;
|
|
3185
|
+
soldOrderId: string;
|
|
3186
|
+
soldConversationId?: string | null | undefined;
|
|
3187
|
+
};
|
|
3188
|
+
} | {
|
|
3189
|
+
type: "EMPTY";
|
|
3190
|
+
} | {
|
|
3191
|
+
type: "FAILED_TO_PUBLISH";
|
|
3192
|
+
data: {
|
|
3193
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3194
|
+
accountId?: string | null | undefined;
|
|
3195
|
+
reason?: string | null | undefined;
|
|
3196
|
+
fields?: {
|
|
3197
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3198
|
+
autoFixable: boolean;
|
|
3199
|
+
error?: string | null | undefined;
|
|
3200
|
+
}[] | null | undefined;
|
|
3201
|
+
itemHistoryId?: string | null | undefined;
|
|
3202
|
+
};
|
|
3203
|
+
} | {
|
|
3204
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
3205
|
+
data: {
|
|
3206
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3207
|
+
variations?: {
|
|
3208
|
+
fileId: string;
|
|
3209
|
+
seed: number;
|
|
3210
|
+
phash: string;
|
|
3211
|
+
distanceOriginal: number;
|
|
3212
|
+
originalImageUrl: string;
|
|
3213
|
+
originalPhash: string;
|
|
3214
|
+
}[] | null | undefined;
|
|
3215
|
+
originalPhashes?: string[] | null | undefined;
|
|
3216
|
+
};
|
|
3217
|
+
} | {
|
|
3218
|
+
type: "IMPORTED";
|
|
3219
|
+
data: {
|
|
3220
|
+
post: {
|
|
3221
|
+
platformId: string;
|
|
3222
|
+
post: {
|
|
3223
|
+
status?: string | null | undefined;
|
|
3224
|
+
price?: number | null | undefined;
|
|
3225
|
+
currency?: string | null | undefined;
|
|
3226
|
+
brand?: string | null | undefined;
|
|
3227
|
+
catalog?: string | null | undefined;
|
|
3228
|
+
catalogId?: number | null | undefined;
|
|
3229
|
+
colors?: string[] | null | undefined;
|
|
3230
|
+
colorIds?: number[] | null | undefined;
|
|
3231
|
+
description?: string | null | undefined;
|
|
3232
|
+
measurementLength?: number | null | undefined;
|
|
3233
|
+
measurementWidth?: number | null | undefined;
|
|
3234
|
+
packageSizeId?: number | null | undefined;
|
|
3235
|
+
photoUrls?: string[] | null | undefined;
|
|
3236
|
+
size?: string | null | undefined;
|
|
3237
|
+
sizeId?: number | null | undefined;
|
|
3238
|
+
statusId?: number | null | undefined;
|
|
3239
|
+
title?: string | null | undefined;
|
|
3240
|
+
isDraft?: boolean | null | undefined;
|
|
3241
|
+
isArchived?: boolean | null | undefined;
|
|
3242
|
+
availableQuantity?: number | null | undefined;
|
|
3243
|
+
material?: number[] | null | undefined;
|
|
3244
|
+
manufacturerLabelling?: string | null | undefined;
|
|
3245
|
+
labels?: string[] | null | undefined;
|
|
3246
|
+
};
|
|
3247
|
+
createdAt?: Date | null | undefined;
|
|
3248
|
+
platformUrl?: string | null | undefined;
|
|
3249
|
+
};
|
|
3250
|
+
};
|
|
3251
|
+
} | {
|
|
3252
|
+
type: "LIFECYCLE_COMPLETED";
|
|
3253
|
+
data: {
|
|
3254
|
+
accountId: string;
|
|
3255
|
+
};
|
|
3256
|
+
} | {
|
|
3257
|
+
type: "LIFECYCLE_STARTED";
|
|
3258
|
+
data: {
|
|
3259
|
+
accountId: string;
|
|
3260
|
+
caseId: string;
|
|
3261
|
+
};
|
|
3262
|
+
} | {
|
|
3263
|
+
type: "PUBLISHED";
|
|
3264
|
+
data: {
|
|
3265
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3266
|
+
};
|
|
3267
|
+
} | {
|
|
3268
|
+
type: "REPUBLISHING";
|
|
3269
|
+
data: {
|
|
3270
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3271
|
+
publishingDate?: Date | null | undefined;
|
|
3272
|
+
priceDropPayload?: {
|
|
3273
|
+
value: number;
|
|
3274
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3275
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3276
|
+
roundStep?: number | null | undefined;
|
|
3277
|
+
maxRounds?: number | null | undefined;
|
|
3278
|
+
} | null | undefined;
|
|
3279
|
+
isTransfer?: boolean | null | undefined;
|
|
3280
|
+
targetAccountId?: string | null | undefined;
|
|
3281
|
+
};
|
|
3282
|
+
} | {
|
|
3283
|
+
type: "REPUBLISHING_RETRY";
|
|
3284
|
+
data: {
|
|
3285
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3286
|
+
attemptNumber: number;
|
|
3287
|
+
maxAttempts: number;
|
|
3288
|
+
previousHistoryId: string;
|
|
3289
|
+
originalFailureDate: Date;
|
|
3290
|
+
fields?: {
|
|
3291
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3292
|
+
autoFixable: boolean;
|
|
3293
|
+
error?: string | null | undefined;
|
|
3294
|
+
}[] | null | undefined;
|
|
3295
|
+
priceDropPayload?: {
|
|
3296
|
+
value: number;
|
|
3297
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3298
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3299
|
+
roundStep?: number | null | undefined;
|
|
3300
|
+
maxRounds?: number | null | undefined;
|
|
3301
|
+
} | null | undefined;
|
|
3302
|
+
};
|
|
3303
|
+
} | {
|
|
3304
|
+
type: "SCHEDULED";
|
|
3305
|
+
data: {
|
|
3306
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3307
|
+
publishingDate?: Date | null | undefined;
|
|
3308
|
+
};
|
|
3309
|
+
} | {
|
|
3310
|
+
type: "SCHEDULED_RETRY";
|
|
3311
|
+
data: {
|
|
3312
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3313
|
+
attemptNumber: number;
|
|
3314
|
+
maxAttempts: number;
|
|
3315
|
+
previousHistoryId: string;
|
|
3316
|
+
originalFailureDate: Date;
|
|
3317
|
+
fields?: {
|
|
3318
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3319
|
+
autoFixable: boolean;
|
|
3320
|
+
error?: string | null | undefined;
|
|
3321
|
+
}[] | null | undefined;
|
|
3322
|
+
};
|
|
3323
|
+
} | null | undefined;
|
|
3324
|
+
accountId?: string | null | undefined;
|
|
3325
|
+
requestId?: string | null | undefined;
|
|
3326
|
+
targetDate?: Date | null | undefined;
|
|
3327
|
+
}>, "many">>>;
|
|
2136
3328
|
createdAt: z.ZodDate;
|
|
2137
3329
|
updatedAt: z.ZodDate;
|
|
2138
3330
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2159,73 +3351,715 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
2159
3351
|
itemCount?: number | null | undefined;
|
|
2160
3352
|
parentId?: unknown;
|
|
2161
3353
|
} | null | undefined;
|
|
2162
|
-
}[] | null | undefined;
|
|
2163
|
-
files?: {
|
|
3354
|
+
}[] | null | undefined;
|
|
3355
|
+
files?: {
|
|
3356
|
+
itemId: string | number;
|
|
3357
|
+
fileId: string;
|
|
3358
|
+
index?: number | null | undefined;
|
|
3359
|
+
file?: {
|
|
3360
|
+
path: string;
|
|
3361
|
+
userId: string | number;
|
|
3362
|
+
id: string;
|
|
3363
|
+
createdAt: Date;
|
|
3364
|
+
signedUrl: string;
|
|
3365
|
+
} | null | undefined;
|
|
3366
|
+
}[] | null | undefined;
|
|
3367
|
+
fields?: {
|
|
3368
|
+
value: string;
|
|
3369
|
+
itemId: string | number;
|
|
3370
|
+
fieldId: string | number;
|
|
3371
|
+
}[] | null | undefined;
|
|
3372
|
+
sku?: string | null | undefined;
|
|
3373
|
+
categoryId?: number | null | undefined;
|
|
3374
|
+
brandId?: string | number | null | undefined;
|
|
3375
|
+
sex?: string | null | undefined;
|
|
3376
|
+
purchasePrice?: number | null | undefined;
|
|
3377
|
+
purchaseDate?: Date | null | undefined;
|
|
3378
|
+
purchasePlaceId?: string | number | null | undefined;
|
|
3379
|
+
purchased?: boolean | null | undefined;
|
|
3380
|
+
sellingPrice?: number | null | undefined;
|
|
3381
|
+
sellingDate?: Date | null | undefined;
|
|
3382
|
+
sellingPlaceId?: string | number | null | undefined;
|
|
3383
|
+
estimatedPrice?: number | null | undefined;
|
|
3384
|
+
fees?: {
|
|
3385
|
+
value: number;
|
|
3386
|
+
type: string;
|
|
3387
|
+
userId: string | number;
|
|
3388
|
+
id: string | number;
|
|
3389
|
+
updatedAt: Date;
|
|
3390
|
+
name: string;
|
|
3391
|
+
createdAt: Date;
|
|
3392
|
+
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
3393
|
+
startDate: Date;
|
|
3394
|
+
active: boolean;
|
|
3395
|
+
description?: string | null | undefined;
|
|
3396
|
+
itemId?: string | number | null | undefined;
|
|
3397
|
+
endDate?: Date | null | undefined;
|
|
3398
|
+
parentFeeId?: string | number | null | undefined;
|
|
3399
|
+
}[] | null | undefined;
|
|
3400
|
+
feesSum?: number | null | undefined;
|
|
3401
|
+
customerId?: string | number | null | undefined;
|
|
3402
|
+
customer?: {
|
|
3403
|
+
userId: string | number;
|
|
3404
|
+
id: string | number;
|
|
3405
|
+
email: string;
|
|
3406
|
+
firstName: string;
|
|
3407
|
+
lastName: string;
|
|
3408
|
+
birthDate: Date;
|
|
3409
|
+
idNumber: string;
|
|
3410
|
+
phone: string;
|
|
3411
|
+
iban: string;
|
|
3412
|
+
bic: string;
|
|
3413
|
+
phoneVerified: boolean;
|
|
3414
|
+
} | null | undefined;
|
|
3415
|
+
customerType?: string | null | undefined;
|
|
3416
|
+
customerPaid?: boolean | null | undefined;
|
|
3417
|
+
customerPaidDate?: Date | null | undefined;
|
|
3418
|
+
customerPaidType?: string | null | undefined;
|
|
3419
|
+
contractId?: string | number | null | undefined;
|
|
3420
|
+
lastHistory?: {
|
|
3421
|
+
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";
|
|
3422
|
+
id: string;
|
|
3423
|
+
createdAt: Date;
|
|
3424
|
+
itemId: string | number;
|
|
3425
|
+
data?: {
|
|
3426
|
+
type: "ACTION_CANCELED";
|
|
3427
|
+
data: {
|
|
3428
|
+
targetItemHistoryId: string;
|
|
3429
|
+
};
|
|
3430
|
+
} | {
|
|
3431
|
+
type: "BUYER_PAID";
|
|
3432
|
+
data: {
|
|
3433
|
+
soldAccountId: string;
|
|
3434
|
+
soldOrderId: string;
|
|
3435
|
+
soldConversationId?: string | null | undefined;
|
|
3436
|
+
};
|
|
3437
|
+
} | {
|
|
3438
|
+
type: "DELIVERED";
|
|
3439
|
+
data: {
|
|
3440
|
+
soldAccountId: string;
|
|
3441
|
+
soldOrderId: string;
|
|
3442
|
+
soldConversationId?: string | null | undefined;
|
|
3443
|
+
};
|
|
3444
|
+
} | {
|
|
3445
|
+
type: "EMPTY";
|
|
3446
|
+
} | {
|
|
3447
|
+
type: "FAILED_TO_PUBLISH";
|
|
3448
|
+
data: {
|
|
3449
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3450
|
+
accountId?: string | null | undefined;
|
|
3451
|
+
reason?: string | null | undefined;
|
|
3452
|
+
fields?: {
|
|
3453
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3454
|
+
autoFixable: boolean;
|
|
3455
|
+
error?: string | null | undefined;
|
|
3456
|
+
}[] | null | undefined;
|
|
3457
|
+
itemHistoryId?: string | null | undefined;
|
|
3458
|
+
};
|
|
3459
|
+
} | {
|
|
3460
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
3461
|
+
data: {
|
|
3462
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3463
|
+
variations?: {
|
|
3464
|
+
fileId: string;
|
|
3465
|
+
seed: number;
|
|
3466
|
+
phash: string;
|
|
3467
|
+
distanceOriginal: number;
|
|
3468
|
+
originalImageUrl: string;
|
|
3469
|
+
originalPhash: string;
|
|
3470
|
+
}[] | null | undefined;
|
|
3471
|
+
originalPhashes?: string[] | null | undefined;
|
|
3472
|
+
};
|
|
3473
|
+
} | {
|
|
3474
|
+
type: "IMPORTED";
|
|
3475
|
+
data: {
|
|
3476
|
+
post: {
|
|
3477
|
+
platformId: string;
|
|
3478
|
+
post: {
|
|
3479
|
+
status?: string | null | undefined;
|
|
3480
|
+
price?: number | null | undefined;
|
|
3481
|
+
currency?: string | null | undefined;
|
|
3482
|
+
brand?: string | null | undefined;
|
|
3483
|
+
catalog?: string | null | undefined;
|
|
3484
|
+
catalogId?: number | null | undefined;
|
|
3485
|
+
colors?: string[] | null | undefined;
|
|
3486
|
+
colorIds?: number[] | null | undefined;
|
|
3487
|
+
description?: string | null | undefined;
|
|
3488
|
+
measurementLength?: number | null | undefined;
|
|
3489
|
+
measurementWidth?: number | null | undefined;
|
|
3490
|
+
packageSizeId?: number | null | undefined;
|
|
3491
|
+
photoUrls?: string[] | null | undefined;
|
|
3492
|
+
size?: string | null | undefined;
|
|
3493
|
+
sizeId?: number | null | undefined;
|
|
3494
|
+
statusId?: number | null | undefined;
|
|
3495
|
+
title?: string | null | undefined;
|
|
3496
|
+
isDraft?: boolean | null | undefined;
|
|
3497
|
+
isArchived?: boolean | null | undefined;
|
|
3498
|
+
availableQuantity?: number | null | undefined;
|
|
3499
|
+
material?: number[] | null | undefined;
|
|
3500
|
+
manufacturerLabelling?: string | null | undefined;
|
|
3501
|
+
labels?: string[] | null | undefined;
|
|
3502
|
+
};
|
|
3503
|
+
createdAt?: Date | null | undefined;
|
|
3504
|
+
platformUrl?: string | null | undefined;
|
|
3505
|
+
};
|
|
3506
|
+
};
|
|
3507
|
+
} | {
|
|
3508
|
+
type: "LIFECYCLE_COMPLETED";
|
|
3509
|
+
data: {
|
|
3510
|
+
accountId: string;
|
|
3511
|
+
};
|
|
3512
|
+
} | {
|
|
3513
|
+
type: "LIFECYCLE_STARTED";
|
|
3514
|
+
data: {
|
|
3515
|
+
accountId: string;
|
|
3516
|
+
caseId: string;
|
|
3517
|
+
};
|
|
3518
|
+
} | {
|
|
3519
|
+
type: "PUBLISHED";
|
|
3520
|
+
data: {
|
|
3521
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3522
|
+
};
|
|
3523
|
+
} | {
|
|
3524
|
+
type: "REPUBLISHING";
|
|
3525
|
+
data: {
|
|
3526
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3527
|
+
publishingDate?: Date | null | undefined;
|
|
3528
|
+
priceDropPayload?: {
|
|
3529
|
+
value: number;
|
|
3530
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3531
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3532
|
+
roundStep?: number | null | undefined;
|
|
3533
|
+
maxRounds?: number | null | undefined;
|
|
3534
|
+
} | null | undefined;
|
|
3535
|
+
isTransfer?: boolean | null | undefined;
|
|
3536
|
+
targetAccountId?: string | null | undefined;
|
|
3537
|
+
};
|
|
3538
|
+
} | {
|
|
3539
|
+
type: "REPUBLISHING_RETRY";
|
|
3540
|
+
data: {
|
|
3541
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3542
|
+
attemptNumber: number;
|
|
3543
|
+
maxAttempts: number;
|
|
3544
|
+
previousHistoryId: string;
|
|
3545
|
+
originalFailureDate: Date;
|
|
3546
|
+
fields?: {
|
|
3547
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3548
|
+
autoFixable: boolean;
|
|
3549
|
+
error?: string | null | undefined;
|
|
3550
|
+
}[] | null | undefined;
|
|
3551
|
+
priceDropPayload?: {
|
|
3552
|
+
value: number;
|
|
3553
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3554
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3555
|
+
roundStep?: number | null | undefined;
|
|
3556
|
+
maxRounds?: number | null | undefined;
|
|
3557
|
+
} | null | undefined;
|
|
3558
|
+
};
|
|
3559
|
+
} | {
|
|
3560
|
+
type: "SCHEDULED";
|
|
3561
|
+
data: {
|
|
3562
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3563
|
+
publishingDate?: Date | null | undefined;
|
|
3564
|
+
};
|
|
3565
|
+
} | {
|
|
3566
|
+
type: "SCHEDULED_RETRY";
|
|
3567
|
+
data: {
|
|
3568
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3569
|
+
attemptNumber: number;
|
|
3570
|
+
maxAttempts: number;
|
|
3571
|
+
previousHistoryId: string;
|
|
3572
|
+
originalFailureDate: Date;
|
|
3573
|
+
fields?: {
|
|
3574
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3575
|
+
autoFixable: boolean;
|
|
3576
|
+
error?: string | null | undefined;
|
|
3577
|
+
}[] | null | undefined;
|
|
3578
|
+
};
|
|
3579
|
+
} | null | undefined;
|
|
3580
|
+
accountId?: string | null | undefined;
|
|
3581
|
+
requestId?: string | null | undefined;
|
|
3582
|
+
targetDate?: Date | null | undefined;
|
|
3583
|
+
} | null | undefined;
|
|
3584
|
+
platforms?: {
|
|
3585
|
+
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
3586
|
+
id: string;
|
|
3587
|
+
updatedAt: Date;
|
|
3588
|
+
createdAt: Date;
|
|
3589
|
+
accountId: string;
|
|
3590
|
+
itemId: string | number;
|
|
3591
|
+
platformId: string;
|
|
3592
|
+
platformUrl: string;
|
|
3593
|
+
platformPrice: number;
|
|
3594
|
+
publishedAt: Date;
|
|
3595
|
+
conversationId?: string | null | undefined;
|
|
3596
|
+
account?: {
|
|
3597
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
3598
|
+
userId: string | number;
|
|
3599
|
+
name: string;
|
|
3600
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3601
|
+
accountId: string;
|
|
3602
|
+
locale?: string | null | undefined;
|
|
3603
|
+
night?: {
|
|
3604
|
+
startsAt: Date;
|
|
3605
|
+
endsAt: Date;
|
|
3606
|
+
} | null | undefined;
|
|
3607
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
3608
|
+
ordersMaxDelay?: number | null | undefined;
|
|
3609
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
3610
|
+
} | null | undefined;
|
|
3611
|
+
viewsCount?: number | null | undefined;
|
|
3612
|
+
favoritesCount?: number | null | undefined;
|
|
3613
|
+
}[] | null | undefined;
|
|
3614
|
+
history?: {
|
|
3615
|
+
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";
|
|
3616
|
+
id: string;
|
|
3617
|
+
createdAt: Date;
|
|
3618
|
+
itemId: string | number;
|
|
3619
|
+
data?: {
|
|
3620
|
+
type: "ACTION_CANCELED";
|
|
3621
|
+
data: {
|
|
3622
|
+
targetItemHistoryId: string;
|
|
3623
|
+
};
|
|
3624
|
+
} | {
|
|
3625
|
+
type: "BUYER_PAID";
|
|
3626
|
+
data: {
|
|
3627
|
+
soldAccountId: string;
|
|
3628
|
+
soldOrderId: string;
|
|
3629
|
+
soldConversationId?: string | null | undefined;
|
|
3630
|
+
};
|
|
3631
|
+
} | {
|
|
3632
|
+
type: "DELIVERED";
|
|
3633
|
+
data: {
|
|
3634
|
+
soldAccountId: string;
|
|
3635
|
+
soldOrderId: string;
|
|
3636
|
+
soldConversationId?: string | null | undefined;
|
|
3637
|
+
};
|
|
3638
|
+
} | {
|
|
3639
|
+
type: "EMPTY";
|
|
3640
|
+
} | {
|
|
3641
|
+
type: "FAILED_TO_PUBLISH";
|
|
3642
|
+
data: {
|
|
3643
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3644
|
+
accountId?: string | null | undefined;
|
|
3645
|
+
reason?: string | null | undefined;
|
|
3646
|
+
fields?: {
|
|
3647
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3648
|
+
autoFixable: boolean;
|
|
3649
|
+
error?: string | null | undefined;
|
|
3650
|
+
}[] | null | undefined;
|
|
3651
|
+
itemHistoryId?: string | null | undefined;
|
|
3652
|
+
};
|
|
3653
|
+
} | {
|
|
3654
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
3655
|
+
data: {
|
|
3656
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3657
|
+
variations?: {
|
|
3658
|
+
fileId: string;
|
|
3659
|
+
seed: number;
|
|
3660
|
+
phash: string;
|
|
3661
|
+
distanceOriginal: number;
|
|
3662
|
+
originalImageUrl: string;
|
|
3663
|
+
originalPhash: string;
|
|
3664
|
+
}[] | null | undefined;
|
|
3665
|
+
originalPhashes?: string[] | null | undefined;
|
|
3666
|
+
};
|
|
3667
|
+
} | {
|
|
3668
|
+
type: "IMPORTED";
|
|
3669
|
+
data: {
|
|
3670
|
+
post: {
|
|
3671
|
+
platformId: string;
|
|
3672
|
+
post: {
|
|
3673
|
+
status?: string | null | undefined;
|
|
3674
|
+
price?: number | null | undefined;
|
|
3675
|
+
currency?: string | null | undefined;
|
|
3676
|
+
brand?: string | null | undefined;
|
|
3677
|
+
catalog?: string | null | undefined;
|
|
3678
|
+
catalogId?: number | null | undefined;
|
|
3679
|
+
colors?: string[] | null | undefined;
|
|
3680
|
+
colorIds?: number[] | null | undefined;
|
|
3681
|
+
description?: string | null | undefined;
|
|
3682
|
+
measurementLength?: number | null | undefined;
|
|
3683
|
+
measurementWidth?: number | null | undefined;
|
|
3684
|
+
packageSizeId?: number | null | undefined;
|
|
3685
|
+
photoUrls?: string[] | null | undefined;
|
|
3686
|
+
size?: string | null | undefined;
|
|
3687
|
+
sizeId?: number | null | undefined;
|
|
3688
|
+
statusId?: number | null | undefined;
|
|
3689
|
+
title?: string | null | undefined;
|
|
3690
|
+
isDraft?: boolean | null | undefined;
|
|
3691
|
+
isArchived?: boolean | null | undefined;
|
|
3692
|
+
availableQuantity?: number | null | undefined;
|
|
3693
|
+
material?: number[] | null | undefined;
|
|
3694
|
+
manufacturerLabelling?: string | null | undefined;
|
|
3695
|
+
labels?: string[] | null | undefined;
|
|
3696
|
+
};
|
|
3697
|
+
createdAt?: Date | null | undefined;
|
|
3698
|
+
platformUrl?: string | null | undefined;
|
|
3699
|
+
};
|
|
3700
|
+
};
|
|
3701
|
+
} | {
|
|
3702
|
+
type: "LIFECYCLE_COMPLETED";
|
|
3703
|
+
data: {
|
|
3704
|
+
accountId: string;
|
|
3705
|
+
};
|
|
3706
|
+
} | {
|
|
3707
|
+
type: "LIFECYCLE_STARTED";
|
|
3708
|
+
data: {
|
|
3709
|
+
accountId: string;
|
|
3710
|
+
caseId: string;
|
|
3711
|
+
};
|
|
3712
|
+
} | {
|
|
3713
|
+
type: "PUBLISHED";
|
|
3714
|
+
data: {
|
|
3715
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3716
|
+
};
|
|
3717
|
+
} | {
|
|
3718
|
+
type: "REPUBLISHING";
|
|
3719
|
+
data: {
|
|
3720
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3721
|
+
publishingDate?: Date | null | undefined;
|
|
3722
|
+
priceDropPayload?: {
|
|
3723
|
+
value: number;
|
|
3724
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3725
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3726
|
+
roundStep?: number | null | undefined;
|
|
3727
|
+
maxRounds?: number | null | undefined;
|
|
3728
|
+
} | null | undefined;
|
|
3729
|
+
isTransfer?: boolean | null | undefined;
|
|
3730
|
+
targetAccountId?: string | null | undefined;
|
|
3731
|
+
};
|
|
3732
|
+
} | {
|
|
3733
|
+
type: "REPUBLISHING_RETRY";
|
|
3734
|
+
data: {
|
|
3735
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3736
|
+
attemptNumber: number;
|
|
3737
|
+
maxAttempts: number;
|
|
3738
|
+
previousHistoryId: string;
|
|
3739
|
+
originalFailureDate: Date;
|
|
3740
|
+
fields?: {
|
|
3741
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3742
|
+
autoFixable: boolean;
|
|
3743
|
+
error?: string | null | undefined;
|
|
3744
|
+
}[] | null | undefined;
|
|
3745
|
+
priceDropPayload?: {
|
|
3746
|
+
value: number;
|
|
3747
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3748
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3749
|
+
roundStep?: number | null | undefined;
|
|
3750
|
+
maxRounds?: number | null | undefined;
|
|
3751
|
+
} | null | undefined;
|
|
3752
|
+
};
|
|
3753
|
+
} | {
|
|
3754
|
+
type: "SCHEDULED";
|
|
3755
|
+
data: {
|
|
3756
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3757
|
+
publishingDate?: Date | null | undefined;
|
|
3758
|
+
};
|
|
3759
|
+
} | {
|
|
3760
|
+
type: "SCHEDULED_RETRY";
|
|
3761
|
+
data: {
|
|
3762
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3763
|
+
attemptNumber: number;
|
|
3764
|
+
maxAttempts: number;
|
|
3765
|
+
previousHistoryId: string;
|
|
3766
|
+
originalFailureDate: Date;
|
|
3767
|
+
fields?: {
|
|
3768
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3769
|
+
autoFixable: boolean;
|
|
3770
|
+
error?: string | null | undefined;
|
|
3771
|
+
}[] | null | undefined;
|
|
3772
|
+
};
|
|
3773
|
+
} | null | undefined;
|
|
3774
|
+
accountId?: string | null | undefined;
|
|
3775
|
+
requestId?: string | null | undefined;
|
|
3776
|
+
targetDate?: Date | null | undefined;
|
|
3777
|
+
}[] | null | undefined;
|
|
3778
|
+
}, {
|
|
3779
|
+
userId: string | number;
|
|
3780
|
+
id: string | number;
|
|
3781
|
+
updatedAt: Date;
|
|
3782
|
+
name: string;
|
|
3783
|
+
createdAt: Date;
|
|
3784
|
+
sold: boolean;
|
|
3785
|
+
state?: number | null | undefined;
|
|
3786
|
+
colorIds?: number[] | null | undefined;
|
|
3787
|
+
description?: string | null | undefined;
|
|
3788
|
+
packageSizeId?: number | null | undefined;
|
|
3789
|
+
sizeId?: number | null | undefined;
|
|
3790
|
+
labels?: {
|
|
3791
|
+
itemId: string | number;
|
|
3792
|
+
labelId: string | number;
|
|
3793
|
+
label?: {
|
|
3794
|
+
id: string | number;
|
|
3795
|
+
name: string;
|
|
3796
|
+
createdAt: Date;
|
|
3797
|
+
isUserLabel: boolean;
|
|
3798
|
+
userId?: string | number | null | undefined;
|
|
3799
|
+
itemCount?: number | null | undefined;
|
|
3800
|
+
parentId?: unknown;
|
|
3801
|
+
} | null | undefined;
|
|
3802
|
+
}[] | null | undefined;
|
|
3803
|
+
files?: {
|
|
3804
|
+
itemId: string | number;
|
|
3805
|
+
fileId: string;
|
|
3806
|
+
index?: number | null | undefined;
|
|
3807
|
+
file?: {
|
|
3808
|
+
path: string;
|
|
3809
|
+
userId: string | number;
|
|
3810
|
+
id: string;
|
|
3811
|
+
createdAt: Date;
|
|
3812
|
+
signedUrl: string;
|
|
3813
|
+
} | null | undefined;
|
|
3814
|
+
}[] | null | undefined;
|
|
3815
|
+
fields?: {
|
|
3816
|
+
value: string;
|
|
3817
|
+
itemId: string | number;
|
|
3818
|
+
fieldId: string | number;
|
|
3819
|
+
}[] | null | undefined;
|
|
3820
|
+
sku?: string | null | undefined;
|
|
3821
|
+
categoryId?: number | null | undefined;
|
|
3822
|
+
brandId?: string | number | null | undefined;
|
|
3823
|
+
sex?: string | null | undefined;
|
|
3824
|
+
purchasePrice?: number | null | undefined;
|
|
3825
|
+
purchaseDate?: Date | null | undefined;
|
|
3826
|
+
purchasePlaceId?: string | number | null | undefined;
|
|
3827
|
+
purchased?: boolean | null | undefined;
|
|
3828
|
+
sellingPrice?: number | null | undefined;
|
|
3829
|
+
sellingDate?: Date | null | undefined;
|
|
3830
|
+
sellingPlaceId?: string | number | null | undefined;
|
|
3831
|
+
estimatedPrice?: number | null | undefined;
|
|
3832
|
+
fees?: {
|
|
3833
|
+
value: number;
|
|
3834
|
+
type: string;
|
|
3835
|
+
userId: string | number;
|
|
3836
|
+
id: string | number;
|
|
3837
|
+
updatedAt: Date;
|
|
3838
|
+
name: string;
|
|
3839
|
+
createdAt: Date;
|
|
3840
|
+
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
3841
|
+
startDate: Date;
|
|
3842
|
+
active: boolean;
|
|
3843
|
+
description?: string | null | undefined;
|
|
3844
|
+
itemId?: string | number | null | undefined;
|
|
3845
|
+
endDate?: Date | null | undefined;
|
|
3846
|
+
parentFeeId?: string | number | null | undefined;
|
|
3847
|
+
}[] | null | undefined;
|
|
3848
|
+
feesSum?: number | null | undefined;
|
|
3849
|
+
customerId?: string | number | null | undefined;
|
|
3850
|
+
customer?: {
|
|
3851
|
+
userId: string | number;
|
|
3852
|
+
id: string | number;
|
|
3853
|
+
email: string;
|
|
3854
|
+
firstName: string;
|
|
3855
|
+
lastName: string;
|
|
3856
|
+
birthDate: Date;
|
|
3857
|
+
idNumber: string;
|
|
3858
|
+
phone: string;
|
|
3859
|
+
iban: string;
|
|
3860
|
+
bic: string;
|
|
3861
|
+
phoneVerified: boolean;
|
|
3862
|
+
} | null | undefined;
|
|
3863
|
+
customerType?: string | null | undefined;
|
|
3864
|
+
customerPaid?: boolean | null | undefined;
|
|
3865
|
+
customerPaidDate?: Date | null | undefined;
|
|
3866
|
+
customerPaidType?: string | null | undefined;
|
|
3867
|
+
contractId?: string | number | null | undefined;
|
|
3868
|
+
lastHistory?: {
|
|
3869
|
+
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";
|
|
3870
|
+
id: string;
|
|
3871
|
+
createdAt: Date;
|
|
3872
|
+
itemId: string | number;
|
|
3873
|
+
data?: {
|
|
3874
|
+
type: "ACTION_CANCELED";
|
|
3875
|
+
data: {
|
|
3876
|
+
targetItemHistoryId: string;
|
|
3877
|
+
};
|
|
3878
|
+
} | {
|
|
3879
|
+
type: "BUYER_PAID";
|
|
3880
|
+
data: {
|
|
3881
|
+
soldAccountId: string;
|
|
3882
|
+
soldOrderId: string;
|
|
3883
|
+
soldConversationId?: string | null | undefined;
|
|
3884
|
+
};
|
|
3885
|
+
} | {
|
|
3886
|
+
type: "DELIVERED";
|
|
3887
|
+
data: {
|
|
3888
|
+
soldAccountId: string;
|
|
3889
|
+
soldOrderId: string;
|
|
3890
|
+
soldConversationId?: string | null | undefined;
|
|
3891
|
+
};
|
|
3892
|
+
} | {
|
|
3893
|
+
type: "EMPTY";
|
|
3894
|
+
} | {
|
|
3895
|
+
type: "FAILED_TO_PUBLISH";
|
|
3896
|
+
data: {
|
|
3897
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3898
|
+
accountId?: string | null | undefined;
|
|
3899
|
+
reason?: string | null | undefined;
|
|
3900
|
+
fields?: {
|
|
3901
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3902
|
+
autoFixable: boolean;
|
|
3903
|
+
error?: string | null | undefined;
|
|
3904
|
+
}[] | null | undefined;
|
|
3905
|
+
itemHistoryId?: string | null | undefined;
|
|
3906
|
+
};
|
|
3907
|
+
} | {
|
|
3908
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
3909
|
+
data: {
|
|
3910
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3911
|
+
variations?: {
|
|
3912
|
+
fileId: string;
|
|
3913
|
+
seed: number;
|
|
3914
|
+
phash: string;
|
|
3915
|
+
distanceOriginal: number;
|
|
3916
|
+
originalImageUrl: string;
|
|
3917
|
+
originalPhash: string;
|
|
3918
|
+
}[] | null | undefined;
|
|
3919
|
+
originalPhashes?: string[] | null | undefined;
|
|
3920
|
+
};
|
|
3921
|
+
} | {
|
|
3922
|
+
type: "IMPORTED";
|
|
3923
|
+
data: {
|
|
3924
|
+
post: {
|
|
3925
|
+
platformId: string;
|
|
3926
|
+
post: {
|
|
3927
|
+
status?: string | null | undefined;
|
|
3928
|
+
price?: number | null | undefined;
|
|
3929
|
+
currency?: string | null | undefined;
|
|
3930
|
+
brand?: string | null | undefined;
|
|
3931
|
+
catalog?: string | null | undefined;
|
|
3932
|
+
catalogId?: number | null | undefined;
|
|
3933
|
+
colors?: string[] | null | undefined;
|
|
3934
|
+
colorIds?: number[] | null | undefined;
|
|
3935
|
+
description?: string | null | undefined;
|
|
3936
|
+
measurementLength?: number | null | undefined;
|
|
3937
|
+
measurementWidth?: number | null | undefined;
|
|
3938
|
+
packageSizeId?: number | null | undefined;
|
|
3939
|
+
photoUrls?: string[] | null | undefined;
|
|
3940
|
+
size?: string | null | undefined;
|
|
3941
|
+
sizeId?: number | null | undefined;
|
|
3942
|
+
statusId?: number | null | undefined;
|
|
3943
|
+
title?: string | null | undefined;
|
|
3944
|
+
isDraft?: boolean | null | undefined;
|
|
3945
|
+
isArchived?: boolean | null | undefined;
|
|
3946
|
+
availableQuantity?: number | null | undefined;
|
|
3947
|
+
material?: number[] | null | undefined;
|
|
3948
|
+
manufacturerLabelling?: string | null | undefined;
|
|
3949
|
+
labels?: string[] | null | undefined;
|
|
3950
|
+
};
|
|
3951
|
+
createdAt?: Date | null | undefined;
|
|
3952
|
+
platformUrl?: string | null | undefined;
|
|
3953
|
+
};
|
|
3954
|
+
};
|
|
3955
|
+
} | {
|
|
3956
|
+
type: "LIFECYCLE_COMPLETED";
|
|
3957
|
+
data: {
|
|
3958
|
+
accountId: string;
|
|
3959
|
+
};
|
|
3960
|
+
} | {
|
|
3961
|
+
type: "LIFECYCLE_STARTED";
|
|
3962
|
+
data: {
|
|
3963
|
+
accountId: string;
|
|
3964
|
+
caseId: string;
|
|
3965
|
+
};
|
|
3966
|
+
} | {
|
|
3967
|
+
type: "PUBLISHED";
|
|
3968
|
+
data: {
|
|
3969
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3970
|
+
};
|
|
3971
|
+
} | {
|
|
3972
|
+
type: "REPUBLISHING";
|
|
3973
|
+
data: {
|
|
3974
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3975
|
+
publishingDate?: Date | null | undefined;
|
|
3976
|
+
priceDropPayload?: {
|
|
3977
|
+
value: number;
|
|
3978
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
3979
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
3980
|
+
roundStep?: number | null | undefined;
|
|
3981
|
+
maxRounds?: number | null | undefined;
|
|
3982
|
+
} | null | undefined;
|
|
3983
|
+
isTransfer?: boolean | null | undefined;
|
|
3984
|
+
targetAccountId?: string | null | undefined;
|
|
3985
|
+
};
|
|
3986
|
+
} | {
|
|
3987
|
+
type: "REPUBLISHING_RETRY";
|
|
3988
|
+
data: {
|
|
3989
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
3990
|
+
attemptNumber: number;
|
|
3991
|
+
maxAttempts: number;
|
|
3992
|
+
previousHistoryId: string;
|
|
3993
|
+
originalFailureDate: Date;
|
|
3994
|
+
fields?: {
|
|
3995
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
3996
|
+
autoFixable: boolean;
|
|
3997
|
+
error?: string | null | undefined;
|
|
3998
|
+
}[] | null | undefined;
|
|
3999
|
+
priceDropPayload?: {
|
|
4000
|
+
value: number;
|
|
4001
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
4002
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
4003
|
+
roundStep?: number | null | undefined;
|
|
4004
|
+
maxRounds?: number | null | undefined;
|
|
4005
|
+
} | null | undefined;
|
|
4006
|
+
};
|
|
4007
|
+
} | {
|
|
4008
|
+
type: "SCHEDULED";
|
|
4009
|
+
data: {
|
|
4010
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4011
|
+
publishingDate?: Date | null | undefined;
|
|
4012
|
+
};
|
|
4013
|
+
} | {
|
|
4014
|
+
type: "SCHEDULED_RETRY";
|
|
4015
|
+
data: {
|
|
4016
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4017
|
+
attemptNumber: number;
|
|
4018
|
+
maxAttempts: number;
|
|
4019
|
+
previousHistoryId: string;
|
|
4020
|
+
originalFailureDate: Date;
|
|
4021
|
+
fields?: {
|
|
4022
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
4023
|
+
autoFixable: boolean;
|
|
4024
|
+
error?: string | null | undefined;
|
|
4025
|
+
}[] | null | undefined;
|
|
4026
|
+
};
|
|
4027
|
+
} | null | undefined;
|
|
4028
|
+
accountId?: string | null | undefined;
|
|
4029
|
+
requestId?: string | null | undefined;
|
|
4030
|
+
targetDate?: Date | null | undefined;
|
|
4031
|
+
} | null | undefined;
|
|
4032
|
+
platforms?: {
|
|
4033
|
+
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
4034
|
+
id: string;
|
|
4035
|
+
updatedAt: Date;
|
|
4036
|
+
createdAt: Date;
|
|
4037
|
+
accountId: string;
|
|
2164
4038
|
itemId: string | number;
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
4039
|
+
platformId: string;
|
|
4040
|
+
platformUrl: string;
|
|
4041
|
+
platformPrice: number;
|
|
4042
|
+
publishedAt: Date;
|
|
4043
|
+
conversationId?: string | null | undefined;
|
|
4044
|
+
account?: {
|
|
4045
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
2169
4046
|
userId: string | number;
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
4047
|
+
name: string;
|
|
4048
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4049
|
+
accountId: string;
|
|
4050
|
+
locale?: string | null | undefined;
|
|
4051
|
+
night?: {
|
|
4052
|
+
startsAt: Date;
|
|
4053
|
+
endsAt: Date;
|
|
4054
|
+
} | null | undefined;
|
|
4055
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
4056
|
+
ordersMaxDelay?: number | null | undefined;
|
|
4057
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
2173
4058
|
} | null | undefined;
|
|
4059
|
+
viewsCount?: number | null | undefined;
|
|
4060
|
+
favoritesCount?: number | null | undefined;
|
|
2174
4061
|
}[] | null | undefined;
|
|
2175
|
-
|
|
2176
|
-
value: string;
|
|
2177
|
-
itemId: string | number;
|
|
2178
|
-
fieldId: string | number;
|
|
2179
|
-
}[] | null | undefined;
|
|
2180
|
-
sku?: string | null | undefined;
|
|
2181
|
-
categoryId?: number | null | undefined;
|
|
2182
|
-
brandId?: string | number | null | undefined;
|
|
2183
|
-
sex?: string | null | undefined;
|
|
2184
|
-
purchasePrice?: number | null | undefined;
|
|
2185
|
-
purchaseDate?: Date | null | undefined;
|
|
2186
|
-
purchasePlaceId?: string | number | null | undefined;
|
|
2187
|
-
purchased?: boolean | null | undefined;
|
|
2188
|
-
sellingPrice?: number | null | undefined;
|
|
2189
|
-
sellingDate?: Date | null | undefined;
|
|
2190
|
-
sellingPlaceId?: string | number | null | undefined;
|
|
2191
|
-
estimatedPrice?: number | null | undefined;
|
|
2192
|
-
fees?: {
|
|
2193
|
-
value: number;
|
|
2194
|
-
type: string;
|
|
2195
|
-
userId: string | number;
|
|
2196
|
-
id: string | number;
|
|
2197
|
-
updatedAt: Date;
|
|
2198
|
-
name: string;
|
|
2199
|
-
createdAt: Date;
|
|
2200
|
-
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
2201
|
-
startDate: Date;
|
|
2202
|
-
active: boolean;
|
|
2203
|
-
description?: string | null | undefined;
|
|
2204
|
-
itemId?: string | number | null | undefined;
|
|
2205
|
-
endDate?: Date | null | undefined;
|
|
2206
|
-
parentFeeId?: string | number | null | undefined;
|
|
2207
|
-
}[] | null | undefined;
|
|
2208
|
-
feesSum?: number | null | undefined;
|
|
2209
|
-
customerId?: string | number | null | undefined;
|
|
2210
|
-
customer?: {
|
|
2211
|
-
userId: string | number;
|
|
2212
|
-
id: string | number;
|
|
2213
|
-
email: string;
|
|
2214
|
-
firstName: string;
|
|
2215
|
-
lastName: string;
|
|
2216
|
-
birthDate: Date;
|
|
2217
|
-
idNumber: string;
|
|
2218
|
-
phone: string;
|
|
2219
|
-
iban: string;
|
|
2220
|
-
bic: string;
|
|
2221
|
-
phoneVerified: boolean;
|
|
2222
|
-
} | null | undefined;
|
|
2223
|
-
customerType?: string | null | undefined;
|
|
2224
|
-
customerPaid?: boolean | null | undefined;
|
|
2225
|
-
customerPaidDate?: Date | null | undefined;
|
|
2226
|
-
customerPaidType?: string | null | undefined;
|
|
2227
|
-
contractId?: string | number | null | undefined;
|
|
2228
|
-
lastHistory?: {
|
|
4062
|
+
history?: {
|
|
2229
4063
|
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";
|
|
2230
4064
|
id: string;
|
|
2231
4065
|
createdAt: Date;
|
|
@@ -2388,38 +4222,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
2388
4222
|
accountId?: string | null | undefined;
|
|
2389
4223
|
requestId?: string | null | undefined;
|
|
2390
4224
|
targetDate?: Date | null | undefined;
|
|
2391
|
-
} | null | undefined;
|
|
2392
|
-
platforms?: {
|
|
2393
|
-
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
2394
|
-
id: string;
|
|
2395
|
-
updatedAt: Date;
|
|
2396
|
-
createdAt: Date;
|
|
2397
|
-
accountId: string;
|
|
2398
|
-
itemId: string | number;
|
|
2399
|
-
platformId: string;
|
|
2400
|
-
platformUrl: string;
|
|
2401
|
-
platformPrice: number;
|
|
2402
|
-
publishedAt: Date;
|
|
2403
|
-
conversationId?: string | null | undefined;
|
|
2404
|
-
account?: {
|
|
2405
|
-
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
2406
|
-
userId: string | number;
|
|
2407
|
-
name: string;
|
|
2408
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2409
|
-
accountId: string;
|
|
2410
|
-
locale?: string | null | undefined;
|
|
2411
|
-
night?: {
|
|
2412
|
-
startsAt: Date;
|
|
2413
|
-
endsAt: Date;
|
|
2414
|
-
} | null | undefined;
|
|
2415
|
-
favoritesMaxDelay?: number | null | undefined;
|
|
2416
|
-
ordersMaxDelay?: number | null | undefined;
|
|
2417
|
-
conversationsMaxDelay?: number | null | undefined;
|
|
2418
|
-
} | null | undefined;
|
|
2419
|
-
viewsCount?: number | null | undefined;
|
|
2420
|
-
favoritesCount?: number | null | undefined;
|
|
2421
4225
|
}[] | null | undefined;
|
|
2422
|
-
}
|
|
4226
|
+
}>, "many">;
|
|
4227
|
+
}, "strip", z.ZodTypeAny, {
|
|
4228
|
+
items: {
|
|
2423
4229
|
userId: string | number;
|
|
2424
4230
|
id: string | number;
|
|
2425
4231
|
updatedAt: Date;
|
|
@@ -2666,136 +4472,44 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
2666
4472
|
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
2667
4473
|
autoFixable: boolean;
|
|
2668
4474
|
error?: string | null | undefined;
|
|
2669
|
-
}[] | null | undefined;
|
|
2670
|
-
};
|
|
2671
|
-
} | null | undefined;
|
|
2672
|
-
accountId?: string | null | undefined;
|
|
2673
|
-
requestId?: string | null | undefined;
|
|
2674
|
-
targetDate?: Date | null | undefined;
|
|
2675
|
-
} | null | undefined;
|
|
2676
|
-
platforms?: {
|
|
2677
|
-
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
2678
|
-
id: string;
|
|
2679
|
-
updatedAt: Date;
|
|
2680
|
-
createdAt: Date;
|
|
2681
|
-
accountId: string;
|
|
2682
|
-
itemId: string | number;
|
|
2683
|
-
platformId: string;
|
|
2684
|
-
platformUrl: string;
|
|
2685
|
-
platformPrice: number;
|
|
2686
|
-
publishedAt: Date;
|
|
2687
|
-
conversationId?: string | null | undefined;
|
|
2688
|
-
account?: {
|
|
2689
|
-
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
2690
|
-
userId: string | number;
|
|
2691
|
-
name: string;
|
|
2692
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2693
|
-
accountId: string;
|
|
2694
|
-
locale?: string | null | undefined;
|
|
2695
|
-
night?: {
|
|
2696
|
-
startsAt: Date;
|
|
2697
|
-
endsAt: Date;
|
|
2698
|
-
} | null | undefined;
|
|
2699
|
-
favoritesMaxDelay?: number | null | undefined;
|
|
2700
|
-
ordersMaxDelay?: number | null | undefined;
|
|
2701
|
-
conversationsMaxDelay?: number | null | undefined;
|
|
2702
|
-
} | null | undefined;
|
|
2703
|
-
viewsCount?: number | null | undefined;
|
|
2704
|
-
favoritesCount?: number | null | undefined;
|
|
2705
|
-
}[] | null | undefined;
|
|
2706
|
-
}>, "many">;
|
|
2707
|
-
}, "strip", z.ZodTypeAny, {
|
|
2708
|
-
items: {
|
|
2709
|
-
userId: string | number;
|
|
2710
|
-
id: string | number;
|
|
2711
|
-
updatedAt: Date;
|
|
2712
|
-
name: string;
|
|
2713
|
-
createdAt: Date;
|
|
2714
|
-
sold: boolean;
|
|
2715
|
-
state?: number | null | undefined;
|
|
2716
|
-
colorIds?: number[] | null | undefined;
|
|
2717
|
-
description?: string | null | undefined;
|
|
2718
|
-
packageSizeId?: number | null | undefined;
|
|
2719
|
-
sizeId?: number | null | undefined;
|
|
2720
|
-
labels?: {
|
|
2721
|
-
itemId: string | number;
|
|
2722
|
-
labelId: string | number;
|
|
2723
|
-
label?: {
|
|
2724
|
-
id: string | number;
|
|
2725
|
-
name: string;
|
|
2726
|
-
createdAt: Date;
|
|
2727
|
-
isUserLabel: boolean;
|
|
2728
|
-
userId?: string | number | null | undefined;
|
|
2729
|
-
itemCount?: number | null | undefined;
|
|
2730
|
-
parentId?: unknown;
|
|
2731
|
-
} | null | undefined;
|
|
2732
|
-
}[] | null | undefined;
|
|
2733
|
-
files?: {
|
|
2734
|
-
itemId: string | number;
|
|
2735
|
-
fileId: string;
|
|
2736
|
-
index?: number | null | undefined;
|
|
2737
|
-
file?: {
|
|
2738
|
-
path: string;
|
|
2739
|
-
userId: string | number;
|
|
2740
|
-
id: string;
|
|
2741
|
-
createdAt: Date;
|
|
2742
|
-
signedUrl: string;
|
|
2743
|
-
} | null | undefined;
|
|
2744
|
-
}[] | null | undefined;
|
|
2745
|
-
fields?: {
|
|
2746
|
-
value: string;
|
|
2747
|
-
itemId: string | number;
|
|
2748
|
-
fieldId: string | number;
|
|
2749
|
-
}[] | null | undefined;
|
|
2750
|
-
sku?: string | null | undefined;
|
|
2751
|
-
categoryId?: number | null | undefined;
|
|
2752
|
-
brandId?: string | number | null | undefined;
|
|
2753
|
-
sex?: string | null | undefined;
|
|
2754
|
-
purchasePrice?: number | null | undefined;
|
|
2755
|
-
purchaseDate?: Date | null | undefined;
|
|
2756
|
-
purchasePlaceId?: string | number | null | undefined;
|
|
2757
|
-
purchased?: boolean | null | undefined;
|
|
2758
|
-
sellingPrice?: number | null | undefined;
|
|
2759
|
-
sellingDate?: Date | null | undefined;
|
|
2760
|
-
sellingPlaceId?: string | number | null | undefined;
|
|
2761
|
-
estimatedPrice?: number | null | undefined;
|
|
2762
|
-
fees?: {
|
|
2763
|
-
value: number;
|
|
2764
|
-
type: string;
|
|
2765
|
-
userId: string | number;
|
|
2766
|
-
id: string | number;
|
|
4475
|
+
}[] | null | undefined;
|
|
4476
|
+
};
|
|
4477
|
+
} | null | undefined;
|
|
4478
|
+
accountId?: string | null | undefined;
|
|
4479
|
+
requestId?: string | null | undefined;
|
|
4480
|
+
targetDate?: Date | null | undefined;
|
|
4481
|
+
} | null | undefined;
|
|
4482
|
+
platforms?: {
|
|
4483
|
+
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
4484
|
+
id: string;
|
|
2767
4485
|
updatedAt: Date;
|
|
2768
|
-
name: string;
|
|
2769
4486
|
createdAt: Date;
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
4487
|
+
accountId: string;
|
|
4488
|
+
itemId: string | number;
|
|
4489
|
+
platformId: string;
|
|
4490
|
+
platformUrl: string;
|
|
4491
|
+
platformPrice: number;
|
|
4492
|
+
publishedAt: Date;
|
|
4493
|
+
conversationId?: string | null | undefined;
|
|
4494
|
+
account?: {
|
|
4495
|
+
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
4496
|
+
userId: string | number;
|
|
4497
|
+
name: string;
|
|
4498
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
4499
|
+
accountId: string;
|
|
4500
|
+
locale?: string | null | undefined;
|
|
4501
|
+
night?: {
|
|
4502
|
+
startsAt: Date;
|
|
4503
|
+
endsAt: Date;
|
|
4504
|
+
} | null | undefined;
|
|
4505
|
+
favoritesMaxDelay?: number | null | undefined;
|
|
4506
|
+
ordersMaxDelay?: number | null | undefined;
|
|
4507
|
+
conversationsMaxDelay?: number | null | undefined;
|
|
4508
|
+
} | null | undefined;
|
|
4509
|
+
viewsCount?: number | null | undefined;
|
|
4510
|
+
favoritesCount?: number | null | undefined;
|
|
2777
4511
|
}[] | null | undefined;
|
|
2778
|
-
|
|
2779
|
-
customerId?: string | number | null | undefined;
|
|
2780
|
-
customer?: {
|
|
2781
|
-
userId: string | number;
|
|
2782
|
-
id: string | number;
|
|
2783
|
-
email: string;
|
|
2784
|
-
firstName: string;
|
|
2785
|
-
lastName: string;
|
|
2786
|
-
birthDate: Date;
|
|
2787
|
-
idNumber: string;
|
|
2788
|
-
phone: string;
|
|
2789
|
-
iban: string;
|
|
2790
|
-
bic: string;
|
|
2791
|
-
phoneVerified: boolean;
|
|
2792
|
-
} | null | undefined;
|
|
2793
|
-
customerType?: string | null | undefined;
|
|
2794
|
-
customerPaid?: boolean | null | undefined;
|
|
2795
|
-
customerPaidDate?: Date | null | undefined;
|
|
2796
|
-
customerPaidType?: string | null | undefined;
|
|
2797
|
-
contractId?: string | number | null | undefined;
|
|
2798
|
-
lastHistory?: {
|
|
4512
|
+
history?: {
|
|
2799
4513
|
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";
|
|
2800
4514
|
id: string;
|
|
2801
4515
|
createdAt: Date;
|
|
@@ -2958,36 +4672,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
2958
4672
|
accountId?: string | null | undefined;
|
|
2959
4673
|
requestId?: string | null | undefined;
|
|
2960
4674
|
targetDate?: Date | null | undefined;
|
|
2961
|
-
} | null | undefined;
|
|
2962
|
-
platforms?: {
|
|
2963
|
-
status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
|
|
2964
|
-
id: string;
|
|
2965
|
-
updatedAt: Date;
|
|
2966
|
-
createdAt: Date;
|
|
2967
|
-
accountId: string;
|
|
2968
|
-
itemId: string | number;
|
|
2969
|
-
platformId: string;
|
|
2970
|
-
platformUrl: string;
|
|
2971
|
-
platformPrice: number;
|
|
2972
|
-
publishedAt: Date;
|
|
2973
|
-
conversationId?: string | null | undefined;
|
|
2974
|
-
account?: {
|
|
2975
|
-
status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
|
|
2976
|
-
userId: string | number;
|
|
2977
|
-
name: string;
|
|
2978
|
-
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
2979
|
-
accountId: string;
|
|
2980
|
-
locale?: string | null | undefined;
|
|
2981
|
-
night?: {
|
|
2982
|
-
startsAt: Date;
|
|
2983
|
-
endsAt: Date;
|
|
2984
|
-
} | null | undefined;
|
|
2985
|
-
favoritesMaxDelay?: number | null | undefined;
|
|
2986
|
-
ordersMaxDelay?: number | null | undefined;
|
|
2987
|
-
conversationsMaxDelay?: number | null | undefined;
|
|
2988
|
-
} | null | undefined;
|
|
2989
|
-
viewsCount?: number | null | undefined;
|
|
2990
|
-
favoritesCount?: number | null | undefined;
|
|
2991
4675
|
}[] | null | undefined;
|
|
2992
4676
|
}[];
|
|
2993
4677
|
order: {
|
|
@@ -3370,6 +5054,170 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
3370
5054
|
viewsCount?: number | null | undefined;
|
|
3371
5055
|
favoritesCount?: number | null | undefined;
|
|
3372
5056
|
}[] | null | undefined;
|
|
5057
|
+
history?: {
|
|
5058
|
+
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";
|
|
5059
|
+
id: string;
|
|
5060
|
+
createdAt: Date;
|
|
5061
|
+
itemId: string | number;
|
|
5062
|
+
data?: {
|
|
5063
|
+
type: "ACTION_CANCELED";
|
|
5064
|
+
data: {
|
|
5065
|
+
targetItemHistoryId: string;
|
|
5066
|
+
};
|
|
5067
|
+
} | {
|
|
5068
|
+
type: "BUYER_PAID";
|
|
5069
|
+
data: {
|
|
5070
|
+
soldAccountId: string;
|
|
5071
|
+
soldOrderId: string;
|
|
5072
|
+
soldConversationId?: string | null | undefined;
|
|
5073
|
+
};
|
|
5074
|
+
} | {
|
|
5075
|
+
type: "DELIVERED";
|
|
5076
|
+
data: {
|
|
5077
|
+
soldAccountId: string;
|
|
5078
|
+
soldOrderId: string;
|
|
5079
|
+
soldConversationId?: string | null | undefined;
|
|
5080
|
+
};
|
|
5081
|
+
} | {
|
|
5082
|
+
type: "EMPTY";
|
|
5083
|
+
} | {
|
|
5084
|
+
type: "FAILED_TO_PUBLISH";
|
|
5085
|
+
data: {
|
|
5086
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5087
|
+
accountId?: string | null | undefined;
|
|
5088
|
+
reason?: string | null | undefined;
|
|
5089
|
+
fields?: {
|
|
5090
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
5091
|
+
autoFixable: boolean;
|
|
5092
|
+
error?: string | null | undefined;
|
|
5093
|
+
}[] | null | undefined;
|
|
5094
|
+
itemHistoryId?: string | null | undefined;
|
|
5095
|
+
};
|
|
5096
|
+
} | {
|
|
5097
|
+
type: "IMAGE_PROCESSING_DONE";
|
|
5098
|
+
data: {
|
|
5099
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5100
|
+
variations?: {
|
|
5101
|
+
fileId: string;
|
|
5102
|
+
seed: number;
|
|
5103
|
+
phash: string;
|
|
5104
|
+
distanceOriginal: number;
|
|
5105
|
+
originalImageUrl: string;
|
|
5106
|
+
originalPhash: string;
|
|
5107
|
+
}[] | null | undefined;
|
|
5108
|
+
originalPhashes?: string[] | null | undefined;
|
|
5109
|
+
};
|
|
5110
|
+
} | {
|
|
5111
|
+
type: "IMPORTED";
|
|
5112
|
+
data: {
|
|
5113
|
+
post: {
|
|
5114
|
+
platformId: string;
|
|
5115
|
+
post: {
|
|
5116
|
+
status?: string | null | undefined;
|
|
5117
|
+
price?: number | null | undefined;
|
|
5118
|
+
currency?: string | null | undefined;
|
|
5119
|
+
brand?: string | null | undefined;
|
|
5120
|
+
catalog?: string | null | undefined;
|
|
5121
|
+
catalogId?: number | null | undefined;
|
|
5122
|
+
colors?: string[] | null | undefined;
|
|
5123
|
+
colorIds?: number[] | null | undefined;
|
|
5124
|
+
description?: string | null | undefined;
|
|
5125
|
+
measurementLength?: number | null | undefined;
|
|
5126
|
+
measurementWidth?: number | null | undefined;
|
|
5127
|
+
packageSizeId?: number | null | undefined;
|
|
5128
|
+
photoUrls?: string[] | null | undefined;
|
|
5129
|
+
size?: string | null | undefined;
|
|
5130
|
+
sizeId?: number | null | undefined;
|
|
5131
|
+
statusId?: number | null | undefined;
|
|
5132
|
+
title?: string | null | undefined;
|
|
5133
|
+
isDraft?: boolean | null | undefined;
|
|
5134
|
+
isArchived?: boolean | null | undefined;
|
|
5135
|
+
availableQuantity?: number | null | undefined;
|
|
5136
|
+
material?: number[] | null | undefined;
|
|
5137
|
+
manufacturerLabelling?: string | null | undefined;
|
|
5138
|
+
labels?: string[] | null | undefined;
|
|
5139
|
+
};
|
|
5140
|
+
createdAt?: Date | null | undefined;
|
|
5141
|
+
platformUrl?: string | null | undefined;
|
|
5142
|
+
};
|
|
5143
|
+
};
|
|
5144
|
+
} | {
|
|
5145
|
+
type: "LIFECYCLE_COMPLETED";
|
|
5146
|
+
data: {
|
|
5147
|
+
accountId: string;
|
|
5148
|
+
};
|
|
5149
|
+
} | {
|
|
5150
|
+
type: "LIFECYCLE_STARTED";
|
|
5151
|
+
data: {
|
|
5152
|
+
accountId: string;
|
|
5153
|
+
caseId: string;
|
|
5154
|
+
};
|
|
5155
|
+
} | {
|
|
5156
|
+
type: "PUBLISHED";
|
|
5157
|
+
data: {
|
|
5158
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5159
|
+
};
|
|
5160
|
+
} | {
|
|
5161
|
+
type: "REPUBLISHING";
|
|
5162
|
+
data: {
|
|
5163
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5164
|
+
publishingDate?: Date | null | undefined;
|
|
5165
|
+
priceDropPayload?: {
|
|
5166
|
+
value: number;
|
|
5167
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
5168
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
5169
|
+
roundStep?: number | null | undefined;
|
|
5170
|
+
maxRounds?: number | null | undefined;
|
|
5171
|
+
} | null | undefined;
|
|
5172
|
+
isTransfer?: boolean | null | undefined;
|
|
5173
|
+
targetAccountId?: string | null | undefined;
|
|
5174
|
+
};
|
|
5175
|
+
} | {
|
|
5176
|
+
type: "REPUBLISHING_RETRY";
|
|
5177
|
+
data: {
|
|
5178
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5179
|
+
attemptNumber: number;
|
|
5180
|
+
maxAttempts: number;
|
|
5181
|
+
previousHistoryId: string;
|
|
5182
|
+
originalFailureDate: Date;
|
|
5183
|
+
fields?: {
|
|
5184
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
5185
|
+
autoFixable: boolean;
|
|
5186
|
+
error?: string | null | undefined;
|
|
5187
|
+
}[] | null | undefined;
|
|
5188
|
+
priceDropPayload?: {
|
|
5189
|
+
value: number;
|
|
5190
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
5191
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
5192
|
+
roundStep?: number | null | undefined;
|
|
5193
|
+
maxRounds?: number | null | undefined;
|
|
5194
|
+
} | null | undefined;
|
|
5195
|
+
};
|
|
5196
|
+
} | {
|
|
5197
|
+
type: "SCHEDULED";
|
|
5198
|
+
data: {
|
|
5199
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5200
|
+
publishingDate?: Date | null | undefined;
|
|
5201
|
+
};
|
|
5202
|
+
} | {
|
|
5203
|
+
type: "SCHEDULED_RETRY";
|
|
5204
|
+
data: {
|
|
5205
|
+
platform: "ETSY" | "SHOPIFY" | "VINTED";
|
|
5206
|
+
attemptNumber: number;
|
|
5207
|
+
maxAttempts: number;
|
|
5208
|
+
previousHistoryId: string;
|
|
5209
|
+
originalFailureDate: Date;
|
|
5210
|
+
fields?: {
|
|
5211
|
+
field: "TITLE" | "DESCRIPTION" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PRICE" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
|
|
5212
|
+
autoFixable: boolean;
|
|
5213
|
+
error?: string | null | undefined;
|
|
5214
|
+
}[] | null | undefined;
|
|
5215
|
+
};
|
|
5216
|
+
} | null | undefined;
|
|
5217
|
+
accountId?: string | null | undefined;
|
|
5218
|
+
requestId?: string | null | undefined;
|
|
5219
|
+
targetDate?: Date | null | undefined;
|
|
5220
|
+
}[] | null | undefined;
|
|
3373
5221
|
}[];
|
|
3374
5222
|
order: {
|
|
3375
5223
|
type: "SALE" | "PURCHASE";
|