hey-pharmacist-ecommerce 1.1.28 → 1.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +344 -640
- package/dist/index.d.ts +344 -640
- package/dist/index.js +1807 -838
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1807 -840
- 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/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
|
@@ -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,121 @@ 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
|
+
costPrice: number;
|
|
95
64
|
/**
|
|
96
|
-
*
|
|
65
|
+
*
|
|
97
66
|
* @type {number}
|
|
98
67
|
* @memberof ProductVariant
|
|
99
68
|
*/
|
|
100
|
-
|
|
69
|
+
finalPrice: number;
|
|
101
70
|
/**
|
|
102
|
-
*
|
|
103
|
-
* @type {
|
|
71
|
+
*
|
|
72
|
+
* @type {boolean}
|
|
104
73
|
* @memberof ProductVariant
|
|
105
74
|
*/
|
|
106
|
-
|
|
75
|
+
isDiscounted: boolean;
|
|
107
76
|
/**
|
|
108
77
|
*
|
|
109
|
-
* @type {
|
|
78
|
+
* @type {number}
|
|
110
79
|
* @memberof ProductVariant
|
|
111
80
|
*/
|
|
112
|
-
|
|
81
|
+
discountAmount: number;
|
|
113
82
|
/**
|
|
114
83
|
*
|
|
115
|
-
* @type {
|
|
84
|
+
* @type {number}
|
|
116
85
|
* @memberof ProductVariant
|
|
117
86
|
*/
|
|
118
|
-
|
|
87
|
+
inventoryCount: number;
|
|
119
88
|
/**
|
|
120
89
|
*
|
|
121
|
-
* @type {
|
|
90
|
+
* @type {string}
|
|
122
91
|
* @memberof ProductVariant
|
|
123
92
|
*/
|
|
124
|
-
|
|
93
|
+
inventoryStatus: ProductVariantInventoryStatusEnum;
|
|
125
94
|
/**
|
|
126
95
|
*
|
|
127
96
|
* @type {number}
|
|
128
97
|
* @memberof ProductVariant
|
|
129
98
|
*/
|
|
130
|
-
|
|
99
|
+
totalSold: number;
|
|
131
100
|
/**
|
|
132
|
-
*
|
|
101
|
+
* Width in cm
|
|
133
102
|
* @type {number}
|
|
134
103
|
* @memberof ProductVariant
|
|
135
104
|
*/
|
|
136
|
-
|
|
105
|
+
width: number;
|
|
137
106
|
/**
|
|
138
|
-
*
|
|
107
|
+
* Height in cm
|
|
139
108
|
* @type {number}
|
|
140
109
|
* @memberof ProductVariant
|
|
141
110
|
*/
|
|
142
|
-
|
|
111
|
+
height: number;
|
|
143
112
|
/**
|
|
144
|
-
*
|
|
113
|
+
* Length in cm
|
|
145
114
|
* @type {number}
|
|
146
115
|
* @memberof ProductVariant
|
|
147
116
|
*/
|
|
148
|
-
|
|
117
|
+
length: number;
|
|
149
118
|
/**
|
|
150
|
-
*
|
|
119
|
+
* Weight in grams
|
|
151
120
|
* @type {number}
|
|
152
121
|
* @memberof ProductVariant
|
|
153
122
|
*/
|
|
154
|
-
|
|
123
|
+
weight: number;
|
|
155
124
|
/**
|
|
156
125
|
*
|
|
157
|
-
* @type {
|
|
126
|
+
* @type {boolean}
|
|
158
127
|
* @memberof ProductVariant
|
|
159
128
|
*/
|
|
160
|
-
|
|
129
|
+
isActive: boolean;
|
|
161
130
|
/**
|
|
162
131
|
*
|
|
163
|
-
* @type {
|
|
132
|
+
* @type {Date}
|
|
164
133
|
* @memberof ProductVariant
|
|
165
134
|
*/
|
|
166
|
-
|
|
135
|
+
inventoryLastUpdated: Date;
|
|
167
136
|
/**
|
|
168
137
|
*
|
|
169
138
|
* @type {string}
|
|
170
139
|
* @memberof ProductVariant
|
|
171
140
|
*/
|
|
172
|
-
|
|
141
|
+
discount: string;
|
|
173
142
|
/**
|
|
174
143
|
*
|
|
175
|
-
* @type {
|
|
144
|
+
* @type {any}
|
|
176
145
|
* @memberof ProductVariant
|
|
177
146
|
*/
|
|
178
|
-
|
|
147
|
+
attributes: any;
|
|
179
148
|
}
|
|
180
149
|
|
|
181
150
|
/**
|
|
@@ -0,0 +1,138 @@
|
|
|
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 { ProductSummary } from './product-summary';
|
|
15
|
+
import { ProductVariant } from './product-variant';
|
|
16
|
+
import { SingleProductMedia } from './single-product-media';
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface Product
|
|
21
|
+
*/
|
|
22
|
+
export interface Product {
|
|
23
|
+
_id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof Product
|
|
28
|
+
*/
|
|
29
|
+
createdAt: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof Product
|
|
34
|
+
*/
|
|
35
|
+
updatedAt: Date;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Product
|
|
40
|
+
*/
|
|
41
|
+
id: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof Product
|
|
46
|
+
*/
|
|
47
|
+
storeId: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof Product
|
|
52
|
+
*/
|
|
53
|
+
name: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof Product
|
|
58
|
+
*/
|
|
59
|
+
description: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof Product
|
|
64
|
+
*/
|
|
65
|
+
brand: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof Product
|
|
70
|
+
*/
|
|
71
|
+
upc: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Array<SingleProductMedia>}
|
|
75
|
+
* @memberof Product
|
|
76
|
+
*/
|
|
77
|
+
media: Array<SingleProductMedia>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Array<string>}
|
|
81
|
+
* @memberof Product
|
|
82
|
+
*/
|
|
83
|
+
tags: Array<string>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
* @memberof Product
|
|
88
|
+
*/
|
|
89
|
+
isActive: boolean;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof Product
|
|
94
|
+
*/
|
|
95
|
+
showStock: boolean;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {boolean}
|
|
99
|
+
* @memberof Product
|
|
100
|
+
*/
|
|
101
|
+
homeScreenFeatured: boolean;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof Product
|
|
106
|
+
*/
|
|
107
|
+
sku: string;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {Array<string>}
|
|
111
|
+
* @memberof Product
|
|
112
|
+
*/
|
|
113
|
+
categoryIds: Array<string>;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {Array<string>}
|
|
117
|
+
* @memberof Product
|
|
118
|
+
*/
|
|
119
|
+
subCategoryIds: Array<string>;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {Array<ProductVariant>}
|
|
123
|
+
* @memberof Product
|
|
124
|
+
*/
|
|
125
|
+
variants: Array<ProductVariant>;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {ProductSummary}
|
|
129
|
+
* @memberof Product
|
|
130
|
+
*/
|
|
131
|
+
summary: ProductSummary;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {Array<string>}
|
|
135
|
+
* @memberof Product
|
|
136
|
+
*/
|
|
137
|
+
frequentlyBoughtWith: Array<string>;
|
|
138
|
+
}
|
|
@@ -36,4 +36,16 @@ export interface ProductsInsightsDto {
|
|
|
36
36
|
* @memberof ProductsInsightsDto
|
|
37
37
|
*/
|
|
38
38
|
totalInactiveProducts: number;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof ProductsInsightsDto
|
|
43
|
+
*/
|
|
44
|
+
totalVariants: number;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof ProductsInsightsDto
|
|
49
|
+
*/
|
|
50
|
+
totalInventory: number;
|
|
39
51
|
}
|
|
@@ -18,18 +18,6 @@
|
|
|
18
18
|
*/
|
|
19
19
|
export interface SingleProductMedia {
|
|
20
20
|
_id?: string;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {Date}
|
|
24
|
-
* @memberof SingleProductMedia
|
|
25
|
-
*/
|
|
26
|
-
createdAt: Date;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {Date}
|
|
30
|
-
* @memberof SingleProductMedia
|
|
31
|
-
*/
|
|
32
|
-
updatedAt: Date;
|
|
33
21
|
/**
|
|
34
22
|
*
|
|
35
23
|
* @type {string}
|
|
@@ -42,18 +42,6 @@ export interface SubCategory {
|
|
|
42
42
|
* @memberof SubCategory
|
|
43
43
|
*/
|
|
44
44
|
parentCategory: string;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {Array<string>}
|
|
48
|
-
* @memberof SubCategory
|
|
49
|
-
*/
|
|
50
|
-
subCategoryProducts: Array<string>;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {Array<string>}
|
|
54
|
-
* @memberof SubCategory
|
|
55
|
-
*/
|
|
56
|
-
subCategoryVariants: Array<string>;
|
|
57
45
|
/**
|
|
58
46
|
*
|
|
59
47
|
* @type {string}
|
|
@@ -84,6 +72,12 @@ export interface SubCategory {
|
|
|
84
72
|
* @memberof SubCategory
|
|
85
73
|
*/
|
|
86
74
|
activeChangedAt: Date;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {number}
|
|
78
|
+
* @memberof SubCategory
|
|
79
|
+
*/
|
|
80
|
+
order: number;
|
|
87
81
|
/**
|
|
88
82
|
*
|
|
89
83
|
* @type {string}
|
|
@@ -11,9 +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 { CreateVariantDto } from './create-variant-dto';
|
|
15
15
|
import { SingleProductMedia } from './single-product-media';
|
|
16
|
-
import { SubCategory } from './sub-category';
|
|
17
16
|
/**
|
|
18
17
|
*
|
|
19
18
|
* @export
|
|
@@ -35,40 +34,52 @@ export interface UpdateProductDto {
|
|
|
35
34
|
description?: string;
|
|
36
35
|
/**
|
|
37
36
|
*
|
|
38
|
-
* @type {
|
|
37
|
+
* @type {string}
|
|
39
38
|
* @memberof UpdateProductDto
|
|
40
39
|
*/
|
|
41
|
-
|
|
40
|
+
brand?: string;
|
|
42
41
|
/**
|
|
43
42
|
*
|
|
44
43
|
* @type {string}
|
|
45
44
|
* @memberof UpdateProductDto
|
|
46
45
|
*/
|
|
47
|
-
|
|
46
|
+
sku?: string;
|
|
48
47
|
/**
|
|
49
48
|
*
|
|
50
49
|
* @type {string}
|
|
51
50
|
* @memberof UpdateProductDto
|
|
52
51
|
*/
|
|
53
|
-
|
|
52
|
+
upc?: string;
|
|
54
53
|
/**
|
|
55
54
|
*
|
|
56
|
-
* @type {
|
|
55
|
+
* @type {Array<SingleProductMedia>}
|
|
57
56
|
* @memberof UpdateProductDto
|
|
58
57
|
*/
|
|
59
|
-
|
|
58
|
+
media?: Array<SingleProductMedia>;
|
|
60
59
|
/**
|
|
61
60
|
*
|
|
62
61
|
* @type {Array<string>}
|
|
63
62
|
* @memberof UpdateProductDto
|
|
64
63
|
*/
|
|
65
|
-
|
|
64
|
+
tags?: Array<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Category IDs
|
|
67
|
+
* @type {Array<string>}
|
|
68
|
+
* @memberof UpdateProductDto
|
|
69
|
+
*/
|
|
70
|
+
categoryIds?: Array<string>;
|
|
71
|
+
/**
|
|
72
|
+
* SubCategory IDs
|
|
73
|
+
* @type {Array<string>}
|
|
74
|
+
* @memberof UpdateProductDto
|
|
75
|
+
*/
|
|
76
|
+
subCategoryIds?: Array<string>;
|
|
66
77
|
/**
|
|
67
78
|
*
|
|
68
|
-
* @type {
|
|
79
|
+
* @type {boolean}
|
|
69
80
|
* @memberof UpdateProductDto
|
|
70
81
|
*/
|
|
71
|
-
|
|
82
|
+
showStock?: boolean;
|
|
72
83
|
/**
|
|
73
84
|
*
|
|
74
85
|
* @type {boolean}
|
|
@@ -76,27 +87,27 @@ export interface UpdateProductDto {
|
|
|
76
87
|
*/
|
|
77
88
|
homeScreenFeatured?: boolean;
|
|
78
89
|
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {Array<
|
|
90
|
+
* IDs of frequently bought together products
|
|
91
|
+
* @type {Array<string>}
|
|
81
92
|
* @memberof UpdateProductDto
|
|
82
93
|
*/
|
|
83
|
-
|
|
94
|
+
frequentlyBoughtWith?: Array<string>;
|
|
84
95
|
/**
|
|
85
|
-
*
|
|
96
|
+
* IDs of frequently bought together products (alias)
|
|
86
97
|
* @type {Array<string>}
|
|
87
98
|
* @memberof UpdateProductDto
|
|
88
99
|
*/
|
|
89
100
|
frequentlyBoughtProducts?: Array<string>;
|
|
90
101
|
/**
|
|
91
102
|
*
|
|
92
|
-
* @type {
|
|
103
|
+
* @type {boolean}
|
|
93
104
|
* @memberof UpdateProductDto
|
|
94
105
|
*/
|
|
95
|
-
|
|
106
|
+
isActive?: boolean;
|
|
96
107
|
/**
|
|
97
108
|
*
|
|
98
|
-
* @type {Array<
|
|
109
|
+
* @type {Array<CreateVariantDto>}
|
|
99
110
|
* @memberof UpdateProductDto
|
|
100
111
|
*/
|
|
101
|
-
|
|
112
|
+
variants?: Array<CreateVariantDto>;
|
|
102
113
|
}
|
|
@@ -15,92 +15,98 @@ import { SingleProductMedia } from './single-product-media';
|
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
18
|
-
* @interface
|
|
18
|
+
* @interface UpdateVariantDto
|
|
19
19
|
*/
|
|
20
|
-
export interface
|
|
20
|
+
export interface UpdateVariantDto {
|
|
21
21
|
_id?: string;
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof UpdateVariantDto
|
|
26
26
|
*/
|
|
27
27
|
name?: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @type {
|
|
31
|
-
* @memberof
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UpdateVariantDto
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
description?: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof UpdateVariantDto
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
sku?: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
43
|
-
* @memberof
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof UpdateVariantDto
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
brand?: string;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {
|
|
49
|
-
* @memberof
|
|
47
|
+
*
|
|
48
|
+
* @type {Array<SingleProductMedia>}
|
|
49
|
+
* @memberof UpdateVariantDto
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
media?: Array<SingleProductMedia>;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
*
|
|
54
54
|
* @type {number}
|
|
55
|
-
* @memberof
|
|
55
|
+
* @memberof UpdateVariantDto
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
retailPrice?: number;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
*
|
|
60
60
|
* @type {number}
|
|
61
|
-
* @memberof
|
|
61
|
+
* @memberof UpdateVariantDto
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
costPrice?: number;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Initial inventory count
|
|
66
66
|
* @type {number}
|
|
67
|
-
* @memberof
|
|
67
|
+
* @memberof UpdateVariantDto
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
inventoryCount?: number;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {
|
|
73
|
-
* @memberof
|
|
71
|
+
* Width in cm
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof UpdateVariantDto
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
width?: number;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {
|
|
79
|
-
* @memberof
|
|
77
|
+
* Height in cm
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof UpdateVariantDto
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
height?: number;
|
|
82
82
|
/**
|
|
83
|
-
*
|
|
83
|
+
* Length in cm
|
|
84
84
|
* @type {number}
|
|
85
|
-
* @memberof
|
|
85
|
+
* @memberof UpdateVariantDto
|
|
86
86
|
*/
|
|
87
|
-
|
|
87
|
+
length?: number;
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* Weight in grams
|
|
90
90
|
* @type {number}
|
|
91
|
-
* @memberof
|
|
91
|
+
* @memberof UpdateVariantDto
|
|
92
92
|
*/
|
|
93
|
-
|
|
93
|
+
weight?: number;
|
|
94
94
|
/**
|
|
95
95
|
*
|
|
96
|
-
* @type {
|
|
97
|
-
* @memberof
|
|
96
|
+
* @type {boolean}
|
|
97
|
+
* @memberof UpdateVariantDto
|
|
98
98
|
*/
|
|
99
|
-
|
|
99
|
+
isActive?: boolean;
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
102
|
-
* @type {
|
|
103
|
-
* @memberof
|
|
101
|
+
* Custom attributes like color, size, etc.
|
|
102
|
+
* @type {any}
|
|
103
|
+
* @memberof UpdateVariantDto
|
|
104
104
|
*/
|
|
105
|
-
|
|
105
|
+
attributes?: any;
|
|
106
|
+
/**
|
|
107
|
+
* Variant ID to update
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof UpdateVariantDto
|
|
110
|
+
*/
|
|
111
|
+
id: string;
|
|
106
112
|
}
|
|
@@ -14,20 +14,14 @@
|
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
17
|
-
* @interface
|
|
17
|
+
* @interface VariantIdInventoryBody
|
|
18
18
|
*/
|
|
19
|
-
export interface
|
|
19
|
+
export interface VariantIdInventoryBody {
|
|
20
20
|
_id?: string;
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
|
-
* @type {
|
|
24
|
-
* @memberof
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @memberof VariantIdInventoryBody
|
|
25
25
|
*/
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof ShallowParentCategoryDto
|
|
31
|
-
*/
|
|
32
|
-
name: string;
|
|
26
|
+
quantityChange?: number;
|
|
33
27
|
}
|