controlresell 2.8.2 → 2.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/com/controlresell/models/users/ws/ResourceUpdate.d.ts +482 -3
- package/src/com/controlresell/models/users/ws/ResourceUpdate.d.ts.map +1 -1
- package/src/com/controlresell/models/users/ws/ResourceUpdate.js +2 -1
- package/src/com/controlresell/models/users/ws/ResourceUpdate.js.map +1 -1
- package/src/com/controlresell/models/users/ws/ResourceUpdate.ts +2 -1
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +964 -6
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts.map +1 -1
- package/src/com/controlresell/models/users/ws/UserWsPayload.js +2 -1
- package/src/com/controlresell/models/users/ws/UserWsPayload.js.map +1 -1
- package/src/com/controlresell/models/users/ws/UserWsPayload.ts +2 -1
- package/src/com/controlresell/models/users/ws/UserWsResourcePayload.d.ts +674 -0
- package/src/com/controlresell/models/users/ws/UserWsResourcePayload.d.ts.map +1 -0
- package/src/com/controlresell/models/users/ws/UserWsResourcePayload.js +67 -0
- package/src/com/controlresell/models/users/ws/UserWsResourcePayload.js.map +1 -0
- package/src/com/controlresell/models/users/ws/UserWsResourcePayload.ts +85 -0
- package/src/index.d.ts +1 -0
- package/src/index.d.ts.map +1 -1
- package/src/index.js +3 -1
- package/src/index.js.map +1 -1
- package/src/index.ts +1 -0
|
@@ -2270,16 +2270,495 @@ export declare const UserWsPayloadReconnectSchema: z.ZodObject<{
|
|
|
2270
2270
|
}>;
|
|
2271
2271
|
export type UserWsPayloadReconnect = z.infer<typeof UserWsPayloadReconnectSchema>;
|
|
2272
2272
|
export declare const UserWsPayloadResourceUpdatedSchema: z.ZodObject<{
|
|
2273
|
-
value: z.
|
|
2273
|
+
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2274
|
+
brand: z.ZodObject<{
|
|
2275
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2276
|
+
name: z.ZodString;
|
|
2277
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
2278
|
+
createdAt: z.ZodDate;
|
|
2279
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2280
|
+
}, "strip", z.ZodTypeAny, {
|
|
2281
|
+
id: string | number;
|
|
2282
|
+
createdAt: Date;
|
|
2283
|
+
name: string;
|
|
2284
|
+
itemCount?: number | null | undefined;
|
|
2285
|
+
userId?: string | number | null | undefined;
|
|
2286
|
+
}, {
|
|
2287
|
+
id: string | number;
|
|
2288
|
+
createdAt: Date;
|
|
2289
|
+
name: string;
|
|
2290
|
+
itemCount?: number | null | undefined;
|
|
2291
|
+
userId?: string | number | null | undefined;
|
|
2292
|
+
}>;
|
|
2293
|
+
type: z.ZodLiteral<"BRAND">;
|
|
2294
|
+
}, "strip", z.ZodTypeAny, {
|
|
2295
|
+
type: "BRAND";
|
|
2296
|
+
brand: {
|
|
2297
|
+
id: string | number;
|
|
2298
|
+
createdAt: Date;
|
|
2299
|
+
name: string;
|
|
2300
|
+
itemCount?: number | null | undefined;
|
|
2301
|
+
userId?: string | number | null | undefined;
|
|
2302
|
+
};
|
|
2303
|
+
}, {
|
|
2304
|
+
type: "BRAND";
|
|
2305
|
+
brand: {
|
|
2306
|
+
id: string | number;
|
|
2307
|
+
createdAt: Date;
|
|
2308
|
+
name: string;
|
|
2309
|
+
itemCount?: number | null | undefined;
|
|
2310
|
+
userId?: string | number | null | undefined;
|
|
2311
|
+
};
|
|
2312
|
+
}>, z.ZodObject<{
|
|
2313
|
+
catalog: z.ZodObject<{
|
|
2314
|
+
id: z.ZodNumber;
|
|
2315
|
+
multipleSizeGroupIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
2316
|
+
title: z.ZodString;
|
|
2317
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2318
|
+
}, "strip", z.ZodTypeAny, {
|
|
2319
|
+
id: number;
|
|
2320
|
+
title: string;
|
|
2321
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
2322
|
+
itemCount?: number | null | undefined;
|
|
2323
|
+
}, {
|
|
2324
|
+
id: number;
|
|
2325
|
+
title: string;
|
|
2326
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
2327
|
+
itemCount?: number | null | undefined;
|
|
2328
|
+
}>;
|
|
2329
|
+
type: z.ZodLiteral<"CATALOG">;
|
|
2330
|
+
}, "strip", z.ZodTypeAny, {
|
|
2331
|
+
type: "CATALOG";
|
|
2332
|
+
catalog: {
|
|
2333
|
+
id: number;
|
|
2334
|
+
title: string;
|
|
2335
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
2336
|
+
itemCount?: number | null | undefined;
|
|
2337
|
+
};
|
|
2338
|
+
}, {
|
|
2339
|
+
type: "CATALOG";
|
|
2340
|
+
catalog: {
|
|
2341
|
+
id: number;
|
|
2342
|
+
title: string;
|
|
2343
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
2344
|
+
itemCount?: number | null | undefined;
|
|
2345
|
+
};
|
|
2346
|
+
}>, z.ZodObject<{
|
|
2347
|
+
color: z.ZodObject<{
|
|
2348
|
+
id: z.ZodNumber;
|
|
2349
|
+
title: z.ZodString;
|
|
2350
|
+
}, "strip", z.ZodTypeAny, {
|
|
2351
|
+
id: number;
|
|
2352
|
+
title: string;
|
|
2353
|
+
}, {
|
|
2354
|
+
id: number;
|
|
2355
|
+
title: string;
|
|
2356
|
+
}>;
|
|
2357
|
+
type: z.ZodLiteral<"COLOR">;
|
|
2358
|
+
}, "strip", z.ZodTypeAny, {
|
|
2359
|
+
type: "COLOR";
|
|
2360
|
+
color: {
|
|
2361
|
+
id: number;
|
|
2362
|
+
title: string;
|
|
2363
|
+
};
|
|
2364
|
+
}, {
|
|
2365
|
+
type: "COLOR";
|
|
2366
|
+
color: {
|
|
2367
|
+
id: number;
|
|
2368
|
+
title: string;
|
|
2369
|
+
};
|
|
2370
|
+
}>, z.ZodObject<{
|
|
2371
|
+
favorite: z.ZodObject<{
|
|
2372
|
+
resourceId: z.ZodNumber;
|
|
2373
|
+
type: z.ZodEnum<["BRAND", "CATALOG", "PURCHASE_PRICE", "ESTIMATED_PRICE", "PURCHASE_PLACE", "SELLING_PLACE", "SIZE", "COLOR", "PACKAGE_SIZE", "CONDITION"]>;
|
|
2374
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2375
|
+
userId: z.ZodNumber;
|
|
2376
|
+
isSuggestion: z.ZodBoolean;
|
|
2377
|
+
}, "strip", z.ZodTypeAny, {
|
|
2378
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
2379
|
+
userId: number;
|
|
2380
|
+
resourceId: number;
|
|
2381
|
+
isSuggestion: boolean;
|
|
2382
|
+
value?: number | null | undefined;
|
|
2383
|
+
}, {
|
|
2384
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
2385
|
+
userId: number;
|
|
2386
|
+
resourceId: number;
|
|
2387
|
+
isSuggestion: boolean;
|
|
2388
|
+
value?: number | null | undefined;
|
|
2389
|
+
}>;
|
|
2390
|
+
type: z.ZodLiteral<"FAVORITE">;
|
|
2391
|
+
}, "strip", z.ZodTypeAny, {
|
|
2392
|
+
type: "FAVORITE";
|
|
2393
|
+
favorite: {
|
|
2394
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
2395
|
+
userId: number;
|
|
2396
|
+
resourceId: number;
|
|
2397
|
+
isSuggestion: boolean;
|
|
2398
|
+
value?: number | null | undefined;
|
|
2399
|
+
};
|
|
2400
|
+
}, {
|
|
2401
|
+
type: "FAVORITE";
|
|
2402
|
+
favorite: {
|
|
2403
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
2404
|
+
userId: number;
|
|
2405
|
+
resourceId: number;
|
|
2406
|
+
isSuggestion: boolean;
|
|
2407
|
+
value?: number | null | undefined;
|
|
2408
|
+
};
|
|
2409
|
+
}>, z.ZodObject<{
|
|
2410
|
+
historyType: z.ZodObject<{
|
|
2411
|
+
type: z.ZodEnum<["IMPORTED", "ARCHIVED", "UNARCHIVED", "PUBLISHED", "FAILED_TO_PUBLISH", "PUBLISH_CANCELED", "SCHEDULED", "REPUBLISHING", "REPUBLISHED", "UPDATING", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
|
|
2412
|
+
count: z.ZodNumber;
|
|
2413
|
+
}, "strip", z.ZodTypeAny, {
|
|
2414
|
+
type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
2415
|
+
count: number;
|
|
2416
|
+
}, {
|
|
2417
|
+
type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
2418
|
+
count: number;
|
|
2419
|
+
}>;
|
|
2420
|
+
type: z.ZodLiteral<"HISTORY_TYPE">;
|
|
2421
|
+
}, "strip", z.ZodTypeAny, {
|
|
2422
|
+
type: "HISTORY_TYPE";
|
|
2423
|
+
historyType: {
|
|
2424
|
+
type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
2425
|
+
count: number;
|
|
2426
|
+
};
|
|
2427
|
+
}, {
|
|
2428
|
+
type: "HISTORY_TYPE";
|
|
2429
|
+
historyType: {
|
|
2430
|
+
type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
2431
|
+
count: number;
|
|
2432
|
+
};
|
|
2433
|
+
}>, z.ZodObject<{
|
|
2434
|
+
label: z.ZodObject<{
|
|
2435
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2436
|
+
name: z.ZodString;
|
|
2437
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
2438
|
+
isUserLabel: z.ZodBoolean;
|
|
2439
|
+
createdAt: z.ZodDate;
|
|
2440
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2441
|
+
}, "strip", z.ZodTypeAny, {
|
|
2442
|
+
id: string | number;
|
|
2443
|
+
createdAt: Date;
|
|
2444
|
+
name: string;
|
|
2445
|
+
isUserLabel: boolean;
|
|
2446
|
+
itemCount?: number | null | undefined;
|
|
2447
|
+
userId?: string | number | null | undefined;
|
|
2448
|
+
}, {
|
|
2449
|
+
id: string | number;
|
|
2450
|
+
createdAt: Date;
|
|
2451
|
+
name: string;
|
|
2452
|
+
isUserLabel: boolean;
|
|
2453
|
+
itemCount?: number | null | undefined;
|
|
2454
|
+
userId?: string | number | null | undefined;
|
|
2455
|
+
}>;
|
|
2456
|
+
type: z.ZodLiteral<"LABEL">;
|
|
2457
|
+
}, "strip", z.ZodTypeAny, {
|
|
2458
|
+
type: "LABEL";
|
|
2459
|
+
label: {
|
|
2460
|
+
id: string | number;
|
|
2461
|
+
createdAt: Date;
|
|
2462
|
+
name: string;
|
|
2463
|
+
isUserLabel: boolean;
|
|
2464
|
+
itemCount?: number | null | undefined;
|
|
2465
|
+
userId?: string | number | null | undefined;
|
|
2466
|
+
};
|
|
2467
|
+
}, {
|
|
2468
|
+
type: "LABEL";
|
|
2469
|
+
label: {
|
|
2470
|
+
id: string | number;
|
|
2471
|
+
createdAt: Date;
|
|
2472
|
+
name: string;
|
|
2473
|
+
isUserLabel: boolean;
|
|
2474
|
+
itemCount?: number | null | undefined;
|
|
2475
|
+
userId?: string | number | null | undefined;
|
|
2476
|
+
};
|
|
2477
|
+
}>, z.ZodObject<{
|
|
2478
|
+
packageSize: z.ZodObject<{
|
|
2479
|
+
id: z.ZodNumber;
|
|
2480
|
+
title: z.ZodString;
|
|
2481
|
+
weightDescription: z.ZodString;
|
|
2482
|
+
}, "strip", z.ZodTypeAny, {
|
|
2483
|
+
id: number;
|
|
2484
|
+
title: string;
|
|
2485
|
+
weightDescription: string;
|
|
2486
|
+
}, {
|
|
2487
|
+
id: number;
|
|
2488
|
+
title: string;
|
|
2489
|
+
weightDescription: string;
|
|
2490
|
+
}>;
|
|
2491
|
+
type: z.ZodLiteral<"PACKAGE_SIZE">;
|
|
2492
|
+
}, "strip", z.ZodTypeAny, {
|
|
2493
|
+
type: "PACKAGE_SIZE";
|
|
2494
|
+
packageSize: {
|
|
2495
|
+
id: number;
|
|
2496
|
+
title: string;
|
|
2497
|
+
weightDescription: string;
|
|
2498
|
+
};
|
|
2499
|
+
}, {
|
|
2500
|
+
type: "PACKAGE_SIZE";
|
|
2501
|
+
packageSize: {
|
|
2502
|
+
id: number;
|
|
2503
|
+
title: string;
|
|
2504
|
+
weightDescription: string;
|
|
2505
|
+
};
|
|
2506
|
+
}>, z.ZodObject<{
|
|
2507
|
+
place: z.ZodObject<{
|
|
2508
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2509
|
+
name: z.ZodString;
|
|
2510
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
2511
|
+
createdAt: z.ZodDate;
|
|
2512
|
+
}, "strip", z.ZodTypeAny, {
|
|
2513
|
+
id: string | number;
|
|
2514
|
+
createdAt: Date;
|
|
2515
|
+
name: string;
|
|
2516
|
+
userId?: string | number | null | undefined;
|
|
2517
|
+
}, {
|
|
2518
|
+
id: string | number;
|
|
2519
|
+
createdAt: Date;
|
|
2520
|
+
name: string;
|
|
2521
|
+
userId?: string | number | null | undefined;
|
|
2522
|
+
}>;
|
|
2523
|
+
type: z.ZodLiteral<"PLACE">;
|
|
2524
|
+
}, "strip", z.ZodTypeAny, {
|
|
2525
|
+
type: "PLACE";
|
|
2526
|
+
place: {
|
|
2527
|
+
id: string | number;
|
|
2528
|
+
createdAt: Date;
|
|
2529
|
+
name: string;
|
|
2530
|
+
userId?: string | number | null | undefined;
|
|
2531
|
+
};
|
|
2532
|
+
}, {
|
|
2533
|
+
type: "PLACE";
|
|
2534
|
+
place: {
|
|
2535
|
+
id: string | number;
|
|
2536
|
+
createdAt: Date;
|
|
2537
|
+
name: string;
|
|
2538
|
+
userId?: string | number | null | undefined;
|
|
2539
|
+
};
|
|
2540
|
+
}>, z.ZodObject<{
|
|
2541
|
+
size: z.ZodObject<{
|
|
2542
|
+
id: z.ZodNumber;
|
|
2543
|
+
title: z.ZodString;
|
|
2544
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2545
|
+
}, "strip", z.ZodTypeAny, {
|
|
2546
|
+
id: number;
|
|
2547
|
+
title: string;
|
|
2548
|
+
itemCount?: number | null | undefined;
|
|
2549
|
+
}, {
|
|
2550
|
+
id: number;
|
|
2551
|
+
title: string;
|
|
2552
|
+
itemCount?: number | null | undefined;
|
|
2553
|
+
}>;
|
|
2554
|
+
type: z.ZodLiteral<"SIZE">;
|
|
2555
|
+
}, "strip", z.ZodTypeAny, {
|
|
2556
|
+
type: "SIZE";
|
|
2557
|
+
size: {
|
|
2558
|
+
id: number;
|
|
2559
|
+
title: string;
|
|
2560
|
+
itemCount?: number | null | undefined;
|
|
2561
|
+
};
|
|
2562
|
+
}, {
|
|
2563
|
+
type: "SIZE";
|
|
2564
|
+
size: {
|
|
2565
|
+
id: number;
|
|
2566
|
+
title: string;
|
|
2567
|
+
itemCount?: number | null | undefined;
|
|
2568
|
+
};
|
|
2569
|
+
}>, z.ZodObject<{
|
|
2570
|
+
status: z.ZodObject<{
|
|
2571
|
+
id: z.ZodNumber;
|
|
2572
|
+
title: z.ZodString;
|
|
2573
|
+
description: z.ZodString;
|
|
2574
|
+
}, "strip", z.ZodTypeAny, {
|
|
2575
|
+
id: number;
|
|
2576
|
+
title: string;
|
|
2577
|
+
description: string;
|
|
2578
|
+
}, {
|
|
2579
|
+
id: number;
|
|
2580
|
+
title: string;
|
|
2581
|
+
description: string;
|
|
2582
|
+
}>;
|
|
2583
|
+
type: z.ZodLiteral<"STATUS">;
|
|
2584
|
+
}, "strip", z.ZodTypeAny, {
|
|
2585
|
+
type: "STATUS";
|
|
2586
|
+
status: {
|
|
2587
|
+
id: number;
|
|
2588
|
+
title: string;
|
|
2589
|
+
description: string;
|
|
2590
|
+
};
|
|
2591
|
+
}, {
|
|
2592
|
+
type: "STATUS";
|
|
2593
|
+
status: {
|
|
2594
|
+
id: number;
|
|
2595
|
+
title: string;
|
|
2596
|
+
description: string;
|
|
2597
|
+
};
|
|
2598
|
+
}>]>;
|
|
2274
2599
|
deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2275
2600
|
type: z.ZodLiteral<"RESOURCE">;
|
|
2276
2601
|
}, "strip", z.ZodTypeAny, {
|
|
2602
|
+
value: {
|
|
2603
|
+
type: "BRAND";
|
|
2604
|
+
brand: {
|
|
2605
|
+
id: string | number;
|
|
2606
|
+
createdAt: Date;
|
|
2607
|
+
name: string;
|
|
2608
|
+
itemCount?: number | null | undefined;
|
|
2609
|
+
userId?: string | number | null | undefined;
|
|
2610
|
+
};
|
|
2611
|
+
} | {
|
|
2612
|
+
type: "CATALOG";
|
|
2613
|
+
catalog: {
|
|
2614
|
+
id: number;
|
|
2615
|
+
title: string;
|
|
2616
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
2617
|
+
itemCount?: number | null | undefined;
|
|
2618
|
+
};
|
|
2619
|
+
} | {
|
|
2620
|
+
type: "COLOR";
|
|
2621
|
+
color: {
|
|
2622
|
+
id: number;
|
|
2623
|
+
title: string;
|
|
2624
|
+
};
|
|
2625
|
+
} | {
|
|
2626
|
+
type: "FAVORITE";
|
|
2627
|
+
favorite: {
|
|
2628
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
2629
|
+
userId: number;
|
|
2630
|
+
resourceId: number;
|
|
2631
|
+
isSuggestion: boolean;
|
|
2632
|
+
value?: number | null | undefined;
|
|
2633
|
+
};
|
|
2634
|
+
} | {
|
|
2635
|
+
type: "HISTORY_TYPE";
|
|
2636
|
+
historyType: {
|
|
2637
|
+
type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
2638
|
+
count: number;
|
|
2639
|
+
};
|
|
2640
|
+
} | {
|
|
2641
|
+
type: "LABEL";
|
|
2642
|
+
label: {
|
|
2643
|
+
id: string | number;
|
|
2644
|
+
createdAt: Date;
|
|
2645
|
+
name: string;
|
|
2646
|
+
isUserLabel: boolean;
|
|
2647
|
+
itemCount?: number | null | undefined;
|
|
2648
|
+
userId?: string | number | null | undefined;
|
|
2649
|
+
};
|
|
2650
|
+
} | {
|
|
2651
|
+
type: "PACKAGE_SIZE";
|
|
2652
|
+
packageSize: {
|
|
2653
|
+
id: number;
|
|
2654
|
+
title: string;
|
|
2655
|
+
weightDescription: string;
|
|
2656
|
+
};
|
|
2657
|
+
} | {
|
|
2658
|
+
type: "PLACE";
|
|
2659
|
+
place: {
|
|
2660
|
+
id: string | number;
|
|
2661
|
+
createdAt: Date;
|
|
2662
|
+
name: string;
|
|
2663
|
+
userId?: string | number | null | undefined;
|
|
2664
|
+
};
|
|
2665
|
+
} | {
|
|
2666
|
+
type: "SIZE";
|
|
2667
|
+
size: {
|
|
2668
|
+
id: number;
|
|
2669
|
+
title: string;
|
|
2670
|
+
itemCount?: number | null | undefined;
|
|
2671
|
+
};
|
|
2672
|
+
} | {
|
|
2673
|
+
type: "STATUS";
|
|
2674
|
+
status: {
|
|
2675
|
+
id: number;
|
|
2676
|
+
title: string;
|
|
2677
|
+
description: string;
|
|
2678
|
+
};
|
|
2679
|
+
};
|
|
2277
2680
|
type: "RESOURCE";
|
|
2278
|
-
value?: unknown;
|
|
2279
2681
|
deleted?: boolean | null | undefined;
|
|
2280
2682
|
}, {
|
|
2683
|
+
value: {
|
|
2684
|
+
type: "BRAND";
|
|
2685
|
+
brand: {
|
|
2686
|
+
id: string | number;
|
|
2687
|
+
createdAt: Date;
|
|
2688
|
+
name: string;
|
|
2689
|
+
itemCount?: number | null | undefined;
|
|
2690
|
+
userId?: string | number | null | undefined;
|
|
2691
|
+
};
|
|
2692
|
+
} | {
|
|
2693
|
+
type: "CATALOG";
|
|
2694
|
+
catalog: {
|
|
2695
|
+
id: number;
|
|
2696
|
+
title: string;
|
|
2697
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
2698
|
+
itemCount?: number | null | undefined;
|
|
2699
|
+
};
|
|
2700
|
+
} | {
|
|
2701
|
+
type: "COLOR";
|
|
2702
|
+
color: {
|
|
2703
|
+
id: number;
|
|
2704
|
+
title: string;
|
|
2705
|
+
};
|
|
2706
|
+
} | {
|
|
2707
|
+
type: "FAVORITE";
|
|
2708
|
+
favorite: {
|
|
2709
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
2710
|
+
userId: number;
|
|
2711
|
+
resourceId: number;
|
|
2712
|
+
isSuggestion: boolean;
|
|
2713
|
+
value?: number | null | undefined;
|
|
2714
|
+
};
|
|
2715
|
+
} | {
|
|
2716
|
+
type: "HISTORY_TYPE";
|
|
2717
|
+
historyType: {
|
|
2718
|
+
type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
2719
|
+
count: number;
|
|
2720
|
+
};
|
|
2721
|
+
} | {
|
|
2722
|
+
type: "LABEL";
|
|
2723
|
+
label: {
|
|
2724
|
+
id: string | number;
|
|
2725
|
+
createdAt: Date;
|
|
2726
|
+
name: string;
|
|
2727
|
+
isUserLabel: boolean;
|
|
2728
|
+
itemCount?: number | null | undefined;
|
|
2729
|
+
userId?: string | number | null | undefined;
|
|
2730
|
+
};
|
|
2731
|
+
} | {
|
|
2732
|
+
type: "PACKAGE_SIZE";
|
|
2733
|
+
packageSize: {
|
|
2734
|
+
id: number;
|
|
2735
|
+
title: string;
|
|
2736
|
+
weightDescription: string;
|
|
2737
|
+
};
|
|
2738
|
+
} | {
|
|
2739
|
+
type: "PLACE";
|
|
2740
|
+
place: {
|
|
2741
|
+
id: string | number;
|
|
2742
|
+
createdAt: Date;
|
|
2743
|
+
name: string;
|
|
2744
|
+
userId?: string | number | null | undefined;
|
|
2745
|
+
};
|
|
2746
|
+
} | {
|
|
2747
|
+
type: "SIZE";
|
|
2748
|
+
size: {
|
|
2749
|
+
id: number;
|
|
2750
|
+
title: string;
|
|
2751
|
+
itemCount?: number | null | undefined;
|
|
2752
|
+
};
|
|
2753
|
+
} | {
|
|
2754
|
+
type: "STATUS";
|
|
2755
|
+
status: {
|
|
2756
|
+
id: number;
|
|
2757
|
+
title: string;
|
|
2758
|
+
description: string;
|
|
2759
|
+
};
|
|
2760
|
+
};
|
|
2281
2761
|
type: "RESOURCE";
|
|
2282
|
-
value?: unknown;
|
|
2283
2762
|
deleted?: boolean | null | undefined;
|
|
2284
2763
|
}>;
|
|
2285
2764
|
export type UserWsPayloadResourceUpdated = z.infer<typeof UserWsPayloadResourceUpdatedSchema>;
|
|
@@ -4581,16 +5060,495 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4581
5060
|
type: "RECONNECT";
|
|
4582
5061
|
accountId: string;
|
|
4583
5062
|
}>, z.ZodObject<{
|
|
4584
|
-
value: z.
|
|
5063
|
+
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5064
|
+
brand: z.ZodObject<{
|
|
5065
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
5066
|
+
name: z.ZodString;
|
|
5067
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
5068
|
+
createdAt: z.ZodDate;
|
|
5069
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5070
|
+
}, "strip", z.ZodTypeAny, {
|
|
5071
|
+
id: string | number;
|
|
5072
|
+
createdAt: Date;
|
|
5073
|
+
name: string;
|
|
5074
|
+
itemCount?: number | null | undefined;
|
|
5075
|
+
userId?: string | number | null | undefined;
|
|
5076
|
+
}, {
|
|
5077
|
+
id: string | number;
|
|
5078
|
+
createdAt: Date;
|
|
5079
|
+
name: string;
|
|
5080
|
+
itemCount?: number | null | undefined;
|
|
5081
|
+
userId?: string | number | null | undefined;
|
|
5082
|
+
}>;
|
|
5083
|
+
type: z.ZodLiteral<"BRAND">;
|
|
5084
|
+
}, "strip", z.ZodTypeAny, {
|
|
5085
|
+
type: "BRAND";
|
|
5086
|
+
brand: {
|
|
5087
|
+
id: string | number;
|
|
5088
|
+
createdAt: Date;
|
|
5089
|
+
name: string;
|
|
5090
|
+
itemCount?: number | null | undefined;
|
|
5091
|
+
userId?: string | number | null | undefined;
|
|
5092
|
+
};
|
|
5093
|
+
}, {
|
|
5094
|
+
type: "BRAND";
|
|
5095
|
+
brand: {
|
|
5096
|
+
id: string | number;
|
|
5097
|
+
createdAt: Date;
|
|
5098
|
+
name: string;
|
|
5099
|
+
itemCount?: number | null | undefined;
|
|
5100
|
+
userId?: string | number | null | undefined;
|
|
5101
|
+
};
|
|
5102
|
+
}>, z.ZodObject<{
|
|
5103
|
+
catalog: z.ZodObject<{
|
|
5104
|
+
id: z.ZodNumber;
|
|
5105
|
+
multipleSizeGroupIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
5106
|
+
title: z.ZodString;
|
|
5107
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5108
|
+
}, "strip", z.ZodTypeAny, {
|
|
5109
|
+
id: number;
|
|
5110
|
+
title: string;
|
|
5111
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
5112
|
+
itemCount?: number | null | undefined;
|
|
5113
|
+
}, {
|
|
5114
|
+
id: number;
|
|
5115
|
+
title: string;
|
|
5116
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
5117
|
+
itemCount?: number | null | undefined;
|
|
5118
|
+
}>;
|
|
5119
|
+
type: z.ZodLiteral<"CATALOG">;
|
|
5120
|
+
}, "strip", z.ZodTypeAny, {
|
|
5121
|
+
type: "CATALOG";
|
|
5122
|
+
catalog: {
|
|
5123
|
+
id: number;
|
|
5124
|
+
title: string;
|
|
5125
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
5126
|
+
itemCount?: number | null | undefined;
|
|
5127
|
+
};
|
|
5128
|
+
}, {
|
|
5129
|
+
type: "CATALOG";
|
|
5130
|
+
catalog: {
|
|
5131
|
+
id: number;
|
|
5132
|
+
title: string;
|
|
5133
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
5134
|
+
itemCount?: number | null | undefined;
|
|
5135
|
+
};
|
|
5136
|
+
}>, z.ZodObject<{
|
|
5137
|
+
color: z.ZodObject<{
|
|
5138
|
+
id: z.ZodNumber;
|
|
5139
|
+
title: z.ZodString;
|
|
5140
|
+
}, "strip", z.ZodTypeAny, {
|
|
5141
|
+
id: number;
|
|
5142
|
+
title: string;
|
|
5143
|
+
}, {
|
|
5144
|
+
id: number;
|
|
5145
|
+
title: string;
|
|
5146
|
+
}>;
|
|
5147
|
+
type: z.ZodLiteral<"COLOR">;
|
|
5148
|
+
}, "strip", z.ZodTypeAny, {
|
|
5149
|
+
type: "COLOR";
|
|
5150
|
+
color: {
|
|
5151
|
+
id: number;
|
|
5152
|
+
title: string;
|
|
5153
|
+
};
|
|
5154
|
+
}, {
|
|
5155
|
+
type: "COLOR";
|
|
5156
|
+
color: {
|
|
5157
|
+
id: number;
|
|
5158
|
+
title: string;
|
|
5159
|
+
};
|
|
5160
|
+
}>, z.ZodObject<{
|
|
5161
|
+
favorite: z.ZodObject<{
|
|
5162
|
+
resourceId: z.ZodNumber;
|
|
5163
|
+
type: z.ZodEnum<["BRAND", "CATALOG", "PURCHASE_PRICE", "ESTIMATED_PRICE", "PURCHASE_PLACE", "SELLING_PLACE", "SIZE", "COLOR", "PACKAGE_SIZE", "CONDITION"]>;
|
|
5164
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5165
|
+
userId: z.ZodNumber;
|
|
5166
|
+
isSuggestion: z.ZodBoolean;
|
|
5167
|
+
}, "strip", z.ZodTypeAny, {
|
|
5168
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
5169
|
+
userId: number;
|
|
5170
|
+
resourceId: number;
|
|
5171
|
+
isSuggestion: boolean;
|
|
5172
|
+
value?: number | null | undefined;
|
|
5173
|
+
}, {
|
|
5174
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
5175
|
+
userId: number;
|
|
5176
|
+
resourceId: number;
|
|
5177
|
+
isSuggestion: boolean;
|
|
5178
|
+
value?: number | null | undefined;
|
|
5179
|
+
}>;
|
|
5180
|
+
type: z.ZodLiteral<"FAVORITE">;
|
|
5181
|
+
}, "strip", z.ZodTypeAny, {
|
|
5182
|
+
type: "FAVORITE";
|
|
5183
|
+
favorite: {
|
|
5184
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
5185
|
+
userId: number;
|
|
5186
|
+
resourceId: number;
|
|
5187
|
+
isSuggestion: boolean;
|
|
5188
|
+
value?: number | null | undefined;
|
|
5189
|
+
};
|
|
5190
|
+
}, {
|
|
5191
|
+
type: "FAVORITE";
|
|
5192
|
+
favorite: {
|
|
5193
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
5194
|
+
userId: number;
|
|
5195
|
+
resourceId: number;
|
|
5196
|
+
isSuggestion: boolean;
|
|
5197
|
+
value?: number | null | undefined;
|
|
5198
|
+
};
|
|
5199
|
+
}>, z.ZodObject<{
|
|
5200
|
+
historyType: z.ZodObject<{
|
|
5201
|
+
type: z.ZodEnum<["IMPORTED", "ARCHIVED", "UNARCHIVED", "PUBLISHED", "FAILED_TO_PUBLISH", "PUBLISH_CANCELED", "SCHEDULED", "REPUBLISHING", "REPUBLISHED", "UPDATING", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
|
|
5202
|
+
count: z.ZodNumber;
|
|
5203
|
+
}, "strip", z.ZodTypeAny, {
|
|
5204
|
+
type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
5205
|
+
count: number;
|
|
5206
|
+
}, {
|
|
5207
|
+
type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
5208
|
+
count: number;
|
|
5209
|
+
}>;
|
|
5210
|
+
type: z.ZodLiteral<"HISTORY_TYPE">;
|
|
5211
|
+
}, "strip", z.ZodTypeAny, {
|
|
5212
|
+
type: "HISTORY_TYPE";
|
|
5213
|
+
historyType: {
|
|
5214
|
+
type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
5215
|
+
count: number;
|
|
5216
|
+
};
|
|
5217
|
+
}, {
|
|
5218
|
+
type: "HISTORY_TYPE";
|
|
5219
|
+
historyType: {
|
|
5220
|
+
type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
5221
|
+
count: number;
|
|
5222
|
+
};
|
|
5223
|
+
}>, z.ZodObject<{
|
|
5224
|
+
label: z.ZodObject<{
|
|
5225
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
5226
|
+
name: z.ZodString;
|
|
5227
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
5228
|
+
isUserLabel: z.ZodBoolean;
|
|
5229
|
+
createdAt: z.ZodDate;
|
|
5230
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5231
|
+
}, "strip", z.ZodTypeAny, {
|
|
5232
|
+
id: string | number;
|
|
5233
|
+
createdAt: Date;
|
|
5234
|
+
name: string;
|
|
5235
|
+
isUserLabel: boolean;
|
|
5236
|
+
itemCount?: number | null | undefined;
|
|
5237
|
+
userId?: string | number | null | undefined;
|
|
5238
|
+
}, {
|
|
5239
|
+
id: string | number;
|
|
5240
|
+
createdAt: Date;
|
|
5241
|
+
name: string;
|
|
5242
|
+
isUserLabel: boolean;
|
|
5243
|
+
itemCount?: number | null | undefined;
|
|
5244
|
+
userId?: string | number | null | undefined;
|
|
5245
|
+
}>;
|
|
5246
|
+
type: z.ZodLiteral<"LABEL">;
|
|
5247
|
+
}, "strip", z.ZodTypeAny, {
|
|
5248
|
+
type: "LABEL";
|
|
5249
|
+
label: {
|
|
5250
|
+
id: string | number;
|
|
5251
|
+
createdAt: Date;
|
|
5252
|
+
name: string;
|
|
5253
|
+
isUserLabel: boolean;
|
|
5254
|
+
itemCount?: number | null | undefined;
|
|
5255
|
+
userId?: string | number | null | undefined;
|
|
5256
|
+
};
|
|
5257
|
+
}, {
|
|
5258
|
+
type: "LABEL";
|
|
5259
|
+
label: {
|
|
5260
|
+
id: string | number;
|
|
5261
|
+
createdAt: Date;
|
|
5262
|
+
name: string;
|
|
5263
|
+
isUserLabel: boolean;
|
|
5264
|
+
itemCount?: number | null | undefined;
|
|
5265
|
+
userId?: string | number | null | undefined;
|
|
5266
|
+
};
|
|
5267
|
+
}>, z.ZodObject<{
|
|
5268
|
+
packageSize: z.ZodObject<{
|
|
5269
|
+
id: z.ZodNumber;
|
|
5270
|
+
title: z.ZodString;
|
|
5271
|
+
weightDescription: z.ZodString;
|
|
5272
|
+
}, "strip", z.ZodTypeAny, {
|
|
5273
|
+
id: number;
|
|
5274
|
+
title: string;
|
|
5275
|
+
weightDescription: string;
|
|
5276
|
+
}, {
|
|
5277
|
+
id: number;
|
|
5278
|
+
title: string;
|
|
5279
|
+
weightDescription: string;
|
|
5280
|
+
}>;
|
|
5281
|
+
type: z.ZodLiteral<"PACKAGE_SIZE">;
|
|
5282
|
+
}, "strip", z.ZodTypeAny, {
|
|
5283
|
+
type: "PACKAGE_SIZE";
|
|
5284
|
+
packageSize: {
|
|
5285
|
+
id: number;
|
|
5286
|
+
title: string;
|
|
5287
|
+
weightDescription: string;
|
|
5288
|
+
};
|
|
5289
|
+
}, {
|
|
5290
|
+
type: "PACKAGE_SIZE";
|
|
5291
|
+
packageSize: {
|
|
5292
|
+
id: number;
|
|
5293
|
+
title: string;
|
|
5294
|
+
weightDescription: string;
|
|
5295
|
+
};
|
|
5296
|
+
}>, z.ZodObject<{
|
|
5297
|
+
place: z.ZodObject<{
|
|
5298
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
5299
|
+
name: z.ZodString;
|
|
5300
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
5301
|
+
createdAt: z.ZodDate;
|
|
5302
|
+
}, "strip", z.ZodTypeAny, {
|
|
5303
|
+
id: string | number;
|
|
5304
|
+
createdAt: Date;
|
|
5305
|
+
name: string;
|
|
5306
|
+
userId?: string | number | null | undefined;
|
|
5307
|
+
}, {
|
|
5308
|
+
id: string | number;
|
|
5309
|
+
createdAt: Date;
|
|
5310
|
+
name: string;
|
|
5311
|
+
userId?: string | number | null | undefined;
|
|
5312
|
+
}>;
|
|
5313
|
+
type: z.ZodLiteral<"PLACE">;
|
|
5314
|
+
}, "strip", z.ZodTypeAny, {
|
|
5315
|
+
type: "PLACE";
|
|
5316
|
+
place: {
|
|
5317
|
+
id: string | number;
|
|
5318
|
+
createdAt: Date;
|
|
5319
|
+
name: string;
|
|
5320
|
+
userId?: string | number | null | undefined;
|
|
5321
|
+
};
|
|
5322
|
+
}, {
|
|
5323
|
+
type: "PLACE";
|
|
5324
|
+
place: {
|
|
5325
|
+
id: string | number;
|
|
5326
|
+
createdAt: Date;
|
|
5327
|
+
name: string;
|
|
5328
|
+
userId?: string | number | null | undefined;
|
|
5329
|
+
};
|
|
5330
|
+
}>, z.ZodObject<{
|
|
5331
|
+
size: z.ZodObject<{
|
|
5332
|
+
id: z.ZodNumber;
|
|
5333
|
+
title: z.ZodString;
|
|
5334
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5335
|
+
}, "strip", z.ZodTypeAny, {
|
|
5336
|
+
id: number;
|
|
5337
|
+
title: string;
|
|
5338
|
+
itemCount?: number | null | undefined;
|
|
5339
|
+
}, {
|
|
5340
|
+
id: number;
|
|
5341
|
+
title: string;
|
|
5342
|
+
itemCount?: number | null | undefined;
|
|
5343
|
+
}>;
|
|
5344
|
+
type: z.ZodLiteral<"SIZE">;
|
|
5345
|
+
}, "strip", z.ZodTypeAny, {
|
|
5346
|
+
type: "SIZE";
|
|
5347
|
+
size: {
|
|
5348
|
+
id: number;
|
|
5349
|
+
title: string;
|
|
5350
|
+
itemCount?: number | null | undefined;
|
|
5351
|
+
};
|
|
5352
|
+
}, {
|
|
5353
|
+
type: "SIZE";
|
|
5354
|
+
size: {
|
|
5355
|
+
id: number;
|
|
5356
|
+
title: string;
|
|
5357
|
+
itemCount?: number | null | undefined;
|
|
5358
|
+
};
|
|
5359
|
+
}>, z.ZodObject<{
|
|
5360
|
+
status: z.ZodObject<{
|
|
5361
|
+
id: z.ZodNumber;
|
|
5362
|
+
title: z.ZodString;
|
|
5363
|
+
description: z.ZodString;
|
|
5364
|
+
}, "strip", z.ZodTypeAny, {
|
|
5365
|
+
id: number;
|
|
5366
|
+
title: string;
|
|
5367
|
+
description: string;
|
|
5368
|
+
}, {
|
|
5369
|
+
id: number;
|
|
5370
|
+
title: string;
|
|
5371
|
+
description: string;
|
|
5372
|
+
}>;
|
|
5373
|
+
type: z.ZodLiteral<"STATUS">;
|
|
5374
|
+
}, "strip", z.ZodTypeAny, {
|
|
5375
|
+
type: "STATUS";
|
|
5376
|
+
status: {
|
|
5377
|
+
id: number;
|
|
5378
|
+
title: string;
|
|
5379
|
+
description: string;
|
|
5380
|
+
};
|
|
5381
|
+
}, {
|
|
5382
|
+
type: "STATUS";
|
|
5383
|
+
status: {
|
|
5384
|
+
id: number;
|
|
5385
|
+
title: string;
|
|
5386
|
+
description: string;
|
|
5387
|
+
};
|
|
5388
|
+
}>]>;
|
|
4585
5389
|
deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4586
5390
|
type: z.ZodLiteral<"RESOURCE">;
|
|
4587
5391
|
}, "strip", z.ZodTypeAny, {
|
|
5392
|
+
value: {
|
|
5393
|
+
type: "BRAND";
|
|
5394
|
+
brand: {
|
|
5395
|
+
id: string | number;
|
|
5396
|
+
createdAt: Date;
|
|
5397
|
+
name: string;
|
|
5398
|
+
itemCount?: number | null | undefined;
|
|
5399
|
+
userId?: string | number | null | undefined;
|
|
5400
|
+
};
|
|
5401
|
+
} | {
|
|
5402
|
+
type: "CATALOG";
|
|
5403
|
+
catalog: {
|
|
5404
|
+
id: number;
|
|
5405
|
+
title: string;
|
|
5406
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
5407
|
+
itemCount?: number | null | undefined;
|
|
5408
|
+
};
|
|
5409
|
+
} | {
|
|
5410
|
+
type: "COLOR";
|
|
5411
|
+
color: {
|
|
5412
|
+
id: number;
|
|
5413
|
+
title: string;
|
|
5414
|
+
};
|
|
5415
|
+
} | {
|
|
5416
|
+
type: "FAVORITE";
|
|
5417
|
+
favorite: {
|
|
5418
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
5419
|
+
userId: number;
|
|
5420
|
+
resourceId: number;
|
|
5421
|
+
isSuggestion: boolean;
|
|
5422
|
+
value?: number | null | undefined;
|
|
5423
|
+
};
|
|
5424
|
+
} | {
|
|
5425
|
+
type: "HISTORY_TYPE";
|
|
5426
|
+
historyType: {
|
|
5427
|
+
type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
5428
|
+
count: number;
|
|
5429
|
+
};
|
|
5430
|
+
} | {
|
|
5431
|
+
type: "LABEL";
|
|
5432
|
+
label: {
|
|
5433
|
+
id: string | number;
|
|
5434
|
+
createdAt: Date;
|
|
5435
|
+
name: string;
|
|
5436
|
+
isUserLabel: boolean;
|
|
5437
|
+
itemCount?: number | null | undefined;
|
|
5438
|
+
userId?: string | number | null | undefined;
|
|
5439
|
+
};
|
|
5440
|
+
} | {
|
|
5441
|
+
type: "PACKAGE_SIZE";
|
|
5442
|
+
packageSize: {
|
|
5443
|
+
id: number;
|
|
5444
|
+
title: string;
|
|
5445
|
+
weightDescription: string;
|
|
5446
|
+
};
|
|
5447
|
+
} | {
|
|
5448
|
+
type: "PLACE";
|
|
5449
|
+
place: {
|
|
5450
|
+
id: string | number;
|
|
5451
|
+
createdAt: Date;
|
|
5452
|
+
name: string;
|
|
5453
|
+
userId?: string | number | null | undefined;
|
|
5454
|
+
};
|
|
5455
|
+
} | {
|
|
5456
|
+
type: "SIZE";
|
|
5457
|
+
size: {
|
|
5458
|
+
id: number;
|
|
5459
|
+
title: string;
|
|
5460
|
+
itemCount?: number | null | undefined;
|
|
5461
|
+
};
|
|
5462
|
+
} | {
|
|
5463
|
+
type: "STATUS";
|
|
5464
|
+
status: {
|
|
5465
|
+
id: number;
|
|
5466
|
+
title: string;
|
|
5467
|
+
description: string;
|
|
5468
|
+
};
|
|
5469
|
+
};
|
|
4588
5470
|
type: "RESOURCE";
|
|
4589
|
-
value?: unknown;
|
|
4590
5471
|
deleted?: boolean | null | undefined;
|
|
4591
5472
|
}, {
|
|
5473
|
+
value: {
|
|
5474
|
+
type: "BRAND";
|
|
5475
|
+
brand: {
|
|
5476
|
+
id: string | number;
|
|
5477
|
+
createdAt: Date;
|
|
5478
|
+
name: string;
|
|
5479
|
+
itemCount?: number | null | undefined;
|
|
5480
|
+
userId?: string | number | null | undefined;
|
|
5481
|
+
};
|
|
5482
|
+
} | {
|
|
5483
|
+
type: "CATALOG";
|
|
5484
|
+
catalog: {
|
|
5485
|
+
id: number;
|
|
5486
|
+
title: string;
|
|
5487
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
5488
|
+
itemCount?: number | null | undefined;
|
|
5489
|
+
};
|
|
5490
|
+
} | {
|
|
5491
|
+
type: "COLOR";
|
|
5492
|
+
color: {
|
|
5493
|
+
id: number;
|
|
5494
|
+
title: string;
|
|
5495
|
+
};
|
|
5496
|
+
} | {
|
|
5497
|
+
type: "FAVORITE";
|
|
5498
|
+
favorite: {
|
|
5499
|
+
type: "SIZE" | "BRAND" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PURCHASE_PRICE" | "ESTIMATED_PRICE" | "PURCHASE_PLACE" | "SELLING_PLACE" | "CONDITION";
|
|
5500
|
+
userId: number;
|
|
5501
|
+
resourceId: number;
|
|
5502
|
+
isSuggestion: boolean;
|
|
5503
|
+
value?: number | null | undefined;
|
|
5504
|
+
};
|
|
5505
|
+
} | {
|
|
5506
|
+
type: "HISTORY_TYPE";
|
|
5507
|
+
historyType: {
|
|
5508
|
+
type: "IMPORTED" | "ARCHIVED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "PUBLISH_CANCELED" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATING" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
5509
|
+
count: number;
|
|
5510
|
+
};
|
|
5511
|
+
} | {
|
|
5512
|
+
type: "LABEL";
|
|
5513
|
+
label: {
|
|
5514
|
+
id: string | number;
|
|
5515
|
+
createdAt: Date;
|
|
5516
|
+
name: string;
|
|
5517
|
+
isUserLabel: boolean;
|
|
5518
|
+
itemCount?: number | null | undefined;
|
|
5519
|
+
userId?: string | number | null | undefined;
|
|
5520
|
+
};
|
|
5521
|
+
} | {
|
|
5522
|
+
type: "PACKAGE_SIZE";
|
|
5523
|
+
packageSize: {
|
|
5524
|
+
id: number;
|
|
5525
|
+
title: string;
|
|
5526
|
+
weightDescription: string;
|
|
5527
|
+
};
|
|
5528
|
+
} | {
|
|
5529
|
+
type: "PLACE";
|
|
5530
|
+
place: {
|
|
5531
|
+
id: string | number;
|
|
5532
|
+
createdAt: Date;
|
|
5533
|
+
name: string;
|
|
5534
|
+
userId?: string | number | null | undefined;
|
|
5535
|
+
};
|
|
5536
|
+
} | {
|
|
5537
|
+
type: "SIZE";
|
|
5538
|
+
size: {
|
|
5539
|
+
id: number;
|
|
5540
|
+
title: string;
|
|
5541
|
+
itemCount?: number | null | undefined;
|
|
5542
|
+
};
|
|
5543
|
+
} | {
|
|
5544
|
+
type: "STATUS";
|
|
5545
|
+
status: {
|
|
5546
|
+
id: number;
|
|
5547
|
+
title: string;
|
|
5548
|
+
description: string;
|
|
5549
|
+
};
|
|
5550
|
+
};
|
|
4592
5551
|
type: "RESOURCE";
|
|
4593
|
-
value?: unknown;
|
|
4594
5552
|
deleted?: boolean | null | undefined;
|
|
4595
5553
|
}>, z.ZodObject<{
|
|
4596
5554
|
accountId: z.ZodString;
|