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.
- package/dist/index.d.mts +10734 -1256
- package/dist/index.d.ts +10734 -1256
- package/dist/index.js +2741 -295
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2686 -296
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/hooks/useStoreCapabilities.ts +87 -0
- package/src/index.ts +4 -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/products-api.ts +97 -0
- 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/create-address-dto.ts +0 -12
- package/src/lib/Apis/models/create-discount-dto.ts +0 -8
- 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-variant-dto.ts +0 -6
- package/src/lib/Apis/models/discount.ts +0 -8
- package/src/lib/Apis/models/index.ts +11 -0
- package/src/lib/Apis/models/populated-discount.ts +0 -8
- 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/reorder-products-success-response-dto.ts +33 -0
- 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/shipment-with-order.ts +18 -0
- package/src/lib/Apis/models/shipment.ts +18 -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 +7 -0
- package/src/lib/Apis/models/store.ts +7 -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 +0 -8
- package/src/lib/Apis/models/update-manual-shipment-status-dto.ts +47 -0
- package/src/lib/Apis/models/update-store-dto.ts +7 -0
- package/src/lib/Apis/models/update-variant-dto.ts +0 -6
- package/src/screens/CheckoutScreen.tsx +363 -278
- package/src/screens/ResetPasswordScreen.tsx +10 -4
|
@@ -108,18 +108,6 @@ export interface AddressCreatedRequest {
|
|
|
108
108
|
* @memberof AddressCreatedRequest
|
|
109
109
|
*/
|
|
110
110
|
addressType?: AddressCreatedRequestAddressTypeEnum;
|
|
111
|
-
/**
|
|
112
|
-
*
|
|
113
|
-
* @type {any}
|
|
114
|
-
* @memberof AddressCreatedRequest
|
|
115
|
-
*/
|
|
116
|
-
latitude: any;
|
|
117
|
-
/**
|
|
118
|
-
*
|
|
119
|
-
* @type {any}
|
|
120
|
-
* @memberof AddressCreatedRequest
|
|
121
|
-
*/
|
|
122
|
-
longitude: any;
|
|
123
111
|
}
|
|
124
112
|
|
|
125
113
|
/**
|
|
@@ -132,18 +132,6 @@ export interface Address {
|
|
|
132
132
|
* @memberof Address
|
|
133
133
|
*/
|
|
134
134
|
isResidential: boolean;
|
|
135
|
-
/**
|
|
136
|
-
*
|
|
137
|
-
* @type {number}
|
|
138
|
-
* @memberof Address
|
|
139
|
-
*/
|
|
140
|
-
latitude: number;
|
|
141
|
-
/**
|
|
142
|
-
*
|
|
143
|
-
* @type {number}
|
|
144
|
-
* @memberof Address
|
|
145
|
-
*/
|
|
146
|
-
longitude: number;
|
|
147
135
|
/**
|
|
148
136
|
*
|
|
149
137
|
* @type {string}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 ApiKeyInfoDto
|
|
18
|
+
*/
|
|
19
|
+
export interface ApiKeyInfoDto {
|
|
20
|
+
_id?: string;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof ApiKeyInfoDto
|
|
25
|
+
*/
|
|
26
|
+
keyType: ApiKeyInfoDtoKeyTypeEnum;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the key is configured
|
|
29
|
+
* @type {boolean}
|
|
30
|
+
* @memberof ApiKeyInfoDto
|
|
31
|
+
*/
|
|
32
|
+
isConfigured: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Masked key showing first 4 and last 4 characters
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof ApiKeyInfoDto
|
|
37
|
+
*/
|
|
38
|
+
maskedKey?: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @export
|
|
43
|
+
* @enum {string}
|
|
44
|
+
*/
|
|
45
|
+
export enum ApiKeyInfoDtoKeyTypeEnum {
|
|
46
|
+
Stripe = 'stripe',
|
|
47
|
+
Shippo = 'shippo'
|
|
48
|
+
}
|
|
49
|
+
|
|
@@ -102,18 +102,6 @@ export interface CreateAddressDto {
|
|
|
102
102
|
* @memberof CreateAddressDto
|
|
103
103
|
*/
|
|
104
104
|
isResidential?: boolean;
|
|
105
|
-
/**
|
|
106
|
-
*
|
|
107
|
-
* @type {number}
|
|
108
|
-
* @memberof CreateAddressDto
|
|
109
|
-
*/
|
|
110
|
-
latitude?: number;
|
|
111
|
-
/**
|
|
112
|
-
*
|
|
113
|
-
* @type {number}
|
|
114
|
-
* @memberof CreateAddressDto
|
|
115
|
-
*/
|
|
116
|
-
longitude?: number;
|
|
117
105
|
/**
|
|
118
106
|
*
|
|
119
107
|
* @type {string}
|
|
@@ -150,12 +150,6 @@ export interface CreateDiscountDto {
|
|
|
150
150
|
* @memberof CreateDiscountDto
|
|
151
151
|
*/
|
|
152
152
|
groupsEligible?: Array<string>;
|
|
153
|
-
/**
|
|
154
|
-
*
|
|
155
|
-
* @type {Array<string>}
|
|
156
|
-
* @memberof CreateDiscountDto
|
|
157
|
-
*/
|
|
158
|
-
eligibleZipCodes?: Array<string>;
|
|
159
153
|
}
|
|
160
154
|
|
|
161
155
|
/**
|
|
@@ -163,8 +157,6 @@ export interface CreateDiscountDto {
|
|
|
163
157
|
* @enum {string}
|
|
164
158
|
*/
|
|
165
159
|
export enum CreateDiscountDtoDiscountTypeEnum {
|
|
166
|
-
CARTBALANCE = 'CART_BALANCE',
|
|
167
|
-
SHIPPING = 'SHIPPING',
|
|
168
160
|
PRODUCT = 'PRODUCT',
|
|
169
161
|
CATEGORY = 'CATEGORY',
|
|
170
162
|
VARIANT = 'VARIANT'
|
|
@@ -102,18 +102,6 @@ export interface CreateStoreAddressDto {
|
|
|
102
102
|
* @memberof CreateStoreAddressDto
|
|
103
103
|
*/
|
|
104
104
|
isResidential?: boolean;
|
|
105
|
-
/**
|
|
106
|
-
*
|
|
107
|
-
* @type {number}
|
|
108
|
-
* @memberof CreateStoreAddressDto
|
|
109
|
-
*/
|
|
110
|
-
latitude?: number;
|
|
111
|
-
/**
|
|
112
|
-
*
|
|
113
|
-
* @type {number}
|
|
114
|
-
* @memberof CreateStoreAddressDto
|
|
115
|
-
*/
|
|
116
|
-
longitude?: number;
|
|
117
105
|
/**
|
|
118
106
|
*
|
|
119
107
|
* @type {string}
|
|
@@ -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
|
+
* Store settings for payment and delivery options
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CreateStoreDtoSettings
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateStoreDtoSettings {
|
|
20
|
+
_id?: string;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {boolean}
|
|
24
|
+
* @memberof CreateStoreDtoSettings
|
|
25
|
+
*/
|
|
26
|
+
enableCardPayment?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {boolean}
|
|
30
|
+
* @memberof CreateStoreDtoSettings
|
|
31
|
+
*/
|
|
32
|
+
enableShippoDelivery?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {boolean}
|
|
36
|
+
* @memberof CreateStoreDtoSettings
|
|
37
|
+
*/
|
|
38
|
+
enableCustomDelivery?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof CreateStoreDtoSettings
|
|
43
|
+
*/
|
|
44
|
+
customDeliveryFlatRate?: number;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof CreateStoreDtoSettings
|
|
49
|
+
*/
|
|
50
|
+
customDeliveryTitle?: string;
|
|
51
|
+
}
|
|
@@ -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 CreateStoreDto {
|
|
|
102
103
|
* @memberof CreateStoreDto
|
|
103
104
|
*/
|
|
104
105
|
storeBillingAddress?: string;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {CreateStoreDtoSettings}
|
|
109
|
+
* @memberof CreateStoreDto
|
|
110
|
+
*/
|
|
111
|
+
settings?: CreateStoreDtoSettings;
|
|
105
112
|
}
|
|
@@ -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';
|
|
@@ -52,6 +53,7 @@ export * from './create-product-dto';
|
|
|
52
53
|
export * from './create-review-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';
|
|
@@ -107,6 +109,11 @@ 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';
|
|
@@ -127,6 +134,8 @@ export * from './single-notification-dto';
|
|
|
127
134
|
export * from './single-product-media';
|
|
128
135
|
export * from './single-recipient-dto';
|
|
129
136
|
export * from './store';
|
|
137
|
+
export * from './store-api-keys-response-dto';
|
|
138
|
+
export * from './store-capabilities-dto';
|
|
130
139
|
export * from './store-entity';
|
|
131
140
|
export * from './sub-category';
|
|
132
141
|
export * from './sub-category-headlines-only-response-dto';
|
|
@@ -140,12 +149,14 @@ export * from './tracking-status-substatus';
|
|
|
140
149
|
export * from './transfere-patient-request';
|
|
141
150
|
export * from './transfere-patients-request-dto';
|
|
142
151
|
export * from './update-address-dto';
|
|
152
|
+
export * from './update-api-keys-dto';
|
|
143
153
|
export * from './update-blog-dto';
|
|
144
154
|
export * from './update-campaign-draft-content-dto';
|
|
145
155
|
export * from './update-category-dto';
|
|
146
156
|
export * from './update-discount-dto';
|
|
147
157
|
export * from './update-event-dto';
|
|
148
158
|
export * from './update-items-order-dto';
|
|
159
|
+
export * from './update-manual-shipment-status-dto';
|
|
149
160
|
export * from './update-marketing-camp-draft-dto';
|
|
150
161
|
export * from './update-message-dto';
|
|
151
162
|
export * from './update-product-dto';
|
|
@@ -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,27 @@
|
|
|
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 ReorderCategoriesDto
|
|
18
|
+
*/
|
|
19
|
+
export interface ReorderCategoriesDto {
|
|
20
|
+
_id?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Array of category IDs in the desired order
|
|
23
|
+
* @type {Array<string>}
|
|
24
|
+
* @memberof ReorderCategoriesDto
|
|
25
|
+
*/
|
|
26
|
+
orderedIds: Array<string>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 ReorderProductsDto
|
|
18
|
+
*/
|
|
19
|
+
export interface ReorderProductsDto {
|
|
20
|
+
_id?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The container (category or subcategory) ID
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof ReorderProductsDto
|
|
25
|
+
*/
|
|
26
|
+
containerId: string;
|
|
27
|
+
/**
|
|
28
|
+
* The type of container
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof ReorderProductsDto
|
|
31
|
+
*/
|
|
32
|
+
containerType: ReorderProductsDtoContainerTypeEnum;
|
|
33
|
+
/**
|
|
34
|
+
* Array of product IDs in the desired order
|
|
35
|
+
* @type {Array<string>}
|
|
36
|
+
* @memberof ReorderProductsDto
|
|
37
|
+
*/
|
|
38
|
+
orderedProductIds: Array<string>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @export
|
|
43
|
+
* @enum {string}
|
|
44
|
+
*/
|
|
45
|
+
export enum ReorderProductsDtoContainerTypeEnum {
|
|
46
|
+
Category = 'category',
|
|
47
|
+
Subcategory = 'subcategory'
|
|
48
|
+
}
|
|
49
|
+
|
|
@@ -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 ReorderProductsSuccessResponseDto
|
|
18
|
+
*/
|
|
19
|
+
export interface ReorderProductsSuccessResponseDto {
|
|
20
|
+
_id?: string;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {boolean}
|
|
24
|
+
* @memberof ReorderProductsSuccessResponseDto
|
|
25
|
+
*/
|
|
26
|
+
success: boolean;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof ReorderProductsSuccessResponseDto
|
|
31
|
+
*/
|
|
32
|
+
message: 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 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
|
+
}
|
|
@@ -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,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
|
+
}
|