hey-pharmacist-ecommerce 1.1.27 → 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.
- package/dist/index.d.mts +344 -640
- package/dist/index.d.ts +344 -640
- package/dist/index.js +1814 -835
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1814 -837
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/AccountOrdersTab.tsx +1 -1
- package/src/components/AccountSettingsTab.tsx +88 -6
- package/src/components/CartItem.tsx +1 -1
- package/src/components/Header.tsx +8 -2
- package/src/components/OrderCard.tsx +4 -4
- package/src/components/ProductCard.tsx +59 -42
- package/src/components/QuickViewModal.tsx +13 -13
- package/src/hooks/useAddresses.ts +4 -1
- package/src/hooks/usePaymentMethods.ts +26 -31
- package/src/hooks/useProducts.ts +63 -64
- package/src/hooks/useWishlistProducts.ts +4 -5
- package/src/index.ts +2 -0
- package/src/lib/Apis/api.ts +0 -1
- package/src/lib/Apis/apis/auth-api.ts +18 -29
- package/src/lib/Apis/apis/products-api.ts +845 -405
- package/src/lib/Apis/models/category-populated.ts +0 -12
- package/src/lib/Apis/models/category-sub-category-populated.ts +2 -2
- package/src/lib/Apis/models/category.ts +0 -18
- package/src/lib/Apis/models/{table-cell-dto.ts → change-password-dto.ts} +6 -6
- package/src/lib/Apis/models/create-product-dto.ts +30 -23
- package/src/lib/Apis/models/create-sub-category-dto.ts +6 -0
- package/src/lib/Apis/models/create-variant-dto.ts +29 -29
- package/src/lib/Apis/models/index.ts +5 -7
- package/src/lib/Apis/models/paginated-products-dto.ts +6 -6
- package/src/lib/Apis/models/product-summary.ts +69 -0
- package/src/lib/Apis/models/product-variant.ts +34 -65
- package/src/lib/Apis/models/product.ts +138 -0
- package/src/lib/Apis/models/products-insights-dto.ts +12 -0
- package/src/lib/Apis/models/single-product-media.ts +0 -12
- package/src/lib/Apis/models/sub-category.ts +6 -12
- package/src/lib/Apis/models/update-product-dto.ts +30 -19
- package/src/lib/Apis/models/update-sub-category-dto.ts +6 -0
- package/src/lib/Apis/models/{update-product-variant-dto.ts → update-variant-dto.ts} +51 -45
- package/src/lib/Apis/models/{shallow-parent-category-dto.ts → variant-id-inventory-body.ts} +5 -11
- package/src/lib/api-adapter/config.ts +53 -0
- package/src/lib/validations/address.ts +1 -1
- package/src/providers/FavoritesProvider.tsx +5 -5
- package/src/providers/WishlistProvider.tsx +4 -4
- package/src/screens/CartScreen.tsx +1 -1
- package/src/screens/ChangePasswordScreen.tsx +2 -6
- package/src/screens/CheckoutScreen.tsx +40 -11
- package/src/screens/EditProfileScreen.tsx +5 -1
- package/src/screens/ForgotPasswordScreen.tsx +153 -0
- package/src/screens/ProductDetailScreen.tsx +51 -60
- package/src/screens/RegisterScreen.tsx +31 -31
- package/src/screens/ResetPasswordScreen.tsx +202 -0
- package/src/screens/SearchResultsScreen.tsx +264 -26
- package/src/screens/ShopScreen.tsx +42 -45
- package/src/screens/WishlistScreen.tsx +35 -31
- package/src/lib/Apis/apis/product-variants-api.ts +0 -552
- package/src/lib/Apis/models/create-single-variant-product-dto.ts +0 -154
- package/src/lib/Apis/models/extended-product-dto.ts +0 -206
- package/src/lib/Apis/models/frequently-bought-product-dto.ts +0 -71
- 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
|
-
|
|
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
|
-
|
|
457
|
+
description: string;
|
|
558
458
|
/**
|
|
559
459
|
*
|
|
560
460
|
* @type {string}
|
|
561
461
|
* @memberof ProductVariant
|
|
562
462
|
*/
|
|
563
|
-
|
|
463
|
+
sku: string;
|
|
564
464
|
/**
|
|
565
465
|
*
|
|
566
466
|
* @type {Array<SingleProductMedia>}
|
|
567
467
|
* @memberof ProductVariant
|
|
568
468
|
*/
|
|
569
|
-
|
|
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
|
-
|
|
475
|
+
retailPrice: number;
|
|
582
476
|
/**
|
|
583
|
-
*
|
|
477
|
+
*
|
|
584
478
|
* @type {number}
|
|
585
479
|
* @memberof ProductVariant
|
|
586
480
|
*/
|
|
587
|
-
|
|
481
|
+
costPrice: number;
|
|
588
482
|
/**
|
|
589
|
-
*
|
|
483
|
+
*
|
|
590
484
|
* @type {number}
|
|
591
485
|
* @memberof ProductVariant
|
|
592
486
|
*/
|
|
593
|
-
|
|
487
|
+
finalPrice: number;
|
|
594
488
|
/**
|
|
595
|
-
*
|
|
596
|
-
* @type {
|
|
489
|
+
*
|
|
490
|
+
* @type {boolean}
|
|
597
491
|
* @memberof ProductVariant
|
|
598
492
|
*/
|
|
599
|
-
|
|
493
|
+
isDiscounted: boolean;
|
|
600
494
|
/**
|
|
601
495
|
*
|
|
602
|
-
* @type {
|
|
496
|
+
* @type {number}
|
|
603
497
|
* @memberof ProductVariant
|
|
604
498
|
*/
|
|
605
|
-
|
|
499
|
+
discountAmount: number;
|
|
606
500
|
/**
|
|
607
501
|
*
|
|
608
|
-
* @type {
|
|
502
|
+
* @type {number}
|
|
609
503
|
* @memberof ProductVariant
|
|
610
504
|
*/
|
|
611
|
-
|
|
505
|
+
inventoryCount: number;
|
|
612
506
|
/**
|
|
613
507
|
*
|
|
614
|
-
* @type {
|
|
508
|
+
* @type {string}
|
|
615
509
|
* @memberof ProductVariant
|
|
616
510
|
*/
|
|
617
|
-
|
|
511
|
+
inventoryStatus: ProductVariantInventoryStatusEnum;
|
|
618
512
|
/**
|
|
619
513
|
*
|
|
620
514
|
* @type {number}
|
|
621
515
|
* @memberof ProductVariant
|
|
622
516
|
*/
|
|
623
|
-
|
|
517
|
+
totalSold: number;
|
|
624
518
|
/**
|
|
625
|
-
*
|
|
519
|
+
* Width in cm
|
|
626
520
|
* @type {number}
|
|
627
521
|
* @memberof ProductVariant
|
|
628
522
|
*/
|
|
629
|
-
|
|
523
|
+
width: number;
|
|
630
524
|
/**
|
|
631
|
-
*
|
|
525
|
+
* Height in cm
|
|
632
526
|
* @type {number}
|
|
633
527
|
* @memberof ProductVariant
|
|
634
528
|
*/
|
|
635
|
-
|
|
529
|
+
height: number;
|
|
636
530
|
/**
|
|
637
|
-
*
|
|
531
|
+
* Length in cm
|
|
638
532
|
* @type {number}
|
|
639
533
|
* @memberof ProductVariant
|
|
640
534
|
*/
|
|
641
|
-
|
|
535
|
+
length: number;
|
|
642
536
|
/**
|
|
643
|
-
*
|
|
537
|
+
* Weight in grams
|
|
644
538
|
* @type {number}
|
|
645
539
|
* @memberof ProductVariant
|
|
646
540
|
*/
|
|
647
|
-
|
|
541
|
+
weight: number;
|
|
648
542
|
/**
|
|
649
543
|
*
|
|
650
|
-
* @type {
|
|
544
|
+
* @type {boolean}
|
|
651
545
|
* @memberof ProductVariant
|
|
652
546
|
*/
|
|
653
|
-
|
|
547
|
+
isActive: boolean;
|
|
654
548
|
/**
|
|
655
549
|
*
|
|
656
|
-
* @type {
|
|
550
|
+
* @type {Date}
|
|
657
551
|
* @memberof ProductVariant
|
|
658
552
|
*/
|
|
659
|
-
|
|
553
|
+
inventoryLastUpdated: Date;
|
|
660
554
|
/**
|
|
661
555
|
*
|
|
662
556
|
* @type {string}
|
|
663
557
|
* @memberof ProductVariant
|
|
664
558
|
*/
|
|
665
|
-
|
|
559
|
+
discount: string;
|
|
666
560
|
/**
|
|
667
561
|
*
|
|
668
|
-
* @type {
|
|
562
|
+
* @type {any}
|
|
669
563
|
* @memberof ProductVariant
|
|
670
564
|
*/
|
|
671
|
-
|
|
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 {
|
|
820
|
+
* @type {number}
|
|
927
821
|
* @memberof CategorySubCategoryPopulated
|
|
928
822
|
*/
|
|
929
|
-
|
|
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
|
-
|
|
1342
|
+
categoriesEligible: Array<string>;
|
|
1902
1343
|
/**
|
|
1903
1344
|
*
|
|
1904
|
-
* @type {
|
|
1905
|
-
* @memberof
|
|
1345
|
+
* @type {Array<string>}
|
|
1346
|
+
* @memberof Discount
|
|
1906
1347
|
*/
|
|
1907
|
-
|
|
1348
|
+
productsEligible: Array<string>;
|
|
1908
1349
|
/**
|
|
1909
1350
|
*
|
|
1910
|
-
* @type {
|
|
1911
|
-
* @memberof
|
|
1351
|
+
* @type {Array<string>}
|
|
1352
|
+
* @memberof Discount
|
|
1912
1353
|
*/
|
|
1913
|
-
|
|
1354
|
+
variantsEligible: Array<string>;
|
|
1914
1355
|
/**
|
|
1915
1356
|
*
|
|
1916
|
-
* @type {
|
|
1917
|
-
* @memberof
|
|
1357
|
+
* @type {string}
|
|
1358
|
+
* @memberof Discount
|
|
1918
1359
|
*/
|
|
1919
|
-
|
|
1360
|
+
storeId: string;
|
|
1920
1361
|
/**
|
|
1921
1362
|
*
|
|
1922
|
-
* @type {
|
|
1923
|
-
* @memberof
|
|
1363
|
+
* @type {Array<UsedBy>}
|
|
1364
|
+
* @memberof Discount
|
|
1924
1365
|
*/
|
|
1925
|
-
|
|
1366
|
+
usedBy: Array<UsedBy>;
|
|
1926
1367
|
/**
|
|
1927
1368
|
*
|
|
1928
1369
|
* @type {number}
|
|
1929
|
-
* @memberof
|
|
1370
|
+
* @memberof Discount
|
|
1930
1371
|
*/
|
|
1931
|
-
|
|
1372
|
+
maxUsesPerUser: number;
|
|
1932
1373
|
/**
|
|
1933
1374
|
*
|
|
1934
|
-
* @type {
|
|
1935
|
-
* @memberof
|
|
1375
|
+
* @type {string}
|
|
1376
|
+
* @memberof Discount
|
|
1936
1377
|
*/
|
|
1937
|
-
|
|
1378
|
+
minPurchaseRequired: DiscountMinPurchaseRequiredEnum;
|
|
1938
1379
|
/**
|
|
1939
1380
|
*
|
|
1940
|
-
* @type {
|
|
1941
|
-
* @memberof
|
|
1381
|
+
* @type {number}
|
|
1382
|
+
* @memberof Discount
|
|
1942
1383
|
*/
|
|
1943
|
-
|
|
1384
|
+
minPurchaseAmount: number;
|
|
1944
1385
|
/**
|
|
1945
1386
|
*
|
|
1946
|
-
* @type {
|
|
1947
|
-
* @memberof
|
|
1387
|
+
* @type {number}
|
|
1388
|
+
* @memberof Discount
|
|
1948
1389
|
*/
|
|
1949
|
-
|
|
1390
|
+
minPurchaseQuantity: number;
|
|
1950
1391
|
/**
|
|
1951
1392
|
*
|
|
1952
|
-
* @type {
|
|
1953
|
-
* @memberof
|
|
1393
|
+
* @type {string}
|
|
1394
|
+
* @memberof Discount
|
|
1954
1395
|
*/
|
|
1955
|
-
|
|
1396
|
+
customerEligibility: DiscountCustomerEligibilityEnum;
|
|
1956
1397
|
/**
|
|
1957
1398
|
*
|
|
1958
|
-
* @type {Array<
|
|
1959
|
-
* @memberof
|
|
1399
|
+
* @type {Array<string>}
|
|
1400
|
+
* @memberof Discount
|
|
1960
1401
|
*/
|
|
1961
|
-
|
|
1402
|
+
usersEligible: Array<string>;
|
|
1962
1403
|
/**
|
|
1963
1404
|
*
|
|
1964
|
-
* @type {Array<
|
|
1965
|
-
* @memberof
|
|
1405
|
+
* @type {Array<string>}
|
|
1406
|
+
* @memberof Discount
|
|
1966
1407
|
*/
|
|
1967
|
-
|
|
1408
|
+
groupsEligible: Array<string>;
|
|
1968
1409
|
/**
|
|
1969
1410
|
*
|
|
1970
|
-
* @type {Array<
|
|
1971
|
-
* @memberof
|
|
1411
|
+
* @type {Array<string>}
|
|
1412
|
+
* @memberof Discount
|
|
1972
1413
|
*/
|
|
1973
|
-
|
|
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:
|
|
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:
|
|
3728
|
-
onClickProduct?: (product:
|
|
3729
|
-
onFavorite?: (product:
|
|
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:
|
|
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:
|
|
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 };
|