controlresell 2.8.2 → 2.8.4

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