controlresell 0.0.35 → 0.0.37

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/dist/index.d.ts CHANGED
@@ -19,6 +19,7 @@ export * from "./models/items/itemHistory";
19
19
  export * from "./models/items/itemLabel";
20
20
  export * from "./models/items/itemOnPlatform";
21
21
  export * from "./models/metadata/brand";
22
+ export * from "./models/metadata/catalog";
22
23
  export * from "./models/metadata/packageSize";
23
24
  export * from "./models/metadata/place";
24
25
  export * from "./models/metadata/size";
package/dist/index.js CHANGED
@@ -35,6 +35,7 @@ __exportStar(require("./models/items/itemHistory"), exports);
35
35
  __exportStar(require("./models/items/itemLabel"), exports);
36
36
  __exportStar(require("./models/items/itemOnPlatform"), exports);
37
37
  __exportStar(require("./models/metadata/brand"), exports);
38
+ __exportStar(require("./models/metadata/catalog"), exports);
38
39
  __exportStar(require("./models/metadata/packageSize"), exports);
39
40
  __exportStar(require("./models/metadata/place"), exports);
40
41
  __exportStar(require("./models/metadata/size"), exports);
@@ -51,7 +51,22 @@ export declare const ItemSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
51
51
  } | null | undefined;
52
52
  }>, "many">>>;
53
53
  categoryId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
54
- category: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
54
+ category: z.ZodOptional<z.ZodNullable<z.ZodObject<{
55
+ id: z.ZodNumber;
56
+ sizeGroupIds: z.ZodArray<z.ZodNumber, "many">;
57
+ title: z.ZodString;
58
+ disabledFields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ id: number;
61
+ title: string;
62
+ sizeGroupIds: number[];
63
+ disabledFields?: string[] | null | undefined;
64
+ }, {
65
+ id: number;
66
+ title: string;
67
+ sizeGroupIds: number[];
68
+ disabledFields?: string[] | null | undefined;
69
+ }>>>;
55
70
  brandId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
56
71
  brand: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodObject<{
57
72
  id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
@@ -413,10 +428,10 @@ export declare const ItemSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
413
428
  items?: any[] | null | undefined;
414
429
  createdAt?: Date | null | undefined;
415
430
  }, unknown>>>;
416
- customerType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["purchase", "deposit"]>>>;
431
+ customerType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["purchase", "deposit", "PURCHASE", "DEPOSIT"]>>>;
417
432
  customerPaid: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
418
433
  customerPaidDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
419
- customerPaidType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["transfer", "cash"]>>>;
434
+ customerPaidType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["transfer", "cash", "TRANSFER", "CASH"]>>>;
420
435
  contractId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
421
436
  contract: z.ZodOptional<z.ZodNullable<z.ZodObject<{
422
437
  id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
@@ -484,7 +499,12 @@ export declare const ItemSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
484
499
  } | null | undefined;
485
500
  }[] | null | undefined;
486
501
  categoryId?: number | null | undefined;
487
- category?: any;
502
+ category?: {
503
+ id: number;
504
+ title: string;
505
+ sizeGroupIds: number[];
506
+ disabledFields?: string[] | null | undefined;
507
+ } | null | undefined;
488
508
  brandId?: number | null | undefined;
489
509
  sex?: string | null | undefined;
490
510
  state?: number | null | undefined;
@@ -564,10 +584,10 @@ export declare const ItemSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
564
584
  items?: any[] | null | undefined;
565
585
  createdAt?: Date | null | undefined;
566
586
  } | null | undefined;
567
- customerType?: "purchase" | "deposit" | null | undefined;
587
+ customerType?: "purchase" | "deposit" | "PURCHASE" | "DEPOSIT" | null | undefined;
568
588
  customerPaid?: boolean | null | undefined;
569
589
  customerPaidDate?: Date | null | undefined;
570
- customerPaidType?: "transfer" | "cash" | null | undefined;
590
+ customerPaidType?: "transfer" | "cash" | "TRANSFER" | "CASH" | null | undefined;
571
591
  contractId?: number | null | undefined;
572
592
  contract?: {
573
593
  date: Date;
@@ -604,7 +624,12 @@ export declare const ItemSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
604
624
  } | null | undefined;
605
625
  }[] | null | undefined;
606
626
  categoryId?: number | null | undefined;
607
- category?: any;
627
+ category?: {
628
+ id: number;
629
+ title: string;
630
+ sizeGroupIds: number[];
631
+ disabledFields?: string[] | null | undefined;
632
+ } | null | undefined;
608
633
  brandId?: number | null | undefined;
609
634
  sex?: string | null | undefined;
610
635
  state?: number | null | undefined;
@@ -629,10 +654,10 @@ export declare const ItemSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
629
654
  salePrice?: number | null | undefined;
630
655
  customerId?: number | null | undefined;
631
656
  customer?: unknown;
632
- customerType?: "purchase" | "deposit" | null | undefined;
657
+ customerType?: "purchase" | "deposit" | "PURCHASE" | "DEPOSIT" | null | undefined;
633
658
  customerPaid?: boolean | null | undefined;
634
659
  customerPaidDate?: Date | null | undefined;
635
- customerPaidType?: "transfer" | "cash" | null | undefined;
660
+ customerPaidType?: "transfer" | "cash" | "TRANSFER" | "CASH" | null | undefined;
636
661
  contractId?: number | null | undefined;
637
662
  contract?: {
638
663
  date: Date;
@@ -672,7 +697,12 @@ export declare const ItemSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
672
697
  } | null | undefined;
673
698
  }[] | null | undefined;
674
699
  categoryId?: number | null | undefined;
675
- category?: any;
700
+ category?: {
701
+ id: number;
702
+ title: string;
703
+ sizeGroupIds: number[];
704
+ disabledFields?: string[] | null | undefined;
705
+ } | null | undefined;
676
706
  brandId?: number | null | undefined;
677
707
  sex?: string | null | undefined;
678
708
  state?: number | null | undefined;
@@ -752,10 +782,10 @@ export declare const ItemSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
752
782
  items?: any[] | null | undefined;
753
783
  createdAt?: Date | null | undefined;
754
784
  } | null | undefined;
755
- customerType?: "purchase" | "deposit" | null | undefined;
785
+ customerType?: "purchase" | "deposit" | "PURCHASE" | "DEPOSIT" | null | undefined;
756
786
  customerPaid?: boolean | null | undefined;
757
787
  customerPaidDate?: Date | null | undefined;
758
- customerPaidType?: "transfer" | "cash" | null | undefined;
788
+ customerPaidType?: "transfer" | "cash" | "TRANSFER" | "CASH" | null | undefined;
759
789
  contractId?: number | null | undefined;
760
790
  contract?: {
761
791
  date: Date;
@@ -799,7 +829,12 @@ export declare const ItemSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
799
829
  } | null | undefined;
800
830
  }[] | null | undefined;
801
831
  categoryId?: number | null | undefined;
802
- category?: any;
832
+ category?: {
833
+ id: number;
834
+ title: string;
835
+ sizeGroupIds: number[];
836
+ disabledFields?: string[] | null | undefined;
837
+ } | null | undefined;
803
838
  brandId?: number | null | undefined;
804
839
  sex?: string | null | undefined;
805
840
  state?: number | null | undefined;
@@ -879,10 +914,10 @@ export declare const ItemSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
879
914
  items?: any[] | null | undefined;
880
915
  createdAt?: Date | null | undefined;
881
916
  } | null | undefined;
882
- customerType?: "purchase" | "deposit" | null | undefined;
917
+ customerType?: "purchase" | "deposit" | "PURCHASE" | "DEPOSIT" | null | undefined;
883
918
  customerPaid?: boolean | null | undefined;
884
919
  customerPaidDate?: Date | null | undefined;
885
- customerPaidType?: "transfer" | "cash" | null | undefined;
920
+ customerPaidType?: "transfer" | "cash" | "TRANSFER" | "CASH" | null | undefined;
886
921
  contractId?: number | null | undefined;
887
922
  contract?: {
888
923
  date: Date;
@@ -921,8 +956,10 @@ export declare const ItemPayloadSchema: z.ZodObject<{
921
956
  quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
922
957
  batchId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
923
958
  customerId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
959
+ customerType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["purchase", "deposit", "PURCHASE", "DEPOSIT"]>>>;
924
960
  customerPaid: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
925
- customerType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
961
+ customerPaidDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
962
+ customerPaidType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["transfer", "cash", "TRANSFER", "CASH"]>>>;
926
963
  contractId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
927
964
  fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
928
965
  fieldId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
@@ -961,8 +998,10 @@ export declare const ItemPayloadSchema: z.ZodObject<{
961
998
  estimatedPrice?: number | null | undefined;
962
999
  salePrice?: number | null | undefined;
963
1000
  customerId?: number | null | undefined;
964
- customerType?: string | null | undefined;
1001
+ customerType?: "purchase" | "deposit" | "PURCHASE" | "DEPOSIT" | null | undefined;
965
1002
  customerPaid?: boolean | null | undefined;
1003
+ customerPaidDate?: Date | null | undefined;
1004
+ customerPaidType?: "transfer" | "cash" | "TRANSFER" | "CASH" | null | undefined;
966
1005
  contractId?: number | null | undefined;
967
1006
  fields?: {
968
1007
  value: string;
@@ -993,8 +1032,10 @@ export declare const ItemPayloadSchema: z.ZodObject<{
993
1032
  estimatedPrice?: number | null | undefined;
994
1033
  salePrice?: number | null | undefined;
995
1034
  customerId?: number | null | undefined;
996
- customerType?: string | null | undefined;
1035
+ customerType?: "purchase" | "deposit" | "PURCHASE" | "DEPOSIT" | null | undefined;
997
1036
  customerPaid?: boolean | null | undefined;
1037
+ customerPaidDate?: Date | null | undefined;
1038
+ customerPaidType?: "transfer" | "cash" | "TRANSFER" | "CASH" | null | undefined;
998
1039
  contractId?: number | null | undefined;
999
1040
  fields?: unknown[] | null | undefined;
1000
1041
  sizeType?: string | null | undefined;
@@ -1054,7 +1095,22 @@ export declare const CreatedItemsSchema: z.ZodObject<{
1054
1095
  } | null | undefined;
1055
1096
  }>, "many">>>;
1056
1097
  categoryId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1057
- category: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
1098
+ category: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1099
+ id: z.ZodNumber;
1100
+ sizeGroupIds: z.ZodArray<z.ZodNumber, "many">;
1101
+ title: z.ZodString;
1102
+ disabledFields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1103
+ }, "strip", z.ZodTypeAny, {
1104
+ id: number;
1105
+ title: string;
1106
+ sizeGroupIds: number[];
1107
+ disabledFields?: string[] | null | undefined;
1108
+ }, {
1109
+ id: number;
1110
+ title: string;
1111
+ sizeGroupIds: number[];
1112
+ disabledFields?: string[] | null | undefined;
1113
+ }>>>;
1058
1114
  brandId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1059
1115
  brand: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1060
1116
  id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
@@ -1416,10 +1472,10 @@ export declare const CreatedItemsSchema: z.ZodObject<{
1416
1472
  items?: any[] | null | undefined;
1417
1473
  createdAt?: Date | null | undefined;
1418
1474
  }, unknown>>>;
1419
- customerType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["purchase", "deposit"]>>>;
1475
+ customerType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["purchase", "deposit", "PURCHASE", "DEPOSIT"]>>>;
1420
1476
  customerPaid: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1421
1477
  customerPaidDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1422
- customerPaidType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["transfer", "cash"]>>>;
1478
+ customerPaidType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["transfer", "cash", "TRANSFER", "CASH"]>>>;
1423
1479
  contractId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1424
1480
  contract: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1425
1481
  id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
@@ -1487,7 +1543,12 @@ export declare const CreatedItemsSchema: z.ZodObject<{
1487
1543
  } | null | undefined;
1488
1544
  }[] | null | undefined;
1489
1545
  categoryId?: number | null | undefined;
1490
- category?: any;
1546
+ category?: {
1547
+ id: number;
1548
+ title: string;
1549
+ sizeGroupIds: number[];
1550
+ disabledFields?: string[] | null | undefined;
1551
+ } | null | undefined;
1491
1552
  brandId?: number | null | undefined;
1492
1553
  sex?: string | null | undefined;
1493
1554
  state?: number | null | undefined;
@@ -1567,10 +1628,10 @@ export declare const CreatedItemsSchema: z.ZodObject<{
1567
1628
  items?: any[] | null | undefined;
1568
1629
  createdAt?: Date | null | undefined;
1569
1630
  } | null | undefined;
1570
- customerType?: "purchase" | "deposit" | null | undefined;
1631
+ customerType?: "purchase" | "deposit" | "PURCHASE" | "DEPOSIT" | null | undefined;
1571
1632
  customerPaid?: boolean | null | undefined;
1572
1633
  customerPaidDate?: Date | null | undefined;
1573
- customerPaidType?: "transfer" | "cash" | null | undefined;
1634
+ customerPaidType?: "transfer" | "cash" | "TRANSFER" | "CASH" | null | undefined;
1574
1635
  contractId?: number | null | undefined;
1575
1636
  contract?: {
1576
1637
  date: Date;
@@ -1607,7 +1668,12 @@ export declare const CreatedItemsSchema: z.ZodObject<{
1607
1668
  } | null | undefined;
1608
1669
  }[] | null | undefined;
1609
1670
  categoryId?: number | null | undefined;
1610
- category?: any;
1671
+ category?: {
1672
+ id: number;
1673
+ title: string;
1674
+ sizeGroupIds: number[];
1675
+ disabledFields?: string[] | null | undefined;
1676
+ } | null | undefined;
1611
1677
  brandId?: number | null | undefined;
1612
1678
  sex?: string | null | undefined;
1613
1679
  state?: number | null | undefined;
@@ -1632,10 +1698,10 @@ export declare const CreatedItemsSchema: z.ZodObject<{
1632
1698
  salePrice?: number | null | undefined;
1633
1699
  customerId?: number | null | undefined;
1634
1700
  customer?: unknown;
1635
- customerType?: "purchase" | "deposit" | null | undefined;
1701
+ customerType?: "purchase" | "deposit" | "PURCHASE" | "DEPOSIT" | null | undefined;
1636
1702
  customerPaid?: boolean | null | undefined;
1637
1703
  customerPaidDate?: Date | null | undefined;
1638
- customerPaidType?: "transfer" | "cash" | null | undefined;
1704
+ customerPaidType?: "transfer" | "cash" | "TRANSFER" | "CASH" | null | undefined;
1639
1705
  contractId?: number | null | undefined;
1640
1706
  contract?: {
1641
1707
  date: Date;
@@ -1675,7 +1741,12 @@ export declare const CreatedItemsSchema: z.ZodObject<{
1675
1741
  } | null | undefined;
1676
1742
  }[] | null | undefined;
1677
1743
  categoryId?: number | null | undefined;
1678
- category?: any;
1744
+ category?: {
1745
+ id: number;
1746
+ title: string;
1747
+ sizeGroupIds: number[];
1748
+ disabledFields?: string[] | null | undefined;
1749
+ } | null | undefined;
1679
1750
  brandId?: number | null | undefined;
1680
1751
  sex?: string | null | undefined;
1681
1752
  state?: number | null | undefined;
@@ -1755,10 +1826,10 @@ export declare const CreatedItemsSchema: z.ZodObject<{
1755
1826
  items?: any[] | null | undefined;
1756
1827
  createdAt?: Date | null | undefined;
1757
1828
  } | null | undefined;
1758
- customerType?: "purchase" | "deposit" | null | undefined;
1829
+ customerType?: "purchase" | "deposit" | "PURCHASE" | "DEPOSIT" | null | undefined;
1759
1830
  customerPaid?: boolean | null | undefined;
1760
1831
  customerPaidDate?: Date | null | undefined;
1761
- customerPaidType?: "transfer" | "cash" | null | undefined;
1832
+ customerPaidType?: "transfer" | "cash" | "TRANSFER" | "CASH" | null | undefined;
1762
1833
  contractId?: number | null | undefined;
1763
1834
  contract?: {
1764
1835
  date: Date;
@@ -1802,7 +1873,12 @@ export declare const CreatedItemsSchema: z.ZodObject<{
1802
1873
  } | null | undefined;
1803
1874
  }[] | null | undefined;
1804
1875
  categoryId?: number | null | undefined;
1805
- category?: any;
1876
+ category?: {
1877
+ id: number;
1878
+ title: string;
1879
+ sizeGroupIds: number[];
1880
+ disabledFields?: string[] | null | undefined;
1881
+ } | null | undefined;
1806
1882
  brandId?: number | null | undefined;
1807
1883
  sex?: string | null | undefined;
1808
1884
  state?: number | null | undefined;
@@ -1882,10 +1958,10 @@ export declare const CreatedItemsSchema: z.ZodObject<{
1882
1958
  items?: any[] | null | undefined;
1883
1959
  createdAt?: Date | null | undefined;
1884
1960
  } | null | undefined;
1885
- customerType?: "purchase" | "deposit" | null | undefined;
1961
+ customerType?: "purchase" | "deposit" | "PURCHASE" | "DEPOSIT" | null | undefined;
1886
1962
  customerPaid?: boolean | null | undefined;
1887
1963
  customerPaidDate?: Date | null | undefined;
1888
- customerPaidType?: "transfer" | "cash" | null | undefined;
1964
+ customerPaidType?: "transfer" | "cash" | "TRANSFER" | "CASH" | null | undefined;
1889
1965
  contractId?: number | null | undefined;
1890
1966
  contract?: {
1891
1967
  date: Date;
@@ -1952,7 +2028,12 @@ export declare const CreatedItemsSchema: z.ZodObject<{
1952
2028
  } | null | undefined;
1953
2029
  }[] | null | undefined;
1954
2030
  categoryId?: number | null | undefined;
1955
- category?: any;
2031
+ category?: {
2032
+ id: number;
2033
+ title: string;
2034
+ sizeGroupIds: number[];
2035
+ disabledFields?: string[] | null | undefined;
2036
+ } | null | undefined;
1956
2037
  brandId?: number | null | undefined;
1957
2038
  sex?: string | null | undefined;
1958
2039
  state?: number | null | undefined;
@@ -2032,10 +2113,10 @@ export declare const CreatedItemsSchema: z.ZodObject<{
2032
2113
  items?: any[] | null | undefined;
2033
2114
  createdAt?: Date | null | undefined;
2034
2115
  } | null | undefined;
2035
- customerType?: "purchase" | "deposit" | null | undefined;
2116
+ customerType?: "purchase" | "deposit" | "PURCHASE" | "DEPOSIT" | null | undefined;
2036
2117
  customerPaid?: boolean | null | undefined;
2037
2118
  customerPaidDate?: Date | null | undefined;
2038
- customerPaidType?: "transfer" | "cash" | null | undefined;
2119
+ customerPaidType?: "transfer" | "cash" | "TRANSFER" | "CASH" | null | undefined;
2039
2120
  contractId?: number | null | undefined;
2040
2121
  contract?: {
2041
2122
  date: Date;
@@ -2109,7 +2190,22 @@ export declare const UpdatedItemSchema: z.ZodObject<{
2109
2190
  } | null | undefined;
2110
2191
  }>, "many">>>;
2111
2192
  categoryId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2112
- category: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
2193
+ category: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2194
+ id: z.ZodNumber;
2195
+ sizeGroupIds: z.ZodArray<z.ZodNumber, "many">;
2196
+ title: z.ZodString;
2197
+ disabledFields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2198
+ }, "strip", z.ZodTypeAny, {
2199
+ id: number;
2200
+ title: string;
2201
+ sizeGroupIds: number[];
2202
+ disabledFields?: string[] | null | undefined;
2203
+ }, {
2204
+ id: number;
2205
+ title: string;
2206
+ sizeGroupIds: number[];
2207
+ disabledFields?: string[] | null | undefined;
2208
+ }>>>;
2113
2209
  brandId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2114
2210
  brand: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodObject<{
2115
2211
  id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
@@ -2471,10 +2567,10 @@ export declare const UpdatedItemSchema: z.ZodObject<{
2471
2567
  items?: any[] | null | undefined;
2472
2568
  createdAt?: Date | null | undefined;
2473
2569
  }, unknown>>>;
2474
- customerType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["purchase", "deposit"]>>>;
2570
+ customerType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["purchase", "deposit", "PURCHASE", "DEPOSIT"]>>>;
2475
2571
  customerPaid: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2476
2572
  customerPaidDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2477
- customerPaidType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["transfer", "cash"]>>>;
2573
+ customerPaidType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["transfer", "cash", "TRANSFER", "CASH"]>>>;
2478
2574
  contractId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2479
2575
  contract: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2480
2576
  id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
@@ -2542,7 +2638,12 @@ export declare const UpdatedItemSchema: z.ZodObject<{
2542
2638
  } | null | undefined;
2543
2639
  }[] | null | undefined;
2544
2640
  categoryId?: number | null | undefined;
2545
- category?: any;
2641
+ category?: {
2642
+ id: number;
2643
+ title: string;
2644
+ sizeGroupIds: number[];
2645
+ disabledFields?: string[] | null | undefined;
2646
+ } | null | undefined;
2546
2647
  brandId?: number | null | undefined;
2547
2648
  sex?: string | null | undefined;
2548
2649
  state?: number | null | undefined;
@@ -2622,10 +2723,10 @@ export declare const UpdatedItemSchema: z.ZodObject<{
2622
2723
  items?: any[] | null | undefined;
2623
2724
  createdAt?: Date | null | undefined;
2624
2725
  } | null | undefined;
2625
- customerType?: "purchase" | "deposit" | null | undefined;
2726
+ customerType?: "purchase" | "deposit" | "PURCHASE" | "DEPOSIT" | null | undefined;
2626
2727
  customerPaid?: boolean | null | undefined;
2627
2728
  customerPaidDate?: Date | null | undefined;
2628
- customerPaidType?: "transfer" | "cash" | null | undefined;
2729
+ customerPaidType?: "transfer" | "cash" | "TRANSFER" | "CASH" | null | undefined;
2629
2730
  contractId?: number | null | undefined;
2630
2731
  contract?: {
2631
2732
  date: Date;
@@ -2662,7 +2763,12 @@ export declare const UpdatedItemSchema: z.ZodObject<{
2662
2763
  } | null | undefined;
2663
2764
  }[] | null | undefined;
2664
2765
  categoryId?: number | null | undefined;
2665
- category?: any;
2766
+ category?: {
2767
+ id: number;
2768
+ title: string;
2769
+ sizeGroupIds: number[];
2770
+ disabledFields?: string[] | null | undefined;
2771
+ } | null | undefined;
2666
2772
  brandId?: number | null | undefined;
2667
2773
  sex?: string | null | undefined;
2668
2774
  state?: number | null | undefined;
@@ -2687,10 +2793,10 @@ export declare const UpdatedItemSchema: z.ZodObject<{
2687
2793
  salePrice?: number | null | undefined;
2688
2794
  customerId?: number | null | undefined;
2689
2795
  customer?: unknown;
2690
- customerType?: "purchase" | "deposit" | null | undefined;
2796
+ customerType?: "purchase" | "deposit" | "PURCHASE" | "DEPOSIT" | null | undefined;
2691
2797
  customerPaid?: boolean | null | undefined;
2692
2798
  customerPaidDate?: Date | null | undefined;
2693
- customerPaidType?: "transfer" | "cash" | null | undefined;
2799
+ customerPaidType?: "transfer" | "cash" | "TRANSFER" | "CASH" | null | undefined;
2694
2800
  contractId?: number | null | undefined;
2695
2801
  contract?: {
2696
2802
  date: Date;
@@ -2730,7 +2836,12 @@ export declare const UpdatedItemSchema: z.ZodObject<{
2730
2836
  } | null | undefined;
2731
2837
  }[] | null | undefined;
2732
2838
  categoryId?: number | null | undefined;
2733
- category?: any;
2839
+ category?: {
2840
+ id: number;
2841
+ title: string;
2842
+ sizeGroupIds: number[];
2843
+ disabledFields?: string[] | null | undefined;
2844
+ } | null | undefined;
2734
2845
  brandId?: number | null | undefined;
2735
2846
  sex?: string | null | undefined;
2736
2847
  state?: number | null | undefined;
@@ -2810,10 +2921,10 @@ export declare const UpdatedItemSchema: z.ZodObject<{
2810
2921
  items?: any[] | null | undefined;
2811
2922
  createdAt?: Date | null | undefined;
2812
2923
  } | null | undefined;
2813
- customerType?: "purchase" | "deposit" | null | undefined;
2924
+ customerType?: "purchase" | "deposit" | "PURCHASE" | "DEPOSIT" | null | undefined;
2814
2925
  customerPaid?: boolean | null | undefined;
2815
2926
  customerPaidDate?: Date | null | undefined;
2816
- customerPaidType?: "transfer" | "cash" | null | undefined;
2927
+ customerPaidType?: "transfer" | "cash" | "TRANSFER" | "CASH" | null | undefined;
2817
2928
  contractId?: number | null | undefined;
2818
2929
  contract?: {
2819
2930
  date: Date;
@@ -2857,7 +2968,12 @@ export declare const UpdatedItemSchema: z.ZodObject<{
2857
2968
  } | null | undefined;
2858
2969
  }[] | null | undefined;
2859
2970
  categoryId?: number | null | undefined;
2860
- category?: any;
2971
+ category?: {
2972
+ id: number;
2973
+ title: string;
2974
+ sizeGroupIds: number[];
2975
+ disabledFields?: string[] | null | undefined;
2976
+ } | null | undefined;
2861
2977
  brandId?: number | null | undefined;
2862
2978
  sex?: string | null | undefined;
2863
2979
  state?: number | null | undefined;
@@ -2937,10 +3053,10 @@ export declare const UpdatedItemSchema: z.ZodObject<{
2937
3053
  items?: any[] | null | undefined;
2938
3054
  createdAt?: Date | null | undefined;
2939
3055
  } | null | undefined;
2940
- customerType?: "purchase" | "deposit" | null | undefined;
3056
+ customerType?: "purchase" | "deposit" | "PURCHASE" | "DEPOSIT" | null | undefined;
2941
3057
  customerPaid?: boolean | null | undefined;
2942
3058
  customerPaidDate?: Date | null | undefined;
2943
- customerPaidType?: "transfer" | "cash" | null | undefined;
3059
+ customerPaidType?: "transfer" | "cash" | "TRANSFER" | "CASH" | null | undefined;
2944
3060
  contractId?: number | null | undefined;
2945
3061
  contract?: {
2946
3062
  date: Date;
@@ -3012,7 +3128,12 @@ export declare const UpdatedItemSchema: z.ZodObject<{
3012
3128
  } | null | undefined;
3013
3129
  }[] | null | undefined;
3014
3130
  categoryId?: number | null | undefined;
3015
- category?: any;
3131
+ category?: {
3132
+ id: number;
3133
+ title: string;
3134
+ sizeGroupIds: number[];
3135
+ disabledFields?: string[] | null | undefined;
3136
+ } | null | undefined;
3016
3137
  brandId?: number | null | undefined;
3017
3138
  sex?: string | null | undefined;
3018
3139
  state?: number | null | undefined;
@@ -3092,10 +3213,10 @@ export declare const UpdatedItemSchema: z.ZodObject<{
3092
3213
  items?: any[] | null | undefined;
3093
3214
  createdAt?: Date | null | undefined;
3094
3215
  } | null | undefined;
3095
- customerType?: "purchase" | "deposit" | null | undefined;
3216
+ customerType?: "purchase" | "deposit" | "PURCHASE" | "DEPOSIT" | null | undefined;
3096
3217
  customerPaid?: boolean | null | undefined;
3097
3218
  customerPaidDate?: Date | null | undefined;
3098
- customerPaidType?: "transfer" | "cash" | null | undefined;
3219
+ customerPaidType?: "transfer" | "cash" | "TRANSFER" | "CASH" | null | undefined;
3099
3220
  contractId?: number | null | undefined;
3100
3221
  contract?: {
3101
3222
  date: Date;
@@ -3294,7 +3415,22 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
3294
3415
  } | null | undefined;
3295
3416
  }>, "many">>>;
3296
3417
  categoryId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3297
- category: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
3418
+ category: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3419
+ id: z.ZodNumber;
3420
+ sizeGroupIds: z.ZodArray<z.ZodNumber, "many">;
3421
+ title: z.ZodString;
3422
+ disabledFields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
3423
+ }, "strip", z.ZodTypeAny, {
3424
+ id: number;
3425
+ title: string;
3426
+ sizeGroupIds: number[];
3427
+ disabledFields?: string[] | null | undefined;
3428
+ }, {
3429
+ id: number;
3430
+ title: string;
3431
+ sizeGroupIds: number[];
3432
+ disabledFields?: string[] | null | undefined;
3433
+ }>>>;
3298
3434
  brandId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3299
3435
  brand: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodObject<{
3300
3436
  id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
@@ -3656,10 +3792,10 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
3656
3792
  items?: any[] | null | undefined;
3657
3793
  createdAt?: Date | null | undefined;
3658
3794
  }, unknown>>>;
3659
- customerType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["purchase", "deposit"]>>>;
3795
+ customerType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["purchase", "deposit", "PURCHASE", "DEPOSIT"]>>>;
3660
3796
  customerPaid: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3661
3797
  customerPaidDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3662
- customerPaidType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["transfer", "cash"]>>>;
3798
+ customerPaidType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["transfer", "cash", "TRANSFER", "CASH"]>>>;
3663
3799
  contractId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3664
3800
  contract: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3665
3801
  id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
@@ -3727,7 +3863,12 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
3727
3863
  } | null | undefined;
3728
3864
  }[] | null | undefined;
3729
3865
  categoryId?: number | null | undefined;
3730
- category?: any;
3866
+ category?: {
3867
+ id: number;
3868
+ title: string;
3869
+ sizeGroupIds: number[];
3870
+ disabledFields?: string[] | null | undefined;
3871
+ } | null | undefined;
3731
3872
  brandId?: number | null | undefined;
3732
3873
  sex?: string | null | undefined;
3733
3874
  state?: number | null | undefined;
@@ -3807,10 +3948,10 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
3807
3948
  items?: any[] | null | undefined;
3808
3949
  createdAt?: Date | null | undefined;
3809
3950
  } | null | undefined;
3810
- customerType?: "purchase" | "deposit" | null | undefined;
3951
+ customerType?: "purchase" | "deposit" | "PURCHASE" | "DEPOSIT" | null | undefined;
3811
3952
  customerPaid?: boolean | null | undefined;
3812
3953
  customerPaidDate?: Date | null | undefined;
3813
- customerPaidType?: "transfer" | "cash" | null | undefined;
3954
+ customerPaidType?: "transfer" | "cash" | "TRANSFER" | "CASH" | null | undefined;
3814
3955
  contractId?: number | null | undefined;
3815
3956
  contract?: {
3816
3957
  date: Date;
@@ -3847,7 +3988,12 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
3847
3988
  } | null | undefined;
3848
3989
  }[] | null | undefined;
3849
3990
  categoryId?: number | null | undefined;
3850
- category?: any;
3991
+ category?: {
3992
+ id: number;
3993
+ title: string;
3994
+ sizeGroupIds: number[];
3995
+ disabledFields?: string[] | null | undefined;
3996
+ } | null | undefined;
3851
3997
  brandId?: number | null | undefined;
3852
3998
  sex?: string | null | undefined;
3853
3999
  state?: number | null | undefined;
@@ -3872,10 +4018,10 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
3872
4018
  salePrice?: number | null | undefined;
3873
4019
  customerId?: number | null | undefined;
3874
4020
  customer?: unknown;
3875
- customerType?: "purchase" | "deposit" | null | undefined;
4021
+ customerType?: "purchase" | "deposit" | "PURCHASE" | "DEPOSIT" | null | undefined;
3876
4022
  customerPaid?: boolean | null | undefined;
3877
4023
  customerPaidDate?: Date | null | undefined;
3878
- customerPaidType?: "transfer" | "cash" | null | undefined;
4024
+ customerPaidType?: "transfer" | "cash" | "TRANSFER" | "CASH" | null | undefined;
3879
4025
  contractId?: number | null | undefined;
3880
4026
  contract?: {
3881
4027
  date: Date;
@@ -3915,7 +4061,12 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
3915
4061
  } | null | undefined;
3916
4062
  }[] | null | undefined;
3917
4063
  categoryId?: number | null | undefined;
3918
- category?: any;
4064
+ category?: {
4065
+ id: number;
4066
+ title: string;
4067
+ sizeGroupIds: number[];
4068
+ disabledFields?: string[] | null | undefined;
4069
+ } | null | undefined;
3919
4070
  brandId?: number | null | undefined;
3920
4071
  sex?: string | null | undefined;
3921
4072
  state?: number | null | undefined;
@@ -3995,10 +4146,10 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
3995
4146
  items?: any[] | null | undefined;
3996
4147
  createdAt?: Date | null | undefined;
3997
4148
  } | null | undefined;
3998
- customerType?: "purchase" | "deposit" | null | undefined;
4149
+ customerType?: "purchase" | "deposit" | "PURCHASE" | "DEPOSIT" | null | undefined;
3999
4150
  customerPaid?: boolean | null | undefined;
4000
4151
  customerPaidDate?: Date | null | undefined;
4001
- customerPaidType?: "transfer" | "cash" | null | undefined;
4152
+ customerPaidType?: "transfer" | "cash" | "TRANSFER" | "CASH" | null | undefined;
4002
4153
  contractId?: number | null | undefined;
4003
4154
  contract?: {
4004
4155
  date: Date;
@@ -4042,7 +4193,12 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
4042
4193
  } | null | undefined;
4043
4194
  }[] | null | undefined;
4044
4195
  categoryId?: number | null | undefined;
4045
- category?: any;
4196
+ category?: {
4197
+ id: number;
4198
+ title: string;
4199
+ sizeGroupIds: number[];
4200
+ disabledFields?: string[] | null | undefined;
4201
+ } | null | undefined;
4046
4202
  brandId?: number | null | undefined;
4047
4203
  sex?: string | null | undefined;
4048
4204
  state?: number | null | undefined;
@@ -4122,10 +4278,10 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
4122
4278
  items?: any[] | null | undefined;
4123
4279
  createdAt?: Date | null | undefined;
4124
4280
  } | null | undefined;
4125
- customerType?: "purchase" | "deposit" | null | undefined;
4281
+ customerType?: "purchase" | "deposit" | "PURCHASE" | "DEPOSIT" | null | undefined;
4126
4282
  customerPaid?: boolean | null | undefined;
4127
4283
  customerPaidDate?: Date | null | undefined;
4128
- customerPaidType?: "transfer" | "cash" | null | undefined;
4284
+ customerPaidType?: "transfer" | "cash" | "TRANSFER" | "CASH" | null | undefined;
4129
4285
  contractId?: number | null | undefined;
4130
4286
  contract?: {
4131
4287
  date: Date;
@@ -4245,7 +4401,12 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
4245
4401
  } | null | undefined;
4246
4402
  }[] | null | undefined;
4247
4403
  categoryId?: number | null | undefined;
4248
- category?: any;
4404
+ category?: {
4405
+ id: number;
4406
+ title: string;
4407
+ sizeGroupIds: number[];
4408
+ disabledFields?: string[] | null | undefined;
4409
+ } | null | undefined;
4249
4410
  brandId?: number | null | undefined;
4250
4411
  sex?: string | null | undefined;
4251
4412
  state?: number | null | undefined;
@@ -4325,10 +4486,10 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
4325
4486
  items?: any[] | null | undefined;
4326
4487
  createdAt?: Date | null | undefined;
4327
4488
  } | null | undefined;
4328
- customerType?: "purchase" | "deposit" | null | undefined;
4489
+ customerType?: "purchase" | "deposit" | "PURCHASE" | "DEPOSIT" | null | undefined;
4329
4490
  customerPaid?: boolean | null | undefined;
4330
4491
  customerPaidDate?: Date | null | undefined;
4331
- customerPaidType?: "transfer" | "cash" | null | undefined;
4492
+ customerPaidType?: "transfer" | "cash" | "TRANSFER" | "CASH" | null | undefined;
4332
4493
  contractId?: number | null | undefined;
4333
4494
  contract?: {
4334
4495
  date: Date;
@@ -15,6 +15,7 @@ const size_1 = require("../metadata/size");
15
15
  const fee_1 = require("../fees/fee");
16
16
  const field_1 = require("../users/field");
17
17
  const itemFile_1 = require("./itemFile");
18
+ const catalog_1 = require("../metadata/catalog");
18
19
  exports.ItemSortSchema = zod_1.z.enum([
19
20
  "MOST_RECENT", "OLDEST", "HIGHEST_PRICE", "LOWEST_PRICE",
20
21
  ]);
@@ -26,7 +27,7 @@ exports.ItemSchema = (0, legacy_1.legacy)(zod_1.z.object({
26
27
  images: zod_1.z.array(zod_1.z.string()),
27
28
  files: zod_1.z.array(itemFile_1.ItemFileSchema).nullish(),
28
29
  categoryId: zod_1.z.number().nullish(),
29
- category: zod_1.z.any().nullish(), // Catalog
30
+ category: catalog_1.CatalogSchema.nullish(), // Catalog
30
31
  brandId: zod_1.z.number().nullish(),
31
32
  brand: brand_1.BrandSchema.nullish(),
32
33
  sex: zod_1.z.string().nullish(),
@@ -54,10 +55,10 @@ exports.ItemSchema = (0, legacy_1.legacy)(zod_1.z.object({
54
55
  updatedAt: zod_1.z.coerce.date(),
55
56
  customerId: zod_1.z.number().nullish(),
56
57
  customer: customer_1.CustomerSchema.nullish(),
57
- customerType: zod_1.z.enum(["purchase", "deposit"]).nullish(),
58
+ customerType: zod_1.z.enum(["purchase", "deposit", "PURCHASE", "DEPOSIT"]).nullish(),
58
59
  customerPaid: zod_1.z.boolean().nullish(),
59
60
  customerPaidDate: zod_1.z.coerce.date().nullish(),
60
- customerPaidType: zod_1.z.enum(["transfer", "cash"]).nullish(),
61
+ customerPaidType: zod_1.z.enum(["transfer", "cash", "TRANSFER", "CASH"]).nullish(),
61
62
  contractId: zod_1.z.number().nullish(),
62
63
  contract: itemContract_1.ItemContractSchema.nullish(),
63
64
  fields: zod_1.z.array(itemField_1.ItemFieldSchema).nullish(),
@@ -87,8 +88,10 @@ exports.ItemPayloadSchema = zod_1.z.object({
87
88
  quantity: zod_1.z.number().int().nullish(),
88
89
  batchId: zod_1.z.number().nullish(),
89
90
  customerId: zod_1.z.number().nullish(),
91
+ customerType: zod_1.z.enum(["purchase", "deposit", "PURCHASE", "DEPOSIT"]).nullish(),
90
92
  customerPaid: zod_1.z.boolean().nullish(),
91
- customerType: zod_1.z.string().nullish(),
93
+ customerPaidDate: zod_1.z.coerce.date().nullish(),
94
+ customerPaidType: zod_1.z.enum(["transfer", "cash", "TRANSFER", "CASH"]).nullish(),
92
95
  contractId: zod_1.z.number().nullish(),
93
96
  fields: zod_1.z.array(itemField_1.ItemFieldPayloadSchema).nullish(),
94
97
  });
@@ -9,6 +9,22 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
9
9
  platformUrl: z.ZodString;
10
10
  platformPrice: z.ZodNumber;
11
11
  status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
12
+ account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
13
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
14
+ accountId: z.ZodString;
15
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
16
+ name: z.ZodString;
17
+ }, "strip", z.ZodTypeAny, {
18
+ platform: "VINTED" | "SHOPIFY";
19
+ accountId: string;
20
+ userId: string | number;
21
+ name: string;
22
+ }, {
23
+ platform: "VINTED" | "SHOPIFY";
24
+ accountId: string;
25
+ userId: string | number;
26
+ name: string;
27
+ }>>>;
12
28
  }, "strip", z.ZodTypeAny, {
13
29
  status: "ONLINE" | "DRAFT" | "DELETED" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
14
30
  id: string;
@@ -17,6 +33,12 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
17
33
  platformId: string;
18
34
  platformUrl: string;
19
35
  platformPrice: number;
36
+ account?: {
37
+ platform: "VINTED" | "SHOPIFY";
38
+ accountId: string;
39
+ userId: string | number;
40
+ name: string;
41
+ } | null | undefined;
20
42
  }, {
21
43
  status: "ONLINE" | "DRAFT" | "DELETED" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
22
44
  id: string;
@@ -25,6 +47,12 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
25
47
  platformId: string;
26
48
  platformUrl: string;
27
49
  platformPrice: number;
50
+ account?: {
51
+ platform: "VINTED" | "SHOPIFY";
52
+ accountId: string;
53
+ userId: string | number;
54
+ name: string;
55
+ } | null | undefined;
28
56
  }>;
29
57
  export type ItemOnPlatform = z.infer<typeof ItemOnPlatformSchema>;
30
58
  export declare const CreateItemOnPlatformPayloadSchema: z.ZodObject<{
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ItemOnPlatformsRequestSchema = exports.UpdateItemOnPlatformPayloadSchema = exports.CreateItemOnPlatformPayloadSchema = exports.ItemOnPlatformSchema = exports.ItemOnPlatformStatusSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const primitives_1 = require("../primitives");
6
+ const userOnPlatform_1 = require("../users/userOnPlatform");
6
7
  exports.ItemOnPlatformStatusSchema = zod_1.z.enum([
7
8
  "ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE",
8
9
  ]);
@@ -14,6 +15,7 @@ exports.ItemOnPlatformSchema = zod_1.z.object({
14
15
  platformUrl: zod_1.z.string().url(),
15
16
  platformPrice: zod_1.z.number(),
16
17
  status: exports.ItemOnPlatformStatusSchema,
18
+ account: userOnPlatform_1.UserOnPlatformSchema.nullish(),
17
19
  });
18
20
  exports.CreateItemOnPlatformPayloadSchema = zod_1.z.object({
19
21
  accountId: zod_1.z.string().uuid(),
@@ -0,0 +1,18 @@
1
+ import { z } from "zod";
2
+ export declare const CatalogSchema: z.ZodObject<{
3
+ id: z.ZodNumber;
4
+ sizeGroupIds: z.ZodArray<z.ZodNumber, "many">;
5
+ title: z.ZodString;
6
+ disabledFields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ id: number;
9
+ title: string;
10
+ sizeGroupIds: number[];
11
+ disabledFields?: string[] | null | undefined;
12
+ }, {
13
+ id: number;
14
+ title: string;
15
+ sizeGroupIds: number[];
16
+ disabledFields?: string[] | null | undefined;
17
+ }>;
18
+ export type Catalog = z.infer<typeof CatalogSchema>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CatalogSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.CatalogSchema = zod_1.z.object({
6
+ id: zod_1.z.number(),
7
+ sizeGroupIds: zod_1.z.array(zod_1.z.number()),
8
+ title: zod_1.z.string(),
9
+ disabledFields: zod_1.z.array(zod_1.z.string()).nullish(),
10
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "controlresell",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/index.js",