hey-pharmacist-ecommerce 1.1.29 → 1.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/index.d.mts +10734 -1256
  2. package/dist/index.d.ts +10734 -1256
  3. package/dist/index.js +2741 -295
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +2686 -296
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +1 -1
  8. package/src/hooks/useStoreCapabilities.ts +87 -0
  9. package/src/index.ts +4 -0
  10. package/src/lib/Apis/apis/auth-api.ts +19 -7
  11. package/src/lib/Apis/apis/categories-api.ts +97 -0
  12. package/src/lib/Apis/apis/products-api.ts +97 -0
  13. package/src/lib/Apis/apis/shipping-api.ts +105 -0
  14. package/src/lib/Apis/apis/stores-api.ts +356 -0
  15. package/src/lib/Apis/apis/sub-categories-api.ts +97 -0
  16. package/src/lib/Apis/apis/users-api.ts +8 -8
  17. package/src/lib/Apis/models/address-created-request.ts +0 -12
  18. package/src/lib/Apis/models/address.ts +0 -12
  19. package/src/lib/Apis/models/api-key-info-dto.ts +49 -0
  20. package/src/lib/Apis/models/create-address-dto.ts +0 -12
  21. package/src/lib/Apis/models/create-discount-dto.ts +0 -8
  22. package/src/lib/Apis/models/create-store-address-dto.ts +0 -12
  23. package/src/lib/Apis/models/create-store-dto-settings.ts +51 -0
  24. package/src/lib/Apis/models/create-store-dto.ts +7 -0
  25. package/src/lib/Apis/models/create-variant-dto.ts +0 -6
  26. package/src/lib/Apis/models/discount.ts +0 -8
  27. package/src/lib/Apis/models/index.ts +11 -0
  28. package/src/lib/Apis/models/populated-discount.ts +0 -8
  29. package/src/lib/Apis/models/product-variant.ts +0 -6
  30. package/src/lib/Apis/models/reorder-categories-dto.ts +27 -0
  31. package/src/lib/Apis/models/reorder-products-dto.ts +49 -0
  32. package/src/lib/Apis/models/reorder-products-success-response-dto.ts +33 -0
  33. package/src/lib/Apis/models/reorder-subcategories-dto.ts +33 -0
  34. package/src/lib/Apis/models/reorder-success-response-dto.ts +33 -0
  35. package/src/lib/Apis/models/shipment-with-order.ts +18 -0
  36. package/src/lib/Apis/models/shipment.ts +18 -0
  37. package/src/lib/Apis/models/store-api-keys-response-dto.ts +34 -0
  38. package/src/lib/Apis/models/store-capabilities-dto.ts +63 -0
  39. package/src/lib/Apis/models/store-entity.ts +7 -0
  40. package/src/lib/Apis/models/store.ts +7 -0
  41. package/src/lib/Apis/models/update-address-dto.ts +0 -12
  42. package/src/lib/Apis/models/update-api-keys-dto.ts +39 -0
  43. package/src/lib/Apis/models/update-discount-dto.ts +0 -8
  44. package/src/lib/Apis/models/update-manual-shipment-status-dto.ts +47 -0
  45. package/src/lib/Apis/models/update-store-dto.ts +7 -0
  46. package/src/lib/Apis/models/update-variant-dto.ts +0 -6
  47. package/src/screens/CheckoutScreen.tsx +363 -278
  48. package/src/screens/ResetPasswordScreen.tsx +10 -4
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import React8, { createContext, forwardRef, useContext, useEffect, useState, useCallback, useRef, useMemo } from 'react';
3
3
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
4
- import globalAxios18 from 'axios';
4
+ import globalAxios21 from 'axios';
5
5
  import { motion, AnimatePresence } from 'framer-motion';
6
- import { Eye, Star, ShoppingCart, Sparkles, ShieldCheck, TrendingUp, Search, Package, ArrowUpDown, ChevronDown, LayoutGrid, LayoutList, X, Clock, ChevronLeft, Check, Heart, Truck, RotateCcw, Shield, Trash2, Minus, Plus, ShoppingBag, ArrowRight, CheckCircle2, Edit3, MapPin, CreditCard, AlertCircle, Lock, EyeOff, UserPlus, Mail, Send, ArrowLeft, User, Settings, Filter, ChevronRight, ArrowUpRight, PackageCheck, Warehouse, BellRing, Crown, Phone, Grid, List, LogOut, Menu, Facebook, Twitter, Instagram, Shirt, Pill, Box, ExternalLink, Globe, Home, CheckCircle, Edit, Bell, AlertTriangle, Info, XCircle } from 'lucide-react';
6
+ import { Eye, Star, ShoppingCart, Sparkles, ShieldCheck, TrendingUp, Search, Package, ArrowUpDown, ChevronDown, LayoutGrid, LayoutList, X, Clock, ChevronLeft, Check, Heart, Truck, RotateCcw, Shield, Trash2, Minus, Plus, ShoppingBag, ArrowRight, CheckCircle2, MapPin, CreditCard, Edit3, AlertCircle, Lock, EyeOff, UserPlus, Mail, Send, ArrowLeft, User, Settings, Filter, ChevronRight, ArrowUpRight, PackageCheck, Warehouse, BellRing, Crown, Phone, Grid, List, LogOut, Menu, Facebook, Twitter, Instagram, Shirt, Pill, Box, ExternalLink, Globe, Home, CheckCircle, Edit, Bell, AlertTriangle, Info, 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';
@@ -260,7 +260,7 @@ function ThemeProvider({ config, children }) {
260
260
  init_config();
261
261
  var BASE_PATH = "/".replace(/\/+$/, "");
262
262
  var BaseAPI = class {
263
- constructor(configuration, basePath = BASE_PATH, axios = globalAxios18) {
263
+ constructor(configuration, basePath = BASE_PATH, axios = globalAxios21) {
264
264
  this.basePath = basePath;
265
265
  this.axios = axios;
266
266
  if (configuration) {
@@ -424,7 +424,7 @@ var UsersApiAxiosParamCreator = function(configuration) {
424
424
  },
425
425
  /**
426
426
  *
427
- * @summary Deletes a single user
427
+ * @summary Deletes my profile
428
428
  * @param {*} [options] Override http request option.
429
429
  * @throws {RequiredError}
430
430
  */
@@ -463,7 +463,7 @@ var UsersApiAxiosParamCreator = function(configuration) {
463
463
  },
464
464
  /**
465
465
  *
466
- * @summary Deletes a single user
466
+ * @summary Deletes a single user by ID (Admin only)
467
467
  * @param {string} id
468
468
  * @param {*} [options] Override http request option.
469
469
  * @throws {RequiredError}
@@ -931,7 +931,7 @@ var UsersApiFp = function(configuration) {
931
931
  */
932
932
  async allowUserCredit(body, userId, options) {
933
933
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).allowUserCredit(body, userId, options);
934
- return (axios = globalAxios18, basePath = BASE_PATH) => {
934
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
935
935
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
936
936
  return axios.request(axiosRequestArgs);
937
937
  };
@@ -945,7 +945,7 @@ var UsersApiFp = function(configuration) {
945
945
  */
946
946
  async changeUserEmail(body, options) {
947
947
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).changeUserEmail(body, options);
948
- return (axios = globalAxios18, basePath = BASE_PATH) => {
948
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
949
949
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
950
950
  return axios.request(axiosRequestArgs);
951
951
  };
@@ -959,34 +959,34 @@ var UsersApiFp = function(configuration) {
959
959
  */
960
960
  async createUser(body, options) {
961
961
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).createUser(body, options);
962
- return (axios = globalAxios18, basePath = BASE_PATH) => {
962
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
963
963
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
964
964
  return axios.request(axiosRequestArgs);
965
965
  };
966
966
  },
967
967
  /**
968
968
  *
969
- * @summary Deletes a single user
969
+ * @summary Deletes my profile
970
970
  * @param {*} [options] Override http request option.
971
971
  * @throws {RequiredError}
972
972
  */
973
973
  async deleteMyProfile(options) {
974
974
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).deleteMyProfile(options);
975
- return (axios = globalAxios18, basePath = BASE_PATH) => {
975
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
976
976
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
977
977
  return axios.request(axiosRequestArgs);
978
978
  };
979
979
  },
980
980
  /**
981
981
  *
982
- * @summary Deletes a single user
982
+ * @summary Deletes a single user by ID (Admin only)
983
983
  * @param {string} id
984
984
  * @param {*} [options] Override http request option.
985
985
  * @throws {RequiredError}
986
986
  */
987
987
  async deleteUser(id, options) {
988
988
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).deleteUser(id, options);
989
- return (axios = globalAxios18, basePath = BASE_PATH) => {
989
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
990
990
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
991
991
  return axios.request(axiosRequestArgs);
992
992
  };
@@ -1000,7 +1000,7 @@ var UsersApiFp = function(configuration) {
1000
1000
  */
1001
1001
  async disableUserCredit(userId, options) {
1002
1002
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).disableUserCredit(userId, options);
1003
- return (axios = globalAxios18, basePath = BASE_PATH) => {
1003
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1004
1004
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1005
1005
  return axios.request(axiosRequestArgs);
1006
1006
  };
@@ -1021,7 +1021,7 @@ var UsersApiFp = function(configuration) {
1021
1021
  */
1022
1022
  async getAllUsers(role, sortingOrder, sortingColumn, createdBefore, createdAfter, search, limit, page, options) {
1023
1023
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getAllUsers(role, sortingOrder, sortingColumn, createdBefore, createdAfter, search, limit, page, options);
1024
- return (axios = globalAxios18, 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
  };
@@ -1035,7 +1035,7 @@ var UsersApiFp = function(configuration) {
1035
1035
  */
1036
1036
  async getInsights(groupId, options) {
1037
1037
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getInsights(groupId, options);
1038
- return (axios = globalAxios18, basePath = BASE_PATH) => {
1038
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1039
1039
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1040
1040
  return axios.request(axiosRequestArgs);
1041
1041
  };
@@ -1048,7 +1048,7 @@ var UsersApiFp = function(configuration) {
1048
1048
  */
1049
1049
  async getMyProfile(options) {
1050
1050
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getMyProfile(options);
1051
- return (axios = globalAxios18, basePath = BASE_PATH) => {
1051
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1052
1052
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1053
1053
  return axios.request(axiosRequestArgs);
1054
1054
  };
@@ -1062,7 +1062,7 @@ var UsersApiFp = function(configuration) {
1062
1062
  */
1063
1063
  async getSingleUser(id, options) {
1064
1064
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getSingleUser(id, options);
1065
- return (axios = globalAxios18, basePath = BASE_PATH) => {
1065
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1066
1066
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1067
1067
  return axios.request(axiosRequestArgs);
1068
1068
  };
@@ -1075,7 +1075,7 @@ var UsersApiFp = function(configuration) {
1075
1075
  */
1076
1076
  async sendOTP(options) {
1077
1077
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).sendOTP(options);
1078
- return (axios = globalAxios18, basePath = BASE_PATH) => {
1078
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1079
1079
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1080
1080
  return axios.request(axiosRequestArgs);
1081
1081
  };
@@ -1089,7 +1089,7 @@ var UsersApiFp = function(configuration) {
1089
1089
  */
1090
1090
  async updateMyProfile(body, options) {
1091
1091
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).updateMyProfile(body, options);
1092
- return (axios = globalAxios18, basePath = BASE_PATH) => {
1092
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1093
1093
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1094
1094
  return axios.request(axiosRequestArgs);
1095
1095
  };
@@ -1104,7 +1104,7 @@ var UsersApiFp = function(configuration) {
1104
1104
  */
1105
1105
  async updateUser(body, id, options) {
1106
1106
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).updateUser(body, id, options);
1107
- return (axios = globalAxios18, basePath = BASE_PATH) => {
1107
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1108
1108
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1109
1109
  return axios.request(axiosRequestArgs);
1110
1110
  };
@@ -1117,7 +1117,7 @@ var UsersApiFp = function(configuration) {
1117
1117
  */
1118
1118
  async verifyOTP(options) {
1119
1119
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).verifyOTP(options);
1120
- return (axios = globalAxios18, basePath = BASE_PATH) => {
1120
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1121
1121
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1122
1122
  return axios.request(axiosRequestArgs);
1123
1123
  };
@@ -1161,7 +1161,7 @@ var UsersApi = class extends BaseAPI {
1161
1161
  }
1162
1162
  /**
1163
1163
  *
1164
- * @summary Deletes a single user
1164
+ * @summary Deletes my profile
1165
1165
  * @param {*} [options] Override http request option.
1166
1166
  * @throws {RequiredError}
1167
1167
  * @memberof UsersApi
@@ -1171,7 +1171,7 @@ var UsersApi = class extends BaseAPI {
1171
1171
  }
1172
1172
  /**
1173
1173
  *
1174
- * @summary Deletes a single user
1174
+ * @summary Deletes a single user by ID (Admin only)
1175
1175
  * @param {string} id
1176
1176
  * @param {*} [options] Override http request option.
1177
1177
  * @throws {RequiredError}
@@ -1418,16 +1418,20 @@ var AuthApiAxiosParamCreator = function(configuration) {
1418
1418
  * @summary Reset user password
1419
1419
  * @param {string} newPassword
1420
1420
  * @param {string} token
1421
+ * @param {string} xStoreKey
1421
1422
  * @param {*} [options] Override http request option.
1422
1423
  * @throws {RequiredError}
1423
1424
  */
1424
- resetPassword: async (newPassword, token, options = {}) => {
1425
+ resetPassword: async (newPassword, token, xStoreKey, options = {}) => {
1425
1426
  if (newPassword === null || newPassword === void 0) {
1426
1427
  throw new RequiredError("newPassword", "Required parameter newPassword was null or undefined when calling resetPassword.");
1427
1428
  }
1428
1429
  if (token === null || token === void 0) {
1429
1430
  throw new RequiredError("token", "Required parameter token was null or undefined when calling resetPassword.");
1430
1431
  }
1432
+ if (xStoreKey === null || xStoreKey === void 0) {
1433
+ throw new RequiredError("xStoreKey", "Required parameter xStoreKey was null or undefined when calling resetPassword.");
1434
+ }
1431
1435
  const localVarPath = `/auth/reset-password`;
1432
1436
  const localVarUrlObj = new URL(localVarPath, "https://example.com");
1433
1437
  let baseOptions;
@@ -1447,6 +1451,9 @@ var AuthApiAxiosParamCreator = function(configuration) {
1447
1451
  if (token !== void 0 && token !== null) {
1448
1452
  localVarHeaderParameter["token"] = String(token);
1449
1453
  }
1454
+ if (xStoreKey !== void 0 && xStoreKey !== null) {
1455
+ localVarHeaderParameter["x-store-key"] = String(xStoreKey);
1456
+ }
1450
1457
  const query = new URLSearchParams(localVarUrlObj.search);
1451
1458
  for (const key in localVarQueryParameter) {
1452
1459
  query.set(key, localVarQueryParameter[key]);
@@ -1727,7 +1734,7 @@ var AuthApiFp = function(configuration) {
1727
1734
  */
1728
1735
  async changeEmail(body, options) {
1729
1736
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).changeEmail(body, options);
1730
- return (axios = globalAxios18, basePath = BASE_PATH) => {
1737
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1731
1738
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1732
1739
  return axios.request(axiosRequestArgs);
1733
1740
  };
@@ -1741,7 +1748,7 @@ var AuthApiFp = function(configuration) {
1741
1748
  */
1742
1749
  async changePassword(body, options) {
1743
1750
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).changePassword(body, options);
1744
- return (axios = globalAxios18, basePath = BASE_PATH) => {
1751
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1745
1752
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1746
1753
  return axios.request(axiosRequestArgs);
1747
1754
  };
@@ -1755,7 +1762,7 @@ var AuthApiFp = function(configuration) {
1755
1762
  */
1756
1763
  async dashboardLogin(body, options) {
1757
1764
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).dashboardLogin(body, options);
1758
- return (axios = globalAxios18, basePath = BASE_PATH) => {
1765
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1759
1766
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1760
1767
  return axios.request(axiosRequestArgs);
1761
1768
  };
@@ -1765,12 +1772,13 @@ var AuthApiFp = function(configuration) {
1765
1772
  * @summary Reset user password
1766
1773
  * @param {string} newPassword
1767
1774
  * @param {string} token
1775
+ * @param {string} xStoreKey
1768
1776
  * @param {*} [options] Override http request option.
1769
1777
  * @throws {RequiredError}
1770
1778
  */
1771
- async resetPassword(newPassword, token, options) {
1772
- const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).resetPassword(newPassword, token, options);
1773
- return (axios = globalAxios18, basePath = BASE_PATH) => {
1779
+ async resetPassword(newPassword, token, xStoreKey, options) {
1780
+ const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).resetPassword(newPassword, token, xStoreKey, options);
1781
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1774
1782
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1775
1783
  return axios.request(axiosRequestArgs);
1776
1784
  };
@@ -1784,7 +1792,7 @@ var AuthApiFp = function(configuration) {
1784
1792
  */
1785
1793
  async sendForgetPasswordEmail(body, options) {
1786
1794
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).sendForgetPasswordEmail(body, options);
1787
- return (axios = globalAxios18, basePath = BASE_PATH) => {
1795
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1788
1796
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1789
1797
  return axios.request(axiosRequestArgs);
1790
1798
  };
@@ -1798,7 +1806,7 @@ var AuthApiFp = function(configuration) {
1798
1806
  */
1799
1807
  async signin(body, options) {
1800
1808
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signin(body, options);
1801
- return (axios = globalAxios18, basePath = BASE_PATH) => {
1809
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1802
1810
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1803
1811
  return axios.request(axiosRequestArgs);
1804
1812
  };
@@ -1812,7 +1820,7 @@ var AuthApiFp = function(configuration) {
1812
1820
  */
1813
1821
  async signinWithGmail(body, options) {
1814
1822
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signinWithGmail(body, options);
1815
- return (axios = globalAxios18, basePath = BASE_PATH) => {
1823
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1816
1824
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1817
1825
  return axios.request(axiosRequestArgs);
1818
1826
  };
@@ -1826,7 +1834,7 @@ var AuthApiFp = function(configuration) {
1826
1834
  */
1827
1835
  async signup(body, options) {
1828
1836
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signup(body, options);
1829
- return (axios = globalAxios18, basePath = BASE_PATH) => {
1837
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1830
1838
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1831
1839
  return axios.request(axiosRequestArgs);
1832
1840
  };
@@ -1840,7 +1848,7 @@ var AuthApiFp = function(configuration) {
1840
1848
  */
1841
1849
  async signupWithGmail(body, options) {
1842
1850
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signupWithGmail(body, options);
1843
- return (axios = globalAxios18, basePath = BASE_PATH) => {
1851
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1844
1852
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1845
1853
  return axios.request(axiosRequestArgs);
1846
1854
  };
@@ -1854,7 +1862,7 @@ var AuthApiFp = function(configuration) {
1854
1862
  */
1855
1863
  async verifyUserEmail(body, options) {
1856
1864
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).verifyUserEmail(body, options);
1857
- return (axios = globalAxios18, basePath = BASE_PATH) => {
1865
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
1858
1866
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1859
1867
  return axios.request(axiosRequestArgs);
1860
1868
  };
@@ -1900,12 +1908,13 @@ var AuthApi = class extends BaseAPI {
1900
1908
  * @summary Reset user password
1901
1909
  * @param {string} newPassword
1902
1910
  * @param {string} token
1911
+ * @param {string} xStoreKey
1903
1912
  * @param {*} [options] Override http request option.
1904
1913
  * @throws {RequiredError}
1905
1914
  * @memberof AuthApi
1906
1915
  */
1907
- async resetPassword(newPassword, token, options) {
1908
- return AuthApiFp(this.configuration).resetPassword(newPassword, token, options).then((request) => request(this.axios, this.basePath));
1916
+ async resetPassword(newPassword, token, xStoreKey, options) {
1917
+ return AuthApiFp(this.configuration).resetPassword(newPassword, token, xStoreKey, options).then((request) => request(this.axios, this.basePath));
1909
1918
  }
1910
1919
  /**
1911
1920
  *
@@ -2774,7 +2783,7 @@ var AddressesApiFp = function(configuration) {
2774
2783
  */
2775
2784
  async adminCreateAddressForUser(body, userId, options) {
2776
2785
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminCreateAddressForUser(body, userId, options);
2777
- return (axios = globalAxios18, basePath = BASE_PATH) => {
2786
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2778
2787
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2779
2788
  return axios.request(axiosRequestArgs);
2780
2789
  };
@@ -2788,7 +2797,7 @@ var AddressesApiFp = function(configuration) {
2788
2797
  */
2789
2798
  async adminDeleteUserAddress(addressId, options) {
2790
2799
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminDeleteUserAddress(addressId, options);
2791
- return (axios = globalAxios18, basePath = BASE_PATH) => {
2800
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2792
2801
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2793
2802
  return axios.request(axiosRequestArgs);
2794
2803
  };
@@ -2802,7 +2811,7 @@ var AddressesApiFp = function(configuration) {
2802
2811
  */
2803
2812
  async adminGetSingleUserAddresses(userId, options) {
2804
2813
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminGetSingleUserAddresses(userId, options);
2805
- return (axios = globalAxios18, basePath = BASE_PATH) => {
2814
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2806
2815
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2807
2816
  return axios.request(axiosRequestArgs);
2808
2817
  };
@@ -2817,7 +2826,7 @@ var AddressesApiFp = function(configuration) {
2817
2826
  */
2818
2827
  async adminUpdateUserAddress(body, addressId, options) {
2819
2828
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminUpdateUserAddress(body, addressId, options);
2820
- return (axios = globalAxios18, basePath = BASE_PATH) => {
2829
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2821
2830
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2822
2831
  return axios.request(axiosRequestArgs);
2823
2832
  };
@@ -2831,7 +2840,7 @@ var AddressesApiFp = function(configuration) {
2831
2840
  */
2832
2841
  async createAddressForStore(body, options) {
2833
2842
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).createAddressForStore(body, options);
2834
- return (axios = globalAxios18, basePath = BASE_PATH) => {
2843
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2835
2844
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2836
2845
  return axios.request(axiosRequestArgs);
2837
2846
  };
@@ -2845,7 +2854,7 @@ var AddressesApiFp = function(configuration) {
2845
2854
  */
2846
2855
  async createAddressForUser(body, options) {
2847
2856
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).createAddressForUser(body, options);
2848
- return (axios = globalAxios18, basePath = BASE_PATH) => {
2857
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2849
2858
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2850
2859
  return axios.request(axiosRequestArgs);
2851
2860
  };
@@ -2859,7 +2868,7 @@ var AddressesApiFp = function(configuration) {
2859
2868
  */
2860
2869
  async deleteUserAddress(addressId, options) {
2861
2870
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).deleteUserAddress(addressId, options);
2862
- return (axios = globalAxios18, basePath = BASE_PATH) => {
2871
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2863
2872
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2864
2873
  return axios.request(axiosRequestArgs);
2865
2874
  };
@@ -2873,7 +2882,7 @@ var AddressesApiFp = function(configuration) {
2873
2882
  */
2874
2883
  async getAllStoreAddresses(storeId, options) {
2875
2884
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getAllStoreAddresses(storeId, options);
2876
- return (axios = globalAxios18, basePath = BASE_PATH) => {
2885
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2877
2886
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2878
2887
  return axios.request(axiosRequestArgs);
2879
2888
  };
@@ -2886,7 +2895,7 @@ var AddressesApiFp = function(configuration) {
2886
2895
  */
2887
2896
  async getAllUserAddresses(options) {
2888
2897
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getAllUserAddresses(options);
2889
- return (axios = globalAxios18, basePath = BASE_PATH) => {
2898
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2890
2899
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2891
2900
  return axios.request(axiosRequestArgs);
2892
2901
  };
@@ -2899,7 +2908,7 @@ var AddressesApiFp = function(configuration) {
2899
2908
  */
2900
2909
  async getMyAddresses(options) {
2901
2910
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getMyAddresses(options);
2902
- return (axios = globalAxios18, basePath = BASE_PATH) => {
2911
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2903
2912
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2904
2913
  return axios.request(axiosRequestArgs);
2905
2914
  };
@@ -2912,7 +2921,7 @@ var AddressesApiFp = function(configuration) {
2912
2921
  */
2913
2922
  async getMyDefaultAddress(options) {
2914
2923
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getMyDefaultAddress(options);
2915
- return (axios = globalAxios18, basePath = BASE_PATH) => {
2924
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2916
2925
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2917
2926
  return axios.request(axiosRequestArgs);
2918
2927
  };
@@ -2926,7 +2935,7 @@ var AddressesApiFp = function(configuration) {
2926
2935
  */
2927
2936
  async getSingleAddress(addressId, options) {
2928
2937
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getSingleAddress(addressId, options);
2929
- return (axios = globalAxios18, basePath = BASE_PATH) => {
2938
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2930
2939
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2931
2940
  return axios.request(axiosRequestArgs);
2932
2941
  };
@@ -2941,7 +2950,7 @@ var AddressesApiFp = function(configuration) {
2941
2950
  */
2942
2951
  async setDefaultShippingAddress(userId, addressId, options) {
2943
2952
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).setDefaultShippingAddress(userId, addressId, options);
2944
- return (axios = globalAxios18, basePath = BASE_PATH) => {
2953
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2945
2954
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2946
2955
  return axios.request(axiosRequestArgs);
2947
2956
  };
@@ -2955,7 +2964,7 @@ var AddressesApiFp = function(configuration) {
2955
2964
  */
2956
2965
  async updateDefaultAddress(addressId, options) {
2957
2966
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).updateDefaultAddress(addressId, options);
2958
- return (axios = globalAxios18, basePath = BASE_PATH) => {
2967
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2959
2968
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2960
2969
  return axios.request(axiosRequestArgs);
2961
2970
  };
@@ -2970,7 +2979,7 @@ var AddressesApiFp = function(configuration) {
2970
2979
  */
2971
2980
  async updateUserAddress(body, addressId, options) {
2972
2981
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).updateUserAddress(body, addressId, options);
2973
- return (axios = globalAxios18, basePath = BASE_PATH) => {
2982
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
2974
2983
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2975
2984
  return axios.request(axiosRequestArgs);
2976
2985
  };
@@ -3352,7 +3361,7 @@ var CartApiFp = function(configuration) {
3352
3361
  */
3353
3362
  async clearCart(options) {
3354
3363
  const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).clearCart(options);
3355
- return (axios = globalAxios18, basePath = BASE_PATH) => {
3364
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3356
3365
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3357
3366
  return axios.request(axiosRequestArgs);
3358
3367
  };
@@ -3366,7 +3375,7 @@ var CartApiFp = function(configuration) {
3366
3375
  */
3367
3376
  async getUserCart(rateId, options) {
3368
3377
  const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).getUserCart(rateId, options);
3369
- return (axios = globalAxios18, basePath = BASE_PATH) => {
3378
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3370
3379
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3371
3380
  return axios.request(axiosRequestArgs);
3372
3381
  };
@@ -3380,7 +3389,7 @@ var CartApiFp = function(configuration) {
3380
3389
  */
3381
3390
  async handleUserCart(body, options) {
3382
3391
  const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).handleUserCart(body, options);
3383
- return (axios = globalAxios18, basePath = BASE_PATH) => {
3392
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3384
3393
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3385
3394
  return axios.request(axiosRequestArgs);
3386
3395
  };
@@ -3398,7 +3407,7 @@ var CartApiFp = function(configuration) {
3398
3407
  */
3399
3408
  async handleVisitorCart(body, isDelivery, userId, rateId, addressId, options) {
3400
3409
  const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).handleVisitorCart(body, isDelivery, userId, rateId, addressId, options);
3401
- return (axios = globalAxios18, basePath = BASE_PATH) => {
3410
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3402
3411
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3403
3412
  return axios.request(axiosRequestArgs);
3404
3413
  };
@@ -3721,6 +3730,52 @@ var CategoriesApiAxiosParamCreator = function(configuration) {
3721
3730
  options: localVarRequestOptions
3722
3731
  };
3723
3732
  },
3733
+ /**
3734
+ *
3735
+ * @summary Reorder categories
3736
+ * @param {ReorderCategoriesDto} body
3737
+ * @param {*} [options] Override http request option.
3738
+ * @throws {RequiredError}
3739
+ */
3740
+ reorderCategories: async (body, options = {}) => {
3741
+ if (body === null || body === void 0) {
3742
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling reorderCategories.");
3743
+ }
3744
+ const localVarPath = `/categories/reorder`;
3745
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
3746
+ let baseOptions;
3747
+ if (configuration) {
3748
+ baseOptions = configuration.baseOptions;
3749
+ }
3750
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
3751
+ const localVarHeaderParameter = {};
3752
+ const localVarQueryParameter = {};
3753
+ if (configuration && configuration.accessToken) {
3754
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
3755
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
3756
+ }
3757
+ if (configuration && configuration.apiKey) {
3758
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
3759
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
3760
+ }
3761
+ localVarHeaderParameter["Content-Type"] = "application/json";
3762
+ const query = new URLSearchParams(localVarUrlObj.search);
3763
+ for (const key in localVarQueryParameter) {
3764
+ query.set(key, localVarQueryParameter[key]);
3765
+ }
3766
+ for (const key in options.params) {
3767
+ query.set(key, options.params[key]);
3768
+ }
3769
+ localVarUrlObj.search = new URLSearchParams(query).toString();
3770
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3771
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3772
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
3773
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
3774
+ return {
3775
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
3776
+ options: localVarRequestOptions
3777
+ };
3778
+ },
3724
3779
  /**
3725
3780
  *
3726
3781
  * @summary Update category by id
@@ -3784,7 +3839,7 @@ var CategoriesApiFp = function(configuration) {
3784
3839
  */
3785
3840
  async createCategory(body, options) {
3786
3841
  const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).createCategory(body, options);
3787
- return (axios = globalAxios18, basePath = BASE_PATH) => {
3842
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3788
3843
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3789
3844
  return axios.request(axiosRequestArgs);
3790
3845
  };
@@ -3798,7 +3853,7 @@ var CategoriesApiFp = function(configuration) {
3798
3853
  */
3799
3854
  async deleteCategory(id, options) {
3800
3855
  const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).deleteCategory(id, options);
3801
- return (axios = globalAxios18, basePath = BASE_PATH) => {
3856
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3802
3857
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3803
3858
  return axios.request(axiosRequestArgs);
3804
3859
  };
@@ -3814,7 +3869,7 @@ var CategoriesApiFp = function(configuration) {
3814
3869
  */
3815
3870
  async getAllCategories(search, limit, page, options) {
3816
3871
  const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getAllCategories(search, limit, page, options);
3817
- return (axios = globalAxios18, basePath = BASE_PATH) => {
3872
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3818
3873
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3819
3874
  return axios.request(axiosRequestArgs);
3820
3875
  };
@@ -3827,7 +3882,7 @@ var CategoriesApiFp = function(configuration) {
3827
3882
  */
3828
3883
  async getCategoreisAndSubCategories(options) {
3829
3884
  const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getCategoreisAndSubCategories(options);
3830
- return (axios = globalAxios18, basePath = BASE_PATH) => {
3885
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3831
3886
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3832
3887
  return axios.request(axiosRequestArgs);
3833
3888
  };
@@ -3841,7 +3896,7 @@ var CategoriesApiFp = function(configuration) {
3841
3896
  */
3842
3897
  async getCategoryFilters(id, options) {
3843
3898
  const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getCategoryFilters(id, options);
3844
- return (axios = globalAxios18, basePath = BASE_PATH) => {
3899
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3845
3900
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3846
3901
  return axios.request(axiosRequestArgs);
3847
3902
  };
@@ -3855,7 +3910,21 @@ var CategoriesApiFp = function(configuration) {
3855
3910
  */
3856
3911
  async getSingleCategory(id, options) {
3857
3912
  const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getSingleCategory(id, options);
3858
- return (axios = globalAxios18, basePath = BASE_PATH) => {
3913
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3914
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3915
+ return axios.request(axiosRequestArgs);
3916
+ };
3917
+ },
3918
+ /**
3919
+ *
3920
+ * @summary Reorder categories
3921
+ * @param {ReorderCategoriesDto} body
3922
+ * @param {*} [options] Override http request option.
3923
+ * @throws {RequiredError}
3924
+ */
3925
+ async reorderCategories(body, options) {
3926
+ const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).reorderCategories(body, options);
3927
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3859
3928
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3860
3929
  return axios.request(axiosRequestArgs);
3861
3930
  };
@@ -3870,7 +3939,7 @@ var CategoriesApiFp = function(configuration) {
3870
3939
  */
3871
3940
  async updateCategory(body, id, options) {
3872
3941
  const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).updateCategory(body, id, options);
3873
- return (axios = globalAxios18, basePath = BASE_PATH) => {
3942
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
3874
3943
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3875
3944
  return axios.request(axiosRequestArgs);
3876
3945
  };
@@ -3945,6 +4014,17 @@ var CategoriesApi = class extends BaseAPI {
3945
4014
  async getSingleCategory(id, options) {
3946
4015
  return CategoriesApiFp(this.configuration).getSingleCategory(id, options).then((request) => request(this.axios, this.basePath));
3947
4016
  }
4017
+ /**
4018
+ *
4019
+ * @summary Reorder categories
4020
+ * @param {ReorderCategoriesDto} body
4021
+ * @param {*} [options] Override http request option.
4022
+ * @throws {RequiredError}
4023
+ * @memberof CategoriesApi
4024
+ */
4025
+ async reorderCategories(body, options) {
4026
+ return CategoriesApiFp(this.configuration).reorderCategories(body, options).then((request) => request(this.axios, this.basePath));
4027
+ }
3948
4028
  /**
3949
4029
  *
3950
4030
  * @summary Update category by id
@@ -4588,7 +4668,7 @@ var OrdersApiFp = function(configuration) {
4588
4668
  */
4589
4669
  async assignPaymentMethod(orderId, paymentMethod, billingAddressId, options) {
4590
4670
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).assignPaymentMethod(orderId, paymentMethod, billingAddressId, options);
4591
- return (axios = globalAxios18, basePath = BASE_PATH) => {
4671
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4592
4672
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4593
4673
  return axios.request(axiosRequestArgs);
4594
4674
  };
@@ -4602,7 +4682,7 @@ var OrdersApiFp = function(configuration) {
4602
4682
  */
4603
4683
  async cancelOrder(id, options) {
4604
4684
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).cancelOrder(id, options);
4605
- return (axios = globalAxios18, basePath = BASE_PATH) => {
4685
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4606
4686
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4607
4687
  return axios.request(axiosRequestArgs);
4608
4688
  };
@@ -4620,7 +4700,7 @@ var OrdersApiFp = function(configuration) {
4620
4700
  */
4621
4701
  async createCheckout(body, isDelivery, userId, rateId, billingAddressId, options) {
4622
4702
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).createCheckout(body, isDelivery, userId, rateId, billingAddressId, options);
4623
- return (axios = globalAxios18, basePath = BASE_PATH) => {
4703
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4624
4704
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4625
4705
  return axios.request(axiosRequestArgs);
4626
4706
  };
@@ -4634,7 +4714,7 @@ var OrdersApiFp = function(configuration) {
4634
4714
  */
4635
4715
  async deleteOrder(id, options) {
4636
4716
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).deleteOrder(id, options);
4637
- return (axios = globalAxios18, basePath = BASE_PATH) => {
4717
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4638
4718
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4639
4719
  return axios.request(axiosRequestArgs);
4640
4720
  };
@@ -4655,7 +4735,7 @@ var OrdersApiFp = function(configuration) {
4655
4735
  */
4656
4736
  async getAllOrders(paymentStatus, orderStatus, page, limit, search, createdAfter, createdBefore, userId, options) {
4657
4737
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getAllOrders(paymentStatus, orderStatus, page, limit, search, createdAfter, createdBefore, userId, options);
4658
- return (axios = globalAxios18, basePath = BASE_PATH) => {
4738
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4659
4739
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4660
4740
  return axios.request(axiosRequestArgs);
4661
4741
  };
@@ -4669,7 +4749,7 @@ var OrdersApiFp = function(configuration) {
4669
4749
  */
4670
4750
  async getSingleOrder(id, options) {
4671
4751
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getSingleOrder(id, options);
4672
- return (axios = globalAxios18, basePath = BASE_PATH) => {
4752
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4673
4753
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4674
4754
  return axios.request(axiosRequestArgs);
4675
4755
  };
@@ -4682,7 +4762,7 @@ var OrdersApiFp = function(configuration) {
4682
4762
  */
4683
4763
  async getStoreOrderInsights(options) {
4684
4764
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getStoreOrderInsights(options);
4685
- return (axios = globalAxios18, basePath = BASE_PATH) => {
4765
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4686
4766
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4687
4767
  return axios.request(axiosRequestArgs);
4688
4768
  };
@@ -4695,7 +4775,7 @@ var OrdersApiFp = function(configuration) {
4695
4775
  */
4696
4776
  async getUserOrders(options) {
4697
4777
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getUserOrders(options);
4698
- return (axios = globalAxios18, basePath = BASE_PATH) => {
4778
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4699
4779
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4700
4780
  return axios.request(axiosRequestArgs);
4701
4781
  };
@@ -4709,7 +4789,7 @@ var OrdersApiFp = function(configuration) {
4709
4789
  */
4710
4790
  async payOrder(orderId, options) {
4711
4791
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).payOrder(orderId, options);
4712
- return (axios = globalAxios18, basePath = BASE_PATH) => {
4792
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4713
4793
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4714
4794
  return axios.request(axiosRequestArgs);
4715
4795
  };
@@ -4723,7 +4803,7 @@ var OrdersApiFp = function(configuration) {
4723
4803
  */
4724
4804
  async sendOrderEmail(body, options) {
4725
4805
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).sendOrderEmail(body, options);
4726
- return (axios = globalAxios18, basePath = BASE_PATH) => {
4806
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4727
4807
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4728
4808
  return axios.request(axiosRequestArgs);
4729
4809
  };
@@ -4744,7 +4824,7 @@ var OrdersApiFp = function(configuration) {
4744
4824
  */
4745
4825
  async updateOrder(body, isDelivery, id, paymentMethod, userId, rateId, addressId, billingAddressId, options) {
4746
4826
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).updateOrder(body, isDelivery, id, paymentMethod, userId, rateId, addressId, billingAddressId, options);
4747
- return (axios = globalAxios18, basePath = BASE_PATH) => {
4827
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4748
4828
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4749
4829
  return axios.request(axiosRequestArgs);
4750
4830
  };
@@ -4759,7 +4839,7 @@ var OrdersApiFp = function(configuration) {
4759
4839
  */
4760
4840
  async updateOrderStatus(id, orderStatus, options) {
4761
4841
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).updateOrderStatus(id, orderStatus, options);
4762
- return (axios = globalAxios18, basePath = BASE_PATH) => {
4842
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
4763
4843
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4764
4844
  return axios.request(axiosRequestArgs);
4765
4845
  };
@@ -5662,6 +5742,52 @@ var ProductsApiAxiosParamCreator = function(configuration) {
5662
5742
  options: localVarRequestOptions
5663
5743
  };
5664
5744
  },
5745
+ /**
5746
+ *
5747
+ * @summary Reorder products within a category or subcategory
5748
+ * @param {ReorderProductsDto} body
5749
+ * @param {*} [options] Override http request option.
5750
+ * @throws {RequiredError}
5751
+ */
5752
+ reorderProducts: async (body, options = {}) => {
5753
+ if (body === null || body === void 0) {
5754
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling reorderProducts.");
5755
+ }
5756
+ const localVarPath = `/products/reorder`;
5757
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
5758
+ let baseOptions;
5759
+ if (configuration) {
5760
+ baseOptions = configuration.baseOptions;
5761
+ }
5762
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
5763
+ const localVarHeaderParameter = {};
5764
+ const localVarQueryParameter = {};
5765
+ if (configuration && configuration.accessToken) {
5766
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
5767
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
5768
+ }
5769
+ if (configuration && configuration.apiKey) {
5770
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
5771
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
5772
+ }
5773
+ localVarHeaderParameter["Content-Type"] = "application/json";
5774
+ const query = new URLSearchParams(localVarUrlObj.search);
5775
+ for (const key in localVarQueryParameter) {
5776
+ query.set(key, localVarQueryParameter[key]);
5777
+ }
5778
+ for (const key in options.params) {
5779
+ query.set(key, options.params[key]);
5780
+ }
5781
+ localVarUrlObj.search = new URLSearchParams(query).toString();
5782
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5783
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5784
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
5785
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
5786
+ return {
5787
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
5788
+ options: localVarRequestOptions
5789
+ };
5790
+ },
5665
5791
  /**
5666
5792
  *
5667
5793
  * @summary Update variant inventory (add or subtract)
@@ -5834,7 +5960,7 @@ var ProductsApiFp = function(configuration) {
5834
5960
  */
5835
5961
  async addVariant(body, productId, options) {
5836
5962
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).addVariant(body, productId, options);
5837
- return (axios = globalAxios18, basePath = BASE_PATH) => {
5963
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5838
5964
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5839
5965
  return axios.request(axiosRequestArgs);
5840
5966
  };
@@ -5848,7 +5974,7 @@ var ProductsApiFp = function(configuration) {
5848
5974
  */
5849
5975
  async createProduct(body, options) {
5850
5976
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).createProduct(body, options);
5851
- return (axios = globalAxios18, basePath = BASE_PATH) => {
5977
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5852
5978
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5853
5979
  return axios.request(axiosRequestArgs);
5854
5980
  };
@@ -5862,7 +5988,7 @@ var ProductsApiFp = function(configuration) {
5862
5988
  */
5863
5989
  async createProductLegacy(body, options) {
5864
5990
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).createProductLegacy(body, options);
5865
- return (axios = globalAxios18, basePath = BASE_PATH) => {
5991
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5866
5992
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5867
5993
  return axios.request(axiosRequestArgs);
5868
5994
  };
@@ -5876,7 +6002,7 @@ var ProductsApiFp = function(configuration) {
5876
6002
  */
5877
6003
  async deleteProduct(id, options) {
5878
6004
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).deleteProduct(id, options);
5879
- return (axios = globalAxios18, basePath = BASE_PATH) => {
6005
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5880
6006
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5881
6007
  return axios.request(axiosRequestArgs);
5882
6008
  };
@@ -5891,7 +6017,7 @@ var ProductsApiFp = function(configuration) {
5891
6017
  */
5892
6018
  async deleteVariant(productId, variantId, options) {
5893
6019
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).deleteVariant(productId, variantId, options);
5894
- return (axios = globalAxios18, basePath = BASE_PATH) => {
6020
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5895
6021
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5896
6022
  return axios.request(axiosRequestArgs);
5897
6023
  };
@@ -5905,7 +6031,7 @@ var ProductsApiFp = function(configuration) {
5905
6031
  */
5906
6032
  async getAllCategoryProducts(categoryId, options) {
5907
6033
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllCategoryProducts(categoryId, options);
5908
- return (axios = globalAxios18, basePath = BASE_PATH) => {
6034
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5909
6035
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5910
6036
  return axios.request(axiosRequestArgs);
5911
6037
  };
@@ -5918,7 +6044,7 @@ var ProductsApiFp = function(configuration) {
5918
6044
  */
5919
6045
  async getAllFilters(options) {
5920
6046
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllFilters(options);
5921
- return (axios = globalAxios18, basePath = BASE_PATH) => {
6047
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5922
6048
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5923
6049
  return axios.request(axiosRequestArgs);
5924
6050
  };
@@ -5942,7 +6068,7 @@ var ProductsApiFp = function(configuration) {
5942
6068
  */
5943
6069
  async getAllProducts(searchTerm, maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options) {
5944
6070
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProducts(searchTerm, maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options);
5945
- return (axios = globalAxios18, basePath = BASE_PATH) => {
6071
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5946
6072
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5947
6073
  return axios.request(axiosRequestArgs);
5948
6074
  };
@@ -5956,7 +6082,7 @@ var ProductsApiFp = function(configuration) {
5956
6082
  */
5957
6083
  async getAllProductsBySubCategory(subCategoryId, options) {
5958
6084
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProductsBySubCategory(subCategoryId, options);
5959
- return (axios = globalAxios18, basePath = BASE_PATH) => {
6085
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5960
6086
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5961
6087
  return axios.request(axiosRequestArgs);
5962
6088
  };
@@ -5969,7 +6095,7 @@ var ProductsApiFp = function(configuration) {
5969
6095
  */
5970
6096
  async getFeaturedProduct(options) {
5971
6097
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getFeaturedProduct(options);
5972
- return (axios = globalAxios18, basePath = BASE_PATH) => {
6098
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5973
6099
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5974
6100
  return axios.request(axiosRequestArgs);
5975
6101
  };
@@ -5982,7 +6108,7 @@ var ProductsApiFp = function(configuration) {
5982
6108
  */
5983
6109
  async getProductsInsights(options) {
5984
6110
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getProductsInsights(options);
5985
- return (axios = globalAxios18, basePath = BASE_PATH) => {
6111
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
5986
6112
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5987
6113
  return axios.request(axiosRequestArgs);
5988
6114
  };
@@ -5997,7 +6123,7 @@ var ProductsApiFp = function(configuration) {
5997
6123
  */
5998
6124
  async getRelatedProducts(id, limit, options) {
5999
6125
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getRelatedProducts(id, limit, options);
6000
- return (axios = globalAxios18, basePath = BASE_PATH) => {
6126
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
6001
6127
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6002
6128
  return axios.request(axiosRequestArgs);
6003
6129
  };
@@ -6011,7 +6137,7 @@ var ProductsApiFp = function(configuration) {
6011
6137
  */
6012
6138
  async getRelatedProductsLegacy(productId, options) {
6013
6139
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getRelatedProductsLegacy(productId, options);
6014
- return (axios = globalAxios18, basePath = BASE_PATH) => {
6140
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
6015
6141
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6016
6142
  return axios.request(axiosRequestArgs);
6017
6143
  };
@@ -6025,7 +6151,7 @@ var ProductsApiFp = function(configuration) {
6025
6151
  */
6026
6152
  async getSingleProduct(id, options) {
6027
6153
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getSingleProduct(id, options);
6028
- return (axios = globalAxios18, basePath = BASE_PATH) => {
6154
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
6029
6155
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6030
6156
  return axios.request(axiosRequestArgs);
6031
6157
  };
@@ -6039,7 +6165,7 @@ var ProductsApiFp = function(configuration) {
6039
6165
  */
6040
6166
  async getSingleProductLegacy(id, options) {
6041
6167
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getSingleProductLegacy(id, options);
6042
- return (axios = globalAxios18, basePath = BASE_PATH) => {
6168
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
6043
6169
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6044
6170
  return axios.request(axiosRequestArgs);
6045
6171
  };
@@ -6054,7 +6180,21 @@ var ProductsApiFp = function(configuration) {
6054
6180
  */
6055
6181
  async getTopSellingProducts(limit, page, options) {
6056
6182
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getTopSellingProducts(limit, page, options);
6057
- return (axios = globalAxios18, basePath = BASE_PATH) => {
6183
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
6184
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6185
+ return axios.request(axiosRequestArgs);
6186
+ };
6187
+ },
6188
+ /**
6189
+ *
6190
+ * @summary Reorder products within a category or subcategory
6191
+ * @param {ReorderProductsDto} body
6192
+ * @param {*} [options] Override http request option.
6193
+ * @throws {RequiredError}
6194
+ */
6195
+ async reorderProducts(body, options) {
6196
+ const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).reorderProducts(body, options);
6197
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
6058
6198
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6059
6199
  return axios.request(axiosRequestArgs);
6060
6200
  };
@@ -6070,7 +6210,7 @@ var ProductsApiFp = function(configuration) {
6070
6210
  */
6071
6211
  async updateInventory(body, productId, variantId, options) {
6072
6212
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateInventory(body, productId, variantId, options);
6073
- return (axios = globalAxios18, basePath = BASE_PATH) => {
6213
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
6074
6214
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6075
6215
  return axios.request(axiosRequestArgs);
6076
6216
  };
@@ -6085,7 +6225,7 @@ var ProductsApiFp = function(configuration) {
6085
6225
  */
6086
6226
  async updateProduct(body, id, options) {
6087
6227
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateProduct(body, id, options);
6088
- return (axios = globalAxios18, basePath = BASE_PATH) => {
6228
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
6089
6229
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6090
6230
  return axios.request(axiosRequestArgs);
6091
6231
  };
@@ -6101,7 +6241,7 @@ var ProductsApiFp = function(configuration) {
6101
6241
  */
6102
6242
  async updateVariant(body, productId, variantId, options) {
6103
6243
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateVariant(body, productId, variantId, options);
6104
- return (axios = globalAxios18, basePath = BASE_PATH) => {
6244
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
6105
6245
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6106
6246
  return axios.request(axiosRequestArgs);
6107
6247
  };
@@ -6296,6 +6436,17 @@ var ProductsApi = class extends BaseAPI {
6296
6436
  async getTopSellingProducts(limit, page, options) {
6297
6437
  return ProductsApiFp(this.configuration).getTopSellingProducts(limit, page, options).then((request) => request(this.axios, this.basePath));
6298
6438
  }
6439
+ /**
6440
+ *
6441
+ * @summary Reorder products within a category or subcategory
6442
+ * @param {ReorderProductsDto} body
6443
+ * @param {*} [options] Override http request option.
6444
+ * @throws {RequiredError}
6445
+ * @memberof ProductsApi
6446
+ */
6447
+ async reorderProducts(body, options) {
6448
+ return ProductsApiFp(this.configuration).reorderProducts(body, options).then((request) => request(this.axios, this.basePath));
6449
+ }
6299
6450
  /**
6300
6451
  *
6301
6452
  * @summary Update variant inventory (add or subtract)
@@ -6546,6 +6697,56 @@ var ShippingApiAxiosParamCreator = function(configuration) {
6546
6697
  url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
6547
6698
  options: localVarRequestOptions
6548
6699
  };
6700
+ },
6701
+ /**
6702
+ *
6703
+ * @summary Update manual shipment status (for non-Shippo deliveries only)
6704
+ * @param {UpdateManualShipmentStatusDto} body
6705
+ * @param {string} shipmentId
6706
+ * @param {*} [options] Override http request option.
6707
+ * @throws {RequiredError}
6708
+ */
6709
+ updateManualShipmentStatus: async (body, shipmentId, options = {}) => {
6710
+ if (body === null || body === void 0) {
6711
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling updateManualShipmentStatus.");
6712
+ }
6713
+ if (shipmentId === null || shipmentId === void 0) {
6714
+ throw new RequiredError("shipmentId", "Required parameter shipmentId was null or undefined when calling updateManualShipmentStatus.");
6715
+ }
6716
+ const localVarPath = `/shipping/shipments/{shipmentId}/status`.replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
6717
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
6718
+ let baseOptions;
6719
+ if (configuration) {
6720
+ baseOptions = configuration.baseOptions;
6721
+ }
6722
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
6723
+ const localVarHeaderParameter = {};
6724
+ const localVarQueryParameter = {};
6725
+ if (configuration && configuration.accessToken) {
6726
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
6727
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
6728
+ }
6729
+ if (configuration && configuration.apiKey) {
6730
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
6731
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
6732
+ }
6733
+ localVarHeaderParameter["Content-Type"] = "application/json";
6734
+ const query = new URLSearchParams(localVarUrlObj.search);
6735
+ for (const key in localVarQueryParameter) {
6736
+ query.set(key, localVarQueryParameter[key]);
6737
+ }
6738
+ for (const key in options.params) {
6739
+ query.set(key, options.params[key]);
6740
+ }
6741
+ localVarUrlObj.search = new URLSearchParams(query).toString();
6742
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6743
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6744
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
6745
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
6746
+ return {
6747
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
6748
+ options: localVarRequestOptions
6749
+ };
6549
6750
  }
6550
6751
  };
6551
6752
  };
@@ -6559,7 +6760,7 @@ var ShippingApiFp = function(configuration) {
6559
6760
  */
6560
6761
  async getAllShipments(options) {
6561
6762
  const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getAllShipments(options);
6562
- return (axios = globalAxios18, basePath = BASE_PATH) => {
6763
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
6563
6764
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6564
6765
  return axios.request(axiosRequestArgs);
6565
6766
  };
@@ -6572,7 +6773,7 @@ var ShippingApiFp = function(configuration) {
6572
6773
  */
6573
6774
  async getAllUserShipments(options) {
6574
6775
  const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getAllUserShipments(options);
6575
- return (axios = globalAxios18, basePath = BASE_PATH) => {
6776
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
6576
6777
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6577
6778
  return axios.request(axiosRequestArgs);
6578
6779
  };
@@ -6586,7 +6787,7 @@ var ShippingApiFp = function(configuration) {
6586
6787
  */
6587
6788
  async getOrderShipment(orderId, options) {
6588
6789
  const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getOrderShipment(orderId, options);
6589
- return (axios = globalAxios18, basePath = BASE_PATH) => {
6790
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
6590
6791
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6591
6792
  return axios.request(axiosRequestArgs);
6592
6793
  };
@@ -6601,7 +6802,7 @@ var ShippingApiFp = function(configuration) {
6601
6802
  */
6602
6803
  async getShippingRates(body, addressId, options) {
6603
6804
  const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getShippingRates(body, addressId, options);
6604
- return (axios = globalAxios18, basePath = BASE_PATH) => {
6805
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
6605
6806
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6606
6807
  return axios.request(axiosRequestArgs);
6607
6808
  };
@@ -6614,7 +6815,22 @@ var ShippingApiFp = function(configuration) {
6614
6815
  */
6615
6816
  async getStoreAddress(options) {
6616
6817
  const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getStoreAddress(options);
6617
- return (axios = globalAxios18, basePath = BASE_PATH) => {
6818
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
6819
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6820
+ return axios.request(axiosRequestArgs);
6821
+ };
6822
+ },
6823
+ /**
6824
+ *
6825
+ * @summary Update manual shipment status (for non-Shippo deliveries only)
6826
+ * @param {UpdateManualShipmentStatusDto} body
6827
+ * @param {string} shipmentId
6828
+ * @param {*} [options] Override http request option.
6829
+ * @throws {RequiredError}
6830
+ */
6831
+ async updateManualShipmentStatus(body, shipmentId, options) {
6832
+ const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).updateManualShipmentStatus(body, shipmentId, options);
6833
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
6618
6834
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6619
6835
  return axios.request(axiosRequestArgs);
6620
6836
  };
@@ -6675,21 +6891,33 @@ var ShippingApi = class extends BaseAPI {
6675
6891
  async getStoreAddress(options) {
6676
6892
  return ShippingApiFp(this.configuration).getStoreAddress(options).then((request) => request(this.axios, this.basePath));
6677
6893
  }
6894
+ /**
6895
+ *
6896
+ * @summary Update manual shipment status (for non-Shippo deliveries only)
6897
+ * @param {UpdateManualShipmentStatusDto} body
6898
+ * @param {string} shipmentId
6899
+ * @param {*} [options] Override http request option.
6900
+ * @throws {RequiredError}
6901
+ * @memberof ShippingApi
6902
+ */
6903
+ async updateManualShipmentStatus(body, shipmentId, options) {
6904
+ return ShippingApiFp(this.configuration).updateManualShipmentStatus(body, shipmentId, options).then((request) => request(this.axios, this.basePath));
6905
+ }
6678
6906
  };
6679
- var WishlistApiAxiosParamCreator = function(configuration) {
6907
+ var StoresApiAxiosParamCreator = function(configuration) {
6680
6908
  return {
6681
6909
  /**
6682
6910
  *
6683
- * @summary Add product to wishlist
6684
- * @param {string} productId
6911
+ * @summary Create a new store
6912
+ * @param {CreateStoreDto} body
6685
6913
  * @param {*} [options] Override http request option.
6686
6914
  * @throws {RequiredError}
6687
6915
  */
6688
- addToWishlist: async (productId, options = {}) => {
6689
- if (productId === null || productId === void 0) {
6690
- throw new RequiredError("productId", "Required parameter productId was null or undefined when calling addToWishlist.");
6916
+ createStore: async (body, options = {}) => {
6917
+ if (body === null || body === void 0) {
6918
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling createStore.");
6691
6919
  }
6692
- const localVarPath = `/wishlist/add/{productId}`.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
6920
+ const localVarPath = `/stores`;
6693
6921
  const localVarUrlObj = new URL(localVarPath, "https://example.com");
6694
6922
  let baseOptions;
6695
6923
  if (configuration) {
@@ -6698,10 +6926,11 @@ var WishlistApiAxiosParamCreator = function(configuration) {
6698
6926
  const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
6699
6927
  const localVarHeaderParameter = {};
6700
6928
  const localVarQueryParameter = {};
6701
- if (configuration && configuration.accessToken) {
6702
- const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
6703
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
6929
+ if (configuration && configuration.apiKey) {
6930
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
6931
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
6704
6932
  }
6933
+ localVarHeaderParameter["Content-Type"] = "application/json";
6705
6934
  const query = new URLSearchParams(localVarUrlObj.search);
6706
6935
  for (const key in localVarQueryParameter) {
6707
6936
  query.set(key, localVarQueryParameter[key]);
@@ -6712,6 +6941,8 @@ var WishlistApiAxiosParamCreator = function(configuration) {
6712
6941
  localVarUrlObj.search = new URLSearchParams(query).toString();
6713
6942
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6714
6943
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6944
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
6945
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
6715
6946
  return {
6716
6947
  url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
6717
6948
  options: localVarRequestOptions
@@ -6719,12 +6950,16 @@ var WishlistApiAxiosParamCreator = function(configuration) {
6719
6950
  },
6720
6951
  /**
6721
6952
  *
6722
- * @summary Clear wishlist
6953
+ * @summary Delete refill request by id
6954
+ * @param {string} requestId
6723
6955
  * @param {*} [options] Override http request option.
6724
6956
  * @throws {RequiredError}
6725
6957
  */
6726
- clearWishlist: async (options = {}) => {
6727
- const localVarPath = `/wishlist/clear`;
6958
+ deleteRefillRequest: async (requestId, options = {}) => {
6959
+ if (requestId === null || requestId === void 0) {
6960
+ throw new RequiredError("requestId", "Required parameter requestId was null or undefined when calling deleteRefillRequest.");
6961
+ }
6962
+ const localVarPath = `/stores/{id}/refill-requests/{requestId}`.replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
6728
6963
  const localVarUrlObj = new URL(localVarPath, "https://example.com");
6729
6964
  let baseOptions;
6730
6965
  if (configuration) {
@@ -6733,9 +6968,9 @@ var WishlistApiAxiosParamCreator = function(configuration) {
6733
6968
  const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
6734
6969
  const localVarHeaderParameter = {};
6735
6970
  const localVarQueryParameter = {};
6736
- if (configuration && configuration.accessToken) {
6737
- const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
6738
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
6971
+ if (configuration && configuration.apiKey) {
6972
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
6973
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
6739
6974
  }
6740
6975
  const query = new URLSearchParams(localVarUrlObj.search);
6741
6976
  for (const key in localVarQueryParameter) {
@@ -6754,23 +6989,27 @@ var WishlistApiAxiosParamCreator = function(configuration) {
6754
6989
  },
6755
6990
  /**
6756
6991
  *
6757
- * @summary Get user wishlist
6992
+ * @summary Delete store by id
6993
+ * @param {string} id
6758
6994
  * @param {*} [options] Override http request option.
6759
6995
  * @throws {RequiredError}
6760
6996
  */
6761
- getWishlist: async (options = {}) => {
6762
- const localVarPath = `/wishlist`;
6997
+ deleteStore: async (id, options = {}) => {
6998
+ if (id === null || id === void 0) {
6999
+ throw new RequiredError("id", "Required parameter id was null or undefined when calling deleteStore.");
7000
+ }
7001
+ const localVarPath = `/stores/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
6763
7002
  const localVarUrlObj = new URL(localVarPath, "https://example.com");
6764
7003
  let baseOptions;
6765
7004
  if (configuration) {
6766
7005
  baseOptions = configuration.baseOptions;
6767
7006
  }
6768
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
7007
+ const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
6769
7008
  const localVarHeaderParameter = {};
6770
7009
  const localVarQueryParameter = {};
6771
- if (configuration && configuration.accessToken) {
6772
- const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
6773
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
7010
+ if (configuration && configuration.apiKey) {
7011
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7012
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
6774
7013
  }
6775
7014
  const query = new URLSearchParams(localVarUrlObj.search);
6776
7015
  for (const key in localVarQueryParameter) {
@@ -6789,23 +7028,27 @@ var WishlistApiAxiosParamCreator = function(configuration) {
6789
7028
  },
6790
7029
  /**
6791
7030
  *
6792
- * @summary Get wishlist item count
7031
+ * @summary Delete transfere patients request by id
7032
+ * @param {string} requestId
6793
7033
  * @param {*} [options] Override http request option.
6794
7034
  * @throws {RequiredError}
6795
7035
  */
6796
- getWishlistItemCount: async (options = {}) => {
6797
- const localVarPath = `/wishlist/count`;
7036
+ deleteTransferePatientsRequest: async (requestId, options = {}) => {
7037
+ if (requestId === null || requestId === void 0) {
7038
+ throw new RequiredError("requestId", "Required parameter requestId was null or undefined when calling deleteTransferePatientsRequest.");
7039
+ }
7040
+ const localVarPath = `/stores/{id}/transfere-patients-requests/{requestId}`.replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
6798
7041
  const localVarUrlObj = new URL(localVarPath, "https://example.com");
6799
7042
  let baseOptions;
6800
7043
  if (configuration) {
6801
7044
  baseOptions = configuration.baseOptions;
6802
7045
  }
6803
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
7046
+ const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
6804
7047
  const localVarHeaderParameter = {};
6805
7048
  const localVarQueryParameter = {};
6806
- if (configuration && configuration.accessToken) {
6807
- const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
6808
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
7049
+ if (configuration && configuration.apiKey) {
7050
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7051
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
6809
7052
  }
6810
7053
  const query = new URLSearchParams(localVarUrlObj.search);
6811
7054
  for (const key in localVarQueryParameter) {
@@ -6824,27 +7067,23 @@ var WishlistApiAxiosParamCreator = function(configuration) {
6824
7067
  },
6825
7068
  /**
6826
7069
  *
6827
- * @summary Remove product from wishlist
6828
- * @param {string} productId
7070
+ * @summary Get all stores
6829
7071
  * @param {*} [options] Override http request option.
6830
7072
  * @throws {RequiredError}
6831
7073
  */
6832
- removeFromWishlist: async (productId, options = {}) => {
6833
- if (productId === null || productId === void 0) {
6834
- throw new RequiredError("productId", "Required parameter productId was null or undefined when calling removeFromWishlist.");
6835
- }
6836
- const localVarPath = `/wishlist/remove/{productId}`.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
7074
+ getAllStores: async (options = {}) => {
7075
+ const localVarPath = `/stores`;
6837
7076
  const localVarUrlObj = new URL(localVarPath, "https://example.com");
6838
7077
  let baseOptions;
6839
7078
  if (configuration) {
6840
7079
  baseOptions = configuration.baseOptions;
6841
7080
  }
6842
- const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
7081
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
6843
7082
  const localVarHeaderParameter = {};
6844
7083
  const localVarQueryParameter = {};
6845
- if (configuration && configuration.accessToken) {
6846
- const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
6847
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
7084
+ if (configuration && configuration.apiKey) {
7085
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7086
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
6848
7087
  }
6849
7088
  const query = new URLSearchParams(localVarUrlObj.search);
6850
7089
  for (const key in localVarQueryParameter) {
@@ -6860,24 +7099,1669 @@ var WishlistApiAxiosParamCreator = function(configuration) {
6860
7099
  url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
6861
7100
  options: localVarRequestOptions
6862
7101
  };
6863
- }
6864
- };
6865
- };
6866
- var WishlistApiFp = function(configuration) {
6867
- return {
7102
+ },
6868
7103
  /**
6869
7104
  *
6870
- * @summary Add product to wishlist
6871
- * @param {string} productId
7105
+ * @summary Get store API keys with masked values
7106
+ * @param {string} storeId
6872
7107
  * @param {*} [options] Override http request option.
6873
7108
  * @throws {RequiredError}
6874
7109
  */
6875
- async addToWishlist(productId, options) {
6876
- const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).addToWishlist(productId, options);
6877
- return (axios = globalAxios18, basePath = BASE_PATH) => {
6878
- const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6879
- return axios.request(axiosRequestArgs);
6880
- };
7110
+ getApiKeys: async (storeId, options = {}) => {
7111
+ if (storeId === null || storeId === void 0) {
7112
+ throw new RequiredError("storeId", "Required parameter storeId was null or undefined when calling getApiKeys.");
7113
+ }
7114
+ const localVarPath = `/stores/{storeId}/api-keys`.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
7115
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7116
+ let baseOptions;
7117
+ if (configuration) {
7118
+ baseOptions = configuration.baseOptions;
7119
+ }
7120
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
7121
+ const localVarHeaderParameter = {};
7122
+ const localVarQueryParameter = {};
7123
+ if (configuration && configuration.apiKey) {
7124
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7125
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7126
+ }
7127
+ const query = new URLSearchParams(localVarUrlObj.search);
7128
+ for (const key in localVarQueryParameter) {
7129
+ query.set(key, localVarQueryParameter[key]);
7130
+ }
7131
+ for (const key in options.params) {
7132
+ query.set(key, options.params[key]);
7133
+ }
7134
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7136
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7137
+ return {
7138
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7139
+ options: localVarRequestOptions
7140
+ };
7141
+ },
7142
+ /**
7143
+ *
7144
+ * @summary Get refill requests by store id
7145
+ * @param {string} storeId
7146
+ * @param {*} [options] Override http request option.
7147
+ * @throws {RequiredError}
7148
+ */
7149
+ getRefillRequests: async (storeId, options = {}) => {
7150
+ if (storeId === null || storeId === void 0) {
7151
+ throw new RequiredError("storeId", "Required parameter storeId was null or undefined when calling getRefillRequests.");
7152
+ }
7153
+ const localVarPath = `/stores/{storeId}/refill-requests`.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
7154
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7155
+ let baseOptions;
7156
+ if (configuration) {
7157
+ baseOptions = configuration.baseOptions;
7158
+ }
7159
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
7160
+ const localVarHeaderParameter = {};
7161
+ const localVarQueryParameter = {};
7162
+ if (configuration && configuration.apiKey) {
7163
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7164
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7165
+ }
7166
+ const query = new URLSearchParams(localVarUrlObj.search);
7167
+ for (const key in localVarQueryParameter) {
7168
+ query.set(key, localVarQueryParameter[key]);
7169
+ }
7170
+ for (const key in options.params) {
7171
+ query.set(key, options.params[key]);
7172
+ }
7173
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7174
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7175
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7176
+ return {
7177
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7178
+ options: localVarRequestOptions
7179
+ };
7180
+ },
7181
+ /**
7182
+ *
7183
+ * @summary Get store by id
7184
+ * @param {string} storeId
7185
+ * @param {*} [options] Override http request option.
7186
+ * @throws {RequiredError}
7187
+ */
7188
+ getStoreById: async (storeId, options = {}) => {
7189
+ if (storeId === null || storeId === void 0) {
7190
+ throw new RequiredError("storeId", "Required parameter storeId was null or undefined when calling getStoreById.");
7191
+ }
7192
+ const localVarPath = `/stores/{storeId}`.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
7193
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7194
+ let baseOptions;
7195
+ if (configuration) {
7196
+ baseOptions = configuration.baseOptions;
7197
+ }
7198
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
7199
+ const localVarHeaderParameter = {};
7200
+ const localVarQueryParameter = {};
7201
+ if (configuration && configuration.apiKey) {
7202
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7203
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7204
+ }
7205
+ const query = new URLSearchParams(localVarUrlObj.search);
7206
+ for (const key in localVarQueryParameter) {
7207
+ query.set(key, localVarQueryParameter[key]);
7208
+ }
7209
+ for (const key in options.params) {
7210
+ query.set(key, options.params[key]);
7211
+ }
7212
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7213
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7214
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7215
+ return {
7216
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7217
+ options: localVarRequestOptions
7218
+ };
7219
+ },
7220
+ /**
7221
+ *
7222
+ * @summary Get store capabilities (payment/delivery options available)
7223
+ * @param {string} storeId
7224
+ * @param {*} [options] Override http request option.
7225
+ * @throws {RequiredError}
7226
+ */
7227
+ getStoreCapabilities: async (storeId, options = {}) => {
7228
+ if (storeId === null || storeId === void 0) {
7229
+ throw new RequiredError("storeId", "Required parameter storeId was null or undefined when calling getStoreCapabilities.");
7230
+ }
7231
+ const localVarPath = `/stores/{storeId}/capabilities`.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
7232
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7233
+ let baseOptions;
7234
+ if (configuration) {
7235
+ baseOptions = configuration.baseOptions;
7236
+ }
7237
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
7238
+ const localVarHeaderParameter = {};
7239
+ const localVarQueryParameter = {};
7240
+ if (configuration && configuration.apiKey) {
7241
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7242
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7243
+ }
7244
+ const query = new URLSearchParams(localVarUrlObj.search);
7245
+ for (const key in localVarQueryParameter) {
7246
+ query.set(key, localVarQueryParameter[key]);
7247
+ }
7248
+ for (const key in options.params) {
7249
+ query.set(key, options.params[key]);
7250
+ }
7251
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7252
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7253
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7254
+ return {
7255
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7256
+ options: localVarRequestOptions
7257
+ };
7258
+ },
7259
+ /**
7260
+ *
7261
+ * @summary Get transfere patients requests by store id
7262
+ * @param {string} storeId
7263
+ * @param {*} [options] Override http request option.
7264
+ * @throws {RequiredError}
7265
+ */
7266
+ getTransferePatientsRequests: async (storeId, options = {}) => {
7267
+ if (storeId === null || storeId === void 0) {
7268
+ throw new RequiredError("storeId", "Required parameter storeId was null or undefined when calling getTransferePatientsRequests.");
7269
+ }
7270
+ const localVarPath = `/stores/{storeId}/transfere-patients-requests`.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
7271
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7272
+ let baseOptions;
7273
+ if (configuration) {
7274
+ baseOptions = configuration.baseOptions;
7275
+ }
7276
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
7277
+ const localVarHeaderParameter = {};
7278
+ const localVarQueryParameter = {};
7279
+ if (configuration && configuration.apiKey) {
7280
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7281
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7282
+ }
7283
+ const query = new URLSearchParams(localVarUrlObj.search);
7284
+ for (const key in localVarQueryParameter) {
7285
+ query.set(key, localVarQueryParameter[key]);
7286
+ }
7287
+ for (const key in options.params) {
7288
+ query.set(key, options.params[key]);
7289
+ }
7290
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7291
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7292
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7293
+ return {
7294
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7295
+ options: localVarRequestOptions
7296
+ };
7297
+ },
7298
+ /**
7299
+ *
7300
+ * @summary Revoke/delete a specific API key
7301
+ * @param {string} storeId
7302
+ * @param {string} keyType Type of key to revoke
7303
+ * @param {*} [options] Override http request option.
7304
+ * @throws {RequiredError}
7305
+ */
7306
+ revokeApiKey: async (storeId, keyType, options = {}) => {
7307
+ if (storeId === null || storeId === void 0) {
7308
+ throw new RequiredError("storeId", "Required parameter storeId was null or undefined when calling revokeApiKey.");
7309
+ }
7310
+ if (keyType === null || keyType === void 0) {
7311
+ throw new RequiredError("keyType", "Required parameter keyType was null or undefined when calling revokeApiKey.");
7312
+ }
7313
+ const localVarPath = `/stores/{storeId}/api-keys/{keyType}`.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId))).replace(`{${"keyType"}}`, encodeURIComponent(String(keyType)));
7314
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7315
+ let baseOptions;
7316
+ if (configuration) {
7317
+ baseOptions = configuration.baseOptions;
7318
+ }
7319
+ const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
7320
+ const localVarHeaderParameter = {};
7321
+ const localVarQueryParameter = {};
7322
+ if (configuration && configuration.apiKey) {
7323
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7324
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7325
+ }
7326
+ const query = new URLSearchParams(localVarUrlObj.search);
7327
+ for (const key in localVarQueryParameter) {
7328
+ query.set(key, localVarQueryParameter[key]);
7329
+ }
7330
+ for (const key in options.params) {
7331
+ query.set(key, options.params[key]);
7332
+ }
7333
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7334
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7335
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7336
+ return {
7337
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7338
+ options: localVarRequestOptions
7339
+ };
7340
+ },
7341
+ /**
7342
+ *
7343
+ * @param {*} [options] Override http request option.
7344
+ * @throws {RequiredError}
7345
+ */
7346
+ sendContactUsEmail: async (options = {}) => {
7347
+ const localVarPath = `/stores/send-contact-us-email`;
7348
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7349
+ let baseOptions;
7350
+ if (configuration) {
7351
+ baseOptions = configuration.baseOptions;
7352
+ }
7353
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7354
+ const localVarHeaderParameter = {};
7355
+ const localVarQueryParameter = {};
7356
+ if (configuration && configuration.apiKey) {
7357
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7358
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7359
+ }
7360
+ const query = new URLSearchParams(localVarUrlObj.search);
7361
+ for (const key in localVarQueryParameter) {
7362
+ query.set(key, localVarQueryParameter[key]);
7363
+ }
7364
+ for (const key in options.params) {
7365
+ query.set(key, options.params[key]);
7366
+ }
7367
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7368
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7369
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7370
+ return {
7371
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7372
+ options: localVarRequestOptions
7373
+ };
7374
+ },
7375
+ /**
7376
+ *
7377
+ * @param {*} [options] Override http request option.
7378
+ * @throws {RequiredError}
7379
+ */
7380
+ sendContactUsEmailEzrirx: async (options = {}) => {
7381
+ const localVarPath = `/stores/send-contact-us-email-ezrirx`;
7382
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7383
+ let baseOptions;
7384
+ if (configuration) {
7385
+ baseOptions = configuration.baseOptions;
7386
+ }
7387
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7388
+ const localVarHeaderParameter = {};
7389
+ const localVarQueryParameter = {};
7390
+ if (configuration && configuration.apiKey) {
7391
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7392
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7393
+ }
7394
+ const query = new URLSearchParams(localVarUrlObj.search);
7395
+ for (const key in localVarQueryParameter) {
7396
+ query.set(key, localVarQueryParameter[key]);
7397
+ }
7398
+ for (const key in options.params) {
7399
+ query.set(key, options.params[key]);
7400
+ }
7401
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7402
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7403
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7404
+ return {
7405
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7406
+ options: localVarRequestOptions
7407
+ };
7408
+ },
7409
+ /**
7410
+ *
7411
+ * @param {*} [options] Override http request option.
7412
+ * @throws {RequiredError}
7413
+ */
7414
+ sendGMBookDemoEmail: async (options = {}) => {
7415
+ const localVarPath = `/stores/g-m-send-book-demo-email`;
7416
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7417
+ let baseOptions;
7418
+ if (configuration) {
7419
+ baseOptions = configuration.baseOptions;
7420
+ }
7421
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7422
+ const localVarHeaderParameter = {};
7423
+ const localVarQueryParameter = {};
7424
+ if (configuration && configuration.apiKey) {
7425
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7426
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7427
+ }
7428
+ const query = new URLSearchParams(localVarUrlObj.search);
7429
+ for (const key in localVarQueryParameter) {
7430
+ query.set(key, localVarQueryParameter[key]);
7431
+ }
7432
+ for (const key in options.params) {
7433
+ query.set(key, options.params[key]);
7434
+ }
7435
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7436
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7437
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7438
+ return {
7439
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7440
+ options: localVarRequestOptions
7441
+ };
7442
+ },
7443
+ /**
7444
+ *
7445
+ * @param {*} [options] Override http request option.
7446
+ * @throws {RequiredError}
7447
+ */
7448
+ sendGMContactUsEmail: async (options = {}) => {
7449
+ const localVarPath = `/stores/g-m-send-contact-us-email`;
7450
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7451
+ let baseOptions;
7452
+ if (configuration) {
7453
+ baseOptions = configuration.baseOptions;
7454
+ }
7455
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7456
+ const localVarHeaderParameter = {};
7457
+ const localVarQueryParameter = {};
7458
+ if (configuration && configuration.apiKey) {
7459
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7460
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7461
+ }
7462
+ const query = new URLSearchParams(localVarUrlObj.search);
7463
+ for (const key in localVarQueryParameter) {
7464
+ query.set(key, localVarQueryParameter[key]);
7465
+ }
7466
+ for (const key in options.params) {
7467
+ query.set(key, options.params[key]);
7468
+ }
7469
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7470
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7471
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7472
+ return {
7473
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7474
+ options: localVarRequestOptions
7475
+ };
7476
+ },
7477
+ /**
7478
+ *
7479
+ * @param {*} [options] Override http request option.
7480
+ * @throws {RequiredError}
7481
+ */
7482
+ sendGMJoinUsEmail: async (options = {}) => {
7483
+ const localVarPath = `/stores/sendGMJoinUsEmail`;
7484
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7485
+ let baseOptions;
7486
+ if (configuration) {
7487
+ baseOptions = configuration.baseOptions;
7488
+ }
7489
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7490
+ const localVarHeaderParameter = {};
7491
+ const localVarQueryParameter = {};
7492
+ if (configuration && configuration.apiKey) {
7493
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7494
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7495
+ }
7496
+ const query = new URLSearchParams(localVarUrlObj.search);
7497
+ for (const key in localVarQueryParameter) {
7498
+ query.set(key, localVarQueryParameter[key]);
7499
+ }
7500
+ for (const key in options.params) {
7501
+ query.set(key, options.params[key]);
7502
+ }
7503
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7504
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7505
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7506
+ return {
7507
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7508
+ options: localVarRequestOptions
7509
+ };
7510
+ },
7511
+ /**
7512
+ *
7513
+ * @param {*} [options] Override http request option.
7514
+ * @throws {RequiredError}
7515
+ */
7516
+ sendHolyFamilyEmail: async (options = {}) => {
7517
+ const localVarPath = `/stores/send-holy-family-email`;
7518
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7519
+ let baseOptions;
7520
+ if (configuration) {
7521
+ baseOptions = configuration.baseOptions;
7522
+ }
7523
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7524
+ const localVarHeaderParameter = {};
7525
+ const localVarQueryParameter = {};
7526
+ if (configuration && configuration.apiKey) {
7527
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7528
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7529
+ }
7530
+ const query = new URLSearchParams(localVarUrlObj.search);
7531
+ for (const key in localVarQueryParameter) {
7532
+ query.set(key, localVarQueryParameter[key]);
7533
+ }
7534
+ for (const key in options.params) {
7535
+ query.set(key, options.params[key]);
7536
+ }
7537
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7538
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7539
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7540
+ return {
7541
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7542
+ options: localVarRequestOptions
7543
+ };
7544
+ },
7545
+ /**
7546
+ *
7547
+ * @param {*} [options] Override http request option.
7548
+ * @throws {RequiredError}
7549
+ */
7550
+ sendMghBookingForm: async (options = {}) => {
7551
+ const localVarPath = `/stores/send-mgh-booking-form`;
7552
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7553
+ let baseOptions;
7554
+ if (configuration) {
7555
+ baseOptions = configuration.baseOptions;
7556
+ }
7557
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7558
+ const localVarHeaderParameter = {};
7559
+ const localVarQueryParameter = {};
7560
+ if (configuration && configuration.apiKey) {
7561
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7562
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7563
+ }
7564
+ const query = new URLSearchParams(localVarUrlObj.search);
7565
+ for (const key in localVarQueryParameter) {
7566
+ query.set(key, localVarQueryParameter[key]);
7567
+ }
7568
+ for (const key in options.params) {
7569
+ query.set(key, options.params[key]);
7570
+ }
7571
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7572
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7573
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7574
+ return {
7575
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7576
+ options: localVarRequestOptions
7577
+ };
7578
+ },
7579
+ /**
7580
+ *
7581
+ * @summary Send new client email
7582
+ * @param {NewClientEmailDto} body
7583
+ * @param {*} [options] Override http request option.
7584
+ * @throws {RequiredError}
7585
+ */
7586
+ sendNewClientEmail: async (body, options = {}) => {
7587
+ if (body === null || body === void 0) {
7588
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling sendNewClientEmail.");
7589
+ }
7590
+ const localVarPath = `/stores/send-new-client-email`;
7591
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7592
+ let baseOptions;
7593
+ if (configuration) {
7594
+ baseOptions = configuration.baseOptions;
7595
+ }
7596
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7597
+ const localVarHeaderParameter = {};
7598
+ const localVarQueryParameter = {};
7599
+ if (configuration && configuration.apiKey) {
7600
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7601
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7602
+ }
7603
+ localVarHeaderParameter["Content-Type"] = "application/json";
7604
+ const query = new URLSearchParams(localVarUrlObj.search);
7605
+ for (const key in localVarQueryParameter) {
7606
+ query.set(key, localVarQueryParameter[key]);
7607
+ }
7608
+ for (const key in options.params) {
7609
+ query.set(key, options.params[key]);
7610
+ }
7611
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7612
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7613
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7614
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
7615
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
7616
+ return {
7617
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7618
+ options: localVarRequestOptions
7619
+ };
7620
+ },
7621
+ /**
7622
+ *
7623
+ * @param {TransferePatientsRequestDto} body
7624
+ * @param {*} [options] Override http request option.
7625
+ * @throws {RequiredError}
7626
+ */
7627
+ sendNewPatientEmail: async (body, options = {}) => {
7628
+ if (body === null || body === void 0) {
7629
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling sendNewPatientEmail.");
7630
+ }
7631
+ const localVarPath = `/stores/send-new-patient-email`;
7632
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7633
+ let baseOptions;
7634
+ if (configuration) {
7635
+ baseOptions = configuration.baseOptions;
7636
+ }
7637
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7638
+ const localVarHeaderParameter = {};
7639
+ const localVarQueryParameter = {};
7640
+ if (configuration && configuration.apiKey) {
7641
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7642
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7643
+ }
7644
+ localVarHeaderParameter["Content-Type"] = "application/json";
7645
+ const query = new URLSearchParams(localVarUrlObj.search);
7646
+ for (const key in localVarQueryParameter) {
7647
+ query.set(key, localVarQueryParameter[key]);
7648
+ }
7649
+ for (const key in options.params) {
7650
+ query.set(key, options.params[key]);
7651
+ }
7652
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7653
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7654
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7655
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
7656
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
7657
+ return {
7658
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7659
+ options: localVarRequestOptions
7660
+ };
7661
+ },
7662
+ /**
7663
+ *
7664
+ * @param {RefillRequestDto} body
7665
+ * @param {*} [options] Override http request option.
7666
+ * @throws {RequiredError}
7667
+ */
7668
+ sendRefillEmail: async (body, options = {}) => {
7669
+ if (body === null || body === void 0) {
7670
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling sendRefillEmail.");
7671
+ }
7672
+ const localVarPath = `/stores/send-refill-email`;
7673
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7674
+ let baseOptions;
7675
+ if (configuration) {
7676
+ baseOptions = configuration.baseOptions;
7677
+ }
7678
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7679
+ const localVarHeaderParameter = {};
7680
+ const localVarQueryParameter = {};
7681
+ if (configuration && configuration.apiKey) {
7682
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7683
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7684
+ }
7685
+ localVarHeaderParameter["Content-Type"] = "application/json";
7686
+ const query = new URLSearchParams(localVarUrlObj.search);
7687
+ for (const key in localVarQueryParameter) {
7688
+ query.set(key, localVarQueryParameter[key]);
7689
+ }
7690
+ for (const key in options.params) {
7691
+ query.set(key, options.params[key]);
7692
+ }
7693
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7694
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7695
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7696
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
7697
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
7698
+ return {
7699
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7700
+ options: localVarRequestOptions
7701
+ };
7702
+ },
7703
+ /**
7704
+ *
7705
+ * @summary Send schedule tour email
7706
+ * @param {ScheduleTourEmailDto} body
7707
+ * @param {*} [options] Override http request option.
7708
+ * @throws {RequiredError}
7709
+ */
7710
+ sendScheduleTourEmail: async (body, options = {}) => {
7711
+ if (body === null || body === void 0) {
7712
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling sendScheduleTourEmail.");
7713
+ }
7714
+ const localVarPath = `/stores/send-schedule-tour-email`;
7715
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7716
+ let baseOptions;
7717
+ if (configuration) {
7718
+ baseOptions = configuration.baseOptions;
7719
+ }
7720
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7721
+ const localVarHeaderParameter = {};
7722
+ const localVarQueryParameter = {};
7723
+ if (configuration && configuration.apiKey) {
7724
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7725
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7726
+ }
7727
+ localVarHeaderParameter["Content-Type"] = "application/json";
7728
+ const query = new URLSearchParams(localVarUrlObj.search);
7729
+ for (const key in localVarQueryParameter) {
7730
+ query.set(key, localVarQueryParameter[key]);
7731
+ }
7732
+ for (const key in options.params) {
7733
+ query.set(key, options.params[key]);
7734
+ }
7735
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7736
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7737
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7738
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
7739
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
7740
+ return {
7741
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7742
+ options: localVarRequestOptions
7743
+ };
7744
+ },
7745
+ /**
7746
+ *
7747
+ * @summary Update store API keys (Stripe/Shippo)
7748
+ * @param {UpdateApiKeysDto} body
7749
+ * @param {string} storeId
7750
+ * @param {*} [options] Override http request option.
7751
+ * @throws {RequiredError}
7752
+ */
7753
+ updateApiKeys: async (body, storeId, options = {}) => {
7754
+ if (body === null || body === void 0) {
7755
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling updateApiKeys.");
7756
+ }
7757
+ if (storeId === null || storeId === void 0) {
7758
+ throw new RequiredError("storeId", "Required parameter storeId was null or undefined when calling updateApiKeys.");
7759
+ }
7760
+ const localVarPath = `/stores/{storeId}/api-keys`.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
7761
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7762
+ let baseOptions;
7763
+ if (configuration) {
7764
+ baseOptions = configuration.baseOptions;
7765
+ }
7766
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
7767
+ const localVarHeaderParameter = {};
7768
+ const localVarQueryParameter = {};
7769
+ if (configuration && configuration.apiKey) {
7770
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7771
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7772
+ }
7773
+ localVarHeaderParameter["Content-Type"] = "application/json";
7774
+ const query = new URLSearchParams(localVarUrlObj.search);
7775
+ for (const key in localVarQueryParameter) {
7776
+ query.set(key, localVarQueryParameter[key]);
7777
+ }
7778
+ for (const key in options.params) {
7779
+ query.set(key, options.params[key]);
7780
+ }
7781
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7782
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7783
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7784
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
7785
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
7786
+ return {
7787
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7788
+ options: localVarRequestOptions
7789
+ };
7790
+ },
7791
+ /**
7792
+ *
7793
+ * @summary Update refill request by id
7794
+ * @param {UpdateRefillRequestDto} body
7795
+ * @param {string} requestId
7796
+ * @param {*} [options] Override http request option.
7797
+ * @throws {RequiredError}
7798
+ */
7799
+ updateRefillRequest: async (body, requestId, options = {}) => {
7800
+ if (body === null || body === void 0) {
7801
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling updateRefillRequest.");
7802
+ }
7803
+ if (requestId === null || requestId === void 0) {
7804
+ throw new RequiredError("requestId", "Required parameter requestId was null or undefined when calling updateRefillRequest.");
7805
+ }
7806
+ const localVarPath = `/stores/{id}/refill-requests/{requestId}`.replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
7807
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7808
+ let baseOptions;
7809
+ if (configuration) {
7810
+ baseOptions = configuration.baseOptions;
7811
+ }
7812
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
7813
+ const localVarHeaderParameter = {};
7814
+ const localVarQueryParameter = {};
7815
+ if (configuration && configuration.apiKey) {
7816
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7817
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7818
+ }
7819
+ localVarHeaderParameter["Content-Type"] = "application/json";
7820
+ const query = new URLSearchParams(localVarUrlObj.search);
7821
+ for (const key in localVarQueryParameter) {
7822
+ query.set(key, localVarQueryParameter[key]);
7823
+ }
7824
+ for (const key in options.params) {
7825
+ query.set(key, options.params[key]);
7826
+ }
7827
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7828
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7829
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7830
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
7831
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
7832
+ return {
7833
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7834
+ options: localVarRequestOptions
7835
+ };
7836
+ },
7837
+ /**
7838
+ *
7839
+ * @summary Get store by id
7840
+ * @param {UpdateStoreDto} body
7841
+ * @param {string} id
7842
+ * @param {*} [options] Override http request option.
7843
+ * @throws {RequiredError}
7844
+ */
7845
+ updateStore: async (body, id, options = {}) => {
7846
+ if (body === null || body === void 0) {
7847
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling updateStore.");
7848
+ }
7849
+ if (id === null || id === void 0) {
7850
+ throw new RequiredError("id", "Required parameter id was null or undefined when calling updateStore.");
7851
+ }
7852
+ const localVarPath = `/stores/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
7853
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7854
+ let baseOptions;
7855
+ if (configuration) {
7856
+ baseOptions = configuration.baseOptions;
7857
+ }
7858
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
7859
+ const localVarHeaderParameter = {};
7860
+ const localVarQueryParameter = {};
7861
+ if (configuration && configuration.apiKey) {
7862
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7863
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7864
+ }
7865
+ localVarHeaderParameter["Content-Type"] = "application/json";
7866
+ const query = new URLSearchParams(localVarUrlObj.search);
7867
+ for (const key in localVarQueryParameter) {
7868
+ query.set(key, localVarQueryParameter[key]);
7869
+ }
7870
+ for (const key in options.params) {
7871
+ query.set(key, options.params[key]);
7872
+ }
7873
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7874
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7875
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7876
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
7877
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
7878
+ return {
7879
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7880
+ options: localVarRequestOptions
7881
+ };
7882
+ },
7883
+ /**
7884
+ *
7885
+ * @summary Update transfere patients request by id
7886
+ * @param {UpdateTransferePatientsRequestDto} body
7887
+ * @param {string} requestId
7888
+ * @param {*} [options] Override http request option.
7889
+ * @throws {RequiredError}
7890
+ */
7891
+ updateTransferePatientsRequest: async (body, requestId, options = {}) => {
7892
+ if (body === null || body === void 0) {
7893
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling updateTransferePatientsRequest.");
7894
+ }
7895
+ if (requestId === null || requestId === void 0) {
7896
+ throw new RequiredError("requestId", "Required parameter requestId was null or undefined when calling updateTransferePatientsRequest.");
7897
+ }
7898
+ const localVarPath = `/stores/{id}/transfere-patients-requests/{requestId}`.replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
7899
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7900
+ let baseOptions;
7901
+ if (configuration) {
7902
+ baseOptions = configuration.baseOptions;
7903
+ }
7904
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
7905
+ const localVarHeaderParameter = {};
7906
+ const localVarQueryParameter = {};
7907
+ if (configuration && configuration.apiKey) {
7908
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7909
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7910
+ }
7911
+ localVarHeaderParameter["Content-Type"] = "application/json";
7912
+ const query = new URLSearchParams(localVarUrlObj.search);
7913
+ for (const key in localVarQueryParameter) {
7914
+ query.set(key, localVarQueryParameter[key]);
7915
+ }
7916
+ for (const key in options.params) {
7917
+ query.set(key, options.params[key]);
7918
+ }
7919
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7920
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7921
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7922
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
7923
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
7924
+ return {
7925
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7926
+ options: localVarRequestOptions
7927
+ };
7928
+ }
7929
+ };
7930
+ };
7931
+ var StoresApiFp = function(configuration) {
7932
+ return {
7933
+ /**
7934
+ *
7935
+ * @summary Create a new store
7936
+ * @param {CreateStoreDto} body
7937
+ * @param {*} [options] Override http request option.
7938
+ * @throws {RequiredError}
7939
+ */
7940
+ async createStore(body, options) {
7941
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).createStore(body, options);
7942
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7943
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7944
+ return axios.request(axiosRequestArgs);
7945
+ };
7946
+ },
7947
+ /**
7948
+ *
7949
+ * @summary Delete refill request by id
7950
+ * @param {string} requestId
7951
+ * @param {*} [options] Override http request option.
7952
+ * @throws {RequiredError}
7953
+ */
7954
+ async deleteRefillRequest(requestId, options) {
7955
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteRefillRequest(requestId, options);
7956
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7957
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7958
+ return axios.request(axiosRequestArgs);
7959
+ };
7960
+ },
7961
+ /**
7962
+ *
7963
+ * @summary Delete store by id
7964
+ * @param {string} id
7965
+ * @param {*} [options] Override http request option.
7966
+ * @throws {RequiredError}
7967
+ */
7968
+ async deleteStore(id, options) {
7969
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteStore(id, options);
7970
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7971
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7972
+ return axios.request(axiosRequestArgs);
7973
+ };
7974
+ },
7975
+ /**
7976
+ *
7977
+ * @summary Delete transfere patients request by id
7978
+ * @param {string} requestId
7979
+ * @param {*} [options] Override http request option.
7980
+ * @throws {RequiredError}
7981
+ */
7982
+ async deleteTransferePatientsRequest(requestId, options) {
7983
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteTransferePatientsRequest(requestId, options);
7984
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7985
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7986
+ return axios.request(axiosRequestArgs);
7987
+ };
7988
+ },
7989
+ /**
7990
+ *
7991
+ * @summary Get all stores
7992
+ * @param {*} [options] Override http request option.
7993
+ * @throws {RequiredError}
7994
+ */
7995
+ async getAllStores(options) {
7996
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getAllStores(options);
7997
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
7998
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7999
+ return axios.request(axiosRequestArgs);
8000
+ };
8001
+ },
8002
+ /**
8003
+ *
8004
+ * @summary Get store API keys with masked values
8005
+ * @param {string} storeId
8006
+ * @param {*} [options] Override http request option.
8007
+ * @throws {RequiredError}
8008
+ */
8009
+ async getApiKeys(storeId, options) {
8010
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getApiKeys(storeId, options);
8011
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8012
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8013
+ return axios.request(axiosRequestArgs);
8014
+ };
8015
+ },
8016
+ /**
8017
+ *
8018
+ * @summary Get refill requests by store id
8019
+ * @param {string} storeId
8020
+ * @param {*} [options] Override http request option.
8021
+ * @throws {RequiredError}
8022
+ */
8023
+ async getRefillRequests(storeId, options) {
8024
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getRefillRequests(storeId, options);
8025
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8026
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8027
+ return axios.request(axiosRequestArgs);
8028
+ };
8029
+ },
8030
+ /**
8031
+ *
8032
+ * @summary Get store by id
8033
+ * @param {string} storeId
8034
+ * @param {*} [options] Override http request option.
8035
+ * @throws {RequiredError}
8036
+ */
8037
+ async getStoreById(storeId, options) {
8038
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getStoreById(storeId, options);
8039
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8040
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8041
+ return axios.request(axiosRequestArgs);
8042
+ };
8043
+ },
8044
+ /**
8045
+ *
8046
+ * @summary Get store capabilities (payment/delivery options available)
8047
+ * @param {string} storeId
8048
+ * @param {*} [options] Override http request option.
8049
+ * @throws {RequiredError}
8050
+ */
8051
+ async getStoreCapabilities(storeId, options) {
8052
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getStoreCapabilities(storeId, options);
8053
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8054
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8055
+ return axios.request(axiosRequestArgs);
8056
+ };
8057
+ },
8058
+ /**
8059
+ *
8060
+ * @summary Get transfere patients requests by store id
8061
+ * @param {string} storeId
8062
+ * @param {*} [options] Override http request option.
8063
+ * @throws {RequiredError}
8064
+ */
8065
+ async getTransferePatientsRequests(storeId, options) {
8066
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getTransferePatientsRequests(storeId, options);
8067
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8068
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8069
+ return axios.request(axiosRequestArgs);
8070
+ };
8071
+ },
8072
+ /**
8073
+ *
8074
+ * @summary Revoke/delete a specific API key
8075
+ * @param {string} storeId
8076
+ * @param {string} keyType Type of key to revoke
8077
+ * @param {*} [options] Override http request option.
8078
+ * @throws {RequiredError}
8079
+ */
8080
+ async revokeApiKey(storeId, keyType, options) {
8081
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).revokeApiKey(storeId, keyType, options);
8082
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8083
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8084
+ return axios.request(axiosRequestArgs);
8085
+ };
8086
+ },
8087
+ /**
8088
+ *
8089
+ * @param {*} [options] Override http request option.
8090
+ * @throws {RequiredError}
8091
+ */
8092
+ async sendContactUsEmail(options) {
8093
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendContactUsEmail(options);
8094
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8095
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8096
+ return axios.request(axiosRequestArgs);
8097
+ };
8098
+ },
8099
+ /**
8100
+ *
8101
+ * @param {*} [options] Override http request option.
8102
+ * @throws {RequiredError}
8103
+ */
8104
+ async sendContactUsEmailEzrirx(options) {
8105
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendContactUsEmailEzrirx(options);
8106
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8107
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8108
+ return axios.request(axiosRequestArgs);
8109
+ };
8110
+ },
8111
+ /**
8112
+ *
8113
+ * @param {*} [options] Override http request option.
8114
+ * @throws {RequiredError}
8115
+ */
8116
+ async sendGMBookDemoEmail(options) {
8117
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMBookDemoEmail(options);
8118
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8119
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8120
+ return axios.request(axiosRequestArgs);
8121
+ };
8122
+ },
8123
+ /**
8124
+ *
8125
+ * @param {*} [options] Override http request option.
8126
+ * @throws {RequiredError}
8127
+ */
8128
+ async sendGMContactUsEmail(options) {
8129
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMContactUsEmail(options);
8130
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8131
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8132
+ return axios.request(axiosRequestArgs);
8133
+ };
8134
+ },
8135
+ /**
8136
+ *
8137
+ * @param {*} [options] Override http request option.
8138
+ * @throws {RequiredError}
8139
+ */
8140
+ async sendGMJoinUsEmail(options) {
8141
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMJoinUsEmail(options);
8142
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8143
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8144
+ return axios.request(axiosRequestArgs);
8145
+ };
8146
+ },
8147
+ /**
8148
+ *
8149
+ * @param {*} [options] Override http request option.
8150
+ * @throws {RequiredError}
8151
+ */
8152
+ async sendHolyFamilyEmail(options) {
8153
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendHolyFamilyEmail(options);
8154
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8155
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8156
+ return axios.request(axiosRequestArgs);
8157
+ };
8158
+ },
8159
+ /**
8160
+ *
8161
+ * @param {*} [options] Override http request option.
8162
+ * @throws {RequiredError}
8163
+ */
8164
+ async sendMghBookingForm(options) {
8165
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendMghBookingForm(options);
8166
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8167
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8168
+ return axios.request(axiosRequestArgs);
8169
+ };
8170
+ },
8171
+ /**
8172
+ *
8173
+ * @summary Send new client email
8174
+ * @param {NewClientEmailDto} body
8175
+ * @param {*} [options] Override http request option.
8176
+ * @throws {RequiredError}
8177
+ */
8178
+ async sendNewClientEmail(body, options) {
8179
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendNewClientEmail(body, options);
8180
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8181
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8182
+ return axios.request(axiosRequestArgs);
8183
+ };
8184
+ },
8185
+ /**
8186
+ *
8187
+ * @param {TransferePatientsRequestDto} body
8188
+ * @param {*} [options] Override http request option.
8189
+ * @throws {RequiredError}
8190
+ */
8191
+ async sendNewPatientEmail(body, options) {
8192
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendNewPatientEmail(body, options);
8193
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8194
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8195
+ return axios.request(axiosRequestArgs);
8196
+ };
8197
+ },
8198
+ /**
8199
+ *
8200
+ * @param {RefillRequestDto} body
8201
+ * @param {*} [options] Override http request option.
8202
+ * @throws {RequiredError}
8203
+ */
8204
+ async sendRefillEmail(body, options) {
8205
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendRefillEmail(body, options);
8206
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8207
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8208
+ return axios.request(axiosRequestArgs);
8209
+ };
8210
+ },
8211
+ /**
8212
+ *
8213
+ * @summary Send schedule tour email
8214
+ * @param {ScheduleTourEmailDto} body
8215
+ * @param {*} [options] Override http request option.
8216
+ * @throws {RequiredError}
8217
+ */
8218
+ async sendScheduleTourEmail(body, options) {
8219
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendScheduleTourEmail(body, options);
8220
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8221
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8222
+ return axios.request(axiosRequestArgs);
8223
+ };
8224
+ },
8225
+ /**
8226
+ *
8227
+ * @summary Update store API keys (Stripe/Shippo)
8228
+ * @param {UpdateApiKeysDto} body
8229
+ * @param {string} storeId
8230
+ * @param {*} [options] Override http request option.
8231
+ * @throws {RequiredError}
8232
+ */
8233
+ async updateApiKeys(body, storeId, options) {
8234
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateApiKeys(body, storeId, options);
8235
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8236
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8237
+ return axios.request(axiosRequestArgs);
8238
+ };
8239
+ },
8240
+ /**
8241
+ *
8242
+ * @summary Update refill request by id
8243
+ * @param {UpdateRefillRequestDto} body
8244
+ * @param {string} requestId
8245
+ * @param {*} [options] Override http request option.
8246
+ * @throws {RequiredError}
8247
+ */
8248
+ async updateRefillRequest(body, requestId, options) {
8249
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateRefillRequest(body, requestId, options);
8250
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8251
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8252
+ return axios.request(axiosRequestArgs);
8253
+ };
8254
+ },
8255
+ /**
8256
+ *
8257
+ * @summary Get store by id
8258
+ * @param {UpdateStoreDto} body
8259
+ * @param {string} id
8260
+ * @param {*} [options] Override http request option.
8261
+ * @throws {RequiredError}
8262
+ */
8263
+ async updateStore(body, id, options) {
8264
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateStore(body, id, options);
8265
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8266
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8267
+ return axios.request(axiosRequestArgs);
8268
+ };
8269
+ },
8270
+ /**
8271
+ *
8272
+ * @summary Update transfere patients request by id
8273
+ * @param {UpdateTransferePatientsRequestDto} body
8274
+ * @param {string} requestId
8275
+ * @param {*} [options] Override http request option.
8276
+ * @throws {RequiredError}
8277
+ */
8278
+ async updateTransferePatientsRequest(body, requestId, options) {
8279
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateTransferePatientsRequest(body, requestId, options);
8280
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8281
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8282
+ return axios.request(axiosRequestArgs);
8283
+ };
8284
+ }
8285
+ };
8286
+ };
8287
+ var StoresApi = class extends BaseAPI {
8288
+ /**
8289
+ *
8290
+ * @summary Create a new store
8291
+ * @param {CreateStoreDto} body
8292
+ * @param {*} [options] Override http request option.
8293
+ * @throws {RequiredError}
8294
+ * @memberof StoresApi
8295
+ */
8296
+ async createStore(body, options) {
8297
+ return StoresApiFp(this.configuration).createStore(body, options).then((request) => request(this.axios, this.basePath));
8298
+ }
8299
+ /**
8300
+ *
8301
+ * @summary Delete refill request by id
8302
+ * @param {string} requestId
8303
+ * @param {*} [options] Override http request option.
8304
+ * @throws {RequiredError}
8305
+ * @memberof StoresApi
8306
+ */
8307
+ async deleteRefillRequest(requestId, options) {
8308
+ return StoresApiFp(this.configuration).deleteRefillRequest(requestId, options).then((request) => request(this.axios, this.basePath));
8309
+ }
8310
+ /**
8311
+ *
8312
+ * @summary Delete store by id
8313
+ * @param {string} id
8314
+ * @param {*} [options] Override http request option.
8315
+ * @throws {RequiredError}
8316
+ * @memberof StoresApi
8317
+ */
8318
+ async deleteStore(id, options) {
8319
+ return StoresApiFp(this.configuration).deleteStore(id, options).then((request) => request(this.axios, this.basePath));
8320
+ }
8321
+ /**
8322
+ *
8323
+ * @summary Delete transfere patients request by id
8324
+ * @param {string} requestId
8325
+ * @param {*} [options] Override http request option.
8326
+ * @throws {RequiredError}
8327
+ * @memberof StoresApi
8328
+ */
8329
+ async deleteTransferePatientsRequest(requestId, options) {
8330
+ return StoresApiFp(this.configuration).deleteTransferePatientsRequest(requestId, options).then((request) => request(this.axios, this.basePath));
8331
+ }
8332
+ /**
8333
+ *
8334
+ * @summary Get all stores
8335
+ * @param {*} [options] Override http request option.
8336
+ * @throws {RequiredError}
8337
+ * @memberof StoresApi
8338
+ */
8339
+ async getAllStores(options) {
8340
+ return StoresApiFp(this.configuration).getAllStores(options).then((request) => request(this.axios, this.basePath));
8341
+ }
8342
+ /**
8343
+ *
8344
+ * @summary Get store API keys with masked values
8345
+ * @param {string} storeId
8346
+ * @param {*} [options] Override http request option.
8347
+ * @throws {RequiredError}
8348
+ * @memberof StoresApi
8349
+ */
8350
+ async getApiKeys(storeId, options) {
8351
+ return StoresApiFp(this.configuration).getApiKeys(storeId, options).then((request) => request(this.axios, this.basePath));
8352
+ }
8353
+ /**
8354
+ *
8355
+ * @summary Get refill requests by store id
8356
+ * @param {string} storeId
8357
+ * @param {*} [options] Override http request option.
8358
+ * @throws {RequiredError}
8359
+ * @memberof StoresApi
8360
+ */
8361
+ async getRefillRequests(storeId, options) {
8362
+ return StoresApiFp(this.configuration).getRefillRequests(storeId, options).then((request) => request(this.axios, this.basePath));
8363
+ }
8364
+ /**
8365
+ *
8366
+ * @summary Get store by id
8367
+ * @param {string} storeId
8368
+ * @param {*} [options] Override http request option.
8369
+ * @throws {RequiredError}
8370
+ * @memberof StoresApi
8371
+ */
8372
+ async getStoreById(storeId, options) {
8373
+ return StoresApiFp(this.configuration).getStoreById(storeId, options).then((request) => request(this.axios, this.basePath));
8374
+ }
8375
+ /**
8376
+ *
8377
+ * @summary Get store capabilities (payment/delivery options available)
8378
+ * @param {string} storeId
8379
+ * @param {*} [options] Override http request option.
8380
+ * @throws {RequiredError}
8381
+ * @memberof StoresApi
8382
+ */
8383
+ async getStoreCapabilities(storeId, options) {
8384
+ return StoresApiFp(this.configuration).getStoreCapabilities(storeId, options).then((request) => request(this.axios, this.basePath));
8385
+ }
8386
+ /**
8387
+ *
8388
+ * @summary Get transfere patients requests by store id
8389
+ * @param {string} storeId
8390
+ * @param {*} [options] Override http request option.
8391
+ * @throws {RequiredError}
8392
+ * @memberof StoresApi
8393
+ */
8394
+ async getTransferePatientsRequests(storeId, options) {
8395
+ return StoresApiFp(this.configuration).getTransferePatientsRequests(storeId, options).then((request) => request(this.axios, this.basePath));
8396
+ }
8397
+ /**
8398
+ *
8399
+ * @summary Revoke/delete a specific API key
8400
+ * @param {string} storeId
8401
+ * @param {string} keyType Type of key to revoke
8402
+ * @param {*} [options] Override http request option.
8403
+ * @throws {RequiredError}
8404
+ * @memberof StoresApi
8405
+ */
8406
+ async revokeApiKey(storeId, keyType, options) {
8407
+ return StoresApiFp(this.configuration).revokeApiKey(storeId, keyType, options).then((request) => request(this.axios, this.basePath));
8408
+ }
8409
+ /**
8410
+ *
8411
+ * @param {*} [options] Override http request option.
8412
+ * @throws {RequiredError}
8413
+ * @memberof StoresApi
8414
+ */
8415
+ async sendContactUsEmail(options) {
8416
+ return StoresApiFp(this.configuration).sendContactUsEmail(options).then((request) => request(this.axios, this.basePath));
8417
+ }
8418
+ /**
8419
+ *
8420
+ * @param {*} [options] Override http request option.
8421
+ * @throws {RequiredError}
8422
+ * @memberof StoresApi
8423
+ */
8424
+ async sendContactUsEmailEzrirx(options) {
8425
+ return StoresApiFp(this.configuration).sendContactUsEmailEzrirx(options).then((request) => request(this.axios, this.basePath));
8426
+ }
8427
+ /**
8428
+ *
8429
+ * @param {*} [options] Override http request option.
8430
+ * @throws {RequiredError}
8431
+ * @memberof StoresApi
8432
+ */
8433
+ async sendGMBookDemoEmail(options) {
8434
+ return StoresApiFp(this.configuration).sendGMBookDemoEmail(options).then((request) => request(this.axios, this.basePath));
8435
+ }
8436
+ /**
8437
+ *
8438
+ * @param {*} [options] Override http request option.
8439
+ * @throws {RequiredError}
8440
+ * @memberof StoresApi
8441
+ */
8442
+ async sendGMContactUsEmail(options) {
8443
+ return StoresApiFp(this.configuration).sendGMContactUsEmail(options).then((request) => request(this.axios, this.basePath));
8444
+ }
8445
+ /**
8446
+ *
8447
+ * @param {*} [options] Override http request option.
8448
+ * @throws {RequiredError}
8449
+ * @memberof StoresApi
8450
+ */
8451
+ async sendGMJoinUsEmail(options) {
8452
+ return StoresApiFp(this.configuration).sendGMJoinUsEmail(options).then((request) => request(this.axios, this.basePath));
8453
+ }
8454
+ /**
8455
+ *
8456
+ * @param {*} [options] Override http request option.
8457
+ * @throws {RequiredError}
8458
+ * @memberof StoresApi
8459
+ */
8460
+ async sendHolyFamilyEmail(options) {
8461
+ return StoresApiFp(this.configuration).sendHolyFamilyEmail(options).then((request) => request(this.axios, this.basePath));
8462
+ }
8463
+ /**
8464
+ *
8465
+ * @param {*} [options] Override http request option.
8466
+ * @throws {RequiredError}
8467
+ * @memberof StoresApi
8468
+ */
8469
+ async sendMghBookingForm(options) {
8470
+ return StoresApiFp(this.configuration).sendMghBookingForm(options).then((request) => request(this.axios, this.basePath));
8471
+ }
8472
+ /**
8473
+ *
8474
+ * @summary Send new client email
8475
+ * @param {NewClientEmailDto} body
8476
+ * @param {*} [options] Override http request option.
8477
+ * @throws {RequiredError}
8478
+ * @memberof StoresApi
8479
+ */
8480
+ async sendNewClientEmail(body, options) {
8481
+ return StoresApiFp(this.configuration).sendNewClientEmail(body, options).then((request) => request(this.axios, this.basePath));
8482
+ }
8483
+ /**
8484
+ *
8485
+ * @param {TransferePatientsRequestDto} body
8486
+ * @param {*} [options] Override http request option.
8487
+ * @throws {RequiredError}
8488
+ * @memberof StoresApi
8489
+ */
8490
+ async sendNewPatientEmail(body, options) {
8491
+ return StoresApiFp(this.configuration).sendNewPatientEmail(body, options).then((request) => request(this.axios, this.basePath));
8492
+ }
8493
+ /**
8494
+ *
8495
+ * @param {RefillRequestDto} body
8496
+ * @param {*} [options] Override http request option.
8497
+ * @throws {RequiredError}
8498
+ * @memberof StoresApi
8499
+ */
8500
+ async sendRefillEmail(body, options) {
8501
+ return StoresApiFp(this.configuration).sendRefillEmail(body, options).then((request) => request(this.axios, this.basePath));
8502
+ }
8503
+ /**
8504
+ *
8505
+ * @summary Send schedule tour email
8506
+ * @param {ScheduleTourEmailDto} body
8507
+ * @param {*} [options] Override http request option.
8508
+ * @throws {RequiredError}
8509
+ * @memberof StoresApi
8510
+ */
8511
+ async sendScheduleTourEmail(body, options) {
8512
+ return StoresApiFp(this.configuration).sendScheduleTourEmail(body, options).then((request) => request(this.axios, this.basePath));
8513
+ }
8514
+ /**
8515
+ *
8516
+ * @summary Update store API keys (Stripe/Shippo)
8517
+ * @param {UpdateApiKeysDto} body
8518
+ * @param {string} storeId
8519
+ * @param {*} [options] Override http request option.
8520
+ * @throws {RequiredError}
8521
+ * @memberof StoresApi
8522
+ */
8523
+ async updateApiKeys(body, storeId, options) {
8524
+ return StoresApiFp(this.configuration).updateApiKeys(body, storeId, options).then((request) => request(this.axios, this.basePath));
8525
+ }
8526
+ /**
8527
+ *
8528
+ * @summary Update refill request by id
8529
+ * @param {UpdateRefillRequestDto} body
8530
+ * @param {string} requestId
8531
+ * @param {*} [options] Override http request option.
8532
+ * @throws {RequiredError}
8533
+ * @memberof StoresApi
8534
+ */
8535
+ async updateRefillRequest(body, requestId, options) {
8536
+ return StoresApiFp(this.configuration).updateRefillRequest(body, requestId, options).then((request) => request(this.axios, this.basePath));
8537
+ }
8538
+ /**
8539
+ *
8540
+ * @summary Get store by id
8541
+ * @param {UpdateStoreDto} body
8542
+ * @param {string} id
8543
+ * @param {*} [options] Override http request option.
8544
+ * @throws {RequiredError}
8545
+ * @memberof StoresApi
8546
+ */
8547
+ async updateStore(body, id, options) {
8548
+ return StoresApiFp(this.configuration).updateStore(body, id, options).then((request) => request(this.axios, this.basePath));
8549
+ }
8550
+ /**
8551
+ *
8552
+ * @summary Update transfere patients request by id
8553
+ * @param {UpdateTransferePatientsRequestDto} body
8554
+ * @param {string} requestId
8555
+ * @param {*} [options] Override http request option.
8556
+ * @throws {RequiredError}
8557
+ * @memberof StoresApi
8558
+ */
8559
+ async updateTransferePatientsRequest(body, requestId, options) {
8560
+ return StoresApiFp(this.configuration).updateTransferePatientsRequest(body, requestId, options).then((request) => request(this.axios, this.basePath));
8561
+ }
8562
+ };
8563
+ var WishlistApiAxiosParamCreator = function(configuration) {
8564
+ return {
8565
+ /**
8566
+ *
8567
+ * @summary Add product to wishlist
8568
+ * @param {string} productId
8569
+ * @param {*} [options] Override http request option.
8570
+ * @throws {RequiredError}
8571
+ */
8572
+ addToWishlist: async (productId, options = {}) => {
8573
+ if (productId === null || productId === void 0) {
8574
+ throw new RequiredError("productId", "Required parameter productId was null or undefined when calling addToWishlist.");
8575
+ }
8576
+ const localVarPath = `/wishlist/add/{productId}`.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
8577
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
8578
+ let baseOptions;
8579
+ if (configuration) {
8580
+ baseOptions = configuration.baseOptions;
8581
+ }
8582
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
8583
+ const localVarHeaderParameter = {};
8584
+ const localVarQueryParameter = {};
8585
+ if (configuration && configuration.accessToken) {
8586
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
8587
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
8588
+ }
8589
+ const query = new URLSearchParams(localVarUrlObj.search);
8590
+ for (const key in localVarQueryParameter) {
8591
+ query.set(key, localVarQueryParameter[key]);
8592
+ }
8593
+ for (const key in options.params) {
8594
+ query.set(key, options.params[key]);
8595
+ }
8596
+ localVarUrlObj.search = new URLSearchParams(query).toString();
8597
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8598
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
8599
+ return {
8600
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
8601
+ options: localVarRequestOptions
8602
+ };
8603
+ },
8604
+ /**
8605
+ *
8606
+ * @summary Clear wishlist
8607
+ * @param {*} [options] Override http request option.
8608
+ * @throws {RequiredError}
8609
+ */
8610
+ clearWishlist: async (options = {}) => {
8611
+ const localVarPath = `/wishlist/clear`;
8612
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
8613
+ let baseOptions;
8614
+ if (configuration) {
8615
+ baseOptions = configuration.baseOptions;
8616
+ }
8617
+ const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
8618
+ const localVarHeaderParameter = {};
8619
+ const localVarQueryParameter = {};
8620
+ if (configuration && configuration.accessToken) {
8621
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
8622
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
8623
+ }
8624
+ const query = new URLSearchParams(localVarUrlObj.search);
8625
+ for (const key in localVarQueryParameter) {
8626
+ query.set(key, localVarQueryParameter[key]);
8627
+ }
8628
+ for (const key in options.params) {
8629
+ query.set(key, options.params[key]);
8630
+ }
8631
+ localVarUrlObj.search = new URLSearchParams(query).toString();
8632
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8633
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
8634
+ return {
8635
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
8636
+ options: localVarRequestOptions
8637
+ };
8638
+ },
8639
+ /**
8640
+ *
8641
+ * @summary Get user wishlist
8642
+ * @param {*} [options] Override http request option.
8643
+ * @throws {RequiredError}
8644
+ */
8645
+ getWishlist: async (options = {}) => {
8646
+ const localVarPath = `/wishlist`;
8647
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
8648
+ let baseOptions;
8649
+ if (configuration) {
8650
+ baseOptions = configuration.baseOptions;
8651
+ }
8652
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
8653
+ const localVarHeaderParameter = {};
8654
+ const localVarQueryParameter = {};
8655
+ if (configuration && configuration.accessToken) {
8656
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
8657
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
8658
+ }
8659
+ const query = new URLSearchParams(localVarUrlObj.search);
8660
+ for (const key in localVarQueryParameter) {
8661
+ query.set(key, localVarQueryParameter[key]);
8662
+ }
8663
+ for (const key in options.params) {
8664
+ query.set(key, options.params[key]);
8665
+ }
8666
+ localVarUrlObj.search = new URLSearchParams(query).toString();
8667
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8668
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
8669
+ return {
8670
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
8671
+ options: localVarRequestOptions
8672
+ };
8673
+ },
8674
+ /**
8675
+ *
8676
+ * @summary Get wishlist item count
8677
+ * @param {*} [options] Override http request option.
8678
+ * @throws {RequiredError}
8679
+ */
8680
+ getWishlistItemCount: async (options = {}) => {
8681
+ const localVarPath = `/wishlist/count`;
8682
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
8683
+ let baseOptions;
8684
+ if (configuration) {
8685
+ baseOptions = configuration.baseOptions;
8686
+ }
8687
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
8688
+ const localVarHeaderParameter = {};
8689
+ const localVarQueryParameter = {};
8690
+ if (configuration && configuration.accessToken) {
8691
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
8692
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
8693
+ }
8694
+ const query = new URLSearchParams(localVarUrlObj.search);
8695
+ for (const key in localVarQueryParameter) {
8696
+ query.set(key, localVarQueryParameter[key]);
8697
+ }
8698
+ for (const key in options.params) {
8699
+ query.set(key, options.params[key]);
8700
+ }
8701
+ localVarUrlObj.search = new URLSearchParams(query).toString();
8702
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8703
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
8704
+ return {
8705
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
8706
+ options: localVarRequestOptions
8707
+ };
8708
+ },
8709
+ /**
8710
+ *
8711
+ * @summary Remove product from wishlist
8712
+ * @param {string} productId
8713
+ * @param {*} [options] Override http request option.
8714
+ * @throws {RequiredError}
8715
+ */
8716
+ removeFromWishlist: async (productId, options = {}) => {
8717
+ if (productId === null || productId === void 0) {
8718
+ throw new RequiredError("productId", "Required parameter productId was null or undefined when calling removeFromWishlist.");
8719
+ }
8720
+ const localVarPath = `/wishlist/remove/{productId}`.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
8721
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
8722
+ let baseOptions;
8723
+ if (configuration) {
8724
+ baseOptions = configuration.baseOptions;
8725
+ }
8726
+ const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
8727
+ const localVarHeaderParameter = {};
8728
+ const localVarQueryParameter = {};
8729
+ if (configuration && configuration.accessToken) {
8730
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
8731
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
8732
+ }
8733
+ const query = new URLSearchParams(localVarUrlObj.search);
8734
+ for (const key in localVarQueryParameter) {
8735
+ query.set(key, localVarQueryParameter[key]);
8736
+ }
8737
+ for (const key in options.params) {
8738
+ query.set(key, options.params[key]);
8739
+ }
8740
+ localVarUrlObj.search = new URLSearchParams(query).toString();
8741
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8742
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
8743
+ return {
8744
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
8745
+ options: localVarRequestOptions
8746
+ };
8747
+ }
8748
+ };
8749
+ };
8750
+ var WishlistApiFp = function(configuration) {
8751
+ return {
8752
+ /**
8753
+ *
8754
+ * @summary Add product to wishlist
8755
+ * @param {string} productId
8756
+ * @param {*} [options] Override http request option.
8757
+ * @throws {RequiredError}
8758
+ */
8759
+ async addToWishlist(productId, options) {
8760
+ const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).addToWishlist(productId, options);
8761
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
8762
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8763
+ return axios.request(axiosRequestArgs);
8764
+ };
6881
8765
  },
6882
8766
  /**
6883
8767
  *
@@ -6887,7 +8771,7 @@ var WishlistApiFp = function(configuration) {
6887
8771
  */
6888
8772
  async clearWishlist(options) {
6889
8773
  const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).clearWishlist(options);
6890
- return (axios = globalAxios18, basePath = BASE_PATH) => {
8774
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
6891
8775
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6892
8776
  return axios.request(axiosRequestArgs);
6893
8777
  };
@@ -6900,7 +8784,7 @@ var WishlistApiFp = function(configuration) {
6900
8784
  */
6901
8785
  async getWishlist(options) {
6902
8786
  const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).getWishlist(options);
6903
- return (axios = globalAxios18, basePath = BASE_PATH) => {
8787
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
6904
8788
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6905
8789
  return axios.request(axiosRequestArgs);
6906
8790
  };
@@ -6913,7 +8797,7 @@ var WishlistApiFp = function(configuration) {
6913
8797
  */
6914
8798
  async getWishlistItemCount(options) {
6915
8799
  const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).getWishlistItemCount(options);
6916
- return (axios = globalAxios18, basePath = BASE_PATH) => {
8800
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
6917
8801
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6918
8802
  return axios.request(axiosRequestArgs);
6919
8803
  };
@@ -6927,7 +8811,7 @@ var WishlistApiFp = function(configuration) {
6927
8811
  */
6928
8812
  async removeFromWishlist(productId, options) {
6929
8813
  const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).removeFromWishlist(productId, options);
6930
- return (axios = globalAxios18, basePath = BASE_PATH) => {
8814
+ return (axios = globalAxios21, basePath = BASE_PATH) => {
6931
8815
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6932
8816
  return axios.request(axiosRequestArgs);
6933
8817
  };
@@ -6992,7 +8876,175 @@ var WishlistApi = class extends BaseAPI {
6992
8876
  // src/lib/Apis/index.ts
6993
8877
  init_configuration();
6994
8878
 
8879
+ // src/lib/Apis/models/address.ts
8880
+ var AddressAddressTypeEnum = /* @__PURE__ */ ((AddressAddressTypeEnum2) => {
8881
+ AddressAddressTypeEnum2["Billing"] = "Billing";
8882
+ AddressAddressTypeEnum2["Shipping"] = "Shipping";
8883
+ AddressAddressTypeEnum2["Both"] = "Both";
8884
+ return AddressAddressTypeEnum2;
8885
+ })(AddressAddressTypeEnum || {});
8886
+
8887
+ // src/lib/Apis/models/address-created-request.ts
8888
+ var AddressCreatedRequestAddressTypeEnum = /* @__PURE__ */ ((AddressCreatedRequestAddressTypeEnum2) => {
8889
+ AddressCreatedRequestAddressTypeEnum2["Billing"] = "Billing";
8890
+ AddressCreatedRequestAddressTypeEnum2["Shipping"] = "Shipping";
8891
+ AddressCreatedRequestAddressTypeEnum2["Both"] = "Both";
8892
+ return AddressCreatedRequestAddressTypeEnum2;
8893
+ })(AddressCreatedRequestAddressTypeEnum || {});
8894
+
8895
+ // src/lib/Apis/models/api-key-info-dto.ts
8896
+ var ApiKeyInfoDtoKeyTypeEnum = /* @__PURE__ */ ((ApiKeyInfoDtoKeyTypeEnum2) => {
8897
+ ApiKeyInfoDtoKeyTypeEnum2["Stripe"] = "stripe";
8898
+ ApiKeyInfoDtoKeyTypeEnum2["Shippo"] = "shippo";
8899
+ return ApiKeyInfoDtoKeyTypeEnum2;
8900
+ })(ApiKeyInfoDtoKeyTypeEnum || {});
8901
+
8902
+ // src/lib/Apis/models/campaign-draft-dto.ts
8903
+ var CampaignDraftDtoStatusEnum = /* @__PURE__ */ ((CampaignDraftDtoStatusEnum2) => {
8904
+ CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_MINUS_3"] = -3] = "NUMBER_MINUS_3";
8905
+ CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_MINUS_2"] = -2] = "NUMBER_MINUS_2";
8906
+ CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_MINUS_1"] = -1] = "NUMBER_MINUS_1";
8907
+ CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_0"] = 0] = "NUMBER_0";
8908
+ CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_1"] = 1] = "NUMBER_1";
8909
+ CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_2"] = 2] = "NUMBER_2";
8910
+ CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_3"] = 3] = "NUMBER_3";
8911
+ CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_4"] = 4] = "NUMBER_4";
8912
+ return CampaignDraftDtoStatusEnum2;
8913
+ })(CampaignDraftDtoStatusEnum || {});
8914
+
8915
+ // src/lib/Apis/models/campaign-draft-schedule-dto.ts
8916
+ var CampaignDraftScheduleDtoStatusEnum = /* @__PURE__ */ ((CampaignDraftScheduleDtoStatusEnum2) => {
8917
+ CampaignDraftScheduleDtoStatusEnum2["AXCancelled"] = "AXCancelled";
8918
+ CampaignDraftScheduleDtoStatusEnum2["Deleted"] = "Deleted";
8919
+ CampaignDraftScheduleDtoStatusEnum2["Archived"] = "Archived";
8920
+ CampaignDraftScheduleDtoStatusEnum2["Draft"] = "Draft";
8921
+ CampaignDraftScheduleDtoStatusEnum2["Programmed"] = "Programmed";
8922
+ CampaignDraftScheduleDtoStatusEnum2["Sent"] = "Sent";
8923
+ CampaignDraftScheduleDtoStatusEnum2["AXTested"] = "AXTested";
8924
+ CampaignDraftScheduleDtoStatusEnum2["AXSelected"] = "AXSelected";
8925
+ return CampaignDraftScheduleDtoStatusEnum2;
8926
+ })(CampaignDraftScheduleDtoStatusEnum || {});
8927
+
8928
+ // src/lib/Apis/models/campaign-draft-sending-dto.ts
8929
+ var CampaignDraftSendingDtoStatusEnum = /* @__PURE__ */ ((CampaignDraftSendingDtoStatusEnum2) => {
8930
+ CampaignDraftSendingDtoStatusEnum2["AXCancelled"] = "AXCancelled";
8931
+ CampaignDraftSendingDtoStatusEnum2["Deleted"] = "Deleted";
8932
+ CampaignDraftSendingDtoStatusEnum2["Archived"] = "Archived";
8933
+ CampaignDraftSendingDtoStatusEnum2["Draft"] = "Draft";
8934
+ CampaignDraftSendingDtoStatusEnum2["Programmed"] = "Programmed";
8935
+ CampaignDraftSendingDtoStatusEnum2["Sent"] = "Sent";
8936
+ CampaignDraftSendingDtoStatusEnum2["AXTested"] = "AXTested";
8937
+ CampaignDraftSendingDtoStatusEnum2["AXSelected"] = "AXSelected";
8938
+ return CampaignDraftSendingDtoStatusEnum2;
8939
+ })(CampaignDraftSendingDtoStatusEnum || {});
8940
+
8941
+ // src/lib/Apis/models/create-address-dto.ts
8942
+ var CreateAddressDtoAddressTypeEnum = /* @__PURE__ */ ((CreateAddressDtoAddressTypeEnum2) => {
8943
+ CreateAddressDtoAddressTypeEnum2["Billing"] = "Billing";
8944
+ CreateAddressDtoAddressTypeEnum2["Shipping"] = "Shipping";
8945
+ CreateAddressDtoAddressTypeEnum2["Both"] = "Both";
8946
+ return CreateAddressDtoAddressTypeEnum2;
8947
+ })(CreateAddressDtoAddressTypeEnum || {});
8948
+
8949
+ // src/lib/Apis/models/create-discount-dto.ts
8950
+ var CreateDiscountDtoDiscountTypeEnum = /* @__PURE__ */ ((CreateDiscountDtoDiscountTypeEnum2) => {
8951
+ CreateDiscountDtoDiscountTypeEnum2["PRODUCT"] = "PRODUCT";
8952
+ CreateDiscountDtoDiscountTypeEnum2["CATEGORY"] = "CATEGORY";
8953
+ CreateDiscountDtoDiscountTypeEnum2["VARIANT"] = "VARIANT";
8954
+ return CreateDiscountDtoDiscountTypeEnum2;
8955
+ })(CreateDiscountDtoDiscountTypeEnum || {});
8956
+ var CreateDiscountDtoDecreasePriceByEnum = /* @__PURE__ */ ((CreateDiscountDtoDecreasePriceByEnum2) => {
8957
+ CreateDiscountDtoDecreasePriceByEnum2["PERCENTAGE"] = "PERCENTAGE";
8958
+ CreateDiscountDtoDecreasePriceByEnum2["AMOUNT"] = "AMOUNT";
8959
+ return CreateDiscountDtoDecreasePriceByEnum2;
8960
+ })(CreateDiscountDtoDecreasePriceByEnum || {});
8961
+ var CreateDiscountDtoStateEnum = /* @__PURE__ */ ((CreateDiscountDtoStateEnum2) => {
8962
+ CreateDiscountDtoStateEnum2["ACTIVE"] = "ACTIVE";
8963
+ CreateDiscountDtoStateEnum2["INACTIVE"] = "INACTIVE";
8964
+ CreateDiscountDtoStateEnum2["EXPIRED"] = "EXPIRED";
8965
+ CreateDiscountDtoStateEnum2["SCHEDULED"] = "SCHEDULED";
8966
+ return CreateDiscountDtoStateEnum2;
8967
+ })(CreateDiscountDtoStateEnum || {});
8968
+ var CreateDiscountDtoMinPurchaseRequiredEnum = /* @__PURE__ */ ((CreateDiscountDtoMinPurchaseRequiredEnum2) => {
8969
+ CreateDiscountDtoMinPurchaseRequiredEnum2["NOREQUIREMENT"] = "NO_REQUIREMENT";
8970
+ CreateDiscountDtoMinPurchaseRequiredEnum2["MINIMUMAMOUNT"] = "MINIMUM_AMOUNT";
8971
+ CreateDiscountDtoMinPurchaseRequiredEnum2["MINIMUMQUANTITY"] = "MINIMUM_QUANTITY";
8972
+ return CreateDiscountDtoMinPurchaseRequiredEnum2;
8973
+ })(CreateDiscountDtoMinPurchaseRequiredEnum || {});
8974
+ var CreateDiscountDtoCustomerEligibilityEnum = /* @__PURE__ */ ((CreateDiscountDtoCustomerEligibilityEnum2) => {
8975
+ CreateDiscountDtoCustomerEligibilityEnum2["ALL"] = "ALL";
8976
+ CreateDiscountDtoCustomerEligibilityEnum2["SPECIFICUSERS"] = "SPECIFIC_USERS";
8977
+ CreateDiscountDtoCustomerEligibilityEnum2["SPECIFICGROUPS"] = "SPECIFIC_GROUPS";
8978
+ return CreateDiscountDtoCustomerEligibilityEnum2;
8979
+ })(CreateDiscountDtoCustomerEligibilityEnum || {});
8980
+
8981
+ // src/lib/Apis/models/create-store-address-dto.ts
8982
+ var CreateStoreAddressDtoAddressTypeEnum = /* @__PURE__ */ ((CreateStoreAddressDtoAddressTypeEnum2) => {
8983
+ CreateStoreAddressDtoAddressTypeEnum2["Billing"] = "Billing";
8984
+ CreateStoreAddressDtoAddressTypeEnum2["Shipping"] = "Shipping";
8985
+ CreateStoreAddressDtoAddressTypeEnum2["Both"] = "Both";
8986
+ return CreateStoreAddressDtoAddressTypeEnum2;
8987
+ })(CreateStoreAddressDtoAddressTypeEnum || {});
8988
+
8989
+ // src/lib/Apis/models/create-user-dto.ts
8990
+ var CreateUserDtoRoleEnum = /* @__PURE__ */ ((CreateUserDtoRoleEnum2) => {
8991
+ CreateUserDtoRoleEnum2["SuperAdmin"] = "SuperAdmin";
8992
+ CreateUserDtoRoleEnum2["Admin"] = "Admin";
8993
+ CreateUserDtoRoleEnum2["User"] = "User";
8994
+ return CreateUserDtoRoleEnum2;
8995
+ })(CreateUserDtoRoleEnum || {});
8996
+ var CreateUserDtoCustomerTypeEnum = /* @__PURE__ */ ((CreateUserDtoCustomerTypeEnum2) => {
8997
+ CreateUserDtoCustomerTypeEnum2["B2B"] = "B2B";
8998
+ CreateUserDtoCustomerTypeEnum2["Regular"] = "Regular";
8999
+ return CreateUserDtoCustomerTypeEnum2;
9000
+ })(CreateUserDtoCustomerTypeEnum || {});
9001
+
9002
+ // src/lib/Apis/models/discount.ts
9003
+ var DiscountDiscountTypeEnum = /* @__PURE__ */ ((DiscountDiscountTypeEnum2) => {
9004
+ DiscountDiscountTypeEnum2["PRODUCT"] = "PRODUCT";
9005
+ DiscountDiscountTypeEnum2["CATEGORY"] = "CATEGORY";
9006
+ DiscountDiscountTypeEnum2["VARIANT"] = "VARIANT";
9007
+ return DiscountDiscountTypeEnum2;
9008
+ })(DiscountDiscountTypeEnum || {});
9009
+ var DiscountDecreasePriceByEnum = /* @__PURE__ */ ((DiscountDecreasePriceByEnum2) => {
9010
+ DiscountDecreasePriceByEnum2["PERCENTAGE"] = "PERCENTAGE";
9011
+ DiscountDecreasePriceByEnum2["AMOUNT"] = "AMOUNT";
9012
+ return DiscountDecreasePriceByEnum2;
9013
+ })(DiscountDecreasePriceByEnum || {});
9014
+ var DiscountStateEnum = /* @__PURE__ */ ((DiscountStateEnum2) => {
9015
+ DiscountStateEnum2["ACTIVE"] = "ACTIVE";
9016
+ DiscountStateEnum2["INACTIVE"] = "INACTIVE";
9017
+ DiscountStateEnum2["EXPIRED"] = "EXPIRED";
9018
+ DiscountStateEnum2["SCHEDULED"] = "SCHEDULED";
9019
+ return DiscountStateEnum2;
9020
+ })(DiscountStateEnum || {});
9021
+ var DiscountMinPurchaseRequiredEnum = /* @__PURE__ */ ((DiscountMinPurchaseRequiredEnum2) => {
9022
+ DiscountMinPurchaseRequiredEnum2["NOREQUIREMENT"] = "NO_REQUIREMENT";
9023
+ DiscountMinPurchaseRequiredEnum2["MINIMUMAMOUNT"] = "MINIMUM_AMOUNT";
9024
+ DiscountMinPurchaseRequiredEnum2["MINIMUMQUANTITY"] = "MINIMUM_QUANTITY";
9025
+ return DiscountMinPurchaseRequiredEnum2;
9026
+ })(DiscountMinPurchaseRequiredEnum || {});
9027
+ var DiscountCustomerEligibilityEnum = /* @__PURE__ */ ((DiscountCustomerEligibilityEnum2) => {
9028
+ DiscountCustomerEligibilityEnum2["ALL"] = "ALL";
9029
+ DiscountCustomerEligibilityEnum2["SPECIFICUSERS"] = "SPECIFIC_USERS";
9030
+ DiscountCustomerEligibilityEnum2["SPECIFICGROUPS"] = "SPECIFIC_GROUPS";
9031
+ return DiscountCustomerEligibilityEnum2;
9032
+ })(DiscountCustomerEligibilityEnum || {});
9033
+
9034
+ // src/lib/Apis/models/manual-discount.ts
9035
+ var ManualDiscountDecreasePriceByEnum = /* @__PURE__ */ ((ManualDiscountDecreasePriceByEnum2) => {
9036
+ ManualDiscountDecreasePriceByEnum2["PERCENTAGE"] = "PERCENTAGE";
9037
+ ManualDiscountDecreasePriceByEnum2["AMOUNT"] = "AMOUNT";
9038
+ return ManualDiscountDecreasePriceByEnum2;
9039
+ })(ManualDiscountDecreasePriceByEnum || {});
9040
+
6995
9041
  // src/lib/Apis/models/manual-order-dto.ts
9042
+ var ManualOrderDTOPaymentMethodEnum = /* @__PURE__ */ ((ManualOrderDTOPaymentMethodEnum2) => {
9043
+ ManualOrderDTOPaymentMethodEnum2["Cash"] = "Cash";
9044
+ ManualOrderDTOPaymentMethodEnum2["Credit"] = "Credit";
9045
+ ManualOrderDTOPaymentMethodEnum2["Card"] = "Card";
9046
+ return ManualOrderDTOPaymentMethodEnum2;
9047
+ })(ManualOrderDTOPaymentMethodEnum || {});
6996
9048
  var ManualOrderDTOOrderStatusEnum = /* @__PURE__ */ ((ManualOrderDTOOrderStatusEnum2) => {
6997
9049
  ManualOrderDTOOrderStatusEnum2["Pending"] = "Pending";
6998
9050
  ManualOrderDTOOrderStatusEnum2["PickingPacking"] = "Picking & Packing";
@@ -7007,6 +9059,30 @@ var ManualOrderDTOOrderStatusEnum = /* @__PURE__ */ ((ManualOrderDTOOrderStatusE
7007
9059
  ManualOrderDTOOrderStatusEnum2["InFulfillment"] = "In Fulfillment";
7008
9060
  return ManualOrderDTOOrderStatusEnum2;
7009
9061
  })(ManualOrderDTOOrderStatusEnum || {});
9062
+ var ManualOrderDTOPaymentStatusEnum = /* @__PURE__ */ ((ManualOrderDTOPaymentStatusEnum2) => {
9063
+ ManualOrderDTOPaymentStatusEnum2["Paid"] = "Paid";
9064
+ ManualOrderDTOPaymentStatusEnum2["Unpaid"] = "Unpaid";
9065
+ return ManualOrderDTOPaymentStatusEnum2;
9066
+ })(ManualOrderDTOPaymentStatusEnum || {});
9067
+
9068
+ // src/lib/Apis/models/order.ts
9069
+ var OrderOrderTypeEnum = /* @__PURE__ */ ((OrderOrderTypeEnum2) => {
9070
+ OrderOrderTypeEnum2["Pickup"] = "Pickup";
9071
+ OrderOrderTypeEnum2["Delivery"] = "Delivery";
9072
+ return OrderOrderTypeEnum2;
9073
+ })(OrderOrderTypeEnum || {});
9074
+ var OrderTypeEnum = /* @__PURE__ */ ((OrderTypeEnum2) => {
9075
+ OrderTypeEnum2["Quotation"] = "Quotation";
9076
+ OrderTypeEnum2["Order"] = "Order";
9077
+ return OrderTypeEnum2;
9078
+ })(OrderTypeEnum || {});
9079
+
9080
+ // src/lib/Apis/models/order-time-line-dto.ts
9081
+ var OrderTimeLineDTOTypeEnum = /* @__PURE__ */ ((OrderTimeLineDTOTypeEnum2) => {
9082
+ OrderTimeLineDTOTypeEnum2["OrderStatus"] = "orderStatus";
9083
+ OrderTimeLineDTOTypeEnum2["Reminder"] = "reminder";
9084
+ return OrderTimeLineDTOTypeEnum2;
9085
+ })(OrderTimeLineDTOTypeEnum || {});
7010
9086
 
7011
9087
  // src/lib/Apis/models/payment.ts
7012
9088
  var PaymentPaymentStatusEnum = /* @__PURE__ */ ((PaymentPaymentStatusEnum2) => {
@@ -7027,6 +9103,207 @@ var PaymentPaymentStatusEnum = /* @__PURE__ */ ((PaymentPaymentStatusEnum2) => {
7027
9103
  PaymentPaymentStatusEnum2["RefundRejected"] = "Refund Rejected";
7028
9104
  return PaymentPaymentStatusEnum2;
7029
9105
  })(PaymentPaymentStatusEnum || {});
9106
+ var PaymentPaymentMethodEnum = /* @__PURE__ */ ((PaymentPaymentMethodEnum2) => {
9107
+ PaymentPaymentMethodEnum2["Cash"] = "Cash";
9108
+ PaymentPaymentMethodEnum2["Credit"] = "Credit";
9109
+ PaymentPaymentMethodEnum2["Card"] = "Card";
9110
+ return PaymentPaymentMethodEnum2;
9111
+ })(PaymentPaymentMethodEnum || {});
9112
+
9113
+ // src/lib/Apis/models/payment-time-line-dto.ts
9114
+ var PaymentTimeLineDTOTitleEnum = /* @__PURE__ */ ((PaymentTimeLineDTOTitleEnum2) => {
9115
+ PaymentTimeLineDTOTitleEnum2["Paid"] = "Paid";
9116
+ PaymentTimeLineDTOTitleEnum2["Unpaid"] = "Unpaid";
9117
+ PaymentTimeLineDTOTitleEnum2["Refunded"] = "Refunded";
9118
+ PaymentTimeLineDTOTitleEnum2["PartiallyRefunded"] = "Partially Refunded";
9119
+ PaymentTimeLineDTOTitleEnum2["PastDue"] = "Past Due";
9120
+ PaymentTimeLineDTOTitleEnum2["Processing"] = "Processing";
9121
+ PaymentTimeLineDTOTitleEnum2["PaymentFailed"] = "Payment Failed";
9122
+ PaymentTimeLineDTOTitleEnum2["PaymentCreated"] = "Payment Created";
9123
+ PaymentTimeLineDTOTitleEnum2["PaymentCanceled"] = "Payment Canceled";
9124
+ PaymentTimeLineDTOTitleEnum2["PaymentUpdated"] = "Payment Updated";
9125
+ PaymentTimeLineDTOTitleEnum2["Cancelled"] = "Cancelled";
9126
+ PaymentTimeLineDTOTitleEnum2["RefundRequested"] = "Refund Requested";
9127
+ PaymentTimeLineDTOTitleEnum2["RefundProcessing"] = "Refund Processing";
9128
+ PaymentTimeLineDTOTitleEnum2["RefundFailed"] = "Refund Failed";
9129
+ PaymentTimeLineDTOTitleEnum2["RefundRejected"] = "Refund Rejected";
9130
+ return PaymentTimeLineDTOTitleEnum2;
9131
+ })(PaymentTimeLineDTOTitleEnum || {});
9132
+
9133
+ // src/lib/Apis/models/populated-discount.ts
9134
+ var PopulatedDiscountDiscountTypeEnum = /* @__PURE__ */ ((PopulatedDiscountDiscountTypeEnum2) => {
9135
+ PopulatedDiscountDiscountTypeEnum2["PRODUCT"] = "PRODUCT";
9136
+ PopulatedDiscountDiscountTypeEnum2["CATEGORY"] = "CATEGORY";
9137
+ PopulatedDiscountDiscountTypeEnum2["VARIANT"] = "VARIANT";
9138
+ return PopulatedDiscountDiscountTypeEnum2;
9139
+ })(PopulatedDiscountDiscountTypeEnum || {});
9140
+ var PopulatedDiscountDecreasePriceByEnum = /* @__PURE__ */ ((PopulatedDiscountDecreasePriceByEnum2) => {
9141
+ PopulatedDiscountDecreasePriceByEnum2["PERCENTAGE"] = "PERCENTAGE";
9142
+ PopulatedDiscountDecreasePriceByEnum2["AMOUNT"] = "AMOUNT";
9143
+ return PopulatedDiscountDecreasePriceByEnum2;
9144
+ })(PopulatedDiscountDecreasePriceByEnum || {});
9145
+ var PopulatedDiscountStateEnum = /* @__PURE__ */ ((PopulatedDiscountStateEnum2) => {
9146
+ PopulatedDiscountStateEnum2["ACTIVE"] = "ACTIVE";
9147
+ PopulatedDiscountStateEnum2["INACTIVE"] = "INACTIVE";
9148
+ PopulatedDiscountStateEnum2["EXPIRED"] = "EXPIRED";
9149
+ PopulatedDiscountStateEnum2["SCHEDULED"] = "SCHEDULED";
9150
+ return PopulatedDiscountStateEnum2;
9151
+ })(PopulatedDiscountStateEnum || {});
9152
+ var PopulatedDiscountMinPurchaseRequiredEnum = /* @__PURE__ */ ((PopulatedDiscountMinPurchaseRequiredEnum2) => {
9153
+ PopulatedDiscountMinPurchaseRequiredEnum2["NOREQUIREMENT"] = "NO_REQUIREMENT";
9154
+ PopulatedDiscountMinPurchaseRequiredEnum2["MINIMUMAMOUNT"] = "MINIMUM_AMOUNT";
9155
+ PopulatedDiscountMinPurchaseRequiredEnum2["MINIMUMQUANTITY"] = "MINIMUM_QUANTITY";
9156
+ return PopulatedDiscountMinPurchaseRequiredEnum2;
9157
+ })(PopulatedDiscountMinPurchaseRequiredEnum || {});
9158
+ var PopulatedDiscountCustomerEligibilityEnum = /* @__PURE__ */ ((PopulatedDiscountCustomerEligibilityEnum2) => {
9159
+ PopulatedDiscountCustomerEligibilityEnum2["ALL"] = "ALL";
9160
+ PopulatedDiscountCustomerEligibilityEnum2["SPECIFICUSERS"] = "SPECIFIC_USERS";
9161
+ PopulatedDiscountCustomerEligibilityEnum2["SPECIFICGROUPS"] = "SPECIFIC_GROUPS";
9162
+ return PopulatedDiscountCustomerEligibilityEnum2;
9163
+ })(PopulatedDiscountCustomerEligibilityEnum || {});
9164
+
9165
+ // src/lib/Apis/models/populated-order.ts
9166
+ var PopulatedOrderOrderTypeEnum = /* @__PURE__ */ ((PopulatedOrderOrderTypeEnum2) => {
9167
+ PopulatedOrderOrderTypeEnum2["Pickup"] = "Pickup";
9168
+ PopulatedOrderOrderTypeEnum2["Delivery"] = "Delivery";
9169
+ return PopulatedOrderOrderTypeEnum2;
9170
+ })(PopulatedOrderOrderTypeEnum || {});
9171
+ var PopulatedOrderTypeEnum = /* @__PURE__ */ ((PopulatedOrderTypeEnum2) => {
9172
+ PopulatedOrderTypeEnum2["Quotation"] = "Quotation";
9173
+ PopulatedOrderTypeEnum2["Order"] = "Order";
9174
+ return PopulatedOrderTypeEnum2;
9175
+ })(PopulatedOrderTypeEnum || {});
9176
+
9177
+ // src/lib/Apis/models/product-variant.ts
9178
+ var ProductVariantInventoryStatusEnum = /* @__PURE__ */ ((ProductVariantInventoryStatusEnum2) => {
9179
+ ProductVariantInventoryStatusEnum2["INSTOCK"] = "IN_STOCK";
9180
+ ProductVariantInventoryStatusEnum2["OUTOFSTOCK"] = "OUT_OF_STOCK";
9181
+ ProductVariantInventoryStatusEnum2["LOWSTOCK"] = "LOW_STOCK";
9182
+ return ProductVariantInventoryStatusEnum2;
9183
+ })(ProductVariantInventoryStatusEnum || {});
9184
+
9185
+ // src/lib/Apis/models/reorder-products-dto.ts
9186
+ var ReorderProductsDtoContainerTypeEnum = /* @__PURE__ */ ((ReorderProductsDtoContainerTypeEnum2) => {
9187
+ ReorderProductsDtoContainerTypeEnum2["Category"] = "category";
9188
+ ReorderProductsDtoContainerTypeEnum2["Subcategory"] = "subcategory";
9189
+ return ReorderProductsDtoContainerTypeEnum2;
9190
+ })(ReorderProductsDtoContainerTypeEnum || {});
9191
+
9192
+ // src/lib/Apis/models/shipment-details-dto.ts
9193
+ var ShipmentDetailsDtoStatusEnum = /* @__PURE__ */ ((ShipmentDetailsDtoStatusEnum2) => {
9194
+ ShipmentDetailsDtoStatusEnum2["ERROR"] = "ERROR";
9195
+ ShipmentDetailsDtoStatusEnum2["QUEUED"] = "QUEUED";
9196
+ ShipmentDetailsDtoStatusEnum2["SUCCESS"] = "SUCCESS";
9197
+ ShipmentDetailsDtoStatusEnum2["WAITING"] = "WAITING";
9198
+ return ShipmentDetailsDtoStatusEnum2;
9199
+ })(ShipmentDetailsDtoStatusEnum || {});
9200
+
9201
+ // src/lib/Apis/models/shipping-info.ts
9202
+ var ShippingInfoStatusEnum = /* @__PURE__ */ ((ShippingInfoStatusEnum2) => {
9203
+ ShippingInfoStatusEnum2["ERROR"] = "ERROR";
9204
+ ShippingInfoStatusEnum2["QUEUED"] = "QUEUED";
9205
+ ShippingInfoStatusEnum2["SUCCESS"] = "SUCCESS";
9206
+ ShippingInfoStatusEnum2["WAITING"] = "WAITING";
9207
+ return ShippingInfoStatusEnum2;
9208
+ })(ShippingInfoStatusEnum || {});
9209
+
9210
+ // src/lib/Apis/models/single-product-media.ts
9211
+ var SingleProductMediaTypeEnum = /* @__PURE__ */ ((SingleProductMediaTypeEnum2) => {
9212
+ SingleProductMediaTypeEnum2["Image"] = "image";
9213
+ SingleProductMediaTypeEnum2["Video"] = "video";
9214
+ SingleProductMediaTypeEnum2["Audio"] = "audio";
9215
+ return SingleProductMediaTypeEnum2;
9216
+ })(SingleProductMediaTypeEnum || {});
9217
+
9218
+ // src/lib/Apis/models/update-address-dto.ts
9219
+ var UpdateAddressDtoAddressTypeEnum = /* @__PURE__ */ ((UpdateAddressDtoAddressTypeEnum2) => {
9220
+ UpdateAddressDtoAddressTypeEnum2["Billing"] = "Billing";
9221
+ UpdateAddressDtoAddressTypeEnum2["Shipping"] = "Shipping";
9222
+ UpdateAddressDtoAddressTypeEnum2["Both"] = "Both";
9223
+ return UpdateAddressDtoAddressTypeEnum2;
9224
+ })(UpdateAddressDtoAddressTypeEnum || {});
9225
+
9226
+ // src/lib/Apis/models/update-discount-dto.ts
9227
+ var UpdateDiscountDtoDiscountTypeEnum = /* @__PURE__ */ ((UpdateDiscountDtoDiscountTypeEnum2) => {
9228
+ UpdateDiscountDtoDiscountTypeEnum2["PRODUCT"] = "PRODUCT";
9229
+ UpdateDiscountDtoDiscountTypeEnum2["CATEGORY"] = "CATEGORY";
9230
+ UpdateDiscountDtoDiscountTypeEnum2["VARIANT"] = "VARIANT";
9231
+ return UpdateDiscountDtoDiscountTypeEnum2;
9232
+ })(UpdateDiscountDtoDiscountTypeEnum || {});
9233
+ var UpdateDiscountDtoDecreasePriceByEnum = /* @__PURE__ */ ((UpdateDiscountDtoDecreasePriceByEnum2) => {
9234
+ UpdateDiscountDtoDecreasePriceByEnum2["PERCENTAGE"] = "PERCENTAGE";
9235
+ UpdateDiscountDtoDecreasePriceByEnum2["AMOUNT"] = "AMOUNT";
9236
+ return UpdateDiscountDtoDecreasePriceByEnum2;
9237
+ })(UpdateDiscountDtoDecreasePriceByEnum || {});
9238
+ var UpdateDiscountDtoStateEnum = /* @__PURE__ */ ((UpdateDiscountDtoStateEnum2) => {
9239
+ UpdateDiscountDtoStateEnum2["ACTIVE"] = "ACTIVE";
9240
+ UpdateDiscountDtoStateEnum2["INACTIVE"] = "INACTIVE";
9241
+ UpdateDiscountDtoStateEnum2["EXPIRED"] = "EXPIRED";
9242
+ UpdateDiscountDtoStateEnum2["SCHEDULED"] = "SCHEDULED";
9243
+ return UpdateDiscountDtoStateEnum2;
9244
+ })(UpdateDiscountDtoStateEnum || {});
9245
+ var UpdateDiscountDtoMinPurchaseRequiredEnum = /* @__PURE__ */ ((UpdateDiscountDtoMinPurchaseRequiredEnum2) => {
9246
+ UpdateDiscountDtoMinPurchaseRequiredEnum2["NOREQUIREMENT"] = "NO_REQUIREMENT";
9247
+ UpdateDiscountDtoMinPurchaseRequiredEnum2["MINIMUMAMOUNT"] = "MINIMUM_AMOUNT";
9248
+ UpdateDiscountDtoMinPurchaseRequiredEnum2["MINIMUMQUANTITY"] = "MINIMUM_QUANTITY";
9249
+ return UpdateDiscountDtoMinPurchaseRequiredEnum2;
9250
+ })(UpdateDiscountDtoMinPurchaseRequiredEnum || {});
9251
+ var UpdateDiscountDtoCustomerEligibilityEnum = /* @__PURE__ */ ((UpdateDiscountDtoCustomerEligibilityEnum2) => {
9252
+ UpdateDiscountDtoCustomerEligibilityEnum2["ALL"] = "ALL";
9253
+ UpdateDiscountDtoCustomerEligibilityEnum2["SPECIFICUSERS"] = "SPECIFIC_USERS";
9254
+ UpdateDiscountDtoCustomerEligibilityEnum2["SPECIFICGROUPS"] = "SPECIFIC_GROUPS";
9255
+ return UpdateDiscountDtoCustomerEligibilityEnum2;
9256
+ })(UpdateDiscountDtoCustomerEligibilityEnum || {});
9257
+
9258
+ // src/lib/Apis/models/update-manual-shipment-status-dto.ts
9259
+ var UpdateManualShipmentStatusDtoStatusEnum = /* @__PURE__ */ ((UpdateManualShipmentStatusDtoStatusEnum2) => {
9260
+ UpdateManualShipmentStatusDtoStatusEnum2["Pending"] = "Pending";
9261
+ UpdateManualShipmentStatusDtoStatusEnum2["Processing"] = "Processing";
9262
+ UpdateManualShipmentStatusDtoStatusEnum2["OutForDelivery"] = "Out for Delivery";
9263
+ UpdateManualShipmentStatusDtoStatusEnum2["Delivered"] = "Delivered";
9264
+ UpdateManualShipmentStatusDtoStatusEnum2["Cancelled"] = "Cancelled";
9265
+ UpdateManualShipmentStatusDtoStatusEnum2["Returned"] = "Returned";
9266
+ return UpdateManualShipmentStatusDtoStatusEnum2;
9267
+ })(UpdateManualShipmentStatusDtoStatusEnum || {});
9268
+
9269
+ // src/lib/Apis/models/update-user-dto.ts
9270
+ var UpdateUserDtoRoleEnum = /* @__PURE__ */ ((UpdateUserDtoRoleEnum2) => {
9271
+ UpdateUserDtoRoleEnum2["SuperAdmin"] = "SuperAdmin";
9272
+ UpdateUserDtoRoleEnum2["Admin"] = "Admin";
9273
+ UpdateUserDtoRoleEnum2["User"] = "User";
9274
+ return UpdateUserDtoRoleEnum2;
9275
+ })(UpdateUserDtoRoleEnum || {});
9276
+ var UpdateUserDtoCustomerTypeEnum = /* @__PURE__ */ ((UpdateUserDtoCustomerTypeEnum2) => {
9277
+ UpdateUserDtoCustomerTypeEnum2["B2B"] = "B2B";
9278
+ UpdateUserDtoCustomerTypeEnum2["Regular"] = "Regular";
9279
+ return UpdateUserDtoCustomerTypeEnum2;
9280
+ })(UpdateUserDtoCustomerTypeEnum || {});
9281
+
9282
+ // src/lib/Apis/models/user-entity.ts
9283
+ var UserEntityRoleEnum = /* @__PURE__ */ ((UserEntityRoleEnum2) => {
9284
+ UserEntityRoleEnum2["SuperAdmin"] = "SuperAdmin";
9285
+ UserEntityRoleEnum2["Admin"] = "Admin";
9286
+ UserEntityRoleEnum2["User"] = "User";
9287
+ return UserEntityRoleEnum2;
9288
+ })(UserEntityRoleEnum || {});
9289
+ var UserEntityCustomerTypeEnum = /* @__PURE__ */ ((UserEntityCustomerTypeEnum2) => {
9290
+ UserEntityCustomerTypeEnum2["B2B"] = "B2B";
9291
+ UserEntityCustomerTypeEnum2["Regular"] = "Regular";
9292
+ return UserEntityCustomerTypeEnum2;
9293
+ })(UserEntityCustomerTypeEnum || {});
9294
+
9295
+ // src/lib/Apis/models/user-with-no-id.ts
9296
+ var UserWithNoIdRoleEnum = /* @__PURE__ */ ((UserWithNoIdRoleEnum2) => {
9297
+ UserWithNoIdRoleEnum2["SuperAdmin"] = "SuperAdmin";
9298
+ UserWithNoIdRoleEnum2["Admin"] = "Admin";
9299
+ UserWithNoIdRoleEnum2["User"] = "User";
9300
+ return UserWithNoIdRoleEnum2;
9301
+ })(UserWithNoIdRoleEnum || {});
9302
+ var UserWithNoIdCustomerTypeEnum = /* @__PURE__ */ ((UserWithNoIdCustomerTypeEnum2) => {
9303
+ UserWithNoIdCustomerTypeEnum2["B2B"] = "B2B";
9304
+ UserWithNoIdCustomerTypeEnum2["Regular"] = "Regular";
9305
+ return UserWithNoIdCustomerTypeEnum2;
9306
+ })(UserWithNoIdCustomerTypeEnum || {});
7030
9307
 
7031
9308
  // src/lib/api-adapter/index.ts
7032
9309
  init_config();
@@ -7376,7 +9653,7 @@ init_config();
7376
9653
  init_config();
7377
9654
  init_sharedConfig();
7378
9655
  init_sharedConfig();
7379
- globalAxios18.interceptors.request.use(async (config) => {
9656
+ globalAxios21.interceptors.request.use(async (config) => {
7380
9657
  if (!config?.headers) {
7381
9658
  throw new Error(
7382
9659
  `Expected 'config' and 'config.headers' not to be undefined`
@@ -10151,6 +12428,60 @@ function useAddresses() {
10151
12428
  markAsDefault
10152
12429
  };
10153
12430
  }
12431
+ init_config();
12432
+ var cachedCapabilities = null;
12433
+ var cacheStoreId = null;
12434
+ function useStoreCapabilities() {
12435
+ const [capabilities, setCapabilities] = useState(cachedCapabilities);
12436
+ const [isLoading, setIsLoading] = useState(!cachedCapabilities);
12437
+ const [error, setError] = useState(null);
12438
+ const fetchCapabilities = useCallback(async (forceRefresh = false) => {
12439
+ try {
12440
+ const config = getCurrentConfig();
12441
+ const storeId = config?.storeId;
12442
+ if (!storeId) {
12443
+ setError(new Error("Store ID not configured"));
12444
+ setIsLoading(false);
12445
+ return;
12446
+ }
12447
+ if (!forceRefresh && cachedCapabilities && cacheStoreId === storeId) {
12448
+ setCapabilities(cachedCapabilities);
12449
+ setIsLoading(false);
12450
+ return;
12451
+ }
12452
+ setIsLoading(true);
12453
+ setError(null);
12454
+ const api = new StoresApi(AXIOS_CONFIG);
12455
+ const response = await api.getStoreCapabilities(storeId);
12456
+ cachedCapabilities = response.data;
12457
+ cacheStoreId = storeId;
12458
+ setCapabilities(response.data);
12459
+ } catch (err) {
12460
+ console.error("Failed to fetch store capabilities:", err);
12461
+ setError(err instanceof Error ? err : new Error("Failed to fetch store capabilities"));
12462
+ } finally {
12463
+ setIsLoading(false);
12464
+ }
12465
+ }, []);
12466
+ const refresh = useCallback(async () => {
12467
+ await fetchCapabilities(true);
12468
+ }, [fetchCapabilities]);
12469
+ useEffect(() => {
12470
+ fetchCapabilities();
12471
+ }, [fetchCapabilities]);
12472
+ const showCardPayment = Boolean(capabilities?.hasStripeKey && capabilities?.cardPaymentEnabled);
12473
+ const showShippoDelivery = Boolean(capabilities?.hasShippoKey && capabilities?.shippoDeliveryEnabled);
12474
+ const showCustomDelivery = Boolean(capabilities?.customDeliveryEnabled);
12475
+ return {
12476
+ capabilities,
12477
+ isLoading,
12478
+ error,
12479
+ refresh,
12480
+ showCardPayment,
12481
+ showShippoDelivery,
12482
+ showCustomDelivery
12483
+ };
12484
+ }
10154
12485
  function Modal({ isOpen, onClose, title, children, size = "md" }) {
10155
12486
  useEffect(() => {
10156
12487
  if (typeof window === "undefined") return;
@@ -10407,31 +12738,27 @@ var checkoutSchema = z.object({
10407
12738
  billing: addressSchema,
10408
12739
  sameAsShipping: z.boolean().default(true)
10409
12740
  });
10410
- var PAYMENT_METHODS = [
12741
+ var PAYMENT_METHODS_CONFIG = [
10411
12742
  {
12743
+ id: "Card",
10412
12744
  label: "Card",
10413
12745
  value: "Card",
10414
12746
  icon: /* @__PURE__ */ jsx(CreditCard, { className: "w-5 h-5" }),
10415
12747
  description: "Pay securely with your credit or debit card",
10416
12748
  className: "border-blue-500 hover:bg-blue-50",
10417
- activeClass: "bg-blue-50 border-blue-500 text-blue-700"
12749
+ activeClass: "bg-blue-50 border-blue-500 text-blue-700",
12750
+ requiresStripe: true
10418
12751
  },
10419
12752
  {
12753
+ id: "Cash",
10420
12754
  label: "Cash",
10421
12755
  value: "Cash",
10422
12756
  icon: /* @__PURE__ */ jsx(PackageCheck, { className: "w-5 h-5" }),
10423
12757
  description: "Pay with cash on delivery or at pickup",
10424
12758
  className: "border-amber-500 hover:bg-amber-50",
10425
- activeClass: "bg-amber-50 border-amber-500 text-amber-700"
10426
- }
10427
- // {
10428
- // label: 'Credit',
10429
- // value: 'Credit',
10430
- // icon: <ShieldCheck className="w-5 h-5" />,
10431
- // description: 'Use your account credit',
10432
- // className: 'border-emerald-500 hover:bg-emerald-50',
10433
- // activeClass: 'bg-emerald-50 border-emerald-500 text-emerald-700',
10434
- // },
12759
+ activeClass: "bg-amber-50 border-amber-500 text-amber-700",
12760
+ requiresStripe: false
12761
+ }
10435
12762
  ];
10436
12763
  function CheckoutScreen() {
10437
12764
  const router = useRouter();
@@ -10439,8 +12766,9 @@ function CheckoutScreen() {
10439
12766
  const { isAuthenticated, user } = useAuth();
10440
12767
  const { buildPath } = useBasePath();
10441
12768
  const [isSubmitting, setIsSubmitting] = useState(false);
10442
- const [isDelivery, setIsDelivery] = useState(true);
10443
- const [paymentMethod, setPaymentMethod] = useState("Card");
12769
+ const [isDelivery, setIsDelivery] = useState(null);
12770
+ const [hasSetDefaultDelivery, setHasSetDefaultDelivery] = useState(false);
12771
+ const [paymentMethod, setPaymentMethod] = useState(null);
10444
12772
  const [error, setError] = useState(null);
10445
12773
  const [selectedAddressId, setSelectedAddressId] = useState(null);
10446
12774
  const [storeAddresses, setStoreAddresses] = useState([]);
@@ -10452,6 +12780,58 @@ function CheckoutScreen() {
10452
12780
  addresses: userAddresses,
10453
12781
  defaultAddress
10454
12782
  } = useAddresses();
12783
+ const {
12784
+ capabilities,
12785
+ isLoading: capabilitiesLoading,
12786
+ showCardPayment,
12787
+ showShippoDelivery,
12788
+ showCustomDelivery
12789
+ } = useStoreCapabilities();
12790
+ const availablePaymentMethods = PAYMENT_METHODS_CONFIG.filter((pm) => {
12791
+ if (pm.requiresStripe) {
12792
+ return showCardPayment;
12793
+ }
12794
+ return true;
12795
+ });
12796
+ useEffect(() => {
12797
+ if (!capabilitiesLoading && paymentMethod === null && availablePaymentMethods.length > 0) {
12798
+ const preferCard = availablePaymentMethods.find((pm) => pm.id === "Card");
12799
+ setPaymentMethod(preferCard ? "Card" : availablePaymentMethods[0].value);
12800
+ }
12801
+ }, [capabilitiesLoading, paymentMethod, availablePaymentMethods]);
12802
+ useEffect(() => {
12803
+ if (!capabilitiesLoading && !hasSetDefaultDelivery && capabilities) {
12804
+ if (!showShippoDelivery && !showCustomDelivery) {
12805
+ setIsDelivery(false);
12806
+ }
12807
+ setHasSetDefaultDelivery(true);
12808
+ }
12809
+ }, [capabilitiesLoading, hasSetDefaultDelivery, capabilities, showShippoDelivery, showCustomDelivery]);
12810
+ const deliveryOptions = [
12811
+ // Shippo delivery (if enabled)
12812
+ ...showShippoDelivery ? [{
12813
+ id: "shippo",
12814
+ label: "Delivery",
12815
+ icon: /* @__PURE__ */ jsx(Truck, { className: "w-5 h-5" }),
12816
+ value: true,
12817
+ desc: "Shipped to your address"
12818
+ }] : [],
12819
+ // Custom/Store delivery (if enabled)
12820
+ ...showCustomDelivery ? [{
12821
+ id: "custom",
12822
+ label: capabilities?.customDeliveryTitle || "Store Delivery",
12823
+ icon: /* @__PURE__ */ jsx(Truck, { className: "w-5 h-5" }),
12824
+ value: "custom",
12825
+ desc: capabilities?.customDeliveryFlatRate ? `Flat rate: ${formatPrice(capabilities.customDeliveryFlatRate)}` : "Flat rate delivery"
12826
+ }] : [],
12827
+ {
12828
+ id: "pickup",
12829
+ label: "Pickup",
12830
+ icon: /* @__PURE__ */ jsx(MapPin, { className: "w-5 h-5" }),
12831
+ value: false,
12832
+ desc: "Collect from pharmacy"
12833
+ }
12834
+ ];
10455
12835
  const [selectedShippingRateId, setSelectedShippingRateId] = useState(null);
10456
12836
  const [shippingRates, setShippingRates] = useState([]);
10457
12837
  const [shippingRatesLoading, setShippingRatesLoading] = useState(false);
@@ -10540,7 +12920,7 @@ function CheckoutScreen() {
10540
12920
  setSelectedShippingRateId(null);
10541
12921
  };
10542
12922
  useEffect(() => {
10543
- if (!isDelivery || !selectedAddressId || !cart || cart?.cartBody?.items?.length === 0 || !cart?.cartBody?.items) {
12923
+ if (isDelivery !== true || !selectedAddressId || !cart || cart?.cartBody?.items?.length === 0 || !cart?.cartBody?.items) {
10544
12924
  setShippingRates([]);
10545
12925
  setSelectedShippingRateId(null);
10546
12926
  return;
@@ -10569,16 +12949,20 @@ function CheckoutScreen() {
10569
12949
  })();
10570
12950
  }, [isDelivery, selectedAddressId, cart]);
10571
12951
  useEffect(() => {
10572
- if (!isDelivery) {
12952
+ let cancelled = false;
12953
+ if (isDelivery === false) {
10573
12954
  (async () => {
10574
12955
  const api = new ShippingApi(AXIOS_CONFIG);
10575
12956
  const res = await api.getStoreAddress();
10576
- if (res.data) {
12957
+ if (!cancelled && res.data) {
10577
12958
  setStoreAddresses([res.data]);
10578
12959
  setShippingPrice(0);
10579
12960
  }
10580
12961
  })();
10581
12962
  }
12963
+ return () => {
12964
+ cancelled = true;
12965
+ };
10582
12966
  }, [isDelivery]);
10583
12967
  const onSubmit = async (data) => {
10584
12968
  setError(null);
@@ -10598,12 +12982,19 @@ function CheckoutScreen() {
10598
12982
  setError("Please select a payment method.");
10599
12983
  return;
10600
12984
  }
10601
- if (isDelivery) {
12985
+ if (isDelivery === null) {
12986
+ setError("Please select a delivery method.");
12987
+ return;
12988
+ }
12989
+ const isShippoDelivery = isDelivery === true;
12990
+ const isCustomDelivery = isDelivery === "custom";
12991
+ const needsDeliveryAddress = isShippoDelivery || isCustomDelivery;
12992
+ if (needsDeliveryAddress) {
10602
12993
  if (!selectedAddressId) {
10603
12994
  setError("Please select a shipping address.");
10604
12995
  return;
10605
12996
  }
10606
- if (!selectedShippingRateId) {
12997
+ if (isShippoDelivery && !selectedShippingRateId) {
10607
12998
  setError("Please select a shipping method.");
10608
12999
  return;
10609
13000
  }
@@ -10614,7 +13005,7 @@ function CheckoutScreen() {
10614
13005
  return;
10615
13006
  }
10616
13007
  }
10617
- } else {
13008
+ } else if (isDelivery === false) {
10618
13009
  if (storeAddresses.length === 0) {
10619
13010
  setError("Store pickup location is not available.");
10620
13011
  return;
@@ -10649,21 +13040,28 @@ function CheckoutScreen() {
10649
13040
  } else if (paymentMethod === "Card") {
10650
13041
  billingAddressId = userAddresses.length > 0 ? userAddresses[0].id : void 0;
10651
13042
  }
13043
+ const manualShipping = isDelivery === "custom" && selectedAddressId ? {
13044
+ amount: capabilities?.customDeliveryFlatRate || 0,
13045
+ userAddressId: selectedAddressId,
13046
+ shippingTitle: capabilities?.customDeliveryTitle || "Store Delivery"
13047
+ } : void 0;
10652
13048
  const orderDTO = {
10653
13049
  items,
10654
13050
  paymentMethod,
10655
13051
  orderStatus: "Pending",
10656
13052
  orderRemindingDates: [],
10657
13053
  shippingAddress: data.shipping,
10658
- billingAddress: sameAsShipping ? data.shipping : data.billing
13054
+ billingAddress: sameAsShipping ? data.shipping : data.billing,
13055
+ ...manualShipping && { manualShipping }
10659
13056
  };
10660
13057
  const api = new OrdersApi(AXIOS_CONFIG);
13058
+ const isDeliveryBoolean = isDelivery !== false;
10661
13059
  const response = await api.createCheckout(
10662
13060
  orderDTO,
10663
- isDelivery,
13061
+ isDeliveryBoolean,
10664
13062
  void 0,
10665
13063
  // dont pass userId
10666
- isDelivery ? selectedShippingRateId || void 0 : void 0,
13064
+ isDeliveryBoolean && isDelivery === true ? selectedShippingRateId || void 0 : void 0,
10667
13065
  billingAddressId
10668
13066
  );
10669
13067
  if (response?.data?.payment && response.data.payment.hostedInvoiceUrl === "INSUFFICIENT_CREDIT") {
@@ -10747,17 +13145,102 @@ function CheckoutScreen() {
10747
13145
  /* @__PURE__ */ jsx("h1", { className: "font-['Poppins',sans-serif] font-semibold text-[#2B4B7C] mb-2 text-3xl", children: "Checkout" }),
10748
13146
  /* @__PURE__ */ jsx("p", { className: "font-['Poppins',sans-serif] text-[14px] text-[#676c80] text-md leading-relaxed", children: "Complete your order information below" })
10749
13147
  ] }),
10750
- /* @__PURE__ */ jsxs("section", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8 text-[#2B4B7C]", children: [
10751
- /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center justify-between gap-4", children: [
10752
- /* @__PURE__ */ jsxs("div", { children: [
10753
- /* @__PURE__ */ jsx("h2", { className: "font-['Poppins',sans-serif] font-semibold text-[#2B4B7C] mb-2 text-2xl", children: "Contact Information" }),
10754
- /* @__PURE__ */ jsx("p", { className: "text-sm text-slate-500", children: "We use temperature-aware packaging and real-time tracking on every shipment." })
13148
+ /* @__PURE__ */ jsx("div", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-8", children: [
13149
+ /* @__PURE__ */ jsxs("div", { children: [
13150
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 mb-6", children: [
13151
+ /* @__PURE__ */ jsx(Truck, { className: "w-6 h-6 text-[#2B4B7C]" }),
13152
+ /* @__PURE__ */ jsx("h2", { className: "text-xl font-semibold text-[#2B4B7C]", children: "Delivery Method" })
10755
13153
  ] }),
10756
- /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-2 rounded-full bg-primary-50 px-3 py-1 text-xs font-semibold uppercase tracking-wide text-primary-700", children: [
10757
- /* @__PURE__ */ jsx(Truck, { className: "h-4 w-4" }),
10758
- "Dispatch in 12h"
10759
- ] })
13154
+ /* @__PURE__ */ jsx("div", { className: "space-y-3", children: deliveryOptions.map((option) => {
13155
+ const active = isDelivery === option.value;
13156
+ return /* @__PURE__ */ jsxs(
13157
+ "button",
13158
+ {
13159
+ type: "button",
13160
+ onClick: () => {
13161
+ setIsDelivery(option.value);
13162
+ setSelectedShippingRateId(null);
13163
+ if (option.value === "custom" && capabilities?.customDeliveryFlatRate) {
13164
+ setShippingPrice(capabilities.customDeliveryFlatRate);
13165
+ } else if (option.value === false) {
13166
+ setShippingPrice(0);
13167
+ } else {
13168
+ setShippingPrice(0);
13169
+ }
13170
+ },
13171
+ className: `relative flex w-full items-center justify-between rounded-xl border-2 p-3 transition-all duration-200 ${active ? "border-primary-500 bg-primary-50" : "border-gray-200 hover:border-primary-300"}`,
13172
+ children: [
13173
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
13174
+ /* @__PURE__ */ jsx(
13175
+ "div",
13176
+ {
13177
+ className: `p-2 rounded-lg ${active ? "bg-primary-100 text-primary-600" : "bg-gray-100 text-gray-600"}`,
13178
+ children: option.icon
13179
+ }
13180
+ ),
13181
+ /* @__PURE__ */ jsxs("div", { className: "text-left", children: [
13182
+ /* @__PURE__ */ jsx("div", { className: "font-medium text-gray-900", children: option.label }),
13183
+ /* @__PURE__ */ jsx("p", { className: "text-xs text-gray-500", children: option.desc })
13184
+ ] })
13185
+ ] }),
13186
+ active && /* @__PURE__ */ jsx("div", { className: "w-5 h-5 rounded-full bg-primary-500 flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx(Check, { className: "w-3 h-3 text-white" }) })
13187
+ ]
13188
+ },
13189
+ option.id
13190
+ );
13191
+ }) })
10760
13192
  ] }),
13193
+ /* @__PURE__ */ jsxs("div", { children: [
13194
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 mb-6", children: [
13195
+ /* @__PURE__ */ jsx(CreditCard, { className: "w-6 h-6 text-[#2B4B7C]" }),
13196
+ /* @__PURE__ */ jsx("h2", { className: "text-xl font-semibold text-[#2B4B7C]", children: "Payment Method" })
13197
+ ] }),
13198
+ /* @__PURE__ */ jsx("div", { className: "space-y-3", children: availablePaymentMethods.map((pm) => {
13199
+ const active = paymentMethod === pm.value;
13200
+ return /* @__PURE__ */ jsxs(
13201
+ "button",
13202
+ {
13203
+ type: "button",
13204
+ onClick: () => setPaymentMethod(pm.value),
13205
+ className: `
13206
+ group relative flex w-full items-center justify-between rounded-xl border-2 p-3
13207
+ transition-all duration-200 ease-out
13208
+ focus:outline-hidden
13209
+ ${active ? `${pm.activeClass} shadow-md scale-[1.02]` : `${pm.className} border-gray-200 bg-white hover:shadow-xs hover:-translate-y-0.5`}
13210
+ `,
13211
+ children: [
13212
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
13213
+ /* @__PURE__ */ jsx(
13214
+ "div",
13215
+ {
13216
+ className: `
13217
+ flex items-center justify-center rounded-lg p-2
13218
+ transition-colors duration-200
13219
+ ${pm.value === "Card" ? " text-blue-600" : pm.value === "Cash" ? " text-amber-600" : " text-emerald-600"}
13220
+ ${active ? "opacity-80" : "group-hover:opacity-90"}
13221
+ `,
13222
+ children: pm.icon
13223
+ }
13224
+ ),
13225
+ /* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-gray-900", children: pm.label })
13226
+ ] }),
13227
+ active && /* @__PURE__ */ jsx("div", { className: "flex h-5 w-5 items-center justify-center rounded-full bg-current shrink-0", children: /* @__PURE__ */ jsx(Check, { className: "h-3 w-3 text-white" }) })
13228
+ ]
13229
+ },
13230
+ pm.value
13231
+ );
13232
+ }) }),
13233
+ /* @__PURE__ */ jsxs("p", { className: "text-xs text-slate-500 mt-4 px-1", children: [
13234
+ paymentMethod === "Card" && "You will be redirected to a secure payment page.",
13235
+ paymentMethod === "Cash" && "Pay with cash at the time of delivery or pickup."
13236
+ ] })
13237
+ ] })
13238
+ ] }) }),
13239
+ isDelivery !== null && /* @__PURE__ */ jsxs("section", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8 text-[#2B4B7C]", children: [
13240
+ /* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center justify-between gap-4", children: /* @__PURE__ */ jsxs("div", { children: [
13241
+ /* @__PURE__ */ jsx("h2", { className: "font-['Poppins',sans-serif] font-semibold text-[#2B4B7C] mb-2 text-2xl", children: isDelivery ? "Delivery Address" : "Contact Information" }),
13242
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-slate-500", children: "We use temperature-aware packaging and real-time tracking on every shipment." })
13243
+ ] }) }),
10761
13244
  /* @__PURE__ */ jsxs("div", { className: "mt-6 grid grid-cols-1 gap-4 md:grid-cols-2", children: [
10762
13245
  isDelivery && /* @__PURE__ */ jsxs("div", { className: "md:col-span-2 space-y-4", children: [
10763
13246
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
@@ -10870,7 +13353,7 @@ function CheckoutScreen() {
10870
13353
  /* @__PURE__ */ jsx("p", { className: "text-sm text-slate-500", children: "Add a new address to continue" })
10871
13354
  ] })
10872
13355
  ] }),
10873
- !isDelivery && storeAddresses.length > 0 && /* @__PURE__ */ jsxs("div", { className: "md:col-span-2", children: [
13356
+ isDelivery === false && storeAddresses.length > 0 && /* @__PURE__ */ jsxs("div", { className: "md:col-span-2", children: [
10874
13357
  /* @__PURE__ */ jsx("label", { className: "block mb-2 font-semibold", children: "Select Pickup Location" }),
10875
13358
  /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: storeAddresses.map((addr) => /* @__PURE__ */ jsx("div", { className: "w-full border rounded-sm p-2", children: /* @__PURE__ */ jsxs("p", { children: [
10876
13359
  addr.name,
@@ -10886,7 +13369,7 @@ function CheckoutScreen() {
10886
13369
  ] })
10887
13370
  ] })
10888
13371
  ] }),
10889
- isDelivery && selectedAddressId && /* @__PURE__ */ jsxs("div", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8 text-[#2B4B7C]", children: [
13372
+ isDelivery === true && selectedAddressId && /* @__PURE__ */ jsxs("div", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8 text-[#2B4B7C]", children: [
10890
13373
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 text-xl font-semibold text-gray-900 pb-4 mb-8 border-b", children: [
10891
13374
  /* @__PURE__ */ jsx(Truck, { className: "w-8 h-8 flex items-center justify-center text-[#2B4B7C]" }),
10892
13375
  /* @__PURE__ */ jsx("h2", { className: "font-['Poppins',sans-serif] font-semibold text-[#2B4B7C] text-2xl", children: "Shipping Options" })
@@ -10985,106 +13468,6 @@ function CheckoutScreen() {
10985
13468
  /* @__PURE__ */ jsx("p", { className: "text-gray-500 text-lg font-medium", children: "No shipping options available" }),
10986
13469
  /* @__PURE__ */ jsx("p", { className: "text-gray-400 text-sm mt-1", children: "Please check the shipping address or try a different location." })
10987
13470
  ] })
10988
- ] }),
10989
- /* @__PURE__ */ jsxs("div", { className: "space-y-6", children: [
10990
- /* @__PURE__ */ jsxs("div", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8", children: [
10991
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 mb-6", children: [
10992
- /* @__PURE__ */ jsx(Truck, { className: "w-8 h-8 text-[#2B4B7C]" }),
10993
- /* @__PURE__ */ jsx("h2", { className: "text-2xl font-semibold text-[#2B4B7C]", children: "Delivery Method" })
10994
- ] }),
10995
- /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-3", children: [
10996
- {
10997
- label: "Delivery",
10998
- icon: /* @__PURE__ */ jsx(Truck, { className: "w-5 h-5" }),
10999
- value: true,
11000
- desc: "Shipped to your address"
11001
- },
11002
- {
11003
- label: "Pickup",
11004
- icon: /* @__PURE__ */ jsx(MapPin, { className: "w-5 h-5" }),
11005
- value: false,
11006
- desc: "Collect from pharmacy"
11007
- }
11008
- ].map((option) => {
11009
- const active = isDelivery === option.value;
11010
- return /* @__PURE__ */ jsxs(
11011
- "button",
11012
- {
11013
- type: "button",
11014
- onClick: () => {
11015
- setIsDelivery(option.value);
11016
- if (option.value) {
11017
- setSelectedShippingRateId(null);
11018
- setShippingPrice(0);
11019
- }
11020
- },
11021
- className: `relative flex w-full items-center justify-between rounded-xl border-2 p-4 transition-all duration-200 ${active ? "border-primary-500 bg-primary-50" : "border-gray-200 hover:border-primary-300"}`,
11022
- children: [
11023
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
11024
- /* @__PURE__ */ jsx(
11025
- "div",
11026
- {
11027
- className: `p-2 rounded-lg ${active ? "bg-primary-100 text-primary-600" : "bg-gray-100 text-gray-600"}`,
11028
- children: option.icon
11029
- }
11030
- ),
11031
- /* @__PURE__ */ jsxs("div", { className: "text-left", children: [
11032
- /* @__PURE__ */ jsx("div", { className: "font-medium text-gray-900", children: option.label }),
11033
- /* @__PURE__ */ jsx("p", { className: "text-sm text-gray-500", children: option.desc })
11034
- ] })
11035
- ] }),
11036
- active && /* @__PURE__ */ jsx("div", { className: "w-5 h-5 rounded-full bg-primary-500 flex items-center justify-center", children: /* @__PURE__ */ jsx(Check, { className: "w-3 h-3 text-white" }) })
11037
- ]
11038
- },
11039
- option.label
11040
- );
11041
- }) })
11042
- ] }),
11043
- /* @__PURE__ */ jsxs("div", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8", children: [
11044
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 mb-6", children: [
11045
- /* @__PURE__ */ jsx(CreditCard, { className: "w-8 h-8 text-[#2B4B7C]" }),
11046
- /* @__PURE__ */ jsx("h2", { className: "text-2xl font-semibold text-[#2B4B7C]", children: "Payment Method" })
11047
- ] }),
11048
- /* @__PURE__ */ jsx("div", { className: "grid gap-4 md:grid-cols-3", children: PAYMENT_METHODS.map((pm) => {
11049
- const active = paymentMethod === pm.value;
11050
- return /* @__PURE__ */ jsxs(
11051
- "button",
11052
- {
11053
- type: "button",
11054
- onClick: () => setPaymentMethod(pm.value),
11055
- className: `
11056
- group relative flex w-full items-center justify-between rounded-xl border-2 p-3
11057
- transition-all duration-200 ease-out
11058
- focus:outline-hidden f
11059
- ${active ? `${pm.activeClass} shadow-md scale-[1.02]` : `${pm.className} border-gray-200 bg-white hover:shadow-xs hover:-translate-y-0.5`}
11060
- `,
11061
- children: [
11062
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
11063
- /* @__PURE__ */ jsx(
11064
- "div",
11065
- {
11066
- className: `
11067
- flex items-center justify-center rounded-lg p-2
11068
- transition-colors duration-200
11069
- ${pm.value === "Card" ? " text-blue-600" : pm.value === "Cash" ? " text-amber-600" : " text-emerald-600"}
11070
- ${active ? "opacity-80" : "group-hover:opacity-90"}
11071
- `,
11072
- children: pm.icon
11073
- }
11074
- ),
11075
- /* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-gray-900", children: pm.label })
11076
- ] }),
11077
- active && /* @__PURE__ */ jsx("div", { className: "flex h-6 w-6 items-center justify-center rounded-full shadow-xs", children: /* @__PURE__ */ jsx(Check, { className: "h-3.5 w-3.5 text-white" }) })
11078
- ]
11079
- },
11080
- pm.value
11081
- );
11082
- }) }),
11083
- /* @__PURE__ */ jsxs("p", { className: "text-sm text-gray-500 mt-4", children: [
11084
- paymentMethod === "Card" && "You will be redirected to a secure payment page.",
11085
- paymentMethod === "Cash" && "Pay with cash at the time of delivery or pickup."
11086
- ] })
11087
- ] })
11088
13471
  ] })
11089
13472
  ]
11090
13473
  }
@@ -11725,7 +14108,7 @@ function ResetPasswordScreen() {
11725
14108
  const { buildPath } = useBasePath();
11726
14109
  const params = useParams();
11727
14110
  const token = params?.token;
11728
- params?.storeId;
14111
+ const storeId = params?.storeId;
11729
14112
  const [showPassword, setShowPassword] = useState(false);
11730
14113
  const [showConfirmPassword, setShowConfirmPassword] = useState(false);
11731
14114
  const [isSubmitting, setIsSubmitting] = useState(false);
@@ -11759,7 +14142,14 @@ function ResetPasswordScreen() {
11759
14142
  setStatus(null);
11760
14143
  try {
11761
14144
  const authApi = new AuthApi(AXIOS_CONFIG);
11762
- await authApi.resetPassword(data.newPassword, token);
14145
+ if (!storeId) {
14146
+ setStatus({
14147
+ type: "error",
14148
+ message: "Store ID is missing. Please use the link from your email."
14149
+ });
14150
+ return;
14151
+ }
14152
+ await authApi.resetPassword(data.newPassword, token, storeId);
11763
14153
  setStatus({
11764
14154
  type: "success",
11765
14155
  message: "Password reset successfully! Redirecting to login..."
@@ -15006,6 +17396,6 @@ function Footer() {
15006
17396
  ] }) });
15007
17397
  }
15008
17398
 
15009
- export { AddressesScreen, AuthProvider, Badge, Button, CartItem, CartProvider, CartScreen, CheckoutScreen, CurrentOrdersScreen, EcommerceProvider, EditProfileScreen, EmptyState, Footer, ForgotPasswordScreen, Header, Input, LoginScreen, Modal, NewAddressPage as NewAddressScreen, OrderCard, OrderCardSkeleton, OrdersScreen, ProductCard, ProductCardSkeleton, ProductDetailScreen, AccountPage as ProfileScreen, RegisterScreen, ResetPasswordScreen, SearchPage as SearchResultsScreen, ShopScreen, Skeleton, ThemeProvider, WishlistProvider, WishlistScreen, formatDate, formatPrice, generateColorShades, getApiConfiguration, getInitials, hexToRgb, initializeApiAdapter, truncate, useAddresses, useAuth, useBasePath, useCart, useCategories, useCurrentOrders, useOrder, useOrders, useProduct, useProducts, useTheme, useWishlist };
17399
+ export { AddressAddressTypeEnum, AddressCreatedRequestAddressTypeEnum, AddressesScreen, ApiKeyInfoDtoKeyTypeEnum, AuthProvider, Badge, Button, CampaignDraftDtoStatusEnum, CampaignDraftScheduleDtoStatusEnum, CampaignDraftSendingDtoStatusEnum, CartItem, CartProvider, CartScreen, CheckoutScreen, CreateAddressDtoAddressTypeEnum, CreateDiscountDtoCustomerEligibilityEnum, CreateDiscountDtoDecreasePriceByEnum, CreateDiscountDtoDiscountTypeEnum, CreateDiscountDtoMinPurchaseRequiredEnum, CreateDiscountDtoStateEnum, CreateStoreAddressDtoAddressTypeEnum, CreateUserDtoCustomerTypeEnum, CreateUserDtoRoleEnum, CurrentOrdersScreen, DiscountCustomerEligibilityEnum, DiscountDecreasePriceByEnum, DiscountDiscountTypeEnum, DiscountMinPurchaseRequiredEnum, DiscountStateEnum, EcommerceProvider, EditProfileScreen, EmptyState, Footer, ForgotPasswordScreen, Header, Input, LoginScreen, ManualDiscountDecreasePriceByEnum, ManualOrderDTOOrderStatusEnum, ManualOrderDTOPaymentMethodEnum, ManualOrderDTOPaymentStatusEnum, Modal, NewAddressPage as NewAddressScreen, OrderCard, OrderCardSkeleton, OrderOrderTypeEnum, OrderTimeLineDTOTypeEnum, OrderTypeEnum, OrdersScreen, PaymentPaymentMethodEnum, PaymentPaymentStatusEnum, PaymentTimeLineDTOTitleEnum, PopulatedDiscountCustomerEligibilityEnum, PopulatedDiscountDecreasePriceByEnum, PopulatedDiscountDiscountTypeEnum, PopulatedDiscountMinPurchaseRequiredEnum, PopulatedDiscountStateEnum, PopulatedOrderOrderTypeEnum, PopulatedOrderTypeEnum, ProductCard, ProductCardSkeleton, ProductDetailScreen, ProductVariantInventoryStatusEnum, AccountPage as ProfileScreen, RegisterScreen, ReorderProductsDtoContainerTypeEnum, ResetPasswordScreen, SearchPage as SearchResultsScreen, ShipmentDetailsDtoStatusEnum, ShippingInfoStatusEnum, ShopScreen, SingleProductMediaTypeEnum, Skeleton, ThemeProvider, UpdateAddressDtoAddressTypeEnum, UpdateDiscountDtoCustomerEligibilityEnum, UpdateDiscountDtoDecreasePriceByEnum, UpdateDiscountDtoDiscountTypeEnum, UpdateDiscountDtoMinPurchaseRequiredEnum, UpdateDiscountDtoStateEnum, UpdateManualShipmentStatusDtoStatusEnum, UpdateUserDtoCustomerTypeEnum, UpdateUserDtoRoleEnum, UserEntityCustomerTypeEnum, UserEntityRoleEnum, UserWithNoIdCustomerTypeEnum, UserWithNoIdRoleEnum, WishlistProvider, WishlistScreen, formatDate, formatPrice, generateColorShades, getApiConfiguration, getInitials, hexToRgb, initializeApiAdapter, truncate, useAddresses, useAuth, useBasePath, useCart, useCategories, useCurrentOrders, useOrder, useOrders, useProduct, useProducts, useStoreCapabilities, useTheme, useWishlist };
15010
17400
  //# sourceMappingURL=index.mjs.map
15011
17401
  //# sourceMappingURL=index.mjs.map