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.
Files changed (61) hide show
  1. package/dist/index.d.mts +344 -640
  2. package/dist/index.d.ts +344 -640
  3. package/dist/index.js +1814 -835
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +1814 -837
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +1 -1
  8. package/src/components/AccountOrdersTab.tsx +1 -1
  9. package/src/components/AccountSettingsTab.tsx +88 -6
  10. package/src/components/CartItem.tsx +1 -1
  11. package/src/components/Header.tsx +8 -2
  12. package/src/components/OrderCard.tsx +4 -4
  13. package/src/components/ProductCard.tsx +59 -42
  14. package/src/components/QuickViewModal.tsx +13 -13
  15. package/src/hooks/useAddresses.ts +4 -1
  16. package/src/hooks/usePaymentMethods.ts +26 -31
  17. package/src/hooks/useProducts.ts +63 -64
  18. package/src/hooks/useWishlistProducts.ts +4 -5
  19. package/src/index.ts +2 -0
  20. package/src/lib/Apis/api.ts +0 -1
  21. package/src/lib/Apis/apis/auth-api.ts +18 -29
  22. package/src/lib/Apis/apis/products-api.ts +845 -405
  23. package/src/lib/Apis/models/category-populated.ts +0 -12
  24. package/src/lib/Apis/models/category-sub-category-populated.ts +2 -2
  25. package/src/lib/Apis/models/category.ts +0 -18
  26. package/src/lib/Apis/models/{table-cell-dto.ts → change-password-dto.ts} +6 -6
  27. package/src/lib/Apis/models/create-product-dto.ts +30 -23
  28. package/src/lib/Apis/models/create-sub-category-dto.ts +6 -0
  29. package/src/lib/Apis/models/create-variant-dto.ts +29 -29
  30. package/src/lib/Apis/models/index.ts +5 -7
  31. package/src/lib/Apis/models/paginated-products-dto.ts +6 -6
  32. package/src/lib/Apis/models/product-summary.ts +69 -0
  33. package/src/lib/Apis/models/product-variant.ts +34 -65
  34. package/src/lib/Apis/models/product.ts +138 -0
  35. package/src/lib/Apis/models/products-insights-dto.ts +12 -0
  36. package/src/lib/Apis/models/single-product-media.ts +0 -12
  37. package/src/lib/Apis/models/sub-category.ts +6 -12
  38. package/src/lib/Apis/models/update-product-dto.ts +30 -19
  39. package/src/lib/Apis/models/update-sub-category-dto.ts +6 -0
  40. package/src/lib/Apis/models/{update-product-variant-dto.ts → update-variant-dto.ts} +51 -45
  41. package/src/lib/Apis/models/{shallow-parent-category-dto.ts → variant-id-inventory-body.ts} +5 -11
  42. package/src/lib/api-adapter/config.ts +53 -0
  43. package/src/lib/validations/address.ts +1 -1
  44. package/src/providers/FavoritesProvider.tsx +5 -5
  45. package/src/providers/WishlistProvider.tsx +4 -4
  46. package/src/screens/CartScreen.tsx +1 -1
  47. package/src/screens/ChangePasswordScreen.tsx +2 -6
  48. package/src/screens/CheckoutScreen.tsx +40 -11
  49. package/src/screens/EditProfileScreen.tsx +5 -1
  50. package/src/screens/ForgotPasswordScreen.tsx +153 -0
  51. package/src/screens/ProductDetailScreen.tsx +51 -60
  52. package/src/screens/RegisterScreen.tsx +31 -31
  53. package/src/screens/ResetPasswordScreen.tsx +202 -0
  54. package/src/screens/SearchResultsScreen.tsx +264 -26
  55. package/src/screens/ShopScreen.tsx +42 -45
  56. package/src/screens/WishlistScreen.tsx +35 -31
  57. package/src/lib/Apis/apis/product-variants-api.ts +0 -552
  58. package/src/lib/Apis/models/create-single-variant-product-dto.ts +0 -154
  59. package/src/lib/Apis/models/extended-product-dto.ts +0 -206
  60. package/src/lib/Apis/models/frequently-bought-product-dto.ts +0 -71
  61. package/src/lib/Apis/models/table-dto.ts +0 -34
@@ -1,154 +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 { SingleProductMedia } from './single-product-media';
15
- /**
16
- *
17
- * @export
18
- * @interface CreateSingleVariantProductDTO
19
- */
20
- export interface CreateSingleVariantProductDTO {
21
- _id?: string;
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof CreateSingleVariantProductDTO
26
- */
27
- name?: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof CreateSingleVariantProductDTO
32
- */
33
- description?: string;
34
- /**
35
- *
36
- * @type {Array<string>}
37
- * @memberof CreateSingleVariantProductDTO
38
- */
39
- tags: Array<string>;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof CreateSingleVariantProductDTO
44
- */
45
- brand?: string;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof CreateSingleVariantProductDTO
50
- */
51
- sku?: string;
52
- /**
53
- *
54
- * @type {boolean}
55
- * @memberof CreateSingleVariantProductDTO
56
- */
57
- showStock?: boolean;
58
- /**
59
- *
60
- * @type {Array<string>}
61
- * @memberof CreateSingleVariantProductDTO
62
- */
63
- reviews?: Array<string>;
64
- /**
65
- *
66
- * @type {string}
67
- * @memberof CreateSingleVariantProductDTO
68
- */
69
- upc?: string;
70
- /**
71
- *
72
- * @type {boolean}
73
- * @memberof CreateSingleVariantProductDTO
74
- */
75
- homeScreenFeatured?: boolean;
76
- /**
77
- *
78
- * @type {Array<string>}
79
- * @memberof CreateSingleVariantProductDTO
80
- */
81
- parentSubCategories: Array<string>;
82
- /**
83
- *
84
- * @type {Array<string>}
85
- * @memberof CreateSingleVariantProductDTO
86
- */
87
- parentCategories: Array<string>;
88
- /**
89
- *
90
- * @type {Array<SingleProductMedia>}
91
- * @memberof CreateSingleVariantProductDTO
92
- */
93
- productMedia?: Array<SingleProductMedia>;
94
- /**
95
- *
96
- * @type {Array<string>}
97
- * @memberof CreateSingleVariantProductDTO
98
- */
99
- frequentlyBoughtProducts: Array<string>;
100
- /**
101
- *
102
- * @type {number}
103
- * @memberof CreateSingleVariantProductDTO
104
- */
105
- inventory?: number;
106
- /**
107
- * The width of the product variant in cm
108
- * @type {number}
109
- * @memberof CreateSingleVariantProductDTO
110
- */
111
- width?: number;
112
- /**
113
- * The height of the product variant in cm
114
- * @type {number}
115
- * @memberof CreateSingleVariantProductDTO
116
- */
117
- height?: number;
118
- /**
119
- * The length of the product variant in cm
120
- * @type {number}
121
- * @memberof CreateSingleVariantProductDTO
122
- */
123
- length?: number;
124
- /**
125
- * The weight of the product variant in g
126
- * @type {number}
127
- * @memberof CreateSingleVariantProductDTO
128
- */
129
- weight?: number;
130
- /**
131
- *
132
- * @type {number}
133
- * @memberof CreateSingleVariantProductDTO
134
- */
135
- retailPrice?: number;
136
- /**
137
- *
138
- * @type {number}
139
- * @memberof CreateSingleVariantProductDTO
140
- */
141
- costPrice?: number;
142
- /**
143
- *
144
- * @type {number}
145
- * @memberof CreateSingleVariantProductDTO
146
- */
147
- totalSold?: number;
148
- /**
149
- *
150
- * @type {number}
151
- * @memberof CreateSingleVariantProductDTO
152
- */
153
- inventoryCount?: number;
154
- }
@@ -1,206 +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 { FrequentlyBoughtProductDto } from './frequently-bought-product-dto';
15
- import { ProductVariant } from './product-variant';
16
- import { Review } from './review';
17
- import { ShallowParentCategoryDto } from './shallow-parent-category-dto';
18
- import { SingleProductMedia } from './single-product-media';
19
- /**
20
- *
21
- * @export
22
- * @interface ExtendedProductDTO
23
- */
24
- export interface ExtendedProductDTO {
25
- _id?: string;
26
- /**
27
- *
28
- * @type {Date}
29
- * @memberof ExtendedProductDTO
30
- */
31
- createdAt: Date;
32
- /**
33
- *
34
- * @type {Date}
35
- * @memberof ExtendedProductDTO
36
- */
37
- updatedAt: Date;
38
- /**
39
- *
40
- * @type {string}
41
- * @memberof ExtendedProductDTO
42
- */
43
- id: string;
44
- /**
45
- *
46
- * @type {string}
47
- * @memberof ExtendedProductDTO
48
- */
49
- storeId: string;
50
- /**
51
- *
52
- * @type {string}
53
- * @memberof ExtendedProductDTO
54
- */
55
- name: string;
56
- /**
57
- *
58
- * @type {string}
59
- * @memberof ExtendedProductDTO
60
- */
61
- description: string;
62
- /**
63
- *
64
- * @type {Array<SingleProductMedia>}
65
- * @memberof ExtendedProductDTO
66
- */
67
- productMedia: Array<SingleProductMedia>;
68
- /**
69
- *
70
- * @type {Array<string>}
71
- * @memberof ExtendedProductDTO
72
- */
73
- tags: Array<string>;
74
- /**
75
- *
76
- * @type {boolean}
77
- * @memberof ExtendedProductDTO
78
- */
79
- isActive: boolean;
80
- /**
81
- *
82
- * @type {string}
83
- * @memberof ExtendedProductDTO
84
- */
85
- brand: string;
86
- /**
87
- *
88
- * @type {Array<string>}
89
- * @memberof ExtendedProductDTO
90
- */
91
- embedding: Array<string>;
92
- /**
93
- *
94
- * @type {string}
95
- * @memberof ExtendedProductDTO
96
- */
97
- sku: string;
98
- /**
99
- *
100
- * @type {boolean}
101
- * @memberof ExtendedProductDTO
102
- */
103
- showStock: boolean;
104
- /**
105
- *
106
- * @type {string}
107
- * @memberof ExtendedProductDTO
108
- */
109
- upc: string;
110
- /**
111
- *
112
- * @type {boolean}
113
- * @memberof ExtendedProductDTO
114
- */
115
- homeScreenFeatured: boolean;
116
- /**
117
- *
118
- * @type {boolean}
119
- * @memberof ExtendedProductDTO
120
- */
121
- isDiscounted: boolean;
122
- /**
123
- *
124
- * @type {string}
125
- * @memberof ExtendedProductDTO
126
- */
127
- discountType: string;
128
- /**
129
- *
130
- * @type {number}
131
- * @memberof ExtendedProductDTO
132
- */
133
- discountAmount: number;
134
- /**
135
- *
136
- * @type {number}
137
- * @memberof ExtendedProductDTO
138
- */
139
- priceBeforeDiscount: number;
140
- /**
141
- *
142
- * @type {number}
143
- * @memberof ExtendedProductDTO
144
- */
145
- finalPrice: number;
146
- /**
147
- *
148
- * @type {number}
149
- * @memberof ExtendedProductDTO
150
- */
151
- weight: number;
152
- /**
153
- *
154
- * @type {number}
155
- * @memberof ExtendedProductDTO
156
- */
157
- inventoryCount: number;
158
- /**
159
- *
160
- * @type {number}
161
- * @memberof ExtendedProductDTO
162
- */
163
- totalSold: number;
164
- /**
165
- *
166
- * @type {number}
167
- * @memberof ExtendedProductDTO
168
- */
169
- totalSales: number;
170
- /**
171
- *
172
- * @type {Array<FrequentlyBoughtProductDto>}
173
- * @memberof ExtendedProductDTO
174
- */
175
- frequentlyBoughtProducts: Array<FrequentlyBoughtProductDto>;
176
- /**
177
- *
178
- * @type {Array<Review>}
179
- * @memberof ExtendedProductDTO
180
- */
181
- reviews?: Array<Review>;
182
- /**
183
- *
184
- * @type {number}
185
- * @memberof ExtendedProductDTO
186
- */
187
- rating?: number;
188
- /**
189
- *
190
- * @type {Array<ShallowParentCategoryDto>}
191
- * @memberof ExtendedProductDTO
192
- */
193
- parentCategories: Array<ShallowParentCategoryDto>;
194
- /**
195
- *
196
- * @type {Array<ShallowParentCategoryDto>}
197
- * @memberof ExtendedProductDTO
198
- */
199
- parentSubCategories: Array<ShallowParentCategoryDto>;
200
- /**
201
- *
202
- * @type {Array<ProductVariant>}
203
- * @memberof ExtendedProductDTO
204
- */
205
- productVariants: Array<ProductVariant>;
206
- }
@@ -1,71 +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 { ShallowParentCategoryDto } from './shallow-parent-category-dto';
15
- import { SingleProductMedia } from './single-product-media';
16
- /**
17
- *
18
- * @export
19
- * @interface FrequentlyBoughtProductDto
20
- */
21
- export interface FrequentlyBoughtProductDto {
22
- _id?: string;
23
- /**
24
- *
25
- * @type {string}
26
- * @memberof FrequentlyBoughtProductDto
27
- */
28
- id: string;
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof FrequentlyBoughtProductDto
33
- */
34
- name: string;
35
- /**
36
- *
37
- * @type {Array<SingleProductMedia>}
38
- * @memberof FrequentlyBoughtProductDto
39
- */
40
- productMedia: Array<SingleProductMedia>;
41
- /**
42
- *
43
- * @type {boolean}
44
- * @memberof FrequentlyBoughtProductDto
45
- */
46
- isDiscounted: boolean;
47
- /**
48
- *
49
- * @type {number}
50
- * @memberof FrequentlyBoughtProductDto
51
- */
52
- discountAmount: number;
53
- /**
54
- *
55
- * @type {number}
56
- * @memberof FrequentlyBoughtProductDto
57
- */
58
- retailPrice: number;
59
- /**
60
- *
61
- * @type {number}
62
- * @memberof FrequentlyBoughtProductDto
63
- */
64
- finalPrice: number;
65
- /**
66
- *
67
- * @type {ShallowParentCategoryDto}
68
- * @memberof FrequentlyBoughtProductDto
69
- */
70
- parentCategory: ShallowParentCategoryDto;
71
- }
@@ -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 { TableCellDto } from './table-cell-dto';
15
- /**
16
- *
17
- * @export
18
- * @interface TableDto
19
- */
20
- export interface TableDto {
21
- _id?: string;
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof TableDto
26
- */
27
- title: string;
28
- /**
29
- *
30
- * @type {Array<TableCellDto>}
31
- * @memberof TableDto
32
- */
33
- values: Array<TableCellDto>;
34
- }