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.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import React10, { createContext, forwardRef, useContext, useLayoutEffect, useEffect, useState, useCallback, useRef, useMemo } from 'react';
3
3
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
4
- import globalAxios20 from 'axios';
4
+ import globalAxios21 from 'axios';
5
5
  import { motion, AnimatePresence, useMotionValue, useTransform } from 'framer-motion';
6
- import { Eye, Star, ShoppingCart, Sparkles, ShieldCheck, TrendingUp, Search, Package, ArrowUpDown, ChevronDown, LayoutGrid, LayoutList, X, Clock, User, MessageCircle, Filter, ChevronLeft, Check, Heart, Truck, RotateCcw, Shield, Trash2, Minus, Plus, ShoppingBag, ArrowRight, CheckCircle2, MapPin, CreditCard, Edit3, AlertCircle, Lock, EyeOff, UserPlus, Mail, Send, ArrowLeft, MessageSquare, Settings, ChevronRight, ArrowUpRight, PackageCheck, Warehouse, BellRing, Crown, Phone, Grid, List, Loader2, Calendar, ExternalLink, Info, Bell, LogOut, Menu, Facebook, Twitter, Instagram, CheckCheck, BellOff, Shirt, Pill, Box, Gift, Tag, Globe, Home, TrendingDown, CheckCircle, Edit, AlertTriangle, XCircle } from 'lucide-react';
6
+ import { Eye, Star, ShoppingCart, Search, Package, ArrowUpDown, ChevronDown, LayoutGrid, LayoutList, X, ShieldCheck, Clock, User, MessageCircle, Filter, Sparkles, ChevronLeft, Check, Heart, Truck, RotateCcw, Shield, Trash2, Minus, Plus, ShoppingBag, ArrowRight, CheckCircle2, MapPin, CreditCard, Edit3, AlertCircle, Lock, EyeOff, UserPlus, Mail, Send, ArrowLeft, MessageSquare, Settings, ChevronRight, ArrowUpRight, PackageCheck, Warehouse, BellRing, Crown, Phone, Grid, List, TrendingUp, Loader2, Calendar, ExternalLink, Info, Bell, LogOut, Menu, Facebook, Twitter, Instagram, CheckCheck, BellOff, Shirt, Pill, Box, Gift, Tag, Globe, Home, TrendingDown, CheckCircle, Edit, AlertTriangle, XCircle } from 'lucide-react';
7
7
  import { QueryClient, QueryClientProvider, useQuery } from '@tanstack/react-query';
8
8
  import { useRouter, useSearchParams, useParams } from 'next/navigation';
9
9
  import Image4 from 'next/image';
@@ -281,7 +281,7 @@ function ThemeProvider({ config, children }) {
281
281
  init_config();
282
282
  var BASE_PATH = "/".replace(/\/+$/, "");
283
283
  var BaseAPI = class {
284
- constructor(configuration, basePath = BASE_PATH, axios = globalAxios20) {
284
+ constructor(configuration, basePath = BASE_PATH, axios = globalAxios21) {
285
285
  this.basePath = basePath;
286
286
  this.axios = axios;
287
287
  if (configuration) {
@@ -952,7 +952,7 @@ var UsersApiFp = function(configuration) {
952
952
  */
953
953
  async allowUserCredit(body, userId, options) {
954
954
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).allowUserCredit(body, userId, options);
955
- return (axios = globalAxios20, basePath = BASE_PATH) => {
955
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
956
956
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
957
957
  return axios.request(axiosRequestArgs);
958
958
  };
@@ -966,7 +966,7 @@ var UsersApiFp = function(configuration) {
966
966
  */
967
967
  async changeUserEmail(body, options) {
968
968
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).changeUserEmail(body, options);
969
- return (axios = globalAxios20, basePath = BASE_PATH) => {
969
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
970
970
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
971
971
  return axios.request(axiosRequestArgs);
972
972
  };
@@ -980,7 +980,7 @@ var UsersApiFp = function(configuration) {
980
980
  */
981
981
  async createUser(body, options) {
982
982
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).createUser(body, options);
983
- return (axios = globalAxios20, basePath = BASE_PATH) => {
983
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
984
984
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
985
985
  return axios.request(axiosRequestArgs);
986
986
  };
@@ -993,7 +993,7 @@ var UsersApiFp = function(configuration) {
993
993
  */
994
994
  async deleteMyProfile(options) {
995
995
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).deleteMyProfile(options);
996
- return (axios = globalAxios20, basePath = BASE_PATH) => {
996
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
997
997
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
998
998
  return axios.request(axiosRequestArgs);
999
999
  };
@@ -1007,7 +1007,7 @@ var UsersApiFp = function(configuration) {
1007
1007
  */
1008
1008
  async deleteUser(id, options) {
1009
1009
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).deleteUser(id, options);
1010
- return (axios = globalAxios20, basePath = BASE_PATH) => {
1010
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1011
1011
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1012
1012
  return axios.request(axiosRequestArgs);
1013
1013
  };
@@ -1021,7 +1021,7 @@ var UsersApiFp = function(configuration) {
1021
1021
  */
1022
1022
  async disableUserCredit(userId, options) {
1023
1023
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).disableUserCredit(userId, options);
1024
- return (axios = globalAxios20, basePath = BASE_PATH) => {
1024
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1025
1025
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1026
1026
  return axios.request(axiosRequestArgs);
1027
1027
  };
@@ -1042,7 +1042,7 @@ var UsersApiFp = function(configuration) {
1042
1042
  */
1043
1043
  async getAllUsers(role, sortingOrder, sortingColumn, createdBefore, createdAfter, search, limit, page, options) {
1044
1044
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getAllUsers(role, sortingOrder, sortingColumn, createdBefore, createdAfter, search, limit, page, options);
1045
- return (axios = globalAxios20, basePath = BASE_PATH) => {
1045
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1046
1046
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1047
1047
  return axios.request(axiosRequestArgs);
1048
1048
  };
@@ -1056,7 +1056,7 @@ var UsersApiFp = function(configuration) {
1056
1056
  */
1057
1057
  async getInsights(groupId, options) {
1058
1058
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getInsights(groupId, options);
1059
- return (axios = globalAxios20, basePath = BASE_PATH) => {
1059
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1060
1060
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1061
1061
  return axios.request(axiosRequestArgs);
1062
1062
  };
@@ -1069,7 +1069,7 @@ var UsersApiFp = function(configuration) {
1069
1069
  */
1070
1070
  async getMyProfile(options) {
1071
1071
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getMyProfile(options);
1072
- return (axios = globalAxios20, basePath = BASE_PATH) => {
1072
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1073
1073
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1074
1074
  return axios.request(axiosRequestArgs);
1075
1075
  };
@@ -1083,7 +1083,7 @@ var UsersApiFp = function(configuration) {
1083
1083
  */
1084
1084
  async getSingleUser(id, options) {
1085
1085
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getSingleUser(id, options);
1086
- return (axios = globalAxios20, basePath = BASE_PATH) => {
1086
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1087
1087
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1088
1088
  return axios.request(axiosRequestArgs);
1089
1089
  };
@@ -1096,7 +1096,7 @@ var UsersApiFp = function(configuration) {
1096
1096
  */
1097
1097
  async sendOTP(options) {
1098
1098
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).sendOTP(options);
1099
- return (axios = globalAxios20, basePath = BASE_PATH) => {
1099
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1100
1100
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1101
1101
  return axios.request(axiosRequestArgs);
1102
1102
  };
@@ -1110,7 +1110,7 @@ var UsersApiFp = function(configuration) {
1110
1110
  */
1111
1111
  async updateMyProfile(body, options) {
1112
1112
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).updateMyProfile(body, options);
1113
- return (axios = globalAxios20, basePath = BASE_PATH) => {
1113
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1114
1114
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1115
1115
  return axios.request(axiosRequestArgs);
1116
1116
  };
@@ -1125,7 +1125,7 @@ var UsersApiFp = function(configuration) {
1125
1125
  */
1126
1126
  async updateUser(body, id, options) {
1127
1127
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).updateUser(body, id, options);
1128
- return (axios = globalAxios20, basePath = BASE_PATH) => {
1128
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1129
1129
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1130
1130
  return axios.request(axiosRequestArgs);
1131
1131
  };
@@ -1138,7 +1138,7 @@ var UsersApiFp = function(configuration) {
1138
1138
  */
1139
1139
  async verifyOTP(options) {
1140
1140
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).verifyOTP(options);
1141
- return (axios = globalAxios20, basePath = BASE_PATH) => {
1141
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1142
1142
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1143
1143
  return axios.request(axiosRequestArgs);
1144
1144
  };
@@ -1755,7 +1755,7 @@ var AuthApiFp = function(configuration) {
1755
1755
  */
1756
1756
  async changeEmail(body, options) {
1757
1757
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).changeEmail(body, options);
1758
- return (axios = globalAxios20, basePath = BASE_PATH) => {
1758
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1759
1759
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1760
1760
  return axios.request(axiosRequestArgs);
1761
1761
  };
@@ -1769,7 +1769,7 @@ var AuthApiFp = function(configuration) {
1769
1769
  */
1770
1770
  async changePassword(body, options) {
1771
1771
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).changePassword(body, options);
1772
- return (axios = globalAxios20, basePath = BASE_PATH) => {
1772
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1773
1773
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1774
1774
  return axios.request(axiosRequestArgs);
1775
1775
  };
@@ -1783,7 +1783,7 @@ var AuthApiFp = function(configuration) {
1783
1783
  */
1784
1784
  async dashboardLogin(body, options) {
1785
1785
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).dashboardLogin(body, options);
1786
- return (axios = globalAxios20, basePath = BASE_PATH) => {
1786
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1787
1787
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1788
1788
  return axios.request(axiosRequestArgs);
1789
1789
  };
@@ -1799,7 +1799,7 @@ var AuthApiFp = function(configuration) {
1799
1799
  */
1800
1800
  async resetPassword(newPassword, token, xStoreKey, options) {
1801
1801
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).resetPassword(newPassword, token, xStoreKey, options);
1802
- return (axios = globalAxios20, basePath = BASE_PATH) => {
1802
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1803
1803
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1804
1804
  return axios.request(axiosRequestArgs);
1805
1805
  };
@@ -1813,7 +1813,7 @@ var AuthApiFp = function(configuration) {
1813
1813
  */
1814
1814
  async sendForgetPasswordEmail(body, options) {
1815
1815
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).sendForgetPasswordEmail(body, options);
1816
- return (axios = globalAxios20, basePath = BASE_PATH) => {
1816
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1817
1817
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1818
1818
  return axios.request(axiosRequestArgs);
1819
1819
  };
@@ -1827,7 +1827,7 @@ var AuthApiFp = function(configuration) {
1827
1827
  */
1828
1828
  async signin(body, options) {
1829
1829
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signin(body, options);
1830
- return (axios = globalAxios20, basePath = BASE_PATH) => {
1830
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1831
1831
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1832
1832
  return axios.request(axiosRequestArgs);
1833
1833
  };
@@ -1841,7 +1841,7 @@ var AuthApiFp = function(configuration) {
1841
1841
  */
1842
1842
  async signinWithGmail(body, options) {
1843
1843
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signinWithGmail(body, options);
1844
- return (axios = globalAxios20, basePath = BASE_PATH) => {
1844
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1845
1845
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1846
1846
  return axios.request(axiosRequestArgs);
1847
1847
  };
@@ -1855,7 +1855,7 @@ var AuthApiFp = function(configuration) {
1855
1855
  */
1856
1856
  async signup(body, options) {
1857
1857
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signup(body, options);
1858
- return (axios = globalAxios20, basePath = BASE_PATH) => {
1858
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1859
1859
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1860
1860
  return axios.request(axiosRequestArgs);
1861
1861
  };
@@ -1869,7 +1869,7 @@ var AuthApiFp = function(configuration) {
1869
1869
  */
1870
1870
  async signupWithGmail(body, options) {
1871
1871
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signupWithGmail(body, options);
1872
- return (axios = globalAxios20, basePath = BASE_PATH) => {
1872
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1873
1873
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1874
1874
  return axios.request(axiosRequestArgs);
1875
1875
  };
@@ -1883,7 +1883,7 @@ var AuthApiFp = function(configuration) {
1883
1883
  */
1884
1884
  async verifyUserEmail(body, options) {
1885
1885
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).verifyUserEmail(body, options);
1886
- return (axios = globalAxios20, basePath = BASE_PATH) => {
1886
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1887
1887
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1888
1888
  return axios.request(axiosRequestArgs);
1889
1889
  };
@@ -2804,7 +2804,7 @@ var AddressesApiFp = function(configuration) {
2804
2804
  */
2805
2805
  async adminCreateAddressForUser(body, userId, options) {
2806
2806
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminCreateAddressForUser(body, userId, options);
2807
- return (axios = globalAxios20, basePath = BASE_PATH) => {
2807
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2808
2808
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2809
2809
  return axios.request(axiosRequestArgs);
2810
2810
  };
@@ -2818,7 +2818,7 @@ var AddressesApiFp = function(configuration) {
2818
2818
  */
2819
2819
  async adminDeleteUserAddress(addressId, options) {
2820
2820
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminDeleteUserAddress(addressId, options);
2821
- return (axios = globalAxios20, basePath = BASE_PATH) => {
2821
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2822
2822
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2823
2823
  return axios.request(axiosRequestArgs);
2824
2824
  };
@@ -2832,7 +2832,7 @@ var AddressesApiFp = function(configuration) {
2832
2832
  */
2833
2833
  async adminGetSingleUserAddresses(userId, options) {
2834
2834
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminGetSingleUserAddresses(userId, options);
2835
- return (axios = globalAxios20, basePath = BASE_PATH) => {
2835
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2836
2836
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2837
2837
  return axios.request(axiosRequestArgs);
2838
2838
  };
@@ -2847,7 +2847,7 @@ var AddressesApiFp = function(configuration) {
2847
2847
  */
2848
2848
  async adminUpdateUserAddress(body, addressId, options) {
2849
2849
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminUpdateUserAddress(body, addressId, options);
2850
- return (axios = globalAxios20, basePath = BASE_PATH) => {
2850
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2851
2851
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2852
2852
  return axios.request(axiosRequestArgs);
2853
2853
  };
@@ -2861,7 +2861,7 @@ var AddressesApiFp = function(configuration) {
2861
2861
  */
2862
2862
  async createAddressForStore(body, options) {
2863
2863
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).createAddressForStore(body, options);
2864
- return (axios = globalAxios20, basePath = BASE_PATH) => {
2864
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2865
2865
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2866
2866
  return axios.request(axiosRequestArgs);
2867
2867
  };
@@ -2875,7 +2875,7 @@ var AddressesApiFp = function(configuration) {
2875
2875
  */
2876
2876
  async createAddressForUser(body, options) {
2877
2877
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).createAddressForUser(body, options);
2878
- return (axios = globalAxios20, basePath = BASE_PATH) => {
2878
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2879
2879
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2880
2880
  return axios.request(axiosRequestArgs);
2881
2881
  };
@@ -2889,7 +2889,7 @@ var AddressesApiFp = function(configuration) {
2889
2889
  */
2890
2890
  async deleteUserAddress(addressId, options) {
2891
2891
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).deleteUserAddress(addressId, options);
2892
- return (axios = globalAxios20, basePath = BASE_PATH) => {
2892
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2893
2893
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2894
2894
  return axios.request(axiosRequestArgs);
2895
2895
  };
@@ -2903,7 +2903,7 @@ var AddressesApiFp = function(configuration) {
2903
2903
  */
2904
2904
  async getAllStoreAddresses(storeId, options) {
2905
2905
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getAllStoreAddresses(storeId, options);
2906
- return (axios = globalAxios20, basePath = BASE_PATH) => {
2906
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2907
2907
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2908
2908
  return axios.request(axiosRequestArgs);
2909
2909
  };
@@ -2916,7 +2916,7 @@ var AddressesApiFp = function(configuration) {
2916
2916
  */
2917
2917
  async getAllUserAddresses(options) {
2918
2918
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getAllUserAddresses(options);
2919
- return (axios = globalAxios20, basePath = BASE_PATH) => {
2919
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2920
2920
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2921
2921
  return axios.request(axiosRequestArgs);
2922
2922
  };
@@ -2929,7 +2929,7 @@ var AddressesApiFp = function(configuration) {
2929
2929
  */
2930
2930
  async getMyAddresses(options) {
2931
2931
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getMyAddresses(options);
2932
- return (axios = globalAxios20, basePath = BASE_PATH) => {
2932
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2933
2933
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2934
2934
  return axios.request(axiosRequestArgs);
2935
2935
  };
@@ -2942,7 +2942,7 @@ var AddressesApiFp = function(configuration) {
2942
2942
  */
2943
2943
  async getMyDefaultAddress(options) {
2944
2944
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getMyDefaultAddress(options);
2945
- return (axios = globalAxios20, basePath = BASE_PATH) => {
2945
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2946
2946
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2947
2947
  return axios.request(axiosRequestArgs);
2948
2948
  };
@@ -2956,7 +2956,7 @@ var AddressesApiFp = function(configuration) {
2956
2956
  */
2957
2957
  async getSingleAddress(addressId, options) {
2958
2958
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getSingleAddress(addressId, options);
2959
- return (axios = globalAxios20, basePath = BASE_PATH) => {
2959
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2960
2960
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2961
2961
  return axios.request(axiosRequestArgs);
2962
2962
  };
@@ -2971,7 +2971,7 @@ var AddressesApiFp = function(configuration) {
2971
2971
  */
2972
2972
  async setDefaultShippingAddress(userId, addressId, options) {
2973
2973
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).setDefaultShippingAddress(userId, addressId, options);
2974
- return (axios = globalAxios20, basePath = BASE_PATH) => {
2974
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2975
2975
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2976
2976
  return axios.request(axiosRequestArgs);
2977
2977
  };
@@ -2985,7 +2985,7 @@ var AddressesApiFp = function(configuration) {
2985
2985
  */
2986
2986
  async updateDefaultAddress(addressId, options) {
2987
2987
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).updateDefaultAddress(addressId, options);
2988
- return (axios = globalAxios20, basePath = BASE_PATH) => {
2988
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2989
2989
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2990
2990
  return axios.request(axiosRequestArgs);
2991
2991
  };
@@ -3000,7 +3000,7 @@ var AddressesApiFp = function(configuration) {
3000
3000
  */
3001
3001
  async updateUserAddress(body, addressId, options) {
3002
3002
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).updateUserAddress(body, addressId, options);
3003
- return (axios = globalAxios20, basePath = BASE_PATH) => {
3003
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3004
3004
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3005
3005
  return axios.request(axiosRequestArgs);
3006
3006
  };
@@ -3382,7 +3382,7 @@ var CartApiFp = function(configuration) {
3382
3382
  */
3383
3383
  async clearCart(options) {
3384
3384
  const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).clearCart(options);
3385
- return (axios = globalAxios20, basePath = BASE_PATH) => {
3385
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3386
3386
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3387
3387
  return axios.request(axiosRequestArgs);
3388
3388
  };
@@ -3396,7 +3396,7 @@ var CartApiFp = function(configuration) {
3396
3396
  */
3397
3397
  async getUserCart(rateId, options) {
3398
3398
  const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).getUserCart(rateId, options);
3399
- return (axios = globalAxios20, basePath = BASE_PATH) => {
3399
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3400
3400
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3401
3401
  return axios.request(axiosRequestArgs);
3402
3402
  };
@@ -3410,7 +3410,7 @@ var CartApiFp = function(configuration) {
3410
3410
  */
3411
3411
  async handleUserCart(body, options) {
3412
3412
  const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).handleUserCart(body, options);
3413
- return (axios = globalAxios20, basePath = BASE_PATH) => {
3413
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3414
3414
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3415
3415
  return axios.request(axiosRequestArgs);
3416
3416
  };
@@ -3428,7 +3428,7 @@ var CartApiFp = function(configuration) {
3428
3428
  */
3429
3429
  async handleVisitorCart(body, isDelivery, userId, rateId, addressId, options) {
3430
3430
  const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).handleVisitorCart(body, isDelivery, userId, rateId, addressId, options);
3431
- return (axios = globalAxios20, basePath = BASE_PATH) => {
3431
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3432
3432
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3433
3433
  return axios.request(axiosRequestArgs);
3434
3434
  };
@@ -3860,7 +3860,7 @@ var CategoriesApiFp = function(configuration) {
3860
3860
  */
3861
3861
  async createCategory(body, options) {
3862
3862
  const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).createCategory(body, options);
3863
- return (axios = globalAxios20, basePath = BASE_PATH) => {
3863
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3864
3864
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3865
3865
  return axios.request(axiosRequestArgs);
3866
3866
  };
@@ -3874,7 +3874,7 @@ var CategoriesApiFp = function(configuration) {
3874
3874
  */
3875
3875
  async deleteCategory(id, options) {
3876
3876
  const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).deleteCategory(id, options);
3877
- return (axios = globalAxios20, basePath = BASE_PATH) => {
3877
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3878
3878
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3879
3879
  return axios.request(axiosRequestArgs);
3880
3880
  };
@@ -3890,7 +3890,7 @@ var CategoriesApiFp = function(configuration) {
3890
3890
  */
3891
3891
  async getAllCategories(search, limit, page, options) {
3892
3892
  const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getAllCategories(search, limit, page, options);
3893
- return (axios = globalAxios20, basePath = BASE_PATH) => {
3893
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3894
3894
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3895
3895
  return axios.request(axiosRequestArgs);
3896
3896
  };
@@ -3903,7 +3903,7 @@ var CategoriesApiFp = function(configuration) {
3903
3903
  */
3904
3904
  async getCategoreisAndSubCategories(options) {
3905
3905
  const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getCategoreisAndSubCategories(options);
3906
- return (axios = globalAxios20, basePath = BASE_PATH) => {
3906
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3907
3907
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3908
3908
  return axios.request(axiosRequestArgs);
3909
3909
  };
@@ -3917,7 +3917,7 @@ var CategoriesApiFp = function(configuration) {
3917
3917
  */
3918
3918
  async getCategoryFilters(id, options) {
3919
3919
  const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getCategoryFilters(id, options);
3920
- return (axios = globalAxios20, basePath = BASE_PATH) => {
3920
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3921
3921
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3922
3922
  return axios.request(axiosRequestArgs);
3923
3923
  };
@@ -3931,7 +3931,7 @@ var CategoriesApiFp = function(configuration) {
3931
3931
  */
3932
3932
  async getSingleCategory(id, options) {
3933
3933
  const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getSingleCategory(id, options);
3934
- return (axios = globalAxios20, basePath = BASE_PATH) => {
3934
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3935
3935
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3936
3936
  return axios.request(axiosRequestArgs);
3937
3937
  };
@@ -3945,7 +3945,7 @@ var CategoriesApiFp = function(configuration) {
3945
3945
  */
3946
3946
  async reorderCategories(body, options) {
3947
3947
  const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).reorderCategories(body, options);
3948
- return (axios = globalAxios20, basePath = BASE_PATH) => {
3948
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3949
3949
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3950
3950
  return axios.request(axiosRequestArgs);
3951
3951
  };
@@ -3960,7 +3960,7 @@ var CategoriesApiFp = function(configuration) {
3960
3960
  */
3961
3961
  async updateCategory(body, id, options) {
3962
3962
  const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).updateCategory(body, id, options);
3963
- return (axios = globalAxios20, basePath = BASE_PATH) => {
3963
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3964
3964
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3965
3965
  return axios.request(axiosRequestArgs);
3966
3966
  };
@@ -4385,7 +4385,7 @@ var DiscountsApiFp = function(configuration) {
4385
4385
  */
4386
4386
  async createDiscount(body, options) {
4387
4387
  const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).createDiscount(body, options);
4388
- return (axios = globalAxios20, basePath = BASE_PATH) => {
4388
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4389
4389
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4390
4390
  return axios.request(axiosRequestArgs);
4391
4391
  };
@@ -4399,7 +4399,7 @@ var DiscountsApiFp = function(configuration) {
4399
4399
  */
4400
4400
  async deleteDiscount(id, options) {
4401
4401
  const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).deleteDiscount(id, options);
4402
- return (axios = globalAxios20, basePath = BASE_PATH) => {
4402
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4403
4403
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4404
4404
  return axios.request(axiosRequestArgs);
4405
4405
  };
@@ -4412,7 +4412,7 @@ var DiscountsApiFp = function(configuration) {
4412
4412
  */
4413
4413
  async getAllDiscounts(options) {
4414
4414
  const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).getAllDiscounts(options);
4415
- return (axios = globalAxios20, basePath = BASE_PATH) => {
4415
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4416
4416
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4417
4417
  return axios.request(axiosRequestArgs);
4418
4418
  };
@@ -4425,7 +4425,7 @@ var DiscountsApiFp = function(configuration) {
4425
4425
  */
4426
4426
  async getDiscountsInsights(options) {
4427
4427
  const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).getDiscountsInsights(options);
4428
- return (axios = globalAxios20, basePath = BASE_PATH) => {
4428
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4429
4429
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4430
4430
  return axios.request(axiosRequestArgs);
4431
4431
  };
@@ -4439,7 +4439,7 @@ var DiscountsApiFp = function(configuration) {
4439
4439
  */
4440
4440
  async getSingleDiscount(id, options) {
4441
4441
  const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).getSingleDiscount(id, options);
4442
- return (axios = globalAxios20, basePath = BASE_PATH) => {
4442
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4443
4443
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4444
4444
  return axios.request(axiosRequestArgs);
4445
4445
  };
@@ -4454,7 +4454,7 @@ var DiscountsApiFp = function(configuration) {
4454
4454
  */
4455
4455
  async updateDiscount(body, id, options) {
4456
4456
  const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).updateDiscount(body, id, options);
4457
- return (axios = globalAxios20, basePath = BASE_PATH) => {
4457
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4458
4458
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4459
4459
  return axios.request(axiosRequestArgs);
4460
4460
  };
@@ -4470,7 +4470,7 @@ var DiscountsApiFp = function(configuration) {
4470
4470
  */
4471
4471
  async validateCoupon(code, userId, discountId, options) {
4472
4472
  const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).validateCoupon(code, userId, discountId, options);
4473
- return (axios = globalAxios20, basePath = BASE_PATH) => {
4473
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4474
4474
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4475
4475
  return axios.request(axiosRequestArgs);
4476
4476
  };
@@ -4928,7 +4928,7 @@ var NotificationsApiFp = function(configuration) {
4928
4928
  */
4929
4929
  async bulkToggleChannel(body, options) {
4930
4930
  const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).bulkToggleChannel(body, options);
4931
- return (axios = globalAxios20, basePath = BASE_PATH) => {
4931
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4932
4932
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4933
4933
  return axios.request(axiosRequestArgs);
4934
4934
  };
@@ -4942,7 +4942,7 @@ var NotificationsApiFp = function(configuration) {
4942
4942
  */
4943
4943
  async deleteNotification(id, options) {
4944
4944
  const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).deleteNotification(id, options);
4945
- return (axios = globalAxios20, basePath = BASE_PATH) => {
4945
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4946
4946
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4947
4947
  return axios.request(axiosRequestArgs);
4948
4948
  };
@@ -4958,7 +4958,7 @@ var NotificationsApiFp = function(configuration) {
4958
4958
  */
4959
4959
  async getNotifications(page, limit, unreadOnly, options) {
4960
4960
  const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).getNotifications(page, limit, unreadOnly, options);
4961
- return (axios = globalAxios20, basePath = BASE_PATH) => {
4961
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4962
4962
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4963
4963
  return axios.request(axiosRequestArgs);
4964
4964
  };
@@ -4971,7 +4971,7 @@ var NotificationsApiFp = function(configuration) {
4971
4971
  */
4972
4972
  async getSettings(options) {
4973
4973
  const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).getSettings(options);
4974
- return (axios = globalAxios20, basePath = BASE_PATH) => {
4974
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4975
4975
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4976
4976
  return axios.request(axiosRequestArgs);
4977
4977
  };
@@ -4984,7 +4984,7 @@ var NotificationsApiFp = function(configuration) {
4984
4984
  */
4985
4985
  async getUnreadCount(options) {
4986
4986
  const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).getUnreadCount(options);
4987
- return (axios = globalAxios20, basePath = BASE_PATH) => {
4987
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4988
4988
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4989
4989
  return axios.request(axiosRequestArgs);
4990
4990
  };
@@ -4997,7 +4997,7 @@ var NotificationsApiFp = function(configuration) {
4997
4997
  */
4998
4998
  async markAllAsRead(options) {
4999
4999
  const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).markAllAsRead(options);
5000
- return (axios = globalAxios20, basePath = BASE_PATH) => {
5000
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5001
5001
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5002
5002
  return axios.request(axiosRequestArgs);
5003
5003
  };
@@ -5011,7 +5011,7 @@ var NotificationsApiFp = function(configuration) {
5011
5011
  */
5012
5012
  async markAsRead(id, options) {
5013
5013
  const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).markAsRead(id, options);
5014
- return (axios = globalAxios20, basePath = BASE_PATH) => {
5014
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5015
5015
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5016
5016
  return axios.request(axiosRequestArgs);
5017
5017
  };
@@ -5025,7 +5025,7 @@ var NotificationsApiFp = function(configuration) {
5025
5025
  */
5026
5026
  async stream(token, options) {
5027
5027
  const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).stream(token, options);
5028
- return (axios = globalAxios20, basePath = BASE_PATH) => {
5028
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5029
5029
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5030
5030
  return axios.request(axiosRequestArgs);
5031
5031
  };
@@ -5039,7 +5039,7 @@ var NotificationsApiFp = function(configuration) {
5039
5039
  */
5040
5040
  async updateSettings(body, options) {
5041
5041
  const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).updateSettings(body, options);
5042
- return (axios = globalAxios20, basePath = BASE_PATH) => {
5042
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5043
5043
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5044
5044
  return axios.request(axiosRequestArgs);
5045
5045
  };
@@ -5776,7 +5776,7 @@ var OrdersApiFp = function(configuration) {
5776
5776
  */
5777
5777
  async assignPaymentMethod(orderId, paymentMethod, billingAddressId, options) {
5778
5778
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).assignPaymentMethod(orderId, paymentMethod, billingAddressId, options);
5779
- return (axios = globalAxios20, basePath = BASE_PATH) => {
5779
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5780
5780
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5781
5781
  return axios.request(axiosRequestArgs);
5782
5782
  };
@@ -5790,7 +5790,7 @@ var OrdersApiFp = function(configuration) {
5790
5790
  */
5791
5791
  async cancelOrder(id, options) {
5792
5792
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).cancelOrder(id, options);
5793
- return (axios = globalAxios20, basePath = BASE_PATH) => {
5793
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5794
5794
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5795
5795
  return axios.request(axiosRequestArgs);
5796
5796
  };
@@ -5808,7 +5808,7 @@ var OrdersApiFp = function(configuration) {
5808
5808
  */
5809
5809
  async createCheckout(body, isDelivery, userId, rateId, billingAddressId, options) {
5810
5810
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).createCheckout(body, isDelivery, userId, rateId, billingAddressId, options);
5811
- return (axios = globalAxios20, basePath = BASE_PATH) => {
5811
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5812
5812
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5813
5813
  return axios.request(axiosRequestArgs);
5814
5814
  };
@@ -5822,7 +5822,7 @@ var OrdersApiFp = function(configuration) {
5822
5822
  */
5823
5823
  async deleteOrder(id, options) {
5824
5824
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).deleteOrder(id, options);
5825
- return (axios = globalAxios20, basePath = BASE_PATH) => {
5825
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5826
5826
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5827
5827
  return axios.request(axiosRequestArgs);
5828
5828
  };
@@ -5843,7 +5843,7 @@ var OrdersApiFp = function(configuration) {
5843
5843
  */
5844
5844
  async getAllOrders(paymentStatus, orderStatus, page, limit, search, createdAfter, createdBefore, userId, options) {
5845
5845
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getAllOrders(paymentStatus, orderStatus, page, limit, search, createdAfter, createdBefore, userId, options);
5846
- return (axios = globalAxios20, basePath = BASE_PATH) => {
5846
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5847
5847
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5848
5848
  return axios.request(axiosRequestArgs);
5849
5849
  };
@@ -5857,7 +5857,7 @@ var OrdersApiFp = function(configuration) {
5857
5857
  */
5858
5858
  async getSingleOrder(id, options) {
5859
5859
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getSingleOrder(id, options);
5860
- return (axios = globalAxios20, basePath = BASE_PATH) => {
5860
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5861
5861
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5862
5862
  return axios.request(axiosRequestArgs);
5863
5863
  };
@@ -5870,7 +5870,7 @@ var OrdersApiFp = function(configuration) {
5870
5870
  */
5871
5871
  async getStoreOrderInsights(options) {
5872
5872
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getStoreOrderInsights(options);
5873
- return (axios = globalAxios20, basePath = BASE_PATH) => {
5873
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5874
5874
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5875
5875
  return axios.request(axiosRequestArgs);
5876
5876
  };
@@ -5883,7 +5883,7 @@ var OrdersApiFp = function(configuration) {
5883
5883
  */
5884
5884
  async getUserOrders(options) {
5885
5885
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getUserOrders(options);
5886
- return (axios = globalAxios20, basePath = BASE_PATH) => {
5886
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5887
5887
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5888
5888
  return axios.request(axiosRequestArgs);
5889
5889
  };
@@ -5897,7 +5897,7 @@ var OrdersApiFp = function(configuration) {
5897
5897
  */
5898
5898
  async payOrder(orderId, options) {
5899
5899
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).payOrder(orderId, options);
5900
- return (axios = globalAxios20, basePath = BASE_PATH) => {
5900
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5901
5901
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5902
5902
  return axios.request(axiosRequestArgs);
5903
5903
  };
@@ -5911,7 +5911,7 @@ var OrdersApiFp = function(configuration) {
5911
5911
  */
5912
5912
  async sendOrderEmail(body, options) {
5913
5913
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).sendOrderEmail(body, options);
5914
- return (axios = globalAxios20, basePath = BASE_PATH) => {
5914
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5915
5915
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5916
5916
  return axios.request(axiosRequestArgs);
5917
5917
  };
@@ -5932,7 +5932,7 @@ var OrdersApiFp = function(configuration) {
5932
5932
  */
5933
5933
  async updateOrder(body, isDelivery, id, paymentMethod, userId, rateId, addressId, billingAddressId, options) {
5934
5934
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).updateOrder(body, isDelivery, id, paymentMethod, userId, rateId, addressId, billingAddressId, options);
5935
- return (axios = globalAxios20, basePath = BASE_PATH) => {
5935
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5936
5936
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5937
5937
  return axios.request(axiosRequestArgs);
5938
5938
  };
@@ -5947,7 +5947,7 @@ var OrdersApiFp = function(configuration) {
5947
5947
  */
5948
5948
  async updateOrderStatus(id, orderStatus, options) {
5949
5949
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).updateOrderStatus(id, orderStatus, options);
5950
- return (axios = globalAxios20, basePath = BASE_PATH) => {
5950
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5951
5951
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5952
5952
  return axios.request(axiosRequestArgs);
5953
5953
  };
@@ -6341,6 +6341,52 @@ var ProductsApiAxiosParamCreator = function(configuration) {
6341
6341
  options: localVarRequestOptions
6342
6342
  };
6343
6343
  },
6344
+ /**
6345
+ *
6346
+ * @summary Generate a product draft using AI
6347
+ * @param {ProductsAidraftBody} body
6348
+ * @param {*} [options] Override http request option.
6349
+ * @throws {RequiredError}
6350
+ */
6351
+ generateAiDraft: async (body, options = {}) => {
6352
+ if (body === null || body === void 0) {
6353
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling generateAiDraft.");
6354
+ }
6355
+ const localVarPath = `/products/ai-draft`;
6356
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
6357
+ let baseOptions;
6358
+ if (configuration) {
6359
+ baseOptions = configuration.baseOptions;
6360
+ }
6361
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
6362
+ const localVarHeaderParameter = {};
6363
+ const localVarQueryParameter = {};
6364
+ if (configuration && configuration.accessToken) {
6365
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
6366
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
6367
+ }
6368
+ if (configuration && configuration.apiKey) {
6369
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
6370
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
6371
+ }
6372
+ localVarHeaderParameter["Content-Type"] = "application/json";
6373
+ const query = new URLSearchParams(localVarUrlObj.search);
6374
+ for (const key in localVarQueryParameter) {
6375
+ query.set(key, localVarQueryParameter[key]);
6376
+ }
6377
+ for (const key in options.params) {
6378
+ query.set(key, options.params[key]);
6379
+ }
6380
+ localVarUrlObj.search = new URLSearchParams(query).toString();
6381
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6382
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6383
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
6384
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
6385
+ return {
6386
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
6387
+ options: localVarRequestOptions
6388
+ };
6389
+ },
6344
6390
  /**
6345
6391
  *
6346
6392
  * @summary [DEPRECATED] Use GET /products/all?categoryId=:id instead
@@ -6426,7 +6472,6 @@ var ProductsApiAxiosParamCreator = function(configuration) {
6426
6472
  /**
6427
6473
  *
6428
6474
  * @summary Get all products with filtering and pagination
6429
- * @param {string} [searchTerm]
6430
6475
  * @param {number} [maxPrice]
6431
6476
  * @param {number} [minPrice]
6432
6477
  * @param {string} [brandFilter] Comma-separated brand names
@@ -6440,7 +6485,7 @@ var ProductsApiAxiosParamCreator = function(configuration) {
6440
6485
  * @param {*} [options] Override http request option.
6441
6486
  * @throws {RequiredError}
6442
6487
  */
6443
- getAllProducts: async (searchTerm, maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options = {}) => {
6488
+ getAllProducts: async (maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options = {}) => {
6444
6489
  const localVarPath = `/products/all`;
6445
6490
  const localVarUrlObj = new URL(localVarPath, "https://example.com");
6446
6491
  let baseOptions;
@@ -6458,9 +6503,6 @@ var ProductsApiAxiosParamCreator = function(configuration) {
6458
6503
  const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
6459
6504
  localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
6460
6505
  }
6461
- if (searchTerm !== void 0) {
6462
- localVarQueryParameter["searchTerm"] = searchTerm;
6463
- }
6464
6506
  if (maxPrice !== void 0) {
6465
6507
  localVarQueryParameter["maxPrice"] = maxPrice;
6466
6508
  }
@@ -6889,6 +6931,94 @@ var ProductsApiAxiosParamCreator = function(configuration) {
6889
6931
  options: localVarRequestOptions
6890
6932
  };
6891
6933
  },
6934
+ /**
6935
+ *
6936
+ * @summary Process image using PhotoRoom (remove background)
6937
+ * @param {Blob} image
6938
+ * @param {*} [options] Override http request option.
6939
+ * @throws {RequiredError}
6940
+ */
6941
+ processImageForm: async (image, options = {}) => {
6942
+ if (image === null || image === void 0) {
6943
+ throw new RequiredError("image", "Required parameter image was null or undefined when calling processImageForm.");
6944
+ }
6945
+ const localVarPath = `/products/process-image`;
6946
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
6947
+ let baseOptions;
6948
+ if (configuration) {
6949
+ baseOptions = configuration.baseOptions;
6950
+ }
6951
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
6952
+ const localVarHeaderParameter = {};
6953
+ const localVarQueryParameter = {};
6954
+ const localVarFormParams = new FormData();
6955
+ if (configuration && configuration.accessToken) {
6956
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
6957
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
6958
+ }
6959
+ if (configuration && configuration.apiKey) {
6960
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
6961
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
6962
+ }
6963
+ if (image !== void 0) {
6964
+ localVarFormParams.append("image", image);
6965
+ }
6966
+ localVarHeaderParameter["Content-Type"] = "multipart/form-data";
6967
+ const query = new URLSearchParams(localVarUrlObj.search);
6968
+ for (const key in localVarQueryParameter) {
6969
+ query.set(key, localVarQueryParameter[key]);
6970
+ }
6971
+ for (const key in options.params) {
6972
+ query.set(key, options.params[key]);
6973
+ }
6974
+ localVarUrlObj.search = new URLSearchParams(query).toString();
6975
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6976
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6977
+ localVarRequestOptions.data = localVarFormParams;
6978
+ return {
6979
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
6980
+ options: localVarRequestOptions
6981
+ };
6982
+ },
6983
+ /**
6984
+ * Generates AI embeddings for all products. Run this once after enabling smart search, or to refresh all embeddings.
6985
+ * @summary Reindex all product embeddings for smart search
6986
+ * @param {*} [options] Override http request option.
6987
+ * @throws {RequiredError}
6988
+ */
6989
+ reindexEmbeddings: async (options = {}) => {
6990
+ const localVarPath = `/products/reindex-embeddings`;
6991
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
6992
+ let baseOptions;
6993
+ if (configuration) {
6994
+ baseOptions = configuration.baseOptions;
6995
+ }
6996
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
6997
+ const localVarHeaderParameter = {};
6998
+ const localVarQueryParameter = {};
6999
+ if (configuration && configuration.accessToken) {
7000
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
7001
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
7002
+ }
7003
+ if (configuration && configuration.apiKey) {
7004
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7005
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7006
+ }
7007
+ const query = new URLSearchParams(localVarUrlObj.search);
7008
+ for (const key in localVarQueryParameter) {
7009
+ query.set(key, localVarQueryParameter[key]);
7010
+ }
7011
+ for (const key in options.params) {
7012
+ query.set(key, options.params[key]);
7013
+ }
7014
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7015
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7016
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7017
+ return {
7018
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7019
+ options: localVarRequestOptions
7020
+ };
7021
+ },
6892
7022
  /**
6893
7023
  *
6894
7024
  * @summary Reorder products within a category or subcategory
@@ -6935,6 +7065,56 @@ var ProductsApiAxiosParamCreator = function(configuration) {
6935
7065
  options: localVarRequestOptions
6936
7066
  };
6937
7067
  },
7068
+ /**
7069
+ * Search products using natural language. Handles typos, synonyms, and returns related products ranked by relevance.
7070
+ * @summary Smart search using AI-powered semantic similarity
7071
+ * @param {string} searchTerm Search query (e.g., \"headache medicine\", \"iphn 12\")
7072
+ * @param {number} [limit] Maximum results (default: 20)
7073
+ * @param {*} [options] Override http request option.
7074
+ * @throws {RequiredError}
7075
+ */
7076
+ smartSearch: async (searchTerm, limit, options = {}) => {
7077
+ if (searchTerm === null || searchTerm === void 0) {
7078
+ throw new RequiredError("searchTerm", "Required parameter searchTerm was null or undefined when calling smartSearch.");
7079
+ }
7080
+ const localVarPath = `/products/search`;
7081
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7082
+ let baseOptions;
7083
+ if (configuration) {
7084
+ baseOptions = configuration.baseOptions;
7085
+ }
7086
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
7087
+ const localVarHeaderParameter = {};
7088
+ const localVarQueryParameter = {};
7089
+ if (configuration && configuration.accessToken) {
7090
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
7091
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
7092
+ }
7093
+ if (configuration && configuration.apiKey) {
7094
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7095
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7096
+ }
7097
+ if (searchTerm !== void 0) {
7098
+ localVarQueryParameter["searchTerm"] = searchTerm;
7099
+ }
7100
+ if (limit !== void 0) {
7101
+ localVarQueryParameter["limit"] = limit;
7102
+ }
7103
+ const query = new URLSearchParams(localVarUrlObj.search);
7104
+ for (const key in localVarQueryParameter) {
7105
+ query.set(key, localVarQueryParameter[key]);
7106
+ }
7107
+ for (const key in options.params) {
7108
+ query.set(key, options.params[key]);
7109
+ }
7110
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7111
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7112
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7113
+ return {
7114
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7115
+ options: localVarRequestOptions
7116
+ };
7117
+ },
6938
7118
  /**
6939
7119
  *
6940
7120
  * @summary Update variant inventory (add or subtract)
@@ -7107,7 +7287,7 @@ var ProductsApiFp = function(configuration) {
7107
7287
  */
7108
7288
  async addVariant(body, productId, options) {
7109
7289
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).addVariant(body, productId, options);
7110
- return (axios = globalAxios20, basePath = BASE_PATH) => {
7290
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7111
7291
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7112
7292
  return axios.request(axiosRequestArgs);
7113
7293
  };
@@ -7121,7 +7301,7 @@ var ProductsApiFp = function(configuration) {
7121
7301
  */
7122
7302
  async createProduct(body, options) {
7123
7303
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).createProduct(body, options);
7124
- return (axios = globalAxios20, basePath = BASE_PATH) => {
7304
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7125
7305
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7126
7306
  return axios.request(axiosRequestArgs);
7127
7307
  };
@@ -7135,7 +7315,7 @@ var ProductsApiFp = function(configuration) {
7135
7315
  */
7136
7316
  async createProductLegacy(body, options) {
7137
7317
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).createProductLegacy(body, options);
7138
- return (axios = globalAxios20, basePath = BASE_PATH) => {
7318
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7139
7319
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7140
7320
  return axios.request(axiosRequestArgs);
7141
7321
  };
@@ -7149,7 +7329,7 @@ var ProductsApiFp = function(configuration) {
7149
7329
  */
7150
7330
  async deleteProduct(id, options) {
7151
7331
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).deleteProduct(id, options);
7152
- return (axios = globalAxios20, basePath = BASE_PATH) => {
7332
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7153
7333
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7154
7334
  return axios.request(axiosRequestArgs);
7155
7335
  };
@@ -7164,7 +7344,21 @@ var ProductsApiFp = function(configuration) {
7164
7344
  */
7165
7345
  async deleteVariant(productId, variantId, options) {
7166
7346
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).deleteVariant(productId, variantId, options);
7167
- return (axios = globalAxios20, basePath = BASE_PATH) => {
7347
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7348
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7349
+ return axios.request(axiosRequestArgs);
7350
+ };
7351
+ },
7352
+ /**
7353
+ *
7354
+ * @summary Generate a product draft using AI
7355
+ * @param {ProductsAidraftBody} body
7356
+ * @param {*} [options] Override http request option.
7357
+ * @throws {RequiredError}
7358
+ */
7359
+ async generateAiDraft(body, options) {
7360
+ const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).generateAiDraft(body, options);
7361
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7168
7362
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7169
7363
  return axios.request(axiosRequestArgs);
7170
7364
  };
@@ -7178,7 +7372,7 @@ var ProductsApiFp = function(configuration) {
7178
7372
  */
7179
7373
  async getAllCategoryProducts(categoryId, options) {
7180
7374
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllCategoryProducts(categoryId, options);
7181
- return (axios = globalAxios20, basePath = BASE_PATH) => {
7375
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7182
7376
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7183
7377
  return axios.request(axiosRequestArgs);
7184
7378
  };
@@ -7191,7 +7385,7 @@ var ProductsApiFp = function(configuration) {
7191
7385
  */
7192
7386
  async getAllFilters(options) {
7193
7387
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllFilters(options);
7194
- return (axios = globalAxios20, basePath = BASE_PATH) => {
7388
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7195
7389
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7196
7390
  return axios.request(axiosRequestArgs);
7197
7391
  };
@@ -7199,7 +7393,6 @@ var ProductsApiFp = function(configuration) {
7199
7393
  /**
7200
7394
  *
7201
7395
  * @summary Get all products with filtering and pagination
7202
- * @param {string} [searchTerm]
7203
7396
  * @param {number} [maxPrice]
7204
7397
  * @param {number} [minPrice]
7205
7398
  * @param {string} [brandFilter] Comma-separated brand names
@@ -7213,9 +7406,9 @@ var ProductsApiFp = function(configuration) {
7213
7406
  * @param {*} [options] Override http request option.
7214
7407
  * @throws {RequiredError}
7215
7408
  */
7216
- async getAllProducts(searchTerm, maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options) {
7217
- const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProducts(searchTerm, maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options);
7218
- return (axios = globalAxios20, basePath = BASE_PATH) => {
7409
+ async getAllProducts(maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options) {
7410
+ const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProducts(maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options);
7411
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7219
7412
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7220
7413
  return axios.request(axiosRequestArgs);
7221
7414
  };
@@ -7229,7 +7422,7 @@ var ProductsApiFp = function(configuration) {
7229
7422
  */
7230
7423
  async getAllProductsBySubCategory(subCategoryId, options) {
7231
7424
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProductsBySubCategory(subCategoryId, options);
7232
- return (axios = globalAxios20, basePath = BASE_PATH) => {
7425
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7233
7426
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7234
7427
  return axios.request(axiosRequestArgs);
7235
7428
  };
@@ -7242,7 +7435,7 @@ var ProductsApiFp = function(configuration) {
7242
7435
  */
7243
7436
  async getAllProductsLight(options) {
7244
7437
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProductsLight(options);
7245
- return (axios = globalAxios20, basePath = BASE_PATH) => {
7438
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7246
7439
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7247
7440
  return axios.request(axiosRequestArgs);
7248
7441
  };
@@ -7255,7 +7448,7 @@ var ProductsApiFp = function(configuration) {
7255
7448
  */
7256
7449
  async getFeaturedProduct(options) {
7257
7450
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getFeaturedProduct(options);
7258
- return (axios = globalAxios20, basePath = BASE_PATH) => {
7451
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7259
7452
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7260
7453
  return axios.request(axiosRequestArgs);
7261
7454
  };
@@ -7268,7 +7461,7 @@ var ProductsApiFp = function(configuration) {
7268
7461
  */
7269
7462
  async getProductsInsights(options) {
7270
7463
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getProductsInsights(options);
7271
- return (axios = globalAxios20, basePath = BASE_PATH) => {
7464
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7272
7465
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7273
7466
  return axios.request(axiosRequestArgs);
7274
7467
  };
@@ -7283,7 +7476,7 @@ var ProductsApiFp = function(configuration) {
7283
7476
  */
7284
7477
  async getRelatedProducts(id, limit, options) {
7285
7478
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getRelatedProducts(id, limit, options);
7286
- return (axios = globalAxios20, basePath = BASE_PATH) => {
7479
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7287
7480
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7288
7481
  return axios.request(axiosRequestArgs);
7289
7482
  };
@@ -7297,7 +7490,7 @@ var ProductsApiFp = function(configuration) {
7297
7490
  */
7298
7491
  async getRelatedProductsLegacy(productId, options) {
7299
7492
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getRelatedProductsLegacy(productId, options);
7300
- return (axios = globalAxios20, basePath = BASE_PATH) => {
7493
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7301
7494
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7302
7495
  return axios.request(axiosRequestArgs);
7303
7496
  };
@@ -7311,7 +7504,7 @@ var ProductsApiFp = function(configuration) {
7311
7504
  */
7312
7505
  async getSingleProduct(id, options) {
7313
7506
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getSingleProduct(id, options);
7314
- return (axios = globalAxios20, basePath = BASE_PATH) => {
7507
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7315
7508
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7316
7509
  return axios.request(axiosRequestArgs);
7317
7510
  };
@@ -7325,7 +7518,7 @@ var ProductsApiFp = function(configuration) {
7325
7518
  */
7326
7519
  async getSingleProductLegacy(id, options) {
7327
7520
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getSingleProductLegacy(id, options);
7328
- return (axios = globalAxios20, basePath = BASE_PATH) => {
7521
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7329
7522
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7330
7523
  return axios.request(axiosRequestArgs);
7331
7524
  };
@@ -7340,7 +7533,34 @@ var ProductsApiFp = function(configuration) {
7340
7533
  */
7341
7534
  async getTopSellingProducts(limit, page, options) {
7342
7535
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getTopSellingProducts(limit, page, options);
7343
- return (axios = globalAxios20, basePath = BASE_PATH) => {
7536
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7537
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7538
+ return axios.request(axiosRequestArgs);
7539
+ };
7540
+ },
7541
+ /**
7542
+ *
7543
+ * @summary Process image using PhotoRoom (remove background)
7544
+ * @param {Blob} image
7545
+ * @param {*} [options] Override http request option.
7546
+ * @throws {RequiredError}
7547
+ */
7548
+ async processImageForm(image, options) {
7549
+ const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).processImageForm(image, options);
7550
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7551
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7552
+ return axios.request(axiosRequestArgs);
7553
+ };
7554
+ },
7555
+ /**
7556
+ * Generates AI embeddings for all products. Run this once after enabling smart search, or to refresh all embeddings.
7557
+ * @summary Reindex all product embeddings for smart search
7558
+ * @param {*} [options] Override http request option.
7559
+ * @throws {RequiredError}
7560
+ */
7561
+ async reindexEmbeddings(options) {
7562
+ const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).reindexEmbeddings(options);
7563
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7344
7564
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7345
7565
  return axios.request(axiosRequestArgs);
7346
7566
  };
@@ -7354,7 +7574,22 @@ var ProductsApiFp = function(configuration) {
7354
7574
  */
7355
7575
  async reorderProducts(body, options) {
7356
7576
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).reorderProducts(body, options);
7357
- return (axios = globalAxios20, basePath = BASE_PATH) => {
7577
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7578
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7579
+ return axios.request(axiosRequestArgs);
7580
+ };
7581
+ },
7582
+ /**
7583
+ * Search products using natural language. Handles typos, synonyms, and returns related products ranked by relevance.
7584
+ * @summary Smart search using AI-powered semantic similarity
7585
+ * @param {string} searchTerm Search query (e.g., \"headache medicine\", \"iphn 12\")
7586
+ * @param {number} [limit] Maximum results (default: 20)
7587
+ * @param {*} [options] Override http request option.
7588
+ * @throws {RequiredError}
7589
+ */
7590
+ async smartSearch(searchTerm, limit, options) {
7591
+ const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).smartSearch(searchTerm, limit, options);
7592
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7358
7593
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7359
7594
  return axios.request(axiosRequestArgs);
7360
7595
  };
@@ -7370,7 +7605,7 @@ var ProductsApiFp = function(configuration) {
7370
7605
  */
7371
7606
  async updateInventory(body, productId, variantId, options) {
7372
7607
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateInventory(body, productId, variantId, options);
7373
- return (axios = globalAxios20, basePath = BASE_PATH) => {
7608
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7374
7609
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7375
7610
  return axios.request(axiosRequestArgs);
7376
7611
  };
@@ -7385,7 +7620,7 @@ var ProductsApiFp = function(configuration) {
7385
7620
  */
7386
7621
  async updateProduct(body, id, options) {
7387
7622
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateProduct(body, id, options);
7388
- return (axios = globalAxios20, basePath = BASE_PATH) => {
7623
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7389
7624
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7390
7625
  return axios.request(axiosRequestArgs);
7391
7626
  };
@@ -7401,7 +7636,7 @@ var ProductsApiFp = function(configuration) {
7401
7636
  */
7402
7637
  async updateVariant(body, productId, variantId, options) {
7403
7638
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateVariant(body, productId, variantId, options);
7404
- return (axios = globalAxios20, basePath = BASE_PATH) => {
7639
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7405
7640
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7406
7641
  return axios.request(axiosRequestArgs);
7407
7642
  };
@@ -7466,6 +7701,17 @@ var ProductsApi = class extends BaseAPI {
7466
7701
  async deleteVariant(productId, variantId, options) {
7467
7702
  return ProductsApiFp(this.configuration).deleteVariant(productId, variantId, options).then((request) => request(this.axios, this.basePath));
7468
7703
  }
7704
+ /**
7705
+ *
7706
+ * @summary Generate a product draft using AI
7707
+ * @param {ProductsAidraftBody} body
7708
+ * @param {*} [options] Override http request option.
7709
+ * @throws {RequiredError}
7710
+ * @memberof ProductsApi
7711
+ */
7712
+ async generateAiDraft(body, options) {
7713
+ return ProductsApiFp(this.configuration).generateAiDraft(body, options).then((request) => request(this.axios, this.basePath));
7714
+ }
7469
7715
  /**
7470
7716
  *
7471
7717
  * @summary [DEPRECATED] Use GET /products/all?categoryId=:id instead
@@ -7490,7 +7736,6 @@ var ProductsApi = class extends BaseAPI {
7490
7736
  /**
7491
7737
  *
7492
7738
  * @summary Get all products with filtering and pagination
7493
- * @param {string} [searchTerm]
7494
7739
  * @param {number} [maxPrice]
7495
7740
  * @param {number} [minPrice]
7496
7741
  * @param {string} [brandFilter] Comma-separated brand names
@@ -7505,8 +7750,8 @@ var ProductsApi = class extends BaseAPI {
7505
7750
  * @throws {RequiredError}
7506
7751
  * @memberof ProductsApi
7507
7752
  */
7508
- async getAllProducts(searchTerm, maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options) {
7509
- return ProductsApiFp(this.configuration).getAllProducts(searchTerm, maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options).then((request) => request(this.axios, this.basePath));
7753
+ async getAllProducts(maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options) {
7754
+ return ProductsApiFp(this.configuration).getAllProducts(maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options).then((request) => request(this.axios, this.basePath));
7510
7755
  }
7511
7756
  /**
7512
7757
  *
@@ -7606,6 +7851,27 @@ var ProductsApi = class extends BaseAPI {
7606
7851
  async getTopSellingProducts(limit, page, options) {
7607
7852
  return ProductsApiFp(this.configuration).getTopSellingProducts(limit, page, options).then((request) => request(this.axios, this.basePath));
7608
7853
  }
7854
+ /**
7855
+ *
7856
+ * @summary Process image using PhotoRoom (remove background)
7857
+ * @param {Blob} image
7858
+ * @param {*} [options] Override http request option.
7859
+ * @throws {RequiredError}
7860
+ * @memberof ProductsApi
7861
+ */
7862
+ async processImageForm(image, options) {
7863
+ return ProductsApiFp(this.configuration).processImageForm(image, options).then((request) => request(this.axios, this.basePath));
7864
+ }
7865
+ /**
7866
+ * Generates AI embeddings for all products. Run this once after enabling smart search, or to refresh all embeddings.
7867
+ * @summary Reindex all product embeddings for smart search
7868
+ * @param {*} [options] Override http request option.
7869
+ * @throws {RequiredError}
7870
+ * @memberof ProductsApi
7871
+ */
7872
+ async reindexEmbeddings(options) {
7873
+ return ProductsApiFp(this.configuration).reindexEmbeddings(options).then((request) => request(this.axios, this.basePath));
7874
+ }
7609
7875
  /**
7610
7876
  *
7611
7877
  * @summary Reorder products within a category or subcategory
@@ -7617,6 +7883,18 @@ var ProductsApi = class extends BaseAPI {
7617
7883
  async reorderProducts(body, options) {
7618
7884
  return ProductsApiFp(this.configuration).reorderProducts(body, options).then((request) => request(this.axios, this.basePath));
7619
7885
  }
7886
+ /**
7887
+ * Search products using natural language. Handles typos, synonyms, and returns related products ranked by relevance.
7888
+ * @summary Smart search using AI-powered semantic similarity
7889
+ * @param {string} searchTerm Search query (e.g., \"headache medicine\", \"iphn 12\")
7890
+ * @param {number} [limit] Maximum results (default: 20)
7891
+ * @param {*} [options] Override http request option.
7892
+ * @throws {RequiredError}
7893
+ * @memberof ProductsApi
7894
+ */
7895
+ async smartSearch(searchTerm, limit, options) {
7896
+ return ProductsApiFp(this.configuration).smartSearch(searchTerm, limit, options).then((request) => request(this.axios, this.basePath));
7897
+ }
7620
7898
  /**
7621
7899
  *
7622
7900
  * @summary Update variant inventory (add or subtract)
@@ -8427,7 +8705,7 @@ var ReviewApiFp = function(configuration) {
8427
8705
  */
8428
8706
  async addReplay(body, id, options) {
8429
8707
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).addReplay(body, id, options);
8430
- return (axios = globalAxios20, basePath = BASE_PATH) => {
8708
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8431
8709
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8432
8710
  return axios.request(axiosRequestArgs);
8433
8711
  };
@@ -8442,7 +8720,7 @@ var ReviewApiFp = function(configuration) {
8442
8720
  */
8443
8721
  async checkReviewStatus(orderId, productVariantId, options) {
8444
8722
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).checkReviewStatus(orderId, productVariantId, options);
8445
- return (axios = globalAxios20, basePath = BASE_PATH) => {
8723
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8446
8724
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8447
8725
  return axios.request(axiosRequestArgs);
8448
8726
  };
@@ -8457,7 +8735,7 @@ var ReviewApiFp = function(configuration) {
8457
8735
  */
8458
8736
  async createReview(body, orderId, options) {
8459
8737
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).createReview(body, orderId, options);
8460
- return (axios = globalAxios20, basePath = BASE_PATH) => {
8738
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8461
8739
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8462
8740
  return axios.request(axiosRequestArgs);
8463
8741
  };
@@ -8470,7 +8748,7 @@ var ReviewApiFp = function(configuration) {
8470
8748
  */
8471
8749
  async getReviewCount(options) {
8472
8750
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewCount(options);
8473
- return (axios = globalAxios20, basePath = BASE_PATH) => {
8751
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8474
8752
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8475
8753
  return axios.request(axiosRequestArgs);
8476
8754
  };
@@ -8484,7 +8762,7 @@ var ReviewApiFp = function(configuration) {
8484
8762
  */
8485
8763
  async getReviewableProducts(orderId, options) {
8486
8764
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewableProducts(orderId, options);
8487
- return (axios = globalAxios20, basePath = BASE_PATH) => {
8765
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8488
8766
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8489
8767
  return axios.request(axiosRequestArgs);
8490
8768
  };
@@ -8498,7 +8776,7 @@ var ReviewApiFp = function(configuration) {
8498
8776
  */
8499
8777
  async getReviewsByDate(date, options) {
8500
8778
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByDate(date, options);
8501
- return (axios = globalAxios20, basePath = BASE_PATH) => {
8779
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8502
8780
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8503
8781
  return axios.request(axiosRequestArgs);
8504
8782
  };
@@ -8513,7 +8791,7 @@ var ReviewApiFp = function(configuration) {
8513
8791
  */
8514
8792
  async getReviewsByDateRange(from, to, options) {
8515
8793
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByDateRange(from, to, options);
8516
- return (axios = globalAxios20, basePath = BASE_PATH) => {
8794
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8517
8795
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8518
8796
  return axios.request(axiosRequestArgs);
8519
8797
  };
@@ -8527,7 +8805,7 @@ var ReviewApiFp = function(configuration) {
8527
8805
  */
8528
8806
  async getReviewsByProduct(productId, options) {
8529
8807
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByProduct(productId, options);
8530
- return (axios = globalAxios20, basePath = BASE_PATH) => {
8808
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8531
8809
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8532
8810
  return axios.request(axiosRequestArgs);
8533
8811
  };
@@ -8541,7 +8819,7 @@ var ReviewApiFp = function(configuration) {
8541
8819
  */
8542
8820
  async getReviewsByRating(rating, options) {
8543
8821
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByRating(rating, options);
8544
- return (axios = globalAxios20, basePath = BASE_PATH) => {
8822
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8545
8823
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8546
8824
  return axios.request(axiosRequestArgs);
8547
8825
  };
@@ -8554,7 +8832,7 @@ var ReviewApiFp = function(configuration) {
8554
8832
  */
8555
8833
  async getReviewsByStore(options) {
8556
8834
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByStore(options);
8557
- return (axios = globalAxios20, basePath = BASE_PATH) => {
8835
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8558
8836
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8559
8837
  return axios.request(axiosRequestArgs);
8560
8838
  };
@@ -8568,7 +8846,7 @@ var ReviewApiFp = function(configuration) {
8568
8846
  */
8569
8847
  async getReviewsByType(type, options) {
8570
8848
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByType(type, options);
8571
- return (axios = globalAxios20, basePath = BASE_PATH) => {
8849
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8572
8850
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8573
8851
  return axios.request(axiosRequestArgs);
8574
8852
  };
@@ -8582,7 +8860,7 @@ var ReviewApiFp = function(configuration) {
8582
8860
  */
8583
8861
  async getReviewsByUser(userId, options) {
8584
8862
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByUser(userId, options);
8585
- return (axios = globalAxios20, basePath = BASE_PATH) => {
8863
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8586
8864
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8587
8865
  return axios.request(axiosRequestArgs);
8588
8866
  };
@@ -8595,7 +8873,7 @@ var ReviewApiFp = function(configuration) {
8595
8873
  */
8596
8874
  async getUserCompletedOrders(options) {
8597
8875
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getUserCompletedOrders(options);
8598
- return (axios = globalAxios20, basePath = BASE_PATH) => {
8876
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8599
8877
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8600
8878
  return axios.request(axiosRequestArgs);
8601
8879
  };
@@ -8609,7 +8887,7 @@ var ReviewApiFp = function(configuration) {
8609
8887
  */
8610
8888
  async removeReplay(id, options) {
8611
8889
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).removeReplay(id, options);
8612
- return (axios = globalAxios20, basePath = BASE_PATH) => {
8890
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8613
8891
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8614
8892
  return axios.request(axiosRequestArgs);
8615
8893
  };
@@ -8623,7 +8901,7 @@ var ReviewApiFp = function(configuration) {
8623
8901
  */
8624
8902
  async removeReview(id, options) {
8625
8903
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).removeReview(id, options);
8626
- return (axios = globalAxios20, basePath = BASE_PATH) => {
8904
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8627
8905
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8628
8906
  return axios.request(axiosRequestArgs);
8629
8907
  };
@@ -8638,7 +8916,7 @@ var ReviewApiFp = function(configuration) {
8638
8916
  */
8639
8917
  async updateReplay(body, id, options) {
8640
8918
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).updateReplay(body, id, options);
8641
- return (axios = globalAxios20, basePath = BASE_PATH) => {
8919
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8642
8920
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8643
8921
  return axios.request(axiosRequestArgs);
8644
8922
  };
@@ -8653,7 +8931,7 @@ var ReviewApiFp = function(configuration) {
8653
8931
  */
8654
8932
  async updateReview(body, id, options) {
8655
8933
  const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).updateReview(body, id, options);
8656
- return (axios = globalAxios20, basePath = BASE_PATH) => {
8934
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8657
8935
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8658
8936
  return axios.request(axiosRequestArgs);
8659
8937
  };
@@ -9126,7 +9404,7 @@ var ShippingApiFp = function(configuration) {
9126
9404
  */
9127
9405
  async getAllShipments(options) {
9128
9406
  const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getAllShipments(options);
9129
- return (axios = globalAxios20, basePath = BASE_PATH) => {
9407
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
9130
9408
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
9131
9409
  return axios.request(axiosRequestArgs);
9132
9410
  };
@@ -9139,7 +9417,7 @@ var ShippingApiFp = function(configuration) {
9139
9417
  */
9140
9418
  async getAllUserShipments(options) {
9141
9419
  const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getAllUserShipments(options);
9142
- return (axios = globalAxios20, basePath = BASE_PATH) => {
9420
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
9143
9421
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
9144
9422
  return axios.request(axiosRequestArgs);
9145
9423
  };
@@ -9153,7 +9431,7 @@ var ShippingApiFp = function(configuration) {
9153
9431
  */
9154
9432
  async getOrderShipment(orderId, options) {
9155
9433
  const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getOrderShipment(orderId, options);
9156
- return (axios = globalAxios20, basePath = BASE_PATH) => {
9434
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
9157
9435
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
9158
9436
  return axios.request(axiosRequestArgs);
9159
9437
  };
@@ -9168,7 +9446,7 @@ var ShippingApiFp = function(configuration) {
9168
9446
  */
9169
9447
  async getShippingRates(body, addressId, options) {
9170
9448
  const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getShippingRates(body, addressId, options);
9171
- return (axios = globalAxios20, basePath = BASE_PATH) => {
9449
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
9172
9450
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
9173
9451
  return axios.request(axiosRequestArgs);
9174
9452
  };
@@ -9181,7 +9459,7 @@ var ShippingApiFp = function(configuration) {
9181
9459
  */
9182
9460
  async getStoreAddress(options) {
9183
9461
  const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getStoreAddress(options);
9184
- return (axios = globalAxios20, basePath = BASE_PATH) => {
9462
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
9185
9463
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
9186
9464
  return axios.request(axiosRequestArgs);
9187
9465
  };
@@ -9196,7 +9474,7 @@ var ShippingApiFp = function(configuration) {
9196
9474
  */
9197
9475
  async updateManualShipmentStatus(body, shipmentId, options) {
9198
9476
  const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).updateManualShipmentStatus(body, shipmentId, options);
9199
- return (axios = globalAxios20, basePath = BASE_PATH) => {
9477
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
9200
9478
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
9201
9479
  return axios.request(axiosRequestArgs);
9202
9480
  };
@@ -9514,16 +9792,12 @@ var StoresApiAxiosParamCreator = function(configuration) {
9514
9792
  },
9515
9793
  /**
9516
9794
  *
9517
- * @summary Get store API keys with masked values
9518
- * @param {string} storeId
9795
+ * @summary Get store finance overview
9519
9796
  * @param {*} [options] Override http request option.
9520
9797
  * @throws {RequiredError}
9521
9798
  */
9522
- getApiKeys: async (storeId, options = {}) => {
9523
- if (storeId === null || storeId === void 0) {
9524
- throw new RequiredError("storeId", "Required parameter storeId was null or undefined when calling getApiKeys.");
9525
- }
9526
- const localVarPath = `/stores/{storeId}/api-keys`.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
9799
+ getFinanceOverview: async (options = {}) => {
9800
+ const localVarPath = `/stores/finance/overview`;
9527
9801
  const localVarUrlObj = new URL(localVarPath, "https://example.com");
9528
9802
  let baseOptions;
9529
9803
  if (configuration) {
@@ -9746,49 +10020,6 @@ var StoresApiAxiosParamCreator = function(configuration) {
9746
10020
  options: localVarRequestOptions
9747
10021
  };
9748
10022
  },
9749
- /**
9750
- *
9751
- * @summary Revoke/delete a specific API key
9752
- * @param {string} storeId
9753
- * @param {string} keyType Type of key to revoke
9754
- * @param {*} [options] Override http request option.
9755
- * @throws {RequiredError}
9756
- */
9757
- revokeApiKey: async (storeId, keyType, options = {}) => {
9758
- if (storeId === null || storeId === void 0) {
9759
- throw new RequiredError("storeId", "Required parameter storeId was null or undefined when calling revokeApiKey.");
9760
- }
9761
- if (keyType === null || keyType === void 0) {
9762
- throw new RequiredError("keyType", "Required parameter keyType was null or undefined when calling revokeApiKey.");
9763
- }
9764
- const localVarPath = `/stores/{storeId}/api-keys/{keyType}`.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId))).replace(`{${"keyType"}}`, encodeURIComponent(String(keyType)));
9765
- const localVarUrlObj = new URL(localVarPath, "https://example.com");
9766
- let baseOptions;
9767
- if (configuration) {
9768
- baseOptions = configuration.baseOptions;
9769
- }
9770
- const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
9771
- const localVarHeaderParameter = {};
9772
- const localVarQueryParameter = {};
9773
- if (configuration && configuration.apiKey) {
9774
- const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
9775
- localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
9776
- }
9777
- const query = new URLSearchParams(localVarUrlObj.search);
9778
- for (const key in localVarQueryParameter) {
9779
- query.set(key, localVarQueryParameter[key]);
9780
- }
9781
- for (const key in options.params) {
9782
- query.set(key, options.params[key]);
9783
- }
9784
- localVarUrlObj.search = new URLSearchParams(query).toString();
9785
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9786
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
9787
- return {
9788
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
9789
- options: localVarRequestOptions
9790
- };
9791
- },
9792
10023
  /**
9793
10024
  *
9794
10025
  * @param {*} [options] Override http request option.
@@ -10195,33 +10426,24 @@ var StoresApiAxiosParamCreator = function(configuration) {
10195
10426
  },
10196
10427
  /**
10197
10428
  *
10198
- * @summary Update store API keys (Stripe/Shippo)
10199
- * @param {UpdateApiKeysDto} body
10200
- * @param {string} storeId
10429
+ * @summary Generate Stripe Onboarding Link
10201
10430
  * @param {*} [options] Override http request option.
10202
10431
  * @throws {RequiredError}
10203
10432
  */
10204
- updateApiKeys: async (body, storeId, options = {}) => {
10205
- if (body === null || body === void 0) {
10206
- throw new RequiredError("body", "Required parameter body was null or undefined when calling updateApiKeys.");
10207
- }
10208
- if (storeId === null || storeId === void 0) {
10209
- throw new RequiredError("storeId", "Required parameter storeId was null or undefined when calling updateApiKeys.");
10210
- }
10211
- const localVarPath = `/stores/{storeId}/api-keys`.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
10433
+ startOnboarding: async (options = {}) => {
10434
+ const localVarPath = `/stores/onboarding`;
10212
10435
  const localVarUrlObj = new URL(localVarPath, "https://example.com");
10213
10436
  let baseOptions;
10214
10437
  if (configuration) {
10215
10438
  baseOptions = configuration.baseOptions;
10216
10439
  }
10217
- const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
10440
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
10218
10441
  const localVarHeaderParameter = {};
10219
10442
  const localVarQueryParameter = {};
10220
10443
  if (configuration && configuration.apiKey) {
10221
10444
  const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
10222
10445
  localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
10223
10446
  }
10224
- localVarHeaderParameter["Content-Type"] = "application/json";
10225
10447
  const query = new URLSearchParams(localVarUrlObj.search);
10226
10448
  for (const key in localVarQueryParameter) {
10227
10449
  query.set(key, localVarQueryParameter[key]);
@@ -10232,8 +10454,6 @@ var StoresApiAxiosParamCreator = function(configuration) {
10232
10454
  localVarUrlObj.search = new URLSearchParams(query).toString();
10233
10455
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10234
10456
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10235
- const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
10236
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
10237
10457
  return {
10238
10458
  url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
10239
10459
  options: localVarRequestOptions
@@ -10391,7 +10611,7 @@ var StoresApiFp = function(configuration) {
10391
10611
  */
10392
10612
  async createShippoAccount(body, storeId, options) {
10393
10613
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).createShippoAccount(body, storeId, options);
10394
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10614
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10395
10615
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10396
10616
  return axios.request(axiosRequestArgs);
10397
10617
  };
@@ -10405,7 +10625,7 @@ var StoresApiFp = function(configuration) {
10405
10625
  */
10406
10626
  async createStore(body, options) {
10407
10627
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).createStore(body, options);
10408
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10628
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10409
10629
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10410
10630
  return axios.request(axiosRequestArgs);
10411
10631
  };
@@ -10419,7 +10639,7 @@ var StoresApiFp = function(configuration) {
10419
10639
  */
10420
10640
  async deleteRefillRequest(requestId, options) {
10421
10641
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteRefillRequest(requestId, options);
10422
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10642
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10423
10643
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10424
10644
  return axios.request(axiosRequestArgs);
10425
10645
  };
@@ -10433,7 +10653,7 @@ var StoresApiFp = function(configuration) {
10433
10653
  */
10434
10654
  async deleteStore(id, options) {
10435
10655
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteStore(id, options);
10436
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10656
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10437
10657
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10438
10658
  return axios.request(axiosRequestArgs);
10439
10659
  };
@@ -10447,7 +10667,7 @@ var StoresApiFp = function(configuration) {
10447
10667
  */
10448
10668
  async deleteTransferePatientsRequest(requestId, options) {
10449
10669
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteTransferePatientsRequest(requestId, options);
10450
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10670
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10451
10671
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10452
10672
  return axios.request(axiosRequestArgs);
10453
10673
  };
@@ -10460,21 +10680,20 @@ var StoresApiFp = function(configuration) {
10460
10680
  */
10461
10681
  async getAllStores(options) {
10462
10682
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getAllStores(options);
10463
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10683
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10464
10684
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10465
10685
  return axios.request(axiosRequestArgs);
10466
10686
  };
10467
10687
  },
10468
10688
  /**
10469
10689
  *
10470
- * @summary Get store API keys with masked values
10471
- * @param {string} storeId
10690
+ * @summary Get store finance overview
10472
10691
  * @param {*} [options] Override http request option.
10473
10692
  * @throws {RequiredError}
10474
10693
  */
10475
- async getApiKeys(storeId, options) {
10476
- const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getApiKeys(storeId, options);
10477
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10694
+ async getFinanceOverview(options) {
10695
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getFinanceOverview(options);
10696
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10478
10697
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10479
10698
  return axios.request(axiosRequestArgs);
10480
10699
  };
@@ -10488,7 +10707,7 @@ var StoresApiFp = function(configuration) {
10488
10707
  */
10489
10708
  async getRefillRequests(storeId, options) {
10490
10709
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getRefillRequests(storeId, options);
10491
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10710
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10492
10711
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10493
10712
  return axios.request(axiosRequestArgs);
10494
10713
  };
@@ -10502,7 +10721,7 @@ var StoresApiFp = function(configuration) {
10502
10721
  */
10503
10722
  async getShippoAccount(storeId, options) {
10504
10723
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getShippoAccount(storeId, options);
10505
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10724
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10506
10725
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10507
10726
  return axios.request(axiosRequestArgs);
10508
10727
  };
@@ -10516,7 +10735,7 @@ var StoresApiFp = function(configuration) {
10516
10735
  */
10517
10736
  async getStoreById(storeId, options) {
10518
10737
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getStoreById(storeId, options);
10519
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10738
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10520
10739
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10521
10740
  return axios.request(axiosRequestArgs);
10522
10741
  };
@@ -10530,7 +10749,7 @@ var StoresApiFp = function(configuration) {
10530
10749
  */
10531
10750
  async getStoreCapabilities(storeId, options) {
10532
10751
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getStoreCapabilities(storeId, options);
10533
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10752
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10534
10753
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10535
10754
  return axios.request(axiosRequestArgs);
10536
10755
  };
@@ -10544,22 +10763,7 @@ var StoresApiFp = function(configuration) {
10544
10763
  */
10545
10764
  async getTransferePatientsRequests(storeId, options) {
10546
10765
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getTransferePatientsRequests(storeId, options);
10547
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10548
- const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10549
- return axios.request(axiosRequestArgs);
10550
- };
10551
- },
10552
- /**
10553
- *
10554
- * @summary Revoke/delete a specific API key
10555
- * @param {string} storeId
10556
- * @param {string} keyType Type of key to revoke
10557
- * @param {*} [options] Override http request option.
10558
- * @throws {RequiredError}
10559
- */
10560
- async revokeApiKey(storeId, keyType, options) {
10561
- const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).revokeApiKey(storeId, keyType, options);
10562
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10766
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10563
10767
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10564
10768
  return axios.request(axiosRequestArgs);
10565
10769
  };
@@ -10571,7 +10775,7 @@ var StoresApiFp = function(configuration) {
10571
10775
  */
10572
10776
  async sendContactUsEmail(options) {
10573
10777
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendContactUsEmail(options);
10574
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10778
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10575
10779
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10576
10780
  return axios.request(axiosRequestArgs);
10577
10781
  };
@@ -10583,7 +10787,7 @@ var StoresApiFp = function(configuration) {
10583
10787
  */
10584
10788
  async sendContactUsEmailEzrirx(options) {
10585
10789
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendContactUsEmailEzrirx(options);
10586
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10790
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10587
10791
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10588
10792
  return axios.request(axiosRequestArgs);
10589
10793
  };
@@ -10595,7 +10799,7 @@ var StoresApiFp = function(configuration) {
10595
10799
  */
10596
10800
  async sendGMBookDemoEmail(options) {
10597
10801
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMBookDemoEmail(options);
10598
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10802
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10599
10803
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10600
10804
  return axios.request(axiosRequestArgs);
10601
10805
  };
@@ -10607,7 +10811,7 @@ var StoresApiFp = function(configuration) {
10607
10811
  */
10608
10812
  async sendGMContactUsEmail(options) {
10609
10813
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMContactUsEmail(options);
10610
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10814
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10611
10815
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10612
10816
  return axios.request(axiosRequestArgs);
10613
10817
  };
@@ -10619,7 +10823,7 @@ var StoresApiFp = function(configuration) {
10619
10823
  */
10620
10824
  async sendGMJoinUsEmail(options) {
10621
10825
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMJoinUsEmail(options);
10622
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10826
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10623
10827
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10624
10828
  return axios.request(axiosRequestArgs);
10625
10829
  };
@@ -10631,7 +10835,7 @@ var StoresApiFp = function(configuration) {
10631
10835
  */
10632
10836
  async sendHolyFamilyEmail(options) {
10633
10837
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendHolyFamilyEmail(options);
10634
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10838
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10635
10839
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10636
10840
  return axios.request(axiosRequestArgs);
10637
10841
  };
@@ -10643,7 +10847,7 @@ var StoresApiFp = function(configuration) {
10643
10847
  */
10644
10848
  async sendMghBookingForm(options) {
10645
10849
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendMghBookingForm(options);
10646
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10850
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10647
10851
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10648
10852
  return axios.request(axiosRequestArgs);
10649
10853
  };
@@ -10657,7 +10861,7 @@ var StoresApiFp = function(configuration) {
10657
10861
  */
10658
10862
  async sendNewClientEmail(body, options) {
10659
10863
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendNewClientEmail(body, options);
10660
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10864
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10661
10865
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10662
10866
  return axios.request(axiosRequestArgs);
10663
10867
  };
@@ -10670,7 +10874,7 @@ var StoresApiFp = function(configuration) {
10670
10874
  */
10671
10875
  async sendNewPatientEmail(body, options) {
10672
10876
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendNewPatientEmail(body, options);
10673
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10877
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10674
10878
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10675
10879
  return axios.request(axiosRequestArgs);
10676
10880
  };
@@ -10683,7 +10887,7 @@ var StoresApiFp = function(configuration) {
10683
10887
  */
10684
10888
  async sendRefillEmail(body, options) {
10685
10889
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendRefillEmail(body, options);
10686
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10890
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10687
10891
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10688
10892
  return axios.request(axiosRequestArgs);
10689
10893
  };
@@ -10697,22 +10901,20 @@ var StoresApiFp = function(configuration) {
10697
10901
  */
10698
10902
  async sendScheduleTourEmail(body, options) {
10699
10903
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendScheduleTourEmail(body, options);
10700
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10904
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10701
10905
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10702
10906
  return axios.request(axiosRequestArgs);
10703
10907
  };
10704
10908
  },
10705
10909
  /**
10706
10910
  *
10707
- * @summary Update store API keys (Stripe/Shippo)
10708
- * @param {UpdateApiKeysDto} body
10709
- * @param {string} storeId
10911
+ * @summary Generate Stripe Onboarding Link
10710
10912
  * @param {*} [options] Override http request option.
10711
10913
  * @throws {RequiredError}
10712
10914
  */
10713
- async updateApiKeys(body, storeId, options) {
10714
- const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateApiKeys(body, storeId, options);
10715
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10915
+ async startOnboarding(options) {
10916
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).startOnboarding(options);
10917
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10716
10918
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10717
10919
  return axios.request(axiosRequestArgs);
10718
10920
  };
@@ -10727,7 +10929,7 @@ var StoresApiFp = function(configuration) {
10727
10929
  */
10728
10930
  async updateRefillRequest(body, requestId, options) {
10729
10931
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateRefillRequest(body, requestId, options);
10730
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10932
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10731
10933
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10732
10934
  return axios.request(axiosRequestArgs);
10733
10935
  };
@@ -10742,7 +10944,7 @@ var StoresApiFp = function(configuration) {
10742
10944
  */
10743
10945
  async updateStore(body, id, options) {
10744
10946
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateStore(body, id, options);
10745
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10947
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10746
10948
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10747
10949
  return axios.request(axiosRequestArgs);
10748
10950
  };
@@ -10757,7 +10959,7 @@ var StoresApiFp = function(configuration) {
10757
10959
  */
10758
10960
  async updateTransferePatientsRequest(body, requestId, options) {
10759
10961
  const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateTransferePatientsRequest(body, requestId, options);
10760
- return (axios = globalAxios20, basePath = BASE_PATH) => {
10962
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
10761
10963
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
10762
10964
  return axios.request(axiosRequestArgs);
10763
10965
  };
@@ -10833,14 +11035,13 @@ var StoresApi = class extends BaseAPI {
10833
11035
  }
10834
11036
  /**
10835
11037
  *
10836
- * @summary Get store API keys with masked values
10837
- * @param {string} storeId
11038
+ * @summary Get store finance overview
10838
11039
  * @param {*} [options] Override http request option.
10839
11040
  * @throws {RequiredError}
10840
11041
  * @memberof StoresApi
10841
11042
  */
10842
- async getApiKeys(storeId, options) {
10843
- return StoresApiFp(this.configuration).getApiKeys(storeId, options).then((request) => request(this.axios, this.basePath));
11043
+ async getFinanceOverview(options) {
11044
+ return StoresApiFp(this.configuration).getFinanceOverview(options).then((request) => request(this.axios, this.basePath));
10844
11045
  }
10845
11046
  /**
10846
11047
  *
@@ -10897,18 +11098,6 @@ var StoresApi = class extends BaseAPI {
10897
11098
  async getTransferePatientsRequests(storeId, options) {
10898
11099
  return StoresApiFp(this.configuration).getTransferePatientsRequests(storeId, options).then((request) => request(this.axios, this.basePath));
10899
11100
  }
10900
- /**
10901
- *
10902
- * @summary Revoke/delete a specific API key
10903
- * @param {string} storeId
10904
- * @param {string} keyType Type of key to revoke
10905
- * @param {*} [options] Override http request option.
10906
- * @throws {RequiredError}
10907
- * @memberof StoresApi
10908
- */
10909
- async revokeApiKey(storeId, keyType, options) {
10910
- return StoresApiFp(this.configuration).revokeApiKey(storeId, keyType, options).then((request) => request(this.axios, this.basePath));
10911
- }
10912
11101
  /**
10913
11102
  *
10914
11103
  * @param {*} [options] Override http request option.
@@ -11016,15 +11205,13 @@ var StoresApi = class extends BaseAPI {
11016
11205
  }
11017
11206
  /**
11018
11207
  *
11019
- * @summary Update store API keys (Stripe/Shippo)
11020
- * @param {UpdateApiKeysDto} body
11021
- * @param {string} storeId
11208
+ * @summary Generate Stripe Onboarding Link
11022
11209
  * @param {*} [options] Override http request option.
11023
11210
  * @throws {RequiredError}
11024
11211
  * @memberof StoresApi
11025
11212
  */
11026
- async updateApiKeys(body, storeId, options) {
11027
- return StoresApiFp(this.configuration).updateApiKeys(body, storeId, options).then((request) => request(this.axios, this.basePath));
11213
+ async startOnboarding(options) {
11214
+ return StoresApiFp(this.configuration).startOnboarding(options).then((request) => request(this.axios, this.basePath));
11028
11215
  }
11029
11216
  /**
11030
11217
  *
@@ -11261,7 +11448,7 @@ var WishlistApiFp = function(configuration) {
11261
11448
  */
11262
11449
  async addToWishlist(productId, options) {
11263
11450
  const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).addToWishlist(productId, options);
11264
- return (axios = globalAxios20, basePath = BASE_PATH) => {
11451
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
11265
11452
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
11266
11453
  return axios.request(axiosRequestArgs);
11267
11454
  };
@@ -11274,7 +11461,7 @@ var WishlistApiFp = function(configuration) {
11274
11461
  */
11275
11462
  async clearWishlist(options) {
11276
11463
  const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).clearWishlist(options);
11277
- return (axios = globalAxios20, basePath = BASE_PATH) => {
11464
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
11278
11465
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
11279
11466
  return axios.request(axiosRequestArgs);
11280
11467
  };
@@ -11287,7 +11474,7 @@ var WishlistApiFp = function(configuration) {
11287
11474
  */
11288
11475
  async getWishlist(options) {
11289
11476
  const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).getWishlist(options);
11290
- return (axios = globalAxios20, basePath = BASE_PATH) => {
11477
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
11291
11478
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
11292
11479
  return axios.request(axiosRequestArgs);
11293
11480
  };
@@ -11300,7 +11487,7 @@ var WishlistApiFp = function(configuration) {
11300
11487
  */
11301
11488
  async getWishlistItemCount(options) {
11302
11489
  const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).getWishlistItemCount(options);
11303
- return (axios = globalAxios20, basePath = BASE_PATH) => {
11490
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
11304
11491
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
11305
11492
  return axios.request(axiosRequestArgs);
11306
11493
  };
@@ -11314,7 +11501,7 @@ var WishlistApiFp = function(configuration) {
11314
11501
  */
11315
11502
  async removeFromWishlist(productId, options) {
11316
11503
  const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).removeFromWishlist(productId, options);
11317
- return (axios = globalAxios20, basePath = BASE_PATH) => {
11504
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
11318
11505
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
11319
11506
  return axios.request(axiosRequestArgs);
11320
11507
  };
@@ -11395,13 +11582,6 @@ var AddressCreatedRequestAddressTypeEnum = /* @__PURE__ */ ((AddressCreatedReque
11395
11582
  return AddressCreatedRequestAddressTypeEnum2;
11396
11583
  })(AddressCreatedRequestAddressTypeEnum || {});
11397
11584
 
11398
- // src/lib/Apis/models/api-key-info-dto.ts
11399
- var ApiKeyInfoDtoKeyTypeEnum = /* @__PURE__ */ ((ApiKeyInfoDtoKeyTypeEnum2) => {
11400
- ApiKeyInfoDtoKeyTypeEnum2["Stripe"] = "stripe";
11401
- ApiKeyInfoDtoKeyTypeEnum2["Shippo"] = "shippo";
11402
- return ApiKeyInfoDtoKeyTypeEnum2;
11403
- })(ApiKeyInfoDtoKeyTypeEnum || {});
11404
-
11405
11585
  // src/lib/Apis/models/bulk-channel-toggle-dto.ts
11406
11586
  var BulkChannelToggleDtoCategoryEnum = /* @__PURE__ */ ((BulkChannelToggleDtoCategoryEnum2) => {
11407
11587
  BulkChannelToggleDtoCategoryEnum2["Transactional"] = "transactional";
@@ -11479,6 +11659,13 @@ var DiscountStateEnum = /* @__PURE__ */ ((DiscountStateEnum2) => {
11479
11659
  return DiscountStateEnum2;
11480
11660
  })(DiscountStateEnum || {});
11481
11661
 
11662
+ // src/lib/Apis/models/inventory-alert-dto.ts
11663
+ var InventoryAlertDtoAlertTypeEnum = /* @__PURE__ */ ((InventoryAlertDtoAlertTypeEnum2) => {
11664
+ InventoryAlertDtoAlertTypeEnum2["LOWSTOCK"] = "LOW_STOCK";
11665
+ InventoryAlertDtoAlertTypeEnum2["OUTOFSTOCK"] = "OUT_OF_STOCK";
11666
+ return InventoryAlertDtoAlertTypeEnum2;
11667
+ })(InventoryAlertDtoAlertTypeEnum || {});
11668
+
11482
11669
  // src/lib/Apis/models/manual-discount-dto.ts
11483
11670
  var ManualDiscountDtoValueTypeEnum = /* @__PURE__ */ ((ManualDiscountDtoValueTypeEnum2) => {
11484
11671
  ManualDiscountDtoValueTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
@@ -11513,6 +11700,29 @@ var ManualOrderDTOPaymentStatusEnum = /* @__PURE__ */ ((ManualOrderDTOPaymentSta
11513
11700
  return ManualOrderDTOPaymentStatusEnum2;
11514
11701
  })(ManualOrderDTOPaymentStatusEnum || {});
11515
11702
 
11703
+ // src/lib/Apis/models/notification-dto.ts
11704
+ var NotificationDtoTypeEnum = /* @__PURE__ */ ((NotificationDtoTypeEnum2) => {
11705
+ NotificationDtoTypeEnum2["ORDERCONFIRMATION"] = "ORDER_CONFIRMATION";
11706
+ NotificationDtoTypeEnum2["PAYMENTFAILED"] = "PAYMENT_FAILED";
11707
+ NotificationDtoTypeEnum2["ORDERSHIPPED"] = "ORDER_SHIPPED";
11708
+ NotificationDtoTypeEnum2["ORDERDELIVERED"] = "ORDER_DELIVERED";
11709
+ NotificationDtoTypeEnum2["REFUNDPROCESSED"] = "REFUND_PROCESSED";
11710
+ NotificationDtoTypeEnum2["REVIEWREPLY"] = "REVIEW_REPLY";
11711
+ NotificationDtoTypeEnum2["ABANDONEDCARTREMINDER"] = "ABANDONED_CART_REMINDER";
11712
+ NotificationDtoTypeEnum2["PRICEDROPALERT"] = "PRICE_DROP_ALERT";
11713
+ NotificationDtoTypeEnum2["BACKINSTOCK"] = "BACK_IN_STOCK";
11714
+ NotificationDtoTypeEnum2["PASSWORDRESET"] = "PASSWORD_RESET";
11715
+ NotificationDtoTypeEnum2["NEWDEVICELOGIN"] = "NEW_DEVICE_LOGIN";
11716
+ NotificationDtoTypeEnum2["TWOFACODE"] = "TWO_FA_CODE";
11717
+ NotificationDtoTypeEnum2["NEWORDER"] = "NEW_ORDER";
11718
+ NotificationDtoTypeEnum2["LOWSTOCKWARNING"] = "LOW_STOCK_WARNING";
11719
+ NotificationDtoTypeEnum2["NEWRETURNREQUEST"] = "NEW_RETURN_REQUEST";
11720
+ NotificationDtoTypeEnum2["NEWUSERREGISTERED"] = "NEW_USER_REGISTERED";
11721
+ NotificationDtoTypeEnum2["HIGHVALUEORDERALERT"] = "HIGH_VALUE_ORDER_ALERT";
11722
+ NotificationDtoTypeEnum2["PAYOUTFAILED"] = "PAYOUT_FAILED";
11723
+ return NotificationDtoTypeEnum2;
11724
+ })(NotificationDtoTypeEnum || {});
11725
+
11516
11726
  // src/lib/Apis/models/order.ts
11517
11727
  var OrderOrderTypeEnum = /* @__PURE__ */ ((OrderOrderTypeEnum2) => {
11518
11728
  OrderOrderTypeEnum2["Pickup"] = "Pickup";
@@ -12098,7 +12308,7 @@ init_config();
12098
12308
  init_config();
12099
12309
  init_sharedConfig();
12100
12310
  init_sharedConfig();
12101
- globalAxios20.interceptors.request.use(async (config) => {
12311
+ globalAxios21.interceptors.request.use(async (config) => {
12102
12312
  if (!config?.headers) {
12103
12313
  throw new Error(
12104
12314
  `Expected 'config' and 'config.headers' not to be undefined`
@@ -13061,7 +13271,7 @@ function ProductCard({
13061
13271
  ),
13062
13272
  /* @__PURE__ */ jsxs("div", { className: "p-4 flex-1 flex flex-col", children: [
13063
13273
  /* @__PURE__ */ jsxs("div", { className: "p-0 flex-1 flex flex-col", children: [
13064
- /* @__PURE__ */ jsx("div", { className: "flex items-center gap-1 mb-2 flex-wrap", children: displayIsDiscounted && /* @__PURE__ */ jsx("span", { className: "bg-[#E67E50] text-white rounded-full px-2 py-0.5 flex items-center gap-1", children: /* @__PURE__ */ jsxs("span", { className: "font-bold text-[8px] uppercase", children: [
13274
+ /* @__PURE__ */ jsx("div", { className: "flex items-center gap-1 mb-2 flex-wrap", children: displayIsDiscounted && /* @__PURE__ */ jsx("span", { className: "bg-haccent-500 text-white rounded-full px-2 py-0.5 flex items-center gap-1", children: /* @__PURE__ */ jsxs("span", { className: "font-bold text-[8px] uppercase", children: [
13065
13275
  "-",
13066
13276
  displayDiscountAmount,
13067
13277
  "%"
@@ -13315,8 +13525,6 @@ function useProducts(filters, page = 1, limit = 20) {
13315
13525
  ],
13316
13526
  queryFn: async () => {
13317
13527
  const response = await new ProductsApi(AXIOS_CONFIG).getAllProducts(
13318
- filters?.search ?? "",
13319
- // searchTerm
13320
13528
  filters?.maxPrice,
13321
13529
  // maxPrice
13322
13530
  filters?.minPrice,
@@ -13522,52 +13730,6 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
13522
13730
  () => [...categories].sort((a, b) => (b.productCount ?? 0) - (a.productCount ?? 0)).slice(0, 6),
13523
13731
  [categories]
13524
13732
  );
13525
- const productInsights = useMemo(() => {
13526
- if (!products.length) {
13527
- return { newArrivals: 0, inStockCount: 0 };
13528
- }
13529
- const monthAgo = Date.now() - 30 * 24 * 60 * 60 * 1e3;
13530
- let newArrivals2 = 0;
13531
- let inStockCount = 0;
13532
- products.forEach((product) => {
13533
- if (product.summary?.totalInventory > 0) inStockCount += 1;
13534
- if (new Date(product.createdAt).getTime() >= monthAgo) newArrivals2 += 1;
13535
- });
13536
- return { newArrivals: newArrivals2, inStockCount };
13537
- }, [products]);
13538
- useMemo(
13539
- () => [
13540
- {
13541
- id: "new",
13542
- label: "New arrivals",
13543
- value: productInsights.newArrivals ? productInsights.newArrivals.toLocaleString() : isLoading ? "..." : "0",
13544
- helper: filters.newArrivals ? "Filter active: showing last 30 days" : "Click to show last 30 days",
13545
- icon: Sparkles
13546
- },
13547
- {
13548
- id: "stock",
13549
- label: "Available now",
13550
- value: productInsights.inStockCount ? productInsights.inStockCount.toLocaleString() : isLoading ? "..." : "0",
13551
- helper: "Ready to ship today",
13552
- icon: ShieldCheck
13553
- },
13554
- {
13555
- id: "catalogue",
13556
- label: "Total products",
13557
- value: pagination.total || products.length ? (pagination.total || products.length).toLocaleString() : isLoading ? "..." : "0",
13558
- helper: "Across all categories",
13559
- icon: TrendingUp
13560
- }
13561
- ],
13562
- [
13563
- isLoading,
13564
- pagination.total,
13565
- productInsights.inStockCount,
13566
- productInsights.newArrivals,
13567
- products.length,
13568
- filters.newArrivals
13569
- ]
13570
- );
13571
13733
  const filteredProducts = useMemo(() => {
13572
13734
  if (isLoading) return products;
13573
13735
  let items = [...products];
@@ -14633,14 +14795,14 @@ function StarRating({
14633
14795
  className: `transition-all ${interactive && "cursor-pointer hover:scale-110"} ${!interactive && "cursor-default"}`,
14634
14796
  children: isHalfFilled ? /* @__PURE__ */ jsxs("div", { className: "relative", children: [
14635
14797
  /* @__PURE__ */ jsx(Star, { className: `${sizeClasses[size]} text-gray-300` }),
14636
- /* @__PURE__ */ jsx("div", { className: "absolute inset-0 overflow-hidden", style: { width: "50%" }, children: /* @__PURE__ */ jsx(Star, { className: `${sizeClasses[size]} fill-[#E67E50] text-[#E67E50]` }) })
14798
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 overflow-hidden", style: { width: "50%" }, children: /* @__PURE__ */ jsx(Star, { className: `${sizeClasses[size]} fill-haccent-500 text-haccent-500` }) })
14637
14799
  ] }) : /* @__PURE__ */ jsx(
14638
14800
  Star,
14639
14801
  {
14640
14802
  className: `
14641
14803
  ${sizeClasses[size]}
14642
- ${isFilled ? "fill-[#E67E50] text-[#E67E50]" : "text-gray-300"}
14643
- ${interactive && hoverRating > 0 && index < hoverRating ? "fill-[#E67E50] text-[#E67E50]" : ""}
14804
+ ${isFilled ? "fill-haccent-500 text-haccent-500" : "text-gray-300"}
14805
+ ${interactive && hoverRating > 0 && index < hoverRating ? "fill-haccent-500 text-haccent-500" : ""}
14644
14806
  `
14645
14807
  }
14646
14808
  )
@@ -14684,12 +14846,12 @@ function RatingDistribution({ reviews, averageRating }) {
14684
14846
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
14685
14847
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 w-16", children: [
14686
14848
  /* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-gray-700", children: rating }),
14687
- /* @__PURE__ */ jsx(Star, { className: "size-3 fill-[#E67E50] text-[#E67E50]" })
14849
+ /* @__PURE__ */ jsx(Star, { className: "size-3 fill-haccent-500 text-haccent-500" })
14688
14850
  ] }),
14689
14851
  /* @__PURE__ */ jsx("div", { className: "flex-1 h-2 bg-gray-200 rounded-full overflow-hidden", children: /* @__PURE__ */ jsx(
14690
14852
  "div",
14691
14853
  {
14692
- className: "h-full bg-[#E67E50] transition-all duration-300",
14854
+ className: "h-full bg-haccent-500 transition-all duration-300",
14693
14855
  style: { width: `${percentage}%` }
14694
14856
  }
14695
14857
  ) }),
@@ -14789,7 +14951,7 @@ function ReviewsList({ reviews, isLoading }) {
14789
14951
  "button",
14790
14952
  {
14791
14953
  onClick: () => setFilterRating("all"),
14792
- 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"}`,
14954
+ 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"}`,
14793
14955
  children: "All"
14794
14956
  }
14795
14957
  ),
@@ -14797,7 +14959,7 @@ function ReviewsList({ reviews, isLoading }) {
14797
14959
  "button",
14798
14960
  {
14799
14961
  onClick: () => setFilterRating(rating),
14800
- 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"}`,
14962
+ 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"}`,
14801
14963
  children: [
14802
14964
  rating,
14803
14965
  /* @__PURE__ */ jsx(Star, { className: "size-3 fill-current" })
@@ -14814,7 +14976,7 @@ function ReviewsList({ reviews, isLoading }) {
14814
14976
  {
14815
14977
  value: sortBy,
14816
14978
  onChange: (e) => setSortBy(e.target.value),
14817
- className: "px-3 py-1 text-sm border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#E67E50] focus:border-transparent",
14979
+ className: "px-3 py-1 text-sm border border-gray-300 rounded-lg focus:ring-2 focus:ring-haccent-500 focus:border-transparent",
14818
14980
  children: [
14819
14981
  /* @__PURE__ */ jsx("option", { value: "recent", children: "Most Recent" }),
14820
14982
  /* @__PURE__ */ jsx("option", { value: "oldest", children: "Oldest First" }),
@@ -15164,7 +15326,7 @@ function ProductDetailScreen({ productId }) {
15164
15326
  /* @__PURE__ */ jsx("div", { className: "flex items-center gap-1", children: [...Array(5)].map((_, i) => /* @__PURE__ */ jsx(
15165
15327
  Star,
15166
15328
  {
15167
- className: `size-4 ${i < Math.floor(reviewStats.averageRating) ? "text-[#E67E50] fill-[#E67E50]" : "text-gray-300"}`
15329
+ className: `size-4 ${i < Math.floor(reviewStats.averageRating) ? "text-haccent-500 fill-haccent-500" : "text-gray-300"}`
15168
15330
  },
15169
15331
  i
15170
15332
  )) }),
@@ -18473,7 +18635,7 @@ function AccountReviewsTab() {
18473
18635
  "button",
18474
18636
  {
18475
18637
  onClick: () => window.location.reload(),
18476
- className: "text-[#E67E50] hover:underline text-sm",
18638
+ className: "text-haccent-500 hover:underline text-sm",
18477
18639
  children: "Try again"
18478
18640
  }
18479
18641
  )
@@ -18481,14 +18643,14 @@ function AccountReviewsTab() {
18481
18643
  }
18482
18644
  if (!reviews || reviews.length === 0) {
18483
18645
  return /* @__PURE__ */ jsx("div", { className: "p-6", children: /* @__PURE__ */ jsxs("div", { className: "text-center py-12", children: [
18484
- /* @__PURE__ */ jsx("div", { className: "size-16 rounded-full bg-[#E67E50]/10 flex items-center justify-center mx-auto mb-4", children: /* @__PURE__ */ jsx(Star, { className: "size-8 text-[#E67E50]" }) }),
18646
+ /* @__PURE__ */ jsx("div", { className: "size-16 rounded-full bg-haccent-500/10 flex items-center justify-center mx-auto mb-4", children: /* @__PURE__ */ jsx(Star, { className: "size-8 text-haccent-500" }) }),
18485
18647
  /* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-gray-900 mb-2", children: "No reviews yet" }),
18486
18648
  /* @__PURE__ */ jsx("p", { className: "text-gray-600 mb-6", children: "Share your experience with products you've purchased" }),
18487
18649
  /* @__PURE__ */ jsxs(
18488
18650
  "button",
18489
18651
  {
18490
18652
  onClick: () => router.push(buildPath("/reviews")),
18491
- className: "inline-flex items-center gap-2 px-6 py-3 bg-[#E67E50] text-white rounded-lg font-medium hover:bg-[#d66f40] transition-colors",
18653
+ 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",
18492
18654
  children: [
18493
18655
  /* @__PURE__ */ jsx(Star, { className: "size-4" }),
18494
18656
  "Write Your First Review"
@@ -18723,7 +18885,7 @@ function OrderCard({ order, onDelete }) {
18723
18885
  "button",
18724
18886
  {
18725
18887
  onClick: handleReviewClick,
18726
- 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",
18888
+ 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",
18727
18889
  onPointerDown: (e) => e.stopPropagation(),
18728
18890
  children: [
18729
18891
  /* @__PURE__ */ jsx(Star, { className: "w-4 h-4" }),
@@ -18891,8 +19053,8 @@ function ReviewPromptBanner({
18891
19053
  router.push(buildPath("/reviews"));
18892
19054
  };
18893
19055
  if (!isVisible) return null;
18894
- return /* @__PURE__ */ 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__ */ jsxs("div", { className: "flex items-start gap-4", children: [
18895
- /* @__PURE__ */ jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx("div", { className: "size-10 rounded-full bg-[#E67E50]/20 flex items-center justify-center", children: /* @__PURE__ */ jsx(Star, { className: "size-5 text-[#E67E50]" }) }) }),
19056
+ return /* @__PURE__ */ 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__ */ jsxs("div", { className: "flex items-start gap-4", children: [
19057
+ /* @__PURE__ */ jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx("div", { className: "size-10 rounded-full bg-haccent-500/20 flex items-center justify-center", children: /* @__PURE__ */ jsx(Star, { className: "size-5 text-haccent-500" }) }) }),
18896
19058
  /* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
18897
19059
  /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4", children: [
18898
19060
  /* @__PURE__ */ jsxs("div", { children: [
@@ -18920,7 +19082,7 @@ function ReviewPromptBanner({
18920
19082
  "button",
18921
19083
  {
18922
19084
  onClick: handleReviewClick,
18923
- 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",
19085
+ 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",
18924
19086
  children: [
18925
19087
  /* @__PURE__ */ jsx(Star, { className: "size-4" }),
18926
19088
  "Write a Review"
@@ -20073,41 +20235,24 @@ function SearchPage() {
20073
20235
  setHasSearched(false);
20074
20236
  return;
20075
20237
  }
20238
+ if (sanitizedQuery.length < 2) {
20239
+ setProducts([]);
20240
+ setIsLoading(false);
20241
+ setHasSearched(false);
20242
+ return;
20243
+ }
20076
20244
  try {
20077
20245
  setIsLoading(true);
20078
20246
  const api = new ProductsApi(AXIOS_CONFIG);
20079
- let response = await api.getAllProducts(
20080
- sanitizedQuery,
20081
- // searchTerm
20082
- void 0,
20083
- // maxPrice
20084
- void 0,
20085
- // minPrice
20086
- void 0,
20087
- // brandFilter
20088
- void 0,
20089
- // availability
20090
- "relevance",
20091
- // sort
20092
- void 0,
20093
- // subCategoryId
20094
- void 0,
20095
- // categoryId
20096
- true,
20097
- // isActive
20098
- 20,
20099
- // limit
20100
- 1
20101
- // page
20102
- );
20103
- console.log("Search API Response:", {
20247
+ const response = await api.smartSearch(sanitizedQuery, 20);
20248
+ console.log("Smart Search API Response:", {
20104
20249
  query: sanitizedQuery,
20105
20250
  status: response.status,
20106
- dataLength: response.data?.data?.length,
20107
- totalItems: response.data?.totalItems
20251
+ productsCount: response.data?.products?.length,
20252
+ scores: response.data?.scores
20108
20253
  });
20109
- if (response.data?.data) {
20110
- const transformedProducts = response.data.data.map((item) => ({
20254
+ if (response.data?.products) {
20255
+ const transformedProducts = response.data.products.map((item) => ({
20111
20256
  ...item,
20112
20257
  id: item._id || ""
20113
20258
  }));
@@ -20120,7 +20265,7 @@ function SearchPage() {
20120
20265
  }
20121
20266
  setHasSearched(true);
20122
20267
  } catch (error) {
20123
- console.error("Error fetching search results:", error);
20268
+ console.error("Error fetching smart search results:", error);
20124
20269
  if (error instanceof Error) {
20125
20270
  console.error("Error details:", error.message);
20126
20271
  }
@@ -20761,7 +20906,7 @@ function ReviewForm({
20761
20906
  {
20762
20907
  id: "reviewType",
20763
20908
  ...register("reviewType"),
20764
- className: "w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#E67E50] focus:border-transparent",
20909
+ className: "w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-haccent-500 focus:border-transparent",
20765
20910
  children: [
20766
20911
  /* @__PURE__ */ jsx("option", { value: "Product Review", children: "Product Review" }),
20767
20912
  /* @__PURE__ */ jsx("option", { value: "Quality Review", children: "Quality Review" }),
@@ -20790,7 +20935,7 @@ function ReviewForm({
20790
20935
  ...register("review"),
20791
20936
  rows: 5,
20792
20937
  placeholder: "Share your experience with this product...",
20793
- className: "w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#E67E50] focus:border-transparent resize-none"
20938
+ 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"
20794
20939
  }
20795
20940
  ),
20796
20941
  errors.review && /* @__PURE__ */ jsx("p", { className: "text-red-500 text-xs mt-1", children: errors.review.message })
@@ -20801,7 +20946,7 @@ function ReviewForm({
20801
20946
  {
20802
20947
  type: "submit",
20803
20948
  disabled: isLoading,
20804
- 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",
20949
+ 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",
20805
20950
  children: isLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [
20806
20951
  /* @__PURE__ */ jsx(Loader2, { className: "size-4 animate-spin" }),
20807
20952
  "Submitting..."
@@ -20860,7 +21005,7 @@ function OrderReviewsScreen() {
20860
21005
  "button",
20861
21006
  {
20862
21007
  onClick: () => router.back(),
20863
- className: "text-[#E67E50] hover:underline",
21008
+ className: "text-haccent-500 hover:underline",
20864
21009
  children: "Go Back"
20865
21010
  }
20866
21011
  )
@@ -20945,7 +21090,7 @@ function OrderReviewsScreen() {
20945
21090
  return /* @__PURE__ */ jsx(
20946
21091
  "div",
20947
21092
  {
20948
- className: "bg-white rounded-lg border border-gray-200 p-4 cursor-pointer hover:border-[#E67E50] hover:shadow-md transition-all",
21093
+ className: "bg-white rounded-lg border border-gray-200 p-4 cursor-pointer hover:border-haccent-500 hover:shadow-md transition-all",
20949
21094
  onClick: () => {
20950
21095
  const possibleProductId = item.productId || item.product?._id || item.product?.id || variantData?.productId || variantData?.product?._id || variantData?.product?.id || variantId;
20951
21096
  const productData = {
@@ -20976,7 +21121,7 @@ function OrderReviewsScreen() {
20976
21121
  item.quantity
20977
21122
  ] })
20978
21123
  ] }),
20979
- /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 text-[#E67E50]", children: /* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "Review Now" }) })
21124
+ /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 text-haccent-500", children: /* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "Review Now" }) })
20980
21125
  ] })
20981
21126
  },
20982
21127
  `${variantId}-${index}`
@@ -21001,14 +21146,14 @@ function OrderReviewsScreen() {
21001
21146
  "button",
21002
21147
  {
21003
21148
  onClick: () => router.push("/shop"),
21004
- className: "px-6 py-3 bg-[#E67E50] text-white rounded-lg hover:bg-[#d66f40] transition-colors",
21149
+ className: "px-6 py-3 bg-haccent-500 text-white rounded-lg hover:bg-[#d66f40] transition-colors",
21005
21150
  children: "Start Shopping"
21006
21151
  }
21007
21152
  )
21008
21153
  ] }) : /* @__PURE__ */ jsx("div", { className: "space-y-4", children: completedOrders.map((order) => /* @__PURE__ */ jsx(
21009
21154
  "div",
21010
21155
  {
21011
- className: "bg-white rounded-lg border border-gray-200 p-6 cursor-pointer hover:border-[#E67E50] hover:shadow-md transition-all",
21156
+ className: "bg-white rounded-lg border border-gray-200 p-6 cursor-pointer hover:border-haccent-500 hover:shadow-md transition-all",
21012
21157
  onClick: () => handleOrderClick(order),
21013
21158
  children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
21014
21159
  /* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
@@ -21026,7 +21171,7 @@ function OrderReviewsScreen() {
21026
21171
  ] }),
21027
21172
  order.createdAt && /* @__PURE__ */ jsx("p", { className: "text-xs text-gray-500", children: formatDistanceToNow(new Date(order.createdAt), { addSuffix: true }) })
21028
21173
  ] }),
21029
- /* @__PURE__ */ jsx("div", { className: "text-right", children: /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 text-[#E67E50]", children: /* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "Review Products" }) }) })
21174
+ /* @__PURE__ */ jsx("div", { className: "text-right", children: /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 text-haccent-500", children: /* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "Review Products" }) }) })
21030
21175
  ] })
21031
21176
  },
21032
21177
  order.id || order._id
@@ -22139,7 +22284,7 @@ function Header() {
22139
22284
  ),
22140
22285
  /* @__PURE__ */ 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__ */ jsxs("div", { className: "p-2", children: [
22141
22286
  /* @__PURE__ */ jsxs("div", { className: "px-3 py-2 border-b border-slate-200 mb-1", children: [
22142
- /* @__PURE__ */ jsxs("p", { className: "text-sm font-medium text-hsecondary truncate", children: [
22287
+ /* @__PURE__ */ jsxs("p", { className: "text-sm font-medium text-hprimary-900 truncate", children: [
22143
22288
  user?.firstname,
22144
22289
  " ",
22145
22290
  user?.lastname
@@ -22482,6 +22627,6 @@ function NotificationDrawer() {
22482
22627
  ] }) });
22483
22628
  }
22484
22629
 
22485
- export { AccountReviewsTab, AddressAddressTypeEnum, AddressCreatedRequestAddressTypeEnum, AddressesScreen, ApiKeyInfoDtoKeyTypeEnum, AuthProvider, Badge, BulkChannelToggleDtoCategoryEnum, Button, CartItem, CartProvider, CartScreen, ChangePasswordScreen, CheckoutScreen, CreateAddressDtoAddressTypeEnum, CreateDiscountDtoStateEnum, CreateDiscountDtoTypeEnum, CreateDiscountDtoValueTypeEnum, CreateStoreAddressDtoAddressTypeEnum, CreateUserDtoCustomerTypeEnum, CreateUserDtoRoleEnum, CurrentOrdersScreen, DiscountStateEnum, DiscountTypeEnum, DiscountValueTypeEnum, EcommerceProvider, EditProfileScreen, EmptyState, Footer, ForgotPasswordScreen, Header, Input, LoginScreen, ManualDiscountDtoValueTypeEnum, ManualOrderDTOOrderStatusEnum, ManualOrderDTOPaymentMethodEnum, ManualOrderDTOPaymentStatusEnum, Modal, NewAddressPage as NewAddressScreen, NotificationBell, NotificationCard, NotificationCenterProvider, NotificationDrawer, NotificationSettingsScreen, OrderCard, OrderCardSkeleton, OrderDetailScreen, OrderOrderTypeEnum, OrderReviewsScreen, OrderTimeLineDTOTypeEnum, OrderTypeEnum, OrdersScreen, PaymentPaymentMethodEnum, PaymentPaymentStatusEnum, PaymentTimeLineDTOTitleEnum, PopulatedDiscountStateEnum, PopulatedDiscountTypeEnum, PopulatedDiscountValueTypeEnum, PopulatedOrderOrderTypeEnum, PopulatedOrderTypeEnum, PreferenceUpdateItemTypeEnum, ProductCard, ProductCardSkeleton, ProductDetailScreen, ProductReviewsSection, ProductVariantInventoryStatusEnum, AccountPage as ProfileScreen, RatingDistribution, RegisterScreen, ReorderProductsDtoContainerTypeEnum, ResetPasswordScreen, ReviewCard, ReviewForm, ReviewPromptBanner, ReviewsList, SearchPage as SearchResultsScreen, ShipmentDetailsDtoStatusEnum, ShippingInfoStatusEnum, ShopScreen, SingleProductMediaTypeEnum, Skeleton, StarRating, ThemeProvider, UpdateAddressDtoAddressTypeEnum, UpdateDiscountDtoStateEnum, UpdateDiscountDtoTypeEnum, UpdateDiscountDtoValueTypeEnum, UpdateManualShipmentStatusDtoStatusEnum, UpdateUserDtoCustomerTypeEnum, UpdateUserDtoRoleEnum, UserEntityCustomerTypeEnum, UserEntityRoleEnum, UserWithNoIdCustomerTypeEnum, UserWithNoIdRoleEnum, WishlistProvider, WishlistScreen, formatDate, formatPrice, generateColorShades, getApiConfiguration, getInitials, hexToRgb, initializeApiAdapter, truncate, useAddresses, useAuth, useBasePath, useCart, useCategories, useCreateReview, useCurrentOrders, useDeleteReview, useNotificationCenter, useOrder, useOrders, useProduct, useProductReviews, useProducts, useReviewStats, useReviewsByRating, useStoreCapabilities, useTheme, useUpdateReview, useUserReviews, useWishlist };
22630
+ export { AccountReviewsTab, AddressAddressTypeEnum, AddressCreatedRequestAddressTypeEnum, AddressesScreen, AuthProvider, Badge, BulkChannelToggleDtoCategoryEnum, Button, CartItem, CartProvider, CartScreen, ChangePasswordScreen, CheckoutScreen, CreateAddressDtoAddressTypeEnum, CreateDiscountDtoStateEnum, CreateDiscountDtoTypeEnum, CreateDiscountDtoValueTypeEnum, CreateStoreAddressDtoAddressTypeEnum, CreateUserDtoCustomerTypeEnum, CreateUserDtoRoleEnum, CurrentOrdersScreen, DiscountStateEnum, DiscountTypeEnum, DiscountValueTypeEnum, EcommerceProvider, EditProfileScreen, EmptyState, Footer, ForgotPasswordScreen, Header, Input, InventoryAlertDtoAlertTypeEnum, LoginScreen, ManualDiscountDtoValueTypeEnum, ManualOrderDTOOrderStatusEnum, ManualOrderDTOPaymentMethodEnum, ManualOrderDTOPaymentStatusEnum, Modal, NewAddressPage as NewAddressScreen, NotificationBell, NotificationCard, NotificationCenterProvider, NotificationDrawer, NotificationDtoTypeEnum, NotificationSettingsScreen, OrderCard, OrderCardSkeleton, OrderDetailScreen, OrderOrderTypeEnum, OrderReviewsScreen, OrderTimeLineDTOTypeEnum, OrderTypeEnum, OrdersScreen, PaymentPaymentMethodEnum, PaymentPaymentStatusEnum, PaymentTimeLineDTOTitleEnum, PopulatedDiscountStateEnum, PopulatedDiscountTypeEnum, PopulatedDiscountValueTypeEnum, PopulatedOrderOrderTypeEnum, PopulatedOrderTypeEnum, PreferenceUpdateItemTypeEnum, ProductCard, ProductCardSkeleton, ProductDetailScreen, ProductReviewsSection, ProductVariantInventoryStatusEnum, AccountPage as ProfileScreen, RatingDistribution, RegisterScreen, ReorderProductsDtoContainerTypeEnum, ResetPasswordScreen, ReviewCard, ReviewForm, ReviewPromptBanner, ReviewsList, SearchPage as SearchResultsScreen, ShipmentDetailsDtoStatusEnum, ShippingInfoStatusEnum, ShopScreen, SingleProductMediaTypeEnum, Skeleton, StarRating, ThemeProvider, UpdateAddressDtoAddressTypeEnum, UpdateDiscountDtoStateEnum, UpdateDiscountDtoTypeEnum, UpdateDiscountDtoValueTypeEnum, UpdateManualShipmentStatusDtoStatusEnum, UpdateUserDtoCustomerTypeEnum, UpdateUserDtoRoleEnum, UserEntityCustomerTypeEnum, UserEntityRoleEnum, UserWithNoIdCustomerTypeEnum, UserWithNoIdRoleEnum, WishlistProvider, WishlistScreen, formatDate, formatPrice, generateColorShades, getApiConfiguration, getInitials, hexToRgb, initializeApiAdapter, truncate, useAddresses, useAuth, useBasePath, useCart, useCategories, useCreateReview, useCurrentOrders, useDeleteReview, useNotificationCenter, useOrder, useOrders, useProduct, useProductReviews, useProducts, useReviewStats, useReviewsByRating, useStoreCapabilities, useTheme, useUpdateReview, useUserReviews, useWishlist };
22486
22631
  //# sourceMappingURL=index.mjs.map
22487
22632
  //# sourceMappingURL=index.mjs.map