hey-pharmacist-ecommerce 1.1.42 → 1.1.44
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/README.md +70 -8
- package/dist/index.d.mts +2550 -3081
- package/dist/index.d.ts +2550 -3081
- package/dist/index.js +506 -399
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +506 -397
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/components/AccountOverviewTab.tsx +5 -5
- package/src/components/AccountReviewsTab.tsx +4 -4
- package/src/components/CartItem.tsx +15 -15
- package/src/components/Header.tsx +1 -1
- package/src/components/Notification.tsx +3 -3
- package/src/components/OrderCard.tsx +1 -1
- package/src/components/ProductCard.tsx +11 -11
- package/src/components/QuickViewModal.tsx +16 -16
- package/src/components/RatingDistribution.tsx +2 -2
- package/src/components/ReviewCard.tsx +2 -2
- package/src/components/ReviewForm.tsx +3 -3
- package/src/components/ReviewPromptBanner.tsx +4 -4
- package/src/components/ReviewsList.tsx +9 -11
- package/src/components/StarRating.tsx +3 -3
- package/src/hooks/useProducts.ts +0 -1
- package/src/hooks/useSmartSearch.ts +68 -0
- package/src/lib/Apis/api.ts +1 -1
- package/src/lib/Apis/apis/analytics-api.ts +809 -0
- package/src/lib/Apis/apis/notifications-api.ts +8 -6
- package/src/lib/Apis/apis/products-api.ts +390 -15
- package/src/lib/Apis/apis/stores-api.ts +26 -149
- package/src/lib/Apis/apis/web-hooks-api.ts +8 -17
- package/src/lib/Apis/models/analytics-period-dto.ts +45 -0
- package/src/lib/Apis/models/appointment-overview-dto.ts +71 -0
- package/src/lib/Apis/models/category-sales-dto.ts +51 -0
- package/src/lib/Apis/models/create-store-dto.ts +12 -0
- package/src/lib/Apis/models/customer-overview-dto.ts +96 -0
- package/src/lib/Apis/models/{country-stats-response-dto.ts → customer-segment-dto.ts} +12 -13
- package/src/lib/Apis/models/dashboard-overview-dto.ts +70 -0
- package/src/lib/Apis/models/discount-overview-dto.ts +71 -0
- package/src/lib/Apis/models/group-with-no-users-dto.ts +0 -6
- package/src/lib/Apis/models/group-with-users-dto.ts +0 -6
- package/src/lib/Apis/models/index.ts +29 -38
- package/src/lib/Apis/models/{single-recipient-dto.ts → inline-response200.ts} +11 -10
- package/src/lib/Apis/models/{create-contact-dto.ts → inline-response2001.ts} +11 -11
- package/src/lib/Apis/models/inventory-alert-dto.ts +67 -0
- package/src/lib/Apis/models/notification-dto.ts +107 -0
- package/src/lib/Apis/models/notifications-paginated-response-dto.ts +58 -0
- package/src/lib/Apis/models/order-overview-dto.ts +89 -0
- package/src/lib/Apis/models/{single-link-stats-dto.ts → order-status-count-dto.ts} +10 -10
- package/src/lib/Apis/models/order.ts +0 -6
- package/src/lib/Apis/models/payout-history-item-dto.ts +45 -0
- package/src/lib/Apis/models/{single-country-stats-dto.ts → popular-time-slot-dto.ts} +10 -10
- package/src/lib/Apis/models/populated-order.ts +0 -6
- package/src/lib/Apis/models/preference-update-item.ts +1 -0
- package/src/lib/Apis/models/product-overview-dto.ts +90 -0
- package/src/lib/Apis/models/product.ts +6 -0
- package/src/lib/Apis/models/{create-contact-list-dto.ts → products-aidraft-body.ts} +4 -4
- package/src/lib/Apis/models/{schedule-campaign-draft-dto.ts → products-processimage-body.ts} +5 -5
- package/src/lib/Apis/models/{contact-full-response-dto.ts → rating-distribution-dto.ts} +9 -10
- package/src/lib/Apis/models/recent-review-dto.ts +63 -0
- package/src/lib/Apis/models/review-overview-dto.ts +65 -0
- package/src/lib/Apis/models/store-balance-dto.ts +39 -0
- package/src/lib/Apis/models/store-entity.ts +12 -0
- package/src/lib/Apis/models/{link-stats-response-dto.ts → store-finance-overview-dto.ts} +10 -15
- package/src/lib/Apis/models/store.ts +12 -0
- package/src/lib/Apis/models/{add-contact-to-list-dto.ts → time-series-point-dto.ts} +9 -9
- package/src/lib/Apis/models/{create-email-template-dto.ts → top-customer-dto.ts} +20 -14
- package/src/lib/Apis/models/{marketing-list-contact-dto.ts → top-discount-dto.ts} +12 -12
- package/src/lib/Apis/models/{single-browser-stats-dto.ts → top-product-dto.ts} +18 -12
- package/src/lib/Apis/models/{marketing-campaign-content-dto.ts → unread-count-dto.ts} +6 -6
- package/src/lib/Apis/models/update-store-dto.ts +12 -0
- package/src/lib/Apis/models/update-user-dto.ts +0 -6
- package/src/lib/Apis/models/user-group.ts +0 -6
- package/src/lib/Apis/models/user-with-no-id.ts +0 -6
- package/src/lib/Apis/sharedConfig.ts +1 -1
- package/src/screens/CartScreen.tsx +10 -10
- package/src/screens/CheckoutScreen.tsx +12 -12
- package/src/screens/OrderReviewsScreen.tsx +6 -6
- package/src/screens/ProductDetailScreen.tsx +40 -40
- package/src/screens/SearchResultsScreen.tsx +17 -21
- package/src/screens/ShopScreen.tsx +20 -82
- package/src/lib/Apis/apis/marketing-api.ts +0 -3099
- package/src/lib/Apis/models/api-key-info-dto.ts +0 -49
- package/src/lib/Apis/models/browser-stats-response-dto.ts +0 -40
- package/src/lib/Apis/models/campaign-content-response-dto.ts +0 -40
- package/src/lib/Apis/models/campaign-draft-dto.ts +0 -175
- package/src/lib/Apis/models/campaign-draft-response-dto.ts +0 -40
- package/src/lib/Apis/models/campaign-draft-schedule-dto.ts +0 -49
- package/src/lib/Apis/models/campaign-draft-schedule-response-dto.ts +0 -40
- package/src/lib/Apis/models/campaign-draft-sending-dto.ts +0 -43
- package/src/lib/Apis/models/campaign-draft-sending-response-dto.ts +0 -40
- package/src/lib/Apis/models/contact-aggregated-stats-response-dto.ts +0 -40
- package/src/lib/Apis/models/contact-full-dto.ts +0 -93
- package/src/lib/Apis/models/contact-list-stats-response-dto.ts +0 -40
- package/src/lib/Apis/models/contact-lists-response-dto.ts +0 -40
- package/src/lib/Apis/models/create-marketing-campaign-dto.ts +0 -81
- package/src/lib/Apis/models/email-template-response-dto.ts +0 -117
- package/src/lib/Apis/models/general-stats-response-dto.ts +0 -40
- package/src/lib/Apis/models/send-test-email-dto.ts +0 -28
- package/src/lib/Apis/models/single-contact-aggregated-stats-dto.ts +0 -129
- package/src/lib/Apis/models/single-contact-list-stats-dto.ts +0 -117
- package/src/lib/Apis/models/single-general-stats.ts +0 -153
- package/src/lib/Apis/models/store-api-keys-response-dto.ts +0 -34
- package/src/lib/Apis/models/update-api-keys-dto.ts +0 -39
- package/src/lib/Apis/models/update-campaign-draft-content-dto.ts +0 -27
- package/src/lib/Apis/models/update-marketing-camp-draft-dto.ts +0 -81
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Hey Pharamcist API
|
|
5
|
-
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
6
|
-
*
|
|
7
|
-
* OpenAPI spec version: 1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
11
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
import { ApiKeyInfoDto } from './api-key-info-dto';
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
* @interface StoreApiKeysResponseDto
|
|
19
|
-
*/
|
|
20
|
-
export interface StoreApiKeysResponseDto {
|
|
21
|
-
_id?: string;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {ApiKeyInfoDto}
|
|
25
|
-
* @memberof StoreApiKeysResponseDto
|
|
26
|
-
*/
|
|
27
|
-
stripe: ApiKeyInfoDto;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {ApiKeyInfoDto}
|
|
31
|
-
* @memberof StoreApiKeysResponseDto
|
|
32
|
-
*/
|
|
33
|
-
shippo: ApiKeyInfoDto;
|
|
34
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Hey Pharamcist API
|
|
5
|
-
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
6
|
-
*
|
|
7
|
-
* OpenAPI spec version: 1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
11
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface UpdateApiKeysDto
|
|
18
|
-
*/
|
|
19
|
-
export interface UpdateApiKeysDto {
|
|
20
|
-
_id?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Stripe API key
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof UpdateApiKeysDto
|
|
25
|
-
*/
|
|
26
|
-
stripeApiKey?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Stripe Webhook Secret
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof UpdateApiKeysDto
|
|
31
|
-
*/
|
|
32
|
-
stripeWebhookSecret?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Shippo API key
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof UpdateApiKeysDto
|
|
37
|
-
*/
|
|
38
|
-
shippoApiKey?: string;
|
|
39
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Hey Pharamcist API
|
|
5
|
-
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
6
|
-
*
|
|
7
|
-
* OpenAPI spec version: 1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
11
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface UpdateCampaignDraftContentDto
|
|
18
|
-
*/
|
|
19
|
-
export interface UpdateCampaignDraftContentDto {
|
|
20
|
-
_id?: string;
|
|
21
|
-
/**
|
|
22
|
-
* The Content of the campaign draft in HTML format.
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof UpdateCampaignDraftContentDto
|
|
25
|
-
*/
|
|
26
|
-
htmlContent: string;
|
|
27
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Hey Pharamcist API
|
|
5
|
-
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
6
|
-
*
|
|
7
|
-
* OpenAPI spec version: 1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
11
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface UpdateMarketingCampDraftDto
|
|
18
|
-
*/
|
|
19
|
-
export interface UpdateMarketingCampDraftDto {
|
|
20
|
-
_id?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Internal title for this campaign draft.
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof UpdateMarketingCampDraftDto
|
|
25
|
-
*/
|
|
26
|
-
title?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Subject line for the campaign emails.
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof UpdateMarketingCampDraftDto
|
|
31
|
-
*/
|
|
32
|
-
subject?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Unique numeric ID for the contact list linked to this draft. Required for successful sending of the campaign.
|
|
35
|
-
* @type {number}
|
|
36
|
-
* @memberof UpdateMarketingCampDraftDto
|
|
37
|
-
*/
|
|
38
|
-
contactsListID?: number;
|
|
39
|
-
/**
|
|
40
|
-
* ID of the sender email address. Required for successful sending of the campaign.
|
|
41
|
-
* @type {number}
|
|
42
|
-
* @memberof UpdateMarketingCampDraftDto
|
|
43
|
-
*/
|
|
44
|
-
sender?: number;
|
|
45
|
-
/**
|
|
46
|
-
* ID of the sender email address. Required for successful sending of the campaign.
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof UpdateMarketingCampDraftDto
|
|
49
|
-
*/
|
|
50
|
-
senderEmail?: string;
|
|
51
|
-
/**
|
|
52
|
-
* The email address of the sender. Required for successful sending of the campaign
|
|
53
|
-
* @type {string}
|
|
54
|
-
* @memberof UpdateMarketingCampDraftDto
|
|
55
|
-
*/
|
|
56
|
-
senderName?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Unique numeric ID of the template the CampaignDraft was generated from, or as which it was last saved. Changing the template ID will not update the content of the CampaignDraft.
|
|
59
|
-
* @type {string}
|
|
60
|
-
* @memberof UpdateMarketingCampDraftDto
|
|
61
|
-
*/
|
|
62
|
-
templateId?: string;
|
|
63
|
-
/**
|
|
64
|
-
* Edit mode for the campaign draft.
|
|
65
|
-
* @type {string}
|
|
66
|
-
* @memberof UpdateMarketingCampDraftDto
|
|
67
|
-
*/
|
|
68
|
-
editMode?: string;
|
|
69
|
-
/**
|
|
70
|
-
* Indicates whether the campaign draft is marked as Starred or not.
|
|
71
|
-
* @type {boolean}
|
|
72
|
-
* @memberof UpdateMarketingCampDraftDto
|
|
73
|
-
*/
|
|
74
|
-
isStarred?: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* The email address to which replies to the campaign emails will be sent.
|
|
77
|
-
* @type {string}
|
|
78
|
-
* @memberof UpdateMarketingCampDraftDto
|
|
79
|
-
*/
|
|
80
|
-
replyEmail?: string;
|
|
81
|
-
}
|