hey-pharmacist-ecommerce 1.1.29 → 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.
Files changed (48) hide show
  1. package/dist/index.d.mts +10734 -1256
  2. package/dist/index.d.ts +10734 -1256
  3. package/dist/index.js +2741 -295
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +2686 -296
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +1 -1
  8. package/src/hooks/useStoreCapabilities.ts +87 -0
  9. package/src/index.ts +4 -0
  10. package/src/lib/Apis/apis/auth-api.ts +19 -7
  11. package/src/lib/Apis/apis/categories-api.ts +97 -0
  12. package/src/lib/Apis/apis/products-api.ts +97 -0
  13. package/src/lib/Apis/apis/shipping-api.ts +105 -0
  14. package/src/lib/Apis/apis/stores-api.ts +356 -0
  15. package/src/lib/Apis/apis/sub-categories-api.ts +97 -0
  16. package/src/lib/Apis/apis/users-api.ts +8 -8
  17. package/src/lib/Apis/models/address-created-request.ts +0 -12
  18. package/src/lib/Apis/models/address.ts +0 -12
  19. package/src/lib/Apis/models/api-key-info-dto.ts +49 -0
  20. package/src/lib/Apis/models/create-address-dto.ts +0 -12
  21. package/src/lib/Apis/models/create-discount-dto.ts +0 -8
  22. package/src/lib/Apis/models/create-store-address-dto.ts +0 -12
  23. package/src/lib/Apis/models/create-store-dto-settings.ts +51 -0
  24. package/src/lib/Apis/models/create-store-dto.ts +7 -0
  25. package/src/lib/Apis/models/create-variant-dto.ts +0 -6
  26. package/src/lib/Apis/models/discount.ts +0 -8
  27. package/src/lib/Apis/models/index.ts +11 -0
  28. package/src/lib/Apis/models/populated-discount.ts +0 -8
  29. package/src/lib/Apis/models/product-variant.ts +0 -6
  30. package/src/lib/Apis/models/reorder-categories-dto.ts +27 -0
  31. package/src/lib/Apis/models/reorder-products-dto.ts +49 -0
  32. package/src/lib/Apis/models/reorder-products-success-response-dto.ts +33 -0
  33. package/src/lib/Apis/models/reorder-subcategories-dto.ts +33 -0
  34. package/src/lib/Apis/models/reorder-success-response-dto.ts +33 -0
  35. package/src/lib/Apis/models/shipment-with-order.ts +18 -0
  36. package/src/lib/Apis/models/shipment.ts +18 -0
  37. package/src/lib/Apis/models/store-api-keys-response-dto.ts +34 -0
  38. package/src/lib/Apis/models/store-capabilities-dto.ts +63 -0
  39. package/src/lib/Apis/models/store-entity.ts +7 -0
  40. package/src/lib/Apis/models/store.ts +7 -0
  41. package/src/lib/Apis/models/update-address-dto.ts +0 -12
  42. package/src/lib/Apis/models/update-api-keys-dto.ts +39 -0
  43. package/src/lib/Apis/models/update-discount-dto.ts +0 -8
  44. package/src/lib/Apis/models/update-manual-shipment-status-dto.ts +47 -0
  45. package/src/lib/Apis/models/update-store-dto.ts +7 -0
  46. package/src/lib/Apis/models/update-variant-dto.ts +0 -6
  47. package/src/screens/CheckoutScreen.tsx +363 -278
  48. package/src/screens/ResetPasswordScreen.tsx +10 -4
@@ -11,6 +11,7 @@
11
11
  * https://github.com/swagger-api/swagger-codegen.git
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { CreateStoreDtoSettings } from './create-store-dto-settings';
14
15
  /**
15
16
  *
16
17
  * @export
@@ -114,4 +115,10 @@ export interface StoreEntity {
114
115
  * @memberof StoreEntity
115
116
  */
116
117
  storeBillingAddress?: string;
118
+ /**
119
+ *
120
+ * @type {CreateStoreDtoSettings}
121
+ * @memberof StoreEntity
122
+ */
123
+ settings?: CreateStoreDtoSettings;
117
124
  }
@@ -11,6 +11,7 @@
11
11
  * https://github.com/swagger-api/swagger-codegen.git
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { CreateStoreDtoSettings } from './create-store-dto-settings';
14
15
  /**
15
16
  *
16
17
  * @export
@@ -132,4 +133,10 @@ export interface Store {
132
133
  * @memberof Store
133
134
  */
134
135
  storeBillingAddress: string;
136
+ /**
137
+ *
138
+ * @type {CreateStoreDtoSettings}
139
+ * @memberof Store
140
+ */
141
+ settings: CreateStoreDtoSettings;
135
142
  }
@@ -102,18 +102,6 @@ export interface UpdateAddressDto {
102
102
  * @memberof UpdateAddressDto
103
103
  */
104
104
  isResidential?: boolean;
105
- /**
106
- *
107
- * @type {number}
108
- * @memberof UpdateAddressDto
109
- */
110
- latitude?: number;
111
- /**
112
- *
113
- * @type {number}
114
- * @memberof UpdateAddressDto
115
- */
116
- longitude?: number;
117
105
  /**
118
106
  *
119
107
  * @type {string}
@@ -0,0 +1,39 @@
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
+ }
@@ -150,12 +150,6 @@ export interface UpdateDiscountDto {
150
150
  * @memberof UpdateDiscountDto
151
151
  */
152
152
  groupsEligible?: Array<string>;
153
- /**
154
- *
155
- * @type {Array<string>}
156
- * @memberof UpdateDiscountDto
157
- */
158
- eligibleZipCodes?: Array<string>;
159
153
  }
160
154
 
161
155
  /**
@@ -163,8 +157,6 @@ export interface UpdateDiscountDto {
163
157
  * @enum {string}
164
158
  */
165
159
  export enum UpdateDiscountDtoDiscountTypeEnum {
166
- CARTBALANCE = 'CART_BALANCE',
167
- SHIPPING = 'SHIPPING',
168
160
  PRODUCT = 'PRODUCT',
169
161
  CATEGORY = 'CATEGORY',
170
162
  VARIANT = 'VARIANT'
@@ -0,0 +1,47 @@
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 UpdateManualShipmentStatusDto
18
+ */
19
+ export interface UpdateManualShipmentStatusDto {
20
+ _id?: string;
21
+ /**
22
+ * The new status for the manual delivery
23
+ * @type {string}
24
+ * @memberof UpdateManualShipmentStatusDto
25
+ */
26
+ status: UpdateManualShipmentStatusDtoStatusEnum;
27
+ /**
28
+ * Optional notes about the status update
29
+ * @type {string}
30
+ * @memberof UpdateManualShipmentStatusDto
31
+ */
32
+ notes?: string;
33
+ }
34
+
35
+ /**
36
+ * @export
37
+ * @enum {string}
38
+ */
39
+ export enum UpdateManualShipmentStatusDtoStatusEnum {
40
+ Pending = 'Pending',
41
+ Processing = 'Processing',
42
+ OutForDelivery = 'Out for Delivery',
43
+ Delivered = 'Delivered',
44
+ Cancelled = 'Cancelled',
45
+ Returned = 'Returned'
46
+ }
47
+
@@ -11,6 +11,7 @@
11
11
  * https://github.com/swagger-api/swagger-codegen.git
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { CreateStoreDtoSettings } from './create-store-dto-settings';
14
15
  /**
15
16
  *
16
17
  * @export
@@ -102,4 +103,10 @@ export interface UpdateStoreDto {
102
103
  * @memberof UpdateStoreDto
103
104
  */
104
105
  storeBillingAddress?: string;
106
+ /**
107
+ *
108
+ * @type {CreateStoreDtoSettings}
109
+ * @memberof UpdateStoreDto
110
+ */
111
+ settings?: CreateStoreDtoSettings;
105
112
  }
@@ -55,12 +55,6 @@ export interface UpdateVariantDto {
55
55
  * @memberof UpdateVariantDto
56
56
  */
57
57
  retailPrice?: number;
58
- /**
59
- *
60
- * @type {number}
61
- * @memberof UpdateVariantDto
62
- */
63
- costPrice?: number;
64
58
  /**
65
59
  * Initial inventory count
66
60
  * @type {number}