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
|
@@ -0,0 +1,33 @@
|
|
|
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 ReorderSubcategoriesDto
|
|
18
|
+
*/
|
|
19
|
+
export interface ReorderSubcategoriesDto {
|
|
20
|
+
_id?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The parent category ID that contains these subcategories
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof ReorderSubcategoriesDto
|
|
25
|
+
*/
|
|
26
|
+
parentCategoryId: string;
|
|
27
|
+
/**
|
|
28
|
+
* Array of subcategory IDs in the desired order
|
|
29
|
+
* @type {Array<string>}
|
|
30
|
+
* @memberof ReorderSubcategoriesDto
|
|
31
|
+
*/
|
|
32
|
+
orderedIds: Array<string>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 ReorderSuccessResponseDto
|
|
18
|
+
*/
|
|
19
|
+
export interface ReorderSuccessResponseDto {
|
|
20
|
+
_id?: string;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {boolean}
|
|
24
|
+
* @memberof ReorderSuccessResponseDto
|
|
25
|
+
*/
|
|
26
|
+
success: boolean;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof ReorderSuccessResponseDto
|
|
31
|
+
*/
|
|
32
|
+
message: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { Review } from './review';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface ReviewStatusDto
|
|
19
|
+
*/
|
|
20
|
+
export interface ReviewStatusDto {
|
|
21
|
+
_id?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof ReviewStatusDto
|
|
26
|
+
*/
|
|
27
|
+
hasReviewed: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Review}
|
|
31
|
+
* @memberof ReviewStatusDto
|
|
32
|
+
*/
|
|
33
|
+
review?: Review;
|
|
34
|
+
}
|
|
@@ -60,6 +60,12 @@ export interface Review {
|
|
|
60
60
|
* @memberof Review
|
|
61
61
|
*/
|
|
62
62
|
productId: string;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof Review
|
|
67
|
+
*/
|
|
68
|
+
productVariantId: string;
|
|
63
69
|
/**
|
|
64
70
|
*
|
|
65
71
|
* @type {string}
|
|
@@ -83,11 +89,11 @@ export interface Review {
|
|
|
83
89
|
* @type {string}
|
|
84
90
|
* @memberof Review
|
|
85
91
|
*/
|
|
86
|
-
reply
|
|
92
|
+
reply?: string;
|
|
87
93
|
/**
|
|
88
94
|
*
|
|
89
|
-
* @type {
|
|
95
|
+
* @type {Date}
|
|
90
96
|
* @memberof Review
|
|
91
97
|
*/
|
|
92
|
-
replyDate
|
|
98
|
+
replyDate?: Date;
|
|
93
99
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { ReviewableProductDto } from './reviewable-product-dto';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface ReviewableOrderDto
|
|
19
|
+
*/
|
|
20
|
+
export interface ReviewableOrderDto {
|
|
21
|
+
_id?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ReviewableOrderDto
|
|
26
|
+
*/
|
|
27
|
+
orderId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ReviewableOrderDto
|
|
32
|
+
*/
|
|
33
|
+
orderStatus: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<ReviewableProductDto>}
|
|
37
|
+
* @memberof ReviewableOrderDto
|
|
38
|
+
*/
|
|
39
|
+
products: Array<ReviewableProductDto>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof ReviewableOrderDto
|
|
44
|
+
*/
|
|
45
|
+
totalProducts: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof ReviewableOrderDto
|
|
50
|
+
*/
|
|
51
|
+
reviewedCount: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof ReviewableOrderDto
|
|
56
|
+
*/
|
|
57
|
+
pendingCount: number;
|
|
58
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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 ReviewableProductDto
|
|
18
|
+
*/
|
|
19
|
+
export interface ReviewableProductDto {
|
|
20
|
+
_id?: string;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof ReviewableProductDto
|
|
25
|
+
*/
|
|
26
|
+
productId: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof ReviewableProductDto
|
|
31
|
+
*/
|
|
32
|
+
productName: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof ReviewableProductDto
|
|
37
|
+
*/
|
|
38
|
+
productVariantId: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof ReviewableProductDto
|
|
43
|
+
*/
|
|
44
|
+
variantName: string;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof ReviewableProductDto
|
|
49
|
+
*/
|
|
50
|
+
variantImage?: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @memberof ReviewableProductDto
|
|
55
|
+
*/
|
|
56
|
+
quantity: number;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {boolean}
|
|
60
|
+
* @memberof ReviewableProductDto
|
|
61
|
+
*/
|
|
62
|
+
hasReviewed: boolean;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof ReviewableProductDto
|
|
67
|
+
*/
|
|
68
|
+
reviewId?: string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {number}
|
|
72
|
+
* @memberof ReviewableProductDto
|
|
73
|
+
*/
|
|
74
|
+
rating?: number;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof ReviewableProductDto
|
|
79
|
+
*/
|
|
80
|
+
review?: string;
|
|
81
|
+
}
|
|
@@ -96,6 +96,24 @@ export interface ShipmentWithOrder {
|
|
|
96
96
|
* @memberof ShipmentWithOrder
|
|
97
97
|
*/
|
|
98
98
|
inventoryAddress: Address;
|
|
99
|
+
/**
|
|
100
|
+
* Whether this is a manual/custom delivery (not Shippo)
|
|
101
|
+
* @type {boolean}
|
|
102
|
+
* @memberof ShipmentWithOrder
|
|
103
|
+
*/
|
|
104
|
+
isManualDelivery: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Manual delivery status (only applicable for non-Shippo shipments)
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof ShipmentWithOrder
|
|
109
|
+
*/
|
|
110
|
+
manualDeliveryStatus: string;
|
|
111
|
+
/**
|
|
112
|
+
* Notes for manual delivery status updates
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof ShipmentWithOrder
|
|
115
|
+
*/
|
|
116
|
+
manualDeliveryNotes: string;
|
|
99
117
|
/**
|
|
100
118
|
*
|
|
101
119
|
* @type {Order}
|
|
@@ -101,4 +101,22 @@ export interface Shipment {
|
|
|
101
101
|
* @memberof Shipment
|
|
102
102
|
*/
|
|
103
103
|
inventoryAddress: Address;
|
|
104
|
+
/**
|
|
105
|
+
* Whether this is a manual/custom delivery (not Shippo)
|
|
106
|
+
* @type {boolean}
|
|
107
|
+
* @memberof Shipment
|
|
108
|
+
*/
|
|
109
|
+
isManualDelivery: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Manual delivery status (only applicable for non-Shippo shipments)
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof Shipment
|
|
114
|
+
*/
|
|
115
|
+
manualDeliveryStatus: string;
|
|
116
|
+
/**
|
|
117
|
+
* Notes for manual delivery status updates
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof Shipment
|
|
120
|
+
*/
|
|
121
|
+
manualDeliveryNotes: string;
|
|
104
122
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 ShippoAccountResponseDto
|
|
18
|
+
*/
|
|
19
|
+
export interface ShippoAccountResponseDto {
|
|
20
|
+
_id?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Shippo managed account ID
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof ShippoAccountResponseDto
|
|
25
|
+
*/
|
|
26
|
+
objectId: string;
|
|
27
|
+
/**
|
|
28
|
+
* Email associated with the account
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof ShippoAccountResponseDto
|
|
31
|
+
*/
|
|
32
|
+
email: string;
|
|
33
|
+
/**
|
|
34
|
+
* First name
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof ShippoAccountResponseDto
|
|
37
|
+
*/
|
|
38
|
+
firstName: string;
|
|
39
|
+
/**
|
|
40
|
+
* Last name
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof ShippoAccountResponseDto
|
|
43
|
+
*/
|
|
44
|
+
lastName: string;
|
|
45
|
+
/**
|
|
46
|
+
* Company name
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof ShippoAccountResponseDto
|
|
49
|
+
*/
|
|
50
|
+
companyName: string;
|
|
51
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { ApiKeyInfoDto } from './api-key-info-dto';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface StoreApiKeysResponseDto
|
|
19
|
+
*/
|
|
20
|
+
export interface StoreApiKeysResponseDto {
|
|
21
|
+
_id?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {ApiKeyInfoDto}
|
|
25
|
+
* @memberof StoreApiKeysResponseDto
|
|
26
|
+
*/
|
|
27
|
+
stripe: ApiKeyInfoDto;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {ApiKeyInfoDto}
|
|
31
|
+
* @memberof StoreApiKeysResponseDto
|
|
32
|
+
*/
|
|
33
|
+
shippo: ApiKeyInfoDto;
|
|
34
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 StoreCapabilitiesDto
|
|
18
|
+
*/
|
|
19
|
+
export interface StoreCapabilitiesDto {
|
|
20
|
+
_id?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the store has a Stripe API key configured
|
|
23
|
+
* @type {boolean}
|
|
24
|
+
* @memberof StoreCapabilitiesDto
|
|
25
|
+
*/
|
|
26
|
+
hasStripeKey: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the store has a Shippo API key configured
|
|
29
|
+
* @type {boolean}
|
|
30
|
+
* @memberof StoreCapabilitiesDto
|
|
31
|
+
*/
|
|
32
|
+
hasShippoKey: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Whether card payment is enabled in settings
|
|
35
|
+
* @type {boolean}
|
|
36
|
+
* @memberof StoreCapabilitiesDto
|
|
37
|
+
*/
|
|
38
|
+
cardPaymentEnabled: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Whether Shippo delivery is enabled in settings
|
|
41
|
+
* @type {boolean}
|
|
42
|
+
* @memberof StoreCapabilitiesDto
|
|
43
|
+
*/
|
|
44
|
+
shippoDeliveryEnabled: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Whether custom/manual delivery is enabled
|
|
47
|
+
* @type {boolean}
|
|
48
|
+
* @memberof StoreCapabilitiesDto
|
|
49
|
+
*/
|
|
50
|
+
customDeliveryEnabled: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Flat rate for custom delivery
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @memberof StoreCapabilitiesDto
|
|
55
|
+
*/
|
|
56
|
+
customDeliveryFlatRate: number;
|
|
57
|
+
/**
|
|
58
|
+
* Display title for custom delivery
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof StoreCapabilitiesDto
|
|
61
|
+
*/
|
|
62
|
+
customDeliveryTitle: string;
|
|
63
|
+
}
|
|
@@ -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
|
|
@@ -72,6 +73,12 @@ export interface StoreEntity {
|
|
|
72
73
|
* @memberof StoreEntity
|
|
73
74
|
*/
|
|
74
75
|
adminUrl?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Shippo Platform managed account ID
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof StoreEntity
|
|
80
|
+
*/
|
|
81
|
+
shippoAccountId?: string;
|
|
75
82
|
/**
|
|
76
83
|
*
|
|
77
84
|
* @type {string}
|
|
@@ -114,4 +121,10 @@ export interface StoreEntity {
|
|
|
114
121
|
* @memberof StoreEntity
|
|
115
122
|
*/
|
|
116
123
|
storeBillingAddress?: string;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {CreateStoreDtoSettings}
|
|
127
|
+
* @memberof StoreEntity
|
|
128
|
+
*/
|
|
129
|
+
settings?: CreateStoreDtoSettings;
|
|
117
130
|
}
|
|
@@ -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
|
|
@@ -78,6 +79,12 @@ export interface Store {
|
|
|
78
79
|
* @memberof Store
|
|
79
80
|
*/
|
|
80
81
|
shippingApi?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Shippo Platform managed account ID
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof Store
|
|
86
|
+
*/
|
|
87
|
+
shippoAccountId?: string;
|
|
81
88
|
/**
|
|
82
89
|
*
|
|
83
90
|
* @type {string}
|
|
@@ -132,4 +139,10 @@ export interface Store {
|
|
|
132
139
|
* @memberof Store
|
|
133
140
|
*/
|
|
134
141
|
storeBillingAddress: string;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {CreateStoreDtoSettings}
|
|
145
|
+
* @memberof Store
|
|
146
|
+
*/
|
|
147
|
+
settings: CreateStoreDtoSettings;
|
|
135
148
|
}
|
|
@@ -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
|
+
}
|