hey-pharmacist-ecommerce 1.1.28 → 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 (91) hide show
  1. package/dist/index.d.mts +10552 -1370
  2. package/dist/index.d.ts +10552 -1370
  3. package/dist/index.js +4696 -1281
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +4640 -1283
  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/useStoreCapabilities.ts +87 -0
  19. package/src/hooks/useWishlistProducts.ts +4 -5
  20. package/src/index.ts +6 -0
  21. package/src/lib/Apis/api.ts +0 -1
  22. package/src/lib/Apis/apis/auth-api.ts +37 -36
  23. package/src/lib/Apis/apis/categories-api.ts +97 -0
  24. package/src/lib/Apis/apis/products-api.ts +942 -405
  25. package/src/lib/Apis/apis/shipping-api.ts +105 -0
  26. package/src/lib/Apis/apis/stores-api.ts +356 -0
  27. package/src/lib/Apis/apis/sub-categories-api.ts +97 -0
  28. package/src/lib/Apis/apis/users-api.ts +8 -8
  29. package/src/lib/Apis/models/address-created-request.ts +0 -12
  30. package/src/lib/Apis/models/address.ts +0 -12
  31. package/src/lib/Apis/models/api-key-info-dto.ts +49 -0
  32. package/src/lib/Apis/models/category-populated.ts +0 -12
  33. package/src/lib/Apis/models/category-sub-category-populated.ts +2 -2
  34. package/src/lib/Apis/models/category.ts +0 -18
  35. package/src/lib/Apis/models/{table-cell-dto.ts → change-password-dto.ts} +6 -6
  36. package/src/lib/Apis/models/create-address-dto.ts +0 -12
  37. package/src/lib/Apis/models/create-discount-dto.ts +0 -8
  38. package/src/lib/Apis/models/create-product-dto.ts +30 -23
  39. package/src/lib/Apis/models/create-store-address-dto.ts +0 -12
  40. package/src/lib/Apis/models/create-store-dto-settings.ts +51 -0
  41. package/src/lib/Apis/models/create-store-dto.ts +7 -0
  42. package/src/lib/Apis/models/create-sub-category-dto.ts +6 -0
  43. package/src/lib/Apis/models/create-variant-dto.ts +26 -32
  44. package/src/lib/Apis/models/discount.ts +0 -8
  45. package/src/lib/Apis/models/index.ts +16 -7
  46. package/src/lib/Apis/models/paginated-products-dto.ts +6 -6
  47. package/src/lib/Apis/models/populated-discount.ts +0 -8
  48. package/src/lib/Apis/models/product-summary.ts +69 -0
  49. package/src/lib/Apis/models/product-variant.ts +31 -68
  50. package/src/lib/Apis/models/product.ts +138 -0
  51. package/src/lib/Apis/models/products-insights-dto.ts +12 -0
  52. package/src/lib/Apis/models/reorder-categories-dto.ts +27 -0
  53. package/src/lib/Apis/models/reorder-products-dto.ts +49 -0
  54. package/src/lib/Apis/models/{table-dto.ts → reorder-products-success-response-dto.ts} +8 -9
  55. package/src/lib/Apis/models/reorder-subcategories-dto.ts +33 -0
  56. package/src/lib/Apis/models/{shallow-parent-category-dto.ts → reorder-success-response-dto.ts} +7 -7
  57. package/src/lib/Apis/models/shipment-with-order.ts +18 -0
  58. package/src/lib/Apis/models/shipment.ts +18 -0
  59. package/src/lib/Apis/models/single-product-media.ts +0 -12
  60. package/src/lib/Apis/models/store-api-keys-response-dto.ts +34 -0
  61. package/src/lib/Apis/models/store-capabilities-dto.ts +63 -0
  62. package/src/lib/Apis/models/store-entity.ts +7 -0
  63. package/src/lib/Apis/models/store.ts +7 -0
  64. package/src/lib/Apis/models/sub-category.ts +6 -12
  65. package/src/lib/Apis/models/update-address-dto.ts +0 -12
  66. package/src/lib/Apis/models/update-api-keys-dto.ts +39 -0
  67. package/src/lib/Apis/models/update-discount-dto.ts +0 -8
  68. package/src/lib/Apis/models/update-manual-shipment-status-dto.ts +47 -0
  69. package/src/lib/Apis/models/update-product-dto.ts +30 -19
  70. package/src/lib/Apis/models/update-store-dto.ts +7 -0
  71. package/src/lib/Apis/models/update-sub-category-dto.ts +6 -0
  72. package/src/lib/Apis/models/{update-product-variant-dto.ts → update-variant-dto.ts} +46 -46
  73. package/src/lib/Apis/models/variant-id-inventory-body.ts +27 -0
  74. package/src/lib/api-adapter/config.ts +53 -0
  75. package/src/lib/validations/address.ts +1 -1
  76. package/src/providers/FavoritesProvider.tsx +5 -5
  77. package/src/providers/WishlistProvider.tsx +4 -4
  78. package/src/screens/CartScreen.tsx +1 -1
  79. package/src/screens/ChangePasswordScreen.tsx +2 -6
  80. package/src/screens/CheckoutScreen.tsx +402 -288
  81. package/src/screens/ForgotPasswordScreen.tsx +153 -0
  82. package/src/screens/ProductDetailScreen.tsx +51 -60
  83. package/src/screens/RegisterScreen.tsx +31 -31
  84. package/src/screens/ResetPasswordScreen.tsx +208 -0
  85. package/src/screens/SearchResultsScreen.tsx +264 -26
  86. package/src/screens/ShopScreen.tsx +42 -45
  87. package/src/screens/WishlistScreen.tsx +35 -31
  88. package/src/lib/Apis/apis/product-variants-api.ts +0 -552
  89. package/src/lib/Apis/models/create-single-variant-product-dto.ts +0 -154
  90. package/src/lib/Apis/models/extended-product-dto.ts +0 -206
  91. package/src/lib/Apis/models/frequently-bought-product-dto.ts +0 -71
@@ -20,6 +20,8 @@ import { BulkMoveSubcategoriesDto } from '../models';
20
20
  import { BulkUnassignSubcategoriesDto } from '../models';
21
21
  import { CreateSubCategoryDto } from '../models';
22
22
  import { MoveSubcategoryDto } from '../models';
23
+ import { ReorderSubcategoriesDto } from '../models';
24
+ import { ReorderSuccessResponseDto } from '../models';
23
25
  import { SubCategory } from '../models';
24
26
  import { UpdateSubCategoryDto } from '../models';
25
27
  /**
@@ -625,6 +627,66 @@ export const SubCategoriesApiAxiosParamCreator = function (configuration?: Confi
625
627
  options: localVarRequestOptions,
626
628
  };
627
629
  },
630
+ /**
631
+ *
632
+ * @summary Reorder subcategories within a parent category
633
+ * @param {ReorderSubcategoriesDto} body
634
+ * @param {*} [options] Override http request option.
635
+ * @throws {RequiredError}
636
+ */
637
+ reorderSubcategories: async (body: ReorderSubcategoriesDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
638
+ // verify required parameter 'body' is not null or undefined
639
+ if (body === null || body === undefined) {
640
+ throw new RequiredError('body','Required parameter body was null or undefined when calling reorderSubcategories.');
641
+ }
642
+ const localVarPath = `/sub-categories/reorder`;
643
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
644
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
645
+ let baseOptions;
646
+ if (configuration) {
647
+ baseOptions = configuration.baseOptions;
648
+ }
649
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'PATCH', ...baseOptions, ...options};
650
+ const localVarHeaderParameter = {} as any;
651
+ const localVarQueryParameter = {} as any;
652
+
653
+ // authentication bearer required
654
+ // http bearer authentication required
655
+ if (configuration && configuration.accessToken) {
656
+ const accessToken = typeof configuration.accessToken === 'function'
657
+ ? await configuration.accessToken()
658
+ : await configuration.accessToken;
659
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
660
+ }
661
+
662
+ // authentication x-store-key required
663
+ if (configuration && configuration.apiKey) {
664
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
665
+ ? await configuration.apiKey("x-store-key")
666
+ : await configuration.apiKey;
667
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
668
+ }
669
+
670
+ localVarHeaderParameter['Content-Type'] = 'application/json';
671
+
672
+ const query = new URLSearchParams(localVarUrlObj.search);
673
+ for (const key in localVarQueryParameter) {
674
+ query.set(key, localVarQueryParameter[key]);
675
+ }
676
+ for (const key in options.params) {
677
+ query.set(key, options.params[key]);
678
+ }
679
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
680
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
681
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
682
+ const needsSerialization = (typeof body !== "string") || (localVarRequestOptions.headers ||= {})['Content-Type'] === 'application/json';
683
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
684
+
685
+ return {
686
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
687
+ options: localVarRequestOptions,
688
+ };
689
+ },
628
690
  /**
629
691
  *
630
692
  * @summary Unassign a subcategory from its parent category
@@ -899,6 +961,20 @@ export const SubCategoriesApiFp = function(configuration?: Configuration) {
899
961
  return axios.request(axiosRequestArgs);
900
962
  };
901
963
  },
964
+ /**
965
+ *
966
+ * @summary Reorder subcategories within a parent category
967
+ * @param {ReorderSubcategoriesDto} body
968
+ * @param {*} [options] Override http request option.
969
+ * @throws {RequiredError}
970
+ */
971
+ async reorderSubcategories(body: ReorderSubcategoriesDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ReorderSuccessResponseDto>>> {
972
+ const localVarAxiosArgs = await SubCategoriesApiAxiosParamCreator(configuration).reorderSubcategories(body, options);
973
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
974
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
975
+ return axios.request(axiosRequestArgs);
976
+ };
977
+ },
902
978
  /**
903
979
  *
904
980
  * @summary Unassign a subcategory from its parent category
@@ -1039,6 +1115,16 @@ export const SubCategoriesApiFactory = function (configuration?: Configuration,
1039
1115
  async moveSubcategory(body: MoveSubcategoryDto, subcategoryId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<SubCategory>> {
1040
1116
  return SubCategoriesApiFp(configuration).moveSubcategory(body, subcategoryId, options).then((request) => request(axios, basePath));
1041
1117
  },
1118
+ /**
1119
+ *
1120
+ * @summary Reorder subcategories within a parent category
1121
+ * @param {ReorderSubcategoriesDto} body
1122
+ * @param {*} [options] Override http request option.
1123
+ * @throws {RequiredError}
1124
+ */
1125
+ async reorderSubcategories(body: ReorderSubcategoriesDto, options?: AxiosRequestConfig): Promise<AxiosResponse<ReorderSuccessResponseDto>> {
1126
+ return SubCategoriesApiFp(configuration).reorderSubcategories(body, options).then((request) => request(axios, basePath));
1127
+ },
1042
1128
  /**
1043
1129
  *
1044
1130
  * @summary Unassign a subcategory from its parent category
@@ -1182,6 +1268,17 @@ export class SubCategoriesApi extends BaseAPI {
1182
1268
  public async moveSubcategory(body: MoveSubcategoryDto, subcategoryId: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<SubCategory>> {
1183
1269
  return SubCategoriesApiFp(this.configuration).moveSubcategory(body, subcategoryId, options).then((request) => request(this.axios, this.basePath));
1184
1270
  }
1271
+ /**
1272
+ *
1273
+ * @summary Reorder subcategories within a parent category
1274
+ * @param {ReorderSubcategoriesDto} body
1275
+ * @param {*} [options] Override http request option.
1276
+ * @throws {RequiredError}
1277
+ * @memberof SubCategoriesApi
1278
+ */
1279
+ public async reorderSubcategories(body: ReorderSubcategoriesDto, options?: AxiosRequestConfig) : Promise<AxiosResponse<ReorderSuccessResponseDto>> {
1280
+ return SubCategoriesApiFp(this.configuration).reorderSubcategories(body, options).then((request) => request(this.axios, this.basePath));
1281
+ }
1185
1282
  /**
1186
1283
  *
1187
1284
  * @summary Unassign a subcategory from its parent category
@@ -217,7 +217,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
217
217
  },
218
218
  /**
219
219
  *
220
- * @summary Deletes a single user
220
+ * @summary Deletes my profile
221
221
  * @param {*} [options] Override http request option.
222
222
  * @throws {RequiredError}
223
223
  */
@@ -268,7 +268,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
268
268
  },
269
269
  /**
270
270
  *
271
- * @summary Deletes a single user
271
+ * @summary Deletes a single user by ID (Admin only)
272
272
  * @param {string} id
273
273
  * @param {*} [options] Override http request option.
274
274
  * @throws {RequiredError}
@@ -921,7 +921,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
921
921
  },
922
922
  /**
923
923
  *
924
- * @summary Deletes a single user
924
+ * @summary Deletes my profile
925
925
  * @param {*} [options] Override http request option.
926
926
  * @throws {RequiredError}
927
927
  */
@@ -934,7 +934,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
934
934
  },
935
935
  /**
936
936
  *
937
- * @summary Deletes a single user
937
+ * @summary Deletes a single user by ID (Admin only)
938
938
  * @param {string} id
939
939
  * @param {*} [options] Override http request option.
940
940
  * @throws {RequiredError}
@@ -1119,7 +1119,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
1119
1119
  },
1120
1120
  /**
1121
1121
  *
1122
- * @summary Deletes a single user
1122
+ * @summary Deletes my profile
1123
1123
  * @param {*} [options] Override http request option.
1124
1124
  * @throws {RequiredError}
1125
1125
  */
@@ -1128,7 +1128,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
1128
1128
  },
1129
1129
  /**
1130
1130
  *
1131
- * @summary Deletes a single user
1131
+ * @summary Deletes a single user by ID (Admin only)
1132
1132
  * @param {string} id
1133
1133
  * @param {*} [options] Override http request option.
1134
1134
  * @throws {RequiredError}
@@ -1277,7 +1277,7 @@ export class UsersApi extends BaseAPI {
1277
1277
  }
1278
1278
  /**
1279
1279
  *
1280
- * @summary Deletes a single user
1280
+ * @summary Deletes my profile
1281
1281
  * @param {*} [options] Override http request option.
1282
1282
  * @throws {RequiredError}
1283
1283
  * @memberof UsersApi
@@ -1287,7 +1287,7 @@ export class UsersApi extends BaseAPI {
1287
1287
  }
1288
1288
  /**
1289
1289
  *
1290
- * @summary Deletes a single user
1290
+ * @summary Deletes a single user by ID (Admin only)
1291
1291
  * @param {string} id
1292
1292
  * @param {*} [options] Override http request option.
1293
1293
  * @throws {RequiredError}
@@ -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
+
@@ -79,18 +79,6 @@ export interface CategoryPopulated {
79
79
  * @memberof CategoryPopulated
80
80
  */
81
81
  storeId?: string;
82
- /**
83
- *
84
- * @type {Array<string>}
85
- * @memberof CategoryPopulated
86
- */
87
- categoryProducts?: Array<string>;
88
- /**
89
- *
90
- * @type {Array<string>}
91
- * @memberof CategoryPopulated
92
- */
93
- categoryProductVariants?: Array<string>;
94
82
  /**
95
83
  *
96
84
  * @type {Array<CategorySubCategoryPopulated>}
@@ -44,8 +44,8 @@ export interface CategorySubCategoryPopulated {
44
44
  image: string;
45
45
  /**
46
46
  *
47
- * @type {Array<string>}
47
+ * @type {number}
48
48
  * @memberof CategorySubCategoryPopulated
49
49
  */
50
- subCategoryProducts: Array<string>;
50
+ productCount: number;
51
51
  }
@@ -78,22 +78,4 @@ export interface Category {
78
78
  * @memberof Category
79
79
  */
80
80
  storeId: string;
81
- /**
82
- *
83
- * @type {Array<string>}
84
- * @memberof Category
85
- */
86
- categorySubCategories: Array<string>;
87
- /**
88
- *
89
- * @type {Array<string>}
90
- * @memberof Category
91
- */
92
- categoryProducts: Array<string>;
93
- /**
94
- *
95
- * @type {Array<string>}
96
- * @memberof Category
97
- */
98
- categoryProductVariants: Array<string>;
99
81
  }
@@ -14,20 +14,20 @@
14
14
  /**
15
15
  *
16
16
  * @export
17
- * @interface TableCellDto
17
+ * @interface ChangePasswordDto
18
18
  */
19
- export interface TableCellDto {
19
+ export interface ChangePasswordDto {
20
20
  _id?: string;
21
21
  /**
22
22
  *
23
23
  * @type {string}
24
- * @memberof TableCellDto
24
+ * @memberof ChangePasswordDto
25
25
  */
26
- key: string;
26
+ oldPassword: string;
27
27
  /**
28
28
  *
29
29
  * @type {string}
30
- * @memberof TableCellDto
30
+ * @memberof ChangePasswordDto
31
31
  */
32
- value: string;
32
+ newPassword: string;
33
33
  }
@@ -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'
@@ -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 { CreateVariantDto } from './create-variant-dto';
14
15
  import { SingleProductMedia } from './single-product-media';
15
16
  /**
16
17
  *
@@ -24,7 +25,7 @@ export interface CreateProductDto {
24
25
  * @type {string}
25
26
  * @memberof CreateProductDto
26
27
  */
27
- name?: string;
28
+ name: string;
28
29
  /**
29
30
  *
30
31
  * @type {string}
@@ -33,68 +34,74 @@ export interface CreateProductDto {
33
34
  description?: string;
34
35
  /**
35
36
  *
36
- * @type {Array<string>}
37
+ * @type {string}
37
38
  * @memberof CreateProductDto
38
39
  */
39
- tags: Array<string>;
40
+ brand?: string;
40
41
  /**
41
42
  *
42
43
  * @type {string}
43
44
  * @memberof CreateProductDto
44
45
  */
45
- brand?: string;
46
+ sku?: string;
46
47
  /**
47
48
  *
48
49
  * @type {string}
49
50
  * @memberof CreateProductDto
50
51
  */
51
- sku?: string;
52
+ upc?: string;
52
53
  /**
53
54
  *
54
- * @type {boolean}
55
+ * @type {Array<SingleProductMedia>}
55
56
  * @memberof CreateProductDto
56
57
  */
57
- showStock?: boolean;
58
+ media?: Array<SingleProductMedia>;
58
59
  /**
59
60
  *
60
61
  * @type {Array<string>}
61
62
  * @memberof CreateProductDto
62
63
  */
63
- reviews?: Array<string>;
64
+ tags?: Array<string>;
64
65
  /**
65
- *
66
- * @type {string}
66
+ * Category IDs
67
+ * @type {Array<string>}
67
68
  * @memberof CreateProductDto
68
69
  */
69
- upc?: string;
70
+ categoryIds?: Array<string>;
70
71
  /**
71
- *
72
- * @type {boolean}
72
+ * SubCategory IDs
73
+ * @type {Array<string>}
73
74
  * @memberof CreateProductDto
74
75
  */
75
- homeScreenFeatured?: boolean;
76
+ subCategoryIds?: Array<string>;
76
77
  /**
77
- *
78
- * @type {Array<string>}
78
+ * Product variants (optional, can be added later)
79
+ * @type {Array<CreateVariantDto>}
79
80
  * @memberof CreateProductDto
80
81
  */
81
- parentSubCategories: Array<string>;
82
+ variants?: Array<CreateVariantDto>;
82
83
  /**
83
84
  *
84
- * @type {Array<string>}
85
+ * @type {boolean}
85
86
  * @memberof CreateProductDto
86
87
  */
87
- parentCategories: Array<string>;
88
+ showStock?: boolean;
88
89
  /**
89
90
  *
90
- * @type {Array<SingleProductMedia>}
91
+ * @type {boolean}
91
92
  * @memberof CreateProductDto
92
93
  */
93
- productMedia: Array<SingleProductMedia>;
94
+ homeScreenFeatured?: boolean;
94
95
  /**
95
- *
96
+ * IDs of frequently bought together products
97
+ * @type {Array<string>}
98
+ * @memberof CreateProductDto
99
+ */
100
+ frequentlyBoughtWith?: Array<string>;
101
+ /**
102
+ * IDs of frequently bought together products (alias)
96
103
  * @type {Array<string>}
97
104
  * @memberof CreateProductDto
98
105
  */
99
- frequentlyBoughtProducts: Array<string>;
106
+ frequentlyBoughtProducts?: Array<string>;
100
107
  }
@@ -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
  }
@@ -42,4 +42,10 @@ export interface CreateSubCategoryDto {
42
42
  * @memberof CreateSubCategoryDto
43
43
  */
44
44
  isActive?: boolean;
45
+ /**
46
+ *
47
+ * @type {number}
48
+ * @memberof CreateSubCategoryDto
49
+ */
50
+ order?: number;
45
51
  }