hey-pharmacist-ecommerce 1.1.42 → 1.1.43
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/README.md +70 -8
- package/dist/index.d.mts +380 -2364
- package/dist/index.d.ts +380 -2364
- package/dist/index.js +287 -326
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +287 -323
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/components/AccountOverviewTab.tsx +5 -5
- package/src/components/CartItem.tsx +15 -15
- package/src/components/Notification.tsx +3 -3
- package/src/components/ProductCard.tsx +10 -10
- package/src/components/QuickViewModal.tsx +16 -16
- package/src/components/ReviewCard.tsx +2 -2
- package/src/lib/Apis/api.ts +0 -1
- package/src/lib/Apis/models/group-with-no-users-dto.ts +0 -6
- package/src/lib/Apis/models/group-with-users-dto.ts +0 -6
- package/src/lib/Apis/models/index.ts +0 -35
- package/src/lib/Apis/models/order.ts +0 -6
- package/src/lib/Apis/models/populated-order.ts +0 -6
- package/src/lib/Apis/models/preference-update-item.ts +1 -0
- package/src/lib/Apis/models/update-user-dto.ts +0 -6
- package/src/lib/Apis/models/user-group.ts +0 -6
- package/src/lib/Apis/models/user-with-no-id.ts +0 -6
- package/src/lib/Apis/sharedConfig.ts +1 -1
- package/src/screens/CartScreen.tsx +10 -10
- package/src/screens/CheckoutScreen.tsx +12 -12
- package/src/screens/ProductDetailScreen.tsx +39 -39
- package/src/screens/ShopScreen.tsx +20 -20
- package/src/lib/Apis/apis/marketing-api.ts +0 -3099
- package/src/lib/Apis/models/add-contact-to-list-dto.ts +0 -33
- package/src/lib/Apis/models/browser-stats-response-dto.ts +0 -40
- package/src/lib/Apis/models/campaign-content-response-dto.ts +0 -40
- package/src/lib/Apis/models/campaign-draft-dto.ts +0 -175
- package/src/lib/Apis/models/campaign-draft-response-dto.ts +0 -40
- package/src/lib/Apis/models/campaign-draft-schedule-dto.ts +0 -49
- package/src/lib/Apis/models/campaign-draft-schedule-response-dto.ts +0 -40
- package/src/lib/Apis/models/campaign-draft-sending-dto.ts +0 -43
- package/src/lib/Apis/models/campaign-draft-sending-response-dto.ts +0 -40
- package/src/lib/Apis/models/contact-aggregated-stats-response-dto.ts +0 -40
- package/src/lib/Apis/models/contact-full-dto.ts +0 -93
- package/src/lib/Apis/models/contact-full-response-dto.ts +0 -40
- package/src/lib/Apis/models/contact-list-stats-response-dto.ts +0 -40
- package/src/lib/Apis/models/contact-lists-response-dto.ts +0 -40
- package/src/lib/Apis/models/country-stats-response-dto.ts +0 -40
- package/src/lib/Apis/models/create-contact-dto.ts +0 -39
- package/src/lib/Apis/models/create-contact-list-dto.ts +0 -27
- package/src/lib/Apis/models/create-email-template-dto.ts +0 -51
- package/src/lib/Apis/models/create-marketing-campaign-dto.ts +0 -81
- package/src/lib/Apis/models/email-template-response-dto.ts +0 -117
- package/src/lib/Apis/models/general-stats-response-dto.ts +0 -40
- package/src/lib/Apis/models/link-stats-response-dto.ts +0 -40
- package/src/lib/Apis/models/marketing-campaign-content-dto.ts +0 -27
- package/src/lib/Apis/models/marketing-list-contact-dto.ts +0 -51
- package/src/lib/Apis/models/schedule-campaign-draft-dto.ts +0 -27
- package/src/lib/Apis/models/send-test-email-dto.ts +0 -28
- package/src/lib/Apis/models/single-browser-stats-dto.ts +0 -45
- package/src/lib/Apis/models/single-contact-aggregated-stats-dto.ts +0 -129
- package/src/lib/Apis/models/single-contact-list-stats-dto.ts +0 -117
- package/src/lib/Apis/models/single-country-stats-dto.ts +0 -39
- package/src/lib/Apis/models/single-general-stats.ts +0 -153
- package/src/lib/Apis/models/single-link-stats-dto.ts +0 -39
- package/src/lib/Apis/models/single-recipient-dto.ts +0 -33
- package/src/lib/Apis/models/update-campaign-draft-content-dto.ts +0 -27
- package/src/lib/Apis/models/update-marketing-camp-draft-dto.ts +0 -81
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
var React10 = require('react');
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var
|
|
6
|
+
var globalAxios20 = require('axios');
|
|
7
7
|
var framerMotion = require('framer-motion');
|
|
8
8
|
var lucideReact = require('lucide-react');
|
|
9
9
|
var reactQuery = require('@tanstack/react-query');
|
|
@@ -19,7 +19,7 @@ var zod = require('zod');
|
|
|
19
19
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
20
|
|
|
21
21
|
var React10__default = /*#__PURE__*/_interopDefault(React10);
|
|
22
|
-
var
|
|
22
|
+
var globalAxios20__default = /*#__PURE__*/_interopDefault(globalAxios20);
|
|
23
23
|
var Image4__default = /*#__PURE__*/_interopDefault(Image4);
|
|
24
24
|
var Link9__default = /*#__PURE__*/_interopDefault(Link9);
|
|
25
25
|
var dynamic__default = /*#__PURE__*/_interopDefault(dynamic);
|
|
@@ -71,7 +71,7 @@ var init_sharedConfig = __esm({
|
|
|
71
71
|
basePath: "https://api.heypharmacist.com",
|
|
72
72
|
// Default fallback
|
|
73
73
|
baseOptions: {
|
|
74
|
-
timeout:
|
|
74
|
+
timeout: 6e4
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
77
|
}
|
|
@@ -291,7 +291,7 @@ function ThemeProvider({ config, children }) {
|
|
|
291
291
|
init_config();
|
|
292
292
|
var BASE_PATH = "/".replace(/\/+$/, "");
|
|
293
293
|
var BaseAPI = class {
|
|
294
|
-
constructor(configuration, basePath = BASE_PATH, axios =
|
|
294
|
+
constructor(configuration, basePath = BASE_PATH, axios = globalAxios20__default.default) {
|
|
295
295
|
this.basePath = basePath;
|
|
296
296
|
this.axios = axios;
|
|
297
297
|
if (configuration) {
|
|
@@ -962,7 +962,7 @@ var UsersApiFp = function(configuration) {
|
|
|
962
962
|
*/
|
|
963
963
|
async allowUserCredit(body, userId, options) {
|
|
964
964
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).allowUserCredit(body, userId, options);
|
|
965
|
-
return (axios =
|
|
965
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
966
966
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
967
967
|
return axios.request(axiosRequestArgs);
|
|
968
968
|
};
|
|
@@ -976,7 +976,7 @@ var UsersApiFp = function(configuration) {
|
|
|
976
976
|
*/
|
|
977
977
|
async changeUserEmail(body, options) {
|
|
978
978
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).changeUserEmail(body, options);
|
|
979
|
-
return (axios =
|
|
979
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
980
980
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
981
981
|
return axios.request(axiosRequestArgs);
|
|
982
982
|
};
|
|
@@ -990,7 +990,7 @@ var UsersApiFp = function(configuration) {
|
|
|
990
990
|
*/
|
|
991
991
|
async createUser(body, options) {
|
|
992
992
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).createUser(body, options);
|
|
993
|
-
return (axios =
|
|
993
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
994
994
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
995
995
|
return axios.request(axiosRequestArgs);
|
|
996
996
|
};
|
|
@@ -1003,7 +1003,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1003
1003
|
*/
|
|
1004
1004
|
async deleteMyProfile(options) {
|
|
1005
1005
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).deleteMyProfile(options);
|
|
1006
|
-
return (axios =
|
|
1006
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1007
1007
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1008
1008
|
return axios.request(axiosRequestArgs);
|
|
1009
1009
|
};
|
|
@@ -1017,7 +1017,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1017
1017
|
*/
|
|
1018
1018
|
async deleteUser(id, options) {
|
|
1019
1019
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).deleteUser(id, options);
|
|
1020
|
-
return (axios =
|
|
1020
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1021
1021
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1022
1022
|
return axios.request(axiosRequestArgs);
|
|
1023
1023
|
};
|
|
@@ -1031,7 +1031,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1031
1031
|
*/
|
|
1032
1032
|
async disableUserCredit(userId, options) {
|
|
1033
1033
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).disableUserCredit(userId, options);
|
|
1034
|
-
return (axios =
|
|
1034
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1035
1035
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1036
1036
|
return axios.request(axiosRequestArgs);
|
|
1037
1037
|
};
|
|
@@ -1052,7 +1052,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1052
1052
|
*/
|
|
1053
1053
|
async getAllUsers(role, sortingOrder, sortingColumn, createdBefore, createdAfter, search, limit, page, options) {
|
|
1054
1054
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getAllUsers(role, sortingOrder, sortingColumn, createdBefore, createdAfter, search, limit, page, options);
|
|
1055
|
-
return (axios =
|
|
1055
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1056
1056
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1057
1057
|
return axios.request(axiosRequestArgs);
|
|
1058
1058
|
};
|
|
@@ -1066,7 +1066,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1066
1066
|
*/
|
|
1067
1067
|
async getInsights(groupId, options) {
|
|
1068
1068
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getInsights(groupId, options);
|
|
1069
|
-
return (axios =
|
|
1069
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1070
1070
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1071
1071
|
return axios.request(axiosRequestArgs);
|
|
1072
1072
|
};
|
|
@@ -1079,7 +1079,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1079
1079
|
*/
|
|
1080
1080
|
async getMyProfile(options) {
|
|
1081
1081
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getMyProfile(options);
|
|
1082
|
-
return (axios =
|
|
1082
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1083
1083
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1084
1084
|
return axios.request(axiosRequestArgs);
|
|
1085
1085
|
};
|
|
@@ -1093,7 +1093,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1093
1093
|
*/
|
|
1094
1094
|
async getSingleUser(id, options) {
|
|
1095
1095
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getSingleUser(id, options);
|
|
1096
|
-
return (axios =
|
|
1096
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1097
1097
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1098
1098
|
return axios.request(axiosRequestArgs);
|
|
1099
1099
|
};
|
|
@@ -1106,7 +1106,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1106
1106
|
*/
|
|
1107
1107
|
async sendOTP(options) {
|
|
1108
1108
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).sendOTP(options);
|
|
1109
|
-
return (axios =
|
|
1109
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1110
1110
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1111
1111
|
return axios.request(axiosRequestArgs);
|
|
1112
1112
|
};
|
|
@@ -1120,7 +1120,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1120
1120
|
*/
|
|
1121
1121
|
async updateMyProfile(body, options) {
|
|
1122
1122
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).updateMyProfile(body, options);
|
|
1123
|
-
return (axios =
|
|
1123
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1124
1124
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1125
1125
|
return axios.request(axiosRequestArgs);
|
|
1126
1126
|
};
|
|
@@ -1135,7 +1135,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1135
1135
|
*/
|
|
1136
1136
|
async updateUser(body, id, options) {
|
|
1137
1137
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).updateUser(body, id, options);
|
|
1138
|
-
return (axios =
|
|
1138
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1139
1139
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1140
1140
|
return axios.request(axiosRequestArgs);
|
|
1141
1141
|
};
|
|
@@ -1148,7 +1148,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1148
1148
|
*/
|
|
1149
1149
|
async verifyOTP(options) {
|
|
1150
1150
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).verifyOTP(options);
|
|
1151
|
-
return (axios =
|
|
1151
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1152
1152
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1153
1153
|
return axios.request(axiosRequestArgs);
|
|
1154
1154
|
};
|
|
@@ -1765,7 +1765,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1765
1765
|
*/
|
|
1766
1766
|
async changeEmail(body, options) {
|
|
1767
1767
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).changeEmail(body, options);
|
|
1768
|
-
return (axios =
|
|
1768
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1769
1769
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1770
1770
|
return axios.request(axiosRequestArgs);
|
|
1771
1771
|
};
|
|
@@ -1779,7 +1779,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1779
1779
|
*/
|
|
1780
1780
|
async changePassword(body, options) {
|
|
1781
1781
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).changePassword(body, options);
|
|
1782
|
-
return (axios =
|
|
1782
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1783
1783
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1784
1784
|
return axios.request(axiosRequestArgs);
|
|
1785
1785
|
};
|
|
@@ -1793,7 +1793,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1793
1793
|
*/
|
|
1794
1794
|
async dashboardLogin(body, options) {
|
|
1795
1795
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).dashboardLogin(body, options);
|
|
1796
|
-
return (axios =
|
|
1796
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1797
1797
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1798
1798
|
return axios.request(axiosRequestArgs);
|
|
1799
1799
|
};
|
|
@@ -1809,7 +1809,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1809
1809
|
*/
|
|
1810
1810
|
async resetPassword(newPassword, token, xStoreKey, options) {
|
|
1811
1811
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).resetPassword(newPassword, token, xStoreKey, options);
|
|
1812
|
-
return (axios =
|
|
1812
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1813
1813
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1814
1814
|
return axios.request(axiosRequestArgs);
|
|
1815
1815
|
};
|
|
@@ -1823,7 +1823,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1823
1823
|
*/
|
|
1824
1824
|
async sendForgetPasswordEmail(body, options) {
|
|
1825
1825
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).sendForgetPasswordEmail(body, options);
|
|
1826
|
-
return (axios =
|
|
1826
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1827
1827
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1828
1828
|
return axios.request(axiosRequestArgs);
|
|
1829
1829
|
};
|
|
@@ -1837,7 +1837,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1837
1837
|
*/
|
|
1838
1838
|
async signin(body, options) {
|
|
1839
1839
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signin(body, options);
|
|
1840
|
-
return (axios =
|
|
1840
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1841
1841
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1842
1842
|
return axios.request(axiosRequestArgs);
|
|
1843
1843
|
};
|
|
@@ -1851,7 +1851,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1851
1851
|
*/
|
|
1852
1852
|
async signinWithGmail(body, options) {
|
|
1853
1853
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signinWithGmail(body, options);
|
|
1854
|
-
return (axios =
|
|
1854
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1855
1855
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1856
1856
|
return axios.request(axiosRequestArgs);
|
|
1857
1857
|
};
|
|
@@ -1865,7 +1865,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1865
1865
|
*/
|
|
1866
1866
|
async signup(body, options) {
|
|
1867
1867
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signup(body, options);
|
|
1868
|
-
return (axios =
|
|
1868
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1869
1869
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1870
1870
|
return axios.request(axiosRequestArgs);
|
|
1871
1871
|
};
|
|
@@ -1879,7 +1879,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1879
1879
|
*/
|
|
1880
1880
|
async signupWithGmail(body, options) {
|
|
1881
1881
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signupWithGmail(body, options);
|
|
1882
|
-
return (axios =
|
|
1882
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1883
1883
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1884
1884
|
return axios.request(axiosRequestArgs);
|
|
1885
1885
|
};
|
|
@@ -1893,7 +1893,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1893
1893
|
*/
|
|
1894
1894
|
async verifyUserEmail(body, options) {
|
|
1895
1895
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).verifyUserEmail(body, options);
|
|
1896
|
-
return (axios =
|
|
1896
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1897
1897
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1898
1898
|
return axios.request(axiosRequestArgs);
|
|
1899
1899
|
};
|
|
@@ -2814,7 +2814,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2814
2814
|
*/
|
|
2815
2815
|
async adminCreateAddressForUser(body, userId, options) {
|
|
2816
2816
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminCreateAddressForUser(body, userId, options);
|
|
2817
|
-
return (axios =
|
|
2817
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2818
2818
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2819
2819
|
return axios.request(axiosRequestArgs);
|
|
2820
2820
|
};
|
|
@@ -2828,7 +2828,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2828
2828
|
*/
|
|
2829
2829
|
async adminDeleteUserAddress(addressId, options) {
|
|
2830
2830
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminDeleteUserAddress(addressId, options);
|
|
2831
|
-
return (axios =
|
|
2831
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2832
2832
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2833
2833
|
return axios.request(axiosRequestArgs);
|
|
2834
2834
|
};
|
|
@@ -2842,7 +2842,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2842
2842
|
*/
|
|
2843
2843
|
async adminGetSingleUserAddresses(userId, options) {
|
|
2844
2844
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminGetSingleUserAddresses(userId, options);
|
|
2845
|
-
return (axios =
|
|
2845
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2846
2846
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2847
2847
|
return axios.request(axiosRequestArgs);
|
|
2848
2848
|
};
|
|
@@ -2857,7 +2857,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2857
2857
|
*/
|
|
2858
2858
|
async adminUpdateUserAddress(body, addressId, options) {
|
|
2859
2859
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminUpdateUserAddress(body, addressId, options);
|
|
2860
|
-
return (axios =
|
|
2860
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2861
2861
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2862
2862
|
return axios.request(axiosRequestArgs);
|
|
2863
2863
|
};
|
|
@@ -2871,7 +2871,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2871
2871
|
*/
|
|
2872
2872
|
async createAddressForStore(body, options) {
|
|
2873
2873
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).createAddressForStore(body, options);
|
|
2874
|
-
return (axios =
|
|
2874
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2875
2875
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2876
2876
|
return axios.request(axiosRequestArgs);
|
|
2877
2877
|
};
|
|
@@ -2885,7 +2885,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2885
2885
|
*/
|
|
2886
2886
|
async createAddressForUser(body, options) {
|
|
2887
2887
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).createAddressForUser(body, options);
|
|
2888
|
-
return (axios =
|
|
2888
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2889
2889
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2890
2890
|
return axios.request(axiosRequestArgs);
|
|
2891
2891
|
};
|
|
@@ -2899,7 +2899,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2899
2899
|
*/
|
|
2900
2900
|
async deleteUserAddress(addressId, options) {
|
|
2901
2901
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).deleteUserAddress(addressId, options);
|
|
2902
|
-
return (axios =
|
|
2902
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2903
2903
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2904
2904
|
return axios.request(axiosRequestArgs);
|
|
2905
2905
|
};
|
|
@@ -2913,7 +2913,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2913
2913
|
*/
|
|
2914
2914
|
async getAllStoreAddresses(storeId, options) {
|
|
2915
2915
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getAllStoreAddresses(storeId, options);
|
|
2916
|
-
return (axios =
|
|
2916
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2917
2917
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2918
2918
|
return axios.request(axiosRequestArgs);
|
|
2919
2919
|
};
|
|
@@ -2926,7 +2926,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2926
2926
|
*/
|
|
2927
2927
|
async getAllUserAddresses(options) {
|
|
2928
2928
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getAllUserAddresses(options);
|
|
2929
|
-
return (axios =
|
|
2929
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2930
2930
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2931
2931
|
return axios.request(axiosRequestArgs);
|
|
2932
2932
|
};
|
|
@@ -2939,7 +2939,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2939
2939
|
*/
|
|
2940
2940
|
async getMyAddresses(options) {
|
|
2941
2941
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getMyAddresses(options);
|
|
2942
|
-
return (axios =
|
|
2942
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2943
2943
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2944
2944
|
return axios.request(axiosRequestArgs);
|
|
2945
2945
|
};
|
|
@@ -2952,7 +2952,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2952
2952
|
*/
|
|
2953
2953
|
async getMyDefaultAddress(options) {
|
|
2954
2954
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getMyDefaultAddress(options);
|
|
2955
|
-
return (axios =
|
|
2955
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2956
2956
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2957
2957
|
return axios.request(axiosRequestArgs);
|
|
2958
2958
|
};
|
|
@@ -2966,7 +2966,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2966
2966
|
*/
|
|
2967
2967
|
async getSingleAddress(addressId, options) {
|
|
2968
2968
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getSingleAddress(addressId, options);
|
|
2969
|
-
return (axios =
|
|
2969
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2970
2970
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2971
2971
|
return axios.request(axiosRequestArgs);
|
|
2972
2972
|
};
|
|
@@ -2981,7 +2981,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2981
2981
|
*/
|
|
2982
2982
|
async setDefaultShippingAddress(userId, addressId, options) {
|
|
2983
2983
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).setDefaultShippingAddress(userId, addressId, options);
|
|
2984
|
-
return (axios =
|
|
2984
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2985
2985
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2986
2986
|
return axios.request(axiosRequestArgs);
|
|
2987
2987
|
};
|
|
@@ -2995,7 +2995,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2995
2995
|
*/
|
|
2996
2996
|
async updateDefaultAddress(addressId, options) {
|
|
2997
2997
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).updateDefaultAddress(addressId, options);
|
|
2998
|
-
return (axios =
|
|
2998
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2999
2999
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3000
3000
|
return axios.request(axiosRequestArgs);
|
|
3001
3001
|
};
|
|
@@ -3010,7 +3010,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
3010
3010
|
*/
|
|
3011
3011
|
async updateUserAddress(body, addressId, options) {
|
|
3012
3012
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).updateUserAddress(body, addressId, options);
|
|
3013
|
-
return (axios =
|
|
3013
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3014
3014
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3015
3015
|
return axios.request(axiosRequestArgs);
|
|
3016
3016
|
};
|
|
@@ -3392,7 +3392,7 @@ var CartApiFp = function(configuration) {
|
|
|
3392
3392
|
*/
|
|
3393
3393
|
async clearCart(options) {
|
|
3394
3394
|
const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).clearCart(options);
|
|
3395
|
-
return (axios =
|
|
3395
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3396
3396
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3397
3397
|
return axios.request(axiosRequestArgs);
|
|
3398
3398
|
};
|
|
@@ -3406,7 +3406,7 @@ var CartApiFp = function(configuration) {
|
|
|
3406
3406
|
*/
|
|
3407
3407
|
async getUserCart(rateId, options) {
|
|
3408
3408
|
const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).getUserCart(rateId, options);
|
|
3409
|
-
return (axios =
|
|
3409
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3410
3410
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3411
3411
|
return axios.request(axiosRequestArgs);
|
|
3412
3412
|
};
|
|
@@ -3420,7 +3420,7 @@ var CartApiFp = function(configuration) {
|
|
|
3420
3420
|
*/
|
|
3421
3421
|
async handleUserCart(body, options) {
|
|
3422
3422
|
const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).handleUserCart(body, options);
|
|
3423
|
-
return (axios =
|
|
3423
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3424
3424
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3425
3425
|
return axios.request(axiosRequestArgs);
|
|
3426
3426
|
};
|
|
@@ -3438,7 +3438,7 @@ var CartApiFp = function(configuration) {
|
|
|
3438
3438
|
*/
|
|
3439
3439
|
async handleVisitorCart(body, isDelivery, userId, rateId, addressId, options) {
|
|
3440
3440
|
const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).handleVisitorCart(body, isDelivery, userId, rateId, addressId, options);
|
|
3441
|
-
return (axios =
|
|
3441
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3442
3442
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3443
3443
|
return axios.request(axiosRequestArgs);
|
|
3444
3444
|
};
|
|
@@ -3870,7 +3870,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3870
3870
|
*/
|
|
3871
3871
|
async createCategory(body, options) {
|
|
3872
3872
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).createCategory(body, options);
|
|
3873
|
-
return (axios =
|
|
3873
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3874
3874
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3875
3875
|
return axios.request(axiosRequestArgs);
|
|
3876
3876
|
};
|
|
@@ -3884,7 +3884,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3884
3884
|
*/
|
|
3885
3885
|
async deleteCategory(id, options) {
|
|
3886
3886
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).deleteCategory(id, options);
|
|
3887
|
-
return (axios =
|
|
3887
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3888
3888
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3889
3889
|
return axios.request(axiosRequestArgs);
|
|
3890
3890
|
};
|
|
@@ -3900,7 +3900,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3900
3900
|
*/
|
|
3901
3901
|
async getAllCategories(search, limit, page, options) {
|
|
3902
3902
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getAllCategories(search, limit, page, options);
|
|
3903
|
-
return (axios =
|
|
3903
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3904
3904
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3905
3905
|
return axios.request(axiosRequestArgs);
|
|
3906
3906
|
};
|
|
@@ -3913,7 +3913,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3913
3913
|
*/
|
|
3914
3914
|
async getCategoreisAndSubCategories(options) {
|
|
3915
3915
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getCategoreisAndSubCategories(options);
|
|
3916
|
-
return (axios =
|
|
3916
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3917
3917
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3918
3918
|
return axios.request(axiosRequestArgs);
|
|
3919
3919
|
};
|
|
@@ -3927,7 +3927,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3927
3927
|
*/
|
|
3928
3928
|
async getCategoryFilters(id, options) {
|
|
3929
3929
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getCategoryFilters(id, options);
|
|
3930
|
-
return (axios =
|
|
3930
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3931
3931
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3932
3932
|
return axios.request(axiosRequestArgs);
|
|
3933
3933
|
};
|
|
@@ -3941,7 +3941,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3941
3941
|
*/
|
|
3942
3942
|
async getSingleCategory(id, options) {
|
|
3943
3943
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getSingleCategory(id, options);
|
|
3944
|
-
return (axios =
|
|
3944
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3945
3945
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3946
3946
|
return axios.request(axiosRequestArgs);
|
|
3947
3947
|
};
|
|
@@ -3955,7 +3955,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3955
3955
|
*/
|
|
3956
3956
|
async reorderCategories(body, options) {
|
|
3957
3957
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).reorderCategories(body, options);
|
|
3958
|
-
return (axios =
|
|
3958
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3959
3959
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3960
3960
|
return axios.request(axiosRequestArgs);
|
|
3961
3961
|
};
|
|
@@ -3970,7 +3970,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3970
3970
|
*/
|
|
3971
3971
|
async updateCategory(body, id, options) {
|
|
3972
3972
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).updateCategory(body, id, options);
|
|
3973
|
-
return (axios =
|
|
3973
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3974
3974
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3975
3975
|
return axios.request(axiosRequestArgs);
|
|
3976
3976
|
};
|
|
@@ -4395,7 +4395,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4395
4395
|
*/
|
|
4396
4396
|
async createDiscount(body, options) {
|
|
4397
4397
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).createDiscount(body, options);
|
|
4398
|
-
return (axios =
|
|
4398
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4399
4399
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4400
4400
|
return axios.request(axiosRequestArgs);
|
|
4401
4401
|
};
|
|
@@ -4409,7 +4409,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4409
4409
|
*/
|
|
4410
4410
|
async deleteDiscount(id, options) {
|
|
4411
4411
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).deleteDiscount(id, options);
|
|
4412
|
-
return (axios =
|
|
4412
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4413
4413
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4414
4414
|
return axios.request(axiosRequestArgs);
|
|
4415
4415
|
};
|
|
@@ -4422,7 +4422,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4422
4422
|
*/
|
|
4423
4423
|
async getAllDiscounts(options) {
|
|
4424
4424
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).getAllDiscounts(options);
|
|
4425
|
-
return (axios =
|
|
4425
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4426
4426
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4427
4427
|
return axios.request(axiosRequestArgs);
|
|
4428
4428
|
};
|
|
@@ -4435,7 +4435,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4435
4435
|
*/
|
|
4436
4436
|
async getDiscountsInsights(options) {
|
|
4437
4437
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).getDiscountsInsights(options);
|
|
4438
|
-
return (axios =
|
|
4438
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4439
4439
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4440
4440
|
return axios.request(axiosRequestArgs);
|
|
4441
4441
|
};
|
|
@@ -4449,7 +4449,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4449
4449
|
*/
|
|
4450
4450
|
async getSingleDiscount(id, options) {
|
|
4451
4451
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).getSingleDiscount(id, options);
|
|
4452
|
-
return (axios =
|
|
4452
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4453
4453
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4454
4454
|
return axios.request(axiosRequestArgs);
|
|
4455
4455
|
};
|
|
@@ -4464,7 +4464,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4464
4464
|
*/
|
|
4465
4465
|
async updateDiscount(body, id, options) {
|
|
4466
4466
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).updateDiscount(body, id, options);
|
|
4467
|
-
return (axios =
|
|
4467
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4468
4468
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4469
4469
|
return axios.request(axiosRequestArgs);
|
|
4470
4470
|
};
|
|
@@ -4480,7 +4480,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4480
4480
|
*/
|
|
4481
4481
|
async validateCoupon(code, userId, discountId, options) {
|
|
4482
4482
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).validateCoupon(code, userId, discountId, options);
|
|
4483
|
-
return (axios =
|
|
4483
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4484
4484
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4485
4485
|
return axios.request(axiosRequestArgs);
|
|
4486
4486
|
};
|
|
@@ -4938,7 +4938,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
4938
4938
|
*/
|
|
4939
4939
|
async bulkToggleChannel(body, options) {
|
|
4940
4940
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).bulkToggleChannel(body, options);
|
|
4941
|
-
return (axios =
|
|
4941
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4942
4942
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4943
4943
|
return axios.request(axiosRequestArgs);
|
|
4944
4944
|
};
|
|
@@ -4952,7 +4952,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
4952
4952
|
*/
|
|
4953
4953
|
async deleteNotification(id, options) {
|
|
4954
4954
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).deleteNotification(id, options);
|
|
4955
|
-
return (axios =
|
|
4955
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4956
4956
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4957
4957
|
return axios.request(axiosRequestArgs);
|
|
4958
4958
|
};
|
|
@@ -4968,7 +4968,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
4968
4968
|
*/
|
|
4969
4969
|
async getNotifications(page, limit, unreadOnly, options) {
|
|
4970
4970
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).getNotifications(page, limit, unreadOnly, options);
|
|
4971
|
-
return (axios =
|
|
4971
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4972
4972
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4973
4973
|
return axios.request(axiosRequestArgs);
|
|
4974
4974
|
};
|
|
@@ -4981,7 +4981,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
4981
4981
|
*/
|
|
4982
4982
|
async getSettings(options) {
|
|
4983
4983
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).getSettings(options);
|
|
4984
|
-
return (axios =
|
|
4984
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4985
4985
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4986
4986
|
return axios.request(axiosRequestArgs);
|
|
4987
4987
|
};
|
|
@@ -4994,7 +4994,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
4994
4994
|
*/
|
|
4995
4995
|
async getUnreadCount(options) {
|
|
4996
4996
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).getUnreadCount(options);
|
|
4997
|
-
return (axios =
|
|
4997
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4998
4998
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4999
4999
|
return axios.request(axiosRequestArgs);
|
|
5000
5000
|
};
|
|
@@ -5007,7 +5007,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
5007
5007
|
*/
|
|
5008
5008
|
async markAllAsRead(options) {
|
|
5009
5009
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).markAllAsRead(options);
|
|
5010
|
-
return (axios =
|
|
5010
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5011
5011
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5012
5012
|
return axios.request(axiosRequestArgs);
|
|
5013
5013
|
};
|
|
@@ -5021,7 +5021,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
5021
5021
|
*/
|
|
5022
5022
|
async markAsRead(id, options) {
|
|
5023
5023
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).markAsRead(id, options);
|
|
5024
|
-
return (axios =
|
|
5024
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5025
5025
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5026
5026
|
return axios.request(axiosRequestArgs);
|
|
5027
5027
|
};
|
|
@@ -5035,7 +5035,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
5035
5035
|
*/
|
|
5036
5036
|
async stream(token, options) {
|
|
5037
5037
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).stream(token, options);
|
|
5038
|
-
return (axios =
|
|
5038
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5039
5039
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5040
5040
|
return axios.request(axiosRequestArgs);
|
|
5041
5041
|
};
|
|
@@ -5049,7 +5049,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
5049
5049
|
*/
|
|
5050
5050
|
async updateSettings(body, options) {
|
|
5051
5051
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).updateSettings(body, options);
|
|
5052
|
-
return (axios =
|
|
5052
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5053
5053
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5054
5054
|
return axios.request(axiosRequestArgs);
|
|
5055
5055
|
};
|
|
@@ -5786,7 +5786,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5786
5786
|
*/
|
|
5787
5787
|
async assignPaymentMethod(orderId, paymentMethod, billingAddressId, options) {
|
|
5788
5788
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).assignPaymentMethod(orderId, paymentMethod, billingAddressId, options);
|
|
5789
|
-
return (axios =
|
|
5789
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5790
5790
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5791
5791
|
return axios.request(axiosRequestArgs);
|
|
5792
5792
|
};
|
|
@@ -5800,7 +5800,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5800
5800
|
*/
|
|
5801
5801
|
async cancelOrder(id, options) {
|
|
5802
5802
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).cancelOrder(id, options);
|
|
5803
|
-
return (axios =
|
|
5803
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5804
5804
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5805
5805
|
return axios.request(axiosRequestArgs);
|
|
5806
5806
|
};
|
|
@@ -5818,7 +5818,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5818
5818
|
*/
|
|
5819
5819
|
async createCheckout(body, isDelivery, userId, rateId, billingAddressId, options) {
|
|
5820
5820
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).createCheckout(body, isDelivery, userId, rateId, billingAddressId, options);
|
|
5821
|
-
return (axios =
|
|
5821
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5822
5822
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5823
5823
|
return axios.request(axiosRequestArgs);
|
|
5824
5824
|
};
|
|
@@ -5832,7 +5832,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5832
5832
|
*/
|
|
5833
5833
|
async deleteOrder(id, options) {
|
|
5834
5834
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).deleteOrder(id, options);
|
|
5835
|
-
return (axios =
|
|
5835
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5836
5836
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5837
5837
|
return axios.request(axiosRequestArgs);
|
|
5838
5838
|
};
|
|
@@ -5853,7 +5853,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5853
5853
|
*/
|
|
5854
5854
|
async getAllOrders(paymentStatus, orderStatus, page, limit, search, createdAfter, createdBefore, userId, options) {
|
|
5855
5855
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getAllOrders(paymentStatus, orderStatus, page, limit, search, createdAfter, createdBefore, userId, options);
|
|
5856
|
-
return (axios =
|
|
5856
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5857
5857
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5858
5858
|
return axios.request(axiosRequestArgs);
|
|
5859
5859
|
};
|
|
@@ -5867,7 +5867,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5867
5867
|
*/
|
|
5868
5868
|
async getSingleOrder(id, options) {
|
|
5869
5869
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getSingleOrder(id, options);
|
|
5870
|
-
return (axios =
|
|
5870
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5871
5871
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5872
5872
|
return axios.request(axiosRequestArgs);
|
|
5873
5873
|
};
|
|
@@ -5880,7 +5880,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5880
5880
|
*/
|
|
5881
5881
|
async getStoreOrderInsights(options) {
|
|
5882
5882
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getStoreOrderInsights(options);
|
|
5883
|
-
return (axios =
|
|
5883
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5884
5884
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5885
5885
|
return axios.request(axiosRequestArgs);
|
|
5886
5886
|
};
|
|
@@ -5893,7 +5893,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5893
5893
|
*/
|
|
5894
5894
|
async getUserOrders(options) {
|
|
5895
5895
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getUserOrders(options);
|
|
5896
|
-
return (axios =
|
|
5896
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5897
5897
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5898
5898
|
return axios.request(axiosRequestArgs);
|
|
5899
5899
|
};
|
|
@@ -5907,7 +5907,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5907
5907
|
*/
|
|
5908
5908
|
async payOrder(orderId, options) {
|
|
5909
5909
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).payOrder(orderId, options);
|
|
5910
|
-
return (axios =
|
|
5910
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5911
5911
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5912
5912
|
return axios.request(axiosRequestArgs);
|
|
5913
5913
|
};
|
|
@@ -5921,7 +5921,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5921
5921
|
*/
|
|
5922
5922
|
async sendOrderEmail(body, options) {
|
|
5923
5923
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).sendOrderEmail(body, options);
|
|
5924
|
-
return (axios =
|
|
5924
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5925
5925
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5926
5926
|
return axios.request(axiosRequestArgs);
|
|
5927
5927
|
};
|
|
@@ -5942,7 +5942,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5942
5942
|
*/
|
|
5943
5943
|
async updateOrder(body, isDelivery, id, paymentMethod, userId, rateId, addressId, billingAddressId, options) {
|
|
5944
5944
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).updateOrder(body, isDelivery, id, paymentMethod, userId, rateId, addressId, billingAddressId, options);
|
|
5945
|
-
return (axios =
|
|
5945
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5946
5946
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5947
5947
|
return axios.request(axiosRequestArgs);
|
|
5948
5948
|
};
|
|
@@ -5957,7 +5957,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5957
5957
|
*/
|
|
5958
5958
|
async updateOrderStatus(id, orderStatus, options) {
|
|
5959
5959
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).updateOrderStatus(id, orderStatus, options);
|
|
5960
|
-
return (axios =
|
|
5960
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5961
5961
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5962
5962
|
return axios.request(axiosRequestArgs);
|
|
5963
5963
|
};
|
|
@@ -7117,7 +7117,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7117
7117
|
*/
|
|
7118
7118
|
async addVariant(body, productId, options) {
|
|
7119
7119
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).addVariant(body, productId, options);
|
|
7120
|
-
return (axios =
|
|
7120
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7121
7121
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7122
7122
|
return axios.request(axiosRequestArgs);
|
|
7123
7123
|
};
|
|
@@ -7131,7 +7131,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7131
7131
|
*/
|
|
7132
7132
|
async createProduct(body, options) {
|
|
7133
7133
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).createProduct(body, options);
|
|
7134
|
-
return (axios =
|
|
7134
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7135
7135
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7136
7136
|
return axios.request(axiosRequestArgs);
|
|
7137
7137
|
};
|
|
@@ -7145,7 +7145,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7145
7145
|
*/
|
|
7146
7146
|
async createProductLegacy(body, options) {
|
|
7147
7147
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).createProductLegacy(body, options);
|
|
7148
|
-
return (axios =
|
|
7148
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7149
7149
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7150
7150
|
return axios.request(axiosRequestArgs);
|
|
7151
7151
|
};
|
|
@@ -7159,7 +7159,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7159
7159
|
*/
|
|
7160
7160
|
async deleteProduct(id, options) {
|
|
7161
7161
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).deleteProduct(id, options);
|
|
7162
|
-
return (axios =
|
|
7162
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7163
7163
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7164
7164
|
return axios.request(axiosRequestArgs);
|
|
7165
7165
|
};
|
|
@@ -7174,7 +7174,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7174
7174
|
*/
|
|
7175
7175
|
async deleteVariant(productId, variantId, options) {
|
|
7176
7176
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).deleteVariant(productId, variantId, options);
|
|
7177
|
-
return (axios =
|
|
7177
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7178
7178
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7179
7179
|
return axios.request(axiosRequestArgs);
|
|
7180
7180
|
};
|
|
@@ -7188,7 +7188,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7188
7188
|
*/
|
|
7189
7189
|
async getAllCategoryProducts(categoryId, options) {
|
|
7190
7190
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllCategoryProducts(categoryId, options);
|
|
7191
|
-
return (axios =
|
|
7191
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7192
7192
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7193
7193
|
return axios.request(axiosRequestArgs);
|
|
7194
7194
|
};
|
|
@@ -7201,7 +7201,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7201
7201
|
*/
|
|
7202
7202
|
async getAllFilters(options) {
|
|
7203
7203
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllFilters(options);
|
|
7204
|
-
return (axios =
|
|
7204
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7205
7205
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7206
7206
|
return axios.request(axiosRequestArgs);
|
|
7207
7207
|
};
|
|
@@ -7225,7 +7225,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7225
7225
|
*/
|
|
7226
7226
|
async getAllProducts(searchTerm, maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options) {
|
|
7227
7227
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProducts(searchTerm, maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options);
|
|
7228
|
-
return (axios =
|
|
7228
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7229
7229
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7230
7230
|
return axios.request(axiosRequestArgs);
|
|
7231
7231
|
};
|
|
@@ -7239,7 +7239,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7239
7239
|
*/
|
|
7240
7240
|
async getAllProductsBySubCategory(subCategoryId, options) {
|
|
7241
7241
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProductsBySubCategory(subCategoryId, options);
|
|
7242
|
-
return (axios =
|
|
7242
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7243
7243
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7244
7244
|
return axios.request(axiosRequestArgs);
|
|
7245
7245
|
};
|
|
@@ -7252,7 +7252,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7252
7252
|
*/
|
|
7253
7253
|
async getAllProductsLight(options) {
|
|
7254
7254
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProductsLight(options);
|
|
7255
|
-
return (axios =
|
|
7255
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7256
7256
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7257
7257
|
return axios.request(axiosRequestArgs);
|
|
7258
7258
|
};
|
|
@@ -7265,7 +7265,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7265
7265
|
*/
|
|
7266
7266
|
async getFeaturedProduct(options) {
|
|
7267
7267
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getFeaturedProduct(options);
|
|
7268
|
-
return (axios =
|
|
7268
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7269
7269
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7270
7270
|
return axios.request(axiosRequestArgs);
|
|
7271
7271
|
};
|
|
@@ -7278,7 +7278,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7278
7278
|
*/
|
|
7279
7279
|
async getProductsInsights(options) {
|
|
7280
7280
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getProductsInsights(options);
|
|
7281
|
-
return (axios =
|
|
7281
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7282
7282
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7283
7283
|
return axios.request(axiosRequestArgs);
|
|
7284
7284
|
};
|
|
@@ -7293,7 +7293,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7293
7293
|
*/
|
|
7294
7294
|
async getRelatedProducts(id, limit, options) {
|
|
7295
7295
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getRelatedProducts(id, limit, options);
|
|
7296
|
-
return (axios =
|
|
7296
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7297
7297
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7298
7298
|
return axios.request(axiosRequestArgs);
|
|
7299
7299
|
};
|
|
@@ -7307,7 +7307,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7307
7307
|
*/
|
|
7308
7308
|
async getRelatedProductsLegacy(productId, options) {
|
|
7309
7309
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getRelatedProductsLegacy(productId, options);
|
|
7310
|
-
return (axios =
|
|
7310
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7311
7311
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7312
7312
|
return axios.request(axiosRequestArgs);
|
|
7313
7313
|
};
|
|
@@ -7321,7 +7321,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7321
7321
|
*/
|
|
7322
7322
|
async getSingleProduct(id, options) {
|
|
7323
7323
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getSingleProduct(id, options);
|
|
7324
|
-
return (axios =
|
|
7324
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7325
7325
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7326
7326
|
return axios.request(axiosRequestArgs);
|
|
7327
7327
|
};
|
|
@@ -7335,7 +7335,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7335
7335
|
*/
|
|
7336
7336
|
async getSingleProductLegacy(id, options) {
|
|
7337
7337
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getSingleProductLegacy(id, options);
|
|
7338
|
-
return (axios =
|
|
7338
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7339
7339
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7340
7340
|
return axios.request(axiosRequestArgs);
|
|
7341
7341
|
};
|
|
@@ -7350,7 +7350,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7350
7350
|
*/
|
|
7351
7351
|
async getTopSellingProducts(limit, page, options) {
|
|
7352
7352
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getTopSellingProducts(limit, page, options);
|
|
7353
|
-
return (axios =
|
|
7353
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7354
7354
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7355
7355
|
return axios.request(axiosRequestArgs);
|
|
7356
7356
|
};
|
|
@@ -7364,7 +7364,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7364
7364
|
*/
|
|
7365
7365
|
async reorderProducts(body, options) {
|
|
7366
7366
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).reorderProducts(body, options);
|
|
7367
|
-
return (axios =
|
|
7367
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7368
7368
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7369
7369
|
return axios.request(axiosRequestArgs);
|
|
7370
7370
|
};
|
|
@@ -7380,7 +7380,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7380
7380
|
*/
|
|
7381
7381
|
async updateInventory(body, productId, variantId, options) {
|
|
7382
7382
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateInventory(body, productId, variantId, options);
|
|
7383
|
-
return (axios =
|
|
7383
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7384
7384
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7385
7385
|
return axios.request(axiosRequestArgs);
|
|
7386
7386
|
};
|
|
@@ -7395,7 +7395,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7395
7395
|
*/
|
|
7396
7396
|
async updateProduct(body, id, options) {
|
|
7397
7397
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateProduct(body, id, options);
|
|
7398
|
-
return (axios =
|
|
7398
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7399
7399
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7400
7400
|
return axios.request(axiosRequestArgs);
|
|
7401
7401
|
};
|
|
@@ -7411,7 +7411,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7411
7411
|
*/
|
|
7412
7412
|
async updateVariant(body, productId, variantId, options) {
|
|
7413
7413
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateVariant(body, productId, variantId, options);
|
|
7414
|
-
return (axios =
|
|
7414
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7415
7415
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7416
7416
|
return axios.request(axiosRequestArgs);
|
|
7417
7417
|
};
|
|
@@ -8437,7 +8437,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8437
8437
|
*/
|
|
8438
8438
|
async addReplay(body, id, options) {
|
|
8439
8439
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).addReplay(body, id, options);
|
|
8440
|
-
return (axios =
|
|
8440
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8441
8441
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8442
8442
|
return axios.request(axiosRequestArgs);
|
|
8443
8443
|
};
|
|
@@ -8452,7 +8452,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8452
8452
|
*/
|
|
8453
8453
|
async checkReviewStatus(orderId, productVariantId, options) {
|
|
8454
8454
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).checkReviewStatus(orderId, productVariantId, options);
|
|
8455
|
-
return (axios =
|
|
8455
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8456
8456
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8457
8457
|
return axios.request(axiosRequestArgs);
|
|
8458
8458
|
};
|
|
@@ -8467,7 +8467,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8467
8467
|
*/
|
|
8468
8468
|
async createReview(body, orderId, options) {
|
|
8469
8469
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).createReview(body, orderId, options);
|
|
8470
|
-
return (axios =
|
|
8470
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8471
8471
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8472
8472
|
return axios.request(axiosRequestArgs);
|
|
8473
8473
|
};
|
|
@@ -8480,7 +8480,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8480
8480
|
*/
|
|
8481
8481
|
async getReviewCount(options) {
|
|
8482
8482
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewCount(options);
|
|
8483
|
-
return (axios =
|
|
8483
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8484
8484
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8485
8485
|
return axios.request(axiosRequestArgs);
|
|
8486
8486
|
};
|
|
@@ -8494,7 +8494,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8494
8494
|
*/
|
|
8495
8495
|
async getReviewableProducts(orderId, options) {
|
|
8496
8496
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewableProducts(orderId, options);
|
|
8497
|
-
return (axios =
|
|
8497
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8498
8498
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8499
8499
|
return axios.request(axiosRequestArgs);
|
|
8500
8500
|
};
|
|
@@ -8508,7 +8508,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8508
8508
|
*/
|
|
8509
8509
|
async getReviewsByDate(date, options) {
|
|
8510
8510
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByDate(date, options);
|
|
8511
|
-
return (axios =
|
|
8511
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8512
8512
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8513
8513
|
return axios.request(axiosRequestArgs);
|
|
8514
8514
|
};
|
|
@@ -8523,7 +8523,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8523
8523
|
*/
|
|
8524
8524
|
async getReviewsByDateRange(from, to, options) {
|
|
8525
8525
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByDateRange(from, to, options);
|
|
8526
|
-
return (axios =
|
|
8526
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8527
8527
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8528
8528
|
return axios.request(axiosRequestArgs);
|
|
8529
8529
|
};
|
|
@@ -8537,7 +8537,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8537
8537
|
*/
|
|
8538
8538
|
async getReviewsByProduct(productId, options) {
|
|
8539
8539
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByProduct(productId, options);
|
|
8540
|
-
return (axios =
|
|
8540
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8541
8541
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8542
8542
|
return axios.request(axiosRequestArgs);
|
|
8543
8543
|
};
|
|
@@ -8551,7 +8551,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8551
8551
|
*/
|
|
8552
8552
|
async getReviewsByRating(rating, options) {
|
|
8553
8553
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByRating(rating, options);
|
|
8554
|
-
return (axios =
|
|
8554
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8555
8555
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8556
8556
|
return axios.request(axiosRequestArgs);
|
|
8557
8557
|
};
|
|
@@ -8564,7 +8564,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8564
8564
|
*/
|
|
8565
8565
|
async getReviewsByStore(options) {
|
|
8566
8566
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByStore(options);
|
|
8567
|
-
return (axios =
|
|
8567
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8568
8568
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8569
8569
|
return axios.request(axiosRequestArgs);
|
|
8570
8570
|
};
|
|
@@ -8578,7 +8578,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8578
8578
|
*/
|
|
8579
8579
|
async getReviewsByType(type, options) {
|
|
8580
8580
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByType(type, options);
|
|
8581
|
-
return (axios =
|
|
8581
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8582
8582
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8583
8583
|
return axios.request(axiosRequestArgs);
|
|
8584
8584
|
};
|
|
@@ -8592,7 +8592,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8592
8592
|
*/
|
|
8593
8593
|
async getReviewsByUser(userId, options) {
|
|
8594
8594
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByUser(userId, options);
|
|
8595
|
-
return (axios =
|
|
8595
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8596
8596
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8597
8597
|
return axios.request(axiosRequestArgs);
|
|
8598
8598
|
};
|
|
@@ -8605,7 +8605,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8605
8605
|
*/
|
|
8606
8606
|
async getUserCompletedOrders(options) {
|
|
8607
8607
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getUserCompletedOrders(options);
|
|
8608
|
-
return (axios =
|
|
8608
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8609
8609
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8610
8610
|
return axios.request(axiosRequestArgs);
|
|
8611
8611
|
};
|
|
@@ -8619,7 +8619,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8619
8619
|
*/
|
|
8620
8620
|
async removeReplay(id, options) {
|
|
8621
8621
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).removeReplay(id, options);
|
|
8622
|
-
return (axios =
|
|
8622
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8623
8623
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8624
8624
|
return axios.request(axiosRequestArgs);
|
|
8625
8625
|
};
|
|
@@ -8633,7 +8633,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8633
8633
|
*/
|
|
8634
8634
|
async removeReview(id, options) {
|
|
8635
8635
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).removeReview(id, options);
|
|
8636
|
-
return (axios =
|
|
8636
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8637
8637
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8638
8638
|
return axios.request(axiosRequestArgs);
|
|
8639
8639
|
};
|
|
@@ -8648,7 +8648,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8648
8648
|
*/
|
|
8649
8649
|
async updateReplay(body, id, options) {
|
|
8650
8650
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).updateReplay(body, id, options);
|
|
8651
|
-
return (axios =
|
|
8651
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8652
8652
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8653
8653
|
return axios.request(axiosRequestArgs);
|
|
8654
8654
|
};
|
|
@@ -8663,7 +8663,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8663
8663
|
*/
|
|
8664
8664
|
async updateReview(body, id, options) {
|
|
8665
8665
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).updateReview(body, id, options);
|
|
8666
|
-
return (axios =
|
|
8666
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8667
8667
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8668
8668
|
return axios.request(axiosRequestArgs);
|
|
8669
8669
|
};
|
|
@@ -9136,7 +9136,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9136
9136
|
*/
|
|
9137
9137
|
async getAllShipments(options) {
|
|
9138
9138
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getAllShipments(options);
|
|
9139
|
-
return (axios =
|
|
9139
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
9140
9140
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9141
9141
|
return axios.request(axiosRequestArgs);
|
|
9142
9142
|
};
|
|
@@ -9149,7 +9149,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9149
9149
|
*/
|
|
9150
9150
|
async getAllUserShipments(options) {
|
|
9151
9151
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getAllUserShipments(options);
|
|
9152
|
-
return (axios =
|
|
9152
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
9153
9153
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9154
9154
|
return axios.request(axiosRequestArgs);
|
|
9155
9155
|
};
|
|
@@ -9163,7 +9163,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9163
9163
|
*/
|
|
9164
9164
|
async getOrderShipment(orderId, options) {
|
|
9165
9165
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getOrderShipment(orderId, options);
|
|
9166
|
-
return (axios =
|
|
9166
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
9167
9167
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9168
9168
|
return axios.request(axiosRequestArgs);
|
|
9169
9169
|
};
|
|
@@ -9178,7 +9178,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9178
9178
|
*/
|
|
9179
9179
|
async getShippingRates(body, addressId, options) {
|
|
9180
9180
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getShippingRates(body, addressId, options);
|
|
9181
|
-
return (axios =
|
|
9181
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
9182
9182
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9183
9183
|
return axios.request(axiosRequestArgs);
|
|
9184
9184
|
};
|
|
@@ -9191,7 +9191,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9191
9191
|
*/
|
|
9192
9192
|
async getStoreAddress(options) {
|
|
9193
9193
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getStoreAddress(options);
|
|
9194
|
-
return (axios =
|
|
9194
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
9195
9195
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9196
9196
|
return axios.request(axiosRequestArgs);
|
|
9197
9197
|
};
|
|
@@ -9206,7 +9206,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9206
9206
|
*/
|
|
9207
9207
|
async updateManualShipmentStatus(body, shipmentId, options) {
|
|
9208
9208
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).updateManualShipmentStatus(body, shipmentId, options);
|
|
9209
|
-
return (axios =
|
|
9209
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
9210
9210
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9211
9211
|
return axios.request(axiosRequestArgs);
|
|
9212
9212
|
};
|
|
@@ -10401,7 +10401,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10401
10401
|
*/
|
|
10402
10402
|
async createShippoAccount(body, storeId, options) {
|
|
10403
10403
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).createShippoAccount(body, storeId, options);
|
|
10404
|
-
return (axios =
|
|
10404
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10405
10405
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10406
10406
|
return axios.request(axiosRequestArgs);
|
|
10407
10407
|
};
|
|
@@ -10415,7 +10415,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10415
10415
|
*/
|
|
10416
10416
|
async createStore(body, options) {
|
|
10417
10417
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).createStore(body, options);
|
|
10418
|
-
return (axios =
|
|
10418
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10419
10419
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10420
10420
|
return axios.request(axiosRequestArgs);
|
|
10421
10421
|
};
|
|
@@ -10429,7 +10429,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10429
10429
|
*/
|
|
10430
10430
|
async deleteRefillRequest(requestId, options) {
|
|
10431
10431
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteRefillRequest(requestId, options);
|
|
10432
|
-
return (axios =
|
|
10432
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10433
10433
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10434
10434
|
return axios.request(axiosRequestArgs);
|
|
10435
10435
|
};
|
|
@@ -10443,7 +10443,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10443
10443
|
*/
|
|
10444
10444
|
async deleteStore(id, options) {
|
|
10445
10445
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteStore(id, options);
|
|
10446
|
-
return (axios =
|
|
10446
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10447
10447
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10448
10448
|
return axios.request(axiosRequestArgs);
|
|
10449
10449
|
};
|
|
@@ -10457,7 +10457,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10457
10457
|
*/
|
|
10458
10458
|
async deleteTransferePatientsRequest(requestId, options) {
|
|
10459
10459
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteTransferePatientsRequest(requestId, options);
|
|
10460
|
-
return (axios =
|
|
10460
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10461
10461
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10462
10462
|
return axios.request(axiosRequestArgs);
|
|
10463
10463
|
};
|
|
@@ -10470,7 +10470,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10470
10470
|
*/
|
|
10471
10471
|
async getAllStores(options) {
|
|
10472
10472
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getAllStores(options);
|
|
10473
|
-
return (axios =
|
|
10473
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10474
10474
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10475
10475
|
return axios.request(axiosRequestArgs);
|
|
10476
10476
|
};
|
|
@@ -10484,7 +10484,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10484
10484
|
*/
|
|
10485
10485
|
async getApiKeys(storeId, options) {
|
|
10486
10486
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getApiKeys(storeId, options);
|
|
10487
|
-
return (axios =
|
|
10487
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10488
10488
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10489
10489
|
return axios.request(axiosRequestArgs);
|
|
10490
10490
|
};
|
|
@@ -10498,7 +10498,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10498
10498
|
*/
|
|
10499
10499
|
async getRefillRequests(storeId, options) {
|
|
10500
10500
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getRefillRequests(storeId, options);
|
|
10501
|
-
return (axios =
|
|
10501
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10502
10502
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10503
10503
|
return axios.request(axiosRequestArgs);
|
|
10504
10504
|
};
|
|
@@ -10512,7 +10512,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10512
10512
|
*/
|
|
10513
10513
|
async getShippoAccount(storeId, options) {
|
|
10514
10514
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getShippoAccount(storeId, options);
|
|
10515
|
-
return (axios =
|
|
10515
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10516
10516
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10517
10517
|
return axios.request(axiosRequestArgs);
|
|
10518
10518
|
};
|
|
@@ -10526,7 +10526,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10526
10526
|
*/
|
|
10527
10527
|
async getStoreById(storeId, options) {
|
|
10528
10528
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getStoreById(storeId, options);
|
|
10529
|
-
return (axios =
|
|
10529
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10530
10530
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10531
10531
|
return axios.request(axiosRequestArgs);
|
|
10532
10532
|
};
|
|
@@ -10540,7 +10540,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10540
10540
|
*/
|
|
10541
10541
|
async getStoreCapabilities(storeId, options) {
|
|
10542
10542
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getStoreCapabilities(storeId, options);
|
|
10543
|
-
return (axios =
|
|
10543
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10544
10544
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10545
10545
|
return axios.request(axiosRequestArgs);
|
|
10546
10546
|
};
|
|
@@ -10554,7 +10554,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10554
10554
|
*/
|
|
10555
10555
|
async getTransferePatientsRequests(storeId, options) {
|
|
10556
10556
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getTransferePatientsRequests(storeId, options);
|
|
10557
|
-
return (axios =
|
|
10557
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10558
10558
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10559
10559
|
return axios.request(axiosRequestArgs);
|
|
10560
10560
|
};
|
|
@@ -10569,7 +10569,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10569
10569
|
*/
|
|
10570
10570
|
async revokeApiKey(storeId, keyType, options) {
|
|
10571
10571
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).revokeApiKey(storeId, keyType, options);
|
|
10572
|
-
return (axios =
|
|
10572
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10573
10573
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10574
10574
|
return axios.request(axiosRequestArgs);
|
|
10575
10575
|
};
|
|
@@ -10581,7 +10581,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10581
10581
|
*/
|
|
10582
10582
|
async sendContactUsEmail(options) {
|
|
10583
10583
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendContactUsEmail(options);
|
|
10584
|
-
return (axios =
|
|
10584
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10585
10585
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10586
10586
|
return axios.request(axiosRequestArgs);
|
|
10587
10587
|
};
|
|
@@ -10593,7 +10593,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10593
10593
|
*/
|
|
10594
10594
|
async sendContactUsEmailEzrirx(options) {
|
|
10595
10595
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendContactUsEmailEzrirx(options);
|
|
10596
|
-
return (axios =
|
|
10596
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10597
10597
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10598
10598
|
return axios.request(axiosRequestArgs);
|
|
10599
10599
|
};
|
|
@@ -10605,7 +10605,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10605
10605
|
*/
|
|
10606
10606
|
async sendGMBookDemoEmail(options) {
|
|
10607
10607
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMBookDemoEmail(options);
|
|
10608
|
-
return (axios =
|
|
10608
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10609
10609
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10610
10610
|
return axios.request(axiosRequestArgs);
|
|
10611
10611
|
};
|
|
@@ -10617,7 +10617,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10617
10617
|
*/
|
|
10618
10618
|
async sendGMContactUsEmail(options) {
|
|
10619
10619
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMContactUsEmail(options);
|
|
10620
|
-
return (axios =
|
|
10620
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10621
10621
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10622
10622
|
return axios.request(axiosRequestArgs);
|
|
10623
10623
|
};
|
|
@@ -10629,7 +10629,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10629
10629
|
*/
|
|
10630
10630
|
async sendGMJoinUsEmail(options) {
|
|
10631
10631
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMJoinUsEmail(options);
|
|
10632
|
-
return (axios =
|
|
10632
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10633
10633
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10634
10634
|
return axios.request(axiosRequestArgs);
|
|
10635
10635
|
};
|
|
@@ -10641,7 +10641,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10641
10641
|
*/
|
|
10642
10642
|
async sendHolyFamilyEmail(options) {
|
|
10643
10643
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendHolyFamilyEmail(options);
|
|
10644
|
-
return (axios =
|
|
10644
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10645
10645
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10646
10646
|
return axios.request(axiosRequestArgs);
|
|
10647
10647
|
};
|
|
@@ -10653,7 +10653,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10653
10653
|
*/
|
|
10654
10654
|
async sendMghBookingForm(options) {
|
|
10655
10655
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendMghBookingForm(options);
|
|
10656
|
-
return (axios =
|
|
10656
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10657
10657
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10658
10658
|
return axios.request(axiosRequestArgs);
|
|
10659
10659
|
};
|
|
@@ -10667,7 +10667,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10667
10667
|
*/
|
|
10668
10668
|
async sendNewClientEmail(body, options) {
|
|
10669
10669
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendNewClientEmail(body, options);
|
|
10670
|
-
return (axios =
|
|
10670
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10671
10671
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10672
10672
|
return axios.request(axiosRequestArgs);
|
|
10673
10673
|
};
|
|
@@ -10680,7 +10680,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10680
10680
|
*/
|
|
10681
10681
|
async sendNewPatientEmail(body, options) {
|
|
10682
10682
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendNewPatientEmail(body, options);
|
|
10683
|
-
return (axios =
|
|
10683
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10684
10684
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10685
10685
|
return axios.request(axiosRequestArgs);
|
|
10686
10686
|
};
|
|
@@ -10693,7 +10693,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10693
10693
|
*/
|
|
10694
10694
|
async sendRefillEmail(body, options) {
|
|
10695
10695
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendRefillEmail(body, options);
|
|
10696
|
-
return (axios =
|
|
10696
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10697
10697
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10698
10698
|
return axios.request(axiosRequestArgs);
|
|
10699
10699
|
};
|
|
@@ -10707,7 +10707,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10707
10707
|
*/
|
|
10708
10708
|
async sendScheduleTourEmail(body, options) {
|
|
10709
10709
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendScheduleTourEmail(body, options);
|
|
10710
|
-
return (axios =
|
|
10710
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10711
10711
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10712
10712
|
return axios.request(axiosRequestArgs);
|
|
10713
10713
|
};
|
|
@@ -10722,7 +10722,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10722
10722
|
*/
|
|
10723
10723
|
async updateApiKeys(body, storeId, options) {
|
|
10724
10724
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateApiKeys(body, storeId, options);
|
|
10725
|
-
return (axios =
|
|
10725
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10726
10726
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10727
10727
|
return axios.request(axiosRequestArgs);
|
|
10728
10728
|
};
|
|
@@ -10737,7 +10737,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10737
10737
|
*/
|
|
10738
10738
|
async updateRefillRequest(body, requestId, options) {
|
|
10739
10739
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateRefillRequest(body, requestId, options);
|
|
10740
|
-
return (axios =
|
|
10740
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10741
10741
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10742
10742
|
return axios.request(axiosRequestArgs);
|
|
10743
10743
|
};
|
|
@@ -10752,7 +10752,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10752
10752
|
*/
|
|
10753
10753
|
async updateStore(body, id, options) {
|
|
10754
10754
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateStore(body, id, options);
|
|
10755
|
-
return (axios =
|
|
10755
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10756
10756
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10757
10757
|
return axios.request(axiosRequestArgs);
|
|
10758
10758
|
};
|
|
@@ -10767,7 +10767,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10767
10767
|
*/
|
|
10768
10768
|
async updateTransferePatientsRequest(body, requestId, options) {
|
|
10769
10769
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateTransferePatientsRequest(body, requestId, options);
|
|
10770
|
-
return (axios =
|
|
10770
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10771
10771
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10772
10772
|
return axios.request(axiosRequestArgs);
|
|
10773
10773
|
};
|
|
@@ -11271,7 +11271,7 @@ var WishlistApiFp = function(configuration) {
|
|
|
11271
11271
|
*/
|
|
11272
11272
|
async addToWishlist(productId, options) {
|
|
11273
11273
|
const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).addToWishlist(productId, options);
|
|
11274
|
-
return (axios =
|
|
11274
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
11275
11275
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
11276
11276
|
return axios.request(axiosRequestArgs);
|
|
11277
11277
|
};
|
|
@@ -11284,7 +11284,7 @@ var WishlistApiFp = function(configuration) {
|
|
|
11284
11284
|
*/
|
|
11285
11285
|
async clearWishlist(options) {
|
|
11286
11286
|
const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).clearWishlist(options);
|
|
11287
|
-
return (axios =
|
|
11287
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
11288
11288
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
11289
11289
|
return axios.request(axiosRequestArgs);
|
|
11290
11290
|
};
|
|
@@ -11297,7 +11297,7 @@ var WishlistApiFp = function(configuration) {
|
|
|
11297
11297
|
*/
|
|
11298
11298
|
async getWishlist(options) {
|
|
11299
11299
|
const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).getWishlist(options);
|
|
11300
|
-
return (axios =
|
|
11300
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
11301
11301
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
11302
11302
|
return axios.request(axiosRequestArgs);
|
|
11303
11303
|
};
|
|
@@ -11310,7 +11310,7 @@ var WishlistApiFp = function(configuration) {
|
|
|
11310
11310
|
*/
|
|
11311
11311
|
async getWishlistItemCount(options) {
|
|
11312
11312
|
const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).getWishlistItemCount(options);
|
|
11313
|
-
return (axios =
|
|
11313
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
11314
11314
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
11315
11315
|
return axios.request(axiosRequestArgs);
|
|
11316
11316
|
};
|
|
@@ -11324,7 +11324,7 @@ var WishlistApiFp = function(configuration) {
|
|
|
11324
11324
|
*/
|
|
11325
11325
|
async removeFromWishlist(productId, options) {
|
|
11326
11326
|
const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).removeFromWishlist(productId, options);
|
|
11327
|
-
return (axios =
|
|
11327
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
11328
11328
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
11329
11329
|
return axios.request(axiosRequestArgs);
|
|
11330
11330
|
};
|
|
@@ -11422,45 +11422,6 @@ var BulkChannelToggleDtoCategoryEnum = /* @__PURE__ */ ((BulkChannelToggleDtoCat
|
|
|
11422
11422
|
return BulkChannelToggleDtoCategoryEnum2;
|
|
11423
11423
|
})(BulkChannelToggleDtoCategoryEnum || {});
|
|
11424
11424
|
|
|
11425
|
-
// src/lib/Apis/models/campaign-draft-dto.ts
|
|
11426
|
-
var CampaignDraftDtoStatusEnum = /* @__PURE__ */ ((CampaignDraftDtoStatusEnum2) => {
|
|
11427
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_MINUS_3"] = -3] = "NUMBER_MINUS_3";
|
|
11428
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_MINUS_2"] = -2] = "NUMBER_MINUS_2";
|
|
11429
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_MINUS_1"] = -1] = "NUMBER_MINUS_1";
|
|
11430
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_0"] = 0] = "NUMBER_0";
|
|
11431
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_1"] = 1] = "NUMBER_1";
|
|
11432
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_2"] = 2] = "NUMBER_2";
|
|
11433
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_3"] = 3] = "NUMBER_3";
|
|
11434
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_4"] = 4] = "NUMBER_4";
|
|
11435
|
-
return CampaignDraftDtoStatusEnum2;
|
|
11436
|
-
})(CampaignDraftDtoStatusEnum || {});
|
|
11437
|
-
|
|
11438
|
-
// src/lib/Apis/models/campaign-draft-schedule-dto.ts
|
|
11439
|
-
var CampaignDraftScheduleDtoStatusEnum = /* @__PURE__ */ ((CampaignDraftScheduleDtoStatusEnum2) => {
|
|
11440
|
-
CampaignDraftScheduleDtoStatusEnum2["AXCancelled"] = "AXCancelled";
|
|
11441
|
-
CampaignDraftScheduleDtoStatusEnum2["Deleted"] = "Deleted";
|
|
11442
|
-
CampaignDraftScheduleDtoStatusEnum2["Archived"] = "Archived";
|
|
11443
|
-
CampaignDraftScheduleDtoStatusEnum2["Draft"] = "Draft";
|
|
11444
|
-
CampaignDraftScheduleDtoStatusEnum2["Programmed"] = "Programmed";
|
|
11445
|
-
CampaignDraftScheduleDtoStatusEnum2["Sent"] = "Sent";
|
|
11446
|
-
CampaignDraftScheduleDtoStatusEnum2["AXTested"] = "AXTested";
|
|
11447
|
-
CampaignDraftScheduleDtoStatusEnum2["AXSelected"] = "AXSelected";
|
|
11448
|
-
return CampaignDraftScheduleDtoStatusEnum2;
|
|
11449
|
-
})(CampaignDraftScheduleDtoStatusEnum || {});
|
|
11450
|
-
|
|
11451
|
-
// src/lib/Apis/models/campaign-draft-sending-dto.ts
|
|
11452
|
-
var CampaignDraftSendingDtoStatusEnum = /* @__PURE__ */ ((CampaignDraftSendingDtoStatusEnum2) => {
|
|
11453
|
-
CampaignDraftSendingDtoStatusEnum2["AXCancelled"] = "AXCancelled";
|
|
11454
|
-
CampaignDraftSendingDtoStatusEnum2["Deleted"] = "Deleted";
|
|
11455
|
-
CampaignDraftSendingDtoStatusEnum2["Archived"] = "Archived";
|
|
11456
|
-
CampaignDraftSendingDtoStatusEnum2["Draft"] = "Draft";
|
|
11457
|
-
CampaignDraftSendingDtoStatusEnum2["Programmed"] = "Programmed";
|
|
11458
|
-
CampaignDraftSendingDtoStatusEnum2["Sent"] = "Sent";
|
|
11459
|
-
CampaignDraftSendingDtoStatusEnum2["AXTested"] = "AXTested";
|
|
11460
|
-
CampaignDraftSendingDtoStatusEnum2["AXSelected"] = "AXSelected";
|
|
11461
|
-
return CampaignDraftSendingDtoStatusEnum2;
|
|
11462
|
-
})(CampaignDraftSendingDtoStatusEnum || {});
|
|
11463
|
-
|
|
11464
11425
|
// src/lib/Apis/models/create-address-dto.ts
|
|
11465
11426
|
var CreateAddressDtoAddressTypeEnum = /* @__PURE__ */ ((CreateAddressDtoAddressTypeEnum2) => {
|
|
11466
11427
|
CreateAddressDtoAddressTypeEnum2["Billing"] = "Billing";
|
|
@@ -11665,6 +11626,7 @@ var PreferenceUpdateItemTypeEnum = /* @__PURE__ */ ((PreferenceUpdateItemTypeEnu
|
|
|
11665
11626
|
PreferenceUpdateItemTypeEnum2["ORDERSHIPPED"] = "ORDER_SHIPPED";
|
|
11666
11627
|
PreferenceUpdateItemTypeEnum2["ORDERDELIVERED"] = "ORDER_DELIVERED";
|
|
11667
11628
|
PreferenceUpdateItemTypeEnum2["REFUNDPROCESSED"] = "REFUND_PROCESSED";
|
|
11629
|
+
PreferenceUpdateItemTypeEnum2["REVIEWREPLY"] = "REVIEW_REPLY";
|
|
11668
11630
|
PreferenceUpdateItemTypeEnum2["ABANDONEDCARTREMINDER"] = "ABANDONED_CART_REMINDER";
|
|
11669
11631
|
PreferenceUpdateItemTypeEnum2["PRICEDROPALERT"] = "PRICE_DROP_ALERT";
|
|
11670
11632
|
PreferenceUpdateItemTypeEnum2["BACKINSTOCK"] = "BACK_IN_STOCK";
|
|
@@ -11855,7 +11817,7 @@ function Notification2({ notification, onDismiss }) {
|
|
|
11855
11817
|
animate: { opacity: 1, y: 0, scale: 1 },
|
|
11856
11818
|
exit: { opacity: 0, x: 100, scale: 0.95 },
|
|
11857
11819
|
transition: { type: "spring", stiffness: 500, damping: 30 },
|
|
11858
|
-
className: `relative bg-
|
|
11820
|
+
className: `relative bg-hprimary-50 rounded-2xl border-2 ${config.borderColor} shadow-xl overflow-hidden min-w-[320px] max-w-[420px]`,
|
|
11859
11821
|
children: [
|
|
11860
11822
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `h-1 bg-linear-to-r ${config.gradient}` }),
|
|
11861
11823
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-4 flex items-start gap-3", children: [
|
|
@@ -11870,8 +11832,8 @@ function Notification2({ notification, onDismiss }) {
|
|
|
11870
11832
|
}
|
|
11871
11833
|
),
|
|
11872
11834
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
11873
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-
|
|
11874
|
-
notification.description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "
|
|
11835
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-[14px] text-[#2B4B7C] mb-1", children: notification.message }),
|
|
11836
|
+
notification.description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[12px] text-[#676c80] leading-relaxed", children: notification.description })
|
|
11875
11837
|
] }),
|
|
11876
11838
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11877
11839
|
"button",
|
|
@@ -12146,7 +12108,7 @@ init_config();
|
|
|
12146
12108
|
init_config();
|
|
12147
12109
|
init_sharedConfig();
|
|
12148
12110
|
init_sharedConfig();
|
|
12149
|
-
|
|
12111
|
+
globalAxios20__default.default.interceptors.request.use(async (config) => {
|
|
12150
12112
|
if (!config?.headers) {
|
|
12151
12113
|
throw new Error(
|
|
12152
12114
|
`Expected 'config' and 'config.headers' not to be undefined`
|
|
@@ -12780,8 +12742,8 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12780
12742
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-8", children: [
|
|
12781
12743
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between mb-6", children: [
|
|
12782
12744
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
12783
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "
|
|
12784
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-
|
|
12745
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[11px] text-hprimary uppercase tracking-wide font-medium mb-2", children: product.brand }),
|
|
12746
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-semibold text-hsecondary tracking-[-1px]", children: displayName }),
|
|
12785
12747
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 mt-2", children: [
|
|
12786
12748
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-0.5", children: [...Array(5)].map((_, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
12787
12749
|
lucideReact.Star,
|
|
@@ -12790,7 +12752,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12790
12752
|
},
|
|
12791
12753
|
i
|
|
12792
12754
|
)) }),
|
|
12793
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "
|
|
12755
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-[13px] text-hmuted", children: [
|
|
12794
12756
|
product.summary?.averageRating || 0,
|
|
12795
12757
|
" (",
|
|
12796
12758
|
product.summary?.reviewCount || 0,
|
|
@@ -12818,7 +12780,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12818
12780
|
className: "w-full h-full object-contain"
|
|
12819
12781
|
}
|
|
12820
12782
|
),
|
|
12821
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-4 left-4 flex flex-col gap-2", children: isDiscounted && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-haccent text-white rounded-full px-3 py-1.5", children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-
|
|
12783
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-4 left-4 flex flex-col gap-2", children: isDiscounted && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-haccent text-white rounded-full px-3 py-1.5", children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-bold text-[11px] uppercase", children: [
|
|
12822
12784
|
"-",
|
|
12823
12785
|
discountAmount,
|
|
12824
12786
|
"%"
|
|
@@ -12843,33 +12805,33 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12843
12805
|
] }),
|
|
12844
12806
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col", children: [
|
|
12845
12807
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 mb-4", children: [
|
|
12846
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-
|
|
12808
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-bold text-[32px] text-haccent", children: [
|
|
12847
12809
|
"$",
|
|
12848
12810
|
displayPrice.toFixed(2)
|
|
12849
12811
|
] }),
|
|
12850
|
-
isDiscounted && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "
|
|
12812
|
+
isDiscounted && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-[20px] text-hmuted line-through", children: [
|
|
12851
12813
|
"$",
|
|
12852
12814
|
displayOriginalPrice.toFixed(2)
|
|
12853
12815
|
] })
|
|
12854
12816
|
] }),
|
|
12855
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-6", children: selectedVariant.inventoryCount === 0 ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "
|
|
12817
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-6", children: selectedVariant.inventoryCount === 0 ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[12px] text-red-500 font-medium", children: "Out of Stock" }) : selectedVariant.inventoryCount <= 10 ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-[12px] text-hprimary font-medium flex items-center gap-1", children: [
|
|
12856
12818
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Package, { className: "size-3" }),
|
|
12857
12819
|
"Only ",
|
|
12858
12820
|
selectedVariant.inventoryCount,
|
|
12859
12821
|
" left in stock"
|
|
12860
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "
|
|
12822
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-[12px] text-green-600 font-medium flex items-center gap-1", children: [
|
|
12861
12823
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Package, { className: "size-3" }),
|
|
12862
12824
|
"In Stock"
|
|
12863
12825
|
] }) }),
|
|
12864
12826
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12865
12827
|
"div",
|
|
12866
12828
|
{
|
|
12867
|
-
className: "
|
|
12829
|
+
className: "text-[14px] text-hmuted leading-[1.7] mb-6 max-w-full overflow-hidden break-words",
|
|
12868
12830
|
dangerouslySetInnerHTML: { __html: product.description }
|
|
12869
12831
|
}
|
|
12870
12832
|
),
|
|
12871
12833
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6", children: [
|
|
12872
|
-
/* @__PURE__ */ jsxRuntime.jsxs("h3", { className: "font-
|
|
12834
|
+
/* @__PURE__ */ jsxRuntime.jsxs("h3", { className: "font-semibold text-[13px] text-hsecondary mb-3", children: [
|
|
12873
12835
|
"Selected Variant: ",
|
|
12874
12836
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-normal text-hmuted", children: product.variants[selectedVariantIndex].name })
|
|
12875
12837
|
] }),
|
|
@@ -12900,10 +12862,10 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12900
12862
|
] }),
|
|
12901
12863
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-6 p-4 bg-gray-50 rounded-xl", children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "space-y-2", children: product.tags.slice(0, 3).map((feature, index) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "flex items-start gap-2", children: [
|
|
12902
12864
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "size-4 text-hprimary shrink-0 mt-0.5" }),
|
|
12903
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "
|
|
12865
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[12px] text-hmuted", children: feature })
|
|
12904
12866
|
] }, index)) }) }),
|
|
12905
12867
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6", children: [
|
|
12906
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-
|
|
12868
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-semibold text-[13px] text-hsecondary mb-3", children: "Quantity" }),
|
|
12907
12869
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-4", children: [
|
|
12908
12870
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12909
12871
|
"button",
|
|
@@ -12932,7 +12894,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12932
12894
|
{
|
|
12933
12895
|
onClick: handleAddToCart,
|
|
12934
12896
|
disabled: addedToCart || selectedVariant.inventoryCount === 0,
|
|
12935
|
-
className: `w-full font-
|
|
12897
|
+
className: `w-full font-medium text-[14px] px-6 py-4 rounded-full transition-all duration-300 flex items-center justify-center gap-3 ${addedToCart ? "bg-green-500 text-white" : "bg-haccent text-white hover:bg-[#d66f45] hover:shadow-lg disabled:opacity-50 disabled:cursor-not-allowed"}`,
|
|
12936
12898
|
children: isAddingToCart ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
12937
12899
|
/* @__PURE__ */ jsxRuntime.jsxs("svg", { className: "animate-spin h-5 w-5", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", children: [
|
|
12938
12900
|
/* @__PURE__ */ jsxRuntime.jsx("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
|
|
@@ -12951,7 +12913,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12951
12913
|
onClick: () => {
|
|
12952
12914
|
onClose();
|
|
12953
12915
|
},
|
|
12954
|
-
className: "w-full font-
|
|
12916
|
+
className: "w-full font-medium text-[13px] px-6 py-3 rounded-full bg-white text-hsecondary border-2 border-hprimary hover:bg-gray-50 transition-all flex items-center justify-center gap-2",
|
|
12955
12917
|
children: [
|
|
12956
12918
|
"View Full Details",
|
|
12957
12919
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ExternalLink, { className: "size-4" })
|
|
@@ -13103,42 +13065,42 @@ function ProductCard({
|
|
|
13103
13065
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Eye, { className: "size-4 text-[#2B4B7C]" })
|
|
13104
13066
|
}
|
|
13105
13067
|
),
|
|
13106
|
-
displayInventoryCount === 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-black/50 backdrop-blur-xs flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white rounded-full px-4 py-2", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-
|
|
13068
|
+
displayInventoryCount === 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-black/50 backdrop-blur-xs flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white rounded-full px-4 py-2", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-bold text-[11px] text-[#2B4B7C] uppercase", children: "Out of Stock" }) }) })
|
|
13107
13069
|
]
|
|
13108
13070
|
}
|
|
13109
13071
|
),
|
|
13110
13072
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-4 flex-1 flex flex-col", children: [
|
|
13111
13073
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-0 flex-1 flex flex-col", children: [
|
|
13112
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1 mb-2 flex-wrap", children: displayIsDiscounted && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-[#E67E50] text-white rounded-full px-2 py-0.5 flex items-center gap-1", children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-
|
|
13074
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1 mb-2 flex-wrap", children: displayIsDiscounted && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-[#E67E50] text-white rounded-full px-2 py-0.5 flex items-center gap-1", children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-bold text-[8px] uppercase", children: [
|
|
13113
13075
|
"-",
|
|
13114
13076
|
displayDiscountAmount,
|
|
13115
13077
|
"%"
|
|
13116
13078
|
] }) }) }),
|
|
13117
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-1", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "
|
|
13079
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-1", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-hsecondary uppercase tracking-wide font-medium", children: product.brand }) }),
|
|
13118
13080
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "h-[40px] mb-3", children: [
|
|
13119
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-sm font-
|
|
13120
|
-
selectedVariant && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs
|
|
13081
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-sm font-semibold text-[#2B4B7C] line-clamp-2", children: product.name }),
|
|
13082
|
+
selectedVariant && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-[#676c80]", children: selectedVariant.name })
|
|
13121
13083
|
] }),
|
|
13122
13084
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5 my-2", children: [
|
|
13123
13085
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-0.5", children: [...Array(5)].map((_, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
13124
13086
|
lucideReact.Star,
|
|
13125
13087
|
{
|
|
13126
|
-
className: `size-4 ${i < Math.floor(product.summary?.averageRating || 0) ? "text-
|
|
13088
|
+
className: `size-4 ${i < Math.floor(product.summary?.averageRating || 0) ? "text-hsecondary fill-hsecondary-500" : "text-gray-300"}`
|
|
13127
13089
|
},
|
|
13128
13090
|
i
|
|
13129
13091
|
)) }),
|
|
13130
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "
|
|
13092
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-[10px] text-[#676c80] ", children: [
|
|
13131
13093
|
"(",
|
|
13132
13094
|
product.summary?.reviewCount || 0,
|
|
13133
13095
|
")"
|
|
13134
13096
|
] })
|
|
13135
13097
|
] }),
|
|
13136
13098
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5 mb-3", children: [
|
|
13137
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-
|
|
13099
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-bold text-md text-hprimary-600", children: [
|
|
13138
13100
|
"$",
|
|
13139
13101
|
displayFinalPrice.toFixed(2)
|
|
13140
13102
|
] }),
|
|
13141
|
-
displayIsDiscounted && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "
|
|
13103
|
+
displayIsDiscounted && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-sm text-[#676c80] line-through", children: [
|
|
13142
13104
|
"$",
|
|
13143
13105
|
displayPriceBeforeDiscount.toFixed(2)
|
|
13144
13106
|
] })
|
|
@@ -13213,7 +13175,7 @@ function ProductCard({
|
|
|
13213
13175
|
}
|
|
13214
13176
|
},
|
|
13215
13177
|
disabled: isAddingToCart || variantImages.length > 0 && !selectedVariantId || displayInventoryCount === 0,
|
|
13216
|
-
className: "w-full font-
|
|
13178
|
+
className: "w-full font-medium text-[11px] px-3 py-2 rounded-full bg-hsecondary text-white hover:bg-hsecondary/80 hover:shadow-lg transition-all duration-300 flex items-center justify-center gap-1.5 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",
|
|
13217
13179
|
children: [
|
|
13218
13180
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ShoppingCart, { className: "h-4 w-4" }),
|
|
13219
13181
|
displayInventoryCount === 0 ? "Out of Stock" : "Add to Cart"
|
|
@@ -14001,9 +13963,9 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14001
13963
|
return lucideReact.Package;
|
|
14002
13964
|
};
|
|
14003
13965
|
const renderFiltersPanel = () => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-6", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: `lg:w-72 ${showFilters ? "block rounded-full" : "hidden lg:block"}`, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-white rounded-[24px] p-6 border-2 border-gray-100 sticky top-24", children: [
|
|
14004
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-
|
|
13966
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-semibold text-hsecondary", children: "Filters" }),
|
|
14005
13967
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6", children: [
|
|
14006
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "
|
|
13968
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-[12px] text-hmuted mb-2 block font-medium", children: "Search Products" }),
|
|
14007
13969
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
14008
13970
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-hmuted" }),
|
|
14009
13971
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -14013,7 +13975,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14013
13975
|
placeholder: "Search...",
|
|
14014
13976
|
value: searchQuery,
|
|
14015
13977
|
onChange: handleInputChange,
|
|
14016
|
-
className: "w-full pl-10 pr-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-hprimary focus:outline-hidden
|
|
13978
|
+
className: "w-full pl-10 pr-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-hprimary focus:outline-hidden text-[13px] text-hsecondary"
|
|
14017
13979
|
}
|
|
14018
13980
|
)
|
|
14019
13981
|
] })
|
|
@@ -14025,7 +13987,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14025
13987
|
onClick: () => toggleFilterSection("category"),
|
|
14026
13988
|
className: "w-full flex items-center justify-between mb-3",
|
|
14027
13989
|
children: [
|
|
14028
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "
|
|
13990
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-[12px] text-hmuted font-medium cursor-pointer", children: "Category" }),
|
|
14029
13991
|
expandedFilterSections.category ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.category ? "rotate-180" : ""}` }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.category ? "rotate-180" : ""}` })
|
|
14030
13992
|
]
|
|
14031
13993
|
}
|
|
@@ -14042,7 +14004,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14042
14004
|
if (!isExpanded) toggleCategoryExpand(categoryId);
|
|
14043
14005
|
handleCategoryChange(categoryId);
|
|
14044
14006
|
},
|
|
14045
|
-
className: `w-full text-left px-4 py-3 rounded-xl
|
|
14007
|
+
className: `w-full text-left px-4 py-3 rounded-xl text-[13px] transition-all flex items-center gap-3 ${isCategoryActive ? "bg-hprimary text-white shadow-lg" : "text-hsecondary hover:bg-gray-50 border-2 border-gray-100"}`,
|
|
14046
14008
|
children: [
|
|
14047
14009
|
/* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "size-4" }),
|
|
14048
14010
|
category.name
|
|
@@ -14059,7 +14021,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14059
14021
|
onClick: () => toggleFilterSection("brand"),
|
|
14060
14022
|
className: "w-full flex items-center justify-between mb-3",
|
|
14061
14023
|
children: [
|
|
14062
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "
|
|
14024
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-[12px] text-hmuted font-medium cursor-pointer", children: "Brand" }),
|
|
14063
14025
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.brand ? "rotate-180" : ""}` })
|
|
14064
14026
|
]
|
|
14065
14027
|
}
|
|
@@ -14070,7 +14032,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14070
14032
|
"button",
|
|
14071
14033
|
{
|
|
14072
14034
|
onClick: () => handleBrandChange(brand),
|
|
14073
|
-
className: `w-full text-left px-4 py-3 rounded-xl
|
|
14035
|
+
className: `w-full text-left px-4 py-3 rounded-xl text-[13px] transition-all ${isSelected ? "bg-hprimary text-white shadow-lg" : "text-hsecondary hover:bg-gray-50 border-2 border-gray-100"}`,
|
|
14074
14036
|
children: brand
|
|
14075
14037
|
},
|
|
14076
14038
|
brand
|
|
@@ -14084,7 +14046,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14084
14046
|
onClick: () => toggleFilterSection("availability"),
|
|
14085
14047
|
className: "w-full flex items-center justify-between mb-3",
|
|
14086
14048
|
children: [
|
|
14087
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "
|
|
14049
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-[12px] text-hmuted font-medium cursor-pointer", children: "Availability" }),
|
|
14088
14050
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.availability ? "rotate-180" : ""}` })
|
|
14089
14051
|
]
|
|
14090
14052
|
}
|
|
@@ -14093,7 +14055,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14093
14055
|
"button",
|
|
14094
14056
|
{
|
|
14095
14057
|
onClick: handleToggleStock,
|
|
14096
|
-
className: `w-full flex items-center justify-between px-4 py-3 rounded-xl
|
|
14058
|
+
className: `w-full flex items-center justify-between px-4 py-3 rounded-xl text-[13px] transition-all border-2 ${inStockOnly ? "bg-hprimary text-white shadow-lg" : "text-hsecondary hover:bg-gray-50 border-2 border-gray-100"}`,
|
|
14097
14059
|
children: "In Stock Only"
|
|
14098
14060
|
}
|
|
14099
14061
|
) })
|
|
@@ -14105,7 +14067,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14105
14067
|
onClick: () => toggleFilterSection("price"),
|
|
14106
14068
|
className: "w-full flex items-center justify-between mb-3",
|
|
14107
14069
|
children: [
|
|
14108
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "
|
|
14070
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-[12px] text-hmuted font-medium cursor-pointer", children: "Price Range" }),
|
|
14109
14071
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.price ? "rotate-180" : ""}` })
|
|
14110
14072
|
]
|
|
14111
14073
|
}
|
|
@@ -14118,7 +14080,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14118
14080
|
{
|
|
14119
14081
|
type: "button",
|
|
14120
14082
|
onClick: () => handlePriceRangeSelect(range.value),
|
|
14121
|
-
className: `w-full flex items-center justify-between px-4 py-3 rounded-xl
|
|
14083
|
+
className: `w-full flex items-center justify-between px-4 py-3 rounded-xl text-[13px] transition-all border-2 ${isActive ? "bg-hprimary text-white shadow-lg" : "text-hsecondary hover:bg-gray-50 border-2 border-gray-100"}`,
|
|
14122
14084
|
children: range.label
|
|
14123
14085
|
},
|
|
14124
14086
|
range.value
|
|
@@ -14133,7 +14095,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14133
14095
|
placeholder: "Min",
|
|
14134
14096
|
value: customPrice.min,
|
|
14135
14097
|
onChange: (event) => setCustomPrice((current) => ({ ...current, min: event.target.value })),
|
|
14136
|
-
className: "w-1/2 px-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-hprimary focus:outline-hidden
|
|
14098
|
+
className: "w-1/2 px-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-hprimary focus:outline-hidden text-[13px] text-hsecondary"
|
|
14137
14099
|
}
|
|
14138
14100
|
),
|
|
14139
14101
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -14144,7 +14106,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14144
14106
|
placeholder: "Max",
|
|
14145
14107
|
value: customPrice.max,
|
|
14146
14108
|
onChange: (event) => setCustomPrice((current) => ({ ...current, max: event.target.value })),
|
|
14147
|
-
className: "w-1/2 px-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-hprimary focus:outline-hidden
|
|
14109
|
+
className: "w-1/2 px-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-hprimary focus:outline-hidden text-[13px] text-hsecondary"
|
|
14148
14110
|
}
|
|
14149
14111
|
)
|
|
14150
14112
|
] }),
|
|
@@ -14211,8 +14173,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14211
14173
|
]
|
|
14212
14174
|
}
|
|
14213
14175
|
) }) }),
|
|
14214
|
-
/* @__PURE__ */ jsxRuntime.jsx("section", { className: "py-8 bg-white", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "container mx-auto px-4", children: [
|
|
14215
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl md:text-3xl font-
|
|
14176
|
+
/* @__PURE__ */ jsxRuntime.jsx("section", { className: "py-8 bg-white/50", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "container mx-auto px-4", children: [
|
|
14177
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl md:text-3xl font-semibold text-hsecondary mb-6", children: "Shop by Category" }),
|
|
14216
14178
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4", children: [
|
|
14217
14179
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14218
14180
|
framerMotion.motion.button,
|
|
@@ -14223,8 +14185,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14223
14185
|
className: `group relative overflow-hidden rounded-[24px] p-6 min-h-[180px] min-w-[170px] transition-all duration-300 ${!categoryFilter ? "bg-linear-to-br from-hprimary to-hsecondary text-white shadow-xl scale-105" : "bg-linear-to-br from-gray-50 to-white hover:shadow-lg border-2 border-gray-100 hover:border-hprimary"}`,
|
|
14224
14186
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
14225
14187
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `size-12 rounded-full mb-3 mx-auto flex items-center justify-center transition-all ${!categoryFilter ? "bg-white/20" : "bg-linear-to-br from-hprimary-10 to-hsecondary-10 group-hover:scale-110"}`, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Package, { className: `size-6 ${!categoryFilter ? "text-white" : "text-hprimary"}` }) }),
|
|
14226
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: `font-
|
|
14227
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: `
|
|
14188
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: `font-semibold text-[14px] mb-1.5 ${!categoryFilter ? "text-white" : "text-hsecondary"}`, children: "All Products" }),
|
|
14189
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: `text-[11px] ${!categoryFilter ? "text-white/80" : "text-hmuted"}`, children: "Browse Everything" })
|
|
14228
14190
|
] })
|
|
14229
14191
|
}
|
|
14230
14192
|
),
|
|
@@ -14242,8 +14204,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14242
14204
|
className: `group relative overflow-hidden rounded-[24px] p-6 min-h-[180px] min-w-[170px] transition-all duration-300 ${isSelected ? "bg-linear-to-br from-hprimary to-hsecondary text-white shadow-xl scale-105" : "bg-linear-to-br from-gray-50 to-white hover:shadow-lg border-2 border-gray-100 hover:border-hprimary"}`,
|
|
14243
14205
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
14244
14206
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `size-12 rounded-full mb-3 mx-auto flex items-center justify-center transition-all ${isSelected ? "bg-white/20" : "bg-linear-to-br from-hprimary-10 to-hsecondary-10 group-hover:scale-110"}`, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: `size-6 ${isSelected ? "text-white" : "text-hprimary"}` }) }),
|
|
14245
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: `font-
|
|
14246
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: `
|
|
14207
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: `font-semibold text-[14px] mb-1.5 ${isSelected ? "text-white" : "text-hsecondary"}`, children: category.name }),
|
|
14208
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: `text-[11px] ${isSelected ? "text-white/80" : "text-hmuted"}`, children: category.description })
|
|
14247
14209
|
] })
|
|
14248
14210
|
},
|
|
14249
14211
|
categoryId
|
|
@@ -14392,7 +14354,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14392
14354
|
event.stopPropagation();
|
|
14393
14355
|
router.push(buildPath(`/products/${product._id}`));
|
|
14394
14356
|
},
|
|
14395
|
-
className: "w-full font-
|
|
14357
|
+
className: "w-full font-medium text-sm px-3 py-2 rounded-xl bg-hsecondary text-white hover:opacity-80 hover:shadow-lg transition-all duration-300 flex items-center justify-center gap-1.5 disabled:opacity-50 disabled:cursor-not-allowed",
|
|
14396
14358
|
children: "View product"
|
|
14397
14359
|
}
|
|
14398
14360
|
)
|
|
@@ -14755,7 +14717,7 @@ function RatingDistribution({ reviews, averageRating }) {
|
|
|
14755
14717
|
function ReviewCard({ review, showProductInfo = false }) {
|
|
14756
14718
|
const reviewDate = new Date(review.createdAt);
|
|
14757
14719
|
const replyDate = review.replyDate ? new Date(review.replyDate) : null;
|
|
14758
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border border-gray-200 rounded-lg p-4 bg-
|
|
14720
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border border-gray-200 rounded-lg p-4 bg-hprimary-50", children: [
|
|
14759
14721
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between mb-3", children: [
|
|
14760
14722
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
14761
14723
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-10 h-10 bg-hsecondary/10 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.User, { className: "size-5 text-hsecondary" }) }),
|
|
@@ -14766,7 +14728,7 @@ function ReviewCard({ review, showProductInfo = false }) {
|
|
|
14766
14728
|
] }),
|
|
14767
14729
|
/* @__PURE__ */ jsxRuntime.jsx(StarRating, { rating: review.rating, size: "sm" })
|
|
14768
14730
|
] }),
|
|
14769
|
-
review.reviewType && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-block px-2 py-1 text-xs bg-
|
|
14731
|
+
review.reviewType && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-block px-2 py-1 text-xs bg-hprimary-100 text-gray-600 rounded mb-2", children: review.reviewType }),
|
|
14770
14732
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-gray-700 text-sm leading-relaxed mb-3", children: review.review }),
|
|
14771
14733
|
review.reply && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-4 pl-4 border-l-2 border-hsecondary bg-gray-50 p-3 rounded", children: [
|
|
14772
14734
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 mb-2", children: [
|
|
@@ -15131,7 +15093,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15131
15093
|
"button",
|
|
15132
15094
|
{
|
|
15133
15095
|
onClick: () => router.push(buildPath("/shop")),
|
|
15134
|
-
className: "flex items-center gap-2
|
|
15096
|
+
className: "flex items-center gap-2 text-[13px] text-hmuted hover:text-hprimary transition-colors",
|
|
15135
15097
|
children: [
|
|
15136
15098
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "size-4" }),
|
|
15137
15099
|
"Back to Shop"
|
|
@@ -15170,7 +15132,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15170
15132
|
className: "object-contain"
|
|
15171
15133
|
}
|
|
15172
15134
|
) : null,
|
|
15173
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-6 left-6 flex flex-col gap-3", children: discount > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-
|
|
15135
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-6 left-6 flex flex-col gap-3", children: discount > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-hsecondary text-white rounded-full px-4 py-2", children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-bold text-[12px] uppercase tracking-wide", children: [
|
|
15174
15136
|
"Save ",
|
|
15175
15137
|
discount,
|
|
15176
15138
|
"%"
|
|
@@ -15202,12 +15164,12 @@ function ProductDetailScreen({ productId }) {
|
|
|
15202
15164
|
] }) }) }),
|
|
15203
15165
|
/* @__PURE__ */ jsxRuntime.jsxs("aside", { className: "space-y-6 lg:sticky lg:top-24", children: [
|
|
15204
15166
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-4", children: [
|
|
15205
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "
|
|
15167
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-[12px] text-hprimary uppercase tracking-wide font-medium mb-2", children: [
|
|
15206
15168
|
product.brand,
|
|
15207
15169
|
" \u2022 ",
|
|
15208
15170
|
product.categoryIds?.[0]?.name || "Uncategorized"
|
|
15209
15171
|
] }),
|
|
15210
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-3xl font-
|
|
15172
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-3xl font-semibold text-hsecondary tracking-[-1.5px] mb-3", children: selectedVariant?.name || product.name }),
|
|
15211
15173
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
15212
15174
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1", children: [...Array(5)].map((_, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
15213
15175
|
lucideReact.Star,
|
|
@@ -15216,7 +15178,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15216
15178
|
},
|
|
15217
15179
|
i
|
|
15218
15180
|
)) }),
|
|
15219
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "
|
|
15181
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-[14px] text-hmuted", children: [
|
|
15220
15182
|
reviewStats.averageRating,
|
|
15221
15183
|
" (",
|
|
15222
15184
|
reviewStats.reviewCount,
|
|
@@ -15226,16 +15188,16 @@ function ProductDetailScreen({ productId }) {
|
|
|
15226
15188
|
] })
|
|
15227
15189
|
] }),
|
|
15228
15190
|
selectedVariant && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 mb-6 pb-6 border-b-2 border-gray-100", children: [
|
|
15229
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-
|
|
15191
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-bold text-[40px] text-hsecondary", children: [
|
|
15230
15192
|
"$",
|
|
15231
15193
|
variantPrice.toFixed(2)
|
|
15232
15194
|
] }),
|
|
15233
15195
|
variantComparePrice && variantComparePrice > variantPrice && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
15234
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "
|
|
15196
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-[24px] text-hmuted line-through", children: [
|
|
15235
15197
|
"$",
|
|
15236
15198
|
variantComparePrice.toFixed(2)
|
|
15237
15199
|
] }),
|
|
15238
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 py-1 rounded-full bg-
|
|
15200
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 py-1 rounded-full bg-hsecondary/10", children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-semibold text-[13px] text-hsecondary", children: [
|
|
15239
15201
|
"Save $",
|
|
15240
15202
|
formatPrice(variantComparePrice - variantPrice)
|
|
15241
15203
|
] }) })
|
|
@@ -15244,19 +15206,19 @@ function ProductDetailScreen({ productId }) {
|
|
|
15244
15206
|
selectedVariant && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6", children: [
|
|
15245
15207
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2 mb-2", children: selectedVariant.inventoryStatus === "OUT_OF_STOCK" /* OUTOFSTOCK */ ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
15246
15208
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-3 rounded-full bg-red-500" }),
|
|
15247
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "
|
|
15209
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[13px] text-red-600 font-medium", children: "Out of Stock" })
|
|
15248
15210
|
] }) : selectedVariant.inventoryStatus === "LOW_STOCK" /* LOWSTOCK */ || selectedVariant.inventoryCount <= 10 ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
15249
15211
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-3 rounded-full bg-hprimary animate-pulse" }),
|
|
15250
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "
|
|
15212
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-[13px] text-hprimary font-medium", children: [
|
|
15251
15213
|
"Only ",
|
|
15252
15214
|
selectedVariant.inventoryCount,
|
|
15253
15215
|
" left in stock - Order soon!"
|
|
15254
15216
|
] })
|
|
15255
15217
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
15256
15218
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-3 rounded-full bg-green-500" }),
|
|
15257
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "
|
|
15219
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[13px] text-green-600 font-medium", children: "In Stock" })
|
|
15258
15220
|
] }) }),
|
|
15259
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "
|
|
15221
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-[12px] text-hmuted", children: [
|
|
15260
15222
|
"SKU: ",
|
|
15261
15223
|
selectedVariant?.sku || product?.sku
|
|
15262
15224
|
] })
|
|
@@ -15264,12 +15226,12 @@ function ProductDetailScreen({ productId }) {
|
|
|
15264
15226
|
product.description && /* @__PURE__ */ jsxRuntime.jsx(
|
|
15265
15227
|
"div",
|
|
15266
15228
|
{
|
|
15267
|
-
className: "
|
|
15229
|
+
className: "text-[14px] text-hmuted leading-[1.7] mb-8 max-w-full overflow-hidden break-words",
|
|
15268
15230
|
dangerouslySetInnerHTML: { __html: product.description }
|
|
15269
15231
|
}
|
|
15270
15232
|
),
|
|
15271
15233
|
product?.variants && product.variants.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6", children: [
|
|
15272
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-
|
|
15234
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-semibold text-[14px] text-hsecondary mb-3", children: "Select Variant" }),
|
|
15273
15235
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-3", children: product.variants.map((variant) => {
|
|
15274
15236
|
const isSelected = selectedVariant?._id === variant._id;
|
|
15275
15237
|
const variantImage = variant.media?.[0]?.file || product.media?.[0]?.file || product.images?.[0] || PLACEHOLDER_IMAGE_SRC;
|
|
@@ -15305,7 +15267,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15305
15267
|
}) })
|
|
15306
15268
|
] }),
|
|
15307
15269
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-8", children: [
|
|
15308
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-
|
|
15270
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-semibold text-[14px] text-hsecondary mb-3", children: "Quantity" }),
|
|
15309
15271
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
15310
15272
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-4 bg-gray-100 rounded-full px-6 py-3", children: [
|
|
15311
15273
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -15313,18 +15275,18 @@ function ProductDetailScreen({ productId }) {
|
|
|
15313
15275
|
{
|
|
15314
15276
|
type: "button",
|
|
15315
15277
|
onClick: () => setQuantity((current) => Math.max(1, current - 1)),
|
|
15316
|
-
className: "font-
|
|
15278
|
+
className: "font-bold text-[18px] text-hsecondary hover:text-hprimary transition-colors",
|
|
15317
15279
|
"aria-label": "Increase quantity",
|
|
15318
15280
|
children: "-"
|
|
15319
15281
|
}
|
|
15320
15282
|
),
|
|
15321
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-
|
|
15283
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold text-[16px] text-hsecondary min-w-[30px] text-center", children: quantity }),
|
|
15322
15284
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15323
15285
|
"button",
|
|
15324
15286
|
{
|
|
15325
15287
|
onClick: () => setQuantity(Math.min(selectedVariant?.inventoryCount || product.inventoryCount || 999, quantity + 1)),
|
|
15326
15288
|
disabled: quantity >= (selectedVariant?.inventoryCount || product.inventoryCount || 0),
|
|
15327
|
-
className: "font-
|
|
15289
|
+
className: "font-bold text-[18px] text-hsecondary hover:text-hprimary transition-colors disabled:opacity-50",
|
|
15328
15290
|
children: "+"
|
|
15329
15291
|
}
|
|
15330
15292
|
)
|
|
@@ -15339,7 +15301,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15339
15301
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15340
15302
|
"button",
|
|
15341
15303
|
{
|
|
15342
|
-
className: "flex-1 font-
|
|
15304
|
+
className: "flex-1 font-medium text-[14px] px-8 py-4 rounded-full transition-all duration-300 flex items-center justify-center gap-3 bg-hsecondary text-white hover:bg-hsecondary/80 hover:shadow-lg disabled:opacity-50 disabled:cursor-not-allowed",
|
|
15343
15305
|
onClick: handleAddToCart,
|
|
15344
15306
|
disabled: !selectedVariant || selectedVariant.inventoryStatus === "OUT_OF_STOCK" /* OUTOFSTOCK */ || isAddingToCart,
|
|
15345
15307
|
children: isAddingToCart ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -15368,29 +15330,29 @@ function ProductDetailScreen({ productId }) {
|
|
|
15368
15330
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
15369
15331
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Truck, { className: "size-5 text-hprimary" }) }),
|
|
15370
15332
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
15371
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-
|
|
15372
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "
|
|
15333
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-[12px] text-hsecondary mb-1", children: "Free Shipping" }),
|
|
15334
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[11px] text-hmuted", children: "On all orders" })
|
|
15373
15335
|
] })
|
|
15374
15336
|
] }),
|
|
15375
15337
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
15376
15338
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.RotateCcw, { className: "size-5 text-hprimary" }) }),
|
|
15377
15339
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
15378
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-
|
|
15379
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "
|
|
15340
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-[12px] text-hsecondary mb-1", children: "Easy Returns" }),
|
|
15341
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[11px] text-hmuted", children: "30-day return policy" })
|
|
15380
15342
|
] })
|
|
15381
15343
|
] }),
|
|
15382
15344
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
15383
15345
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Shield, { className: "size-5 text-hprimary" }) }),
|
|
15384
15346
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
15385
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-
|
|
15386
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "
|
|
15347
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-[12px] text-hsecondary mb-1", children: "Secure Checkout" }),
|
|
15348
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[11px] text-hmuted", children: "Safe & protected" })
|
|
15387
15349
|
] })
|
|
15388
15350
|
] }),
|
|
15389
15351
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
15390
15352
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Package, { className: "size-5 text-hprimary" }) }),
|
|
15391
15353
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
15392
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-
|
|
15393
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "
|
|
15354
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-[12px] text-hsecondary mb-1", children: "Quality Guaranteed" }),
|
|
15355
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[11px] text-hmuted", children: "Premium materials" })
|
|
15394
15356
|
] })
|
|
15395
15357
|
] })
|
|
15396
15358
|
] })
|
|
@@ -15401,35 +15363,35 @@ function ProductDetailScreen({ productId }) {
|
|
|
15401
15363
|
"button",
|
|
15402
15364
|
{
|
|
15403
15365
|
onClick: () => setActiveTab(tab),
|
|
15404
|
-
className: `font-
|
|
15366
|
+
className: `font-medium text-[14px] px-6 py-4 transition-all ${activeTab === tab ? "text-hprimary border-b-2 border-hprimary -mb-0.5" : "text-hmuted hover:text-hprimary"}`,
|
|
15405
15367
|
children: tab.charAt(0).toUpperCase() + tab.slice(1)
|
|
15406
15368
|
},
|
|
15407
15369
|
tab
|
|
15408
15370
|
)) }),
|
|
15409
15371
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-white rounded-[24px] p-8 border-2 border-gray-100", children: [
|
|
15410
15372
|
activeTab === "description" && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
15411
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-
|
|
15373
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-semibold text-hsecondary mb-4", children: "Product Description" }),
|
|
15412
15374
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15413
15375
|
"div",
|
|
15414
15376
|
{
|
|
15415
|
-
className: "
|
|
15377
|
+
className: "text-[14px] text-hmuted leading-[1.8] mb-4 max-w-full overflow-hidden break-words",
|
|
15416
15378
|
dangerouslySetInnerHTML: { __html: product.description }
|
|
15417
15379
|
}
|
|
15418
15380
|
),
|
|
15419
15381
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-6", children: [
|
|
15420
|
-
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: "font-
|
|
15421
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "
|
|
15382
|
+
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: "font-semibold text-[13px] text-hsecondary mb-3", children: "Last updated:" }),
|
|
15383
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[14px] text-hmuted", children: lastUpdatedLabel })
|
|
15422
15384
|
] }),
|
|
15423
15385
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-6", children: [
|
|
15424
|
-
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: "font-
|
|
15425
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "
|
|
15386
|
+
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: "font-semibold text-[13px] text-hsecondary mb-3", children: "Shipped from:" }),
|
|
15387
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[14px] text-hmuted", children: "Local pharmacy distribution center" })
|
|
15426
15388
|
] })
|
|
15427
15389
|
] }),
|
|
15428
15390
|
activeTab === "reviews" && /* @__PURE__ */ jsxRuntime.jsx(ProductReviewsSection, { productId })
|
|
15429
15391
|
] })
|
|
15430
15392
|
] }),
|
|
15431
15393
|
relatedProducts.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
15432
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-
|
|
15394
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-semibold text-hsecondary mb-8 text-2xl", children: "You May Also Like" }),
|
|
15433
15395
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6", children: relatedProducts.map((relatedProduct) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
15434
15396
|
ProductCard,
|
|
15435
15397
|
{
|
|
@@ -15474,9 +15436,9 @@ function CartItem({ item }) {
|
|
|
15474
15436
|
initial: { opacity: 0, y: 20 },
|
|
15475
15437
|
animate: { opacity: 1, y: 0 },
|
|
15476
15438
|
exit: { opacity: 0, x: -100 },
|
|
15477
|
-
className: "bg-white border-2 border-gray-100 rounded-[24px] p-6 hover:border-hsecondary/30 transition-all duration-300",
|
|
15478
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-
|
|
15479
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-28 h-28 rounded-[16px] overflow-hidden bg-gray-50 shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
15439
|
+
className: "bg-white border-2 border-gray-100 rounded-[24px] p-4 md:p-6 hover:border-hsecondary/30 transition-all duration-300",
|
|
15440
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-3 md:gap-4", children: [
|
|
15441
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-20 h-20 md:w-28 md:h-28 rounded-[16px] overflow-hidden bg-gray-50 shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
15480
15442
|
Image4__default.default,
|
|
15481
15443
|
{
|
|
15482
15444
|
src: item.productVariantData.media[0]?.file || PLACEHOLDER_IMAGE_SRC,
|
|
@@ -15489,8 +15451,8 @@ function CartItem({ item }) {
|
|
|
15489
15451
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
15490
15452
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-4 mb-3", children: [
|
|
15491
15453
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
15492
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-
|
|
15493
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap items-center gap-3", children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "
|
|
15454
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-semibold text-[#2B4B7C] mb-2", children: item.productVariantData.name }),
|
|
15455
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap items-center gap-3", children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-[12px] text-[#676c80]", children: [
|
|
15494
15456
|
"Variant: ",
|
|
15495
15457
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium text-[#2B4B7C]", children: item.productVariantData.name })
|
|
15496
15458
|
] }) })
|
|
@@ -15506,31 +15468,33 @@ function CartItem({ item }) {
|
|
|
15506
15468
|
}
|
|
15507
15469
|
)
|
|
15508
15470
|
] }),
|
|
15509
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
15510
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 bg-gray-50 rounded-full px-4 py-2", children: [
|
|
15471
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col sm:flex-row sm:items-center justify-between gap-4 mt-auto", children: [
|
|
15472
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 bg-gray-50 rounded-full px-3 py-1.5 md:px-4 md:py-2 w-fit", children: [
|
|
15511
15473
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15512
15474
|
"button",
|
|
15513
15475
|
{
|
|
15514
15476
|
onClick: () => handleUpdateQuantity(item.quantity - 1),
|
|
15515
15477
|
disabled: isUpdating || item.quantity <= 1,
|
|
15516
15478
|
className: "p-1 hover:bg-white rounded-full transition-colors",
|
|
15517
|
-
|
|
15479
|
+
"aria-label": "Decrease quantity",
|
|
15480
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Minus, { className: "size-3 md:size-4 text-[#2B4B7C]" })
|
|
15518
15481
|
}
|
|
15519
15482
|
),
|
|
15520
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-[
|
|
15483
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold text-[13px] md:text-[14px] text-[#2B4B7C] min-w-[20px] text-center", children: item.quantity }),
|
|
15521
15484
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15522
15485
|
"button",
|
|
15523
15486
|
{
|
|
15524
15487
|
onClick: () => handleUpdateQuantity(item.quantity + 1),
|
|
15525
15488
|
disabled: isUpdating || item.quantity >= (item.productVariantData.inventoryCount || 999),
|
|
15526
15489
|
className: "p-1 hover:bg-white rounded-full transition-colors",
|
|
15527
|
-
|
|
15490
|
+
"aria-label": "Increase quantity",
|
|
15491
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "size-3 md:size-4 text-[#2B4B7C]" })
|
|
15528
15492
|
}
|
|
15529
15493
|
)
|
|
15530
15494
|
] }),
|
|
15531
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-right", children: [
|
|
15532
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-[
|
|
15533
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "
|
|
15495
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-left sm:text-right", children: [
|
|
15496
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-bold text-[16px] md:text-[18px] text-hsecondary", children: formatPrice(itemTotal) }),
|
|
15497
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-[10px] md:text-[11px] text-[#676c80]", children: [
|
|
15534
15498
|
formatPrice(unitPrice),
|
|
15535
15499
|
" each"
|
|
15536
15500
|
] })
|
|
@@ -15606,10 +15570,10 @@ function CartScreen() {
|
|
|
15606
15570
|
}
|
|
15607
15571
|
router.push(buildPath("/checkout"));
|
|
15608
15572
|
};
|
|
15609
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-screen bg-white", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-[1400px] mx-auto px-
|
|
15610
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-12", children: [
|
|
15611
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "font-
|
|
15612
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "
|
|
15573
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-screen bg-white", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-[1400px] mx-auto px-4 md:px-12", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "py-8", children: [
|
|
15574
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-8 md:mb-12", children: [
|
|
15575
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "font-semibold text-hsecondary tracking-[-1px] md:tracking-[-2px] mb-2 text-3xl md:text-4xl", children: "Shopping Cart" }),
|
|
15576
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-[14px] md:text-[16px] text-hmuted", children: [
|
|
15613
15577
|
itemCount,
|
|
15614
15578
|
" ",
|
|
15615
15579
|
itemCount === 1 ? "item" : "items",
|
|
@@ -15638,19 +15602,19 @@ function CartScreen() {
|
|
|
15638
15602
|
initial: { opacity: 0, y: 24 },
|
|
15639
15603
|
animate: { opacity: 1, y: 0 },
|
|
15640
15604
|
transition: { delay: 0.1 },
|
|
15641
|
-
className: "
|
|
15642
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-linear-to-br from-hsecondary/10 to-hsecondary/10 rounded-[24px] p-8 border-2 border-hsecondary/20 sticky top-24", children: [
|
|
15643
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-
|
|
15605
|
+
className: "lg:sticky lg:top-24 h-fit lg:col-span-1",
|
|
15606
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-hsecondary/[0.03] md:bg-linear-to-br md:from-hsecondary/10 md:to-hsecondary/10 rounded-[24px] p-6 md:p-8 border-2 border-hsecondary/10 md:border-hsecondary/20 lg:sticky lg:top-24", children: [
|
|
15607
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-semibold text-hsecondary mb-6", children: "Order Summary" }),
|
|
15644
15608
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4 mb-6", children: [
|
|
15645
15609
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
15646
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "
|
|
15610
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-[14px] text-hmuted", children: [
|
|
15647
15611
|
"Subtotal (",
|
|
15648
15612
|
itemCount,
|
|
15649
15613
|
" ",
|
|
15650
15614
|
itemCount === 1 ? "item" : "items",
|
|
15651
15615
|
")"
|
|
15652
15616
|
] }),
|
|
15653
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-
|
|
15617
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold text-[14px] text-hsecondary", children: formatPrice(subtotal) })
|
|
15654
15618
|
] }),
|
|
15655
15619
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between text-sm", children: [
|
|
15656
15620
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-gray-600", children: "Shipping" }),
|
|
@@ -16640,8 +16604,8 @@ function CheckoutScreen() {
|
|
|
16640
16604
|
className: "space-y-8",
|
|
16641
16605
|
children: [
|
|
16642
16606
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-12", children: [
|
|
16643
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "font-
|
|
16644
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "
|
|
16607
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "font-semibold text-[#2B4B7C] mb-2 text-3xl", children: "Checkout" }),
|
|
16608
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[14px] text-[#676c80] text-md leading-relaxed", children: "Complete your order information below" })
|
|
16645
16609
|
] }),
|
|
16646
16610
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-8", children: [
|
|
16647
16611
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
@@ -16736,7 +16700,7 @@ function CheckoutScreen() {
|
|
|
16736
16700
|
] }) }),
|
|
16737
16701
|
isDelivery !== null && /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8 text-[#2B4B7C]", children: [
|
|
16738
16702
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap items-center justify-between gap-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
16739
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-
|
|
16703
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-semibold text-[#2B4B7C] mb-2 text-2xl", children: isDelivery ? "Delivery Address" : "Contact Information" }),
|
|
16740
16704
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-slate-500", children: "We use temperature-aware packaging and real-time tracking on every shipment." })
|
|
16741
16705
|
] }) }),
|
|
16742
16706
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-6 grid grid-cols-1 gap-4 md:grid-cols-2", children: [
|
|
@@ -16870,7 +16834,7 @@ function CheckoutScreen() {
|
|
|
16870
16834
|
isDelivery === true && selectedAddressId && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8 text-[#2B4B7C]", children: [
|
|
16871
16835
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 text-xl font-semibold text-gray-900 pb-4 mb-8 border-b", children: [
|
|
16872
16836
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Truck, { className: "w-8 h-8 flex items-center justify-center text-[#2B4B7C]" }),
|
|
16873
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-
|
|
16837
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-semibold text-[#2B4B7C] text-2xl", children: "Shipping Options" })
|
|
16874
16838
|
] }),
|
|
16875
16839
|
shippingRatesLoading ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-center py-12", children: [
|
|
16876
16840
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "animate-spin rounded-full h-8 w-8 border-b-2 border-haccent" }),
|
|
@@ -16978,18 +16942,18 @@ function CheckoutScreen() {
|
|
|
16978
16942
|
transition: { duration: 0.5, ease: "easeOut", delay: 0.1 },
|
|
16979
16943
|
className: "space-y-10 lg:sticky lg:top-24 lg:col-span-1",
|
|
16980
16944
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-linear-to-br from-hsecondary/10 to-hsecondary/10 rounded-[24px] p-8 border-2 border-hsecondary/20 sticky top-24", children: [
|
|
16981
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-
|
|
16945
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-semibold text-hsecondary mb-6 text-2xl", children: "Order Summary" }),
|
|
16982
16946
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { className: "mt-8 pt-6 border-t border-slate-100", children: [
|
|
16983
16947
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-4 mb-6", children: cart?.cartBody?.items?.map((item) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-3", children: [
|
|
16984
16948
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-16 h-16 rounded-xl overflow-hidden bg-white shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(Image4__default.default, { src: item.productVariantData?.media?.[0]?.file || PLACEHOLDER_IMAGE_SRC, alt: item.productVariantData.name, className: "w-full h-full object-cover", height: 200, width: 200 }) }),
|
|
16985
16949
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
16986
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-
|
|
16987
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "
|
|
16950
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-medium text-[12px] text-[#2B4B7C] mb-1", children: item?.productVariantData?.name }),
|
|
16951
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-[11px] text-[#676c80]", children: [
|
|
16988
16952
|
item?.productVariantData?.brand,
|
|
16989
16953
|
" \u2022 Qty: ",
|
|
16990
16954
|
item.quantity
|
|
16991
16955
|
] }),
|
|
16992
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-
|
|
16956
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-[12px] text-hsecondary mt-1", children: formatPrice(item.productVariantData.finalPrice * item.quantity) })
|
|
16993
16957
|
] })
|
|
16994
16958
|
] }, item.productVariantId || item.id)) }),
|
|
16995
16959
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-px bg-hsecondary/20 my-4" }),
|
|
@@ -17026,11 +16990,11 @@ function CheckoutScreen() {
|
|
|
17026
16990
|
] }),
|
|
17027
16991
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-px bg-hsecondary/20 mt-6" }),
|
|
17028
16992
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between mb-6", children: [
|
|
17029
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-
|
|
17030
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-
|
|
16993
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold text-[16px] text-hsecondary", children: "Total" }),
|
|
16994
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-bold text-[24px] text-hsecondary", children: formatPrice(total) })
|
|
17031
16995
|
] })
|
|
17032
16996
|
] }),
|
|
17033
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white/80 rounded-xl p-4", children: /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "
|
|
16997
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white/80 rounded-xl p-4", children: /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-[11px] text-[#676c80] leading-[1.6]", children: [
|
|
17034
16998
|
/* @__PURE__ */ jsxRuntime.jsx("strong", { className: "text-hsecondary", children: "Payment:" }),
|
|
17035
16999
|
" We'll contact you to arrange payment upon pickup or delivery. We accept cash, credit cards, and all major payment methods."
|
|
17036
17000
|
] }) })
|
|
@@ -17067,7 +17031,7 @@ function CheckoutScreen() {
|
|
|
17067
17031
|
{
|
|
17068
17032
|
type: "submit",
|
|
17069
17033
|
disabled: isSubmitting,
|
|
17070
|
-
className: "font-
|
|
17034
|
+
className: "font-medium text-[14px] px-6 py-3 rounded-full text-white hover:bg-[#d66f45] hover:shadow-lg transition-all duration-300 mt-4 w-full bg-hsecondary hover:bg-[#2B4B7C] flex items-center justify-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed",
|
|
17071
17035
|
children: [
|
|
17072
17036
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CreditCard, { className: "h-5 w-5" }),
|
|
17073
17037
|
isSubmitting ? "Placing order..." : "Place Secure Order"
|
|
@@ -17941,7 +17905,7 @@ function AccountOverviewTab() {
|
|
|
17941
17905
|
icon: lucideReact.Package,
|
|
17942
17906
|
label: "Total Orders",
|
|
17943
17907
|
value: totalOrders,
|
|
17944
|
-
color: "bg-
|
|
17908
|
+
color: "bg-hprimary-100 text-[#5B9BD5]"
|
|
17945
17909
|
},
|
|
17946
17910
|
{
|
|
17947
17911
|
icon: lucideReact.CheckCircle,
|
|
@@ -17997,7 +17961,7 @@ function AccountOverviewTab() {
|
|
|
17997
17961
|
] }),
|
|
17998
17962
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
17999
17963
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
18000
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-
|
|
17964
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-hprimary-100", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.User, { className: "h-5 w-5 text-hsecondary" }) }),
|
|
18001
17965
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
18002
17966
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-hmuted", children: "Full Name" }),
|
|
18003
17967
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm font-medium text-hsecondary", children: [
|
|
@@ -18008,21 +17972,21 @@ function AccountOverviewTab() {
|
|
|
18008
17972
|
] })
|
|
18009
17973
|
] }),
|
|
18010
17974
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
18011
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-
|
|
17975
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-hprimary-100", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mail, { className: "h-5 w-5 text-hsecondary" }) }),
|
|
18012
17976
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
18013
17977
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-hmuted", children: "E-mail Address" }),
|
|
18014
17978
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-hsecondary", children: user.email })
|
|
18015
17979
|
] })
|
|
18016
17980
|
] }),
|
|
18017
17981
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
18018
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-
|
|
17982
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-hprimary-100", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Phone, { className: "h-5 w-5 text-hsecondary" }) }),
|
|
18019
17983
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
18020
17984
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-hmuted", children: "Phone Number" }),
|
|
18021
17985
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-hsecondary", children: user.phoneNumber || "Not provided" })
|
|
18022
17986
|
] })
|
|
18023
17987
|
] }),
|
|
18024
17988
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
18025
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-
|
|
17989
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-hprimary-100", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MapPin, { className: "h-5 w-5 text-hsecondary" }) }),
|
|
18026
17990
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
18027
17991
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-hmuted", children: "Date of Birth" }),
|
|
18028
17992
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-hsecondary", children: "Not provided" })
|
|
@@ -22537,9 +22501,6 @@ exports.AuthProvider = AuthProvider;
|
|
|
22537
22501
|
exports.Badge = Badge;
|
|
22538
22502
|
exports.BulkChannelToggleDtoCategoryEnum = BulkChannelToggleDtoCategoryEnum;
|
|
22539
22503
|
exports.Button = Button;
|
|
22540
|
-
exports.CampaignDraftDtoStatusEnum = CampaignDraftDtoStatusEnum;
|
|
22541
|
-
exports.CampaignDraftScheduleDtoStatusEnum = CampaignDraftScheduleDtoStatusEnum;
|
|
22542
|
-
exports.CampaignDraftSendingDtoStatusEnum = CampaignDraftSendingDtoStatusEnum;
|
|
22543
22504
|
exports.CartItem = CartItem;
|
|
22544
22505
|
exports.CartProvider = CartProvider;
|
|
22545
22506
|
exports.CartScreen = CartScreen;
|