hey-pharmacist-ecommerce 1.1.29 → 1.1.31
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 +10957 -1331
- package/dist/index.d.ts +10957 -1331
- package/dist/index.js +12364 -5144
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9353 -2205
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -3
- package/src/components/AccountReviewsTab.tsx +97 -0
- package/src/components/CouponCodeInput.tsx +190 -0
- package/src/components/Header.tsx +5 -1
- package/src/components/Notification.tsx +1 -1
- package/src/components/NotificationBell.tsx +33 -0
- package/src/components/NotificationCard.tsx +211 -0
- package/src/components/NotificationDrawer.tsx +195 -0
- package/src/components/OrderCard.tsx +164 -99
- package/src/components/ProductReviewsSection.tsx +30 -0
- package/src/components/RatingDistribution.tsx +86 -0
- package/src/components/ReviewCard.tsx +59 -0
- package/src/components/ReviewForm.tsx +207 -0
- package/src/components/ReviewPromptBanner.tsx +98 -0
- package/src/components/ReviewsList.tsx +151 -0
- package/src/components/StarRating.tsx +98 -0
- package/src/hooks/useDiscounts.ts +7 -0
- package/src/hooks/useOrders.ts +15 -0
- package/src/hooks/useReviews.ts +230 -0
- package/src/hooks/useStoreCapabilities.ts +87 -0
- package/src/index.ts +29 -0
- package/src/lib/Apis/apis/auth-api.ts +19 -7
- package/src/lib/Apis/apis/categories-api.ts +97 -0
- package/src/lib/Apis/apis/discounts-api.ts +23 -72
- package/src/lib/Apis/apis/notifications-api.ts +196 -231
- package/src/lib/Apis/apis/products-api.ts +181 -0
- package/src/lib/Apis/apis/review-api.ts +283 -4
- package/src/lib/Apis/apis/shipping-api.ts +105 -0
- package/src/lib/Apis/apis/stores-api.ts +536 -0
- package/src/lib/Apis/apis/sub-categories-api.ts +97 -0
- package/src/lib/Apis/apis/users-api.ts +8 -8
- package/src/lib/Apis/models/address-created-request.ts +0 -12
- package/src/lib/Apis/models/address.ts +0 -12
- package/src/lib/Apis/models/api-key-info-dto.ts +49 -0
- package/src/lib/Apis/models/bulk-channel-toggle-dto.ts +52 -0
- package/src/lib/Apis/models/cart-body-populated.ts +3 -3
- package/src/lib/Apis/models/channel-settings-dto.ts +39 -0
- package/src/lib/Apis/models/{discount-paginated-response.ts → completed-order-dto.ts} +21 -16
- package/src/lib/Apis/models/create-address-dto.ts +0 -12
- package/src/lib/Apis/models/create-discount-dto.ts +31 -100
- package/src/lib/Apis/models/create-review-dto.ts +4 -4
- package/src/lib/Apis/models/create-shippo-account-dto.ts +45 -0
- package/src/lib/Apis/models/create-store-address-dto.ts +0 -12
- package/src/lib/Apis/models/create-store-dto-settings.ts +51 -0
- package/src/lib/Apis/models/create-store-dto.ts +13 -0
- package/src/lib/Apis/models/create-variant-dto.ts +0 -6
- package/src/lib/Apis/models/discount.ts +37 -106
- package/src/lib/Apis/models/discounts-insights-dto.ts +12 -0
- package/src/lib/Apis/models/index.ts +24 -7
- package/src/lib/Apis/models/{manual-discount.ts → manual-discount-dto.ts} +10 -10
- package/src/lib/Apis/models/manual-order-dto.ts +3 -3
- package/src/lib/Apis/models/populated-discount.ts +41 -109
- package/src/lib/Apis/models/preference-update-item.ts +59 -0
- package/src/lib/Apis/models/product-light-dto.ts +40 -0
- package/src/lib/Apis/models/product-variant.ts +0 -6
- package/src/lib/Apis/models/reorder-categories-dto.ts +27 -0
- package/src/lib/Apis/models/reorder-products-dto.ts +49 -0
- package/src/lib/Apis/models/{check-notifications-response-dto.ts → reorder-products-success-response-dto.ts} +7 -7
- package/src/lib/Apis/models/reorder-subcategories-dto.ts +33 -0
- package/src/lib/Apis/models/reorder-success-response-dto.ts +33 -0
- package/src/lib/Apis/models/review-status-dto.ts +34 -0
- package/src/lib/Apis/models/review.ts +9 -3
- package/src/lib/Apis/models/reviewable-order-dto.ts +58 -0
- package/src/lib/Apis/models/reviewable-product-dto.ts +81 -0
- package/src/lib/Apis/models/shipment-with-order.ts +18 -0
- package/src/lib/Apis/models/shipment.ts +18 -0
- package/src/lib/Apis/models/shippo-account-response-dto.ts +51 -0
- package/src/lib/Apis/models/store-api-keys-response-dto.ts +34 -0
- package/src/lib/Apis/models/store-capabilities-dto.ts +63 -0
- package/src/lib/Apis/models/store-entity.ts +13 -0
- package/src/lib/Apis/models/store.ts +13 -0
- package/src/lib/Apis/models/update-address-dto.ts +0 -12
- package/src/lib/Apis/models/update-api-keys-dto.ts +39 -0
- package/src/lib/Apis/models/update-discount-dto.ts +31 -100
- package/src/lib/Apis/models/update-manual-shipment-status-dto.ts +47 -0
- package/src/lib/Apis/models/update-notification-settings-dto.ts +28 -0
- package/src/lib/Apis/models/update-review-dto.ts +4 -4
- package/src/lib/Apis/models/update-store-dto.ts +13 -0
- package/src/lib/Apis/models/update-variant-dto.ts +0 -6
- package/src/lib/Apis/models/{pick-type-class.ts → variant-light-dto.ts} +20 -14
- package/src/lib/utils/discount.ts +155 -0
- package/src/lib/validations/discount.ts +11 -0
- package/src/providers/CartProvider.tsx +2 -2
- package/src/providers/DiscountProvider.tsx +97 -0
- package/src/providers/EcommerceProvider.tsx +13 -5
- package/src/providers/NotificationCenterProvider.tsx +436 -0
- package/src/screens/CartScreen.tsx +1 -1
- package/src/screens/CheckoutScreen.tsx +402 -290
- package/src/screens/NotificationSettingsScreen.tsx +413 -0
- package/src/screens/OrderDetailScreen.tsx +283 -0
- package/src/screens/OrderReviewsScreen.tsx +308 -0
- package/src/screens/OrdersScreen.tsx +31 -7
- package/src/screens/ProductDetailScreen.tsx +24 -11
- package/src/screens/ProfileScreen.tsx +5 -0
- package/src/screens/ResetPasswordScreen.tsx +10 -4
- package/src/lib/Apis/models/create-notification-dto.ts +0 -75
- package/src/lib/Apis/models/notification.ts +0 -93
- package/src/lib/Apis/models/single-notification-dto.ts +0 -99
|
@@ -2,11 +2,13 @@ export * from './add-contact-to-list-dto';
|
|
|
2
2
|
export * from './address';
|
|
3
3
|
export * from './address-created-request';
|
|
4
4
|
export * from './allow-user-credit-dto';
|
|
5
|
+
export * from './api-key-info-dto';
|
|
5
6
|
export * from './appointment';
|
|
6
7
|
export * from './available-dates-dto';
|
|
7
8
|
export * from './available-suggested-dates-dto';
|
|
8
9
|
export * from './blog';
|
|
9
10
|
export * from './browser-stats-response-dto';
|
|
11
|
+
export * from './bulk-channel-toggle-dto';
|
|
10
12
|
export * from './bulk-move-subcategories-dto';
|
|
11
13
|
export * from './bulk-unassign-subcategories-dto';
|
|
12
14
|
export * from './campaign-content-response-dto';
|
|
@@ -29,7 +31,8 @@ export * from './category-sub-category-populated';
|
|
|
29
31
|
export * from './categorys-headlines-response-dto';
|
|
30
32
|
export * from './change-password-dto';
|
|
31
33
|
export * from './change-user-email-dto';
|
|
32
|
-
export * from './
|
|
34
|
+
export * from './channel-settings-dto';
|
|
35
|
+
export * from './completed-order-dto';
|
|
33
36
|
export * from './contact-aggregated-stats-response-dto';
|
|
34
37
|
export * from './contact-full-dto';
|
|
35
38
|
export * from './contact-full-response-dto';
|
|
@@ -47,11 +50,12 @@ export * from './create-email-template-dto';
|
|
|
47
50
|
export * from './create-event-dto';
|
|
48
51
|
export * from './create-marketing-campaign-dto';
|
|
49
52
|
export * from './create-message-dto';
|
|
50
|
-
export * from './create-notification-dto';
|
|
51
53
|
export * from './create-product-dto';
|
|
52
54
|
export * from './create-review-dto';
|
|
55
|
+
export * from './create-shippo-account-dto';
|
|
53
56
|
export * from './create-store-address-dto';
|
|
54
57
|
export * from './create-store-dto';
|
|
58
|
+
export * from './create-store-dto-settings';
|
|
55
59
|
export * from './create-sub-category-dto';
|
|
56
60
|
export * from './create-user-dto';
|
|
57
61
|
export * from './create-user-group-dto';
|
|
@@ -60,7 +64,6 @@ export * from './custom-product-dto';
|
|
|
60
64
|
export * from './delete-file-dto';
|
|
61
65
|
export * from './delete-many-files-dto';
|
|
62
66
|
export * from './discount';
|
|
63
|
-
export * from './discount-paginated-response';
|
|
64
67
|
export * from './discounts-insights-dto';
|
|
65
68
|
export * from './email-invoice-dto';
|
|
66
69
|
export * from './email-template-response-dto';
|
|
@@ -76,14 +79,13 @@ export * from './group-with-users-dto';
|
|
|
76
79
|
export * from './images-upload-body';
|
|
77
80
|
export * from './link-stats-response-dto';
|
|
78
81
|
export * from './login-dto';
|
|
79
|
-
export * from './manual-discount';
|
|
82
|
+
export * from './manual-discount-dto';
|
|
80
83
|
export * from './manual-order-dto';
|
|
81
84
|
export * from './manual-shipping-dto';
|
|
82
85
|
export * from './marketing-campaign-content-dto';
|
|
83
86
|
export * from './marketing-list-contact-dto';
|
|
84
87
|
export * from './move-subcategory-dto';
|
|
85
88
|
export * from './new-client-email-dto';
|
|
86
|
-
export * from './notification';
|
|
87
89
|
export * from './object-id';
|
|
88
90
|
export * from './order';
|
|
89
91
|
export * from './order-paginated-response';
|
|
@@ -94,12 +96,13 @@ export * from './payment';
|
|
|
94
96
|
export * from './payment-time-line-dto';
|
|
95
97
|
export * from './payments-insights-dto';
|
|
96
98
|
export * from './payments-paginated-response';
|
|
97
|
-
export * from './pick-type-class';
|
|
98
99
|
export * from './populated-discount';
|
|
99
100
|
export * from './populated-order';
|
|
100
101
|
export * from './prefered-pick-or-delivery-time-dto';
|
|
102
|
+
export * from './preference-update-item';
|
|
101
103
|
export * from './price-range';
|
|
102
104
|
export * from './product';
|
|
105
|
+
export * from './product-light-dto';
|
|
103
106
|
export * from './product-summary';
|
|
104
107
|
export * from './product-variant';
|
|
105
108
|
export * from './products-insights-dto';
|
|
@@ -107,8 +110,16 @@ export * from './rate-dto';
|
|
|
107
110
|
export * from './refill-request';
|
|
108
111
|
export * from './refill-request-dto';
|
|
109
112
|
export * from './register-or-login-with-gmail';
|
|
113
|
+
export * from './reorder-categories-dto';
|
|
114
|
+
export * from './reorder-products-dto';
|
|
115
|
+
export * from './reorder-products-success-response-dto';
|
|
116
|
+
export * from './reorder-subcategories-dto';
|
|
117
|
+
export * from './reorder-success-response-dto';
|
|
110
118
|
export * from './reserve-appointment';
|
|
111
119
|
export * from './review';
|
|
120
|
+
export * from './review-status-dto';
|
|
121
|
+
export * from './reviewable-order-dto';
|
|
122
|
+
export * from './reviewable-product-dto';
|
|
112
123
|
export * from './schedule-campaign-draft-dto';
|
|
113
124
|
export * from './schedule-tour-email-dto';
|
|
114
125
|
export * from './send-test-email-dto';
|
|
@@ -117,16 +128,18 @@ export * from './shipment-details-dto';
|
|
|
117
128
|
export * from './shipment-status-dto';
|
|
118
129
|
export * from './shipment-with-order';
|
|
119
130
|
export * from './shipping-info';
|
|
131
|
+
export * from './shippo-account-response-dto';
|
|
120
132
|
export * from './single-browser-stats-dto';
|
|
121
133
|
export * from './single-contact-aggregated-stats-dto';
|
|
122
134
|
export * from './single-contact-list-stats-dto';
|
|
123
135
|
export * from './single-country-stats-dto';
|
|
124
136
|
export * from './single-general-stats';
|
|
125
137
|
export * from './single-link-stats-dto';
|
|
126
|
-
export * from './single-notification-dto';
|
|
127
138
|
export * from './single-product-media';
|
|
128
139
|
export * from './single-recipient-dto';
|
|
129
140
|
export * from './store';
|
|
141
|
+
export * from './store-api-keys-response-dto';
|
|
142
|
+
export * from './store-capabilities-dto';
|
|
130
143
|
export * from './store-entity';
|
|
131
144
|
export * from './sub-category';
|
|
132
145
|
export * from './sub-category-headlines-only-response-dto';
|
|
@@ -140,14 +153,17 @@ export * from './tracking-status-substatus';
|
|
|
140
153
|
export * from './transfere-patient-request';
|
|
141
154
|
export * from './transfere-patients-request-dto';
|
|
142
155
|
export * from './update-address-dto';
|
|
156
|
+
export * from './update-api-keys-dto';
|
|
143
157
|
export * from './update-blog-dto';
|
|
144
158
|
export * from './update-campaign-draft-content-dto';
|
|
145
159
|
export * from './update-category-dto';
|
|
146
160
|
export * from './update-discount-dto';
|
|
147
161
|
export * from './update-event-dto';
|
|
148
162
|
export * from './update-items-order-dto';
|
|
163
|
+
export * from './update-manual-shipment-status-dto';
|
|
149
164
|
export * from './update-marketing-camp-draft-dto';
|
|
150
165
|
export * from './update-message-dto';
|
|
166
|
+
export * from './update-notification-settings-dto';
|
|
151
167
|
export * from './update-product-dto';
|
|
152
168
|
export * from './update-refill-request-dto';
|
|
153
169
|
export * from './update-review-dto';
|
|
@@ -165,5 +181,6 @@ export * from './user-insights-dto';
|
|
|
165
181
|
export * from './user-with-no-id';
|
|
166
182
|
export * from './users-paginated-response';
|
|
167
183
|
export * from './variant-id-inventory-body';
|
|
184
|
+
export * from './variant-light-dto';
|
|
168
185
|
export * from './verify-email-dto';
|
|
169
186
|
export * from './wishlist';
|
|
@@ -14,36 +14,36 @@
|
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
17
|
-
* @interface
|
|
17
|
+
* @interface ManualDiscountDto
|
|
18
18
|
*/
|
|
19
|
-
export interface
|
|
19
|
+
export interface ManualDiscountDto {
|
|
20
20
|
_id?: string;
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
23
|
* @type {string}
|
|
24
|
-
* @memberof
|
|
24
|
+
* @memberof ManualDiscountDto
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
valueType: ManualDiscountDtoValueTypeEnum;
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
29
|
* @type {number}
|
|
30
|
-
* @memberof
|
|
30
|
+
* @memberof ManualDiscountDto
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
value: number;
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
35
35
|
* @type {string}
|
|
36
|
-
* @memberof
|
|
36
|
+
* @memberof ManualDiscountDto
|
|
37
37
|
*/
|
|
38
|
-
reason
|
|
38
|
+
reason?: string;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* @export
|
|
43
43
|
* @enum {string}
|
|
44
44
|
*/
|
|
45
|
-
export enum
|
|
45
|
+
export enum ManualDiscountDtoValueTypeEnum {
|
|
46
46
|
PERCENTAGE = 'PERCENTAGE',
|
|
47
|
-
|
|
47
|
+
FIXEDAMOUNT = 'FIXED_AMOUNT'
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { CartItem } from './cart-item';
|
|
15
15
|
import { CustomProductDto } from './custom-product-dto';
|
|
16
|
-
import {
|
|
16
|
+
import { ManualDiscountDto } from './manual-discount-dto';
|
|
17
17
|
import { ManualShippingDto } from './manual-shipping-dto';
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
@@ -36,10 +36,10 @@ export interface ManualOrderDTO {
|
|
|
36
36
|
notes?: string;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
|
-
* @type {
|
|
39
|
+
* @type {ManualDiscountDto}
|
|
40
40
|
* @memberof ManualOrderDTO
|
|
41
41
|
*/
|
|
42
|
-
manualDiscount:
|
|
42
|
+
manualDiscount: ManualDiscountDto;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {string}
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { Product } from './product';
|
|
15
|
+
import { ProductVariant } from './product-variant';
|
|
15
16
|
import { UsedBy } from './used-by';
|
|
16
17
|
/**
|
|
17
18
|
*
|
|
@@ -39,181 +40,130 @@ export interface PopulatedDiscount {
|
|
|
39
40
|
*/
|
|
40
41
|
id?: string;
|
|
41
42
|
/**
|
|
42
|
-
*
|
|
43
|
+
* Display name for the discount
|
|
43
44
|
* @type {string}
|
|
44
45
|
* @memberof PopulatedDiscount
|
|
45
46
|
*/
|
|
46
|
-
|
|
47
|
+
name?: string;
|
|
47
48
|
/**
|
|
48
|
-
*
|
|
49
|
+
* Optional description for internal use
|
|
49
50
|
* @type {string}
|
|
50
51
|
* @memberof PopulatedDiscount
|
|
51
52
|
*/
|
|
52
53
|
description?: string;
|
|
53
54
|
/**
|
|
54
|
-
*
|
|
55
|
+
* ITEM_DISCOUNT: Shows on products automatically. COUPON_CODE: Requires code at checkout
|
|
55
56
|
* @type {string}
|
|
56
57
|
* @memberof PopulatedDiscount
|
|
57
58
|
*/
|
|
58
|
-
|
|
59
|
+
type?: PopulatedDiscountTypeEnum;
|
|
59
60
|
/**
|
|
60
|
-
*
|
|
61
|
+
* PERCENTAGE or FIXED_AMOUNT
|
|
61
62
|
* @type {string}
|
|
62
63
|
* @memberof PopulatedDiscount
|
|
63
64
|
*/
|
|
64
|
-
|
|
65
|
+
valueType?: PopulatedDiscountValueTypeEnum;
|
|
65
66
|
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {
|
|
68
|
-
* @memberof PopulatedDiscount
|
|
69
|
-
*/
|
|
70
|
-
code?: string;
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
* @type {boolean}
|
|
67
|
+
* The discount value (percentage 1-100 or fixed dollar amount)
|
|
68
|
+
* @type {number}
|
|
74
69
|
* @memberof PopulatedDiscount
|
|
75
70
|
*/
|
|
76
|
-
|
|
71
|
+
value?: number;
|
|
77
72
|
/**
|
|
78
|
-
*
|
|
73
|
+
* Maximum discount amount for percentage discounts (optional, mainly for COUPON_CODE)
|
|
79
74
|
* @type {number}
|
|
80
75
|
* @memberof PopulatedDiscount
|
|
81
76
|
*/
|
|
82
77
|
cappedAt?: number;
|
|
83
78
|
/**
|
|
84
|
-
*
|
|
85
|
-
* @type {
|
|
79
|
+
* Coupon code (required for COUPON_CODE type)
|
|
80
|
+
* @type {string}
|
|
86
81
|
* @memberof PopulatedDiscount
|
|
87
82
|
*/
|
|
88
|
-
|
|
83
|
+
code?: string;
|
|
89
84
|
/**
|
|
90
|
-
*
|
|
85
|
+
* When the discount becomes active
|
|
91
86
|
* @type {Date}
|
|
92
87
|
* @memberof PopulatedDiscount
|
|
93
88
|
*/
|
|
94
89
|
startsAt?: Date;
|
|
95
90
|
/**
|
|
96
|
-
*
|
|
91
|
+
* When the discount expires
|
|
97
92
|
* @type {Date}
|
|
98
93
|
* @memberof PopulatedDiscount
|
|
99
94
|
*/
|
|
100
95
|
expiresAt?: Date;
|
|
101
96
|
/**
|
|
102
|
-
*
|
|
103
|
-
* @type {number}
|
|
104
|
-
* @memberof PopulatedDiscount
|
|
105
|
-
*/
|
|
106
|
-
maxUses?: number;
|
|
107
|
-
/**
|
|
108
|
-
*
|
|
109
|
-
* @type {number}
|
|
110
|
-
* @memberof PopulatedDiscount
|
|
111
|
-
*/
|
|
112
|
-
numberOfUses?: number;
|
|
113
|
-
/**
|
|
114
|
-
*
|
|
97
|
+
* Current lifecycle state
|
|
115
98
|
* @type {string}
|
|
116
99
|
* @memberof PopulatedDiscount
|
|
117
100
|
*/
|
|
118
101
|
state?: PopulatedDiscountStateEnum;
|
|
119
102
|
/**
|
|
120
|
-
*
|
|
121
|
-
* @type {
|
|
103
|
+
* Quick toggle to enable/disable the discount
|
|
104
|
+
* @type {boolean}
|
|
122
105
|
* @memberof PopulatedDiscount
|
|
123
106
|
*/
|
|
124
|
-
|
|
107
|
+
isActive?: boolean;
|
|
125
108
|
/**
|
|
126
|
-
*
|
|
127
|
-
* @type {
|
|
109
|
+
* Maximum total times this discount can be used (optional)
|
|
110
|
+
* @type {number}
|
|
128
111
|
* @memberof PopulatedDiscount
|
|
129
112
|
*/
|
|
130
|
-
|
|
113
|
+
maxUses?: number;
|
|
131
114
|
/**
|
|
132
|
-
*
|
|
115
|
+
* Maximum times a single user can use this discount (optional)
|
|
133
116
|
* @type {number}
|
|
134
117
|
* @memberof PopulatedDiscount
|
|
135
118
|
*/
|
|
136
119
|
maxUsesPerUser?: number;
|
|
137
120
|
/**
|
|
138
|
-
*
|
|
139
|
-
* @type {string}
|
|
140
|
-
* @memberof PopulatedDiscount
|
|
141
|
-
*/
|
|
142
|
-
minPurchaseRequired?: PopulatedDiscountMinPurchaseRequiredEnum;
|
|
143
|
-
/**
|
|
144
|
-
*
|
|
121
|
+
* Current total usage count
|
|
145
122
|
* @type {number}
|
|
146
123
|
* @memberof PopulatedDiscount
|
|
147
124
|
*/
|
|
148
|
-
|
|
125
|
+
numberOfUses?: number;
|
|
149
126
|
/**
|
|
150
|
-
*
|
|
151
|
-
* @type {
|
|
127
|
+
* Usage history
|
|
128
|
+
* @type {Array<UsedBy>}
|
|
152
129
|
* @memberof PopulatedDiscount
|
|
153
130
|
*/
|
|
154
|
-
|
|
131
|
+
usedBy?: Array<UsedBy>;
|
|
155
132
|
/**
|
|
156
133
|
*
|
|
157
134
|
* @type {string}
|
|
158
135
|
* @memberof PopulatedDiscount
|
|
159
136
|
*/
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
*
|
|
163
|
-
* @type {Array<string>}
|
|
164
|
-
* @memberof PopulatedDiscount
|
|
165
|
-
*/
|
|
166
|
-
eligibleZipCodes?: Array<string>;
|
|
167
|
-
/**
|
|
168
|
-
*
|
|
169
|
-
* @type {Array<PickTypeClass>}
|
|
170
|
-
* @memberof PopulatedDiscount
|
|
171
|
-
*/
|
|
172
|
-
usersEligible: Array<PickTypeClass>;
|
|
173
|
-
/**
|
|
174
|
-
*
|
|
175
|
-
* @type {Array<string>}
|
|
176
|
-
* @memberof PopulatedDiscount
|
|
177
|
-
*/
|
|
178
|
-
groupsEligible: Array<string>;
|
|
179
|
-
/**
|
|
180
|
-
*
|
|
181
|
-
* @type {Array<string>}
|
|
182
|
-
* @memberof PopulatedDiscount
|
|
183
|
-
*/
|
|
184
|
-
categoriesEligible: Array<string>;
|
|
137
|
+
storeId?: string;
|
|
185
138
|
/**
|
|
186
139
|
*
|
|
187
|
-
* @type {Array<
|
|
140
|
+
* @type {Array<Product>}
|
|
188
141
|
* @memberof PopulatedDiscount
|
|
189
142
|
*/
|
|
190
|
-
productsEligible: Array<
|
|
143
|
+
productsEligible: Array<Product>;
|
|
191
144
|
/**
|
|
192
145
|
*
|
|
193
|
-
* @type {Array<
|
|
146
|
+
* @type {Array<ProductVariant>}
|
|
194
147
|
* @memberof PopulatedDiscount
|
|
195
148
|
*/
|
|
196
|
-
variantsEligible: Array<
|
|
149
|
+
variantsEligible: Array<ProductVariant>;
|
|
197
150
|
}
|
|
198
151
|
|
|
199
152
|
/**
|
|
200
153
|
* @export
|
|
201
154
|
* @enum {string}
|
|
202
155
|
*/
|
|
203
|
-
export enum
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
PRODUCT = 'PRODUCT',
|
|
207
|
-
CATEGORY = 'CATEGORY',
|
|
208
|
-
VARIANT = 'VARIANT'
|
|
156
|
+
export enum PopulatedDiscountTypeEnum {
|
|
157
|
+
ITEMDISCOUNT = 'ITEM_DISCOUNT',
|
|
158
|
+
COUPONCODE = 'COUPON_CODE'
|
|
209
159
|
}
|
|
210
160
|
/**
|
|
211
161
|
* @export
|
|
212
162
|
* @enum {string}
|
|
213
163
|
*/
|
|
214
|
-
export enum
|
|
164
|
+
export enum PopulatedDiscountValueTypeEnum {
|
|
215
165
|
PERCENTAGE = 'PERCENTAGE',
|
|
216
|
-
|
|
166
|
+
FIXEDAMOUNT = 'FIXED_AMOUNT'
|
|
217
167
|
}
|
|
218
168
|
/**
|
|
219
169
|
* @export
|
|
@@ -225,22 +175,4 @@ export enum PopulatedDiscountStateEnum {
|
|
|
225
175
|
EXPIRED = 'EXPIRED',
|
|
226
176
|
SCHEDULED = 'SCHEDULED'
|
|
227
177
|
}
|
|
228
|
-
/**
|
|
229
|
-
* @export
|
|
230
|
-
* @enum {string}
|
|
231
|
-
*/
|
|
232
|
-
export enum PopulatedDiscountMinPurchaseRequiredEnum {
|
|
233
|
-
NOREQUIREMENT = 'NO_REQUIREMENT',
|
|
234
|
-
MINIMUMAMOUNT = 'MINIMUM_AMOUNT',
|
|
235
|
-
MINIMUMQUANTITY = 'MINIMUM_QUANTITY'
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* @export
|
|
239
|
-
* @enum {string}
|
|
240
|
-
*/
|
|
241
|
-
export enum PopulatedDiscountCustomerEligibilityEnum {
|
|
242
|
-
ALL = 'ALL',
|
|
243
|
-
SPECIFICUSERS = 'SPECIFIC_USERS',
|
|
244
|
-
SPECIFICGROUPS = 'SPECIFIC_GROUPS'
|
|
245
|
-
}
|
|
246
178
|
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { ChannelSettingsDto } from './channel-settings-dto';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface PreferenceUpdateItem
|
|
19
|
+
*/
|
|
20
|
+
export interface PreferenceUpdateItem {
|
|
21
|
+
_id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The notification type to configure
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PreferenceUpdateItem
|
|
26
|
+
*/
|
|
27
|
+
type: PreferenceUpdateItemTypeEnum;
|
|
28
|
+
/**
|
|
29
|
+
* Channel settings for this type
|
|
30
|
+
* @type {ChannelSettingsDto}
|
|
31
|
+
* @memberof PreferenceUpdateItem
|
|
32
|
+
*/
|
|
33
|
+
settings: ChannelSettingsDto;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @export
|
|
38
|
+
* @enum {string}
|
|
39
|
+
*/
|
|
40
|
+
export enum PreferenceUpdateItemTypeEnum {
|
|
41
|
+
ORDERCONFIRMATION = 'ORDER_CONFIRMATION',
|
|
42
|
+
PAYMENTFAILED = 'PAYMENT_FAILED',
|
|
43
|
+
ORDERSHIPPED = 'ORDER_SHIPPED',
|
|
44
|
+
ORDERDELIVERED = 'ORDER_DELIVERED',
|
|
45
|
+
REFUNDPROCESSED = 'REFUND_PROCESSED',
|
|
46
|
+
ABANDONEDCARTREMINDER = 'ABANDONED_CART_REMINDER',
|
|
47
|
+
PRICEDROPALERT = 'PRICE_DROP_ALERT',
|
|
48
|
+
BACKINSTOCK = 'BACK_IN_STOCK',
|
|
49
|
+
PASSWORDRESET = 'PASSWORD_RESET',
|
|
50
|
+
NEWDEVICELOGIN = 'NEW_DEVICE_LOGIN',
|
|
51
|
+
TWOFACODE = 'TWO_FA_CODE',
|
|
52
|
+
NEWORDER = 'NEW_ORDER',
|
|
53
|
+
LOWSTOCKWARNING = 'LOW_STOCK_WARNING',
|
|
54
|
+
NEWRETURNREQUEST = 'NEW_RETURN_REQUEST',
|
|
55
|
+
NEWUSERREGISTERED = 'NEW_USER_REGISTERED',
|
|
56
|
+
HIGHVALUEORDERALERT = 'HIGH_VALUE_ORDER_ALERT',
|
|
57
|
+
PAYOUTFAILED = 'PAYOUT_FAILED'
|
|
58
|
+
}
|
|
59
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { VariantLightDto } from './variant-light-dto';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface ProductLightDto
|
|
19
|
+
*/
|
|
20
|
+
export interface ProductLightDto {
|
|
21
|
+
_id?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ProductLightDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ProductLightDto
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<VariantLightDto>}
|
|
37
|
+
* @memberof ProductLightDto
|
|
38
|
+
*/
|
|
39
|
+
variants: Array<VariantLightDto>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 ReorderCategoriesDto
|
|
18
|
+
*/
|
|
19
|
+
export interface ReorderCategoriesDto {
|
|
20
|
+
_id?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Array of category IDs in the desired order
|
|
23
|
+
* @type {Array<string>}
|
|
24
|
+
* @memberof ReorderCategoriesDto
|
|
25
|
+
*/
|
|
26
|
+
orderedIds: Array<string>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 ReorderProductsDto
|
|
18
|
+
*/
|
|
19
|
+
export interface ReorderProductsDto {
|
|
20
|
+
_id?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The container (category or subcategory) ID
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof ReorderProductsDto
|
|
25
|
+
*/
|
|
26
|
+
containerId: string;
|
|
27
|
+
/**
|
|
28
|
+
* The type of container
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof ReorderProductsDto
|
|
31
|
+
*/
|
|
32
|
+
containerType: ReorderProductsDtoContainerTypeEnum;
|
|
33
|
+
/**
|
|
34
|
+
* Array of product IDs in the desired order
|
|
35
|
+
* @type {Array<string>}
|
|
36
|
+
* @memberof ReorderProductsDto
|
|
37
|
+
*/
|
|
38
|
+
orderedProductIds: Array<string>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @export
|
|
43
|
+
* @enum {string}
|
|
44
|
+
*/
|
|
45
|
+
export enum ReorderProductsDtoContainerTypeEnum {
|
|
46
|
+
Category = 'category',
|
|
47
|
+
Subcategory = 'subcategory'
|
|
48
|
+
}
|
|
49
|
+
|
|
@@ -14,20 +14,20 @@
|
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
17
|
-
* @interface
|
|
17
|
+
* @interface ReorderProductsSuccessResponseDto
|
|
18
18
|
*/
|
|
19
|
-
export interface
|
|
19
|
+
export interface ReorderProductsSuccessResponseDto {
|
|
20
20
|
_id?: string;
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
23
|
* @type {boolean}
|
|
24
|
-
* @memberof
|
|
24
|
+
* @memberof ReorderProductsSuccessResponseDto
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
success: boolean;
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
|
-
* @type {
|
|
30
|
-
* @memberof
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof ReorderProductsSuccessResponseDto
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
message: string;
|
|
33
33
|
}
|