@reactionary/core 0.0.39 → 0.0.40

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 (46) hide show
  1. package/package.json +2 -2
  2. package/schemas/capabilities.schema.js +1 -1
  3. package/schemas/models/base.model.js +5 -5
  4. package/schemas/models/cart.model.js +1 -1
  5. package/schemas/models/identifiers.model.js +12 -12
  6. package/schemas/models/price.model.js +1 -1
  7. package/schemas/models/product.model.js +2 -2
  8. package/schemas/models/search.model.js +3 -3
  9. package/schemas/mutations/base.mutation.js +1 -1
  10. package/schemas/mutations/inventory.mutation.js +0 -5
  11. package/schemas/mutations/price.mutation.js +0 -5
  12. package/schemas/mutations/product.mutation.js +0 -5
  13. package/schemas/mutations/search.mutation.js +0 -5
  14. package/schemas/queries/analytics.query.js +0 -5
  15. package/schemas/queries/base.query.js +1 -1
  16. package/schemas/queries/cart.query.js +1 -4
  17. package/schemas/queries/inventory.query.js +1 -3
  18. package/src/schemas/capabilities.schema.d.ts +2 -6
  19. package/src/schemas/models/analytics.model.d.ts +6 -22
  20. package/src/schemas/models/base.model.d.ts +21 -61
  21. package/src/schemas/models/cart.model.d.ts +73 -224
  22. package/src/schemas/models/category.model.d.ts +29 -95
  23. package/src/schemas/models/identifiers.model.d.ts +37 -109
  24. package/src/schemas/models/identity.model.d.ts +8 -25
  25. package/src/schemas/models/inventory.model.d.ts +12 -41
  26. package/src/schemas/models/price.model.d.ts +20 -65
  27. package/src/schemas/models/product.model.d.ts +20 -65
  28. package/src/schemas/models/search.model.d.ts +47 -144
  29. package/src/schemas/mutations/analytics.mutation.d.ts +47 -143
  30. package/src/schemas/mutations/base.mutation.d.ts +1 -5
  31. package/src/schemas/mutations/cart.mutation.d.ts +18 -66
  32. package/src/schemas/mutations/identity.mutation.d.ts +3 -19
  33. package/src/schemas/mutations/inventory.mutation.d.ts +1 -3
  34. package/src/schemas/mutations/price.mutation.d.ts +1 -3
  35. package/src/schemas/mutations/product.mutation.d.ts +1 -3
  36. package/src/schemas/mutations/search.mutation.d.ts +1 -3
  37. package/src/schemas/queries/analytics.query.d.ts +1 -3
  38. package/src/schemas/queries/base.query.d.ts +1 -5
  39. package/src/schemas/queries/cart.query.d.ts +4 -33
  40. package/src/schemas/queries/category.query.d.ts +20 -80
  41. package/src/schemas/queries/identity.query.d.ts +1 -9
  42. package/src/schemas/queries/inventory.query.d.ts +4 -34
  43. package/src/schemas/queries/price.query.d.ts +4 -16
  44. package/src/schemas/queries/product.query.d.ts +4 -20
  45. package/src/schemas/queries/search.query.d.ts +10 -30
  46. package/src/schemas/session.schema.d.ts +13 -40
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const CostBreakDownSchema: z.ZodObject<{
3
- totalTax: z.ZodDefault<z.ZodInterface<{
3
+ totalTax: z.ZodDefault<z.ZodObject<{
4
4
  value: z.ZodDefault<z.ZodNumber>;
5
5
  currency: z.ZodDefault<z.ZodEnum<{
6
6
  AED: "AED";
@@ -185,12 +185,8 @@ export declare const CostBreakDownSchema: z.ZodObject<{
185
185
  ZMW: "ZMW";
186
186
  ZWL: "ZWL";
187
187
  }>>;
188
- }, {
189
- optional: never;
190
- defaulted: never;
191
- extra: Record<string, unknown>;
192
- }>>;
193
- totalDiscount: z.ZodDefault<z.ZodInterface<{
188
+ }, z.core.$loose>>;
189
+ totalDiscount: z.ZodDefault<z.ZodObject<{
194
190
  value: z.ZodDefault<z.ZodNumber>;
195
191
  currency: z.ZodDefault<z.ZodEnum<{
196
192
  AED: "AED";
@@ -375,12 +371,8 @@ export declare const CostBreakDownSchema: z.ZodObject<{
375
371
  ZMW: "ZMW";
376
372
  ZWL: "ZWL";
377
373
  }>>;
378
- }, {
379
- optional: never;
380
- defaulted: never;
381
- extra: Record<string, unknown>;
382
- }>>;
383
- totalSurcharge: z.ZodDefault<z.ZodInterface<{
374
+ }, z.core.$loose>>;
375
+ totalSurcharge: z.ZodDefault<z.ZodObject<{
384
376
  value: z.ZodDefault<z.ZodNumber>;
385
377
  currency: z.ZodDefault<z.ZodEnum<{
386
378
  AED: "AED";
@@ -565,12 +557,8 @@ export declare const CostBreakDownSchema: z.ZodObject<{
565
557
  ZMW: "ZMW";
566
558
  ZWL: "ZWL";
567
559
  }>>;
568
- }, {
569
- optional: never;
570
- defaulted: never;
571
- extra: Record<string, unknown>;
572
- }>>;
573
- totalShipping: z.ZodDefault<z.ZodInterface<{
560
+ }, z.core.$loose>>;
561
+ totalShipping: z.ZodDefault<z.ZodObject<{
574
562
  value: z.ZodDefault<z.ZodNumber>;
575
563
  currency: z.ZodDefault<z.ZodEnum<{
576
564
  AED: "AED";
@@ -755,12 +743,8 @@ export declare const CostBreakDownSchema: z.ZodObject<{
755
743
  ZMW: "ZMW";
756
744
  ZWL: "ZWL";
757
745
  }>>;
758
- }, {
759
- optional: never;
760
- defaulted: never;
761
- extra: Record<string, unknown>;
762
- }>>;
763
- totalProductPrice: z.ZodDefault<z.ZodInterface<{
746
+ }, z.core.$loose>>;
747
+ totalProductPrice: z.ZodDefault<z.ZodObject<{
764
748
  value: z.ZodDefault<z.ZodNumber>;
765
749
  currency: z.ZodDefault<z.ZodEnum<{
766
750
  AED: "AED";
@@ -945,12 +929,8 @@ export declare const CostBreakDownSchema: z.ZodObject<{
945
929
  ZMW: "ZMW";
946
930
  ZWL: "ZWL";
947
931
  }>>;
948
- }, {
949
- optional: never;
950
- defaulted: never;
951
- extra: Record<string, unknown>;
952
- }>>;
953
- grandTotal: z.ZodDefault<z.ZodInterface<{
932
+ }, z.core.$loose>>;
933
+ grandTotal: z.ZodDefault<z.ZodObject<{
954
934
  value: z.ZodDefault<z.ZodNumber>;
955
935
  currency: z.ZodDefault<z.ZodEnum<{
956
936
  AED: "AED";
@@ -1135,17 +1115,11 @@ export declare const CostBreakDownSchema: z.ZodObject<{
1135
1115
  ZMW: "ZMW";
1136
1116
  ZWL: "ZWL";
1137
1117
  }>>;
1138
- }, {
1139
- optional: never;
1140
- defaulted: never;
1141
- extra: Record<string, unknown>;
1142
- }>>;
1143
- }, {
1144
- [k: string]: unknown;
1145
- }>;
1118
+ }, z.core.$loose>>;
1119
+ }, z.core.$loose>;
1146
1120
  export type CostBreakDown = z.infer<typeof CostBreakDownSchema>;
1147
1121
  export declare const ItemCostBreakdownSchema: z.ZodObject<{
1148
- unitPrice: z.ZodDefault<z.ZodInterface<{
1122
+ unitPrice: z.ZodDefault<z.ZodObject<{
1149
1123
  value: z.ZodDefault<z.ZodNumber>;
1150
1124
  currency: z.ZodDefault<z.ZodEnum<{
1151
1125
  AED: "AED";
@@ -1330,12 +1304,8 @@ export declare const ItemCostBreakdownSchema: z.ZodObject<{
1330
1304
  ZMW: "ZMW";
1331
1305
  ZWL: "ZWL";
1332
1306
  }>>;
1333
- }, {
1334
- optional: never;
1335
- defaulted: never;
1336
- extra: Record<string, unknown>;
1337
- }>>;
1338
- unitDiscount: z.ZodDefault<z.ZodInterface<{
1307
+ }, z.core.$loose>>;
1308
+ unitDiscount: z.ZodDefault<z.ZodObject<{
1339
1309
  value: z.ZodDefault<z.ZodNumber>;
1340
1310
  currency: z.ZodDefault<z.ZodEnum<{
1341
1311
  AED: "AED";
@@ -1520,12 +1490,8 @@ export declare const ItemCostBreakdownSchema: z.ZodObject<{
1520
1490
  ZMW: "ZMW";
1521
1491
  ZWL: "ZWL";
1522
1492
  }>>;
1523
- }, {
1524
- optional: never;
1525
- defaulted: never;
1526
- extra: Record<string, unknown>;
1527
- }>>;
1528
- totalPrice: z.ZodDefault<z.ZodInterface<{
1493
+ }, z.core.$loose>>;
1494
+ totalPrice: z.ZodDefault<z.ZodObject<{
1529
1495
  value: z.ZodDefault<z.ZodNumber>;
1530
1496
  currency: z.ZodDefault<z.ZodEnum<{
1531
1497
  AED: "AED";
@@ -1710,12 +1676,8 @@ export declare const ItemCostBreakdownSchema: z.ZodObject<{
1710
1676
  ZMW: "ZMW";
1711
1677
  ZWL: "ZWL";
1712
1678
  }>>;
1713
- }, {
1714
- optional: never;
1715
- defaulted: never;
1716
- extra: Record<string, unknown>;
1717
- }>>;
1718
- totalDiscount: z.ZodDefault<z.ZodInterface<{
1679
+ }, z.core.$loose>>;
1680
+ totalDiscount: z.ZodDefault<z.ZodObject<{
1719
1681
  value: z.ZodDefault<z.ZodNumber>;
1720
1682
  currency: z.ZodDefault<z.ZodEnum<{
1721
1683
  AED: "AED";
@@ -1900,33 +1862,19 @@ export declare const ItemCostBreakdownSchema: z.ZodObject<{
1900
1862
  ZMW: "ZMW";
1901
1863
  ZWL: "ZWL";
1902
1864
  }>>;
1903
- }, {
1904
- optional: never;
1905
- defaulted: never;
1906
- extra: Record<string, unknown>;
1907
- }>>;
1908
- }, {
1909
- [k: string]: unknown;
1910
- }>;
1865
+ }, z.core.$loose>>;
1866
+ }, z.core.$loose>;
1911
1867
  export type ItemCostBreakdown = z.infer<typeof ItemCostBreakdownSchema>;
1912
- export declare const CartItemSchema: z.ZodInterface<{
1913
- identifier: z.ZodDefault<z.ZodInterface<{
1868
+ export declare const CartItemSchema: z.ZodObject<{
1869
+ identifier: z.ZodDefault<z.ZodObject<{
1914
1870
  key: z.ZodDefault<z.ZodString>;
1915
- }, {
1916
- optional: never;
1917
- defaulted: never;
1918
- extra: Record<string, unknown>;
1919
- }>>;
1920
- product: z.ZodDefault<z.ZodInterface<{
1871
+ }, z.core.$loose>>;
1872
+ product: z.ZodDefault<z.ZodObject<{
1921
1873
  key: z.ZodDefault<z.ZodString>;
1922
- }, {
1923
- optional: never;
1924
- defaulted: never;
1925
- extra: Record<string, unknown>;
1926
- }>>;
1874
+ }, z.core.$loose>>;
1927
1875
  quantity: z.ZodDefault<z.ZodNumber>;
1928
1876
  price: z.ZodDefault<z.ZodObject<{
1929
- unitPrice: z.ZodDefault<z.ZodInterface<{
1877
+ unitPrice: z.ZodDefault<z.ZodObject<{
1930
1878
  value: z.ZodDefault<z.ZodNumber>;
1931
1879
  currency: z.ZodDefault<z.ZodEnum<{
1932
1880
  AED: "AED";
@@ -2111,12 +2059,8 @@ export declare const CartItemSchema: z.ZodInterface<{
2111
2059
  ZMW: "ZMW";
2112
2060
  ZWL: "ZWL";
2113
2061
  }>>;
2114
- }, {
2115
- optional: never;
2116
- defaulted: never;
2117
- extra: Record<string, unknown>;
2118
- }>>;
2119
- unitDiscount: z.ZodDefault<z.ZodInterface<{
2062
+ }, z.core.$loose>>;
2063
+ unitDiscount: z.ZodDefault<z.ZodObject<{
2120
2064
  value: z.ZodDefault<z.ZodNumber>;
2121
2065
  currency: z.ZodDefault<z.ZodEnum<{
2122
2066
  AED: "AED";
@@ -2301,12 +2245,8 @@ export declare const CartItemSchema: z.ZodInterface<{
2301
2245
  ZMW: "ZMW";
2302
2246
  ZWL: "ZWL";
2303
2247
  }>>;
2304
- }, {
2305
- optional: never;
2306
- defaulted: never;
2307
- extra: Record<string, unknown>;
2308
- }>>;
2309
- totalPrice: z.ZodDefault<z.ZodInterface<{
2248
+ }, z.core.$loose>>;
2249
+ totalPrice: z.ZodDefault<z.ZodObject<{
2310
2250
  value: z.ZodDefault<z.ZodNumber>;
2311
2251
  currency: z.ZodDefault<z.ZodEnum<{
2312
2252
  AED: "AED";
@@ -2491,12 +2431,8 @@ export declare const CartItemSchema: z.ZodInterface<{
2491
2431
  ZMW: "ZMW";
2492
2432
  ZWL: "ZWL";
2493
2433
  }>>;
2494
- }, {
2495
- optional: never;
2496
- defaulted: never;
2497
- extra: Record<string, unknown>;
2498
- }>>;
2499
- totalDiscount: z.ZodDefault<z.ZodInterface<{
2434
+ }, z.core.$loose>>;
2435
+ totalDiscount: z.ZodDefault<z.ZodObject<{
2500
2436
  value: z.ZodDefault<z.ZodNumber>;
2501
2437
  currency: z.ZodDefault<z.ZodEnum<{
2502
2438
  AED: "AED";
@@ -2681,65 +2617,30 @@ export declare const CartItemSchema: z.ZodInterface<{
2681
2617
  ZMW: "ZMW";
2682
2618
  ZWL: "ZWL";
2683
2619
  }>>;
2684
- }, {
2685
- optional: never;
2686
- defaulted: never;
2687
- extra: Record<string, unknown>;
2688
- }>>;
2689
- }, {
2690
- [k: string]: unknown;
2691
- }>>;
2692
- }, {
2693
- optional: never;
2694
- defaulted: never;
2695
- extra: Record<string, unknown>;
2696
- }>;
2697
- export declare const CartSchema: z.MergeInterfaces<z.ZodInterface<{
2698
- meta: z.ZodDefault<z.ZodInterface<{
2699
- cache: z.ZodDefault<z.ZodInterface<{
2620
+ }, z.core.$loose>>;
2621
+ }, z.core.$loose>>;
2622
+ }, z.core.$loose>;
2623
+ export declare const CartSchema: z.ZodObject<{
2624
+ meta: z.ZodDefault<z.ZodObject<{
2625
+ cache: z.ZodDefault<z.ZodObject<{
2700
2626
  hit: z.ZodDefault<z.ZodBoolean>;
2701
2627
  key: z.ZodDefault<z.ZodString>;
2702
- }, {
2703
- optional: never;
2704
- defaulted: never;
2705
- extra: Record<string, unknown>;
2706
- }>>;
2628
+ }, z.core.$loose>>;
2707
2629
  placeholder: z.ZodDefault<z.ZodBoolean>;
2708
- }, {
2709
- optional: never;
2710
- defaulted: never;
2711
- extra: Record<string, unknown>;
2712
- }>>;
2713
- }, {
2714
- optional: never;
2715
- defaulted: never;
2716
- extra: Record<string, unknown>;
2717
- }>, z.ZodInterface<{
2718
- identifier: z.ZodDefault<z.ZodInterface<{
2630
+ }, z.core.$loose>>;
2631
+ identifier: z.ZodDefault<z.ZodObject<{
2719
2632
  key: z.ZodDefault<z.ZodString>;
2720
- }, {
2721
- optional: never;
2722
- defaulted: never;
2723
- extra: Record<string, unknown>;
2724
- }>>;
2725
- items: z.ZodDefault<z.ZodArray<z.ZodInterface<{
2726
- identifier: z.ZodDefault<z.ZodInterface<{
2633
+ }, z.core.$loose>>;
2634
+ items: z.ZodDefault<z.ZodArray<z.ZodObject<{
2635
+ identifier: z.ZodDefault<z.ZodObject<{
2727
2636
  key: z.ZodDefault<z.ZodString>;
2728
- }, {
2729
- optional: never;
2730
- defaulted: never;
2731
- extra: Record<string, unknown>;
2732
- }>>;
2733
- product: z.ZodDefault<z.ZodInterface<{
2637
+ }, z.core.$loose>>;
2638
+ product: z.ZodDefault<z.ZodObject<{
2734
2639
  key: z.ZodDefault<z.ZodString>;
2735
- }, {
2736
- optional: never;
2737
- defaulted: never;
2738
- extra: Record<string, unknown>;
2739
- }>>;
2640
+ }, z.core.$loose>>;
2740
2641
  quantity: z.ZodDefault<z.ZodNumber>;
2741
2642
  price: z.ZodDefault<z.ZodObject<{
2742
- unitPrice: z.ZodDefault<z.ZodInterface<{
2643
+ unitPrice: z.ZodDefault<z.ZodObject<{
2743
2644
  value: z.ZodDefault<z.ZodNumber>;
2744
2645
  currency: z.ZodDefault<z.ZodEnum<{
2745
2646
  AED: "AED";
@@ -2924,12 +2825,8 @@ export declare const CartSchema: z.MergeInterfaces<z.ZodInterface<{
2924
2825
  ZMW: "ZMW";
2925
2826
  ZWL: "ZWL";
2926
2827
  }>>;
2927
- }, {
2928
- optional: never;
2929
- defaulted: never;
2930
- extra: Record<string, unknown>;
2931
- }>>;
2932
- unitDiscount: z.ZodDefault<z.ZodInterface<{
2828
+ }, z.core.$loose>>;
2829
+ unitDiscount: z.ZodDefault<z.ZodObject<{
2933
2830
  value: z.ZodDefault<z.ZodNumber>;
2934
2831
  currency: z.ZodDefault<z.ZodEnum<{
2935
2832
  AED: "AED";
@@ -3114,12 +3011,8 @@ export declare const CartSchema: z.MergeInterfaces<z.ZodInterface<{
3114
3011
  ZMW: "ZMW";
3115
3012
  ZWL: "ZWL";
3116
3013
  }>>;
3117
- }, {
3118
- optional: never;
3119
- defaulted: never;
3120
- extra: Record<string, unknown>;
3121
- }>>;
3122
- totalPrice: z.ZodDefault<z.ZodInterface<{
3014
+ }, z.core.$loose>>;
3015
+ totalPrice: z.ZodDefault<z.ZodObject<{
3123
3016
  value: z.ZodDefault<z.ZodNumber>;
3124
3017
  currency: z.ZodDefault<z.ZodEnum<{
3125
3018
  AED: "AED";
@@ -3304,12 +3197,8 @@ export declare const CartSchema: z.MergeInterfaces<z.ZodInterface<{
3304
3197
  ZMW: "ZMW";
3305
3198
  ZWL: "ZWL";
3306
3199
  }>>;
3307
- }, {
3308
- optional: never;
3309
- defaulted: never;
3310
- extra: Record<string, unknown>;
3311
- }>>;
3312
- totalDiscount: z.ZodDefault<z.ZodInterface<{
3200
+ }, z.core.$loose>>;
3201
+ totalDiscount: z.ZodDefault<z.ZodObject<{
3313
3202
  value: z.ZodDefault<z.ZodNumber>;
3314
3203
  currency: z.ZodDefault<z.ZodEnum<{
3315
3204
  AED: "AED";
@@ -3494,21 +3383,11 @@ export declare const CartSchema: z.MergeInterfaces<z.ZodInterface<{
3494
3383
  ZMW: "ZMW";
3495
3384
  ZWL: "ZWL";
3496
3385
  }>>;
3497
- }, {
3498
- optional: never;
3499
- defaulted: never;
3500
- extra: Record<string, unknown>;
3501
- }>>;
3502
- }, {
3503
- [k: string]: unknown;
3504
- }>>;
3505
- }, {
3506
- optional: never;
3507
- defaulted: never;
3508
- extra: Record<string, unknown>;
3509
- }>>>;
3386
+ }, z.core.$loose>>;
3387
+ }, z.core.$loose>>;
3388
+ }, z.core.$loose>>>;
3510
3389
  price: z.ZodDefault<z.ZodObject<{
3511
- totalTax: z.ZodDefault<z.ZodInterface<{
3390
+ totalTax: z.ZodDefault<z.ZodObject<{
3512
3391
  value: z.ZodDefault<z.ZodNumber>;
3513
3392
  currency: z.ZodDefault<z.ZodEnum<{
3514
3393
  AED: "AED";
@@ -3693,12 +3572,8 @@ export declare const CartSchema: z.MergeInterfaces<z.ZodInterface<{
3693
3572
  ZMW: "ZMW";
3694
3573
  ZWL: "ZWL";
3695
3574
  }>>;
3696
- }, {
3697
- optional: never;
3698
- defaulted: never;
3699
- extra: Record<string, unknown>;
3700
- }>>;
3701
- totalDiscount: z.ZodDefault<z.ZodInterface<{
3575
+ }, z.core.$loose>>;
3576
+ totalDiscount: z.ZodDefault<z.ZodObject<{
3702
3577
  value: z.ZodDefault<z.ZodNumber>;
3703
3578
  currency: z.ZodDefault<z.ZodEnum<{
3704
3579
  AED: "AED";
@@ -3883,12 +3758,8 @@ export declare const CartSchema: z.MergeInterfaces<z.ZodInterface<{
3883
3758
  ZMW: "ZMW";
3884
3759
  ZWL: "ZWL";
3885
3760
  }>>;
3886
- }, {
3887
- optional: never;
3888
- defaulted: never;
3889
- extra: Record<string, unknown>;
3890
- }>>;
3891
- totalSurcharge: z.ZodDefault<z.ZodInterface<{
3761
+ }, z.core.$loose>>;
3762
+ totalSurcharge: z.ZodDefault<z.ZodObject<{
3892
3763
  value: z.ZodDefault<z.ZodNumber>;
3893
3764
  currency: z.ZodDefault<z.ZodEnum<{
3894
3765
  AED: "AED";
@@ -4073,12 +3944,8 @@ export declare const CartSchema: z.MergeInterfaces<z.ZodInterface<{
4073
3944
  ZMW: "ZMW";
4074
3945
  ZWL: "ZWL";
4075
3946
  }>>;
4076
- }, {
4077
- optional: never;
4078
- defaulted: never;
4079
- extra: Record<string, unknown>;
4080
- }>>;
4081
- totalShipping: z.ZodDefault<z.ZodInterface<{
3947
+ }, z.core.$loose>>;
3948
+ totalShipping: z.ZodDefault<z.ZodObject<{
4082
3949
  value: z.ZodDefault<z.ZodNumber>;
4083
3950
  currency: z.ZodDefault<z.ZodEnum<{
4084
3951
  AED: "AED";
@@ -4263,12 +4130,8 @@ export declare const CartSchema: z.MergeInterfaces<z.ZodInterface<{
4263
4130
  ZMW: "ZMW";
4264
4131
  ZWL: "ZWL";
4265
4132
  }>>;
4266
- }, {
4267
- optional: never;
4268
- defaulted: never;
4269
- extra: Record<string, unknown>;
4270
- }>>;
4271
- totalProductPrice: z.ZodDefault<z.ZodInterface<{
4133
+ }, z.core.$loose>>;
4134
+ totalProductPrice: z.ZodDefault<z.ZodObject<{
4272
4135
  value: z.ZodDefault<z.ZodNumber>;
4273
4136
  currency: z.ZodDefault<z.ZodEnum<{
4274
4137
  AED: "AED";
@@ -4453,12 +4316,8 @@ export declare const CartSchema: z.MergeInterfaces<z.ZodInterface<{
4453
4316
  ZMW: "ZMW";
4454
4317
  ZWL: "ZWL";
4455
4318
  }>>;
4456
- }, {
4457
- optional: never;
4458
- defaulted: never;
4459
- extra: Record<string, unknown>;
4460
- }>>;
4461
- grandTotal: z.ZodDefault<z.ZodInterface<{
4319
+ }, z.core.$loose>>;
4320
+ grandTotal: z.ZodDefault<z.ZodObject<{
4462
4321
  value: z.ZodDefault<z.ZodNumber>;
4463
4322
  currency: z.ZodDefault<z.ZodEnum<{
4464
4323
  AED: "AED";
@@ -4643,20 +4502,10 @@ export declare const CartSchema: z.MergeInterfaces<z.ZodInterface<{
4643
4502
  ZMW: "ZMW";
4644
4503
  ZWL: "ZWL";
4645
4504
  }>>;
4646
- }, {
4647
- optional: never;
4648
- defaulted: never;
4649
- extra: Record<string, unknown>;
4650
- }>>;
4651
- }, {
4652
- [k: string]: unknown;
4653
- }>>;
4505
+ }, z.core.$loose>>;
4506
+ }, z.core.$loose>>;
4654
4507
  name: z.ZodDefault<z.ZodString>;
4655
4508
  description: z.ZodDefault<z.ZodString>;
4656
- }, {
4657
- optional: never;
4658
- defaulted: never;
4659
- extra: {};
4660
- }>>;
4509
+ }, z.core.$loose>;
4661
4510
  export type CartItem = z.infer<typeof CartItemSchema>;
4662
4511
  export type Cart = z.infer<typeof CartSchema>;
@@ -1,130 +1,64 @@
1
1
  import { z } from 'zod';
2
- export declare const CategorySchema: z.MergeInterfaces<z.ZodInterface<{
3
- meta: z.ZodDefault<z.ZodInterface<{
4
- cache: z.ZodDefault<z.ZodInterface<{
2
+ export declare const CategorySchema: z.ZodObject<{
3
+ meta: z.ZodDefault<z.ZodObject<{
4
+ cache: z.ZodDefault<z.ZodObject<{
5
5
  hit: z.ZodDefault<z.ZodBoolean>;
6
6
  key: z.ZodDefault<z.ZodString>;
7
- }, {
8
- optional: never;
9
- defaulted: never;
10
- extra: Record<string, unknown>;
11
- }>>;
7
+ }, z.core.$loose>>;
12
8
  placeholder: z.ZodDefault<z.ZodBoolean>;
13
- }, {
14
- optional: never;
15
- defaulted: never;
16
- extra: Record<string, unknown>;
17
- }>>;
18
- }, {
19
- optional: never;
20
- defaulted: never;
21
- extra: Record<string, unknown>;
22
- }>, z.ZodInterface<{
23
- identifier: z.ZodDefault<z.ZodInterface<{
9
+ }, z.core.$loose>>;
10
+ identifier: z.ZodDefault<z.ZodObject<{
24
11
  key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
25
- }, {
26
- optional: never;
27
- defaulted: never;
28
- extra: Record<string, unknown>;
29
- }>>;
12
+ }, z.core.$loose>>;
30
13
  name: z.ZodDefault<z.ZodString>;
31
14
  slug: z.ZodDefault<z.ZodString>;
32
15
  text: z.ZodDefault<z.ZodString>;
33
- images: z.ZodDefault<z.ZodArray<z.ZodInterface<{
16
+ images: z.ZodDefault<z.ZodArray<z.ZodObject<{
34
17
  sourceUrl: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
35
18
  altText: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
36
19
  width: z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>;
37
20
  height: z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>;
38
- }, {
39
- optional: never;
40
- defaulted: never;
41
- extra: Record<string, unknown>;
42
- }>>>;
43
- parentCategory: z.ZodOptional<z.ZodInterface<{
21
+ }, z.core.$loose>>>;
22
+ parentCategory: z.ZodOptional<z.ZodObject<{
44
23
  key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
45
- }, {
46
- optional: never;
47
- defaulted: never;
48
- extra: Record<string, unknown>;
49
- }>>;
50
- }, {
51
- optional: never;
52
- defaulted: never;
53
- extra: {};
54
- }>>;
24
+ }, z.core.$loose>>;
25
+ }, z.core.$loose>;
55
26
  export type Category = z.infer<typeof CategorySchema>;
56
27
  export declare const CategoryPaginatedResultSchema: z.ZodObject<{
57
- meta: z.ZodDefault<z.ZodInterface<{
58
- cache: z.ZodDefault<z.ZodInterface<{
28
+ meta: z.ZodDefault<z.ZodObject<{
29
+ cache: z.ZodDefault<z.ZodObject<{
59
30
  hit: z.ZodDefault<z.ZodBoolean>;
60
31
  key: z.ZodDefault<z.ZodString>;
61
- }, {
62
- optional: never;
63
- defaulted: never;
64
- extra: Record<string, unknown>;
65
- }>>;
32
+ }, z.core.$loose>>;
66
33
  placeholder: z.ZodDefault<z.ZodBoolean>;
67
- }, {
68
- optional: never;
69
- defaulted: never;
70
- extra: Record<string, unknown>;
71
- }>>;
34
+ }, z.core.$loose>>;
72
35
  pageNumber: z.ZodNumber;
73
36
  pageSize: z.ZodNumber;
74
37
  totalCount: z.ZodNumber;
75
38
  totalPages: z.ZodNumber;
76
- items: z.ZodArray<z.MergeInterfaces<z.ZodInterface<{
77
- meta: z.ZodDefault<z.ZodInterface<{
78
- cache: z.ZodDefault<z.ZodInterface<{
39
+ items: z.ZodArray<z.ZodObject<{
40
+ meta: z.ZodDefault<z.ZodObject<{
41
+ cache: z.ZodDefault<z.ZodObject<{
79
42
  hit: z.ZodDefault<z.ZodBoolean>;
80
43
  key: z.ZodDefault<z.ZodString>;
81
- }, {
82
- optional: never;
83
- defaulted: never;
84
- extra: Record<string, unknown>;
85
- }>>;
44
+ }, z.core.$loose>>;
86
45
  placeholder: z.ZodDefault<z.ZodBoolean>;
87
- }, {
88
- optional: never;
89
- defaulted: never;
90
- extra: Record<string, unknown>;
91
- }>>;
92
- }, {
93
- optional: never;
94
- defaulted: never;
95
- extra: Record<string, unknown>;
96
- }>, z.ZodInterface<{
97
- identifier: z.ZodDefault<z.ZodInterface<{
46
+ }, z.core.$loose>>;
47
+ identifier: z.ZodDefault<z.ZodObject<{
98
48
  key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
99
- }, {
100
- optional: never;
101
- defaulted: never;
102
- extra: Record<string, unknown>;
103
- }>>;
49
+ }, z.core.$loose>>;
104
50
  name: z.ZodDefault<z.ZodString>;
105
51
  slug: z.ZodDefault<z.ZodString>;
106
52
  text: z.ZodDefault<z.ZodString>;
107
- images: z.ZodDefault<z.ZodArray<z.ZodInterface<{
53
+ images: z.ZodDefault<z.ZodArray<z.ZodObject<{
108
54
  sourceUrl: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
109
55
  altText: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
110
56
  width: z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>;
111
57
  height: z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>;
112
- }, {
113
- optional: never;
114
- defaulted: never;
115
- extra: Record<string, unknown>;
116
- }>>>;
117
- parentCategory: z.ZodOptional<z.ZodInterface<{
58
+ }, z.core.$loose>>>;
59
+ parentCategory: z.ZodOptional<z.ZodObject<{
118
60
  key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
119
- }, {
120
- optional: never;
121
- defaulted: never;
122
- extra: Record<string, unknown>;
123
- }>>;
124
- }, {
125
- optional: never;
126
- defaulted: never;
127
- extra: {};
128
- }>>>;
129
- }, {}>;
61
+ }, z.core.$loose>>;
62
+ }, z.core.$loose>>;
63
+ }, z.core.$strip>;
130
64
  export type CategoryPaginatedResult = z.infer<typeof CategoryPaginatedResultSchema>;