@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.
@@ -12,19 +12,19 @@
12
12
  export declare function fetchCart(cartId: string): Promise<{
13
13
  id: string;
14
14
  brand: {
15
- createdAt: string;
16
- updatedAt: string;
17
- deletedAt: string;
18
15
  id: string;
19
16
  name: string;
20
17
  slug: string;
21
- logoUrl: string | null;
18
+ logoUrl: string;
22
19
  siteUrl: string;
23
20
  domain: string;
24
- metaPixelId: string | null;
25
- tiktokPixelId: string | null;
26
- paystackPublicKey: string | null;
27
- paystackSecretKey: string | null;
21
+ metaPixelId: string;
22
+ tiktokPixelId: string;
23
+ paystackPublicKey: string;
24
+ freeShippingThreshold: number;
25
+ createdAt: string;
26
+ updatedAt: string;
27
+ deletedAt: string;
28
28
  };
29
29
  customerPhone: string;
30
30
  customerEmail: string;
@@ -44,9 +44,10 @@ export declare function fetchCart(cartId: string): Promise<{
44
44
  createdAt: string;
45
45
  updatedAt: string;
46
46
  deletedAt: string;
47
- brandId: string | null;
48
- isActive: boolean;
49
47
  code: string;
48
+ isActive: boolean;
49
+ brandId: string | null;
50
+ description: string | null;
50
51
  minPurchase: string;
51
52
  maxDiscount: string;
52
53
  usageLimit: number | null;
@@ -55,14 +56,12 @@ export declare function fetchCart(cartId: string): Promise<{
55
56
  validFrom: string;
56
57
  validUntil: string;
57
58
  isAutoApply: boolean;
58
- description: string | null;
59
59
  category: string;
60
60
  createdBy: string | null;
61
61
  };
62
62
  items: {
63
63
  id: string;
64
64
  variant: {
65
- price: number;
66
65
  product: {
67
66
  id: string;
68
67
  name: string;
@@ -70,8 +69,8 @@ export declare function fetchCart(cartId: string): Promise<{
70
69
  createdAt: string;
71
70
  updatedAt: string;
72
71
  deletedAt: string;
73
- brandId: string;
74
72
  isActive: boolean;
73
+ brandId: string;
75
74
  description: string | null;
76
75
  thumbnailUrl: string | null;
77
76
  quantityDiscounts: string | number | boolean | {
@@ -511,16 +510,18 @@ export declare function fetchCart(cartId: string): Promise<{
511
510
  };
512
511
  };
513
512
  };
514
- id: string;
515
- name: string | null;
516
513
  createdAt: string;
517
514
  updatedAt: string;
515
+ price: number;
516
+ compareAtPrice: number;
518
517
  deletedAt: string;
518
+ thumbnailUrl: string;
519
+ originalPrice: number;
520
+ id: string;
521
+ name: string | null;
519
522
  isActive: boolean;
520
- thumbnailUrl: string | null;
521
523
  productId: string;
522
524
  sku: string;
523
- compareAtPrice: string;
524
525
  trackInventory: boolean;
525
526
  lowStockThreshold: number | null;
526
527
  };
@@ -563,19 +564,19 @@ export declare function fetchCart(cartId: string): Promise<{
563
564
  export declare function createCart(brandSlug: string): Promise<{
564
565
  id: string;
565
566
  brand: {
566
- createdAt: string;
567
- updatedAt: string;
568
- deletedAt: string;
569
567
  id: string;
570
568
  name: string;
571
569
  slug: string;
572
- logoUrl: string | null;
570
+ logoUrl: string;
573
571
  siteUrl: string;
574
572
  domain: string;
575
- metaPixelId: string | null;
576
- tiktokPixelId: string | null;
577
- paystackPublicKey: string | null;
578
- paystackSecretKey: string | null;
573
+ metaPixelId: string;
574
+ tiktokPixelId: string;
575
+ paystackPublicKey: string;
576
+ freeShippingThreshold: number;
577
+ createdAt: string;
578
+ updatedAt: string;
579
+ deletedAt: string;
579
580
  };
580
581
  customerPhone: string;
581
582
  customerEmail: string;
@@ -595,9 +596,10 @@ export declare function createCart(brandSlug: string): Promise<{
595
596
  createdAt: string;
596
597
  updatedAt: string;
597
598
  deletedAt: string;
598
- brandId: string | null;
599
- isActive: boolean;
600
599
  code: string;
600
+ isActive: boolean;
601
+ brandId: string | null;
602
+ description: string | null;
601
603
  minPurchase: string;
602
604
  maxDiscount: string;
603
605
  usageLimit: number | null;
@@ -606,14 +608,12 @@ export declare function createCart(brandSlug: string): Promise<{
606
608
  validFrom: string;
607
609
  validUntil: string;
608
610
  isAutoApply: boolean;
609
- description: string | null;
610
611
  category: string;
611
612
  createdBy: string | null;
612
613
  };
613
614
  items: {
614
615
  id: string;
615
616
  variant: {
616
- price: number;
617
617
  product: {
618
618
  id: string;
619
619
  name: string;
@@ -621,8 +621,8 @@ export declare function createCart(brandSlug: string): Promise<{
621
621
  createdAt: string;
622
622
  updatedAt: string;
623
623
  deletedAt: string;
624
- brandId: string;
625
624
  isActive: boolean;
625
+ brandId: string;
626
626
  description: string | null;
627
627
  thumbnailUrl: string | null;
628
628
  quantityDiscounts: string | number | boolean | {
@@ -1062,16 +1062,18 @@ export declare function createCart(brandSlug: string): Promise<{
1062
1062
  };
1063
1063
  };
1064
1064
  };
1065
- id: string;
1066
- name: string | null;
1067
1065
  createdAt: string;
1068
1066
  updatedAt: string;
1067
+ price: number;
1068
+ compareAtPrice: number;
1069
1069
  deletedAt: string;
1070
+ thumbnailUrl: string;
1071
+ originalPrice: number;
1072
+ id: string;
1073
+ name: string | null;
1070
1074
  isActive: boolean;
1071
- thumbnailUrl: string | null;
1072
1075
  productId: string;
1073
1076
  sku: string;
1074
- compareAtPrice: string;
1075
1077
  trackInventory: boolean;
1076
1078
  lowStockThreshold: number | null;
1077
1079
  };
@@ -1117,19 +1119,19 @@ export declare function updateCart(cartId: string, data: {
1117
1119
  }): Promise<{
1118
1120
  id: string;
1119
1121
  brand: {
1120
- createdAt: string;
1121
- updatedAt: string;
1122
- deletedAt: string;
1123
1122
  id: string;
1124
1123
  name: string;
1125
1124
  slug: string;
1126
- logoUrl: string | null;
1125
+ logoUrl: string;
1127
1126
  siteUrl: string;
1128
1127
  domain: string;
1129
- metaPixelId: string | null;
1130
- tiktokPixelId: string | null;
1131
- paystackPublicKey: string | null;
1132
- paystackSecretKey: string | null;
1128
+ metaPixelId: string;
1129
+ tiktokPixelId: string;
1130
+ paystackPublicKey: string;
1131
+ freeShippingThreshold: number;
1132
+ createdAt: string;
1133
+ updatedAt: string;
1134
+ deletedAt: string;
1133
1135
  };
1134
1136
  customerPhone: string;
1135
1137
  customerEmail: string;
@@ -1149,9 +1151,10 @@ export declare function updateCart(cartId: string, data: {
1149
1151
  createdAt: string;
1150
1152
  updatedAt: string;
1151
1153
  deletedAt: string;
1152
- brandId: string | null;
1153
- isActive: boolean;
1154
1154
  code: string;
1155
+ isActive: boolean;
1156
+ brandId: string | null;
1157
+ description: string | null;
1155
1158
  minPurchase: string;
1156
1159
  maxDiscount: string;
1157
1160
  usageLimit: number | null;
@@ -1160,14 +1163,12 @@ export declare function updateCart(cartId: string, data: {
1160
1163
  validFrom: string;
1161
1164
  validUntil: string;
1162
1165
  isAutoApply: boolean;
1163
- description: string | null;
1164
1166
  category: string;
1165
1167
  createdBy: string | null;
1166
1168
  };
1167
1169
  items: {
1168
1170
  id: string;
1169
1171
  variant: {
1170
- price: number;
1171
1172
  product: {
1172
1173
  id: string;
1173
1174
  name: string;
@@ -1175,8 +1176,8 @@ export declare function updateCart(cartId: string, data: {
1175
1176
  createdAt: string;
1176
1177
  updatedAt: string;
1177
1178
  deletedAt: string;
1178
- brandId: string;
1179
1179
  isActive: boolean;
1180
+ brandId: string;
1180
1181
  description: string | null;
1181
1182
  thumbnailUrl: string | null;
1182
1183
  quantityDiscounts: string | number | boolean | {
@@ -1616,16 +1617,18 @@ export declare function updateCart(cartId: string, data: {
1616
1617
  };
1617
1618
  };
1618
1619
  };
1619
- id: string;
1620
- name: string | null;
1621
1620
  createdAt: string;
1622
1621
  updatedAt: string;
1622
+ price: number;
1623
+ compareAtPrice: number;
1623
1624
  deletedAt: string;
1625
+ thumbnailUrl: string;
1626
+ originalPrice: number;
1627
+ id: string;
1628
+ name: string | null;
1624
1629
  isActive: boolean;
1625
- thumbnailUrl: string | null;
1626
1630
  productId: string;
1627
1631
  sku: string;
1628
- compareAtPrice: string;
1629
1632
  trackInventory: boolean;
1630
1633
  lowStockThreshold: number | null;
1631
1634
  };
@@ -1674,19 +1677,19 @@ export declare function updateCart(cartId: string, data: {
1674
1677
  export declare function addCartItem(cartId: string, sku: string, quantity: number, fbc?: string, fbp?: string, ttp?: string, ttclid?: string): Promise<{
1675
1678
  id: string;
1676
1679
  brand: {
1677
- createdAt: string;
1678
- updatedAt: string;
1679
- deletedAt: string;
1680
1680
  id: string;
1681
1681
  name: string;
1682
1682
  slug: string;
1683
- logoUrl: string | null;
1683
+ logoUrl: string;
1684
1684
  siteUrl: string;
1685
1685
  domain: string;
1686
- metaPixelId: string | null;
1687
- tiktokPixelId: string | null;
1688
- paystackPublicKey: string | null;
1689
- paystackSecretKey: string | null;
1686
+ metaPixelId: string;
1687
+ tiktokPixelId: string;
1688
+ paystackPublicKey: string;
1689
+ freeShippingThreshold: number;
1690
+ createdAt: string;
1691
+ updatedAt: string;
1692
+ deletedAt: string;
1690
1693
  };
1691
1694
  customerPhone: string;
1692
1695
  customerEmail: string;
@@ -1706,9 +1709,10 @@ export declare function addCartItem(cartId: string, sku: string, quantity: numbe
1706
1709
  createdAt: string;
1707
1710
  updatedAt: string;
1708
1711
  deletedAt: string;
1709
- brandId: string | null;
1710
- isActive: boolean;
1711
1712
  code: string;
1713
+ isActive: boolean;
1714
+ brandId: string | null;
1715
+ description: string | null;
1712
1716
  minPurchase: string;
1713
1717
  maxDiscount: string;
1714
1718
  usageLimit: number | null;
@@ -1717,14 +1721,12 @@ export declare function addCartItem(cartId: string, sku: string, quantity: numbe
1717
1721
  validFrom: string;
1718
1722
  validUntil: string;
1719
1723
  isAutoApply: boolean;
1720
- description: string | null;
1721
1724
  category: string;
1722
1725
  createdBy: string | null;
1723
1726
  };
1724
1727
  items: {
1725
1728
  id: string;
1726
1729
  variant: {
1727
- price: number;
1728
1730
  product: {
1729
1731
  id: string;
1730
1732
  name: string;
@@ -1732,8 +1734,8 @@ export declare function addCartItem(cartId: string, sku: string, quantity: numbe
1732
1734
  createdAt: string;
1733
1735
  updatedAt: string;
1734
1736
  deletedAt: string;
1735
- brandId: string;
1736
1737
  isActive: boolean;
1738
+ brandId: string;
1737
1739
  description: string | null;
1738
1740
  thumbnailUrl: string | null;
1739
1741
  quantityDiscounts: string | number | boolean | {
@@ -2173,16 +2175,18 @@ export declare function addCartItem(cartId: string, sku: string, quantity: numbe
2173
2175
  };
2174
2176
  };
2175
2177
  };
2176
- id: string;
2177
- name: string | null;
2178
2178
  createdAt: string;
2179
2179
  updatedAt: string;
2180
+ price: number;
2181
+ compareAtPrice: number;
2180
2182
  deletedAt: string;
2183
+ thumbnailUrl: string;
2184
+ originalPrice: number;
2185
+ id: string;
2186
+ name: string | null;
2181
2187
  isActive: boolean;
2182
- thumbnailUrl: string | null;
2183
2188
  productId: string;
2184
2189
  sku: string;
2185
- compareAtPrice: string;
2186
2190
  trackInventory: boolean;
2187
2191
  lowStockThreshold: number | null;
2188
2192
  };
@@ -2227,19 +2231,19 @@ export declare function addCartItem(cartId: string, sku: string, quantity: numbe
2227
2231
  export declare function updateCartItem(cartId: string, itemId: string, quantity: number): Promise<{
2228
2232
  id: string;
2229
2233
  brand: {
2230
- createdAt: string;
2231
- updatedAt: string;
2232
- deletedAt: string;
2233
2234
  id: string;
2234
2235
  name: string;
2235
2236
  slug: string;
2236
- logoUrl: string | null;
2237
+ logoUrl: string;
2237
2238
  siteUrl: string;
2238
2239
  domain: string;
2239
- metaPixelId: string | null;
2240
- tiktokPixelId: string | null;
2241
- paystackPublicKey: string | null;
2242
- paystackSecretKey: string | null;
2240
+ metaPixelId: string;
2241
+ tiktokPixelId: string;
2242
+ paystackPublicKey: string;
2243
+ freeShippingThreshold: number;
2244
+ createdAt: string;
2245
+ updatedAt: string;
2246
+ deletedAt: string;
2243
2247
  };
2244
2248
  customerPhone: string;
2245
2249
  customerEmail: string;
@@ -2259,9 +2263,10 @@ export declare function updateCartItem(cartId: string, itemId: string, quantity:
2259
2263
  createdAt: string;
2260
2264
  updatedAt: string;
2261
2265
  deletedAt: string;
2262
- brandId: string | null;
2263
- isActive: boolean;
2264
2266
  code: string;
2267
+ isActive: boolean;
2268
+ brandId: string | null;
2269
+ description: string | null;
2265
2270
  minPurchase: string;
2266
2271
  maxDiscount: string;
2267
2272
  usageLimit: number | null;
@@ -2270,14 +2275,12 @@ export declare function updateCartItem(cartId: string, itemId: string, quantity:
2270
2275
  validFrom: string;
2271
2276
  validUntil: string;
2272
2277
  isAutoApply: boolean;
2273
- description: string | null;
2274
2278
  category: string;
2275
2279
  createdBy: string | null;
2276
2280
  };
2277
2281
  items: {
2278
2282
  id: string;
2279
2283
  variant: {
2280
- price: number;
2281
2284
  product: {
2282
2285
  id: string;
2283
2286
  name: string;
@@ -2285,8 +2288,8 @@ export declare function updateCartItem(cartId: string, itemId: string, quantity:
2285
2288
  createdAt: string;
2286
2289
  updatedAt: string;
2287
2290
  deletedAt: string;
2288
- brandId: string;
2289
2291
  isActive: boolean;
2292
+ brandId: string;
2290
2293
  description: string | null;
2291
2294
  thumbnailUrl: string | null;
2292
2295
  quantityDiscounts: string | number | boolean | {
@@ -2726,16 +2729,18 @@ export declare function updateCartItem(cartId: string, itemId: string, quantity:
2726
2729
  };
2727
2730
  };
2728
2731
  };
2729
- id: string;
2730
- name: string | null;
2731
2732
  createdAt: string;
2732
2733
  updatedAt: string;
2734
+ price: number;
2735
+ compareAtPrice: number;
2733
2736
  deletedAt: string;
2737
+ thumbnailUrl: string;
2738
+ originalPrice: number;
2739
+ id: string;
2740
+ name: string | null;
2734
2741
  isActive: boolean;
2735
- thumbnailUrl: string | null;
2736
2742
  productId: string;
2737
2743
  sku: string;
2738
- compareAtPrice: string;
2739
2744
  trackInventory: boolean;
2740
2745
  lowStockThreshold: number | null;
2741
2746
  };
@@ -2774,19 +2779,19 @@ export declare function updateCartItem(cartId: string, itemId: string, quantity:
2774
2779
  export declare function removeCartItem(cartId: string, itemId: string): Promise<{
2775
2780
  id: string;
2776
2781
  brand: {
2777
- createdAt: string;
2778
- updatedAt: string;
2779
- deletedAt: string;
2780
2782
  id: string;
2781
2783
  name: string;
2782
2784
  slug: string;
2783
- logoUrl: string | null;
2785
+ logoUrl: string;
2784
2786
  siteUrl: string;
2785
2787
  domain: string;
2786
- metaPixelId: string | null;
2787
- tiktokPixelId: string | null;
2788
- paystackPublicKey: string | null;
2789
- paystackSecretKey: string | null;
2788
+ metaPixelId: string;
2789
+ tiktokPixelId: string;
2790
+ paystackPublicKey: string;
2791
+ freeShippingThreshold: number;
2792
+ createdAt: string;
2793
+ updatedAt: string;
2794
+ deletedAt: string;
2790
2795
  };
2791
2796
  customerPhone: string;
2792
2797
  customerEmail: string;
@@ -2806,9 +2811,10 @@ export declare function removeCartItem(cartId: string, itemId: string): Promise<
2806
2811
  createdAt: string;
2807
2812
  updatedAt: string;
2808
2813
  deletedAt: string;
2809
- brandId: string | null;
2810
- isActive: boolean;
2811
2814
  code: string;
2815
+ isActive: boolean;
2816
+ brandId: string | null;
2817
+ description: string | null;
2812
2818
  minPurchase: string;
2813
2819
  maxDiscount: string;
2814
2820
  usageLimit: number | null;
@@ -2817,14 +2823,12 @@ export declare function removeCartItem(cartId: string, itemId: string): Promise<
2817
2823
  validFrom: string;
2818
2824
  validUntil: string;
2819
2825
  isAutoApply: boolean;
2820
- description: string | null;
2821
2826
  category: string;
2822
2827
  createdBy: string | null;
2823
2828
  };
2824
2829
  items: {
2825
2830
  id: string;
2826
2831
  variant: {
2827
- price: number;
2828
2832
  product: {
2829
2833
  id: string;
2830
2834
  name: string;
@@ -2832,8 +2836,8 @@ export declare function removeCartItem(cartId: string, itemId: string): Promise<
2832
2836
  createdAt: string;
2833
2837
  updatedAt: string;
2834
2838
  deletedAt: string;
2835
- brandId: string;
2836
2839
  isActive: boolean;
2840
+ brandId: string;
2837
2841
  description: string | null;
2838
2842
  thumbnailUrl: string | null;
2839
2843
  quantityDiscounts: string | number | boolean | {
@@ -3273,16 +3277,18 @@ export declare function removeCartItem(cartId: string, itemId: string): Promise<
3273
3277
  };
3274
3278
  };
3275
3279
  };
3276
- id: string;
3277
- name: string | null;
3278
3280
  createdAt: string;
3279
3281
  updatedAt: string;
3282
+ price: number;
3283
+ compareAtPrice: number;
3280
3284
  deletedAt: string;
3285
+ thumbnailUrl: string;
3286
+ originalPrice: number;
3287
+ id: string;
3288
+ name: string | null;
3281
3289
  isActive: boolean;
3282
- thumbnailUrl: string | null;
3283
3290
  productId: string;
3284
3291
  sku: string;
3285
- compareAtPrice: string;
3286
3292
  trackInventory: boolean;
3287
3293
  lowStockThreshold: number | null;
3288
3294
  };
@@ -3321,19 +3327,19 @@ export declare function removeCartItem(cartId: string, itemId: string): Promise<
3321
3327
  export declare function applyDiscount(cartId: string, code: string): Promise<{
3322
3328
  id: string;
3323
3329
  brand: {
3324
- createdAt: string;
3325
- updatedAt: string;
3326
- deletedAt: string;
3327
3330
  id: string;
3328
3331
  name: string;
3329
3332
  slug: string;
3330
- logoUrl: string | null;
3333
+ logoUrl: string;
3331
3334
  siteUrl: string;
3332
3335
  domain: string;
3333
- metaPixelId: string | null;
3334
- tiktokPixelId: string | null;
3335
- paystackPublicKey: string | null;
3336
- paystackSecretKey: string | null;
3336
+ metaPixelId: string;
3337
+ tiktokPixelId: string;
3338
+ paystackPublicKey: string;
3339
+ freeShippingThreshold: number;
3340
+ createdAt: string;
3341
+ updatedAt: string;
3342
+ deletedAt: string;
3337
3343
  };
3338
3344
  customerPhone: string;
3339
3345
  customerEmail: string;
@@ -3353,9 +3359,10 @@ export declare function applyDiscount(cartId: string, code: string): Promise<{
3353
3359
  createdAt: string;
3354
3360
  updatedAt: string;
3355
3361
  deletedAt: string;
3356
- brandId: string | null;
3357
- isActive: boolean;
3358
3362
  code: string;
3363
+ isActive: boolean;
3364
+ brandId: string | null;
3365
+ description: string | null;
3359
3366
  minPurchase: string;
3360
3367
  maxDiscount: string;
3361
3368
  usageLimit: number | null;
@@ -3364,14 +3371,12 @@ export declare function applyDiscount(cartId: string, code: string): Promise<{
3364
3371
  validFrom: string;
3365
3372
  validUntil: string;
3366
3373
  isAutoApply: boolean;
3367
- description: string | null;
3368
3374
  category: string;
3369
3375
  createdBy: string | null;
3370
3376
  };
3371
3377
  items: {
3372
3378
  id: string;
3373
3379
  variant: {
3374
- price: number;
3375
3380
  product: {
3376
3381
  id: string;
3377
3382
  name: string;
@@ -3379,8 +3384,8 @@ export declare function applyDiscount(cartId: string, code: string): Promise<{
3379
3384
  createdAt: string;
3380
3385
  updatedAt: string;
3381
3386
  deletedAt: string;
3382
- brandId: string;
3383
3387
  isActive: boolean;
3388
+ brandId: string;
3384
3389
  description: string | null;
3385
3390
  thumbnailUrl: string | null;
3386
3391
  quantityDiscounts: string | number | boolean | {
@@ -3820,16 +3825,18 @@ export declare function applyDiscount(cartId: string, code: string): Promise<{
3820
3825
  };
3821
3826
  };
3822
3827
  };
3823
- id: string;
3824
- name: string | null;
3825
3828
  createdAt: string;
3826
3829
  updatedAt: string;
3830
+ price: number;
3831
+ compareAtPrice: number;
3827
3832
  deletedAt: string;
3833
+ thumbnailUrl: string;
3834
+ originalPrice: number;
3835
+ id: string;
3836
+ name: string | null;
3828
3837
  isActive: boolean;
3829
- thumbnailUrl: string | null;
3830
3838
  productId: string;
3831
3839
  sku: string;
3832
- compareAtPrice: string;
3833
3840
  trackInventory: boolean;
3834
3841
  lowStockThreshold: number | null;
3835
3842
  };
@@ -3872,19 +3879,19 @@ export declare function applyDiscount(cartId: string, code: string): Promise<{
3872
3879
  export declare function removeDiscount(cartId: string): Promise<{
3873
3880
  id: string;
3874
3881
  brand: {
3875
- createdAt: string;
3876
- updatedAt: string;
3877
- deletedAt: string;
3878
3882
  id: string;
3879
3883
  name: string;
3880
3884
  slug: string;
3881
- logoUrl: string | null;
3885
+ logoUrl: string;
3882
3886
  siteUrl: string;
3883
3887
  domain: string;
3884
- metaPixelId: string | null;
3885
- tiktokPixelId: string | null;
3886
- paystackPublicKey: string | null;
3887
- paystackSecretKey: string | null;
3888
+ metaPixelId: string;
3889
+ tiktokPixelId: string;
3890
+ paystackPublicKey: string;
3891
+ freeShippingThreshold: number;
3892
+ createdAt: string;
3893
+ updatedAt: string;
3894
+ deletedAt: string;
3888
3895
  };
3889
3896
  customerPhone: string;
3890
3897
  customerEmail: string;
@@ -3904,9 +3911,10 @@ export declare function removeDiscount(cartId: string): Promise<{
3904
3911
  createdAt: string;
3905
3912
  updatedAt: string;
3906
3913
  deletedAt: string;
3907
- brandId: string | null;
3908
- isActive: boolean;
3909
3914
  code: string;
3915
+ isActive: boolean;
3916
+ brandId: string | null;
3917
+ description: string | null;
3910
3918
  minPurchase: string;
3911
3919
  maxDiscount: string;
3912
3920
  usageLimit: number | null;
@@ -3915,14 +3923,12 @@ export declare function removeDiscount(cartId: string): Promise<{
3915
3923
  validFrom: string;
3916
3924
  validUntil: string;
3917
3925
  isAutoApply: boolean;
3918
- description: string | null;
3919
3926
  category: string;
3920
3927
  createdBy: string | null;
3921
3928
  };
3922
3929
  items: {
3923
3930
  id: string;
3924
3931
  variant: {
3925
- price: number;
3926
3932
  product: {
3927
3933
  id: string;
3928
3934
  name: string;
@@ -3930,8 +3936,8 @@ export declare function removeDiscount(cartId: string): Promise<{
3930
3936
  createdAt: string;
3931
3937
  updatedAt: string;
3932
3938
  deletedAt: string;
3933
- brandId: string;
3934
3939
  isActive: boolean;
3940
+ brandId: string;
3935
3941
  description: string | null;
3936
3942
  thumbnailUrl: string | null;
3937
3943
  quantityDiscounts: string | number | boolean | {
@@ -4371,16 +4377,18 @@ export declare function removeDiscount(cartId: string): Promise<{
4371
4377
  };
4372
4378
  };
4373
4379
  };
4374
- id: string;
4375
- name: string | null;
4376
4380
  createdAt: string;
4377
4381
  updatedAt: string;
4382
+ price: number;
4383
+ compareAtPrice: number;
4378
4384
  deletedAt: string;
4385
+ thumbnailUrl: string;
4386
+ originalPrice: number;
4387
+ id: string;
4388
+ name: string | null;
4379
4389
  isActive: boolean;
4380
- thumbnailUrl: string | null;
4381
4390
  productId: string;
4382
4391
  sku: string;
4383
- compareAtPrice: string;
4384
4392
  trackInventory: boolean;
4385
4393
  lowStockThreshold: number | null;
4386
4394
  };
@@ -4447,19 +4455,19 @@ export declare function checkoutCart(cartId: string, checkoutData: {
4447
4455
  prospectSince: string;
4448
4456
  lastRecoveryAttemptAt: string;
4449
4457
  brand: {
4450
- createdAt: string;
4451
- updatedAt: string;
4452
- deletedAt: string;
4453
4458
  id: string;
4454
4459
  name: string;
4455
4460
  slug: string;
4456
- logoUrl: string | null;
4461
+ logoUrl: string;
4457
4462
  siteUrl: string;
4458
4463
  domain: string;
4459
- metaPixelId: string | null;
4460
- tiktokPixelId: string | null;
4461
- paystackPublicKey: string | null;
4462
- paystackSecretKey: string | null;
4464
+ metaPixelId: string;
4465
+ tiktokPixelId: string;
4466
+ paystackPublicKey: string;
4467
+ freeShippingThreshold: number;
4468
+ createdAt: string;
4469
+ updatedAt: string;
4470
+ deletedAt: string;
4463
4471
  };
4464
4472
  deliveryZone: {
4465
4473
  deliveryCost: number;
@@ -4477,6 +4485,7 @@ export declare function checkoutCart(cartId: string, checkoutData: {
4477
4485
  };
4478
4486
  id: string;
4479
4487
  name: string;
4488
+ isActive: boolean;
4480
4489
  brandId: string | null;
4481
4490
  stateId: string;
4482
4491
  allowCOD: boolean;
@@ -4485,7 +4494,6 @@ export declare function checkoutCart(cartId: string, checkoutData: {
4485
4494
  estimatedDays: number | null;
4486
4495
  noteTitle: string | null;
4487
4496
  noteContent: string | null;
4488
- isActive: boolean;
4489
4497
  };
4490
4498
  items: {
4491
4499
  priceAtPurchase: number;
@@ -4501,8 +4509,8 @@ export declare function checkoutCart(cartId: string, checkoutData: {
4501
4509
  id: string;
4502
4510
  name: string;
4503
4511
  slug: string;
4504
- brandId: string;
4505
4512
  isActive: boolean;
4513
+ brandId: string;
4506
4514
  description: string | null;
4507
4515
  thumbnailUrl: string | null;
4508
4516
  quantityDiscounts: string | number | boolean | {
@@ -4945,8 +4953,8 @@ export declare function checkoutCart(cartId: string, checkoutData: {
4945
4953
  id: string;
4946
4954
  name: string | null;
4947
4955
  isActive: boolean;
4948
- thumbnailUrl: string | null;
4949
4956
  productId: string;
4957
+ thumbnailUrl: string | null;
4950
4958
  sku: string;
4951
4959
  compareAtPrice: string;
4952
4960
  trackInventory: boolean;
@@ -4958,16 +4966,16 @@ export declare function checkoutCart(cartId: string, checkoutData: {
4958
4966
  deletedAt: string;
4959
4967
  id: string;
4960
4968
  name: string;
4969
+ state: string | null;
4961
4970
  isActive: boolean;
4962
4971
  address: string | null;
4963
4972
  city: string | null;
4964
- state: string | null;
4965
4973
  };
4966
4974
  id: string;
4967
- orderId: string;
4968
4975
  variantId: string;
4969
- warehouseId: string | null;
4970
4976
  quantity: number;
4977
+ orderId: string;
4978
+ warehouseId: string | null;
4971
4979
  }[];
4972
4980
  email: string | null;
4973
4981
  id: string;
@@ -5016,6 +5024,10 @@ export declare function initiateCheckout(cartId: string, data: {
5016
5024
  * @returns Array of recommended products from the same brand
5017
5025
  */
5018
5026
  export declare function fetchCartRecommendations(cartId: string, limit: number): Promise<{
5027
+ isOnSale: boolean;
5028
+ saleId: string;
5029
+ saleName: string;
5030
+ saleEndsAt: string;
5019
5031
  id: string;
5020
5032
  name: string;
5021
5033
  slug: string;
@@ -5176,6 +5188,7 @@ export declare function fetchCartRecommendations(cartId: string, limit: number):
5176
5188
  metaPixelId: string;
5177
5189
  tiktokPixelId: string;
5178
5190
  paystackPublicKey: string;
5191
+ freeShippingThreshold: number;
5179
5192
  createdAt: string;
5180
5193
  updatedAt: string;
5181
5194
  deletedAt: string;
@@ -5186,10 +5199,11 @@ export declare function fetchCartRecommendations(cartId: string, limit: number):
5186
5199
  price: number;
5187
5200
  compareAtPrice: number;
5188
5201
  deletedAt: string;
5202
+ thumbnailUrl: string;
5203
+ originalPrice: number;
5189
5204
  id: string;
5190
5205
  name: string | null;
5191
5206
  isActive: boolean;
5192
- thumbnailUrl: string | null;
5193
5207
  productId: string;
5194
5208
  sku: string;
5195
5209
  trackInventory: boolean;
@@ -5486,11 +5500,30 @@ export declare function fetchCartRecommendations(cartId: string, limit: number):
5486
5500
  flat?: boolean;
5487
5501
  };
5488
5502
  };
5503
+ sales: {
5504
+ sale: {
5505
+ id: string;
5506
+ name: string;
5507
+ createdAt: string;
5508
+ updatedAt: string;
5509
+ deletedAt: string;
5510
+ isActive: boolean;
5511
+ brandId: string;
5512
+ discountType: import("@prisma/client").$Enums.DiscountType;
5513
+ discountValue: string;
5514
+ startDate: string;
5515
+ endDate: string;
5516
+ };
5517
+ id: string;
5518
+ createdAt: string;
5519
+ productId: string;
5520
+ saleId: string;
5521
+ }[];
5489
5522
  createdAt: string;
5490
5523
  updatedAt: string;
5491
5524
  deletedAt: string;
5492
- brandId: string;
5493
5525
  isActive: boolean;
5526
+ brandId: string;
5494
5527
  }[] | {
5495
5528
  error: {
5496
5529
  code: string;