hey-pharmacist-ecommerce 1.1.43 → 1.1.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/index.d.mts +2341 -888
  2. package/dist/index.d.ts +2341 -888
  3. package/dist/index.js +539 -393
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +538 -393
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +1 -1
  8. package/src/components/AccountReviewsTab.tsx +4 -4
  9. package/src/components/Header.tsx +1 -1
  10. package/src/components/OrderCard.tsx +1 -1
  11. package/src/components/ProductCard.tsx +1 -1
  12. package/src/components/RatingDistribution.tsx +2 -2
  13. package/src/components/ReviewForm.tsx +3 -3
  14. package/src/components/ReviewPromptBanner.tsx +4 -4
  15. package/src/components/ReviewsList.tsx +9 -11
  16. package/src/components/StarRating.tsx +3 -3
  17. package/src/hooks/useProducts.ts +0 -1
  18. package/src/hooks/useSmartSearch.ts +68 -0
  19. package/src/lib/Apis/api.ts +1 -0
  20. package/src/lib/Apis/apis/analytics-api.ts +809 -0
  21. package/src/lib/Apis/apis/notifications-api.ts +8 -6
  22. package/src/lib/Apis/apis/products-api.ts +390 -15
  23. package/src/lib/Apis/apis/stores-api.ts +26 -149
  24. package/src/lib/Apis/apis/web-hooks-api.ts +8 -17
  25. package/src/lib/Apis/models/analytics-period-dto.ts +45 -0
  26. package/src/lib/Apis/models/appointment-overview-dto.ts +71 -0
  27. package/src/lib/Apis/models/{api-key-info-dto.ts → category-sales-dto.ts} +24 -22
  28. package/src/lib/Apis/models/create-store-dto.ts +12 -0
  29. package/src/lib/Apis/models/customer-overview-dto.ts +96 -0
  30. package/src/lib/Apis/models/customer-segment-dto.ts +39 -0
  31. package/src/lib/Apis/models/dashboard-overview-dto.ts +70 -0
  32. package/src/lib/Apis/models/discount-overview-dto.ts +71 -0
  33. package/src/lib/Apis/models/index.ts +29 -3
  34. package/src/lib/Apis/models/inline-response200.ts +34 -0
  35. package/src/lib/Apis/models/{store-api-keys-response-dto.ts → inline-response2001.ts} +14 -9
  36. package/src/lib/Apis/models/inventory-alert-dto.ts +67 -0
  37. package/src/lib/Apis/models/notification-dto.ts +107 -0
  38. package/src/lib/Apis/models/notifications-paginated-response-dto.ts +58 -0
  39. package/src/lib/Apis/models/order-overview-dto.ts +89 -0
  40. package/src/lib/Apis/models/{update-api-keys-dto.ts → order-status-count-dto.ts} +13 -13
  41. package/src/lib/Apis/models/payout-history-item-dto.ts +45 -0
  42. package/src/lib/Apis/models/popular-time-slot-dto.ts +39 -0
  43. package/src/lib/Apis/models/product-overview-dto.ts +90 -0
  44. package/src/lib/Apis/models/product.ts +6 -0
  45. package/src/lib/Apis/models/products-aidraft-body.ts +27 -0
  46. package/src/lib/Apis/models/products-processimage-body.ts +27 -0
  47. package/src/lib/Apis/models/rating-distribution-dto.ts +39 -0
  48. package/src/lib/Apis/models/recent-review-dto.ts +63 -0
  49. package/src/lib/Apis/models/review-overview-dto.ts +65 -0
  50. package/src/lib/Apis/models/store-balance-dto.ts +39 -0
  51. package/src/lib/Apis/models/store-entity.ts +12 -0
  52. package/src/lib/Apis/models/store-finance-overview-dto.ts +35 -0
  53. package/src/lib/Apis/models/store.ts +12 -0
  54. package/src/lib/Apis/models/time-series-point-dto.ts +33 -0
  55. package/src/lib/Apis/models/top-customer-dto.ts +57 -0
  56. package/src/lib/Apis/models/top-discount-dto.ts +51 -0
  57. package/src/lib/Apis/models/top-product-dto.ts +51 -0
  58. package/src/lib/Apis/models/unread-count-dto.ts +27 -0
  59. package/src/lib/Apis/models/update-store-dto.ts +12 -0
  60. package/src/screens/OrderReviewsScreen.tsx +6 -6
  61. package/src/screens/ProductDetailScreen.tsx +1 -1
  62. package/src/screens/SearchResultsScreen.tsx +17 -21
  63. package/src/screens/ShopScreen.tsx +0 -62
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 globalAxios20 = require('axios');
6
+ var globalAxios21 = 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 globalAxios20__default = /*#__PURE__*/_interopDefault(globalAxios20);
22
+ var globalAxios21__default = /*#__PURE__*/_interopDefault(globalAxios21);
23
23
  var Image4__default = /*#__PURE__*/_interopDefault(Image4);
24
24
  var Link9__default = /*#__PURE__*/_interopDefault(Link9);
25
25
  var dynamic__default = /*#__PURE__*/_interopDefault(dynamic);
@@ -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 = globalAxios20__default.default) {
294
+ constructor(configuration, basePath = BASE_PATH, axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
965
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
979
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
993
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
1006
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
1020
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
1034
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
1055
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
1069
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
1082
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
1096
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
1109
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
1123
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
1138
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
1151
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
1768
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
1782
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
1796
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
1812
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
1826
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
1840
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
1854
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
1868
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
1882
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
1896
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
2817
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
2831
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
2845
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
2860
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
2874
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
2888
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
2902
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
2916
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
2929
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
2942
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
2955
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
2969
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
2984
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
2998
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
3013
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
3395
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
3409
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
3423
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
3441
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
3873
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
3887
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
3903
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
3916
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
3930
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
3944
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
3958
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
3973
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
4398
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
4412
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
4425
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
4438
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
4452
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
4467
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
4483
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
4941
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
4955
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
4971
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
4984
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
4997
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
5010
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
5024
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
5038
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
5052
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
5789
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
5803
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
5821
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
5835
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
5856
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
5870
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
5883
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
5896
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
5910
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
5924
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
5945
+ return (axios = globalAxios21__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 = globalAxios20__default.default, basePath = BASE_PATH) => {
5960
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
5961
5961
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5962
5962
  return axios.request(axiosRequestArgs);
5963
5963
  };
@@ -6351,6 +6351,52 @@ var ProductsApiAxiosParamCreator = function(configuration) {
6351
6351
  options: localVarRequestOptions
6352
6352
  };
6353
6353
  },
6354
+ /**
6355
+ *
6356
+ * @summary Generate a product draft using AI
6357
+ * @param {ProductsAidraftBody} body
6358
+ * @param {*} [options] Override http request option.
6359
+ * @throws {RequiredError}
6360
+ */
6361
+ generateAiDraft: async (body, options = {}) => {
6362
+ if (body === null || body === void 0) {
6363
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling generateAiDraft.");
6364
+ }
6365
+ const localVarPath = `/products/ai-draft`;
6366
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
6367
+ let baseOptions;
6368
+ if (configuration) {
6369
+ baseOptions = configuration.baseOptions;
6370
+ }
6371
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
6372
+ const localVarHeaderParameter = {};
6373
+ const localVarQueryParameter = {};
6374
+ if (configuration && configuration.accessToken) {
6375
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
6376
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
6377
+ }
6378
+ if (configuration && configuration.apiKey) {
6379
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
6380
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
6381
+ }
6382
+ localVarHeaderParameter["Content-Type"] = "application/json";
6383
+ const query = new URLSearchParams(localVarUrlObj.search);
6384
+ for (const key in localVarQueryParameter) {
6385
+ query.set(key, localVarQueryParameter[key]);
6386
+ }
6387
+ for (const key in options.params) {
6388
+ query.set(key, options.params[key]);
6389
+ }
6390
+ localVarUrlObj.search = new URLSearchParams(query).toString();
6391
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6392
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6393
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
6394
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
6395
+ return {
6396
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
6397
+ options: localVarRequestOptions
6398
+ };
6399
+ },
6354
6400
  /**
6355
6401
  *
6356
6402
  * @summary [DEPRECATED] Use GET /products/all?categoryId=:id instead
@@ -6436,7 +6482,6 @@ var ProductsApiAxiosParamCreator = function(configuration) {
6436
6482
  /**
6437
6483
  *
6438
6484
  * @summary Get all products with filtering and pagination
6439
- * @param {string} [searchTerm]
6440
6485
  * @param {number} [maxPrice]
6441
6486
  * @param {number} [minPrice]
6442
6487
  * @param {string} [brandFilter] Comma-separated brand names
@@ -6450,7 +6495,7 @@ var ProductsApiAxiosParamCreator = function(configuration) {
6450
6495
  * @param {*} [options] Override http request option.
6451
6496
  * @throws {RequiredError}
6452
6497
  */
6453
- getAllProducts: async (searchTerm, maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options = {}) => {
6498
+ getAllProducts: async (maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options = {}) => {
6454
6499
  const localVarPath = `/products/all`;
6455
6500
  const localVarUrlObj = new URL(localVarPath, "https://example.com");
6456
6501
  let baseOptions;
@@ -6468,9 +6513,6 @@ var ProductsApiAxiosParamCreator = function(configuration) {
6468
6513
  const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
6469
6514
  localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
6470
6515
  }
6471
- if (searchTerm !== void 0) {
6472
- localVarQueryParameter["searchTerm"] = searchTerm;
6473
- }
6474
6516
  if (maxPrice !== void 0) {
6475
6517
  localVarQueryParameter["maxPrice"] = maxPrice;
6476
6518
  }
@@ -6899,6 +6941,94 @@ var ProductsApiAxiosParamCreator = function(configuration) {
6899
6941
  options: localVarRequestOptions
6900
6942
  };
6901
6943
  },
6944
+ /**
6945
+ *
6946
+ * @summary Process image using PhotoRoom (remove background)
6947
+ * @param {Blob} image
6948
+ * @param {*} [options] Override http request option.
6949
+ * @throws {RequiredError}
6950
+ */
6951
+ processImageForm: async (image, options = {}) => {
6952
+ if (image === null || image === void 0) {
6953
+ throw new RequiredError("image", "Required parameter image was null or undefined when calling processImageForm.");
6954
+ }
6955
+ const localVarPath = `/products/process-image`;
6956
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
6957
+ let baseOptions;
6958
+ if (configuration) {
6959
+ baseOptions = configuration.baseOptions;
6960
+ }
6961
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
6962
+ const localVarHeaderParameter = {};
6963
+ const localVarQueryParameter = {};
6964
+ const localVarFormParams = new FormData();
6965
+ if (configuration && configuration.accessToken) {
6966
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
6967
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
6968
+ }
6969
+ if (configuration && configuration.apiKey) {
6970
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
6971
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
6972
+ }
6973
+ if (image !== void 0) {
6974
+ localVarFormParams.append("image", image);
6975
+ }
6976
+ localVarHeaderParameter["Content-Type"] = "multipart/form-data";
6977
+ const query = new URLSearchParams(localVarUrlObj.search);
6978
+ for (const key in localVarQueryParameter) {
6979
+ query.set(key, localVarQueryParameter[key]);
6980
+ }
6981
+ for (const key in options.params) {
6982
+ query.set(key, options.params[key]);
6983
+ }
6984
+ localVarUrlObj.search = new URLSearchParams(query).toString();
6985
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6986
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6987
+ localVarRequestOptions.data = localVarFormParams;
6988
+ return {
6989
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
6990
+ options: localVarRequestOptions
6991
+ };
6992
+ },
6993
+ /**
6994
+ * Generates AI embeddings for all products. Run this once after enabling smart search, or to refresh all embeddings.
6995
+ * @summary Reindex all product embeddings for smart search
6996
+ * @param {*} [options] Override http request option.
6997
+ * @throws {RequiredError}
6998
+ */
6999
+ reindexEmbeddings: async (options = {}) => {
7000
+ const localVarPath = `/products/reindex-embeddings`;
7001
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7002
+ let baseOptions;
7003
+ if (configuration) {
7004
+ baseOptions = configuration.baseOptions;
7005
+ }
7006
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7007
+ const localVarHeaderParameter = {};
7008
+ const localVarQueryParameter = {};
7009
+ if (configuration && configuration.accessToken) {
7010
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
7011
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
7012
+ }
7013
+ if (configuration && configuration.apiKey) {
7014
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7015
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7016
+ }
7017
+ const query = new URLSearchParams(localVarUrlObj.search);
7018
+ for (const key in localVarQueryParameter) {
7019
+ query.set(key, localVarQueryParameter[key]);
7020
+ }
7021
+ for (const key in options.params) {
7022
+ query.set(key, options.params[key]);
7023
+ }
7024
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7025
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7026
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7027
+ return {
7028
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7029
+ options: localVarRequestOptions
7030
+ };
7031
+ },
6902
7032
  /**
6903
7033
  *
6904
7034
  * @summary Reorder products within a category or subcategory
@@ -6945,6 +7075,56 @@ var ProductsApiAxiosParamCreator = function(configuration) {
6945
7075
  options: localVarRequestOptions
6946
7076
  };
6947
7077
  },
7078
+ /**
7079
+ * Search products using natural language. Handles typos, synonyms, and returns related products ranked by relevance.
7080
+ * @summary Smart search using AI-powered semantic similarity
7081
+ * @param {string} searchTerm Search query (e.g., \"headache medicine\", \"iphn 12\")
7082
+ * @param {number} [limit] Maximum results (default: 20)
7083
+ * @param {*} [options] Override http request option.
7084
+ * @throws {RequiredError}
7085
+ */
7086
+ smartSearch: async (searchTerm, limit, options = {}) => {
7087
+ if (searchTerm === null || searchTerm === void 0) {
7088
+ throw new RequiredError("searchTerm", "Required parameter searchTerm was null or undefined when calling smartSearch.");
7089
+ }
7090
+ const localVarPath = `/products/search`;
7091
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7092
+ let baseOptions;
7093
+ if (configuration) {
7094
+ baseOptions = configuration.baseOptions;
7095
+ }
7096
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
7097
+ const localVarHeaderParameter = {};
7098
+ const localVarQueryParameter = {};
7099
+ if (configuration && configuration.accessToken) {
7100
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
7101
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
7102
+ }
7103
+ if (configuration && configuration.apiKey) {
7104
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7105
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7106
+ }
7107
+ if (searchTerm !== void 0) {
7108
+ localVarQueryParameter["searchTerm"] = searchTerm;
7109
+ }
7110
+ if (limit !== void 0) {
7111
+ localVarQueryParameter["limit"] = limit;
7112
+ }
7113
+ const query = new URLSearchParams(localVarUrlObj.search);
7114
+ for (const key in localVarQueryParameter) {
7115
+ query.set(key, localVarQueryParameter[key]);
7116
+ }
7117
+ for (const key in options.params) {
7118
+ query.set(key, options.params[key]);
7119
+ }
7120
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7121
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7122
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7123
+ return {
7124
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7125
+ options: localVarRequestOptions
7126
+ };
7127
+ },
6948
7128
  /**
6949
7129
  *
6950
7130
  * @summary Update variant inventory (add or subtract)
@@ -7117,7 +7297,7 @@ var ProductsApiFp = function(configuration) {
7117
7297
  */
7118
7298
  async addVariant(body, productId, options) {
7119
7299
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).addVariant(body, productId, options);
7120
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
7300
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7121
7301
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7122
7302
  return axios.request(axiosRequestArgs);
7123
7303
  };
@@ -7131,7 +7311,7 @@ var ProductsApiFp = function(configuration) {
7131
7311
  */
7132
7312
  async createProduct(body, options) {
7133
7313
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).createProduct(body, options);
7134
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
7314
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7135
7315
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7136
7316
  return axios.request(axiosRequestArgs);
7137
7317
  };
@@ -7145,7 +7325,7 @@ var ProductsApiFp = function(configuration) {
7145
7325
  */
7146
7326
  async createProductLegacy(body, options) {
7147
7327
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).createProductLegacy(body, options);
7148
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
7328
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7149
7329
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7150
7330
  return axios.request(axiosRequestArgs);
7151
7331
  };
@@ -7159,7 +7339,7 @@ var ProductsApiFp = function(configuration) {
7159
7339
  */
7160
7340
  async deleteProduct(id, options) {
7161
7341
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).deleteProduct(id, options);
7162
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
7342
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7163
7343
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7164
7344
  return axios.request(axiosRequestArgs);
7165
7345
  };
@@ -7174,7 +7354,21 @@ var ProductsApiFp = function(configuration) {
7174
7354
  */
7175
7355
  async deleteVariant(productId, variantId, options) {
7176
7356
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).deleteVariant(productId, variantId, options);
7177
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
7357
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7358
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7359
+ return axios.request(axiosRequestArgs);
7360
+ };
7361
+ },
7362
+ /**
7363
+ *
7364
+ * @summary Generate a product draft using AI
7365
+ * @param {ProductsAidraftBody} body
7366
+ * @param {*} [options] Override http request option.
7367
+ * @throws {RequiredError}
7368
+ */
7369
+ async generateAiDraft(body, options) {
7370
+ const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).generateAiDraft(body, options);
7371
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7178
7372
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7179
7373
  return axios.request(axiosRequestArgs);
7180
7374
  };
@@ -7188,7 +7382,7 @@ var ProductsApiFp = function(configuration) {
7188
7382
  */
7189
7383
  async getAllCategoryProducts(categoryId, options) {
7190
7384
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllCategoryProducts(categoryId, options);
7191
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
7385
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7192
7386
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7193
7387
  return axios.request(axiosRequestArgs);
7194
7388
  };
@@ -7201,7 +7395,7 @@ var ProductsApiFp = function(configuration) {
7201
7395
  */
7202
7396
  async getAllFilters(options) {
7203
7397
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllFilters(options);
7204
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
7398
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7205
7399
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7206
7400
  return axios.request(axiosRequestArgs);
7207
7401
  };
@@ -7209,7 +7403,6 @@ var ProductsApiFp = function(configuration) {
7209
7403
  /**
7210
7404
  *
7211
7405
  * @summary Get all products with filtering and pagination
7212
- * @param {string} [searchTerm]
7213
7406
  * @param {number} [maxPrice]
7214
7407
  * @param {number} [minPrice]
7215
7408
  * @param {string} [brandFilter] Comma-separated brand names
@@ -7223,9 +7416,9 @@ var ProductsApiFp = function(configuration) {
7223
7416
  * @param {*} [options] Override http request option.
7224
7417
  * @throws {RequiredError}
7225
7418
  */
7226
- async getAllProducts(searchTerm, maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options) {
7227
- const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProducts(searchTerm, maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options);
7228
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
7419
+ async getAllProducts(maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options) {
7420
+ const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProducts(maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options);
7421
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7229
7422
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7230
7423
  return axios.request(axiosRequestArgs);
7231
7424
  };
@@ -7239,7 +7432,7 @@ var ProductsApiFp = function(configuration) {
7239
7432
  */
7240
7433
  async getAllProductsBySubCategory(subCategoryId, options) {
7241
7434
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProductsBySubCategory(subCategoryId, options);
7242
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
7435
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7243
7436
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7244
7437
  return axios.request(axiosRequestArgs);
7245
7438
  };
@@ -7252,7 +7445,7 @@ var ProductsApiFp = function(configuration) {
7252
7445
  */
7253
7446
  async getAllProductsLight(options) {
7254
7447
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProductsLight(options);
7255
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
7448
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7256
7449
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7257
7450
  return axios.request(axiosRequestArgs);
7258
7451
  };
@@ -7265,7 +7458,7 @@ var ProductsApiFp = function(configuration) {
7265
7458
  */
7266
7459
  async getFeaturedProduct(options) {
7267
7460
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getFeaturedProduct(options);
7268
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
7461
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7269
7462
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7270
7463
  return axios.request(axiosRequestArgs);
7271
7464
  };
@@ -7278,7 +7471,7 @@ var ProductsApiFp = function(configuration) {
7278
7471
  */
7279
7472
  async getProductsInsights(options) {
7280
7473
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getProductsInsights(options);
7281
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
7474
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7282
7475
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7283
7476
  return axios.request(axiosRequestArgs);
7284
7477
  };
@@ -7293,7 +7486,7 @@ var ProductsApiFp = function(configuration) {
7293
7486
  */
7294
7487
  async getRelatedProducts(id, limit, options) {
7295
7488
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getRelatedProducts(id, limit, options);
7296
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
7489
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7297
7490
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7298
7491
  return axios.request(axiosRequestArgs);
7299
7492
  };
@@ -7307,7 +7500,7 @@ var ProductsApiFp = function(configuration) {
7307
7500
  */
7308
7501
  async getRelatedProductsLegacy(productId, options) {
7309
7502
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getRelatedProductsLegacy(productId, options);
7310
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
7503
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7311
7504
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7312
7505
  return axios.request(axiosRequestArgs);
7313
7506
  };
@@ -7321,7 +7514,7 @@ var ProductsApiFp = function(configuration) {
7321
7514
  */
7322
7515
  async getSingleProduct(id, options) {
7323
7516
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getSingleProduct(id, options);
7324
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
7517
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7325
7518
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7326
7519
  return axios.request(axiosRequestArgs);
7327
7520
  };
@@ -7335,7 +7528,7 @@ var ProductsApiFp = function(configuration) {
7335
7528
  */
7336
7529
  async getSingleProductLegacy(id, options) {
7337
7530
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getSingleProductLegacy(id, options);
7338
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
7531
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7339
7532
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7340
7533
  return axios.request(axiosRequestArgs);
7341
7534
  };
@@ -7350,7 +7543,34 @@ var ProductsApiFp = function(configuration) {
7350
7543
  */
7351
7544
  async getTopSellingProducts(limit, page, options) {
7352
7545
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getTopSellingProducts(limit, page, options);
7353
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
7546
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7547
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7548
+ return axios.request(axiosRequestArgs);
7549
+ };
7550
+ },
7551
+ /**
7552
+ *
7553
+ * @summary Process image using PhotoRoom (remove background)
7554
+ * @param {Blob} image
7555
+ * @param {*} [options] Override http request option.
7556
+ * @throws {RequiredError}
7557
+ */
7558
+ async processImageForm(image, options) {
7559
+ const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).processImageForm(image, options);
7560
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7561
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7562
+ return axios.request(axiosRequestArgs);
7563
+ };
7564
+ },
7565
+ /**
7566
+ * Generates AI embeddings for all products. Run this once after enabling smart search, or to refresh all embeddings.
7567
+ * @summary Reindex all product embeddings for smart search
7568
+ * @param {*} [options] Override http request option.
7569
+ * @throws {RequiredError}
7570
+ */
7571
+ async reindexEmbeddings(options) {
7572
+ const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).reindexEmbeddings(options);
7573
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7354
7574
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7355
7575
  return axios.request(axiosRequestArgs);
7356
7576
  };
@@ -7364,7 +7584,22 @@ var ProductsApiFp = function(configuration) {
7364
7584
  */
7365
7585
  async reorderProducts(body, options) {
7366
7586
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).reorderProducts(body, options);
7367
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
7587
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7588
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7589
+ return axios.request(axiosRequestArgs);
7590
+ };
7591
+ },
7592
+ /**
7593
+ * Search products using natural language. Handles typos, synonyms, and returns related products ranked by relevance.
7594
+ * @summary Smart search using AI-powered semantic similarity
7595
+ * @param {string} searchTerm Search query (e.g., \"headache medicine\", \"iphn 12\")
7596
+ * @param {number} [limit] Maximum results (default: 20)
7597
+ * @param {*} [options] Override http request option.
7598
+ * @throws {RequiredError}
7599
+ */
7600
+ async smartSearch(searchTerm, limit, options) {
7601
+ const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).smartSearch(searchTerm, limit, options);
7602
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7368
7603
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7369
7604
  return axios.request(axiosRequestArgs);
7370
7605
  };
@@ -7380,7 +7615,7 @@ var ProductsApiFp = function(configuration) {
7380
7615
  */
7381
7616
  async updateInventory(body, productId, variantId, options) {
7382
7617
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateInventory(body, productId, variantId, options);
7383
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
7618
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7384
7619
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7385
7620
  return axios.request(axiosRequestArgs);
7386
7621
  };
@@ -7395,7 +7630,7 @@ var ProductsApiFp = function(configuration) {
7395
7630
  */
7396
7631
  async updateProduct(body, id, options) {
7397
7632
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateProduct(body, id, options);
7398
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
7633
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7399
7634
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7400
7635
  return axios.request(axiosRequestArgs);
7401
7636
  };
@@ -7411,7 +7646,7 @@ var ProductsApiFp = function(configuration) {
7411
7646
  */
7412
7647
  async updateVariant(body, productId, variantId, options) {
7413
7648
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateVariant(body, productId, variantId, options);
7414
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
7649
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7415
7650
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7416
7651
  return axios.request(axiosRequestArgs);
7417
7652
  };
@@ -7476,6 +7711,17 @@ var ProductsApi = class extends BaseAPI {
7476
7711
  async deleteVariant(productId, variantId, options) {
7477
7712
  return ProductsApiFp(this.configuration).deleteVariant(productId, variantId, options).then((request) => request(this.axios, this.basePath));
7478
7713
  }
7714
+ /**
7715
+ *
7716
+ * @summary Generate a product draft using AI
7717
+ * @param {ProductsAidraftBody} body
7718
+ * @param {*} [options] Override http request option.
7719
+ * @throws {RequiredError}
7720
+ * @memberof ProductsApi
7721
+ */
7722
+ async generateAiDraft(body, options) {
7723
+ return ProductsApiFp(this.configuration).generateAiDraft(body, options).then((request) => request(this.axios, this.basePath));
7724
+ }
7479
7725
  /**
7480
7726
  *
7481
7727
  * @summary [DEPRECATED] Use GET /products/all?categoryId=:id instead
@@ -7500,7 +7746,6 @@ var ProductsApi = class extends BaseAPI {
7500
7746
  /**
7501
7747
  *
7502
7748
  * @summary Get all products with filtering and pagination
7503
- * @param {string} [searchTerm]
7504
7749
  * @param {number} [maxPrice]
7505
7750
  * @param {number} [minPrice]
7506
7751
  * @param {string} [brandFilter] Comma-separated brand names
@@ -7515,8 +7760,8 @@ var ProductsApi = class extends BaseAPI {
7515
7760
  * @throws {RequiredError}
7516
7761
  * @memberof ProductsApi
7517
7762
  */
7518
- async getAllProducts(searchTerm, maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options) {
7519
- return ProductsApiFp(this.configuration).getAllProducts(searchTerm, maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options).then((request) => request(this.axios, this.basePath));
7763
+ async getAllProducts(maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options) {
7764
+ return ProductsApiFp(this.configuration).getAllProducts(maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options).then((request) => request(this.axios, this.basePath));
7520
7765
  }
7521
7766
  /**
7522
7767
  *
@@ -7616,6 +7861,27 @@ var ProductsApi = class extends BaseAPI {
7616
7861
  async getTopSellingProducts(limit, page, options) {
7617
7862
  return ProductsApiFp(this.configuration).getTopSellingProducts(limit, page, options).then((request) => request(this.axios, this.basePath));
7618
7863
  }
7864
+ /**
7865
+ *
7866
+ * @summary Process image using PhotoRoom (remove background)
7867
+ * @param {Blob} image
7868
+ * @param {*} [options] Override http request option.
7869
+ * @throws {RequiredError}
7870
+ * @memberof ProductsApi
7871
+ */
7872
+ async processImageForm(image, options) {
7873
+ return ProductsApiFp(this.configuration).processImageForm(image, options).then((request) => request(this.axios, this.basePath));
7874
+ }
7875
+ /**
7876
+ * Generates AI embeddings for all products. Run this once after enabling smart search, or to refresh all embeddings.
7877
+ * @summary Reindex all product embeddings for smart search
7878
+ * @param {*} [options] Override http request option.
7879
+ * @throws {RequiredError}
7880
+ * @memberof ProductsApi
7881
+ */
7882
+ async reindexEmbeddings(options) {
7883
+ return ProductsApiFp(this.configuration).reindexEmbeddings(options).then((request) => request(this.axios, this.basePath));
7884
+ }
7619
7885
  /**
7620
7886
  *
7621
7887
  * @summary Reorder products within a category or subcategory
@@ -7627,6 +7893,18 @@ var ProductsApi = class extends BaseAPI {
7627
7893
  async reorderProducts(body, options) {
7628
7894
  return ProductsApiFp(this.configuration).reorderProducts(body, options).then((request) => request(this.axios, this.basePath));
7629
7895
  }
7896
+ /**
7897
+ * Search products using natural language. Handles typos, synonyms, and returns related products ranked by relevance.
7898
+ * @summary Smart search using AI-powered semantic similarity
7899
+ * @param {string} searchTerm Search query (e.g., \"headache medicine\", \"iphn 12\")
7900
+ * @param {number} [limit] Maximum results (default: 20)
7901
+ * @param {*} [options] Override http request option.
7902
+ * @throws {RequiredError}
7903
+ * @memberof ProductsApi
7904
+ */
7905
+ async smartSearch(searchTerm, limit, options) {
7906
+ return ProductsApiFp(this.configuration).smartSearch(searchTerm, limit, options).then((request) => request(this.axios, this.basePath));
7907
+ }
7630
7908
  /**
7631
7909
  *
7632
7910
  * @summary Update variant inventory (add or subtract)
@@ -8437,7 +8715,7 @@ var ReviewApiFp = function(configuration) {
8437
8715
  */
8438
8716
  async addReplay(body, id, options) {
8439
8717
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).addReplay(body, id, options);
8440
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
8718
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8441
8719
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8442
8720
  return axios.request(axiosRequestArgs);
8443
8721
  };
@@ -8452,7 +8730,7 @@ var ReviewApiFp = function(configuration) {
8452
8730
  */
8453
8731
  async checkReviewStatus(orderId, productVariantId, options) {
8454
8732
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).checkReviewStatus(orderId, productVariantId, options);
8455
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
8733
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8456
8734
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8457
8735
  return axios.request(axiosRequestArgs);
8458
8736
  };
@@ -8467,7 +8745,7 @@ var ReviewApiFp = function(configuration) {
8467
8745
  */
8468
8746
  async createReview(body, orderId, options) {
8469
8747
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).createReview(body, orderId, options);
8470
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
8748
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8471
8749
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8472
8750
  return axios.request(axiosRequestArgs);
8473
8751
  };
@@ -8480,7 +8758,7 @@ var ReviewApiFp = function(configuration) {
8480
8758
  */
8481
8759
  async getReviewCount(options) {
8482
8760
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewCount(options);
8483
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
8761
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8484
8762
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8485
8763
  return axios.request(axiosRequestArgs);
8486
8764
  };
@@ -8494,7 +8772,7 @@ var ReviewApiFp = function(configuration) {
8494
8772
  */
8495
8773
  async getReviewableProducts(orderId, options) {
8496
8774
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewableProducts(orderId, options);
8497
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
8775
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8498
8776
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8499
8777
  return axios.request(axiosRequestArgs);
8500
8778
  };
@@ -8508,7 +8786,7 @@ var ReviewApiFp = function(configuration) {
8508
8786
  */
8509
8787
  async getReviewsByDate(date, options) {
8510
8788
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByDate(date, options);
8511
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
8789
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8512
8790
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8513
8791
  return axios.request(axiosRequestArgs);
8514
8792
  };
@@ -8523,7 +8801,7 @@ var ReviewApiFp = function(configuration) {
8523
8801
  */
8524
8802
  async getReviewsByDateRange(from, to, options) {
8525
8803
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByDateRange(from, to, options);
8526
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
8804
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8527
8805
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8528
8806
  return axios.request(axiosRequestArgs);
8529
8807
  };
@@ -8537,7 +8815,7 @@ var ReviewApiFp = function(configuration) {
8537
8815
  */
8538
8816
  async getReviewsByProduct(productId, options) {
8539
8817
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByProduct(productId, options);
8540
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
8818
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8541
8819
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8542
8820
  return axios.request(axiosRequestArgs);
8543
8821
  };
@@ -8551,7 +8829,7 @@ var ReviewApiFp = function(configuration) {
8551
8829
  */
8552
8830
  async getReviewsByRating(rating, options) {
8553
8831
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByRating(rating, options);
8554
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
8832
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8555
8833
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8556
8834
  return axios.request(axiosRequestArgs);
8557
8835
  };
@@ -8564,7 +8842,7 @@ var ReviewApiFp = function(configuration) {
8564
8842
  */
8565
8843
  async getReviewsByStore(options) {
8566
8844
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByStore(options);
8567
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
8845
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8568
8846
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8569
8847
  return axios.request(axiosRequestArgs);
8570
8848
  };
@@ -8578,7 +8856,7 @@ var ReviewApiFp = function(configuration) {
8578
8856
  */
8579
8857
  async getReviewsByType(type, options) {
8580
8858
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByType(type, options);
8581
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
8859
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8582
8860
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8583
8861
  return axios.request(axiosRequestArgs);
8584
8862
  };
@@ -8592,7 +8870,7 @@ var ReviewApiFp = function(configuration) {
8592
8870
  */
8593
8871
  async getReviewsByUser(userId, options) {
8594
8872
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByUser(userId, options);
8595
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
8873
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8596
8874
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8597
8875
  return axios.request(axiosRequestArgs);
8598
8876
  };
@@ -8605,7 +8883,7 @@ var ReviewApiFp = function(configuration) {
8605
8883
  */
8606
8884
  async getUserCompletedOrders(options) {
8607
8885
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getUserCompletedOrders(options);
8608
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
8886
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8609
8887
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8610
8888
  return axios.request(axiosRequestArgs);
8611
8889
  };
@@ -8619,7 +8897,7 @@ var ReviewApiFp = function(configuration) {
8619
8897
  */
8620
8898
  async removeReplay(id, options) {
8621
8899
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).removeReplay(id, options);
8622
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
8900
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8623
8901
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8624
8902
  return axios.request(axiosRequestArgs);
8625
8903
  };
@@ -8633,7 +8911,7 @@ var ReviewApiFp = function(configuration) {
8633
8911
  */
8634
8912
  async removeReview(id, options) {
8635
8913
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).removeReview(id, options);
8636
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
8914
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8637
8915
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8638
8916
  return axios.request(axiosRequestArgs);
8639
8917
  };
@@ -8648,7 +8926,7 @@ var ReviewApiFp = function(configuration) {
8648
8926
  */
8649
8927
  async updateReplay(body, id, options) {
8650
8928
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).updateReplay(body, id, options);
8651
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
8929
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8652
8930
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8653
8931
  return axios.request(axiosRequestArgs);
8654
8932
  };
@@ -8663,7 +8941,7 @@ var ReviewApiFp = function(configuration) {
8663
8941
  */
8664
8942
  async updateReview(body, id, options) {
8665
8943
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).updateReview(body, id, options);
8666
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
8944
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8667
8945
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8668
8946
  return axios.request(axiosRequestArgs);
8669
8947
  };
@@ -9136,7 +9414,7 @@ var ShippingApiFp = function(configuration) {
9136
9414
  */
9137
9415
  async getAllShipments(options) {
9138
9416
  const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getAllShipments(options);
9139
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
9417
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
9140
9418
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
9141
9419
  return axios.request(axiosRequestArgs);
9142
9420
  };
@@ -9149,7 +9427,7 @@ var ShippingApiFp = function(configuration) {
9149
9427
  */
9150
9428
  async getAllUserShipments(options) {
9151
9429
  const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getAllUserShipments(options);
9152
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
9430
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
9153
9431
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
9154
9432
  return axios.request(axiosRequestArgs);
9155
9433
  };
@@ -9163,7 +9441,7 @@ var ShippingApiFp = function(configuration) {
9163
9441
  */
9164
9442
  async getOrderShipment(orderId, options) {
9165
9443
  const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getOrderShipment(orderId, options);
9166
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
9444
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
9167
9445
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
9168
9446
  return axios.request(axiosRequestArgs);
9169
9447
  };
@@ -9178,7 +9456,7 @@ var ShippingApiFp = function(configuration) {
9178
9456
  */
9179
9457
  async getShippingRates(body, addressId, options) {
9180
9458
  const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getShippingRates(body, addressId, options);
9181
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
9459
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
9182
9460
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
9183
9461
  return axios.request(axiosRequestArgs);
9184
9462
  };
@@ -9191,7 +9469,7 @@ var ShippingApiFp = function(configuration) {
9191
9469
  */
9192
9470
  async getStoreAddress(options) {
9193
9471
  const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getStoreAddress(options);
9194
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
9472
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
9195
9473
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
9196
9474
  return axios.request(axiosRequestArgs);
9197
9475
  };
@@ -9206,7 +9484,7 @@ var ShippingApiFp = function(configuration) {
9206
9484
  */
9207
9485
  async updateManualShipmentStatus(body, shipmentId, options) {
9208
9486
  const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).updateManualShipmentStatus(body, shipmentId, options);
9209
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
9487
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
9210
9488
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
9211
9489
  return axios.request(axiosRequestArgs);
9212
9490
  };
@@ -9524,16 +9802,12 @@ var StoresApiAxiosParamCreator = function(configuration) {
9524
9802
  },
9525
9803
  /**
9526
9804
  *
9527
- * @summary Get store API keys with masked values
9528
- * @param {string} storeId
9805
+ * @summary Get store finance overview
9529
9806
  * @param {*} [options] Override http request option.
9530
9807
  * @throws {RequiredError}
9531
9808
  */
9532
- getApiKeys: async (storeId, options = {}) => {
9533
- if (storeId === null || storeId === void 0) {
9534
- throw new RequiredError("storeId", "Required parameter storeId was null or undefined when calling getApiKeys.");
9535
- }
9536
- const localVarPath = `/stores/{storeId}/api-keys`.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
9809
+ getFinanceOverview: async (options = {}) => {
9810
+ const localVarPath = `/stores/finance/overview`;
9537
9811
  const localVarUrlObj = new URL(localVarPath, "https://example.com");
9538
9812
  let baseOptions;
9539
9813
  if (configuration) {
@@ -9756,49 +10030,6 @@ var StoresApiAxiosParamCreator = function(configuration) {
9756
10030
  options: localVarRequestOptions
9757
10031
  };
9758
10032
  },
9759
- /**
9760
- *
9761
- * @summary Revoke/delete a specific API key
9762
- * @param {string} storeId
9763
- * @param {string} keyType Type of key to revoke
9764
- * @param {*} [options] Override http request option.
9765
- * @throws {RequiredError}
9766
- */
9767
- revokeApiKey: async (storeId, keyType, options = {}) => {
9768
- if (storeId === null || storeId === void 0) {
9769
- throw new RequiredError("storeId", "Required parameter storeId was null or undefined when calling revokeApiKey.");
9770
- }
9771
- if (keyType === null || keyType === void 0) {
9772
- throw new RequiredError("keyType", "Required parameter keyType was null or undefined when calling revokeApiKey.");
9773
- }
9774
- const localVarPath = `/stores/{storeId}/api-keys/{keyType}`.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId))).replace(`{${"keyType"}}`, encodeURIComponent(String(keyType)));
9775
- const localVarUrlObj = new URL(localVarPath, "https://example.com");
9776
- let baseOptions;
9777
- if (configuration) {
9778
- baseOptions = configuration.baseOptions;
9779
- }
9780
- const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
9781
- const localVarHeaderParameter = {};
9782
- const localVarQueryParameter = {};
9783
- if (configuration && configuration.apiKey) {
9784
- const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
9785
- localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
9786
- }
9787
- const query = new URLSearchParams(localVarUrlObj.search);
9788
- for (const key in localVarQueryParameter) {
9789
- query.set(key, localVarQueryParameter[key]);
9790
- }
9791
- for (const key in options.params) {
9792
- query.set(key, options.params[key]);
9793
- }
9794
- localVarUrlObj.search = new URLSearchParams(query).toString();
9795
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9796
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
9797
- return {
9798
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
9799
- options: localVarRequestOptions
9800
- };
9801
- },
9802
10033
  /**
9803
10034
  *
9804
10035
  * @param {*} [options] Override http request option.
@@ -10205,33 +10436,24 @@ var StoresApiAxiosParamCreator = function(configuration) {
10205
10436
  },
10206
10437
  /**
10207
10438
  *
10208
- * @summary Update store API keys (Stripe/Shippo)
10209
- * @param {UpdateApiKeysDto} body
10210
- * @param {string} storeId
10439
+ * @summary Generate Stripe Onboarding Link
10211
10440
  * @param {*} [options] Override http request option.
10212
10441
  * @throws {RequiredError}
10213
10442
  */
10214
- updateApiKeys: async (body, storeId, options = {}) => {
10215
- if (body === null || body === void 0) {
10216
- throw new RequiredError("body", "Required parameter body was null or undefined when calling updateApiKeys.");
10217
- }
10218
- if (storeId === null || storeId === void 0) {
10219
- throw new RequiredError("storeId", "Required parameter storeId was null or undefined when calling updateApiKeys.");
10220
- }
10221
- const localVarPath = `/stores/{storeId}/api-keys`.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
10443
+ startOnboarding: async (options = {}) => {
10444
+ const localVarPath = `/stores/onboarding`;
10222
10445
  const localVarUrlObj = new URL(localVarPath, "https://example.com");
10223
10446
  let baseOptions;
10224
10447
  if (configuration) {
10225
10448
  baseOptions = configuration.baseOptions;
10226
10449
  }
10227
- const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
10450
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
10228
10451
  const localVarHeaderParameter = {};
10229
10452
  const localVarQueryParameter = {};
10230
10453
  if (configuration && configuration.apiKey) {
10231
10454
  const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
10232
10455
  localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
10233
10456
  }
10234
- localVarHeaderParameter["Content-Type"] = "application/json";
10235
10457
  const query = new URLSearchParams(localVarUrlObj.search);
10236
10458
  for (const key in localVarQueryParameter) {
10237
10459
  query.set(key, localVarQueryParameter[key]);
@@ -10242,8 +10464,6 @@ var StoresApiAxiosParamCreator = function(configuration) {
10242
10464
  localVarUrlObj.search = new URLSearchParams(query).toString();
10243
10465
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10244
10466
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10245
- const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
10246
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
10247
10467
  return {
10248
10468
  url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
10249
10469
  options: localVarRequestOptions
@@ -10401,7 +10621,7 @@ var StoresApiFp = function(configuration) {
10401
10621
  */
10402
10622
  async createShippoAccount(body, storeId, options) {
10403
10623
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).createShippoAccount(body, storeId, options);
10404
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10624
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10405
10625
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10406
10626
  return axios.request(axiosRequestArgs);
10407
10627
  };
@@ -10415,7 +10635,7 @@ var StoresApiFp = function(configuration) {
10415
10635
  */
10416
10636
  async createStore(body, options) {
10417
10637
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).createStore(body, options);
10418
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10638
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10419
10639
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10420
10640
  return axios.request(axiosRequestArgs);
10421
10641
  };
@@ -10429,7 +10649,7 @@ var StoresApiFp = function(configuration) {
10429
10649
  */
10430
10650
  async deleteRefillRequest(requestId, options) {
10431
10651
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteRefillRequest(requestId, options);
10432
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10652
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10433
10653
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10434
10654
  return axios.request(axiosRequestArgs);
10435
10655
  };
@@ -10443,7 +10663,7 @@ var StoresApiFp = function(configuration) {
10443
10663
  */
10444
10664
  async deleteStore(id, options) {
10445
10665
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteStore(id, options);
10446
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10666
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10447
10667
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10448
10668
  return axios.request(axiosRequestArgs);
10449
10669
  };
@@ -10457,7 +10677,7 @@ var StoresApiFp = function(configuration) {
10457
10677
  */
10458
10678
  async deleteTransferePatientsRequest(requestId, options) {
10459
10679
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteTransferePatientsRequest(requestId, options);
10460
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10680
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10461
10681
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10462
10682
  return axios.request(axiosRequestArgs);
10463
10683
  };
@@ -10470,21 +10690,20 @@ var StoresApiFp = function(configuration) {
10470
10690
  */
10471
10691
  async getAllStores(options) {
10472
10692
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getAllStores(options);
10473
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10693
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10474
10694
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10475
10695
  return axios.request(axiosRequestArgs);
10476
10696
  };
10477
10697
  },
10478
10698
  /**
10479
10699
  *
10480
- * @summary Get store API keys with masked values
10481
- * @param {string} storeId
10700
+ * @summary Get store finance overview
10482
10701
  * @param {*} [options] Override http request option.
10483
10702
  * @throws {RequiredError}
10484
10703
  */
10485
- async getApiKeys(storeId, options) {
10486
- const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getApiKeys(storeId, options);
10487
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10704
+ async getFinanceOverview(options) {
10705
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getFinanceOverview(options);
10706
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10488
10707
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10489
10708
  return axios.request(axiosRequestArgs);
10490
10709
  };
@@ -10498,7 +10717,7 @@ var StoresApiFp = function(configuration) {
10498
10717
  */
10499
10718
  async getRefillRequests(storeId, options) {
10500
10719
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getRefillRequests(storeId, options);
10501
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10720
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10502
10721
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10503
10722
  return axios.request(axiosRequestArgs);
10504
10723
  };
@@ -10512,7 +10731,7 @@ var StoresApiFp = function(configuration) {
10512
10731
  */
10513
10732
  async getShippoAccount(storeId, options) {
10514
10733
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getShippoAccount(storeId, options);
10515
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10734
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10516
10735
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10517
10736
  return axios.request(axiosRequestArgs);
10518
10737
  };
@@ -10526,7 +10745,7 @@ var StoresApiFp = function(configuration) {
10526
10745
  */
10527
10746
  async getStoreById(storeId, options) {
10528
10747
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getStoreById(storeId, options);
10529
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10748
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10530
10749
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10531
10750
  return axios.request(axiosRequestArgs);
10532
10751
  };
@@ -10540,7 +10759,7 @@ var StoresApiFp = function(configuration) {
10540
10759
  */
10541
10760
  async getStoreCapabilities(storeId, options) {
10542
10761
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getStoreCapabilities(storeId, options);
10543
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10762
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10544
10763
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10545
10764
  return axios.request(axiosRequestArgs);
10546
10765
  };
@@ -10554,22 +10773,7 @@ var StoresApiFp = function(configuration) {
10554
10773
  */
10555
10774
  async getTransferePatientsRequests(storeId, options) {
10556
10775
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getTransferePatientsRequests(storeId, options);
10557
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10558
- const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10559
- return axios.request(axiosRequestArgs);
10560
- };
10561
- },
10562
- /**
10563
- *
10564
- * @summary Revoke/delete a specific API key
10565
- * @param {string} storeId
10566
- * @param {string} keyType Type of key to revoke
10567
- * @param {*} [options] Override http request option.
10568
- * @throws {RequiredError}
10569
- */
10570
- async revokeApiKey(storeId, keyType, options) {
10571
- const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).revokeApiKey(storeId, keyType, options);
10572
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10776
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10573
10777
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10574
10778
  return axios.request(axiosRequestArgs);
10575
10779
  };
@@ -10581,7 +10785,7 @@ var StoresApiFp = function(configuration) {
10581
10785
  */
10582
10786
  async sendContactUsEmail(options) {
10583
10787
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendContactUsEmail(options);
10584
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10788
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10585
10789
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10586
10790
  return axios.request(axiosRequestArgs);
10587
10791
  };
@@ -10593,7 +10797,7 @@ var StoresApiFp = function(configuration) {
10593
10797
  */
10594
10798
  async sendContactUsEmailEzrirx(options) {
10595
10799
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendContactUsEmailEzrirx(options);
10596
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10800
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10597
10801
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10598
10802
  return axios.request(axiosRequestArgs);
10599
10803
  };
@@ -10605,7 +10809,7 @@ var StoresApiFp = function(configuration) {
10605
10809
  */
10606
10810
  async sendGMBookDemoEmail(options) {
10607
10811
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMBookDemoEmail(options);
10608
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10812
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10609
10813
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10610
10814
  return axios.request(axiosRequestArgs);
10611
10815
  };
@@ -10617,7 +10821,7 @@ var StoresApiFp = function(configuration) {
10617
10821
  */
10618
10822
  async sendGMContactUsEmail(options) {
10619
10823
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMContactUsEmail(options);
10620
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10824
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10621
10825
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10622
10826
  return axios.request(axiosRequestArgs);
10623
10827
  };
@@ -10629,7 +10833,7 @@ var StoresApiFp = function(configuration) {
10629
10833
  */
10630
10834
  async sendGMJoinUsEmail(options) {
10631
10835
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMJoinUsEmail(options);
10632
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10836
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10633
10837
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10634
10838
  return axios.request(axiosRequestArgs);
10635
10839
  };
@@ -10641,7 +10845,7 @@ var StoresApiFp = function(configuration) {
10641
10845
  */
10642
10846
  async sendHolyFamilyEmail(options) {
10643
10847
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendHolyFamilyEmail(options);
10644
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10848
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10645
10849
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10646
10850
  return axios.request(axiosRequestArgs);
10647
10851
  };
@@ -10653,7 +10857,7 @@ var StoresApiFp = function(configuration) {
10653
10857
  */
10654
10858
  async sendMghBookingForm(options) {
10655
10859
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendMghBookingForm(options);
10656
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10860
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10657
10861
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10658
10862
  return axios.request(axiosRequestArgs);
10659
10863
  };
@@ -10667,7 +10871,7 @@ var StoresApiFp = function(configuration) {
10667
10871
  */
10668
10872
  async sendNewClientEmail(body, options) {
10669
10873
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendNewClientEmail(body, options);
10670
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10874
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10671
10875
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10672
10876
  return axios.request(axiosRequestArgs);
10673
10877
  };
@@ -10680,7 +10884,7 @@ var StoresApiFp = function(configuration) {
10680
10884
  */
10681
10885
  async sendNewPatientEmail(body, options) {
10682
10886
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendNewPatientEmail(body, options);
10683
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10887
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10684
10888
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10685
10889
  return axios.request(axiosRequestArgs);
10686
10890
  };
@@ -10693,7 +10897,7 @@ var StoresApiFp = function(configuration) {
10693
10897
  */
10694
10898
  async sendRefillEmail(body, options) {
10695
10899
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendRefillEmail(body, options);
10696
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10900
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10697
10901
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10698
10902
  return axios.request(axiosRequestArgs);
10699
10903
  };
@@ -10707,22 +10911,20 @@ var StoresApiFp = function(configuration) {
10707
10911
  */
10708
10912
  async sendScheduleTourEmail(body, options) {
10709
10913
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendScheduleTourEmail(body, options);
10710
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10914
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10711
10915
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10712
10916
  return axios.request(axiosRequestArgs);
10713
10917
  };
10714
10918
  },
10715
10919
  /**
10716
10920
  *
10717
- * @summary Update store API keys (Stripe/Shippo)
10718
- * @param {UpdateApiKeysDto} body
10719
- * @param {string} storeId
10921
+ * @summary Generate Stripe Onboarding Link
10720
10922
  * @param {*} [options] Override http request option.
10721
10923
  * @throws {RequiredError}
10722
10924
  */
10723
- async updateApiKeys(body, storeId, options) {
10724
- const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateApiKeys(body, storeId, options);
10725
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10925
+ async startOnboarding(options) {
10926
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).startOnboarding(options);
10927
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10726
10928
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10727
10929
  return axios.request(axiosRequestArgs);
10728
10930
  };
@@ -10737,7 +10939,7 @@ var StoresApiFp = function(configuration) {
10737
10939
  */
10738
10940
  async updateRefillRequest(body, requestId, options) {
10739
10941
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateRefillRequest(body, requestId, options);
10740
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10942
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10741
10943
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10742
10944
  return axios.request(axiosRequestArgs);
10743
10945
  };
@@ -10752,7 +10954,7 @@ var StoresApiFp = function(configuration) {
10752
10954
  */
10753
10955
  async updateStore(body, id, options) {
10754
10956
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateStore(body, id, options);
10755
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10957
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10756
10958
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10757
10959
  return axios.request(axiosRequestArgs);
10758
10960
  };
@@ -10767,7 +10969,7 @@ var StoresApiFp = function(configuration) {
10767
10969
  */
10768
10970
  async updateTransferePatientsRequest(body, requestId, options) {
10769
10971
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateTransferePatientsRequest(body, requestId, options);
10770
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
10972
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
10771
10973
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10772
10974
  return axios.request(axiosRequestArgs);
10773
10975
  };
@@ -10843,14 +11045,13 @@ var StoresApi = class extends BaseAPI {
10843
11045
  }
10844
11046
  /**
10845
11047
  *
10846
- * @summary Get store API keys with masked values
10847
- * @param {string} storeId
11048
+ * @summary Get store finance overview
10848
11049
  * @param {*} [options] Override http request option.
10849
11050
  * @throws {RequiredError}
10850
11051
  * @memberof StoresApi
10851
11052
  */
10852
- async getApiKeys(storeId, options) {
10853
- return StoresApiFp(this.configuration).getApiKeys(storeId, options).then((request) => request(this.axios, this.basePath));
11053
+ async getFinanceOverview(options) {
11054
+ return StoresApiFp(this.configuration).getFinanceOverview(options).then((request) => request(this.axios, this.basePath));
10854
11055
  }
10855
11056
  /**
10856
11057
  *
@@ -10907,18 +11108,6 @@ var StoresApi = class extends BaseAPI {
10907
11108
  async getTransferePatientsRequests(storeId, options) {
10908
11109
  return StoresApiFp(this.configuration).getTransferePatientsRequests(storeId, options).then((request) => request(this.axios, this.basePath));
10909
11110
  }
10910
- /**
10911
- *
10912
- * @summary Revoke/delete a specific API key
10913
- * @param {string} storeId
10914
- * @param {string} keyType Type of key to revoke
10915
- * @param {*} [options] Override http request option.
10916
- * @throws {RequiredError}
10917
- * @memberof StoresApi
10918
- */
10919
- async revokeApiKey(storeId, keyType, options) {
10920
- return StoresApiFp(this.configuration).revokeApiKey(storeId, keyType, options).then((request) => request(this.axios, this.basePath));
10921
- }
10922
11111
  /**
10923
11112
  *
10924
11113
  * @param {*} [options] Override http request option.
@@ -11026,15 +11215,13 @@ var StoresApi = class extends BaseAPI {
11026
11215
  }
11027
11216
  /**
11028
11217
  *
11029
- * @summary Update store API keys (Stripe/Shippo)
11030
- * @param {UpdateApiKeysDto} body
11031
- * @param {string} storeId
11218
+ * @summary Generate Stripe Onboarding Link
11032
11219
  * @param {*} [options] Override http request option.
11033
11220
  * @throws {RequiredError}
11034
11221
  * @memberof StoresApi
11035
11222
  */
11036
- async updateApiKeys(body, storeId, options) {
11037
- return StoresApiFp(this.configuration).updateApiKeys(body, storeId, options).then((request) => request(this.axios, this.basePath));
11223
+ async startOnboarding(options) {
11224
+ return StoresApiFp(this.configuration).startOnboarding(options).then((request) => request(this.axios, this.basePath));
11038
11225
  }
11039
11226
  /**
11040
11227
  *
@@ -11271,7 +11458,7 @@ var WishlistApiFp = function(configuration) {
11271
11458
  */
11272
11459
  async addToWishlist(productId, options) {
11273
11460
  const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).addToWishlist(productId, options);
11274
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
11461
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
11275
11462
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
11276
11463
  return axios.request(axiosRequestArgs);
11277
11464
  };
@@ -11284,7 +11471,7 @@ var WishlistApiFp = function(configuration) {
11284
11471
  */
11285
11472
  async clearWishlist(options) {
11286
11473
  const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).clearWishlist(options);
11287
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
11474
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
11288
11475
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
11289
11476
  return axios.request(axiosRequestArgs);
11290
11477
  };
@@ -11297,7 +11484,7 @@ var WishlistApiFp = function(configuration) {
11297
11484
  */
11298
11485
  async getWishlist(options) {
11299
11486
  const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).getWishlist(options);
11300
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
11487
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
11301
11488
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
11302
11489
  return axios.request(axiosRequestArgs);
11303
11490
  };
@@ -11310,7 +11497,7 @@ var WishlistApiFp = function(configuration) {
11310
11497
  */
11311
11498
  async getWishlistItemCount(options) {
11312
11499
  const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).getWishlistItemCount(options);
11313
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
11500
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
11314
11501
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
11315
11502
  return axios.request(axiosRequestArgs);
11316
11503
  };
@@ -11324,7 +11511,7 @@ var WishlistApiFp = function(configuration) {
11324
11511
  */
11325
11512
  async removeFromWishlist(productId, options) {
11326
11513
  const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).removeFromWishlist(productId, options);
11327
- return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
11514
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
11328
11515
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
11329
11516
  return axios.request(axiosRequestArgs);
11330
11517
  };
@@ -11405,13 +11592,6 @@ var AddressCreatedRequestAddressTypeEnum = /* @__PURE__ */ ((AddressCreatedReque
11405
11592
  return AddressCreatedRequestAddressTypeEnum2;
11406
11593
  })(AddressCreatedRequestAddressTypeEnum || {});
11407
11594
 
11408
- // src/lib/Apis/models/api-key-info-dto.ts
11409
- var ApiKeyInfoDtoKeyTypeEnum = /* @__PURE__ */ ((ApiKeyInfoDtoKeyTypeEnum2) => {
11410
- ApiKeyInfoDtoKeyTypeEnum2["Stripe"] = "stripe";
11411
- ApiKeyInfoDtoKeyTypeEnum2["Shippo"] = "shippo";
11412
- return ApiKeyInfoDtoKeyTypeEnum2;
11413
- })(ApiKeyInfoDtoKeyTypeEnum || {});
11414
-
11415
11595
  // src/lib/Apis/models/bulk-channel-toggle-dto.ts
11416
11596
  var BulkChannelToggleDtoCategoryEnum = /* @__PURE__ */ ((BulkChannelToggleDtoCategoryEnum2) => {
11417
11597
  BulkChannelToggleDtoCategoryEnum2["Transactional"] = "transactional";
@@ -11489,6 +11669,13 @@ var DiscountStateEnum = /* @__PURE__ */ ((DiscountStateEnum2) => {
11489
11669
  return DiscountStateEnum2;
11490
11670
  })(DiscountStateEnum || {});
11491
11671
 
11672
+ // src/lib/Apis/models/inventory-alert-dto.ts
11673
+ var InventoryAlertDtoAlertTypeEnum = /* @__PURE__ */ ((InventoryAlertDtoAlertTypeEnum2) => {
11674
+ InventoryAlertDtoAlertTypeEnum2["LOWSTOCK"] = "LOW_STOCK";
11675
+ InventoryAlertDtoAlertTypeEnum2["OUTOFSTOCK"] = "OUT_OF_STOCK";
11676
+ return InventoryAlertDtoAlertTypeEnum2;
11677
+ })(InventoryAlertDtoAlertTypeEnum || {});
11678
+
11492
11679
  // src/lib/Apis/models/manual-discount-dto.ts
11493
11680
  var ManualDiscountDtoValueTypeEnum = /* @__PURE__ */ ((ManualDiscountDtoValueTypeEnum2) => {
11494
11681
  ManualDiscountDtoValueTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
@@ -11523,6 +11710,29 @@ var ManualOrderDTOPaymentStatusEnum = /* @__PURE__ */ ((ManualOrderDTOPaymentSta
11523
11710
  return ManualOrderDTOPaymentStatusEnum2;
11524
11711
  })(ManualOrderDTOPaymentStatusEnum || {});
11525
11712
 
11713
+ // src/lib/Apis/models/notification-dto.ts
11714
+ var NotificationDtoTypeEnum = /* @__PURE__ */ ((NotificationDtoTypeEnum2) => {
11715
+ NotificationDtoTypeEnum2["ORDERCONFIRMATION"] = "ORDER_CONFIRMATION";
11716
+ NotificationDtoTypeEnum2["PAYMENTFAILED"] = "PAYMENT_FAILED";
11717
+ NotificationDtoTypeEnum2["ORDERSHIPPED"] = "ORDER_SHIPPED";
11718
+ NotificationDtoTypeEnum2["ORDERDELIVERED"] = "ORDER_DELIVERED";
11719
+ NotificationDtoTypeEnum2["REFUNDPROCESSED"] = "REFUND_PROCESSED";
11720
+ NotificationDtoTypeEnum2["REVIEWREPLY"] = "REVIEW_REPLY";
11721
+ NotificationDtoTypeEnum2["ABANDONEDCARTREMINDER"] = "ABANDONED_CART_REMINDER";
11722
+ NotificationDtoTypeEnum2["PRICEDROPALERT"] = "PRICE_DROP_ALERT";
11723
+ NotificationDtoTypeEnum2["BACKINSTOCK"] = "BACK_IN_STOCK";
11724
+ NotificationDtoTypeEnum2["PASSWORDRESET"] = "PASSWORD_RESET";
11725
+ NotificationDtoTypeEnum2["NEWDEVICELOGIN"] = "NEW_DEVICE_LOGIN";
11726
+ NotificationDtoTypeEnum2["TWOFACODE"] = "TWO_FA_CODE";
11727
+ NotificationDtoTypeEnum2["NEWORDER"] = "NEW_ORDER";
11728
+ NotificationDtoTypeEnum2["LOWSTOCKWARNING"] = "LOW_STOCK_WARNING";
11729
+ NotificationDtoTypeEnum2["NEWRETURNREQUEST"] = "NEW_RETURN_REQUEST";
11730
+ NotificationDtoTypeEnum2["NEWUSERREGISTERED"] = "NEW_USER_REGISTERED";
11731
+ NotificationDtoTypeEnum2["HIGHVALUEORDERALERT"] = "HIGH_VALUE_ORDER_ALERT";
11732
+ NotificationDtoTypeEnum2["PAYOUTFAILED"] = "PAYOUT_FAILED";
11733
+ return NotificationDtoTypeEnum2;
11734
+ })(NotificationDtoTypeEnum || {});
11735
+
11526
11736
  // src/lib/Apis/models/order.ts
11527
11737
  var OrderOrderTypeEnum = /* @__PURE__ */ ((OrderOrderTypeEnum2) => {
11528
11738
  OrderOrderTypeEnum2["Pickup"] = "Pickup";
@@ -12108,7 +12318,7 @@ init_config();
12108
12318
  init_config();
12109
12319
  init_sharedConfig();
12110
12320
  init_sharedConfig();
12111
- globalAxios20__default.default.interceptors.request.use(async (config) => {
12321
+ globalAxios21__default.default.interceptors.request.use(async (config) => {
12112
12322
  if (!config?.headers) {
12113
12323
  throw new Error(
12114
12324
  `Expected 'config' and 'config.headers' not to be undefined`
@@ -13071,7 +13281,7 @@ function ProductCard({
13071
13281
  ),
13072
13282
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-4 flex-1 flex flex-col", children: [
13073
13283
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-0 flex-1 flex flex-col", children: [
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: [
13284
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1 mb-2 flex-wrap", children: displayIsDiscounted && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-haccent-500 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: [
13075
13285
  "-",
13076
13286
  displayDiscountAmount,
13077
13287
  "%"
@@ -13325,8 +13535,6 @@ function useProducts(filters, page = 1, limit = 20) {
13325
13535
  ],
13326
13536
  queryFn: async () => {
13327
13537
  const response = await new ProductsApi(AXIOS_CONFIG).getAllProducts(
13328
- filters?.search ?? "",
13329
- // searchTerm
13330
13538
  filters?.maxPrice,
13331
13539
  // maxPrice
13332
13540
  filters?.minPrice,
@@ -13532,52 +13740,6 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
13532
13740
  () => [...categories].sort((a, b) => (b.productCount ?? 0) - (a.productCount ?? 0)).slice(0, 6),
13533
13741
  [categories]
13534
13742
  );
13535
- const productInsights = React10.useMemo(() => {
13536
- if (!products.length) {
13537
- return { newArrivals: 0, inStockCount: 0 };
13538
- }
13539
- const monthAgo = Date.now() - 30 * 24 * 60 * 60 * 1e3;
13540
- let newArrivals2 = 0;
13541
- let inStockCount = 0;
13542
- products.forEach((product) => {
13543
- if (product.summary?.totalInventory > 0) inStockCount += 1;
13544
- if (new Date(product.createdAt).getTime() >= monthAgo) newArrivals2 += 1;
13545
- });
13546
- return { newArrivals: newArrivals2, inStockCount };
13547
- }, [products]);
13548
- React10.useMemo(
13549
- () => [
13550
- {
13551
- id: "new",
13552
- label: "New arrivals",
13553
- value: productInsights.newArrivals ? productInsights.newArrivals.toLocaleString() : isLoading ? "..." : "0",
13554
- helper: filters.newArrivals ? "Filter active: showing last 30 days" : "Click to show last 30 days",
13555
- icon: lucideReact.Sparkles
13556
- },
13557
- {
13558
- id: "stock",
13559
- label: "Available now",
13560
- value: productInsights.inStockCount ? productInsights.inStockCount.toLocaleString() : isLoading ? "..." : "0",
13561
- helper: "Ready to ship today",
13562
- icon: lucideReact.ShieldCheck
13563
- },
13564
- {
13565
- id: "catalogue",
13566
- label: "Total products",
13567
- value: pagination.total || products.length ? (pagination.total || products.length).toLocaleString() : isLoading ? "..." : "0",
13568
- helper: "Across all categories",
13569
- icon: lucideReact.TrendingUp
13570
- }
13571
- ],
13572
- [
13573
- isLoading,
13574
- pagination.total,
13575
- productInsights.inStockCount,
13576
- productInsights.newArrivals,
13577
- products.length,
13578
- filters.newArrivals
13579
- ]
13580
- );
13581
13743
  const filteredProducts = React10.useMemo(() => {
13582
13744
  if (isLoading) return products;
13583
13745
  let items = [...products];
@@ -14643,14 +14805,14 @@ function StarRating({
14643
14805
  className: `transition-all ${interactive && "cursor-pointer hover:scale-110"} ${!interactive && "cursor-default"}`,
14644
14806
  children: isHalfFilled ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
14645
14807
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: `${sizeClasses[size]} text-gray-300` }),
14646
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 overflow-hidden", style: { width: "50%" }, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: `${sizeClasses[size]} fill-[#E67E50] text-[#E67E50]` }) })
14808
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 overflow-hidden", style: { width: "50%" }, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: `${sizeClasses[size]} fill-haccent-500 text-haccent-500` }) })
14647
14809
  ] }) : /* @__PURE__ */ jsxRuntime.jsx(
14648
14810
  lucideReact.Star,
14649
14811
  {
14650
14812
  className: `
14651
14813
  ${sizeClasses[size]}
14652
- ${isFilled ? "fill-[#E67E50] text-[#E67E50]" : "text-gray-300"}
14653
- ${interactive && hoverRating > 0 && index < hoverRating ? "fill-[#E67E50] text-[#E67E50]" : ""}
14814
+ ${isFilled ? "fill-haccent-500 text-haccent-500" : "text-gray-300"}
14815
+ ${interactive && hoverRating > 0 && index < hoverRating ? "fill-haccent-500 text-haccent-500" : ""}
14654
14816
  `
14655
14817
  }
14656
14818
  )
@@ -14694,12 +14856,12 @@ function RatingDistribution({ reviews, averageRating }) {
14694
14856
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
14695
14857
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1 w-16", children: [
14696
14858
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium text-gray-700", children: rating }),
14697
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: "size-3 fill-[#E67E50] text-[#E67E50]" })
14859
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: "size-3 fill-haccent-500 text-haccent-500" })
14698
14860
  ] }),
14699
14861
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 h-2 bg-gray-200 rounded-full overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
14700
14862
  "div",
14701
14863
  {
14702
- className: "h-full bg-[#E67E50] transition-all duration-300",
14864
+ className: "h-full bg-haccent-500 transition-all duration-300",
14703
14865
  style: { width: `${percentage}%` }
14704
14866
  }
14705
14867
  ) }),
@@ -14799,7 +14961,7 @@ function ReviewsList({ reviews, isLoading }) {
14799
14961
  "button",
14800
14962
  {
14801
14963
  onClick: () => setFilterRating("all"),
14802
- className: `px-3 py-1 text-sm rounded-full transition-colors ${filterRating === "all" ? "bg-[#E67E50] text-white" : "bg-gray-100 text-gray-700 hover:bg-gray-200"}`,
14964
+ className: `px-3 py-1 text-sm rounded-full transition-colors ${filterRating === "all" ? "bg-haccent-500 text-white" : "bg-gray-100 text-gray-700 hover:bg-gray-200"}`,
14803
14965
  children: "All"
14804
14966
  }
14805
14967
  ),
@@ -14807,7 +14969,7 @@ function ReviewsList({ reviews, isLoading }) {
14807
14969
  "button",
14808
14970
  {
14809
14971
  onClick: () => setFilterRating(rating),
14810
- className: `flex items-center gap-1 px-3 py-1 text-sm rounded-full transition-colors ${filterRating === rating ? "bg-[#E67E50] text-white" : "bg-gray-100 text-gray-700 hover:bg-gray-200"}`,
14972
+ className: `flex items-center gap-1 px-3 py-1 text-sm rounded-full transition-colors ${filterRating === rating ? "bg-haccent-500 text-white" : "bg-gray-100 text-gray-700 hover:bg-gray-200"}`,
14811
14973
  children: [
14812
14974
  rating,
14813
14975
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: "size-3 fill-current" })
@@ -14824,7 +14986,7 @@ function ReviewsList({ reviews, isLoading }) {
14824
14986
  {
14825
14987
  value: sortBy,
14826
14988
  onChange: (e) => setSortBy(e.target.value),
14827
- className: "px-3 py-1 text-sm border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#E67E50] focus:border-transparent",
14989
+ className: "px-3 py-1 text-sm border border-gray-300 rounded-lg focus:ring-2 focus:ring-haccent-500 focus:border-transparent",
14828
14990
  children: [
14829
14991
  /* @__PURE__ */ jsxRuntime.jsx("option", { value: "recent", children: "Most Recent" }),
14830
14992
  /* @__PURE__ */ jsxRuntime.jsx("option", { value: "oldest", children: "Oldest First" }),
@@ -15174,7 +15336,7 @@ function ProductDetailScreen({ productId }) {
15174
15336
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1", children: [...Array(5)].map((_, i) => /* @__PURE__ */ jsxRuntime.jsx(
15175
15337
  lucideReact.Star,
15176
15338
  {
15177
- className: `size-4 ${i < Math.floor(reviewStats.averageRating) ? "text-[#E67E50] fill-[#E67E50]" : "text-gray-300"}`
15339
+ className: `size-4 ${i < Math.floor(reviewStats.averageRating) ? "text-haccent-500 fill-haccent-500" : "text-gray-300"}`
15178
15340
  },
15179
15341
  i
15180
15342
  )) }),
@@ -18483,7 +18645,7 @@ function AccountReviewsTab() {
18483
18645
  "button",
18484
18646
  {
18485
18647
  onClick: () => window.location.reload(),
18486
- className: "text-[#E67E50] hover:underline text-sm",
18648
+ className: "text-haccent-500 hover:underline text-sm",
18487
18649
  children: "Try again"
18488
18650
  }
18489
18651
  )
@@ -18491,14 +18653,14 @@ function AccountReviewsTab() {
18491
18653
  }
18492
18654
  if (!reviews || reviews.length === 0) {
18493
18655
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-6", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center py-12", children: [
18494
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-16 rounded-full bg-[#E67E50]/10 flex items-center justify-center mx-auto mb-4", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: "size-8 text-[#E67E50]" }) }),
18656
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-16 rounded-full bg-haccent-500/10 flex items-center justify-center mx-auto mb-4", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: "size-8 text-haccent-500" }) }),
18495
18657
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold text-gray-900 mb-2", children: "No reviews yet" }),
18496
18658
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-gray-600 mb-6", children: "Share your experience with products you've purchased" }),
18497
18659
  /* @__PURE__ */ jsxRuntime.jsxs(
18498
18660
  "button",
18499
18661
  {
18500
18662
  onClick: () => router.push(buildPath("/reviews")),
18501
- className: "inline-flex items-center gap-2 px-6 py-3 bg-[#E67E50] text-white rounded-lg font-medium hover:bg-[#d66f40] transition-colors",
18663
+ className: "inline-flex items-center gap-2 px-6 py-3 bg-haccent-500 text-white rounded-lg font-medium hover:bg-[#d66f40] transition-colors",
18502
18664
  children: [
18503
18665
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: "size-4" }),
18504
18666
  "Write Your First Review"
@@ -18733,7 +18895,7 @@ function OrderCard({ order, onDelete }) {
18733
18895
  "button",
18734
18896
  {
18735
18897
  onClick: handleReviewClick,
18736
- className: "inline-flex items-center gap-2 rounded-lg border border-[#E67E50] bg-white hover:bg-[#E67E50]/5 text-[#E67E50] px-4 py-2 text-sm transition-colors",
18898
+ className: "inline-flex items-center gap-2 rounded-lg border border-haccent-500 bg-white hover:bg-haccent-500/5 text-haccent-500 px-4 py-2 text-sm transition-colors",
18737
18899
  onPointerDown: (e) => e.stopPropagation(),
18738
18900
  children: [
18739
18901
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: "w-4 h-4" }),
@@ -18901,8 +19063,8 @@ function ReviewPromptBanner({
18901
19063
  router.push(buildPath("/reviews"));
18902
19064
  };
18903
19065
  if (!isVisible) return null;
18904
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-gradient-to-r from-[#E67E50]/10 to-[#E67E50]/5 border border-[#E67E50]/20 rounded-lg p-4 mb-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-4", children: [
18905
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-10 rounded-full bg-[#E67E50]/20 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: "size-5 text-[#E67E50]" }) }) }),
19066
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-gradient-to-r from-haccent-500/10 to-haccent-500/5 border border-haccent-500/20 rounded-lg p-4 mb-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-4", children: [
19067
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-10 rounded-full bg-haccent-500/20 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: "size-5 text-haccent-500" }) }) }),
18906
19068
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
18907
19069
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-4", children: [
18908
19070
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
@@ -18930,7 +19092,7 @@ function ReviewPromptBanner({
18930
19092
  "button",
18931
19093
  {
18932
19094
  onClick: handleReviewClick,
18933
- className: "mt-3 inline-flex items-center gap-2 px-4 py-2 bg-[#E67E50] text-white text-sm font-medium rounded-lg hover:bg-[#d66f40] transition-colors",
19095
+ className: "mt-3 inline-flex items-center gap-2 px-4 py-2 bg-haccent-500 text-white text-sm font-medium rounded-lg hover:bg-[#d66f40] transition-colors",
18934
19096
  children: [
18935
19097
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: "size-4" }),
18936
19098
  "Write a Review"
@@ -20083,41 +20245,24 @@ function SearchPage() {
20083
20245
  setHasSearched(false);
20084
20246
  return;
20085
20247
  }
20248
+ if (sanitizedQuery.length < 2) {
20249
+ setProducts([]);
20250
+ setIsLoading(false);
20251
+ setHasSearched(false);
20252
+ return;
20253
+ }
20086
20254
  try {
20087
20255
  setIsLoading(true);
20088
20256
  const api = new ProductsApi(AXIOS_CONFIG);
20089
- let response = await api.getAllProducts(
20090
- sanitizedQuery,
20091
- // searchTerm
20092
- void 0,
20093
- // maxPrice
20094
- void 0,
20095
- // minPrice
20096
- void 0,
20097
- // brandFilter
20098
- void 0,
20099
- // availability
20100
- "relevance",
20101
- // sort
20102
- void 0,
20103
- // subCategoryId
20104
- void 0,
20105
- // categoryId
20106
- true,
20107
- // isActive
20108
- 20,
20109
- // limit
20110
- 1
20111
- // page
20112
- );
20113
- console.log("Search API Response:", {
20257
+ const response = await api.smartSearch(sanitizedQuery, 20);
20258
+ console.log("Smart Search API Response:", {
20114
20259
  query: sanitizedQuery,
20115
20260
  status: response.status,
20116
- dataLength: response.data?.data?.length,
20117
- totalItems: response.data?.totalItems
20261
+ productsCount: response.data?.products?.length,
20262
+ scores: response.data?.scores
20118
20263
  });
20119
- if (response.data?.data) {
20120
- const transformedProducts = response.data.data.map((item) => ({
20264
+ if (response.data?.products) {
20265
+ const transformedProducts = response.data.products.map((item) => ({
20121
20266
  ...item,
20122
20267
  id: item._id || ""
20123
20268
  }));
@@ -20130,7 +20275,7 @@ function SearchPage() {
20130
20275
  }
20131
20276
  setHasSearched(true);
20132
20277
  } catch (error) {
20133
- console.error("Error fetching search results:", error);
20278
+ console.error("Error fetching smart search results:", error);
20134
20279
  if (error instanceof Error) {
20135
20280
  console.error("Error details:", error.message);
20136
20281
  }
@@ -20771,7 +20916,7 @@ function ReviewForm({
20771
20916
  {
20772
20917
  id: "reviewType",
20773
20918
  ...register("reviewType"),
20774
- className: "w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#E67E50] focus:border-transparent",
20919
+ className: "w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-haccent-500 focus:border-transparent",
20775
20920
  children: [
20776
20921
  /* @__PURE__ */ jsxRuntime.jsx("option", { value: "Product Review", children: "Product Review" }),
20777
20922
  /* @__PURE__ */ jsxRuntime.jsx("option", { value: "Quality Review", children: "Quality Review" }),
@@ -20800,7 +20945,7 @@ function ReviewForm({
20800
20945
  ...register("review"),
20801
20946
  rows: 5,
20802
20947
  placeholder: "Share your experience with this product...",
20803
- className: "w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#E67E50] focus:border-transparent resize-none"
20948
+ className: "w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-haccent-500 focus:border-transparent resize-none"
20804
20949
  }
20805
20950
  ),
20806
20951
  errors.review && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-red-500 text-xs mt-1", children: errors.review.message })
@@ -20811,7 +20956,7 @@ function ReviewForm({
20811
20956
  {
20812
20957
  type: "submit",
20813
20958
  disabled: isLoading,
20814
- className: "flex-1 bg-[#E67E50] text-white py-3 px-6 rounded-lg font-medium hover:bg-[#d66f40] transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",
20959
+ className: "flex-1 bg-haccent-500 text-white py-3 px-6 rounded-lg font-medium hover:bg-[#d66f40] transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",
20815
20960
  children: isLoading ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
20816
20961
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }),
20817
20962
  "Submitting..."
@@ -20870,7 +21015,7 @@ function OrderReviewsScreen() {
20870
21015
  "button",
20871
21016
  {
20872
21017
  onClick: () => router.back(),
20873
- className: "text-[#E67E50] hover:underline",
21018
+ className: "text-haccent-500 hover:underline",
20874
21019
  children: "Go Back"
20875
21020
  }
20876
21021
  )
@@ -20955,7 +21100,7 @@ function OrderReviewsScreen() {
20955
21100
  return /* @__PURE__ */ jsxRuntime.jsx(
20956
21101
  "div",
20957
21102
  {
20958
- className: "bg-white rounded-lg border border-gray-200 p-4 cursor-pointer hover:border-[#E67E50] hover:shadow-md transition-all",
21103
+ className: "bg-white rounded-lg border border-gray-200 p-4 cursor-pointer hover:border-haccent-500 hover:shadow-md transition-all",
20959
21104
  onClick: () => {
20960
21105
  const possibleProductId = item.productId || item.product?._id || item.product?.id || variantData?.productId || variantData?.product?._id || variantData?.product?.id || variantId;
20961
21106
  const productData = {
@@ -20986,7 +21131,7 @@ function OrderReviewsScreen() {
20986
21131
  item.quantity
20987
21132
  ] })
20988
21133
  ] }),
20989
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2 text-[#E67E50]", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium", children: "Review Now" }) })
21134
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2 text-haccent-500", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium", children: "Review Now" }) })
20990
21135
  ] })
20991
21136
  },
20992
21137
  `${variantId}-${index}`
@@ -21011,14 +21156,14 @@ function OrderReviewsScreen() {
21011
21156
  "button",
21012
21157
  {
21013
21158
  onClick: () => router.push("/shop"),
21014
- className: "px-6 py-3 bg-[#E67E50] text-white rounded-lg hover:bg-[#d66f40] transition-colors",
21159
+ className: "px-6 py-3 bg-haccent-500 text-white rounded-lg hover:bg-[#d66f40] transition-colors",
21015
21160
  children: "Start Shopping"
21016
21161
  }
21017
21162
  )
21018
21163
  ] }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-4", children: completedOrders.map((order) => /* @__PURE__ */ jsxRuntime.jsx(
21019
21164
  "div",
21020
21165
  {
21021
- className: "bg-white rounded-lg border border-gray-200 p-6 cursor-pointer hover:border-[#E67E50] hover:shadow-md transition-all",
21166
+ className: "bg-white rounded-lg border border-gray-200 p-6 cursor-pointer hover:border-haccent-500 hover:shadow-md transition-all",
21022
21167
  onClick: () => handleOrderClick(order),
21023
21168
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
21024
21169
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1", children: [
@@ -21036,7 +21181,7 @@ function OrderReviewsScreen() {
21036
21181
  ] }),
21037
21182
  order.createdAt && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-gray-500", children: dateFns.formatDistanceToNow(new Date(order.createdAt), { addSuffix: true }) })
21038
21183
  ] }),
21039
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-right", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2 text-[#E67E50]", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium", children: "Review Products" }) }) })
21184
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-right", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2 text-haccent-500", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium", children: "Review Products" }) }) })
21040
21185
  ] })
21041
21186
  },
21042
21187
  order.id || order._id
@@ -22149,7 +22294,7 @@ function Header() {
22149
22294
  ),
22150
22295
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute right-0 top-full mt-2 w-56 rounded-lg border border-slate-200 bg-white shadow-lg z-20", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-2", children: [
22151
22296
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "px-3 py-2 border-b border-slate-200 mb-1", children: [
22152
- /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm font-medium text-hsecondary truncate", children: [
22297
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm font-medium text-hprimary-900 truncate", children: [
22153
22298
  user?.firstname,
22154
22299
  " ",
22155
22300
  user?.lastname
@@ -22496,7 +22641,6 @@ exports.AccountReviewsTab = AccountReviewsTab;
22496
22641
  exports.AddressAddressTypeEnum = AddressAddressTypeEnum;
22497
22642
  exports.AddressCreatedRequestAddressTypeEnum = AddressCreatedRequestAddressTypeEnum;
22498
22643
  exports.AddressesScreen = AddressesScreen;
22499
- exports.ApiKeyInfoDtoKeyTypeEnum = ApiKeyInfoDtoKeyTypeEnum;
22500
22644
  exports.AuthProvider = AuthProvider;
22501
22645
  exports.Badge = Badge;
22502
22646
  exports.BulkChannelToggleDtoCategoryEnum = BulkChannelToggleDtoCategoryEnum;
@@ -22524,6 +22668,7 @@ exports.Footer = Footer;
22524
22668
  exports.ForgotPasswordScreen = ForgotPasswordScreen;
22525
22669
  exports.Header = Header;
22526
22670
  exports.Input = Input;
22671
+ exports.InventoryAlertDtoAlertTypeEnum = InventoryAlertDtoAlertTypeEnum;
22527
22672
  exports.LoginScreen = LoginScreen;
22528
22673
  exports.ManualDiscountDtoValueTypeEnum = ManualDiscountDtoValueTypeEnum;
22529
22674
  exports.ManualOrderDTOOrderStatusEnum = ManualOrderDTOOrderStatusEnum;
@@ -22535,6 +22680,7 @@ exports.NotificationBell = NotificationBell;
22535
22680
  exports.NotificationCard = NotificationCard;
22536
22681
  exports.NotificationCenterProvider = NotificationCenterProvider;
22537
22682
  exports.NotificationDrawer = NotificationDrawer;
22683
+ exports.NotificationDtoTypeEnum = NotificationDtoTypeEnum;
22538
22684
  exports.NotificationSettingsScreen = NotificationSettingsScreen;
22539
22685
  exports.OrderCard = OrderCard;
22540
22686
  exports.OrderCardSkeleton = OrderCardSkeleton;