hey-pharmacist-ecommerce 1.1.28 → 1.1.29

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 (60) hide show
  1. package/dist/index.d.mts +344 -640
  2. package/dist/index.d.ts +344 -640
  3. package/dist/index.js +1807 -838
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +1807 -840
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +1 -1
  8. package/src/components/AccountOrdersTab.tsx +1 -1
  9. package/src/components/AccountSettingsTab.tsx +88 -6
  10. package/src/components/CartItem.tsx +1 -1
  11. package/src/components/Header.tsx +8 -2
  12. package/src/components/OrderCard.tsx +4 -4
  13. package/src/components/ProductCard.tsx +59 -42
  14. package/src/components/QuickViewModal.tsx +13 -13
  15. package/src/hooks/useAddresses.ts +4 -1
  16. package/src/hooks/usePaymentMethods.ts +26 -31
  17. package/src/hooks/useProducts.ts +63 -64
  18. package/src/hooks/useWishlistProducts.ts +4 -5
  19. package/src/index.ts +2 -0
  20. package/src/lib/Apis/api.ts +0 -1
  21. package/src/lib/Apis/apis/auth-api.ts +18 -29
  22. package/src/lib/Apis/apis/products-api.ts +845 -405
  23. package/src/lib/Apis/models/category-populated.ts +0 -12
  24. package/src/lib/Apis/models/category-sub-category-populated.ts +2 -2
  25. package/src/lib/Apis/models/category.ts +0 -18
  26. package/src/lib/Apis/models/{table-cell-dto.ts → change-password-dto.ts} +6 -6
  27. package/src/lib/Apis/models/create-product-dto.ts +30 -23
  28. package/src/lib/Apis/models/create-sub-category-dto.ts +6 -0
  29. package/src/lib/Apis/models/create-variant-dto.ts +29 -29
  30. package/src/lib/Apis/models/index.ts +5 -7
  31. package/src/lib/Apis/models/paginated-products-dto.ts +6 -6
  32. package/src/lib/Apis/models/product-summary.ts +69 -0
  33. package/src/lib/Apis/models/product-variant.ts +34 -65
  34. package/src/lib/Apis/models/product.ts +138 -0
  35. package/src/lib/Apis/models/products-insights-dto.ts +12 -0
  36. package/src/lib/Apis/models/single-product-media.ts +0 -12
  37. package/src/lib/Apis/models/sub-category.ts +6 -12
  38. package/src/lib/Apis/models/update-product-dto.ts +30 -19
  39. package/src/lib/Apis/models/update-sub-category-dto.ts +6 -0
  40. package/src/lib/Apis/models/{update-product-variant-dto.ts → update-variant-dto.ts} +51 -45
  41. package/src/lib/Apis/models/{shallow-parent-category-dto.ts → variant-id-inventory-body.ts} +5 -11
  42. package/src/lib/api-adapter/config.ts +53 -0
  43. package/src/lib/validations/address.ts +1 -1
  44. package/src/providers/FavoritesProvider.tsx +5 -5
  45. package/src/providers/WishlistProvider.tsx +4 -4
  46. package/src/screens/CartScreen.tsx +1 -1
  47. package/src/screens/ChangePasswordScreen.tsx +2 -6
  48. package/src/screens/CheckoutScreen.tsx +40 -11
  49. package/src/screens/ForgotPasswordScreen.tsx +153 -0
  50. package/src/screens/ProductDetailScreen.tsx +51 -60
  51. package/src/screens/RegisterScreen.tsx +31 -31
  52. package/src/screens/ResetPasswordScreen.tsx +202 -0
  53. package/src/screens/SearchResultsScreen.tsx +264 -26
  54. package/src/screens/ShopScreen.tsx +42 -45
  55. package/src/screens/WishlistScreen.tsx +35 -31
  56. package/src/lib/Apis/apis/product-variants-api.ts +0 -552
  57. package/src/lib/Apis/models/create-single-variant-product-dto.ts +0 -154
  58. package/src/lib/Apis/models/extended-product-dto.ts +0 -206
  59. package/src/lib/Apis/models/frequently-bought-product-dto.ts +0 -71
  60. package/src/lib/Apis/models/table-dto.ts +0 -34
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React, { ReactNode } from 'react';
3
3
  import { LucideIcon } from 'lucide-react';
4
+ import * as _tanstack_query_core from '@tanstack/query-core';
4
5
 
5
6
  interface EcommerceConfig {
6
7
  storeId: string;
@@ -376,18 +377,6 @@ declare enum AddressCreatedRequestAddressTypeEnum {
376
377
  */
377
378
  interface SingleProductMedia {
378
379
  _id?: string;
379
- /**
380
- *
381
- * @type {Date}
382
- * @memberof SingleProductMedia
383
- */
384
- createdAt: Date;
385
- /**
386
- *
387
- * @type {Date}
388
- * @memberof SingleProductMedia
389
- */
390
- updatedAt: Date;
391
380
  /**
392
381
  *
393
382
  * @type {string}
@@ -429,71 +418,6 @@ declare enum SingleProductMediaTypeEnum {
429
418
  Audio = "audio"
430
419
  }
431
420
 
432
- /**
433
- * Hey Pharamcist API
434
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
435
- *
436
- * OpenAPI spec version: 1.0
437
- *
438
- *
439
- * NOTE: This class is auto generated by the swagger code generator program.
440
- * https://github.com/swagger-api/swagger-codegen.git
441
- * Do not edit the class manually.
442
- */
443
- /**
444
- *
445
- * @export
446
- * @interface TableCellDto
447
- */
448
- interface TableCellDto {
449
- _id?: string;
450
- /**
451
- *
452
- * @type {string}
453
- * @memberof TableCellDto
454
- */
455
- key: string;
456
- /**
457
- *
458
- * @type {string}
459
- * @memberof TableCellDto
460
- */
461
- value: string;
462
- }
463
-
464
- /**
465
- * Hey Pharamcist API
466
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
467
- *
468
- * OpenAPI spec version: 1.0
469
- *
470
- *
471
- * NOTE: This class is auto generated by the swagger code generator program.
472
- * https://github.com/swagger-api/swagger-codegen.git
473
- * Do not edit the class manually.
474
- */
475
-
476
- /**
477
- *
478
- * @export
479
- * @interface TableDto
480
- */
481
- interface TableDto {
482
- _id?: string;
483
- /**
484
- *
485
- * @type {string}
486
- * @memberof TableDto
487
- */
488
- title: string;
489
- /**
490
- *
491
- * @type {Array<TableCellDto>}
492
- * @memberof TableDto
493
- */
494
- values: Array<TableCellDto>;
495
- }
496
-
497
421
  /**
498
422
  * Hey Pharamcist API
499
423
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
@@ -513,18 +437,6 @@ interface TableDto {
513
437
  */
514
438
  interface ProductVariant {
515
439
  _id?: string;
516
- /**
517
- *
518
- * @type {Date}
519
- * @memberof ProductVariant
520
- */
521
- createdAt: Date;
522
- /**
523
- *
524
- * @type {Date}
525
- * @memberof ProductVariant
526
- */
527
- updatedAt: Date;
528
440
  /**
529
441
  *
530
442
  * @type {string}
@@ -536,139 +448,121 @@ interface ProductVariant {
536
448
  * @type {string}
537
449
  * @memberof ProductVariant
538
450
  */
539
- parentProduct: string;
540
- /**
541
- *
542
- * @type {string}
543
- * @memberof ProductVariant
544
- */
545
- parentCategory: string;
546
- /**
547
- *
548
- * @type {string}
549
- * @memberof ProductVariant
550
- */
551
- discount: string;
451
+ name: string;
552
452
  /**
553
453
  *
554
454
  * @type {string}
555
455
  * @memberof ProductVariant
556
456
  */
557
- name: string;
457
+ description: string;
558
458
  /**
559
459
  *
560
460
  * @type {string}
561
461
  * @memberof ProductVariant
562
462
  */
563
- description: string;
463
+ sku: string;
564
464
  /**
565
465
  *
566
466
  * @type {Array<SingleProductMedia>}
567
467
  * @memberof ProductVariant
568
468
  */
569
- productMedia: Array<SingleProductMedia>;
469
+ media: Array<SingleProductMedia>;
570
470
  /**
571
471
  *
572
- * @type {boolean}
573
- * @memberof ProductVariant
574
- */
575
- isActive: boolean;
576
- /**
577
- * The width of the product variant in cm
578
472
  * @type {number}
579
473
  * @memberof ProductVariant
580
474
  */
581
- width: number;
475
+ retailPrice: number;
582
476
  /**
583
- * The height of the product variant in cm
477
+ *
584
478
  * @type {number}
585
479
  * @memberof ProductVariant
586
480
  */
587
- height: number;
481
+ costPrice: number;
588
482
  /**
589
- * The length of the product variant in cm
483
+ *
590
484
  * @type {number}
591
485
  * @memberof ProductVariant
592
486
  */
593
- length: number;
487
+ finalPrice: number;
594
488
  /**
595
- * The weight of the product variant in g
596
- * @type {number}
489
+ *
490
+ * @type {boolean}
597
491
  * @memberof ProductVariant
598
492
  */
599
- weight: number;
493
+ isDiscounted: boolean;
600
494
  /**
601
495
  *
602
- * @type {string}
496
+ * @type {number}
603
497
  * @memberof ProductVariant
604
498
  */
605
- brand: string;
499
+ discountAmount: number;
606
500
  /**
607
501
  *
608
- * @type {string}
502
+ * @type {number}
609
503
  * @memberof ProductVariant
610
504
  */
611
- sku: string;
505
+ inventoryCount: number;
612
506
  /**
613
507
  *
614
- * @type {boolean}
508
+ * @type {string}
615
509
  * @memberof ProductVariant
616
510
  */
617
- isDiscounted: boolean;
511
+ inventoryStatus: ProductVariantInventoryStatusEnum;
618
512
  /**
619
513
  *
620
514
  * @type {number}
621
515
  * @memberof ProductVariant
622
516
  */
623
- discountAmount: number;
517
+ totalSold: number;
624
518
  /**
625
- *
519
+ * Width in cm
626
520
  * @type {number}
627
521
  * @memberof ProductVariant
628
522
  */
629
- retailPrice: number;
523
+ width: number;
630
524
  /**
631
- *
525
+ * Height in cm
632
526
  * @type {number}
633
527
  * @memberof ProductVariant
634
528
  */
635
- costPrice: number;
529
+ height: number;
636
530
  /**
637
- *
531
+ * Length in cm
638
532
  * @type {number}
639
533
  * @memberof ProductVariant
640
534
  */
641
- finalPrice: number;
535
+ length: number;
642
536
  /**
643
- *
537
+ * Weight in grams
644
538
  * @type {number}
645
539
  * @memberof ProductVariant
646
540
  */
647
- totalSold: number;
541
+ weight: number;
648
542
  /**
649
543
  *
650
- * @type {Array<TableDto>}
544
+ * @type {boolean}
651
545
  * @memberof ProductVariant
652
546
  */
653
- tables: Array<TableDto>;
547
+ isActive: boolean;
654
548
  /**
655
549
  *
656
- * @type {number}
550
+ * @type {Date}
657
551
  * @memberof ProductVariant
658
552
  */
659
- inventoryCount: number;
553
+ inventoryLastUpdated: Date;
660
554
  /**
661
555
  *
662
556
  * @type {string}
663
557
  * @memberof ProductVariant
664
558
  */
665
- inventoryStatus: ProductVariantInventoryStatusEnum;
559
+ discount: string;
666
560
  /**
667
561
  *
668
- * @type {Date}
562
+ * @type {any}
669
563
  * @memberof ProductVariant
670
564
  */
671
- inventoryLastUpdated: Date;
565
+ attributes: any;
672
566
  }
673
567
  /**
674
568
  * @export
@@ -923,10 +817,10 @@ interface CategorySubCategoryPopulated {
923
817
  image: string;
924
818
  /**
925
819
  *
926
- * @type {Array<string>}
820
+ * @type {number}
927
821
  * @memberof CategorySubCategoryPopulated
928
822
  */
929
- subCategoryProducts: Array<string>;
823
+ productCount: number;
930
824
  }
931
825
 
932
826
  /**
@@ -1008,18 +902,6 @@ interface CategoryPopulated {
1008
902
  * @memberof CategoryPopulated
1009
903
  */
1010
904
  storeId?: string;
1011
- /**
1012
- *
1013
- * @type {Array<string>}
1014
- * @memberof CategoryPopulated
1015
- */
1016
- categoryProducts?: Array<string>;
1017
- /**
1018
- *
1019
- * @type {Array<string>}
1020
- * @memberof CategoryPopulated
1021
- */
1022
- categoryProductVariants?: Array<string>;
1023
905
  /**
1024
906
  *
1025
907
  * @type {Array<CategorySubCategoryPopulated>}
@@ -1455,522 +1337,128 @@ interface Discount {
1455
1337
  /**
1456
1338
  *
1457
1339
  * @type {Array<string>}
1458
- * @memberof Discount
1459
- */
1460
- categoriesEligible: Array<string>;
1461
- /**
1462
- *
1463
- * @type {Array<string>}
1464
- * @memberof Discount
1465
- */
1466
- productsEligible: Array<string>;
1467
- /**
1468
- *
1469
- * @type {Array<string>}
1470
- * @memberof Discount
1471
- */
1472
- variantsEligible: Array<string>;
1473
- /**
1474
- *
1475
- * @type {string}
1476
- * @memberof Discount
1477
- */
1478
- storeId: string;
1479
- /**
1480
- *
1481
- * @type {Array<UsedBy>}
1482
- * @memberof Discount
1483
- */
1484
- usedBy: Array<UsedBy>;
1485
- /**
1486
- *
1487
- * @type {number}
1488
- * @memberof Discount
1489
- */
1490
- maxUsesPerUser: number;
1491
- /**
1492
- *
1493
- * @type {string}
1494
- * @memberof Discount
1495
- */
1496
- minPurchaseRequired: DiscountMinPurchaseRequiredEnum;
1497
- /**
1498
- *
1499
- * @type {number}
1500
- * @memberof Discount
1501
- */
1502
- minPurchaseAmount: number;
1503
- /**
1504
- *
1505
- * @type {number}
1506
- * @memberof Discount
1507
- */
1508
- minPurchaseQuantity: number;
1509
- /**
1510
- *
1511
- * @type {string}
1512
- * @memberof Discount
1513
- */
1514
- customerEligibility: DiscountCustomerEligibilityEnum;
1515
- /**
1516
- *
1517
- * @type {Array<string>}
1518
- * @memberof Discount
1519
- */
1520
- usersEligible: Array<string>;
1521
- /**
1522
- *
1523
- * @type {Array<string>}
1524
- * @memberof Discount
1525
- */
1526
- groupsEligible: Array<string>;
1527
- /**
1528
- *
1529
- * @type {Array<string>}
1530
- * @memberof Discount
1531
- */
1532
- eligibleZipCodes: Array<string>;
1533
- }
1534
- /**
1535
- * @export
1536
- * @enum {string}
1537
- */
1538
- declare enum DiscountDiscountTypeEnum {
1539
- CARTBALANCE = "CART_BALANCE",
1540
- SHIPPING = "SHIPPING",
1541
- PRODUCT = "PRODUCT",
1542
- CATEGORY = "CATEGORY",
1543
- VARIANT = "VARIANT"
1544
- }
1545
- /**
1546
- * @export
1547
- * @enum {string}
1548
- */
1549
- declare enum DiscountDecreasePriceByEnum {
1550
- PERCENTAGE = "PERCENTAGE",
1551
- AMOUNT = "AMOUNT"
1552
- }
1553
- /**
1554
- * @export
1555
- * @enum {string}
1556
- */
1557
- declare enum DiscountStateEnum {
1558
- ACTIVE = "ACTIVE",
1559
- INACTIVE = "INACTIVE",
1560
- EXPIRED = "EXPIRED",
1561
- SCHEDULED = "SCHEDULED"
1562
- }
1563
- /**
1564
- * @export
1565
- * @enum {string}
1566
- */
1567
- declare enum DiscountMinPurchaseRequiredEnum {
1568
- NOREQUIREMENT = "NO_REQUIREMENT",
1569
- MINIMUMAMOUNT = "MINIMUM_AMOUNT",
1570
- MINIMUMQUANTITY = "MINIMUM_QUANTITY"
1571
- }
1572
- /**
1573
- * @export
1574
- * @enum {string}
1575
- */
1576
- declare enum DiscountCustomerEligibilityEnum {
1577
- ALL = "ALL",
1578
- SPECIFICUSERS = "SPECIFIC_USERS",
1579
- SPECIFICGROUPS = "SPECIFIC_GROUPS"
1580
- }
1581
-
1582
- /**
1583
- * Hey Pharamcist API
1584
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
1585
- *
1586
- * OpenAPI spec version: 1.0
1587
- *
1588
- *
1589
- * NOTE: This class is auto generated by the swagger code generator program.
1590
- * https://github.com/swagger-api/swagger-codegen.git
1591
- * Do not edit the class manually.
1592
- */
1593
- /**
1594
- *
1595
- * @export
1596
- * @interface ShallowParentCategoryDto
1597
- */
1598
- interface ShallowParentCategoryDto {
1599
- _id?: string;
1600
- /**
1601
- *
1602
- * @type {string}
1603
- * @memberof ShallowParentCategoryDto
1604
- */
1605
- id: string;
1606
- /**
1607
- *
1608
- * @type {string}
1609
- * @memberof ShallowParentCategoryDto
1610
- */
1611
- name: string;
1612
- }
1613
-
1614
- /**
1615
- * Hey Pharamcist API
1616
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
1617
- *
1618
- * OpenAPI spec version: 1.0
1619
- *
1620
- *
1621
- * NOTE: This class is auto generated by the swagger code generator program.
1622
- * https://github.com/swagger-api/swagger-codegen.git
1623
- * Do not edit the class manually.
1624
- */
1625
-
1626
- /**
1627
- *
1628
- * @export
1629
- * @interface FrequentlyBoughtProductDto
1630
- */
1631
- interface FrequentlyBoughtProductDto {
1632
- _id?: string;
1633
- /**
1634
- *
1635
- * @type {string}
1636
- * @memberof FrequentlyBoughtProductDto
1637
- */
1638
- id: string;
1639
- /**
1640
- *
1641
- * @type {string}
1642
- * @memberof FrequentlyBoughtProductDto
1643
- */
1644
- name: string;
1645
- /**
1646
- *
1647
- * @type {Array<SingleProductMedia>}
1648
- * @memberof FrequentlyBoughtProductDto
1649
- */
1650
- productMedia: Array<SingleProductMedia>;
1651
- /**
1652
- *
1653
- * @type {boolean}
1654
- * @memberof FrequentlyBoughtProductDto
1655
- */
1656
- isDiscounted: boolean;
1657
- /**
1658
- *
1659
- * @type {number}
1660
- * @memberof FrequentlyBoughtProductDto
1661
- */
1662
- discountAmount: number;
1663
- /**
1664
- *
1665
- * @type {number}
1666
- * @memberof FrequentlyBoughtProductDto
1667
- */
1668
- retailPrice: number;
1669
- /**
1670
- *
1671
- * @type {number}
1672
- * @memberof FrequentlyBoughtProductDto
1673
- */
1674
- finalPrice: number;
1675
- /**
1676
- *
1677
- * @type {ShallowParentCategoryDto}
1678
- * @memberof FrequentlyBoughtProductDto
1679
- */
1680
- parentCategory: ShallowParentCategoryDto;
1681
- }
1682
-
1683
- /**
1684
- * Hey Pharamcist API
1685
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
1686
- *
1687
- * OpenAPI spec version: 1.0
1688
- *
1689
- *
1690
- * NOTE: This class is auto generated by the swagger code generator program.
1691
- * https://github.com/swagger-api/swagger-codegen.git
1692
- * Do not edit the class manually.
1693
- */
1694
- /**
1695
- *
1696
- * @export
1697
- * @interface Review
1698
- */
1699
- interface Review {
1700
- _id?: string;
1701
- /**
1702
- *
1703
- * @type {Date}
1704
- * @memberof Review
1705
- */
1706
- createdAt: Date;
1707
- /**
1708
- *
1709
- * @type {Date}
1710
- * @memberof Review
1711
- */
1712
- updatedAt: Date;
1713
- /**
1714
- *
1715
- * @type {string}
1716
- * @memberof Review
1717
- */
1718
- id: string;
1719
- /**
1720
- *
1721
- * @type {string}
1722
- * @memberof Review
1723
- */
1724
- orderId: string;
1725
- /**
1726
- *
1727
- * @type {string}
1728
- * @memberof Review
1729
- */
1730
- storeId: string;
1731
- /**
1732
- *
1733
- * @type {string}
1734
- * @memberof Review
1735
- */
1736
- userId: string;
1737
- /**
1738
- *
1739
- * @type {string}
1740
- * @memberof Review
1741
- */
1742
- productId: string;
1743
- /**
1744
- *
1745
- * @type {string}
1746
- * @memberof Review
1747
- */
1748
- reviewType: string;
1749
- /**
1750
- *
1751
- * @type {string}
1752
- * @memberof Review
1753
- */
1754
- review: string;
1755
- /**
1756
- *
1757
- * @type {number}
1758
- * @memberof Review
1759
- */
1760
- rating: number;
1761
- /**
1762
- *
1763
- * @type {string}
1764
- * @memberof Review
1765
- */
1766
- reply: string;
1767
- /**
1768
- *
1769
- * @type {string}
1770
- * @memberof Review
1771
- */
1772
- replyDate: string;
1773
- }
1774
-
1775
- /**
1776
- * Hey Pharamcist API
1777
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
1778
- *
1779
- * OpenAPI spec version: 1.0
1780
- *
1781
- *
1782
- * NOTE: This class is auto generated by the swagger code generator program.
1783
- * https://github.com/swagger-api/swagger-codegen.git
1784
- * Do not edit the class manually.
1785
- */
1786
-
1787
- /**
1788
- *
1789
- * @export
1790
- * @interface ExtendedProductDTO
1791
- */
1792
- interface ExtendedProductDTO {
1793
- _id?: string;
1794
- /**
1795
- *
1796
- * @type {Date}
1797
- * @memberof ExtendedProductDTO
1798
- */
1799
- createdAt: Date;
1800
- /**
1801
- *
1802
- * @type {Date}
1803
- * @memberof ExtendedProductDTO
1804
- */
1805
- updatedAt: Date;
1806
- /**
1807
- *
1808
- * @type {string}
1809
- * @memberof ExtendedProductDTO
1810
- */
1811
- id: string;
1812
- /**
1813
- *
1814
- * @type {string}
1815
- * @memberof ExtendedProductDTO
1816
- */
1817
- storeId: string;
1818
- /**
1819
- *
1820
- * @type {string}
1821
- * @memberof ExtendedProductDTO
1822
- */
1823
- name: string;
1824
- /**
1825
- *
1826
- * @type {string}
1827
- * @memberof ExtendedProductDTO
1828
- */
1829
- description: string;
1830
- /**
1831
- *
1832
- * @type {Array<SingleProductMedia>}
1833
- * @memberof ExtendedProductDTO
1834
- */
1835
- productMedia: Array<SingleProductMedia>;
1836
- /**
1837
- *
1838
- * @type {Array<string>}
1839
- * @memberof ExtendedProductDTO
1840
- */
1841
- tags: Array<string>;
1842
- /**
1843
- *
1844
- * @type {boolean}
1845
- * @memberof ExtendedProductDTO
1846
- */
1847
- isActive: boolean;
1848
- /**
1849
- *
1850
- * @type {string}
1851
- * @memberof ExtendedProductDTO
1852
- */
1853
- brand: string;
1854
- /**
1855
- *
1856
- * @type {Array<string>}
1857
- * @memberof ExtendedProductDTO
1858
- */
1859
- embedding: Array<string>;
1860
- /**
1861
- *
1862
- * @type {string}
1863
- * @memberof ExtendedProductDTO
1864
- */
1865
- sku: string;
1866
- /**
1867
- *
1868
- * @type {boolean}
1869
- * @memberof ExtendedProductDTO
1870
- */
1871
- showStock: boolean;
1872
- /**
1873
- *
1874
- * @type {string}
1875
- * @memberof ExtendedProductDTO
1876
- */
1877
- upc: string;
1878
- /**
1879
- *
1880
- * @type {boolean}
1881
- * @memberof ExtendedProductDTO
1882
- */
1883
- homeScreenFeatured: boolean;
1884
- /**
1885
- *
1886
- * @type {boolean}
1887
- * @memberof ExtendedProductDTO
1888
- */
1889
- isDiscounted: boolean;
1890
- /**
1891
- *
1892
- * @type {string}
1893
- * @memberof ExtendedProductDTO
1894
- */
1895
- discountType: string;
1896
- /**
1897
- *
1898
- * @type {number}
1899
- * @memberof ExtendedProductDTO
1340
+ * @memberof Discount
1900
1341
  */
1901
- discountAmount: number;
1342
+ categoriesEligible: Array<string>;
1902
1343
  /**
1903
1344
  *
1904
- * @type {number}
1905
- * @memberof ExtendedProductDTO
1345
+ * @type {Array<string>}
1346
+ * @memberof Discount
1906
1347
  */
1907
- priceBeforeDiscount: number;
1348
+ productsEligible: Array<string>;
1908
1349
  /**
1909
1350
  *
1910
- * @type {number}
1911
- * @memberof ExtendedProductDTO
1351
+ * @type {Array<string>}
1352
+ * @memberof Discount
1912
1353
  */
1913
- finalPrice: number;
1354
+ variantsEligible: Array<string>;
1914
1355
  /**
1915
1356
  *
1916
- * @type {number}
1917
- * @memberof ExtendedProductDTO
1357
+ * @type {string}
1358
+ * @memberof Discount
1918
1359
  */
1919
- weight: number;
1360
+ storeId: string;
1920
1361
  /**
1921
1362
  *
1922
- * @type {number}
1923
- * @memberof ExtendedProductDTO
1363
+ * @type {Array<UsedBy>}
1364
+ * @memberof Discount
1924
1365
  */
1925
- inventoryCount: number;
1366
+ usedBy: Array<UsedBy>;
1926
1367
  /**
1927
1368
  *
1928
1369
  * @type {number}
1929
- * @memberof ExtendedProductDTO
1370
+ * @memberof Discount
1930
1371
  */
1931
- totalSold: number;
1372
+ maxUsesPerUser: number;
1932
1373
  /**
1933
1374
  *
1934
- * @type {number}
1935
- * @memberof ExtendedProductDTO
1375
+ * @type {string}
1376
+ * @memberof Discount
1936
1377
  */
1937
- totalSales: number;
1378
+ minPurchaseRequired: DiscountMinPurchaseRequiredEnum;
1938
1379
  /**
1939
1380
  *
1940
- * @type {Array<FrequentlyBoughtProductDto>}
1941
- * @memberof ExtendedProductDTO
1381
+ * @type {number}
1382
+ * @memberof Discount
1942
1383
  */
1943
- frequentlyBoughtProducts: Array<FrequentlyBoughtProductDto>;
1384
+ minPurchaseAmount: number;
1944
1385
  /**
1945
1386
  *
1946
- * @type {Array<Review>}
1947
- * @memberof ExtendedProductDTO
1387
+ * @type {number}
1388
+ * @memberof Discount
1948
1389
  */
1949
- reviews?: Array<Review>;
1390
+ minPurchaseQuantity: number;
1950
1391
  /**
1951
1392
  *
1952
- * @type {number}
1953
- * @memberof ExtendedProductDTO
1393
+ * @type {string}
1394
+ * @memberof Discount
1954
1395
  */
1955
- rating?: number;
1396
+ customerEligibility: DiscountCustomerEligibilityEnum;
1956
1397
  /**
1957
1398
  *
1958
- * @type {Array<ShallowParentCategoryDto>}
1959
- * @memberof ExtendedProductDTO
1399
+ * @type {Array<string>}
1400
+ * @memberof Discount
1960
1401
  */
1961
- parentCategories: Array<ShallowParentCategoryDto>;
1402
+ usersEligible: Array<string>;
1962
1403
  /**
1963
1404
  *
1964
- * @type {Array<ShallowParentCategoryDto>}
1965
- * @memberof ExtendedProductDTO
1405
+ * @type {Array<string>}
1406
+ * @memberof Discount
1966
1407
  */
1967
- parentSubCategories: Array<ShallowParentCategoryDto>;
1408
+ groupsEligible: Array<string>;
1968
1409
  /**
1969
1410
  *
1970
- * @type {Array<ProductVariant>}
1971
- * @memberof ExtendedProductDTO
1411
+ * @type {Array<string>}
1412
+ * @memberof Discount
1972
1413
  */
1973
- productVariants: Array<ProductVariant>;
1414
+ eligibleZipCodes: Array<string>;
1415
+ }
1416
+ /**
1417
+ * @export
1418
+ * @enum {string}
1419
+ */
1420
+ declare enum DiscountDiscountTypeEnum {
1421
+ CARTBALANCE = "CART_BALANCE",
1422
+ SHIPPING = "SHIPPING",
1423
+ PRODUCT = "PRODUCT",
1424
+ CATEGORY = "CATEGORY",
1425
+ VARIANT = "VARIANT"
1426
+ }
1427
+ /**
1428
+ * @export
1429
+ * @enum {string}
1430
+ */
1431
+ declare enum DiscountDecreasePriceByEnum {
1432
+ PERCENTAGE = "PERCENTAGE",
1433
+ AMOUNT = "AMOUNT"
1434
+ }
1435
+ /**
1436
+ * @export
1437
+ * @enum {string}
1438
+ */
1439
+ declare enum DiscountStateEnum {
1440
+ ACTIVE = "ACTIVE",
1441
+ INACTIVE = "INACTIVE",
1442
+ EXPIRED = "EXPIRED",
1443
+ SCHEDULED = "SCHEDULED"
1444
+ }
1445
+ /**
1446
+ * @export
1447
+ * @enum {string}
1448
+ */
1449
+ declare enum DiscountMinPurchaseRequiredEnum {
1450
+ NOREQUIREMENT = "NO_REQUIREMENT",
1451
+ MINIMUMAMOUNT = "MINIMUM_AMOUNT",
1452
+ MINIMUMQUANTITY = "MINIMUM_QUANTITY"
1453
+ }
1454
+ /**
1455
+ * @export
1456
+ * @enum {string}
1457
+ */
1458
+ declare enum DiscountCustomerEligibilityEnum {
1459
+ ALL = "ALL",
1460
+ SPECIFICUSERS = "SPECIFIC_USERS",
1461
+ SPECIFICGROUPS = "SPECIFIC_GROUPS"
1974
1462
  }
1975
1463
 
1976
1464
  /**
@@ -3045,6 +2533,209 @@ declare enum PopulatedOrderTypeEnum {
3045
2533
  Order = "Order"
3046
2534
  }
3047
2535
 
2536
+ /**
2537
+ * Hey Pharamcist API
2538
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
2539
+ *
2540
+ * OpenAPI spec version: 1.0
2541
+ *
2542
+ *
2543
+ * NOTE: This class is auto generated by the swagger code generator program.
2544
+ * https://github.com/swagger-api/swagger-codegen.git
2545
+ * Do not edit the class manually.
2546
+ */
2547
+ /**
2548
+ *
2549
+ * @export
2550
+ * @interface ProductSummary
2551
+ */
2552
+ interface ProductSummary {
2553
+ _id?: string;
2554
+ /**
2555
+ *
2556
+ * @type {number}
2557
+ * @memberof ProductSummary
2558
+ */
2559
+ minPrice: number;
2560
+ /**
2561
+ *
2562
+ * @type {number}
2563
+ * @memberof ProductSummary
2564
+ */
2565
+ maxPrice: number;
2566
+ /**
2567
+ *
2568
+ * @type {number}
2569
+ * @memberof ProductSummary
2570
+ */
2571
+ totalInventory: number;
2572
+ /**
2573
+ *
2574
+ * @type {boolean}
2575
+ * @memberof ProductSummary
2576
+ */
2577
+ hasDiscount: boolean;
2578
+ /**
2579
+ *
2580
+ * @type {number}
2581
+ * @memberof ProductSummary
2582
+ */
2583
+ variantCount: number;
2584
+ /**
2585
+ *
2586
+ * @type {number}
2587
+ * @memberof ProductSummary
2588
+ */
2589
+ totalSold: number;
2590
+ /**
2591
+ *
2592
+ * @type {number}
2593
+ * @memberof ProductSummary
2594
+ */
2595
+ averageRating: number;
2596
+ /**
2597
+ *
2598
+ * @type {number}
2599
+ * @memberof ProductSummary
2600
+ */
2601
+ reviewCount: number;
2602
+ }
2603
+
2604
+ /**
2605
+ * Hey Pharamcist API
2606
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
2607
+ *
2608
+ * OpenAPI spec version: 1.0
2609
+ *
2610
+ *
2611
+ * NOTE: This class is auto generated by the swagger code generator program.
2612
+ * https://github.com/swagger-api/swagger-codegen.git
2613
+ * Do not edit the class manually.
2614
+ */
2615
+
2616
+ /**
2617
+ *
2618
+ * @export
2619
+ * @interface Product
2620
+ */
2621
+ interface Product {
2622
+ _id?: string;
2623
+ /**
2624
+ *
2625
+ * @type {Date}
2626
+ * @memberof Product
2627
+ */
2628
+ createdAt: Date;
2629
+ /**
2630
+ *
2631
+ * @type {Date}
2632
+ * @memberof Product
2633
+ */
2634
+ updatedAt: Date;
2635
+ /**
2636
+ *
2637
+ * @type {string}
2638
+ * @memberof Product
2639
+ */
2640
+ id: string;
2641
+ /**
2642
+ *
2643
+ * @type {string}
2644
+ * @memberof Product
2645
+ */
2646
+ storeId: string;
2647
+ /**
2648
+ *
2649
+ * @type {string}
2650
+ * @memberof Product
2651
+ */
2652
+ name: string;
2653
+ /**
2654
+ *
2655
+ * @type {string}
2656
+ * @memberof Product
2657
+ */
2658
+ description: string;
2659
+ /**
2660
+ *
2661
+ * @type {string}
2662
+ * @memberof Product
2663
+ */
2664
+ brand: string;
2665
+ /**
2666
+ *
2667
+ * @type {string}
2668
+ * @memberof Product
2669
+ */
2670
+ upc: string;
2671
+ /**
2672
+ *
2673
+ * @type {Array<SingleProductMedia>}
2674
+ * @memberof Product
2675
+ */
2676
+ media: Array<SingleProductMedia>;
2677
+ /**
2678
+ *
2679
+ * @type {Array<string>}
2680
+ * @memberof Product
2681
+ */
2682
+ tags: Array<string>;
2683
+ /**
2684
+ *
2685
+ * @type {boolean}
2686
+ * @memberof Product
2687
+ */
2688
+ isActive: boolean;
2689
+ /**
2690
+ *
2691
+ * @type {boolean}
2692
+ * @memberof Product
2693
+ */
2694
+ showStock: boolean;
2695
+ /**
2696
+ *
2697
+ * @type {boolean}
2698
+ * @memberof Product
2699
+ */
2700
+ homeScreenFeatured: boolean;
2701
+ /**
2702
+ *
2703
+ * @type {string}
2704
+ * @memberof Product
2705
+ */
2706
+ sku: string;
2707
+ /**
2708
+ *
2709
+ * @type {Array<string>}
2710
+ * @memberof Product
2711
+ */
2712
+ categoryIds: Array<string>;
2713
+ /**
2714
+ *
2715
+ * @type {Array<string>}
2716
+ * @memberof Product
2717
+ */
2718
+ subCategoryIds: Array<string>;
2719
+ /**
2720
+ *
2721
+ * @type {Array<ProductVariant>}
2722
+ * @memberof Product
2723
+ */
2724
+ variants: Array<ProductVariant>;
2725
+ /**
2726
+ *
2727
+ * @type {ProductSummary}
2728
+ * @memberof Product
2729
+ */
2730
+ summary: ProductSummary;
2731
+ /**
2732
+ *
2733
+ * @type {Array<string>}
2734
+ * @memberof Product
2735
+ */
2736
+ frequentlyBoughtWith: Array<string>;
2737
+ }
2738
+
3048
2739
  /**
3049
2740
  * Hey Pharamcist API
3050
2741
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
@@ -3666,7 +3357,7 @@ declare class Configuration {
3666
3357
  }
3667
3358
 
3668
3359
  interface WishlistContextType extends Wishlist {
3669
- addToWishlist: (product: ExtendedProductDTO) => Promise<void>;
3360
+ addToWishlist: (product: Product) => Promise<void>;
3670
3361
  removeFromWishlist: (productId: string) => Promise<void>;
3671
3362
  isInWishlist: (productId: string) => boolean;
3672
3363
  getWishlistCount: () => number;
@@ -3703,6 +3394,10 @@ declare function LoginScreen(): react_jsx_runtime.JSX.Element | null;
3703
3394
 
3704
3395
  declare function RegisterScreen(): react_jsx_runtime.JSX.Element;
3705
3396
 
3397
+ declare function ForgotPasswordScreen(): react_jsx_runtime.JSX.Element;
3398
+
3399
+ declare function ResetPasswordScreen(): react_jsx_runtime.JSX.Element;
3400
+
3706
3401
  declare function AccountPage(): react_jsx_runtime.JSX.Element | null;
3707
3402
 
3708
3403
  declare function OrdersScreen(): react_jsx_runtime.JSX.Element;
@@ -3724,9 +3419,9 @@ declare function Header(): react_jsx_runtime.JSX.Element;
3724
3419
  declare function Footer(): react_jsx_runtime.JSX.Element;
3725
3420
 
3726
3421
  interface ProductCardProps {
3727
- product: ExtendedProductDTO;
3728
- onClickProduct?: (product: ExtendedProductDTO) => void;
3729
- onFavorite?: (product: ExtendedProductDTO) => void;
3422
+ product: Product;
3423
+ onClickProduct?: (product: Product) => void;
3424
+ onFavorite?: (product: Product) => void;
3730
3425
  isFavorited?: boolean;
3731
3426
  showFavoriteButton?: boolean;
3732
3427
  }
@@ -3793,7 +3488,7 @@ declare function ProductCardSkeleton(): react_jsx_runtime.JSX.Element;
3793
3488
  declare function OrderCardSkeleton(): react_jsx_runtime.JSX.Element;
3794
3489
 
3795
3490
  declare function useProducts(filters?: ProductFilters, page?: number, limit?: number): {
3796
- products: ExtendedProductDTO[];
3491
+ products: Product[];
3797
3492
  isLoading: boolean;
3798
3493
  error: Error | null;
3799
3494
  pagination: {
@@ -3802,9 +3497,18 @@ declare function useProducts(filters?: ProductFilters, page?: number, limit?: nu
3802
3497
  total: number;
3803
3498
  totalPages: number;
3804
3499
  };
3500
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
3501
+ products: Product[];
3502
+ pagination: {
3503
+ page: number;
3504
+ limit: number;
3505
+ total: number;
3506
+ totalPages: number;
3507
+ };
3508
+ }, Error>>;
3805
3509
  };
3806
3510
  declare function useProduct(id: string): {
3807
- product: ExtendedProductDTO | null;
3511
+ product: Product | null;
3808
3512
  isLoading: boolean;
3809
3513
  error: Error | null;
3810
3514
  };
@@ -3904,4 +3608,4 @@ declare function generateColorShades(baseColor: string): {
3904
3608
  950: string;
3905
3609
  };
3906
3610
 
3907
- export { AddressesScreen, AuthProvider, Badge, Button, CartItem, CartProvider, CartScreen, type Category, CheckoutScreen, CurrentOrdersScreen, type EcommerceConfig, EcommerceProvider, EditProfileScreen, EmptyState, Footer, Header, Input, LoginScreen, Modal, NewAddressPage as NewAddressScreen, OrderCard, OrderCardSkeleton, OrderStatus, OrdersScreen, ProductCard, ProductCardSkeleton, ProductDetailScreen, type ProductFilters, AccountPage as ProfileScreen, RegisterScreen, SearchPage as SearchResultsScreen, ShopScreen, Skeleton, ThemeProvider, WishlistProvider, WishlistScreen, formatDate, formatPrice, generateColorShades, getApiConfiguration, getInitials, hexToRgb, initializeApiAdapter, truncate, useAddresses, useAuth, useBasePath, useCart, useCategories, useCurrentOrders, useOrder, useOrders, useProduct, useProducts, useTheme, useWishlist };
3611
+ export { AddressesScreen, AuthProvider, Badge, Button, CartItem, CartProvider, CartScreen, type Category, CheckoutScreen, CurrentOrdersScreen, type EcommerceConfig, EcommerceProvider, EditProfileScreen, EmptyState, Footer, ForgotPasswordScreen, Header, Input, LoginScreen, Modal, NewAddressPage as NewAddressScreen, OrderCard, OrderCardSkeleton, OrderStatus, OrdersScreen, ProductCard, ProductCardSkeleton, ProductDetailScreen, type ProductFilters, AccountPage as ProfileScreen, RegisterScreen, ResetPasswordScreen, SearchPage as SearchResultsScreen, ShopScreen, Skeleton, ThemeProvider, WishlistProvider, WishlistScreen, formatDate, formatPrice, generateColorShades, getApiConfiguration, getInitials, hexToRgb, initializeApiAdapter, truncate, useAddresses, useAuth, useBasePath, useCart, useCategories, useCurrentOrders, useOrder, useOrders, useProduct, useProducts, useTheme, useWishlist };