hey-pharmacist-ecommerce 1.1.28 → 1.1.30
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 +10552 -1370
- package/dist/index.d.ts +10552 -1370
- package/dist/index.js +4696 -1281
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4640 -1283
- 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/useStoreCapabilities.ts +87 -0
- package/src/hooks/useWishlistProducts.ts +4 -5
- package/src/index.ts +6 -0
- package/src/lib/Apis/api.ts +0 -1
- package/src/lib/Apis/apis/auth-api.ts +37 -36
- package/src/lib/Apis/apis/categories-api.ts +97 -0
- package/src/lib/Apis/apis/products-api.ts +942 -405
- package/src/lib/Apis/apis/shipping-api.ts +105 -0
- package/src/lib/Apis/apis/stores-api.ts +356 -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/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-address-dto.ts +0 -12
- package/src/lib/Apis/models/create-discount-dto.ts +0 -8
- package/src/lib/Apis/models/create-product-dto.ts +30 -23
- 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 +7 -0
- package/src/lib/Apis/models/create-sub-category-dto.ts +6 -0
- package/src/lib/Apis/models/create-variant-dto.ts +26 -32
- package/src/lib/Apis/models/discount.ts +0 -8
- package/src/lib/Apis/models/index.ts +16 -7
- package/src/lib/Apis/models/paginated-products-dto.ts +6 -6
- package/src/lib/Apis/models/populated-discount.ts +0 -8
- package/src/lib/Apis/models/product-summary.ts +69 -0
- package/src/lib/Apis/models/product-variant.ts +31 -68
- 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/reorder-categories-dto.ts +27 -0
- package/src/lib/Apis/models/reorder-products-dto.ts +49 -0
- package/src/lib/Apis/models/{table-dto.ts → reorder-products-success-response-dto.ts} +8 -9
- package/src/lib/Apis/models/reorder-subcategories-dto.ts +33 -0
- package/src/lib/Apis/models/{shallow-parent-category-dto.ts → reorder-success-response-dto.ts} +7 -7
- 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/single-product-media.ts +0 -12
- 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 +7 -0
- package/src/lib/Apis/models/store.ts +7 -0
- package/src/lib/Apis/models/sub-category.ts +6 -12
- 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 +0 -8
- package/src/lib/Apis/models/update-manual-shipment-status-dto.ts +47 -0
- package/src/lib/Apis/models/update-product-dto.ts +30 -19
- package/src/lib/Apis/models/update-store-dto.ts +7 -0
- 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} +46 -46
- package/src/lib/Apis/models/variant-id-inventory-body.ts +27 -0
- 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 +402 -288
- 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 +208 -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
|
@@ -27,80 +27,74 @@ export interface CreateVariantDto {
|
|
|
27
27
|
name: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @type {
|
|
30
|
+
* @type {string}
|
|
31
31
|
* @memberof CreateVariantDto
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
description?: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof CreateVariantDto
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
sku?: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof CreateVariantDto
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
brand?: string;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {
|
|
47
|
+
*
|
|
48
|
+
* @type {Array<SingleProductMedia>}
|
|
49
49
|
* @memberof CreateVariantDto
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
media?: Array<SingleProductMedia>;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
*
|
|
54
54
|
* @type {number}
|
|
55
55
|
* @memberof CreateVariantDto
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
retailPrice: number;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Initial inventory count
|
|
60
60
|
* @type {number}
|
|
61
61
|
* @memberof CreateVariantDto
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
inventoryCount: number;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Width in cm
|
|
66
66
|
* @type {number}
|
|
67
67
|
* @memberof CreateVariantDto
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
width?: number;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {
|
|
73
|
-
* @memberof CreateVariantDto
|
|
74
|
-
*/
|
|
75
|
-
brand: string;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {string}
|
|
71
|
+
* Height in cm
|
|
72
|
+
* @type {number}
|
|
79
73
|
* @memberof CreateVariantDto
|
|
80
74
|
*/
|
|
81
|
-
|
|
75
|
+
height?: number;
|
|
82
76
|
/**
|
|
83
|
-
*
|
|
77
|
+
* Length in cm
|
|
84
78
|
* @type {number}
|
|
85
79
|
* @memberof CreateVariantDto
|
|
86
80
|
*/
|
|
87
|
-
|
|
81
|
+
length?: number;
|
|
88
82
|
/**
|
|
89
|
-
*
|
|
83
|
+
* Weight in grams
|
|
90
84
|
* @type {number}
|
|
91
85
|
* @memberof CreateVariantDto
|
|
92
86
|
*/
|
|
93
|
-
|
|
87
|
+
weight?: number;
|
|
94
88
|
/**
|
|
95
89
|
*
|
|
96
|
-
* @type {
|
|
90
|
+
* @type {boolean}
|
|
97
91
|
* @memberof CreateVariantDto
|
|
98
92
|
*/
|
|
99
|
-
|
|
93
|
+
isActive?: boolean;
|
|
100
94
|
/**
|
|
101
|
-
*
|
|
102
|
-
* @type {
|
|
95
|
+
* Custom attributes like color, size, etc.
|
|
96
|
+
* @type {any}
|
|
103
97
|
* @memberof CreateVariantDto
|
|
104
98
|
*/
|
|
105
|
-
|
|
99
|
+
attributes?: any;
|
|
106
100
|
}
|
|
@@ -187,12 +187,6 @@ export interface Discount {
|
|
|
187
187
|
* @memberof Discount
|
|
188
188
|
*/
|
|
189
189
|
groupsEligible: Array<string>;
|
|
190
|
-
/**
|
|
191
|
-
*
|
|
192
|
-
* @type {Array<string>}
|
|
193
|
-
* @memberof Discount
|
|
194
|
-
*/
|
|
195
|
-
eligibleZipCodes: Array<string>;
|
|
196
190
|
}
|
|
197
191
|
|
|
198
192
|
/**
|
|
@@ -200,8 +194,6 @@ export interface Discount {
|
|
|
200
194
|
* @enum {string}
|
|
201
195
|
*/
|
|
202
196
|
export enum DiscountDiscountTypeEnum {
|
|
203
|
-
CARTBALANCE = 'CART_BALANCE',
|
|
204
|
-
SHIPPING = 'SHIPPING',
|
|
205
197
|
PRODUCT = 'PRODUCT',
|
|
206
198
|
CATEGORY = 'CATEGORY',
|
|
207
199
|
VARIANT = 'VARIANT'
|
|
@@ -2,6 +2,7 @@ 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';
|
|
@@ -27,6 +28,7 @@ export * from './category-filters';
|
|
|
27
28
|
export * from './category-populated';
|
|
28
29
|
export * from './category-sub-category-populated';
|
|
29
30
|
export * from './categorys-headlines-response-dto';
|
|
31
|
+
export * from './change-password-dto';
|
|
30
32
|
export * from './change-user-email-dto';
|
|
31
33
|
export * from './check-notifications-response-dto';
|
|
32
34
|
export * from './contact-aggregated-stats-response-dto';
|
|
@@ -49,9 +51,9 @@ export * from './create-message-dto';
|
|
|
49
51
|
export * from './create-notification-dto';
|
|
50
52
|
export * from './create-product-dto';
|
|
51
53
|
export * from './create-review-dto';
|
|
52
|
-
export * from './create-single-variant-product-dto';
|
|
53
54
|
export * from './create-store-address-dto';
|
|
54
55
|
export * from './create-store-dto';
|
|
56
|
+
export * from './create-store-dto-settings';
|
|
55
57
|
export * from './create-sub-category-dto';
|
|
56
58
|
export * from './create-user-dto';
|
|
57
59
|
export * from './create-user-group-dto';
|
|
@@ -65,10 +67,8 @@ export * from './discounts-insights-dto';
|
|
|
65
67
|
export * from './email-invoice-dto';
|
|
66
68
|
export * from './email-template-response-dto';
|
|
67
69
|
export * from './event';
|
|
68
|
-
export * from './extended-product-dto';
|
|
69
70
|
export * from './fileproccesor-upload-body';
|
|
70
71
|
export * from './forget-password';
|
|
71
|
-
export * from './frequently-bought-product-dto';
|
|
72
72
|
export * from './general-stats-response-dto';
|
|
73
73
|
export * from './generate-day-slots-dto';
|
|
74
74
|
export * from './generate-month-slots-dto';
|
|
@@ -101,18 +101,24 @@ export * from './populated-discount';
|
|
|
101
101
|
export * from './populated-order';
|
|
102
102
|
export * from './prefered-pick-or-delivery-time-dto';
|
|
103
103
|
export * from './price-range';
|
|
104
|
+
export * from './product';
|
|
105
|
+
export * from './product-summary';
|
|
104
106
|
export * from './product-variant';
|
|
105
107
|
export * from './products-insights-dto';
|
|
106
108
|
export * from './rate-dto';
|
|
107
109
|
export * from './refill-request';
|
|
108
110
|
export * from './refill-request-dto';
|
|
109
111
|
export * from './register-or-login-with-gmail';
|
|
112
|
+
export * from './reorder-categories-dto';
|
|
113
|
+
export * from './reorder-products-dto';
|
|
114
|
+
export * from './reorder-products-success-response-dto';
|
|
115
|
+
export * from './reorder-subcategories-dto';
|
|
116
|
+
export * from './reorder-success-response-dto';
|
|
110
117
|
export * from './reserve-appointment';
|
|
111
118
|
export * from './review';
|
|
112
119
|
export * from './schedule-campaign-draft-dto';
|
|
113
120
|
export * from './schedule-tour-email-dto';
|
|
114
121
|
export * from './send-test-email-dto';
|
|
115
|
-
export * from './shallow-parent-category-dto';
|
|
116
122
|
export * from './shipment';
|
|
117
123
|
export * from './shipment-details-dto';
|
|
118
124
|
export * from './shipment-status-dto';
|
|
@@ -128,14 +134,14 @@ export * from './single-notification-dto';
|
|
|
128
134
|
export * from './single-product-media';
|
|
129
135
|
export * from './single-recipient-dto';
|
|
130
136
|
export * from './store';
|
|
137
|
+
export * from './store-api-keys-response-dto';
|
|
138
|
+
export * from './store-capabilities-dto';
|
|
131
139
|
export * from './store-entity';
|
|
132
140
|
export * from './sub-category';
|
|
133
141
|
export * from './sub-category-headlines-only-response-dto';
|
|
134
142
|
export * from './suggested-slot';
|
|
135
143
|
export * from './tadmin-session-data';
|
|
136
144
|
export * from './tuser-session-data';
|
|
137
|
-
export * from './table-cell-dto';
|
|
138
|
-
export * from './table-dto';
|
|
139
145
|
export * from './track-dto';
|
|
140
146
|
export * from './tracking-status';
|
|
141
147
|
export * from './tracking-status-location-base';
|
|
@@ -143,16 +149,17 @@ export * from './tracking-status-substatus';
|
|
|
143
149
|
export * from './transfere-patient-request';
|
|
144
150
|
export * from './transfere-patients-request-dto';
|
|
145
151
|
export * from './update-address-dto';
|
|
152
|
+
export * from './update-api-keys-dto';
|
|
146
153
|
export * from './update-blog-dto';
|
|
147
154
|
export * from './update-campaign-draft-content-dto';
|
|
148
155
|
export * from './update-category-dto';
|
|
149
156
|
export * from './update-discount-dto';
|
|
150
157
|
export * from './update-event-dto';
|
|
151
158
|
export * from './update-items-order-dto';
|
|
159
|
+
export * from './update-manual-shipment-status-dto';
|
|
152
160
|
export * from './update-marketing-camp-draft-dto';
|
|
153
161
|
export * from './update-message-dto';
|
|
154
162
|
export * from './update-product-dto';
|
|
155
|
-
export * from './update-product-variant-dto';
|
|
156
163
|
export * from './update-refill-request-dto';
|
|
157
164
|
export * from './update-review-dto';
|
|
158
165
|
export * from './update-store-dto';
|
|
@@ -160,6 +167,7 @@ export * from './update-sub-category-dto';
|
|
|
160
167
|
export * from './update-transfere-patients-request-dto';
|
|
161
168
|
export * from './update-user-dto';
|
|
162
169
|
export * from './update-user-group-dto';
|
|
170
|
+
export * from './update-variant-dto';
|
|
163
171
|
export * from './upload-pdf-body';
|
|
164
172
|
export * from './used-by';
|
|
165
173
|
export * from './user-entity';
|
|
@@ -167,5 +175,6 @@ export * from './user-group';
|
|
|
167
175
|
export * from './user-insights-dto';
|
|
168
176
|
export * from './user-with-no-id';
|
|
169
177
|
export * from './users-paginated-response';
|
|
178
|
+
export * from './variant-id-inventory-body';
|
|
170
179
|
export * from './verify-email-dto';
|
|
171
180
|
export * from './wishlist';
|
|
@@ -11,7 +11,7 @@
|
|
|
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
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
@@ -21,10 +21,10 @@ export interface PaginatedProductsDto {
|
|
|
21
21
|
_id?: string;
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
|
-
* @type {Array<
|
|
24
|
+
* @type {Array<Product>}
|
|
25
25
|
* @memberof PaginatedProductsDto
|
|
26
26
|
*/
|
|
27
|
-
data: Array<
|
|
27
|
+
data: Array<Product>;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {number}
|
|
@@ -36,17 +36,17 @@ export interface PaginatedProductsDto {
|
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof PaginatedProductsDto
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
currentPage: number;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
43
43
|
* @memberof PaginatedProductsDto
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
totalPages: number;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {number}
|
|
49
49
|
* @memberof PaginatedProductsDto
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
limit: number;
|
|
52
52
|
}
|
|
@@ -158,12 +158,6 @@ export interface PopulatedDiscount {
|
|
|
158
158
|
* @memberof PopulatedDiscount
|
|
159
159
|
*/
|
|
160
160
|
customerEligibility?: PopulatedDiscountCustomerEligibilityEnum;
|
|
161
|
-
/**
|
|
162
|
-
*
|
|
163
|
-
* @type {Array<string>}
|
|
164
|
-
* @memberof PopulatedDiscount
|
|
165
|
-
*/
|
|
166
|
-
eligibleZipCodes?: Array<string>;
|
|
167
161
|
/**
|
|
168
162
|
*
|
|
169
163
|
* @type {Array<PickTypeClass>}
|
|
@@ -201,8 +195,6 @@ export interface PopulatedDiscount {
|
|
|
201
195
|
* @enum {string}
|
|
202
196
|
*/
|
|
203
197
|
export enum PopulatedDiscountDiscountTypeEnum {
|
|
204
|
-
CARTBALANCE = 'CART_BALANCE',
|
|
205
|
-
SHIPPING = 'SHIPPING',
|
|
206
198
|
PRODUCT = 'PRODUCT',
|
|
207
199
|
CATEGORY = 'CATEGORY',
|
|
208
200
|
VARIANT = 'VARIANT'
|
|
@@ -0,0 +1,69 @@
|
|
|
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 ProductSummary
|
|
18
|
+
*/
|
|
19
|
+
export interface ProductSummary {
|
|
20
|
+
_id?: string;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @memberof ProductSummary
|
|
25
|
+
*/
|
|
26
|
+
minPrice: number;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof ProductSummary
|
|
31
|
+
*/
|
|
32
|
+
maxPrice: number;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof ProductSummary
|
|
37
|
+
*/
|
|
38
|
+
totalInventory: number;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {boolean}
|
|
42
|
+
* @memberof ProductSummary
|
|
43
|
+
*/
|
|
44
|
+
hasDiscount: boolean;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof ProductSummary
|
|
49
|
+
*/
|
|
50
|
+
variantCount: number;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @memberof ProductSummary
|
|
55
|
+
*/
|
|
56
|
+
totalSold: number;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @memberof ProductSummary
|
|
61
|
+
*/
|
|
62
|
+
averageRating: number;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {number}
|
|
66
|
+
* @memberof ProductSummary
|
|
67
|
+
*/
|
|
68
|
+
reviewCount: number;
|
|
69
|
+
}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { SingleProductMedia } from './single-product-media';
|
|
15
|
-
import { TableDto } from './table-dto';
|
|
16
15
|
/**
|
|
17
16
|
*
|
|
18
17
|
* @export
|
|
@@ -20,18 +19,6 @@ import { TableDto } from './table-dto';
|
|
|
20
19
|
*/
|
|
21
20
|
export interface ProductVariant {
|
|
22
21
|
_id?: string;
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @type {Date}
|
|
26
|
-
* @memberof ProductVariant
|
|
27
|
-
*/
|
|
28
|
-
createdAt: Date;
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {Date}
|
|
32
|
-
* @memberof ProductVariant
|
|
33
|
-
*/
|
|
34
|
-
updatedAt: Date;
|
|
35
22
|
/**
|
|
36
23
|
*
|
|
37
24
|
* @type {string}
|
|
@@ -43,139 +30,115 @@ export interface ProductVariant {
|
|
|
43
30
|
* @type {string}
|
|
44
31
|
* @memberof ProductVariant
|
|
45
32
|
*/
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @type {string}
|
|
50
|
-
* @memberof ProductVariant
|
|
51
|
-
*/
|
|
52
|
-
parentCategory: string;
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @type {string}
|
|
56
|
-
* @memberof ProductVariant
|
|
57
|
-
*/
|
|
58
|
-
discount: string;
|
|
33
|
+
name: string;
|
|
59
34
|
/**
|
|
60
35
|
*
|
|
61
36
|
* @type {string}
|
|
62
37
|
* @memberof ProductVariant
|
|
63
38
|
*/
|
|
64
|
-
|
|
39
|
+
description: string;
|
|
65
40
|
/**
|
|
66
41
|
*
|
|
67
42
|
* @type {string}
|
|
68
43
|
* @memberof ProductVariant
|
|
69
44
|
*/
|
|
70
|
-
|
|
45
|
+
sku: string;
|
|
71
46
|
/**
|
|
72
47
|
*
|
|
73
48
|
* @type {Array<SingleProductMedia>}
|
|
74
49
|
* @memberof ProductVariant
|
|
75
50
|
*/
|
|
76
|
-
|
|
51
|
+
media: Array<SingleProductMedia>;
|
|
77
52
|
/**
|
|
78
53
|
*
|
|
79
|
-
* @type {boolean}
|
|
80
|
-
* @memberof ProductVariant
|
|
81
|
-
*/
|
|
82
|
-
isActive: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* The width of the product variant in cm
|
|
85
54
|
* @type {number}
|
|
86
55
|
* @memberof ProductVariant
|
|
87
56
|
*/
|
|
88
|
-
|
|
57
|
+
retailPrice: number;
|
|
89
58
|
/**
|
|
90
|
-
*
|
|
59
|
+
*
|
|
91
60
|
* @type {number}
|
|
92
61
|
* @memberof ProductVariant
|
|
93
62
|
*/
|
|
94
|
-
|
|
63
|
+
finalPrice: number;
|
|
95
64
|
/**
|
|
96
|
-
*
|
|
97
|
-
* @type {
|
|
65
|
+
*
|
|
66
|
+
* @type {boolean}
|
|
98
67
|
* @memberof ProductVariant
|
|
99
68
|
*/
|
|
100
|
-
|
|
69
|
+
isDiscounted: boolean;
|
|
101
70
|
/**
|
|
102
|
-
*
|
|
71
|
+
*
|
|
103
72
|
* @type {number}
|
|
104
73
|
* @memberof ProductVariant
|
|
105
74
|
*/
|
|
106
|
-
|
|
75
|
+
discountAmount: number;
|
|
107
76
|
/**
|
|
108
77
|
*
|
|
109
|
-
* @type {
|
|
78
|
+
* @type {number}
|
|
110
79
|
* @memberof ProductVariant
|
|
111
80
|
*/
|
|
112
|
-
|
|
81
|
+
inventoryCount: number;
|
|
113
82
|
/**
|
|
114
83
|
*
|
|
115
84
|
* @type {string}
|
|
116
85
|
* @memberof ProductVariant
|
|
117
86
|
*/
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
*
|
|
121
|
-
* @type {boolean}
|
|
122
|
-
* @memberof ProductVariant
|
|
123
|
-
*/
|
|
124
|
-
isDiscounted: boolean;
|
|
87
|
+
inventoryStatus: ProductVariantInventoryStatusEnum;
|
|
125
88
|
/**
|
|
126
89
|
*
|
|
127
90
|
* @type {number}
|
|
128
91
|
* @memberof ProductVariant
|
|
129
92
|
*/
|
|
130
|
-
|
|
93
|
+
totalSold: number;
|
|
131
94
|
/**
|
|
132
|
-
*
|
|
95
|
+
* Width in cm
|
|
133
96
|
* @type {number}
|
|
134
97
|
* @memberof ProductVariant
|
|
135
98
|
*/
|
|
136
|
-
|
|
99
|
+
width: number;
|
|
137
100
|
/**
|
|
138
|
-
*
|
|
101
|
+
* Height in cm
|
|
139
102
|
* @type {number}
|
|
140
103
|
* @memberof ProductVariant
|
|
141
104
|
*/
|
|
142
|
-
|
|
105
|
+
height: number;
|
|
143
106
|
/**
|
|
144
|
-
*
|
|
107
|
+
* Length in cm
|
|
145
108
|
* @type {number}
|
|
146
109
|
* @memberof ProductVariant
|
|
147
110
|
*/
|
|
148
|
-
|
|
111
|
+
length: number;
|
|
149
112
|
/**
|
|
150
|
-
*
|
|
113
|
+
* Weight in grams
|
|
151
114
|
* @type {number}
|
|
152
115
|
* @memberof ProductVariant
|
|
153
116
|
*/
|
|
154
|
-
|
|
117
|
+
weight: number;
|
|
155
118
|
/**
|
|
156
119
|
*
|
|
157
|
-
* @type {
|
|
120
|
+
* @type {boolean}
|
|
158
121
|
* @memberof ProductVariant
|
|
159
122
|
*/
|
|
160
|
-
|
|
123
|
+
isActive: boolean;
|
|
161
124
|
/**
|
|
162
125
|
*
|
|
163
|
-
* @type {
|
|
126
|
+
* @type {Date}
|
|
164
127
|
* @memberof ProductVariant
|
|
165
128
|
*/
|
|
166
|
-
|
|
129
|
+
inventoryLastUpdated: Date;
|
|
167
130
|
/**
|
|
168
131
|
*
|
|
169
132
|
* @type {string}
|
|
170
133
|
* @memberof ProductVariant
|
|
171
134
|
*/
|
|
172
|
-
|
|
135
|
+
discount: string;
|
|
173
136
|
/**
|
|
174
137
|
*
|
|
175
|
-
* @type {
|
|
138
|
+
* @type {any}
|
|
176
139
|
* @memberof ProductVariant
|
|
177
140
|
*/
|
|
178
|
-
|
|
141
|
+
attributes: any;
|
|
179
142
|
}
|
|
180
143
|
|
|
181
144
|
/**
|