@instockng/api-client 1.0.34 → 1.0.36

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.
@@ -21,19 +21,19 @@ import { fetchCart, updateCart, createCart, addCartItem, updateCartItem, removeC
21
21
  export declare function useGetCart(cartId: string, options?: Omit<UseQueryOptions<Awaited<ReturnType<typeof fetchCart>>, Error>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<{
22
22
  id: string;
23
23
  brand: {
24
- createdAt: string;
25
- updatedAt: string;
26
- deletedAt: string;
27
24
  id: string;
28
25
  name: string;
29
26
  slug: string;
30
- logoUrl: string | null;
27
+ logoUrl: string;
31
28
  siteUrl: string;
32
29
  domain: string;
33
- metaPixelId: string | null;
34
- tiktokPixelId: string | null;
35
- paystackPublicKey: string | null;
36
- paystackSecretKey: string | null;
30
+ metaPixelId: string;
31
+ tiktokPixelId: string;
32
+ paystackPublicKey: string;
33
+ freeShippingThreshold: number;
34
+ createdAt: string;
35
+ updatedAt: string;
36
+ deletedAt: string;
37
37
  };
38
38
  customerPhone: string;
39
39
  customerEmail: string;
@@ -53,9 +53,10 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
53
53
  createdAt: string;
54
54
  updatedAt: string;
55
55
  deletedAt: string;
56
- brandId: string | null;
57
- isActive: boolean;
58
56
  code: string;
57
+ isActive: boolean;
58
+ brandId: string | null;
59
+ description: string | null;
59
60
  minPurchase: string;
60
61
  maxDiscount: string;
61
62
  usageLimit: number | null;
@@ -64,14 +65,12 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
64
65
  validFrom: string;
65
66
  validUntil: string;
66
67
  isAutoApply: boolean;
67
- description: string | null;
68
68
  category: string;
69
69
  createdBy: string | null;
70
70
  };
71
71
  items: {
72
72
  id: string;
73
73
  variant: {
74
- price: number;
75
74
  product: {
76
75
  id: string;
77
76
  name: string;
@@ -79,8 +78,8 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
79
78
  createdAt: string;
80
79
  updatedAt: string;
81
80
  deletedAt: string;
82
- brandId: string;
83
81
  isActive: boolean;
82
+ brandId: string;
84
83
  description: string | null;
85
84
  thumbnailUrl: string | null;
86
85
  quantityDiscounts: string | number | boolean | {
@@ -520,16 +519,18 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
520
519
  };
521
520
  };
522
521
  };
523
- id: string;
524
- name: string | null;
525
522
  createdAt: string;
526
523
  updatedAt: string;
524
+ price: number;
525
+ compareAtPrice: number;
527
526
  deletedAt: string;
527
+ thumbnailUrl: string;
528
+ originalPrice: number;
529
+ id: string;
530
+ name: string | null;
528
531
  isActive: boolean;
529
- thumbnailUrl: string | null;
530
532
  productId: string;
531
533
  sku: string;
532
- compareAtPrice: string;
533
534
  trackInventory: boolean;
534
535
  lowStockThreshold: number | null;
535
536
  };
@@ -576,19 +577,19 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
576
577
  export declare function useUpdateCart(cartId: string, options?: UseMutationOptions<Awaited<ReturnType<typeof updateCart>>, Error, Parameters<typeof updateCart>[1]>): import("@tanstack/react-query").UseMutationResult<{
577
578
  id: string;
578
579
  brand: {
579
- createdAt: string;
580
- updatedAt: string;
581
- deletedAt: string;
582
580
  id: string;
583
581
  name: string;
584
582
  slug: string;
585
- logoUrl: string | null;
583
+ logoUrl: string;
586
584
  siteUrl: string;
587
585
  domain: string;
588
- metaPixelId: string | null;
589
- tiktokPixelId: string | null;
590
- paystackPublicKey: string | null;
591
- paystackSecretKey: string | null;
586
+ metaPixelId: string;
587
+ tiktokPixelId: string;
588
+ paystackPublicKey: string;
589
+ freeShippingThreshold: number;
590
+ createdAt: string;
591
+ updatedAt: string;
592
+ deletedAt: string;
592
593
  };
593
594
  customerPhone: string;
594
595
  customerEmail: string;
@@ -608,9 +609,10 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
608
609
  createdAt: string;
609
610
  updatedAt: string;
610
611
  deletedAt: string;
611
- brandId: string | null;
612
- isActive: boolean;
613
612
  code: string;
613
+ isActive: boolean;
614
+ brandId: string | null;
615
+ description: string | null;
614
616
  minPurchase: string;
615
617
  maxDiscount: string;
616
618
  usageLimit: number | null;
@@ -619,14 +621,12 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
619
621
  validFrom: string;
620
622
  validUntil: string;
621
623
  isAutoApply: boolean;
622
- description: string | null;
623
624
  category: string;
624
625
  createdBy: string | null;
625
626
  };
626
627
  items: {
627
628
  id: string;
628
629
  variant: {
629
- price: number;
630
630
  product: {
631
631
  id: string;
632
632
  name: string;
@@ -634,8 +634,8 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
634
634
  createdAt: string;
635
635
  updatedAt: string;
636
636
  deletedAt: string;
637
- brandId: string;
638
637
  isActive: boolean;
638
+ brandId: string;
639
639
  description: string | null;
640
640
  thumbnailUrl: string | null;
641
641
  quantityDiscounts: string | number | boolean | {
@@ -1075,16 +1075,18 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
1075
1075
  };
1076
1076
  };
1077
1077
  };
1078
- id: string;
1079
- name: string | null;
1080
1078
  createdAt: string;
1081
1079
  updatedAt: string;
1080
+ price: number;
1081
+ compareAtPrice: number;
1082
1082
  deletedAt: string;
1083
+ thumbnailUrl: string;
1084
+ originalPrice: number;
1085
+ id: string;
1086
+ name: string | null;
1083
1087
  isActive: boolean;
1084
- thumbnailUrl: string | null;
1085
1088
  productId: string;
1086
1089
  sku: string;
1087
- compareAtPrice: string;
1088
1090
  trackInventory: boolean;
1089
1091
  lowStockThreshold: number | null;
1090
1092
  };
@@ -1139,19 +1141,19 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
1139
1141
  export declare function useCreateCart(options?: UseMutationOptions<Awaited<ReturnType<typeof createCart>>, Error, string>): import("@tanstack/react-query").UseMutationResult<{
1140
1142
  id: string;
1141
1143
  brand: {
1142
- createdAt: string;
1143
- updatedAt: string;
1144
- deletedAt: string;
1145
1144
  id: string;
1146
1145
  name: string;
1147
1146
  slug: string;
1148
- logoUrl: string | null;
1147
+ logoUrl: string;
1149
1148
  siteUrl: string;
1150
1149
  domain: string;
1151
- metaPixelId: string | null;
1152
- tiktokPixelId: string | null;
1153
- paystackPublicKey: string | null;
1154
- paystackSecretKey: string | null;
1150
+ metaPixelId: string;
1151
+ tiktokPixelId: string;
1152
+ paystackPublicKey: string;
1153
+ freeShippingThreshold: number;
1154
+ createdAt: string;
1155
+ updatedAt: string;
1156
+ deletedAt: string;
1155
1157
  };
1156
1158
  customerPhone: string;
1157
1159
  customerEmail: string;
@@ -1171,9 +1173,10 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
1171
1173
  createdAt: string;
1172
1174
  updatedAt: string;
1173
1175
  deletedAt: string;
1174
- brandId: string | null;
1175
- isActive: boolean;
1176
1176
  code: string;
1177
+ isActive: boolean;
1178
+ brandId: string | null;
1179
+ description: string | null;
1177
1180
  minPurchase: string;
1178
1181
  maxDiscount: string;
1179
1182
  usageLimit: number | null;
@@ -1182,14 +1185,12 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
1182
1185
  validFrom: string;
1183
1186
  validUntil: string;
1184
1187
  isAutoApply: boolean;
1185
- description: string | null;
1186
1188
  category: string;
1187
1189
  createdBy: string | null;
1188
1190
  };
1189
1191
  items: {
1190
1192
  id: string;
1191
1193
  variant: {
1192
- price: number;
1193
1194
  product: {
1194
1195
  id: string;
1195
1196
  name: string;
@@ -1197,8 +1198,8 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
1197
1198
  createdAt: string;
1198
1199
  updatedAt: string;
1199
1200
  deletedAt: string;
1200
- brandId: string;
1201
1201
  isActive: boolean;
1202
+ brandId: string;
1202
1203
  description: string | null;
1203
1204
  thumbnailUrl: string | null;
1204
1205
  quantityDiscounts: string | number | boolean | {
@@ -1638,16 +1639,18 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
1638
1639
  };
1639
1640
  };
1640
1641
  };
1641
- id: string;
1642
- name: string | null;
1643
1642
  createdAt: string;
1644
1643
  updatedAt: string;
1644
+ price: number;
1645
+ compareAtPrice: number;
1645
1646
  deletedAt: string;
1647
+ thumbnailUrl: string;
1648
+ originalPrice: number;
1649
+ id: string;
1650
+ name: string | null;
1646
1651
  isActive: boolean;
1647
- thumbnailUrl: string | null;
1648
1652
  productId: string;
1649
1653
  sku: string;
1650
- compareAtPrice: string;
1651
1654
  trackInventory: boolean;
1652
1655
  lowStockThreshold: number | null;
1653
1656
  };
@@ -1693,19 +1696,19 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
1693
1696
  }>): import("@tanstack/react-query").UseMutationResult<{
1694
1697
  id: string;
1695
1698
  brand: {
1696
- createdAt: string;
1697
- updatedAt: string;
1698
- deletedAt: string;
1699
1699
  id: string;
1700
1700
  name: string;
1701
1701
  slug: string;
1702
- logoUrl: string | null;
1702
+ logoUrl: string;
1703
1703
  siteUrl: string;
1704
1704
  domain: string;
1705
- metaPixelId: string | null;
1706
- tiktokPixelId: string | null;
1707
- paystackPublicKey: string | null;
1708
- paystackSecretKey: string | null;
1705
+ metaPixelId: string;
1706
+ tiktokPixelId: string;
1707
+ paystackPublicKey: string;
1708
+ freeShippingThreshold: number;
1709
+ createdAt: string;
1710
+ updatedAt: string;
1711
+ deletedAt: string;
1709
1712
  };
1710
1713
  customerPhone: string;
1711
1714
  customerEmail: string;
@@ -1725,9 +1728,10 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
1725
1728
  createdAt: string;
1726
1729
  updatedAt: string;
1727
1730
  deletedAt: string;
1728
- brandId: string | null;
1729
- isActive: boolean;
1730
1731
  code: string;
1732
+ isActive: boolean;
1733
+ brandId: string | null;
1734
+ description: string | null;
1731
1735
  minPurchase: string;
1732
1736
  maxDiscount: string;
1733
1737
  usageLimit: number | null;
@@ -1736,14 +1740,12 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
1736
1740
  validFrom: string;
1737
1741
  validUntil: string;
1738
1742
  isAutoApply: boolean;
1739
- description: string | null;
1740
1743
  category: string;
1741
1744
  createdBy: string | null;
1742
1745
  };
1743
1746
  items: {
1744
1747
  id: string;
1745
1748
  variant: {
1746
- price: number;
1747
1749
  product: {
1748
1750
  id: string;
1749
1751
  name: string;
@@ -1751,8 +1753,8 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
1751
1753
  createdAt: string;
1752
1754
  updatedAt: string;
1753
1755
  deletedAt: string;
1754
- brandId: string;
1755
1756
  isActive: boolean;
1757
+ brandId: string;
1756
1758
  description: string | null;
1757
1759
  thumbnailUrl: string | null;
1758
1760
  quantityDiscounts: string | number | boolean | {
@@ -2192,16 +2194,18 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
2192
2194
  };
2193
2195
  };
2194
2196
  };
2195
- id: string;
2196
- name: string | null;
2197
2197
  createdAt: string;
2198
2198
  updatedAt: string;
2199
+ price: number;
2200
+ compareAtPrice: number;
2199
2201
  deletedAt: string;
2202
+ thumbnailUrl: string;
2203
+ originalPrice: number;
2204
+ id: string;
2205
+ name: string | null;
2200
2206
  isActive: boolean;
2201
- thumbnailUrl: string | null;
2202
2207
  productId: string;
2203
2208
  sku: string;
2204
- compareAtPrice: string;
2205
2209
  trackInventory: boolean;
2206
2210
  lowStockThreshold: number | null;
2207
2211
  };
@@ -2252,19 +2256,19 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
2252
2256
  export declare function useRemoveDiscount(cartId: string, options?: UseMutationOptions<Awaited<ReturnType<typeof removeDiscount>>, Error, void>): import("@tanstack/react-query").UseMutationResult<{
2253
2257
  id: string;
2254
2258
  brand: {
2255
- createdAt: string;
2256
- updatedAt: string;
2257
- deletedAt: string;
2258
2259
  id: string;
2259
2260
  name: string;
2260
2261
  slug: string;
2261
- logoUrl: string | null;
2262
+ logoUrl: string;
2262
2263
  siteUrl: string;
2263
2264
  domain: string;
2264
- metaPixelId: string | null;
2265
- tiktokPixelId: string | null;
2266
- paystackPublicKey: string | null;
2267
- paystackSecretKey: string | null;
2265
+ metaPixelId: string;
2266
+ tiktokPixelId: string;
2267
+ paystackPublicKey: string;
2268
+ freeShippingThreshold: number;
2269
+ createdAt: string;
2270
+ updatedAt: string;
2271
+ deletedAt: string;
2268
2272
  };
2269
2273
  customerPhone: string;
2270
2274
  customerEmail: string;
@@ -2284,9 +2288,10 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
2284
2288
  createdAt: string;
2285
2289
  updatedAt: string;
2286
2290
  deletedAt: string;
2287
- brandId: string | null;
2288
- isActive: boolean;
2289
2291
  code: string;
2292
+ isActive: boolean;
2293
+ brandId: string | null;
2294
+ description: string | null;
2290
2295
  minPurchase: string;
2291
2296
  maxDiscount: string;
2292
2297
  usageLimit: number | null;
@@ -2295,14 +2300,12 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
2295
2300
  validFrom: string;
2296
2301
  validUntil: string;
2297
2302
  isAutoApply: boolean;
2298
- description: string | null;
2299
2303
  category: string;
2300
2304
  createdBy: string | null;
2301
2305
  };
2302
2306
  items: {
2303
2307
  id: string;
2304
2308
  variant: {
2305
- price: number;
2306
2309
  product: {
2307
2310
  id: string;
2308
2311
  name: string;
@@ -2310,8 +2313,8 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
2310
2313
  createdAt: string;
2311
2314
  updatedAt: string;
2312
2315
  deletedAt: string;
2313
- brandId: string;
2314
2316
  isActive: boolean;
2317
+ brandId: string;
2315
2318
  description: string | null;
2316
2319
  thumbnailUrl: string | null;
2317
2320
  quantityDiscounts: string | number | boolean | {
@@ -2751,16 +2754,18 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
2751
2754
  };
2752
2755
  };
2753
2756
  };
2754
- id: string;
2755
- name: string | null;
2756
2757
  createdAt: string;
2757
2758
  updatedAt: string;
2759
+ price: number;
2760
+ compareAtPrice: number;
2758
2761
  deletedAt: string;
2762
+ thumbnailUrl: string;
2763
+ originalPrice: number;
2764
+ id: string;
2765
+ name: string | null;
2759
2766
  isActive: boolean;
2760
- thumbnailUrl: string | null;
2761
2767
  productId: string;
2762
2768
  sku: string;
2763
- compareAtPrice: string;
2764
2769
  trackInventory: boolean;
2765
2770
  lowStockThreshold: number | null;
2766
2771
  };
@@ -2817,19 +2822,19 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
2817
2822
  }>): import("@tanstack/react-query").UseMutationResult<{
2818
2823
  id: string;
2819
2824
  brand: {
2820
- createdAt: string;
2821
- updatedAt: string;
2822
- deletedAt: string;
2823
2825
  id: string;
2824
2826
  name: string;
2825
2827
  slug: string;
2826
- logoUrl: string | null;
2828
+ logoUrl: string;
2827
2829
  siteUrl: string;
2828
2830
  domain: string;
2829
- metaPixelId: string | null;
2830
- tiktokPixelId: string | null;
2831
- paystackPublicKey: string | null;
2832
- paystackSecretKey: string | null;
2831
+ metaPixelId: string;
2832
+ tiktokPixelId: string;
2833
+ paystackPublicKey: string;
2834
+ freeShippingThreshold: number;
2835
+ createdAt: string;
2836
+ updatedAt: string;
2837
+ deletedAt: string;
2833
2838
  };
2834
2839
  customerPhone: string;
2835
2840
  customerEmail: string;
@@ -2849,9 +2854,10 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
2849
2854
  createdAt: string;
2850
2855
  updatedAt: string;
2851
2856
  deletedAt: string;
2852
- brandId: string | null;
2853
- isActive: boolean;
2854
2857
  code: string;
2858
+ isActive: boolean;
2859
+ brandId: string | null;
2860
+ description: string | null;
2855
2861
  minPurchase: string;
2856
2862
  maxDiscount: string;
2857
2863
  usageLimit: number | null;
@@ -2860,14 +2866,12 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
2860
2866
  validFrom: string;
2861
2867
  validUntil: string;
2862
2868
  isAutoApply: boolean;
2863
- description: string | null;
2864
2869
  category: string;
2865
2870
  createdBy: string | null;
2866
2871
  };
2867
2872
  items: {
2868
2873
  id: string;
2869
2874
  variant: {
2870
- price: number;
2871
2875
  product: {
2872
2876
  id: string;
2873
2877
  name: string;
@@ -2875,8 +2879,8 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
2875
2879
  createdAt: string;
2876
2880
  updatedAt: string;
2877
2881
  deletedAt: string;
2878
- brandId: string;
2879
2882
  isActive: boolean;
2883
+ brandId: string;
2880
2884
  description: string | null;
2881
2885
  thumbnailUrl: string | null;
2882
2886
  quantityDiscounts: string | number | boolean | {
@@ -3316,16 +3320,18 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
3316
3320
  };
3317
3321
  };
3318
3322
  };
3319
- id: string;
3320
- name: string | null;
3321
3323
  createdAt: string;
3322
3324
  updatedAt: string;
3325
+ price: number;
3326
+ compareAtPrice: number;
3323
3327
  deletedAt: string;
3328
+ thumbnailUrl: string;
3329
+ originalPrice: number;
3330
+ id: string;
3331
+ name: string | null;
3324
3332
  isActive: boolean;
3325
- thumbnailUrl: string | null;
3326
3333
  productId: string;
3327
3334
  sku: string;
3328
- compareAtPrice: string;
3329
3335
  trackInventory: boolean;
3330
3336
  lowStockThreshold: number | null;
3331
3337
  };
@@ -3385,19 +3391,19 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
3385
3391
  }>): import("@tanstack/react-query").UseMutationResult<{
3386
3392
  id: string;
3387
3393
  brand: {
3388
- createdAt: string;
3389
- updatedAt: string;
3390
- deletedAt: string;
3391
3394
  id: string;
3392
3395
  name: string;
3393
3396
  slug: string;
3394
- logoUrl: string | null;
3397
+ logoUrl: string;
3395
3398
  siteUrl: string;
3396
3399
  domain: string;
3397
- metaPixelId: string | null;
3398
- tiktokPixelId: string | null;
3399
- paystackPublicKey: string | null;
3400
- paystackSecretKey: string | null;
3400
+ metaPixelId: string;
3401
+ tiktokPixelId: string;
3402
+ paystackPublicKey: string;
3403
+ freeShippingThreshold: number;
3404
+ createdAt: string;
3405
+ updatedAt: string;
3406
+ deletedAt: string;
3401
3407
  };
3402
3408
  customerPhone: string;
3403
3409
  customerEmail: string;
@@ -3417,9 +3423,10 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
3417
3423
  createdAt: string;
3418
3424
  updatedAt: string;
3419
3425
  deletedAt: string;
3420
- brandId: string | null;
3421
- isActive: boolean;
3422
3426
  code: string;
3427
+ isActive: boolean;
3428
+ brandId: string | null;
3429
+ description: string | null;
3423
3430
  minPurchase: string;
3424
3431
  maxDiscount: string;
3425
3432
  usageLimit: number | null;
@@ -3428,14 +3435,12 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
3428
3435
  validFrom: string;
3429
3436
  validUntil: string;
3430
3437
  isAutoApply: boolean;
3431
- description: string | null;
3432
3438
  category: string;
3433
3439
  createdBy: string | null;
3434
3440
  };
3435
3441
  items: {
3436
3442
  id: string;
3437
3443
  variant: {
3438
- price: number;
3439
3444
  product: {
3440
3445
  id: string;
3441
3446
  name: string;
@@ -3443,8 +3448,8 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
3443
3448
  createdAt: string;
3444
3449
  updatedAt: string;
3445
3450
  deletedAt: string;
3446
- brandId: string;
3447
3451
  isActive: boolean;
3452
+ brandId: string;
3448
3453
  description: string | null;
3449
3454
  thumbnailUrl: string | null;
3450
3455
  quantityDiscounts: string | number | boolean | {
@@ -3884,16 +3889,18 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
3884
3889
  };
3885
3890
  };
3886
3891
  };
3887
- id: string;
3888
- name: string | null;
3889
3892
  createdAt: string;
3890
3893
  updatedAt: string;
3894
+ price: number;
3895
+ compareAtPrice: number;
3891
3896
  deletedAt: string;
3897
+ thumbnailUrl: string;
3898
+ originalPrice: number;
3899
+ id: string;
3900
+ name: string | null;
3892
3901
  isActive: boolean;
3893
- thumbnailUrl: string | null;
3894
3902
  productId: string;
3895
3903
  sku: string;
3896
- compareAtPrice: string;
3897
3904
  trackInventory: boolean;
3898
3905
  lowStockThreshold: number | null;
3899
3906
  };
@@ -3940,19 +3947,19 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
3940
3947
  export declare function useRemoveCartItem(cartId: string, options?: UseMutationOptions<Awaited<ReturnType<typeof removeCartItem>>, Error, string>): import("@tanstack/react-query").UseMutationResult<{
3941
3948
  id: string;
3942
3949
  brand: {
3943
- createdAt: string;
3944
- updatedAt: string;
3945
- deletedAt: string;
3946
3950
  id: string;
3947
3951
  name: string;
3948
3952
  slug: string;
3949
- logoUrl: string | null;
3953
+ logoUrl: string;
3950
3954
  siteUrl: string;
3951
3955
  domain: string;
3952
- metaPixelId: string | null;
3953
- tiktokPixelId: string | null;
3954
- paystackPublicKey: string | null;
3955
- paystackSecretKey: string | null;
3956
+ metaPixelId: string;
3957
+ tiktokPixelId: string;
3958
+ paystackPublicKey: string;
3959
+ freeShippingThreshold: number;
3960
+ createdAt: string;
3961
+ updatedAt: string;
3962
+ deletedAt: string;
3956
3963
  };
3957
3964
  customerPhone: string;
3958
3965
  customerEmail: string;
@@ -3972,9 +3979,10 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
3972
3979
  createdAt: string;
3973
3980
  updatedAt: string;
3974
3981
  deletedAt: string;
3975
- brandId: string | null;
3976
- isActive: boolean;
3977
3982
  code: string;
3983
+ isActive: boolean;
3984
+ brandId: string | null;
3985
+ description: string | null;
3978
3986
  minPurchase: string;
3979
3987
  maxDiscount: string;
3980
3988
  usageLimit: number | null;
@@ -3983,14 +3991,12 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
3983
3991
  validFrom: string;
3984
3992
  validUntil: string;
3985
3993
  isAutoApply: boolean;
3986
- description: string | null;
3987
3994
  category: string;
3988
3995
  createdBy: string | null;
3989
3996
  };
3990
3997
  items: {
3991
3998
  id: string;
3992
3999
  variant: {
3993
- price: number;
3994
4000
  product: {
3995
4001
  id: string;
3996
4002
  name: string;
@@ -3998,8 +4004,8 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
3998
4004
  createdAt: string;
3999
4005
  updatedAt: string;
4000
4006
  deletedAt: string;
4001
- brandId: string;
4002
4007
  isActive: boolean;
4008
+ brandId: string;
4003
4009
  description: string | null;
4004
4010
  thumbnailUrl: string | null;
4005
4011
  quantityDiscounts: string | number | boolean | {
@@ -4439,16 +4445,18 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
4439
4445
  };
4440
4446
  };
4441
4447
  };
4442
- id: string;
4443
- name: string | null;
4444
4448
  createdAt: string;
4445
4449
  updatedAt: string;
4450
+ price: number;
4451
+ compareAtPrice: number;
4446
4452
  deletedAt: string;
4453
+ thumbnailUrl: string;
4454
+ originalPrice: number;
4455
+ id: string;
4456
+ name: string | null;
4447
4457
  isActive: boolean;
4448
- thumbnailUrl: string | null;
4449
4458
  productId: string;
4450
4459
  sku: string;
4451
- compareAtPrice: string;
4452
4460
  trackInventory: boolean;
4453
4461
  lowStockThreshold: number | null;
4454
4462
  };
@@ -4509,19 +4517,19 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
4509
4517
  prospectSince: string;
4510
4518
  lastRecoveryAttemptAt: string;
4511
4519
  brand: {
4512
- createdAt: string;
4513
- updatedAt: string;
4514
- deletedAt: string;
4515
4520
  id: string;
4516
4521
  name: string;
4517
4522
  slug: string;
4518
- logoUrl: string | null;
4523
+ logoUrl: string;
4519
4524
  siteUrl: string;
4520
4525
  domain: string;
4521
- metaPixelId: string | null;
4522
- tiktokPixelId: string | null;
4523
- paystackPublicKey: string | null;
4524
- paystackSecretKey: string | null;
4526
+ metaPixelId: string;
4527
+ tiktokPixelId: string;
4528
+ paystackPublicKey: string;
4529
+ freeShippingThreshold: number;
4530
+ createdAt: string;
4531
+ updatedAt: string;
4532
+ deletedAt: string;
4525
4533
  };
4526
4534
  deliveryZone: {
4527
4535
  deliveryCost: number;
@@ -4539,6 +4547,7 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
4539
4547
  };
4540
4548
  id: string;
4541
4549
  name: string;
4550
+ isActive: boolean;
4542
4551
  brandId: string | null;
4543
4552
  stateId: string;
4544
4553
  allowCOD: boolean;
@@ -4547,7 +4556,6 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
4547
4556
  estimatedDays: number | null;
4548
4557
  noteTitle: string | null;
4549
4558
  noteContent: string | null;
4550
- isActive: boolean;
4551
4559
  };
4552
4560
  items: {
4553
4561
  priceAtPurchase: number;
@@ -4563,8 +4571,8 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
4563
4571
  id: string;
4564
4572
  name: string;
4565
4573
  slug: string;
4566
- brandId: string;
4567
4574
  isActive: boolean;
4575
+ brandId: string;
4568
4576
  description: string | null;
4569
4577
  thumbnailUrl: string | null;
4570
4578
  quantityDiscounts: string | number | boolean | {
@@ -5007,8 +5015,8 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
5007
5015
  id: string;
5008
5016
  name: string | null;
5009
5017
  isActive: boolean;
5010
- thumbnailUrl: string | null;
5011
5018
  productId: string;
5019
+ thumbnailUrl: string | null;
5012
5020
  sku: string;
5013
5021
  compareAtPrice: string;
5014
5022
  trackInventory: boolean;
@@ -5020,16 +5028,16 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
5020
5028
  deletedAt: string;
5021
5029
  id: string;
5022
5030
  name: string;
5031
+ state: string | null;
5023
5032
  isActive: boolean;
5024
5033
  address: string | null;
5025
5034
  city: string | null;
5026
- state: string | null;
5027
5035
  };
5028
5036
  id: string;
5029
- orderId: string;
5030
5037
  variantId: string;
5031
- warehouseId: string | null;
5032
5038
  quantity: number;
5039
+ orderId: string;
5040
+ warehouseId: string | null;
5033
5041
  }[];
5034
5042
  email: string | null;
5035
5043
  id: string;
@@ -5104,6 +5112,10 @@ export declare function useInitiateCheckout(cartId: string, options?: UseMutatio
5104
5112
  * ```
5105
5113
  */
5106
5114
  export declare function useGetCartRecommendations(cartId: string | null | undefined, limit: number, options?: Omit<UseQueryOptions<Awaited<ReturnType<typeof fetchCartRecommendations>>, Error>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<{
5115
+ isOnSale: boolean;
5116
+ saleId: string;
5117
+ saleName: string;
5118
+ saleEndsAt: string;
5107
5119
  id: string;
5108
5120
  name: string;
5109
5121
  slug: string;
@@ -5264,6 +5276,7 @@ export declare function useGetCartRecommendations(cartId: string | null | undefi
5264
5276
  metaPixelId: string;
5265
5277
  tiktokPixelId: string;
5266
5278
  paystackPublicKey: string;
5279
+ freeShippingThreshold: number;
5267
5280
  createdAt: string;
5268
5281
  updatedAt: string;
5269
5282
  deletedAt: string;
@@ -5274,10 +5287,11 @@ export declare function useGetCartRecommendations(cartId: string | null | undefi
5274
5287
  price: number;
5275
5288
  compareAtPrice: number;
5276
5289
  deletedAt: string;
5290
+ thumbnailUrl: string;
5291
+ originalPrice: number;
5277
5292
  id: string;
5278
5293
  name: string | null;
5279
5294
  isActive: boolean;
5280
- thumbnailUrl: string | null;
5281
5295
  productId: string;
5282
5296
  sku: string;
5283
5297
  trackInventory: boolean;
@@ -5574,9 +5588,28 @@ export declare function useGetCartRecommendations(cartId: string | null | undefi
5574
5588
  flat?: boolean;
5575
5589
  };
5576
5590
  };
5591
+ sales: {
5592
+ sale: {
5593
+ id: string;
5594
+ name: string;
5595
+ createdAt: string;
5596
+ updatedAt: string;
5597
+ deletedAt: string;
5598
+ isActive: boolean;
5599
+ brandId: string;
5600
+ discountType: import("@prisma/client").$Enums.DiscountType;
5601
+ discountValue: string;
5602
+ startDate: string;
5603
+ endDate: string;
5604
+ };
5605
+ id: string;
5606
+ createdAt: string;
5607
+ productId: string;
5608
+ saleId: string;
5609
+ }[];
5577
5610
  createdAt: string;
5578
5611
  updatedAt: string;
5579
5612
  deletedAt: string;
5580
- brandId: string;
5581
5613
  isActive: boolean;
5614
+ brandId: string;
5582
5615
  }[], Error>;