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.js CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  var React8 = require('react');
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
- var globalAxios18 = require('axios');
6
+ var globalAxios21 = require('axios');
7
7
  var framerMotion = require('framer-motion');
8
8
  var lucideReact = require('lucide-react');
9
9
  var reactQuery = require('@tanstack/react-query');
@@ -18,7 +18,7 @@ var zod = require('zod');
18
18
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
19
19
 
20
20
  var React8__default = /*#__PURE__*/_interopDefault(React8);
21
- var globalAxios18__default = /*#__PURE__*/_interopDefault(globalAxios18);
21
+ var globalAxios21__default = /*#__PURE__*/_interopDefault(globalAxios21);
22
22
  var Image4__default = /*#__PURE__*/_interopDefault(Image4);
23
23
  var Link9__default = /*#__PURE__*/_interopDefault(Link9);
24
24
  var dynamic__default = /*#__PURE__*/_interopDefault(dynamic);
@@ -270,7 +270,7 @@ function ThemeProvider({ config, children }) {
270
270
  init_config();
271
271
  var BASE_PATH = "/".replace(/\/+$/, "");
272
272
  var BaseAPI = class {
273
- constructor(configuration, basePath = BASE_PATH, axios = globalAxios18__default.default) {
273
+ constructor(configuration, basePath = BASE_PATH, axios = globalAxios21__default.default) {
274
274
  this.basePath = basePath;
275
275
  this.axios = axios;
276
276
  if (configuration) {
@@ -434,7 +434,7 @@ var UsersApiAxiosParamCreator = function(configuration) {
434
434
  },
435
435
  /**
436
436
  *
437
- * @summary Deletes a single user
437
+ * @summary Deletes my profile
438
438
  * @param {*} [options] Override http request option.
439
439
  * @throws {RequiredError}
440
440
  */
@@ -473,7 +473,7 @@ var UsersApiAxiosParamCreator = function(configuration) {
473
473
  },
474
474
  /**
475
475
  *
476
- * @summary Deletes a single user
476
+ * @summary Deletes a single user by ID (Admin only)
477
477
  * @param {string} id
478
478
  * @param {*} [options] Override http request option.
479
479
  * @throws {RequiredError}
@@ -941,7 +941,7 @@ var UsersApiFp = function(configuration) {
941
941
  */
942
942
  async allowUserCredit(body, userId, options) {
943
943
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).allowUserCredit(body, userId, options);
944
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
944
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
945
945
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
946
946
  return axios.request(axiosRequestArgs);
947
947
  };
@@ -955,7 +955,7 @@ var UsersApiFp = function(configuration) {
955
955
  */
956
956
  async changeUserEmail(body, options) {
957
957
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).changeUserEmail(body, options);
958
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
958
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
959
959
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
960
960
  return axios.request(axiosRequestArgs);
961
961
  };
@@ -969,34 +969,34 @@ var UsersApiFp = function(configuration) {
969
969
  */
970
970
  async createUser(body, options) {
971
971
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).createUser(body, options);
972
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
972
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
973
973
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
974
974
  return axios.request(axiosRequestArgs);
975
975
  };
976
976
  },
977
977
  /**
978
978
  *
979
- * @summary Deletes a single user
979
+ * @summary Deletes my profile
980
980
  * @param {*} [options] Override http request option.
981
981
  * @throws {RequiredError}
982
982
  */
983
983
  async deleteMyProfile(options) {
984
984
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).deleteMyProfile(options);
985
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
985
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
986
986
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
987
987
  return axios.request(axiosRequestArgs);
988
988
  };
989
989
  },
990
990
  /**
991
991
  *
992
- * @summary Deletes a single user
992
+ * @summary Deletes a single user by ID (Admin only)
993
993
  * @param {string} id
994
994
  * @param {*} [options] Override http request option.
995
995
  * @throws {RequiredError}
996
996
  */
997
997
  async deleteUser(id, options) {
998
998
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).deleteUser(id, options);
999
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
999
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
1000
1000
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1001
1001
  return axios.request(axiosRequestArgs);
1002
1002
  };
@@ -1010,7 +1010,7 @@ var UsersApiFp = function(configuration) {
1010
1010
  */
1011
1011
  async disableUserCredit(userId, options) {
1012
1012
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).disableUserCredit(userId, options);
1013
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
1013
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
1014
1014
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1015
1015
  return axios.request(axiosRequestArgs);
1016
1016
  };
@@ -1031,7 +1031,7 @@ var UsersApiFp = function(configuration) {
1031
1031
  */
1032
1032
  async getAllUsers(role, sortingOrder, sortingColumn, createdBefore, createdAfter, search, limit, page, options) {
1033
1033
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getAllUsers(role, sortingOrder, sortingColumn, createdBefore, createdAfter, search, limit, page, options);
1034
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
1034
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
1035
1035
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1036
1036
  return axios.request(axiosRequestArgs);
1037
1037
  };
@@ -1045,7 +1045,7 @@ var UsersApiFp = function(configuration) {
1045
1045
  */
1046
1046
  async getInsights(groupId, options) {
1047
1047
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getInsights(groupId, options);
1048
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
1048
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
1049
1049
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1050
1050
  return axios.request(axiosRequestArgs);
1051
1051
  };
@@ -1058,7 +1058,7 @@ var UsersApiFp = function(configuration) {
1058
1058
  */
1059
1059
  async getMyProfile(options) {
1060
1060
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getMyProfile(options);
1061
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
1061
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
1062
1062
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1063
1063
  return axios.request(axiosRequestArgs);
1064
1064
  };
@@ -1072,7 +1072,7 @@ var UsersApiFp = function(configuration) {
1072
1072
  */
1073
1073
  async getSingleUser(id, options) {
1074
1074
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getSingleUser(id, options);
1075
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
1075
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
1076
1076
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1077
1077
  return axios.request(axiosRequestArgs);
1078
1078
  };
@@ -1085,7 +1085,7 @@ var UsersApiFp = function(configuration) {
1085
1085
  */
1086
1086
  async sendOTP(options) {
1087
1087
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).sendOTP(options);
1088
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
1088
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
1089
1089
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1090
1090
  return axios.request(axiosRequestArgs);
1091
1091
  };
@@ -1099,7 +1099,7 @@ var UsersApiFp = function(configuration) {
1099
1099
  */
1100
1100
  async updateMyProfile(body, options) {
1101
1101
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).updateMyProfile(body, options);
1102
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
1102
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
1103
1103
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1104
1104
  return axios.request(axiosRequestArgs);
1105
1105
  };
@@ -1114,7 +1114,7 @@ var UsersApiFp = function(configuration) {
1114
1114
  */
1115
1115
  async updateUser(body, id, options) {
1116
1116
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).updateUser(body, id, options);
1117
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
1117
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
1118
1118
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1119
1119
  return axios.request(axiosRequestArgs);
1120
1120
  };
@@ -1127,7 +1127,7 @@ var UsersApiFp = function(configuration) {
1127
1127
  */
1128
1128
  async verifyOTP(options) {
1129
1129
  const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).verifyOTP(options);
1130
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
1130
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
1131
1131
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1132
1132
  return axios.request(axiosRequestArgs);
1133
1133
  };
@@ -1171,7 +1171,7 @@ var UsersApi = class extends BaseAPI {
1171
1171
  }
1172
1172
  /**
1173
1173
  *
1174
- * @summary Deletes a single user
1174
+ * @summary Deletes my profile
1175
1175
  * @param {*} [options] Override http request option.
1176
1176
  * @throws {RequiredError}
1177
1177
  * @memberof UsersApi
@@ -1181,7 +1181,7 @@ var UsersApi = class extends BaseAPI {
1181
1181
  }
1182
1182
  /**
1183
1183
  *
1184
- * @summary Deletes a single user
1184
+ * @summary Deletes a single user by ID (Admin only)
1185
1185
  * @param {string} id
1186
1186
  * @param {*} [options] Override http request option.
1187
1187
  * @throws {RequiredError}
@@ -1428,16 +1428,20 @@ var AuthApiAxiosParamCreator = function(configuration) {
1428
1428
  * @summary Reset user password
1429
1429
  * @param {string} newPassword
1430
1430
  * @param {string} token
1431
+ * @param {string} xStoreKey
1431
1432
  * @param {*} [options] Override http request option.
1432
1433
  * @throws {RequiredError}
1433
1434
  */
1434
- resetPassword: async (newPassword, token, options = {}) => {
1435
+ resetPassword: async (newPassword, token, xStoreKey, options = {}) => {
1435
1436
  if (newPassword === null || newPassword === void 0) {
1436
1437
  throw new RequiredError("newPassword", "Required parameter newPassword was null or undefined when calling resetPassword.");
1437
1438
  }
1438
1439
  if (token === null || token === void 0) {
1439
1440
  throw new RequiredError("token", "Required parameter token was null or undefined when calling resetPassword.");
1440
1441
  }
1442
+ if (xStoreKey === null || xStoreKey === void 0) {
1443
+ throw new RequiredError("xStoreKey", "Required parameter xStoreKey was null or undefined when calling resetPassword.");
1444
+ }
1441
1445
  const localVarPath = `/auth/reset-password`;
1442
1446
  const localVarUrlObj = new URL(localVarPath, "https://example.com");
1443
1447
  let baseOptions;
@@ -1457,6 +1461,9 @@ var AuthApiAxiosParamCreator = function(configuration) {
1457
1461
  if (token !== void 0 && token !== null) {
1458
1462
  localVarHeaderParameter["token"] = String(token);
1459
1463
  }
1464
+ if (xStoreKey !== void 0 && xStoreKey !== null) {
1465
+ localVarHeaderParameter["x-store-key"] = String(xStoreKey);
1466
+ }
1460
1467
  const query = new URLSearchParams(localVarUrlObj.search);
1461
1468
  for (const key in localVarQueryParameter) {
1462
1469
  query.set(key, localVarQueryParameter[key]);
@@ -1737,7 +1744,7 @@ var AuthApiFp = function(configuration) {
1737
1744
  */
1738
1745
  async changeEmail(body, options) {
1739
1746
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).changeEmail(body, options);
1740
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
1747
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
1741
1748
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1742
1749
  return axios.request(axiosRequestArgs);
1743
1750
  };
@@ -1751,7 +1758,7 @@ var AuthApiFp = function(configuration) {
1751
1758
  */
1752
1759
  async changePassword(body, options) {
1753
1760
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).changePassword(body, options);
1754
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
1761
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
1755
1762
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1756
1763
  return axios.request(axiosRequestArgs);
1757
1764
  };
@@ -1765,7 +1772,7 @@ var AuthApiFp = function(configuration) {
1765
1772
  */
1766
1773
  async dashboardLogin(body, options) {
1767
1774
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).dashboardLogin(body, options);
1768
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
1775
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
1769
1776
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1770
1777
  return axios.request(axiosRequestArgs);
1771
1778
  };
@@ -1775,12 +1782,13 @@ var AuthApiFp = function(configuration) {
1775
1782
  * @summary Reset user password
1776
1783
  * @param {string} newPassword
1777
1784
  * @param {string} token
1785
+ * @param {string} xStoreKey
1778
1786
  * @param {*} [options] Override http request option.
1779
1787
  * @throws {RequiredError}
1780
1788
  */
1781
- async resetPassword(newPassword, token, options) {
1782
- const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).resetPassword(newPassword, token, options);
1783
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
1789
+ async resetPassword(newPassword, token, xStoreKey, options) {
1790
+ const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).resetPassword(newPassword, token, xStoreKey, options);
1791
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
1784
1792
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1785
1793
  return axios.request(axiosRequestArgs);
1786
1794
  };
@@ -1794,7 +1802,7 @@ var AuthApiFp = function(configuration) {
1794
1802
  */
1795
1803
  async sendForgetPasswordEmail(body, options) {
1796
1804
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).sendForgetPasswordEmail(body, options);
1797
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
1805
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
1798
1806
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1799
1807
  return axios.request(axiosRequestArgs);
1800
1808
  };
@@ -1808,7 +1816,7 @@ var AuthApiFp = function(configuration) {
1808
1816
  */
1809
1817
  async signin(body, options) {
1810
1818
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signin(body, options);
1811
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
1819
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
1812
1820
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1813
1821
  return axios.request(axiosRequestArgs);
1814
1822
  };
@@ -1822,7 +1830,7 @@ var AuthApiFp = function(configuration) {
1822
1830
  */
1823
1831
  async signinWithGmail(body, options) {
1824
1832
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signinWithGmail(body, options);
1825
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
1833
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
1826
1834
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1827
1835
  return axios.request(axiosRequestArgs);
1828
1836
  };
@@ -1836,7 +1844,7 @@ var AuthApiFp = function(configuration) {
1836
1844
  */
1837
1845
  async signup(body, options) {
1838
1846
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signup(body, options);
1839
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
1847
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
1840
1848
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1841
1849
  return axios.request(axiosRequestArgs);
1842
1850
  };
@@ -1850,7 +1858,7 @@ var AuthApiFp = function(configuration) {
1850
1858
  */
1851
1859
  async signupWithGmail(body, options) {
1852
1860
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signupWithGmail(body, options);
1853
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
1861
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
1854
1862
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1855
1863
  return axios.request(axiosRequestArgs);
1856
1864
  };
@@ -1864,7 +1872,7 @@ var AuthApiFp = function(configuration) {
1864
1872
  */
1865
1873
  async verifyUserEmail(body, options) {
1866
1874
  const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).verifyUserEmail(body, options);
1867
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
1875
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
1868
1876
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
1869
1877
  return axios.request(axiosRequestArgs);
1870
1878
  };
@@ -1910,12 +1918,13 @@ var AuthApi = class extends BaseAPI {
1910
1918
  * @summary Reset user password
1911
1919
  * @param {string} newPassword
1912
1920
  * @param {string} token
1921
+ * @param {string} xStoreKey
1913
1922
  * @param {*} [options] Override http request option.
1914
1923
  * @throws {RequiredError}
1915
1924
  * @memberof AuthApi
1916
1925
  */
1917
- async resetPassword(newPassword, token, options) {
1918
- return AuthApiFp(this.configuration).resetPassword(newPassword, token, options).then((request) => request(this.axios, this.basePath));
1926
+ async resetPassword(newPassword, token, xStoreKey, options) {
1927
+ return AuthApiFp(this.configuration).resetPassword(newPassword, token, xStoreKey, options).then((request) => request(this.axios, this.basePath));
1919
1928
  }
1920
1929
  /**
1921
1930
  *
@@ -2784,7 +2793,7 @@ var AddressesApiFp = function(configuration) {
2784
2793
  */
2785
2794
  async adminCreateAddressForUser(body, userId, options) {
2786
2795
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminCreateAddressForUser(body, userId, options);
2787
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
2796
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
2788
2797
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2789
2798
  return axios.request(axiosRequestArgs);
2790
2799
  };
@@ -2798,7 +2807,7 @@ var AddressesApiFp = function(configuration) {
2798
2807
  */
2799
2808
  async adminDeleteUserAddress(addressId, options) {
2800
2809
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminDeleteUserAddress(addressId, options);
2801
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
2810
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
2802
2811
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2803
2812
  return axios.request(axiosRequestArgs);
2804
2813
  };
@@ -2812,7 +2821,7 @@ var AddressesApiFp = function(configuration) {
2812
2821
  */
2813
2822
  async adminGetSingleUserAddresses(userId, options) {
2814
2823
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminGetSingleUserAddresses(userId, options);
2815
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
2824
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
2816
2825
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2817
2826
  return axios.request(axiosRequestArgs);
2818
2827
  };
@@ -2827,7 +2836,7 @@ var AddressesApiFp = function(configuration) {
2827
2836
  */
2828
2837
  async adminUpdateUserAddress(body, addressId, options) {
2829
2838
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminUpdateUserAddress(body, addressId, options);
2830
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
2839
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
2831
2840
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2832
2841
  return axios.request(axiosRequestArgs);
2833
2842
  };
@@ -2841,7 +2850,7 @@ var AddressesApiFp = function(configuration) {
2841
2850
  */
2842
2851
  async createAddressForStore(body, options) {
2843
2852
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).createAddressForStore(body, options);
2844
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
2853
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
2845
2854
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2846
2855
  return axios.request(axiosRequestArgs);
2847
2856
  };
@@ -2855,7 +2864,7 @@ var AddressesApiFp = function(configuration) {
2855
2864
  */
2856
2865
  async createAddressForUser(body, options) {
2857
2866
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).createAddressForUser(body, options);
2858
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
2867
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
2859
2868
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2860
2869
  return axios.request(axiosRequestArgs);
2861
2870
  };
@@ -2869,7 +2878,7 @@ var AddressesApiFp = function(configuration) {
2869
2878
  */
2870
2879
  async deleteUserAddress(addressId, options) {
2871
2880
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).deleteUserAddress(addressId, options);
2872
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
2881
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
2873
2882
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2874
2883
  return axios.request(axiosRequestArgs);
2875
2884
  };
@@ -2883,7 +2892,7 @@ var AddressesApiFp = function(configuration) {
2883
2892
  */
2884
2893
  async getAllStoreAddresses(storeId, options) {
2885
2894
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getAllStoreAddresses(storeId, options);
2886
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
2895
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
2887
2896
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2888
2897
  return axios.request(axiosRequestArgs);
2889
2898
  };
@@ -2896,7 +2905,7 @@ var AddressesApiFp = function(configuration) {
2896
2905
  */
2897
2906
  async getAllUserAddresses(options) {
2898
2907
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getAllUserAddresses(options);
2899
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
2908
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
2900
2909
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2901
2910
  return axios.request(axiosRequestArgs);
2902
2911
  };
@@ -2909,7 +2918,7 @@ var AddressesApiFp = function(configuration) {
2909
2918
  */
2910
2919
  async getMyAddresses(options) {
2911
2920
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getMyAddresses(options);
2912
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
2921
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
2913
2922
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2914
2923
  return axios.request(axiosRequestArgs);
2915
2924
  };
@@ -2922,7 +2931,7 @@ var AddressesApiFp = function(configuration) {
2922
2931
  */
2923
2932
  async getMyDefaultAddress(options) {
2924
2933
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getMyDefaultAddress(options);
2925
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
2934
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
2926
2935
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2927
2936
  return axios.request(axiosRequestArgs);
2928
2937
  };
@@ -2936,7 +2945,7 @@ var AddressesApiFp = function(configuration) {
2936
2945
  */
2937
2946
  async getSingleAddress(addressId, options) {
2938
2947
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getSingleAddress(addressId, options);
2939
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
2948
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
2940
2949
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2941
2950
  return axios.request(axiosRequestArgs);
2942
2951
  };
@@ -2951,7 +2960,7 @@ var AddressesApiFp = function(configuration) {
2951
2960
  */
2952
2961
  async setDefaultShippingAddress(userId, addressId, options) {
2953
2962
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).setDefaultShippingAddress(userId, addressId, options);
2954
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
2963
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
2955
2964
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2956
2965
  return axios.request(axiosRequestArgs);
2957
2966
  };
@@ -2965,7 +2974,7 @@ var AddressesApiFp = function(configuration) {
2965
2974
  */
2966
2975
  async updateDefaultAddress(addressId, options) {
2967
2976
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).updateDefaultAddress(addressId, options);
2968
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
2977
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
2969
2978
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2970
2979
  return axios.request(axiosRequestArgs);
2971
2980
  };
@@ -2980,7 +2989,7 @@ var AddressesApiFp = function(configuration) {
2980
2989
  */
2981
2990
  async updateUserAddress(body, addressId, options) {
2982
2991
  const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).updateUserAddress(body, addressId, options);
2983
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
2992
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
2984
2993
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
2985
2994
  return axios.request(axiosRequestArgs);
2986
2995
  };
@@ -3362,7 +3371,7 @@ var CartApiFp = function(configuration) {
3362
3371
  */
3363
3372
  async clearCart(options) {
3364
3373
  const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).clearCart(options);
3365
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
3374
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
3366
3375
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3367
3376
  return axios.request(axiosRequestArgs);
3368
3377
  };
@@ -3376,7 +3385,7 @@ var CartApiFp = function(configuration) {
3376
3385
  */
3377
3386
  async getUserCart(rateId, options) {
3378
3387
  const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).getUserCart(rateId, options);
3379
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
3388
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
3380
3389
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3381
3390
  return axios.request(axiosRequestArgs);
3382
3391
  };
@@ -3390,7 +3399,7 @@ var CartApiFp = function(configuration) {
3390
3399
  */
3391
3400
  async handleUserCart(body, options) {
3392
3401
  const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).handleUserCart(body, options);
3393
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
3402
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
3394
3403
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3395
3404
  return axios.request(axiosRequestArgs);
3396
3405
  };
@@ -3408,7 +3417,7 @@ var CartApiFp = function(configuration) {
3408
3417
  */
3409
3418
  async handleVisitorCart(body, isDelivery, userId, rateId, addressId, options) {
3410
3419
  const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).handleVisitorCart(body, isDelivery, userId, rateId, addressId, options);
3411
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
3420
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
3412
3421
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3413
3422
  return axios.request(axiosRequestArgs);
3414
3423
  };
@@ -3731,6 +3740,52 @@ var CategoriesApiAxiosParamCreator = function(configuration) {
3731
3740
  options: localVarRequestOptions
3732
3741
  };
3733
3742
  },
3743
+ /**
3744
+ *
3745
+ * @summary Reorder categories
3746
+ * @param {ReorderCategoriesDto} body
3747
+ * @param {*} [options] Override http request option.
3748
+ * @throws {RequiredError}
3749
+ */
3750
+ reorderCategories: async (body, options = {}) => {
3751
+ if (body === null || body === void 0) {
3752
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling reorderCategories.");
3753
+ }
3754
+ const localVarPath = `/categories/reorder`;
3755
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
3756
+ let baseOptions;
3757
+ if (configuration) {
3758
+ baseOptions = configuration.baseOptions;
3759
+ }
3760
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
3761
+ const localVarHeaderParameter = {};
3762
+ const localVarQueryParameter = {};
3763
+ if (configuration && configuration.accessToken) {
3764
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
3765
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
3766
+ }
3767
+ if (configuration && configuration.apiKey) {
3768
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
3769
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
3770
+ }
3771
+ localVarHeaderParameter["Content-Type"] = "application/json";
3772
+ const query = new URLSearchParams(localVarUrlObj.search);
3773
+ for (const key in localVarQueryParameter) {
3774
+ query.set(key, localVarQueryParameter[key]);
3775
+ }
3776
+ for (const key in options.params) {
3777
+ query.set(key, options.params[key]);
3778
+ }
3779
+ localVarUrlObj.search = new URLSearchParams(query).toString();
3780
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3781
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3782
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
3783
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
3784
+ return {
3785
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
3786
+ options: localVarRequestOptions
3787
+ };
3788
+ },
3734
3789
  /**
3735
3790
  *
3736
3791
  * @summary Update category by id
@@ -3794,7 +3849,7 @@ var CategoriesApiFp = function(configuration) {
3794
3849
  */
3795
3850
  async createCategory(body, options) {
3796
3851
  const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).createCategory(body, options);
3797
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
3852
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
3798
3853
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3799
3854
  return axios.request(axiosRequestArgs);
3800
3855
  };
@@ -3808,7 +3863,7 @@ var CategoriesApiFp = function(configuration) {
3808
3863
  */
3809
3864
  async deleteCategory(id, options) {
3810
3865
  const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).deleteCategory(id, options);
3811
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
3866
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
3812
3867
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3813
3868
  return axios.request(axiosRequestArgs);
3814
3869
  };
@@ -3824,7 +3879,7 @@ var CategoriesApiFp = function(configuration) {
3824
3879
  */
3825
3880
  async getAllCategories(search, limit, page, options) {
3826
3881
  const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getAllCategories(search, limit, page, options);
3827
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
3882
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
3828
3883
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3829
3884
  return axios.request(axiosRequestArgs);
3830
3885
  };
@@ -3837,7 +3892,7 @@ var CategoriesApiFp = function(configuration) {
3837
3892
  */
3838
3893
  async getCategoreisAndSubCategories(options) {
3839
3894
  const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getCategoreisAndSubCategories(options);
3840
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
3895
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
3841
3896
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3842
3897
  return axios.request(axiosRequestArgs);
3843
3898
  };
@@ -3851,7 +3906,7 @@ var CategoriesApiFp = function(configuration) {
3851
3906
  */
3852
3907
  async getCategoryFilters(id, options) {
3853
3908
  const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getCategoryFilters(id, options);
3854
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
3909
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
3855
3910
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3856
3911
  return axios.request(axiosRequestArgs);
3857
3912
  };
@@ -3865,7 +3920,21 @@ var CategoriesApiFp = function(configuration) {
3865
3920
  */
3866
3921
  async getSingleCategory(id, options) {
3867
3922
  const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getSingleCategory(id, options);
3868
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
3923
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
3924
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3925
+ return axios.request(axiosRequestArgs);
3926
+ };
3927
+ },
3928
+ /**
3929
+ *
3930
+ * @summary Reorder categories
3931
+ * @param {ReorderCategoriesDto} body
3932
+ * @param {*} [options] Override http request option.
3933
+ * @throws {RequiredError}
3934
+ */
3935
+ async reorderCategories(body, options) {
3936
+ const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).reorderCategories(body, options);
3937
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
3869
3938
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3870
3939
  return axios.request(axiosRequestArgs);
3871
3940
  };
@@ -3880,7 +3949,7 @@ var CategoriesApiFp = function(configuration) {
3880
3949
  */
3881
3950
  async updateCategory(body, id, options) {
3882
3951
  const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).updateCategory(body, id, options);
3883
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
3952
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
3884
3953
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
3885
3954
  return axios.request(axiosRequestArgs);
3886
3955
  };
@@ -3955,6 +4024,17 @@ var CategoriesApi = class extends BaseAPI {
3955
4024
  async getSingleCategory(id, options) {
3956
4025
  return CategoriesApiFp(this.configuration).getSingleCategory(id, options).then((request) => request(this.axios, this.basePath));
3957
4026
  }
4027
+ /**
4028
+ *
4029
+ * @summary Reorder categories
4030
+ * @param {ReorderCategoriesDto} body
4031
+ * @param {*} [options] Override http request option.
4032
+ * @throws {RequiredError}
4033
+ * @memberof CategoriesApi
4034
+ */
4035
+ async reorderCategories(body, options) {
4036
+ return CategoriesApiFp(this.configuration).reorderCategories(body, options).then((request) => request(this.axios, this.basePath));
4037
+ }
3958
4038
  /**
3959
4039
  *
3960
4040
  * @summary Update category by id
@@ -4598,7 +4678,7 @@ var OrdersApiFp = function(configuration) {
4598
4678
  */
4599
4679
  async assignPaymentMethod(orderId, paymentMethod, billingAddressId, options) {
4600
4680
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).assignPaymentMethod(orderId, paymentMethod, billingAddressId, options);
4601
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
4681
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
4602
4682
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4603
4683
  return axios.request(axiosRequestArgs);
4604
4684
  };
@@ -4612,7 +4692,7 @@ var OrdersApiFp = function(configuration) {
4612
4692
  */
4613
4693
  async cancelOrder(id, options) {
4614
4694
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).cancelOrder(id, options);
4615
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
4695
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
4616
4696
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4617
4697
  return axios.request(axiosRequestArgs);
4618
4698
  };
@@ -4630,7 +4710,7 @@ var OrdersApiFp = function(configuration) {
4630
4710
  */
4631
4711
  async createCheckout(body, isDelivery, userId, rateId, billingAddressId, options) {
4632
4712
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).createCheckout(body, isDelivery, userId, rateId, billingAddressId, options);
4633
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
4713
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
4634
4714
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4635
4715
  return axios.request(axiosRequestArgs);
4636
4716
  };
@@ -4644,7 +4724,7 @@ var OrdersApiFp = function(configuration) {
4644
4724
  */
4645
4725
  async deleteOrder(id, options) {
4646
4726
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).deleteOrder(id, options);
4647
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
4727
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
4648
4728
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4649
4729
  return axios.request(axiosRequestArgs);
4650
4730
  };
@@ -4665,7 +4745,7 @@ var OrdersApiFp = function(configuration) {
4665
4745
  */
4666
4746
  async getAllOrders(paymentStatus, orderStatus, page, limit, search, createdAfter, createdBefore, userId, options) {
4667
4747
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getAllOrders(paymentStatus, orderStatus, page, limit, search, createdAfter, createdBefore, userId, options);
4668
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
4748
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
4669
4749
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4670
4750
  return axios.request(axiosRequestArgs);
4671
4751
  };
@@ -4679,7 +4759,7 @@ var OrdersApiFp = function(configuration) {
4679
4759
  */
4680
4760
  async getSingleOrder(id, options) {
4681
4761
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getSingleOrder(id, options);
4682
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
4762
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
4683
4763
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4684
4764
  return axios.request(axiosRequestArgs);
4685
4765
  };
@@ -4692,7 +4772,7 @@ var OrdersApiFp = function(configuration) {
4692
4772
  */
4693
4773
  async getStoreOrderInsights(options) {
4694
4774
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getStoreOrderInsights(options);
4695
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
4775
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
4696
4776
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4697
4777
  return axios.request(axiosRequestArgs);
4698
4778
  };
@@ -4705,7 +4785,7 @@ var OrdersApiFp = function(configuration) {
4705
4785
  */
4706
4786
  async getUserOrders(options) {
4707
4787
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getUserOrders(options);
4708
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
4788
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
4709
4789
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4710
4790
  return axios.request(axiosRequestArgs);
4711
4791
  };
@@ -4719,7 +4799,7 @@ var OrdersApiFp = function(configuration) {
4719
4799
  */
4720
4800
  async payOrder(orderId, options) {
4721
4801
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).payOrder(orderId, options);
4722
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
4802
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
4723
4803
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4724
4804
  return axios.request(axiosRequestArgs);
4725
4805
  };
@@ -4733,7 +4813,7 @@ var OrdersApiFp = function(configuration) {
4733
4813
  */
4734
4814
  async sendOrderEmail(body, options) {
4735
4815
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).sendOrderEmail(body, options);
4736
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
4816
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
4737
4817
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4738
4818
  return axios.request(axiosRequestArgs);
4739
4819
  };
@@ -4754,7 +4834,7 @@ var OrdersApiFp = function(configuration) {
4754
4834
  */
4755
4835
  async updateOrder(body, isDelivery, id, paymentMethod, userId, rateId, addressId, billingAddressId, options) {
4756
4836
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).updateOrder(body, isDelivery, id, paymentMethod, userId, rateId, addressId, billingAddressId, options);
4757
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
4837
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
4758
4838
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4759
4839
  return axios.request(axiosRequestArgs);
4760
4840
  };
@@ -4769,7 +4849,7 @@ var OrdersApiFp = function(configuration) {
4769
4849
  */
4770
4850
  async updateOrderStatus(id, orderStatus, options) {
4771
4851
  const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).updateOrderStatus(id, orderStatus, options);
4772
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
4852
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
4773
4853
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
4774
4854
  return axios.request(axiosRequestArgs);
4775
4855
  };
@@ -5672,6 +5752,52 @@ var ProductsApiAxiosParamCreator = function(configuration) {
5672
5752
  options: localVarRequestOptions
5673
5753
  };
5674
5754
  },
5755
+ /**
5756
+ *
5757
+ * @summary Reorder products within a category or subcategory
5758
+ * @param {ReorderProductsDto} body
5759
+ * @param {*} [options] Override http request option.
5760
+ * @throws {RequiredError}
5761
+ */
5762
+ reorderProducts: async (body, options = {}) => {
5763
+ if (body === null || body === void 0) {
5764
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling reorderProducts.");
5765
+ }
5766
+ const localVarPath = `/products/reorder`;
5767
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
5768
+ let baseOptions;
5769
+ if (configuration) {
5770
+ baseOptions = configuration.baseOptions;
5771
+ }
5772
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
5773
+ const localVarHeaderParameter = {};
5774
+ const localVarQueryParameter = {};
5775
+ if (configuration && configuration.accessToken) {
5776
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
5777
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
5778
+ }
5779
+ if (configuration && configuration.apiKey) {
5780
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
5781
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
5782
+ }
5783
+ localVarHeaderParameter["Content-Type"] = "application/json";
5784
+ const query = new URLSearchParams(localVarUrlObj.search);
5785
+ for (const key in localVarQueryParameter) {
5786
+ query.set(key, localVarQueryParameter[key]);
5787
+ }
5788
+ for (const key in options.params) {
5789
+ query.set(key, options.params[key]);
5790
+ }
5791
+ localVarUrlObj.search = new URLSearchParams(query).toString();
5792
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5793
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5794
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
5795
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
5796
+ return {
5797
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
5798
+ options: localVarRequestOptions
5799
+ };
5800
+ },
5675
5801
  /**
5676
5802
  *
5677
5803
  * @summary Update variant inventory (add or subtract)
@@ -5844,7 +5970,7 @@ var ProductsApiFp = function(configuration) {
5844
5970
  */
5845
5971
  async addVariant(body, productId, options) {
5846
5972
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).addVariant(body, productId, options);
5847
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
5973
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
5848
5974
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5849
5975
  return axios.request(axiosRequestArgs);
5850
5976
  };
@@ -5858,7 +5984,7 @@ var ProductsApiFp = function(configuration) {
5858
5984
  */
5859
5985
  async createProduct(body, options) {
5860
5986
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).createProduct(body, options);
5861
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
5987
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
5862
5988
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5863
5989
  return axios.request(axiosRequestArgs);
5864
5990
  };
@@ -5872,7 +5998,7 @@ var ProductsApiFp = function(configuration) {
5872
5998
  */
5873
5999
  async createProductLegacy(body, options) {
5874
6000
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).createProductLegacy(body, options);
5875
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6001
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
5876
6002
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5877
6003
  return axios.request(axiosRequestArgs);
5878
6004
  };
@@ -5886,7 +6012,7 @@ var ProductsApiFp = function(configuration) {
5886
6012
  */
5887
6013
  async deleteProduct(id, options) {
5888
6014
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).deleteProduct(id, options);
5889
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6015
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
5890
6016
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5891
6017
  return axios.request(axiosRequestArgs);
5892
6018
  };
@@ -5901,7 +6027,7 @@ var ProductsApiFp = function(configuration) {
5901
6027
  */
5902
6028
  async deleteVariant(productId, variantId, options) {
5903
6029
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).deleteVariant(productId, variantId, options);
5904
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6030
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
5905
6031
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5906
6032
  return axios.request(axiosRequestArgs);
5907
6033
  };
@@ -5915,7 +6041,7 @@ var ProductsApiFp = function(configuration) {
5915
6041
  */
5916
6042
  async getAllCategoryProducts(categoryId, options) {
5917
6043
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllCategoryProducts(categoryId, options);
5918
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6044
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
5919
6045
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5920
6046
  return axios.request(axiosRequestArgs);
5921
6047
  };
@@ -5928,7 +6054,7 @@ var ProductsApiFp = function(configuration) {
5928
6054
  */
5929
6055
  async getAllFilters(options) {
5930
6056
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllFilters(options);
5931
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6057
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
5932
6058
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5933
6059
  return axios.request(axiosRequestArgs);
5934
6060
  };
@@ -5952,7 +6078,7 @@ var ProductsApiFp = function(configuration) {
5952
6078
  */
5953
6079
  async getAllProducts(searchTerm, maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options) {
5954
6080
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProducts(searchTerm, maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options);
5955
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6081
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
5956
6082
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5957
6083
  return axios.request(axiosRequestArgs);
5958
6084
  };
@@ -5966,7 +6092,7 @@ var ProductsApiFp = function(configuration) {
5966
6092
  */
5967
6093
  async getAllProductsBySubCategory(subCategoryId, options) {
5968
6094
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProductsBySubCategory(subCategoryId, options);
5969
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6095
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
5970
6096
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5971
6097
  return axios.request(axiosRequestArgs);
5972
6098
  };
@@ -5979,7 +6105,7 @@ var ProductsApiFp = function(configuration) {
5979
6105
  */
5980
6106
  async getFeaturedProduct(options) {
5981
6107
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getFeaturedProduct(options);
5982
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6108
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
5983
6109
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5984
6110
  return axios.request(axiosRequestArgs);
5985
6111
  };
@@ -5992,7 +6118,7 @@ var ProductsApiFp = function(configuration) {
5992
6118
  */
5993
6119
  async getProductsInsights(options) {
5994
6120
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getProductsInsights(options);
5995
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6121
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
5996
6122
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
5997
6123
  return axios.request(axiosRequestArgs);
5998
6124
  };
@@ -6007,7 +6133,7 @@ var ProductsApiFp = function(configuration) {
6007
6133
  */
6008
6134
  async getRelatedProducts(id, limit, options) {
6009
6135
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getRelatedProducts(id, limit, options);
6010
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6136
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
6011
6137
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6012
6138
  return axios.request(axiosRequestArgs);
6013
6139
  };
@@ -6021,7 +6147,7 @@ var ProductsApiFp = function(configuration) {
6021
6147
  */
6022
6148
  async getRelatedProductsLegacy(productId, options) {
6023
6149
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getRelatedProductsLegacy(productId, options);
6024
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6150
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
6025
6151
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6026
6152
  return axios.request(axiosRequestArgs);
6027
6153
  };
@@ -6035,7 +6161,7 @@ var ProductsApiFp = function(configuration) {
6035
6161
  */
6036
6162
  async getSingleProduct(id, options) {
6037
6163
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getSingleProduct(id, options);
6038
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6164
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
6039
6165
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6040
6166
  return axios.request(axiosRequestArgs);
6041
6167
  };
@@ -6049,7 +6175,7 @@ var ProductsApiFp = function(configuration) {
6049
6175
  */
6050
6176
  async getSingleProductLegacy(id, options) {
6051
6177
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getSingleProductLegacy(id, options);
6052
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6178
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
6053
6179
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6054
6180
  return axios.request(axiosRequestArgs);
6055
6181
  };
@@ -6064,7 +6190,21 @@ var ProductsApiFp = function(configuration) {
6064
6190
  */
6065
6191
  async getTopSellingProducts(limit, page, options) {
6066
6192
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getTopSellingProducts(limit, page, options);
6067
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6193
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
6194
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6195
+ return axios.request(axiosRequestArgs);
6196
+ };
6197
+ },
6198
+ /**
6199
+ *
6200
+ * @summary Reorder products within a category or subcategory
6201
+ * @param {ReorderProductsDto} body
6202
+ * @param {*} [options] Override http request option.
6203
+ * @throws {RequiredError}
6204
+ */
6205
+ async reorderProducts(body, options) {
6206
+ const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).reorderProducts(body, options);
6207
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
6068
6208
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6069
6209
  return axios.request(axiosRequestArgs);
6070
6210
  };
@@ -6080,7 +6220,7 @@ var ProductsApiFp = function(configuration) {
6080
6220
  */
6081
6221
  async updateInventory(body, productId, variantId, options) {
6082
6222
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateInventory(body, productId, variantId, options);
6083
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6223
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
6084
6224
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6085
6225
  return axios.request(axiosRequestArgs);
6086
6226
  };
@@ -6095,7 +6235,7 @@ var ProductsApiFp = function(configuration) {
6095
6235
  */
6096
6236
  async updateProduct(body, id, options) {
6097
6237
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateProduct(body, id, options);
6098
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6238
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
6099
6239
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6100
6240
  return axios.request(axiosRequestArgs);
6101
6241
  };
@@ -6111,7 +6251,7 @@ var ProductsApiFp = function(configuration) {
6111
6251
  */
6112
6252
  async updateVariant(body, productId, variantId, options) {
6113
6253
  const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateVariant(body, productId, variantId, options);
6114
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6254
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
6115
6255
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6116
6256
  return axios.request(axiosRequestArgs);
6117
6257
  };
@@ -6306,6 +6446,17 @@ var ProductsApi = class extends BaseAPI {
6306
6446
  async getTopSellingProducts(limit, page, options) {
6307
6447
  return ProductsApiFp(this.configuration).getTopSellingProducts(limit, page, options).then((request) => request(this.axios, this.basePath));
6308
6448
  }
6449
+ /**
6450
+ *
6451
+ * @summary Reorder products within a category or subcategory
6452
+ * @param {ReorderProductsDto} body
6453
+ * @param {*} [options] Override http request option.
6454
+ * @throws {RequiredError}
6455
+ * @memberof ProductsApi
6456
+ */
6457
+ async reorderProducts(body, options) {
6458
+ return ProductsApiFp(this.configuration).reorderProducts(body, options).then((request) => request(this.axios, this.basePath));
6459
+ }
6309
6460
  /**
6310
6461
  *
6311
6462
  * @summary Update variant inventory (add or subtract)
@@ -6556,6 +6707,56 @@ var ShippingApiAxiosParamCreator = function(configuration) {
6556
6707
  url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
6557
6708
  options: localVarRequestOptions
6558
6709
  };
6710
+ },
6711
+ /**
6712
+ *
6713
+ * @summary Update manual shipment status (for non-Shippo deliveries only)
6714
+ * @param {UpdateManualShipmentStatusDto} body
6715
+ * @param {string} shipmentId
6716
+ * @param {*} [options] Override http request option.
6717
+ * @throws {RequiredError}
6718
+ */
6719
+ updateManualShipmentStatus: async (body, shipmentId, options = {}) => {
6720
+ if (body === null || body === void 0) {
6721
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling updateManualShipmentStatus.");
6722
+ }
6723
+ if (shipmentId === null || shipmentId === void 0) {
6724
+ throw new RequiredError("shipmentId", "Required parameter shipmentId was null or undefined when calling updateManualShipmentStatus.");
6725
+ }
6726
+ const localVarPath = `/shipping/shipments/{shipmentId}/status`.replace(`{${"shipmentId"}}`, encodeURIComponent(String(shipmentId)));
6727
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
6728
+ let baseOptions;
6729
+ if (configuration) {
6730
+ baseOptions = configuration.baseOptions;
6731
+ }
6732
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
6733
+ const localVarHeaderParameter = {};
6734
+ const localVarQueryParameter = {};
6735
+ if (configuration && configuration.accessToken) {
6736
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
6737
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
6738
+ }
6739
+ if (configuration && configuration.apiKey) {
6740
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
6741
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
6742
+ }
6743
+ localVarHeaderParameter["Content-Type"] = "application/json";
6744
+ const query = new URLSearchParams(localVarUrlObj.search);
6745
+ for (const key in localVarQueryParameter) {
6746
+ query.set(key, localVarQueryParameter[key]);
6747
+ }
6748
+ for (const key in options.params) {
6749
+ query.set(key, options.params[key]);
6750
+ }
6751
+ localVarUrlObj.search = new URLSearchParams(query).toString();
6752
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6753
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6754
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
6755
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
6756
+ return {
6757
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
6758
+ options: localVarRequestOptions
6759
+ };
6559
6760
  }
6560
6761
  };
6561
6762
  };
@@ -6569,7 +6770,7 @@ var ShippingApiFp = function(configuration) {
6569
6770
  */
6570
6771
  async getAllShipments(options) {
6571
6772
  const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getAllShipments(options);
6572
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6773
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
6573
6774
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6574
6775
  return axios.request(axiosRequestArgs);
6575
6776
  };
@@ -6582,7 +6783,7 @@ var ShippingApiFp = function(configuration) {
6582
6783
  */
6583
6784
  async getAllUserShipments(options) {
6584
6785
  const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getAllUserShipments(options);
6585
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6786
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
6586
6787
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6587
6788
  return axios.request(axiosRequestArgs);
6588
6789
  };
@@ -6596,7 +6797,7 @@ var ShippingApiFp = function(configuration) {
6596
6797
  */
6597
6798
  async getOrderShipment(orderId, options) {
6598
6799
  const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getOrderShipment(orderId, options);
6599
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6800
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
6600
6801
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6601
6802
  return axios.request(axiosRequestArgs);
6602
6803
  };
@@ -6611,7 +6812,7 @@ var ShippingApiFp = function(configuration) {
6611
6812
  */
6612
6813
  async getShippingRates(body, addressId, options) {
6613
6814
  const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getShippingRates(body, addressId, options);
6614
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6815
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
6615
6816
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6616
6817
  return axios.request(axiosRequestArgs);
6617
6818
  };
@@ -6624,7 +6825,22 @@ var ShippingApiFp = function(configuration) {
6624
6825
  */
6625
6826
  async getStoreAddress(options) {
6626
6827
  const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getStoreAddress(options);
6627
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6828
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
6829
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6830
+ return axios.request(axiosRequestArgs);
6831
+ };
6832
+ },
6833
+ /**
6834
+ *
6835
+ * @summary Update manual shipment status (for non-Shippo deliveries only)
6836
+ * @param {UpdateManualShipmentStatusDto} body
6837
+ * @param {string} shipmentId
6838
+ * @param {*} [options] Override http request option.
6839
+ * @throws {RequiredError}
6840
+ */
6841
+ async updateManualShipmentStatus(body, shipmentId, options) {
6842
+ const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).updateManualShipmentStatus(body, shipmentId, options);
6843
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
6628
6844
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6629
6845
  return axios.request(axiosRequestArgs);
6630
6846
  };
@@ -6685,21 +6901,33 @@ var ShippingApi = class extends BaseAPI {
6685
6901
  async getStoreAddress(options) {
6686
6902
  return ShippingApiFp(this.configuration).getStoreAddress(options).then((request) => request(this.axios, this.basePath));
6687
6903
  }
6904
+ /**
6905
+ *
6906
+ * @summary Update manual shipment status (for non-Shippo deliveries only)
6907
+ * @param {UpdateManualShipmentStatusDto} body
6908
+ * @param {string} shipmentId
6909
+ * @param {*} [options] Override http request option.
6910
+ * @throws {RequiredError}
6911
+ * @memberof ShippingApi
6912
+ */
6913
+ async updateManualShipmentStatus(body, shipmentId, options) {
6914
+ return ShippingApiFp(this.configuration).updateManualShipmentStatus(body, shipmentId, options).then((request) => request(this.axios, this.basePath));
6915
+ }
6688
6916
  };
6689
- var WishlistApiAxiosParamCreator = function(configuration) {
6917
+ var StoresApiAxiosParamCreator = function(configuration) {
6690
6918
  return {
6691
6919
  /**
6692
6920
  *
6693
- * @summary Add product to wishlist
6694
- * @param {string} productId
6921
+ * @summary Create a new store
6922
+ * @param {CreateStoreDto} body
6695
6923
  * @param {*} [options] Override http request option.
6696
6924
  * @throws {RequiredError}
6697
6925
  */
6698
- addToWishlist: async (productId, options = {}) => {
6699
- if (productId === null || productId === void 0) {
6700
- throw new RequiredError("productId", "Required parameter productId was null or undefined when calling addToWishlist.");
6926
+ createStore: async (body, options = {}) => {
6927
+ if (body === null || body === void 0) {
6928
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling createStore.");
6701
6929
  }
6702
- const localVarPath = `/wishlist/add/{productId}`.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
6930
+ const localVarPath = `/stores`;
6703
6931
  const localVarUrlObj = new URL(localVarPath, "https://example.com");
6704
6932
  let baseOptions;
6705
6933
  if (configuration) {
@@ -6708,10 +6936,11 @@ var WishlistApiAxiosParamCreator = function(configuration) {
6708
6936
  const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
6709
6937
  const localVarHeaderParameter = {};
6710
6938
  const localVarQueryParameter = {};
6711
- if (configuration && configuration.accessToken) {
6712
- const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
6713
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
6939
+ if (configuration && configuration.apiKey) {
6940
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
6941
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
6714
6942
  }
6943
+ localVarHeaderParameter["Content-Type"] = "application/json";
6715
6944
  const query = new URLSearchParams(localVarUrlObj.search);
6716
6945
  for (const key in localVarQueryParameter) {
6717
6946
  query.set(key, localVarQueryParameter[key]);
@@ -6722,6 +6951,8 @@ var WishlistApiAxiosParamCreator = function(configuration) {
6722
6951
  localVarUrlObj.search = new URLSearchParams(query).toString();
6723
6952
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6724
6953
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6954
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
6955
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
6725
6956
  return {
6726
6957
  url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
6727
6958
  options: localVarRequestOptions
@@ -6729,12 +6960,16 @@ var WishlistApiAxiosParamCreator = function(configuration) {
6729
6960
  },
6730
6961
  /**
6731
6962
  *
6732
- * @summary Clear wishlist
6963
+ * @summary Delete refill request by id
6964
+ * @param {string} requestId
6733
6965
  * @param {*} [options] Override http request option.
6734
6966
  * @throws {RequiredError}
6735
6967
  */
6736
- clearWishlist: async (options = {}) => {
6737
- const localVarPath = `/wishlist/clear`;
6968
+ deleteRefillRequest: async (requestId, options = {}) => {
6969
+ if (requestId === null || requestId === void 0) {
6970
+ throw new RequiredError("requestId", "Required parameter requestId was null or undefined when calling deleteRefillRequest.");
6971
+ }
6972
+ const localVarPath = `/stores/{id}/refill-requests/{requestId}`.replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
6738
6973
  const localVarUrlObj = new URL(localVarPath, "https://example.com");
6739
6974
  let baseOptions;
6740
6975
  if (configuration) {
@@ -6743,9 +6978,9 @@ var WishlistApiAxiosParamCreator = function(configuration) {
6743
6978
  const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
6744
6979
  const localVarHeaderParameter = {};
6745
6980
  const localVarQueryParameter = {};
6746
- if (configuration && configuration.accessToken) {
6747
- const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
6748
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
6981
+ if (configuration && configuration.apiKey) {
6982
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
6983
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
6749
6984
  }
6750
6985
  const query = new URLSearchParams(localVarUrlObj.search);
6751
6986
  for (const key in localVarQueryParameter) {
@@ -6764,23 +6999,27 @@ var WishlistApiAxiosParamCreator = function(configuration) {
6764
6999
  },
6765
7000
  /**
6766
7001
  *
6767
- * @summary Get user wishlist
7002
+ * @summary Delete store by id
7003
+ * @param {string} id
6768
7004
  * @param {*} [options] Override http request option.
6769
7005
  * @throws {RequiredError}
6770
7006
  */
6771
- getWishlist: async (options = {}) => {
6772
- const localVarPath = `/wishlist`;
7007
+ deleteStore: async (id, options = {}) => {
7008
+ if (id === null || id === void 0) {
7009
+ throw new RequiredError("id", "Required parameter id was null or undefined when calling deleteStore.");
7010
+ }
7011
+ const localVarPath = `/stores/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
6773
7012
  const localVarUrlObj = new URL(localVarPath, "https://example.com");
6774
7013
  let baseOptions;
6775
7014
  if (configuration) {
6776
7015
  baseOptions = configuration.baseOptions;
6777
7016
  }
6778
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
7017
+ const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
6779
7018
  const localVarHeaderParameter = {};
6780
7019
  const localVarQueryParameter = {};
6781
- if (configuration && configuration.accessToken) {
6782
- const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
6783
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
7020
+ if (configuration && configuration.apiKey) {
7021
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7022
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
6784
7023
  }
6785
7024
  const query = new URLSearchParams(localVarUrlObj.search);
6786
7025
  for (const key in localVarQueryParameter) {
@@ -6799,23 +7038,27 @@ var WishlistApiAxiosParamCreator = function(configuration) {
6799
7038
  },
6800
7039
  /**
6801
7040
  *
6802
- * @summary Get wishlist item count
7041
+ * @summary Delete transfere patients request by id
7042
+ * @param {string} requestId
6803
7043
  * @param {*} [options] Override http request option.
6804
7044
  * @throws {RequiredError}
6805
7045
  */
6806
- getWishlistItemCount: async (options = {}) => {
6807
- const localVarPath = `/wishlist/count`;
7046
+ deleteTransferePatientsRequest: async (requestId, options = {}) => {
7047
+ if (requestId === null || requestId === void 0) {
7048
+ throw new RequiredError("requestId", "Required parameter requestId was null or undefined when calling deleteTransferePatientsRequest.");
7049
+ }
7050
+ const localVarPath = `/stores/{id}/transfere-patients-requests/{requestId}`.replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
6808
7051
  const localVarUrlObj = new URL(localVarPath, "https://example.com");
6809
7052
  let baseOptions;
6810
7053
  if (configuration) {
6811
7054
  baseOptions = configuration.baseOptions;
6812
7055
  }
6813
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
7056
+ const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
6814
7057
  const localVarHeaderParameter = {};
6815
7058
  const localVarQueryParameter = {};
6816
- if (configuration && configuration.accessToken) {
6817
- const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
6818
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
7059
+ if (configuration && configuration.apiKey) {
7060
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7061
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
6819
7062
  }
6820
7063
  const query = new URLSearchParams(localVarUrlObj.search);
6821
7064
  for (const key in localVarQueryParameter) {
@@ -6834,27 +7077,23 @@ var WishlistApiAxiosParamCreator = function(configuration) {
6834
7077
  },
6835
7078
  /**
6836
7079
  *
6837
- * @summary Remove product from wishlist
6838
- * @param {string} productId
7080
+ * @summary Get all stores
6839
7081
  * @param {*} [options] Override http request option.
6840
7082
  * @throws {RequiredError}
6841
7083
  */
6842
- removeFromWishlist: async (productId, options = {}) => {
6843
- if (productId === null || productId === void 0) {
6844
- throw new RequiredError("productId", "Required parameter productId was null or undefined when calling removeFromWishlist.");
6845
- }
6846
- const localVarPath = `/wishlist/remove/{productId}`.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
7084
+ getAllStores: async (options = {}) => {
7085
+ const localVarPath = `/stores`;
6847
7086
  const localVarUrlObj = new URL(localVarPath, "https://example.com");
6848
7087
  let baseOptions;
6849
7088
  if (configuration) {
6850
7089
  baseOptions = configuration.baseOptions;
6851
7090
  }
6852
- const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
7091
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
6853
7092
  const localVarHeaderParameter = {};
6854
7093
  const localVarQueryParameter = {};
6855
- if (configuration && configuration.accessToken) {
6856
- const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
6857
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
7094
+ if (configuration && configuration.apiKey) {
7095
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7096
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
6858
7097
  }
6859
7098
  const query = new URLSearchParams(localVarUrlObj.search);
6860
7099
  for (const key in localVarQueryParameter) {
@@ -6870,24 +7109,1669 @@ var WishlistApiAxiosParamCreator = function(configuration) {
6870
7109
  url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
6871
7110
  options: localVarRequestOptions
6872
7111
  };
6873
- }
6874
- };
6875
- };
6876
- var WishlistApiFp = function(configuration) {
6877
- return {
7112
+ },
6878
7113
  /**
6879
7114
  *
6880
- * @summary Add product to wishlist
6881
- * @param {string} productId
7115
+ * @summary Get store API keys with masked values
7116
+ * @param {string} storeId
6882
7117
  * @param {*} [options] Override http request option.
6883
7118
  * @throws {RequiredError}
6884
7119
  */
6885
- async addToWishlist(productId, options) {
6886
- const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).addToWishlist(productId, options);
6887
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
6888
- const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6889
- return axios.request(axiosRequestArgs);
6890
- };
7120
+ getApiKeys: async (storeId, options = {}) => {
7121
+ if (storeId === null || storeId === void 0) {
7122
+ throw new RequiredError("storeId", "Required parameter storeId was null or undefined when calling getApiKeys.");
7123
+ }
7124
+ const localVarPath = `/stores/{storeId}/api-keys`.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
7125
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7126
+ let baseOptions;
7127
+ if (configuration) {
7128
+ baseOptions = configuration.baseOptions;
7129
+ }
7130
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
7131
+ const localVarHeaderParameter = {};
7132
+ const localVarQueryParameter = {};
7133
+ if (configuration && configuration.apiKey) {
7134
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7135
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7136
+ }
7137
+ const query = new URLSearchParams(localVarUrlObj.search);
7138
+ for (const key in localVarQueryParameter) {
7139
+ query.set(key, localVarQueryParameter[key]);
7140
+ }
7141
+ for (const key in options.params) {
7142
+ query.set(key, options.params[key]);
7143
+ }
7144
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7145
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7146
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7147
+ return {
7148
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7149
+ options: localVarRequestOptions
7150
+ };
7151
+ },
7152
+ /**
7153
+ *
7154
+ * @summary Get refill requests by store id
7155
+ * @param {string} storeId
7156
+ * @param {*} [options] Override http request option.
7157
+ * @throws {RequiredError}
7158
+ */
7159
+ getRefillRequests: async (storeId, options = {}) => {
7160
+ if (storeId === null || storeId === void 0) {
7161
+ throw new RequiredError("storeId", "Required parameter storeId was null or undefined when calling getRefillRequests.");
7162
+ }
7163
+ const localVarPath = `/stores/{storeId}/refill-requests`.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
7164
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7165
+ let baseOptions;
7166
+ if (configuration) {
7167
+ baseOptions = configuration.baseOptions;
7168
+ }
7169
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
7170
+ const localVarHeaderParameter = {};
7171
+ const localVarQueryParameter = {};
7172
+ if (configuration && configuration.apiKey) {
7173
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7174
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7175
+ }
7176
+ const query = new URLSearchParams(localVarUrlObj.search);
7177
+ for (const key in localVarQueryParameter) {
7178
+ query.set(key, localVarQueryParameter[key]);
7179
+ }
7180
+ for (const key in options.params) {
7181
+ query.set(key, options.params[key]);
7182
+ }
7183
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7184
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7185
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7186
+ return {
7187
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7188
+ options: localVarRequestOptions
7189
+ };
7190
+ },
7191
+ /**
7192
+ *
7193
+ * @summary Get store by id
7194
+ * @param {string} storeId
7195
+ * @param {*} [options] Override http request option.
7196
+ * @throws {RequiredError}
7197
+ */
7198
+ getStoreById: async (storeId, options = {}) => {
7199
+ if (storeId === null || storeId === void 0) {
7200
+ throw new RequiredError("storeId", "Required parameter storeId was null or undefined when calling getStoreById.");
7201
+ }
7202
+ const localVarPath = `/stores/{storeId}`.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
7203
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7204
+ let baseOptions;
7205
+ if (configuration) {
7206
+ baseOptions = configuration.baseOptions;
7207
+ }
7208
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
7209
+ const localVarHeaderParameter = {};
7210
+ const localVarQueryParameter = {};
7211
+ if (configuration && configuration.apiKey) {
7212
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7213
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7214
+ }
7215
+ const query = new URLSearchParams(localVarUrlObj.search);
7216
+ for (const key in localVarQueryParameter) {
7217
+ query.set(key, localVarQueryParameter[key]);
7218
+ }
7219
+ for (const key in options.params) {
7220
+ query.set(key, options.params[key]);
7221
+ }
7222
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7223
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7224
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7225
+ return {
7226
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7227
+ options: localVarRequestOptions
7228
+ };
7229
+ },
7230
+ /**
7231
+ *
7232
+ * @summary Get store capabilities (payment/delivery options available)
7233
+ * @param {string} storeId
7234
+ * @param {*} [options] Override http request option.
7235
+ * @throws {RequiredError}
7236
+ */
7237
+ getStoreCapabilities: async (storeId, options = {}) => {
7238
+ if (storeId === null || storeId === void 0) {
7239
+ throw new RequiredError("storeId", "Required parameter storeId was null or undefined when calling getStoreCapabilities.");
7240
+ }
7241
+ const localVarPath = `/stores/{storeId}/capabilities`.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
7242
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7243
+ let baseOptions;
7244
+ if (configuration) {
7245
+ baseOptions = configuration.baseOptions;
7246
+ }
7247
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
7248
+ const localVarHeaderParameter = {};
7249
+ const localVarQueryParameter = {};
7250
+ if (configuration && configuration.apiKey) {
7251
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7252
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7253
+ }
7254
+ const query = new URLSearchParams(localVarUrlObj.search);
7255
+ for (const key in localVarQueryParameter) {
7256
+ query.set(key, localVarQueryParameter[key]);
7257
+ }
7258
+ for (const key in options.params) {
7259
+ query.set(key, options.params[key]);
7260
+ }
7261
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7262
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7263
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7264
+ return {
7265
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7266
+ options: localVarRequestOptions
7267
+ };
7268
+ },
7269
+ /**
7270
+ *
7271
+ * @summary Get transfere patients requests by store id
7272
+ * @param {string} storeId
7273
+ * @param {*} [options] Override http request option.
7274
+ * @throws {RequiredError}
7275
+ */
7276
+ getTransferePatientsRequests: async (storeId, options = {}) => {
7277
+ if (storeId === null || storeId === void 0) {
7278
+ throw new RequiredError("storeId", "Required parameter storeId was null or undefined when calling getTransferePatientsRequests.");
7279
+ }
7280
+ const localVarPath = `/stores/{storeId}/transfere-patients-requests`.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
7281
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7282
+ let baseOptions;
7283
+ if (configuration) {
7284
+ baseOptions = configuration.baseOptions;
7285
+ }
7286
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
7287
+ const localVarHeaderParameter = {};
7288
+ const localVarQueryParameter = {};
7289
+ if (configuration && configuration.apiKey) {
7290
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7291
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7292
+ }
7293
+ const query = new URLSearchParams(localVarUrlObj.search);
7294
+ for (const key in localVarQueryParameter) {
7295
+ query.set(key, localVarQueryParameter[key]);
7296
+ }
7297
+ for (const key in options.params) {
7298
+ query.set(key, options.params[key]);
7299
+ }
7300
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7301
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7302
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7303
+ return {
7304
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7305
+ options: localVarRequestOptions
7306
+ };
7307
+ },
7308
+ /**
7309
+ *
7310
+ * @summary Revoke/delete a specific API key
7311
+ * @param {string} storeId
7312
+ * @param {string} keyType Type of key to revoke
7313
+ * @param {*} [options] Override http request option.
7314
+ * @throws {RequiredError}
7315
+ */
7316
+ revokeApiKey: async (storeId, keyType, options = {}) => {
7317
+ if (storeId === null || storeId === void 0) {
7318
+ throw new RequiredError("storeId", "Required parameter storeId was null or undefined when calling revokeApiKey.");
7319
+ }
7320
+ if (keyType === null || keyType === void 0) {
7321
+ throw new RequiredError("keyType", "Required parameter keyType was null or undefined when calling revokeApiKey.");
7322
+ }
7323
+ const localVarPath = `/stores/{storeId}/api-keys/{keyType}`.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId))).replace(`{${"keyType"}}`, encodeURIComponent(String(keyType)));
7324
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7325
+ let baseOptions;
7326
+ if (configuration) {
7327
+ baseOptions = configuration.baseOptions;
7328
+ }
7329
+ const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
7330
+ const localVarHeaderParameter = {};
7331
+ const localVarQueryParameter = {};
7332
+ if (configuration && configuration.apiKey) {
7333
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7334
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7335
+ }
7336
+ const query = new URLSearchParams(localVarUrlObj.search);
7337
+ for (const key in localVarQueryParameter) {
7338
+ query.set(key, localVarQueryParameter[key]);
7339
+ }
7340
+ for (const key in options.params) {
7341
+ query.set(key, options.params[key]);
7342
+ }
7343
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7344
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7345
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7346
+ return {
7347
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7348
+ options: localVarRequestOptions
7349
+ };
7350
+ },
7351
+ /**
7352
+ *
7353
+ * @param {*} [options] Override http request option.
7354
+ * @throws {RequiredError}
7355
+ */
7356
+ sendContactUsEmail: async (options = {}) => {
7357
+ const localVarPath = `/stores/send-contact-us-email`;
7358
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7359
+ let baseOptions;
7360
+ if (configuration) {
7361
+ baseOptions = configuration.baseOptions;
7362
+ }
7363
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7364
+ const localVarHeaderParameter = {};
7365
+ const localVarQueryParameter = {};
7366
+ if (configuration && configuration.apiKey) {
7367
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7368
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7369
+ }
7370
+ const query = new URLSearchParams(localVarUrlObj.search);
7371
+ for (const key in localVarQueryParameter) {
7372
+ query.set(key, localVarQueryParameter[key]);
7373
+ }
7374
+ for (const key in options.params) {
7375
+ query.set(key, options.params[key]);
7376
+ }
7377
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7378
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7379
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7380
+ return {
7381
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7382
+ options: localVarRequestOptions
7383
+ };
7384
+ },
7385
+ /**
7386
+ *
7387
+ * @param {*} [options] Override http request option.
7388
+ * @throws {RequiredError}
7389
+ */
7390
+ sendContactUsEmailEzrirx: async (options = {}) => {
7391
+ const localVarPath = `/stores/send-contact-us-email-ezrirx`;
7392
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7393
+ let baseOptions;
7394
+ if (configuration) {
7395
+ baseOptions = configuration.baseOptions;
7396
+ }
7397
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7398
+ const localVarHeaderParameter = {};
7399
+ const localVarQueryParameter = {};
7400
+ if (configuration && configuration.apiKey) {
7401
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7402
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7403
+ }
7404
+ const query = new URLSearchParams(localVarUrlObj.search);
7405
+ for (const key in localVarQueryParameter) {
7406
+ query.set(key, localVarQueryParameter[key]);
7407
+ }
7408
+ for (const key in options.params) {
7409
+ query.set(key, options.params[key]);
7410
+ }
7411
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7412
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7413
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7414
+ return {
7415
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7416
+ options: localVarRequestOptions
7417
+ };
7418
+ },
7419
+ /**
7420
+ *
7421
+ * @param {*} [options] Override http request option.
7422
+ * @throws {RequiredError}
7423
+ */
7424
+ sendGMBookDemoEmail: async (options = {}) => {
7425
+ const localVarPath = `/stores/g-m-send-book-demo-email`;
7426
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7427
+ let baseOptions;
7428
+ if (configuration) {
7429
+ baseOptions = configuration.baseOptions;
7430
+ }
7431
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7432
+ const localVarHeaderParameter = {};
7433
+ const localVarQueryParameter = {};
7434
+ if (configuration && configuration.apiKey) {
7435
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7436
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7437
+ }
7438
+ const query = new URLSearchParams(localVarUrlObj.search);
7439
+ for (const key in localVarQueryParameter) {
7440
+ query.set(key, localVarQueryParameter[key]);
7441
+ }
7442
+ for (const key in options.params) {
7443
+ query.set(key, options.params[key]);
7444
+ }
7445
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7446
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7447
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7448
+ return {
7449
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7450
+ options: localVarRequestOptions
7451
+ };
7452
+ },
7453
+ /**
7454
+ *
7455
+ * @param {*} [options] Override http request option.
7456
+ * @throws {RequiredError}
7457
+ */
7458
+ sendGMContactUsEmail: async (options = {}) => {
7459
+ const localVarPath = `/stores/g-m-send-contact-us-email`;
7460
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7461
+ let baseOptions;
7462
+ if (configuration) {
7463
+ baseOptions = configuration.baseOptions;
7464
+ }
7465
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7466
+ const localVarHeaderParameter = {};
7467
+ const localVarQueryParameter = {};
7468
+ if (configuration && configuration.apiKey) {
7469
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7470
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7471
+ }
7472
+ const query = new URLSearchParams(localVarUrlObj.search);
7473
+ for (const key in localVarQueryParameter) {
7474
+ query.set(key, localVarQueryParameter[key]);
7475
+ }
7476
+ for (const key in options.params) {
7477
+ query.set(key, options.params[key]);
7478
+ }
7479
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7480
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7481
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7482
+ return {
7483
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7484
+ options: localVarRequestOptions
7485
+ };
7486
+ },
7487
+ /**
7488
+ *
7489
+ * @param {*} [options] Override http request option.
7490
+ * @throws {RequiredError}
7491
+ */
7492
+ sendGMJoinUsEmail: async (options = {}) => {
7493
+ const localVarPath = `/stores/sendGMJoinUsEmail`;
7494
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7495
+ let baseOptions;
7496
+ if (configuration) {
7497
+ baseOptions = configuration.baseOptions;
7498
+ }
7499
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7500
+ const localVarHeaderParameter = {};
7501
+ const localVarQueryParameter = {};
7502
+ if (configuration && configuration.apiKey) {
7503
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7504
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7505
+ }
7506
+ const query = new URLSearchParams(localVarUrlObj.search);
7507
+ for (const key in localVarQueryParameter) {
7508
+ query.set(key, localVarQueryParameter[key]);
7509
+ }
7510
+ for (const key in options.params) {
7511
+ query.set(key, options.params[key]);
7512
+ }
7513
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7514
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7515
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7516
+ return {
7517
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7518
+ options: localVarRequestOptions
7519
+ };
7520
+ },
7521
+ /**
7522
+ *
7523
+ * @param {*} [options] Override http request option.
7524
+ * @throws {RequiredError}
7525
+ */
7526
+ sendHolyFamilyEmail: async (options = {}) => {
7527
+ const localVarPath = `/stores/send-holy-family-email`;
7528
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7529
+ let baseOptions;
7530
+ if (configuration) {
7531
+ baseOptions = configuration.baseOptions;
7532
+ }
7533
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7534
+ const localVarHeaderParameter = {};
7535
+ const localVarQueryParameter = {};
7536
+ if (configuration && configuration.apiKey) {
7537
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7538
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7539
+ }
7540
+ const query = new URLSearchParams(localVarUrlObj.search);
7541
+ for (const key in localVarQueryParameter) {
7542
+ query.set(key, localVarQueryParameter[key]);
7543
+ }
7544
+ for (const key in options.params) {
7545
+ query.set(key, options.params[key]);
7546
+ }
7547
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7548
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7549
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7550
+ return {
7551
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7552
+ options: localVarRequestOptions
7553
+ };
7554
+ },
7555
+ /**
7556
+ *
7557
+ * @param {*} [options] Override http request option.
7558
+ * @throws {RequiredError}
7559
+ */
7560
+ sendMghBookingForm: async (options = {}) => {
7561
+ const localVarPath = `/stores/send-mgh-booking-form`;
7562
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7563
+ let baseOptions;
7564
+ if (configuration) {
7565
+ baseOptions = configuration.baseOptions;
7566
+ }
7567
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7568
+ const localVarHeaderParameter = {};
7569
+ const localVarQueryParameter = {};
7570
+ if (configuration && configuration.apiKey) {
7571
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7572
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7573
+ }
7574
+ const query = new URLSearchParams(localVarUrlObj.search);
7575
+ for (const key in localVarQueryParameter) {
7576
+ query.set(key, localVarQueryParameter[key]);
7577
+ }
7578
+ for (const key in options.params) {
7579
+ query.set(key, options.params[key]);
7580
+ }
7581
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7582
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7583
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7584
+ return {
7585
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7586
+ options: localVarRequestOptions
7587
+ };
7588
+ },
7589
+ /**
7590
+ *
7591
+ * @summary Send new client email
7592
+ * @param {NewClientEmailDto} body
7593
+ * @param {*} [options] Override http request option.
7594
+ * @throws {RequiredError}
7595
+ */
7596
+ sendNewClientEmail: async (body, options = {}) => {
7597
+ if (body === null || body === void 0) {
7598
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling sendNewClientEmail.");
7599
+ }
7600
+ const localVarPath = `/stores/send-new-client-email`;
7601
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7602
+ let baseOptions;
7603
+ if (configuration) {
7604
+ baseOptions = configuration.baseOptions;
7605
+ }
7606
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7607
+ const localVarHeaderParameter = {};
7608
+ const localVarQueryParameter = {};
7609
+ if (configuration && configuration.apiKey) {
7610
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7611
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7612
+ }
7613
+ localVarHeaderParameter["Content-Type"] = "application/json";
7614
+ const query = new URLSearchParams(localVarUrlObj.search);
7615
+ for (const key in localVarQueryParameter) {
7616
+ query.set(key, localVarQueryParameter[key]);
7617
+ }
7618
+ for (const key in options.params) {
7619
+ query.set(key, options.params[key]);
7620
+ }
7621
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7622
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7623
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7624
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
7625
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
7626
+ return {
7627
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7628
+ options: localVarRequestOptions
7629
+ };
7630
+ },
7631
+ /**
7632
+ *
7633
+ * @param {TransferePatientsRequestDto} body
7634
+ * @param {*} [options] Override http request option.
7635
+ * @throws {RequiredError}
7636
+ */
7637
+ sendNewPatientEmail: async (body, options = {}) => {
7638
+ if (body === null || body === void 0) {
7639
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling sendNewPatientEmail.");
7640
+ }
7641
+ const localVarPath = `/stores/send-new-patient-email`;
7642
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7643
+ let baseOptions;
7644
+ if (configuration) {
7645
+ baseOptions = configuration.baseOptions;
7646
+ }
7647
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7648
+ const localVarHeaderParameter = {};
7649
+ const localVarQueryParameter = {};
7650
+ if (configuration && configuration.apiKey) {
7651
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7652
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7653
+ }
7654
+ localVarHeaderParameter["Content-Type"] = "application/json";
7655
+ const query = new URLSearchParams(localVarUrlObj.search);
7656
+ for (const key in localVarQueryParameter) {
7657
+ query.set(key, localVarQueryParameter[key]);
7658
+ }
7659
+ for (const key in options.params) {
7660
+ query.set(key, options.params[key]);
7661
+ }
7662
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7663
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7664
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7665
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
7666
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
7667
+ return {
7668
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7669
+ options: localVarRequestOptions
7670
+ };
7671
+ },
7672
+ /**
7673
+ *
7674
+ * @param {RefillRequestDto} body
7675
+ * @param {*} [options] Override http request option.
7676
+ * @throws {RequiredError}
7677
+ */
7678
+ sendRefillEmail: async (body, options = {}) => {
7679
+ if (body === null || body === void 0) {
7680
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling sendRefillEmail.");
7681
+ }
7682
+ const localVarPath = `/stores/send-refill-email`;
7683
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7684
+ let baseOptions;
7685
+ if (configuration) {
7686
+ baseOptions = configuration.baseOptions;
7687
+ }
7688
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7689
+ const localVarHeaderParameter = {};
7690
+ const localVarQueryParameter = {};
7691
+ if (configuration && configuration.apiKey) {
7692
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7693
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7694
+ }
7695
+ localVarHeaderParameter["Content-Type"] = "application/json";
7696
+ const query = new URLSearchParams(localVarUrlObj.search);
7697
+ for (const key in localVarQueryParameter) {
7698
+ query.set(key, localVarQueryParameter[key]);
7699
+ }
7700
+ for (const key in options.params) {
7701
+ query.set(key, options.params[key]);
7702
+ }
7703
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7704
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7705
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7706
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
7707
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
7708
+ return {
7709
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7710
+ options: localVarRequestOptions
7711
+ };
7712
+ },
7713
+ /**
7714
+ *
7715
+ * @summary Send schedule tour email
7716
+ * @param {ScheduleTourEmailDto} body
7717
+ * @param {*} [options] Override http request option.
7718
+ * @throws {RequiredError}
7719
+ */
7720
+ sendScheduleTourEmail: async (body, options = {}) => {
7721
+ if (body === null || body === void 0) {
7722
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling sendScheduleTourEmail.");
7723
+ }
7724
+ const localVarPath = `/stores/send-schedule-tour-email`;
7725
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7726
+ let baseOptions;
7727
+ if (configuration) {
7728
+ baseOptions = configuration.baseOptions;
7729
+ }
7730
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
7731
+ const localVarHeaderParameter = {};
7732
+ const localVarQueryParameter = {};
7733
+ if (configuration && configuration.apiKey) {
7734
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7735
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7736
+ }
7737
+ localVarHeaderParameter["Content-Type"] = "application/json";
7738
+ const query = new URLSearchParams(localVarUrlObj.search);
7739
+ for (const key in localVarQueryParameter) {
7740
+ query.set(key, localVarQueryParameter[key]);
7741
+ }
7742
+ for (const key in options.params) {
7743
+ query.set(key, options.params[key]);
7744
+ }
7745
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7746
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7747
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7748
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
7749
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
7750
+ return {
7751
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7752
+ options: localVarRequestOptions
7753
+ };
7754
+ },
7755
+ /**
7756
+ *
7757
+ * @summary Update store API keys (Stripe/Shippo)
7758
+ * @param {UpdateApiKeysDto} body
7759
+ * @param {string} storeId
7760
+ * @param {*} [options] Override http request option.
7761
+ * @throws {RequiredError}
7762
+ */
7763
+ updateApiKeys: async (body, storeId, options = {}) => {
7764
+ if (body === null || body === void 0) {
7765
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling updateApiKeys.");
7766
+ }
7767
+ if (storeId === null || storeId === void 0) {
7768
+ throw new RequiredError("storeId", "Required parameter storeId was null or undefined when calling updateApiKeys.");
7769
+ }
7770
+ const localVarPath = `/stores/{storeId}/api-keys`.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
7771
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7772
+ let baseOptions;
7773
+ if (configuration) {
7774
+ baseOptions = configuration.baseOptions;
7775
+ }
7776
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
7777
+ const localVarHeaderParameter = {};
7778
+ const localVarQueryParameter = {};
7779
+ if (configuration && configuration.apiKey) {
7780
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7781
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7782
+ }
7783
+ localVarHeaderParameter["Content-Type"] = "application/json";
7784
+ const query = new URLSearchParams(localVarUrlObj.search);
7785
+ for (const key in localVarQueryParameter) {
7786
+ query.set(key, localVarQueryParameter[key]);
7787
+ }
7788
+ for (const key in options.params) {
7789
+ query.set(key, options.params[key]);
7790
+ }
7791
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7792
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7793
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7794
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
7795
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
7796
+ return {
7797
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7798
+ options: localVarRequestOptions
7799
+ };
7800
+ },
7801
+ /**
7802
+ *
7803
+ * @summary Update refill request by id
7804
+ * @param {UpdateRefillRequestDto} body
7805
+ * @param {string} requestId
7806
+ * @param {*} [options] Override http request option.
7807
+ * @throws {RequiredError}
7808
+ */
7809
+ updateRefillRequest: async (body, requestId, options = {}) => {
7810
+ if (body === null || body === void 0) {
7811
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling updateRefillRequest.");
7812
+ }
7813
+ if (requestId === null || requestId === void 0) {
7814
+ throw new RequiredError("requestId", "Required parameter requestId was null or undefined when calling updateRefillRequest.");
7815
+ }
7816
+ const localVarPath = `/stores/{id}/refill-requests/{requestId}`.replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
7817
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7818
+ let baseOptions;
7819
+ if (configuration) {
7820
+ baseOptions = configuration.baseOptions;
7821
+ }
7822
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
7823
+ const localVarHeaderParameter = {};
7824
+ const localVarQueryParameter = {};
7825
+ if (configuration && configuration.apiKey) {
7826
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7827
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7828
+ }
7829
+ localVarHeaderParameter["Content-Type"] = "application/json";
7830
+ const query = new URLSearchParams(localVarUrlObj.search);
7831
+ for (const key in localVarQueryParameter) {
7832
+ query.set(key, localVarQueryParameter[key]);
7833
+ }
7834
+ for (const key in options.params) {
7835
+ query.set(key, options.params[key]);
7836
+ }
7837
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7838
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7839
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7840
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
7841
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
7842
+ return {
7843
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7844
+ options: localVarRequestOptions
7845
+ };
7846
+ },
7847
+ /**
7848
+ *
7849
+ * @summary Get store by id
7850
+ * @param {UpdateStoreDto} body
7851
+ * @param {string} id
7852
+ * @param {*} [options] Override http request option.
7853
+ * @throws {RequiredError}
7854
+ */
7855
+ updateStore: async (body, id, options = {}) => {
7856
+ if (body === null || body === void 0) {
7857
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling updateStore.");
7858
+ }
7859
+ if (id === null || id === void 0) {
7860
+ throw new RequiredError("id", "Required parameter id was null or undefined when calling updateStore.");
7861
+ }
7862
+ const localVarPath = `/stores/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
7863
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7864
+ let baseOptions;
7865
+ if (configuration) {
7866
+ baseOptions = configuration.baseOptions;
7867
+ }
7868
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
7869
+ const localVarHeaderParameter = {};
7870
+ const localVarQueryParameter = {};
7871
+ if (configuration && configuration.apiKey) {
7872
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7873
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7874
+ }
7875
+ localVarHeaderParameter["Content-Type"] = "application/json";
7876
+ const query = new URLSearchParams(localVarUrlObj.search);
7877
+ for (const key in localVarQueryParameter) {
7878
+ query.set(key, localVarQueryParameter[key]);
7879
+ }
7880
+ for (const key in options.params) {
7881
+ query.set(key, options.params[key]);
7882
+ }
7883
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7884
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7885
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7886
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
7887
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
7888
+ return {
7889
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7890
+ options: localVarRequestOptions
7891
+ };
7892
+ },
7893
+ /**
7894
+ *
7895
+ * @summary Update transfere patients request by id
7896
+ * @param {UpdateTransferePatientsRequestDto} body
7897
+ * @param {string} requestId
7898
+ * @param {*} [options] Override http request option.
7899
+ * @throws {RequiredError}
7900
+ */
7901
+ updateTransferePatientsRequest: async (body, requestId, options = {}) => {
7902
+ if (body === null || body === void 0) {
7903
+ throw new RequiredError("body", "Required parameter body was null or undefined when calling updateTransferePatientsRequest.");
7904
+ }
7905
+ if (requestId === null || requestId === void 0) {
7906
+ throw new RequiredError("requestId", "Required parameter requestId was null or undefined when calling updateTransferePatientsRequest.");
7907
+ }
7908
+ const localVarPath = `/stores/{id}/transfere-patients-requests/{requestId}`.replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
7909
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
7910
+ let baseOptions;
7911
+ if (configuration) {
7912
+ baseOptions = configuration.baseOptions;
7913
+ }
7914
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
7915
+ const localVarHeaderParameter = {};
7916
+ const localVarQueryParameter = {};
7917
+ if (configuration && configuration.apiKey) {
7918
+ const localVarApiKeyValue = typeof configuration.apiKey === "function" ? await configuration.apiKey("x-store-key") : await configuration.apiKey;
7919
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
7920
+ }
7921
+ localVarHeaderParameter["Content-Type"] = "application/json";
7922
+ const query = new URLSearchParams(localVarUrlObj.search);
7923
+ for (const key in localVarQueryParameter) {
7924
+ query.set(key, localVarQueryParameter[key]);
7925
+ }
7926
+ for (const key in options.params) {
7927
+ query.set(key, options.params[key]);
7928
+ }
7929
+ localVarUrlObj.search = new URLSearchParams(query).toString();
7930
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7931
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7932
+ const needsSerialization = typeof body !== "string" || (localVarRequestOptions.headers || (localVarRequestOptions.headers = {}))["Content-Type"] === "application/json";
7933
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== void 0 ? body : {}) : body || "";
7934
+ return {
7935
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
7936
+ options: localVarRequestOptions
7937
+ };
7938
+ }
7939
+ };
7940
+ };
7941
+ var StoresApiFp = function(configuration) {
7942
+ return {
7943
+ /**
7944
+ *
7945
+ * @summary Create a new store
7946
+ * @param {CreateStoreDto} body
7947
+ * @param {*} [options] Override http request option.
7948
+ * @throws {RequiredError}
7949
+ */
7950
+ async createStore(body, options) {
7951
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).createStore(body, options);
7952
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7953
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7954
+ return axios.request(axiosRequestArgs);
7955
+ };
7956
+ },
7957
+ /**
7958
+ *
7959
+ * @summary Delete refill request by id
7960
+ * @param {string} requestId
7961
+ * @param {*} [options] Override http request option.
7962
+ * @throws {RequiredError}
7963
+ */
7964
+ async deleteRefillRequest(requestId, options) {
7965
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteRefillRequest(requestId, options);
7966
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7967
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7968
+ return axios.request(axiosRequestArgs);
7969
+ };
7970
+ },
7971
+ /**
7972
+ *
7973
+ * @summary Delete store by id
7974
+ * @param {string} id
7975
+ * @param {*} [options] Override http request option.
7976
+ * @throws {RequiredError}
7977
+ */
7978
+ async deleteStore(id, options) {
7979
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteStore(id, options);
7980
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7981
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7982
+ return axios.request(axiosRequestArgs);
7983
+ };
7984
+ },
7985
+ /**
7986
+ *
7987
+ * @summary Delete transfere patients request by id
7988
+ * @param {string} requestId
7989
+ * @param {*} [options] Override http request option.
7990
+ * @throws {RequiredError}
7991
+ */
7992
+ async deleteTransferePatientsRequest(requestId, options) {
7993
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteTransferePatientsRequest(requestId, options);
7994
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
7995
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
7996
+ return axios.request(axiosRequestArgs);
7997
+ };
7998
+ },
7999
+ /**
8000
+ *
8001
+ * @summary Get all stores
8002
+ * @param {*} [options] Override http request option.
8003
+ * @throws {RequiredError}
8004
+ */
8005
+ async getAllStores(options) {
8006
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getAllStores(options);
8007
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8008
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8009
+ return axios.request(axiosRequestArgs);
8010
+ };
8011
+ },
8012
+ /**
8013
+ *
8014
+ * @summary Get store API keys with masked values
8015
+ * @param {string} storeId
8016
+ * @param {*} [options] Override http request option.
8017
+ * @throws {RequiredError}
8018
+ */
8019
+ async getApiKeys(storeId, options) {
8020
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getApiKeys(storeId, options);
8021
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8022
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8023
+ return axios.request(axiosRequestArgs);
8024
+ };
8025
+ },
8026
+ /**
8027
+ *
8028
+ * @summary Get refill requests by store id
8029
+ * @param {string} storeId
8030
+ * @param {*} [options] Override http request option.
8031
+ * @throws {RequiredError}
8032
+ */
8033
+ async getRefillRequests(storeId, options) {
8034
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getRefillRequests(storeId, options);
8035
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8036
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8037
+ return axios.request(axiosRequestArgs);
8038
+ };
8039
+ },
8040
+ /**
8041
+ *
8042
+ * @summary Get store by id
8043
+ * @param {string} storeId
8044
+ * @param {*} [options] Override http request option.
8045
+ * @throws {RequiredError}
8046
+ */
8047
+ async getStoreById(storeId, options) {
8048
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getStoreById(storeId, options);
8049
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8050
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8051
+ return axios.request(axiosRequestArgs);
8052
+ };
8053
+ },
8054
+ /**
8055
+ *
8056
+ * @summary Get store capabilities (payment/delivery options available)
8057
+ * @param {string} storeId
8058
+ * @param {*} [options] Override http request option.
8059
+ * @throws {RequiredError}
8060
+ */
8061
+ async getStoreCapabilities(storeId, options) {
8062
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getStoreCapabilities(storeId, options);
8063
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8064
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8065
+ return axios.request(axiosRequestArgs);
8066
+ };
8067
+ },
8068
+ /**
8069
+ *
8070
+ * @summary Get transfere patients requests by store id
8071
+ * @param {string} storeId
8072
+ * @param {*} [options] Override http request option.
8073
+ * @throws {RequiredError}
8074
+ */
8075
+ async getTransferePatientsRequests(storeId, options) {
8076
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getTransferePatientsRequests(storeId, options);
8077
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8078
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8079
+ return axios.request(axiosRequestArgs);
8080
+ };
8081
+ },
8082
+ /**
8083
+ *
8084
+ * @summary Revoke/delete a specific API key
8085
+ * @param {string} storeId
8086
+ * @param {string} keyType Type of key to revoke
8087
+ * @param {*} [options] Override http request option.
8088
+ * @throws {RequiredError}
8089
+ */
8090
+ async revokeApiKey(storeId, keyType, options) {
8091
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).revokeApiKey(storeId, keyType, options);
8092
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8093
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8094
+ return axios.request(axiosRequestArgs);
8095
+ };
8096
+ },
8097
+ /**
8098
+ *
8099
+ * @param {*} [options] Override http request option.
8100
+ * @throws {RequiredError}
8101
+ */
8102
+ async sendContactUsEmail(options) {
8103
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendContactUsEmail(options);
8104
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8105
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8106
+ return axios.request(axiosRequestArgs);
8107
+ };
8108
+ },
8109
+ /**
8110
+ *
8111
+ * @param {*} [options] Override http request option.
8112
+ * @throws {RequiredError}
8113
+ */
8114
+ async sendContactUsEmailEzrirx(options) {
8115
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendContactUsEmailEzrirx(options);
8116
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8117
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8118
+ return axios.request(axiosRequestArgs);
8119
+ };
8120
+ },
8121
+ /**
8122
+ *
8123
+ * @param {*} [options] Override http request option.
8124
+ * @throws {RequiredError}
8125
+ */
8126
+ async sendGMBookDemoEmail(options) {
8127
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMBookDemoEmail(options);
8128
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8129
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8130
+ return axios.request(axiosRequestArgs);
8131
+ };
8132
+ },
8133
+ /**
8134
+ *
8135
+ * @param {*} [options] Override http request option.
8136
+ * @throws {RequiredError}
8137
+ */
8138
+ async sendGMContactUsEmail(options) {
8139
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMContactUsEmail(options);
8140
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8141
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8142
+ return axios.request(axiosRequestArgs);
8143
+ };
8144
+ },
8145
+ /**
8146
+ *
8147
+ * @param {*} [options] Override http request option.
8148
+ * @throws {RequiredError}
8149
+ */
8150
+ async sendGMJoinUsEmail(options) {
8151
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMJoinUsEmail(options);
8152
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8153
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8154
+ return axios.request(axiosRequestArgs);
8155
+ };
8156
+ },
8157
+ /**
8158
+ *
8159
+ * @param {*} [options] Override http request option.
8160
+ * @throws {RequiredError}
8161
+ */
8162
+ async sendHolyFamilyEmail(options) {
8163
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendHolyFamilyEmail(options);
8164
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8165
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8166
+ return axios.request(axiosRequestArgs);
8167
+ };
8168
+ },
8169
+ /**
8170
+ *
8171
+ * @param {*} [options] Override http request option.
8172
+ * @throws {RequiredError}
8173
+ */
8174
+ async sendMghBookingForm(options) {
8175
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendMghBookingForm(options);
8176
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8177
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8178
+ return axios.request(axiosRequestArgs);
8179
+ };
8180
+ },
8181
+ /**
8182
+ *
8183
+ * @summary Send new client email
8184
+ * @param {NewClientEmailDto} body
8185
+ * @param {*} [options] Override http request option.
8186
+ * @throws {RequiredError}
8187
+ */
8188
+ async sendNewClientEmail(body, options) {
8189
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendNewClientEmail(body, options);
8190
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8191
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8192
+ return axios.request(axiosRequestArgs);
8193
+ };
8194
+ },
8195
+ /**
8196
+ *
8197
+ * @param {TransferePatientsRequestDto} body
8198
+ * @param {*} [options] Override http request option.
8199
+ * @throws {RequiredError}
8200
+ */
8201
+ async sendNewPatientEmail(body, options) {
8202
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendNewPatientEmail(body, options);
8203
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8204
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8205
+ return axios.request(axiosRequestArgs);
8206
+ };
8207
+ },
8208
+ /**
8209
+ *
8210
+ * @param {RefillRequestDto} body
8211
+ * @param {*} [options] Override http request option.
8212
+ * @throws {RequiredError}
8213
+ */
8214
+ async sendRefillEmail(body, options) {
8215
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendRefillEmail(body, options);
8216
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8217
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8218
+ return axios.request(axiosRequestArgs);
8219
+ };
8220
+ },
8221
+ /**
8222
+ *
8223
+ * @summary Send schedule tour email
8224
+ * @param {ScheduleTourEmailDto} body
8225
+ * @param {*} [options] Override http request option.
8226
+ * @throws {RequiredError}
8227
+ */
8228
+ async sendScheduleTourEmail(body, options) {
8229
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendScheduleTourEmail(body, options);
8230
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8231
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8232
+ return axios.request(axiosRequestArgs);
8233
+ };
8234
+ },
8235
+ /**
8236
+ *
8237
+ * @summary Update store API keys (Stripe/Shippo)
8238
+ * @param {UpdateApiKeysDto} body
8239
+ * @param {string} storeId
8240
+ * @param {*} [options] Override http request option.
8241
+ * @throws {RequiredError}
8242
+ */
8243
+ async updateApiKeys(body, storeId, options) {
8244
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateApiKeys(body, storeId, options);
8245
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8246
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8247
+ return axios.request(axiosRequestArgs);
8248
+ };
8249
+ },
8250
+ /**
8251
+ *
8252
+ * @summary Update refill request by id
8253
+ * @param {UpdateRefillRequestDto} body
8254
+ * @param {string} requestId
8255
+ * @param {*} [options] Override http request option.
8256
+ * @throws {RequiredError}
8257
+ */
8258
+ async updateRefillRequest(body, requestId, options) {
8259
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateRefillRequest(body, requestId, options);
8260
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8261
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8262
+ return axios.request(axiosRequestArgs);
8263
+ };
8264
+ },
8265
+ /**
8266
+ *
8267
+ * @summary Get store by id
8268
+ * @param {UpdateStoreDto} body
8269
+ * @param {string} id
8270
+ * @param {*} [options] Override http request option.
8271
+ * @throws {RequiredError}
8272
+ */
8273
+ async updateStore(body, id, options) {
8274
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateStore(body, id, options);
8275
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8276
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8277
+ return axios.request(axiosRequestArgs);
8278
+ };
8279
+ },
8280
+ /**
8281
+ *
8282
+ * @summary Update transfere patients request by id
8283
+ * @param {UpdateTransferePatientsRequestDto} body
8284
+ * @param {string} requestId
8285
+ * @param {*} [options] Override http request option.
8286
+ * @throws {RequiredError}
8287
+ */
8288
+ async updateTransferePatientsRequest(body, requestId, options) {
8289
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateTransferePatientsRequest(body, requestId, options);
8290
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8291
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8292
+ return axios.request(axiosRequestArgs);
8293
+ };
8294
+ }
8295
+ };
8296
+ };
8297
+ var StoresApi = class extends BaseAPI {
8298
+ /**
8299
+ *
8300
+ * @summary Create a new store
8301
+ * @param {CreateStoreDto} body
8302
+ * @param {*} [options] Override http request option.
8303
+ * @throws {RequiredError}
8304
+ * @memberof StoresApi
8305
+ */
8306
+ async createStore(body, options) {
8307
+ return StoresApiFp(this.configuration).createStore(body, options).then((request) => request(this.axios, this.basePath));
8308
+ }
8309
+ /**
8310
+ *
8311
+ * @summary Delete refill request by id
8312
+ * @param {string} requestId
8313
+ * @param {*} [options] Override http request option.
8314
+ * @throws {RequiredError}
8315
+ * @memberof StoresApi
8316
+ */
8317
+ async deleteRefillRequest(requestId, options) {
8318
+ return StoresApiFp(this.configuration).deleteRefillRequest(requestId, options).then((request) => request(this.axios, this.basePath));
8319
+ }
8320
+ /**
8321
+ *
8322
+ * @summary Delete store by id
8323
+ * @param {string} id
8324
+ * @param {*} [options] Override http request option.
8325
+ * @throws {RequiredError}
8326
+ * @memberof StoresApi
8327
+ */
8328
+ async deleteStore(id, options) {
8329
+ return StoresApiFp(this.configuration).deleteStore(id, options).then((request) => request(this.axios, this.basePath));
8330
+ }
8331
+ /**
8332
+ *
8333
+ * @summary Delete transfere patients request by id
8334
+ * @param {string} requestId
8335
+ * @param {*} [options] Override http request option.
8336
+ * @throws {RequiredError}
8337
+ * @memberof StoresApi
8338
+ */
8339
+ async deleteTransferePatientsRequest(requestId, options) {
8340
+ return StoresApiFp(this.configuration).deleteTransferePatientsRequest(requestId, options).then((request) => request(this.axios, this.basePath));
8341
+ }
8342
+ /**
8343
+ *
8344
+ * @summary Get all stores
8345
+ * @param {*} [options] Override http request option.
8346
+ * @throws {RequiredError}
8347
+ * @memberof StoresApi
8348
+ */
8349
+ async getAllStores(options) {
8350
+ return StoresApiFp(this.configuration).getAllStores(options).then((request) => request(this.axios, this.basePath));
8351
+ }
8352
+ /**
8353
+ *
8354
+ * @summary Get store API keys with masked values
8355
+ * @param {string} storeId
8356
+ * @param {*} [options] Override http request option.
8357
+ * @throws {RequiredError}
8358
+ * @memberof StoresApi
8359
+ */
8360
+ async getApiKeys(storeId, options) {
8361
+ return StoresApiFp(this.configuration).getApiKeys(storeId, options).then((request) => request(this.axios, this.basePath));
8362
+ }
8363
+ /**
8364
+ *
8365
+ * @summary Get refill requests by store id
8366
+ * @param {string} storeId
8367
+ * @param {*} [options] Override http request option.
8368
+ * @throws {RequiredError}
8369
+ * @memberof StoresApi
8370
+ */
8371
+ async getRefillRequests(storeId, options) {
8372
+ return StoresApiFp(this.configuration).getRefillRequests(storeId, options).then((request) => request(this.axios, this.basePath));
8373
+ }
8374
+ /**
8375
+ *
8376
+ * @summary Get store by id
8377
+ * @param {string} storeId
8378
+ * @param {*} [options] Override http request option.
8379
+ * @throws {RequiredError}
8380
+ * @memberof StoresApi
8381
+ */
8382
+ async getStoreById(storeId, options) {
8383
+ return StoresApiFp(this.configuration).getStoreById(storeId, options).then((request) => request(this.axios, this.basePath));
8384
+ }
8385
+ /**
8386
+ *
8387
+ * @summary Get store capabilities (payment/delivery options available)
8388
+ * @param {string} storeId
8389
+ * @param {*} [options] Override http request option.
8390
+ * @throws {RequiredError}
8391
+ * @memberof StoresApi
8392
+ */
8393
+ async getStoreCapabilities(storeId, options) {
8394
+ return StoresApiFp(this.configuration).getStoreCapabilities(storeId, options).then((request) => request(this.axios, this.basePath));
8395
+ }
8396
+ /**
8397
+ *
8398
+ * @summary Get transfere patients requests by store id
8399
+ * @param {string} storeId
8400
+ * @param {*} [options] Override http request option.
8401
+ * @throws {RequiredError}
8402
+ * @memberof StoresApi
8403
+ */
8404
+ async getTransferePatientsRequests(storeId, options) {
8405
+ return StoresApiFp(this.configuration).getTransferePatientsRequests(storeId, options).then((request) => request(this.axios, this.basePath));
8406
+ }
8407
+ /**
8408
+ *
8409
+ * @summary Revoke/delete a specific API key
8410
+ * @param {string} storeId
8411
+ * @param {string} keyType Type of key to revoke
8412
+ * @param {*} [options] Override http request option.
8413
+ * @throws {RequiredError}
8414
+ * @memberof StoresApi
8415
+ */
8416
+ async revokeApiKey(storeId, keyType, options) {
8417
+ return StoresApiFp(this.configuration).revokeApiKey(storeId, keyType, options).then((request) => request(this.axios, this.basePath));
8418
+ }
8419
+ /**
8420
+ *
8421
+ * @param {*} [options] Override http request option.
8422
+ * @throws {RequiredError}
8423
+ * @memberof StoresApi
8424
+ */
8425
+ async sendContactUsEmail(options) {
8426
+ return StoresApiFp(this.configuration).sendContactUsEmail(options).then((request) => request(this.axios, this.basePath));
8427
+ }
8428
+ /**
8429
+ *
8430
+ * @param {*} [options] Override http request option.
8431
+ * @throws {RequiredError}
8432
+ * @memberof StoresApi
8433
+ */
8434
+ async sendContactUsEmailEzrirx(options) {
8435
+ return StoresApiFp(this.configuration).sendContactUsEmailEzrirx(options).then((request) => request(this.axios, this.basePath));
8436
+ }
8437
+ /**
8438
+ *
8439
+ * @param {*} [options] Override http request option.
8440
+ * @throws {RequiredError}
8441
+ * @memberof StoresApi
8442
+ */
8443
+ async sendGMBookDemoEmail(options) {
8444
+ return StoresApiFp(this.configuration).sendGMBookDemoEmail(options).then((request) => request(this.axios, this.basePath));
8445
+ }
8446
+ /**
8447
+ *
8448
+ * @param {*} [options] Override http request option.
8449
+ * @throws {RequiredError}
8450
+ * @memberof StoresApi
8451
+ */
8452
+ async sendGMContactUsEmail(options) {
8453
+ return StoresApiFp(this.configuration).sendGMContactUsEmail(options).then((request) => request(this.axios, this.basePath));
8454
+ }
8455
+ /**
8456
+ *
8457
+ * @param {*} [options] Override http request option.
8458
+ * @throws {RequiredError}
8459
+ * @memberof StoresApi
8460
+ */
8461
+ async sendGMJoinUsEmail(options) {
8462
+ return StoresApiFp(this.configuration).sendGMJoinUsEmail(options).then((request) => request(this.axios, this.basePath));
8463
+ }
8464
+ /**
8465
+ *
8466
+ * @param {*} [options] Override http request option.
8467
+ * @throws {RequiredError}
8468
+ * @memberof StoresApi
8469
+ */
8470
+ async sendHolyFamilyEmail(options) {
8471
+ return StoresApiFp(this.configuration).sendHolyFamilyEmail(options).then((request) => request(this.axios, this.basePath));
8472
+ }
8473
+ /**
8474
+ *
8475
+ * @param {*} [options] Override http request option.
8476
+ * @throws {RequiredError}
8477
+ * @memberof StoresApi
8478
+ */
8479
+ async sendMghBookingForm(options) {
8480
+ return StoresApiFp(this.configuration).sendMghBookingForm(options).then((request) => request(this.axios, this.basePath));
8481
+ }
8482
+ /**
8483
+ *
8484
+ * @summary Send new client email
8485
+ * @param {NewClientEmailDto} body
8486
+ * @param {*} [options] Override http request option.
8487
+ * @throws {RequiredError}
8488
+ * @memberof StoresApi
8489
+ */
8490
+ async sendNewClientEmail(body, options) {
8491
+ return StoresApiFp(this.configuration).sendNewClientEmail(body, options).then((request) => request(this.axios, this.basePath));
8492
+ }
8493
+ /**
8494
+ *
8495
+ * @param {TransferePatientsRequestDto} body
8496
+ * @param {*} [options] Override http request option.
8497
+ * @throws {RequiredError}
8498
+ * @memberof StoresApi
8499
+ */
8500
+ async sendNewPatientEmail(body, options) {
8501
+ return StoresApiFp(this.configuration).sendNewPatientEmail(body, options).then((request) => request(this.axios, this.basePath));
8502
+ }
8503
+ /**
8504
+ *
8505
+ * @param {RefillRequestDto} body
8506
+ * @param {*} [options] Override http request option.
8507
+ * @throws {RequiredError}
8508
+ * @memberof StoresApi
8509
+ */
8510
+ async sendRefillEmail(body, options) {
8511
+ return StoresApiFp(this.configuration).sendRefillEmail(body, options).then((request) => request(this.axios, this.basePath));
8512
+ }
8513
+ /**
8514
+ *
8515
+ * @summary Send schedule tour email
8516
+ * @param {ScheduleTourEmailDto} body
8517
+ * @param {*} [options] Override http request option.
8518
+ * @throws {RequiredError}
8519
+ * @memberof StoresApi
8520
+ */
8521
+ async sendScheduleTourEmail(body, options) {
8522
+ return StoresApiFp(this.configuration).sendScheduleTourEmail(body, options).then((request) => request(this.axios, this.basePath));
8523
+ }
8524
+ /**
8525
+ *
8526
+ * @summary Update store API keys (Stripe/Shippo)
8527
+ * @param {UpdateApiKeysDto} body
8528
+ * @param {string} storeId
8529
+ * @param {*} [options] Override http request option.
8530
+ * @throws {RequiredError}
8531
+ * @memberof StoresApi
8532
+ */
8533
+ async updateApiKeys(body, storeId, options) {
8534
+ return StoresApiFp(this.configuration).updateApiKeys(body, storeId, options).then((request) => request(this.axios, this.basePath));
8535
+ }
8536
+ /**
8537
+ *
8538
+ * @summary Update refill request by id
8539
+ * @param {UpdateRefillRequestDto} body
8540
+ * @param {string} requestId
8541
+ * @param {*} [options] Override http request option.
8542
+ * @throws {RequiredError}
8543
+ * @memberof StoresApi
8544
+ */
8545
+ async updateRefillRequest(body, requestId, options) {
8546
+ return StoresApiFp(this.configuration).updateRefillRequest(body, requestId, options).then((request) => request(this.axios, this.basePath));
8547
+ }
8548
+ /**
8549
+ *
8550
+ * @summary Get store by id
8551
+ * @param {UpdateStoreDto} body
8552
+ * @param {string} id
8553
+ * @param {*} [options] Override http request option.
8554
+ * @throws {RequiredError}
8555
+ * @memberof StoresApi
8556
+ */
8557
+ async updateStore(body, id, options) {
8558
+ return StoresApiFp(this.configuration).updateStore(body, id, options).then((request) => request(this.axios, this.basePath));
8559
+ }
8560
+ /**
8561
+ *
8562
+ * @summary Update transfere patients request by id
8563
+ * @param {UpdateTransferePatientsRequestDto} body
8564
+ * @param {string} requestId
8565
+ * @param {*} [options] Override http request option.
8566
+ * @throws {RequiredError}
8567
+ * @memberof StoresApi
8568
+ */
8569
+ async updateTransferePatientsRequest(body, requestId, options) {
8570
+ return StoresApiFp(this.configuration).updateTransferePatientsRequest(body, requestId, options).then((request) => request(this.axios, this.basePath));
8571
+ }
8572
+ };
8573
+ var WishlistApiAxiosParamCreator = function(configuration) {
8574
+ return {
8575
+ /**
8576
+ *
8577
+ * @summary Add product to wishlist
8578
+ * @param {string} productId
8579
+ * @param {*} [options] Override http request option.
8580
+ * @throws {RequiredError}
8581
+ */
8582
+ addToWishlist: async (productId, options = {}) => {
8583
+ if (productId === null || productId === void 0) {
8584
+ throw new RequiredError("productId", "Required parameter productId was null or undefined when calling addToWishlist.");
8585
+ }
8586
+ const localVarPath = `/wishlist/add/{productId}`.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
8587
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
8588
+ let baseOptions;
8589
+ if (configuration) {
8590
+ baseOptions = configuration.baseOptions;
8591
+ }
8592
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
8593
+ const localVarHeaderParameter = {};
8594
+ const localVarQueryParameter = {};
8595
+ if (configuration && configuration.accessToken) {
8596
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
8597
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
8598
+ }
8599
+ const query = new URLSearchParams(localVarUrlObj.search);
8600
+ for (const key in localVarQueryParameter) {
8601
+ query.set(key, localVarQueryParameter[key]);
8602
+ }
8603
+ for (const key in options.params) {
8604
+ query.set(key, options.params[key]);
8605
+ }
8606
+ localVarUrlObj.search = new URLSearchParams(query).toString();
8607
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8608
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
8609
+ return {
8610
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
8611
+ options: localVarRequestOptions
8612
+ };
8613
+ },
8614
+ /**
8615
+ *
8616
+ * @summary Clear wishlist
8617
+ * @param {*} [options] Override http request option.
8618
+ * @throws {RequiredError}
8619
+ */
8620
+ clearWishlist: async (options = {}) => {
8621
+ const localVarPath = `/wishlist/clear`;
8622
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
8623
+ let baseOptions;
8624
+ if (configuration) {
8625
+ baseOptions = configuration.baseOptions;
8626
+ }
8627
+ const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
8628
+ const localVarHeaderParameter = {};
8629
+ const localVarQueryParameter = {};
8630
+ if (configuration && configuration.accessToken) {
8631
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
8632
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
8633
+ }
8634
+ const query = new URLSearchParams(localVarUrlObj.search);
8635
+ for (const key in localVarQueryParameter) {
8636
+ query.set(key, localVarQueryParameter[key]);
8637
+ }
8638
+ for (const key in options.params) {
8639
+ query.set(key, options.params[key]);
8640
+ }
8641
+ localVarUrlObj.search = new URLSearchParams(query).toString();
8642
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8643
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
8644
+ return {
8645
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
8646
+ options: localVarRequestOptions
8647
+ };
8648
+ },
8649
+ /**
8650
+ *
8651
+ * @summary Get user wishlist
8652
+ * @param {*} [options] Override http request option.
8653
+ * @throws {RequiredError}
8654
+ */
8655
+ getWishlist: async (options = {}) => {
8656
+ const localVarPath = `/wishlist`;
8657
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
8658
+ let baseOptions;
8659
+ if (configuration) {
8660
+ baseOptions = configuration.baseOptions;
8661
+ }
8662
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
8663
+ const localVarHeaderParameter = {};
8664
+ const localVarQueryParameter = {};
8665
+ if (configuration && configuration.accessToken) {
8666
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
8667
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
8668
+ }
8669
+ const query = new URLSearchParams(localVarUrlObj.search);
8670
+ for (const key in localVarQueryParameter) {
8671
+ query.set(key, localVarQueryParameter[key]);
8672
+ }
8673
+ for (const key in options.params) {
8674
+ query.set(key, options.params[key]);
8675
+ }
8676
+ localVarUrlObj.search = new URLSearchParams(query).toString();
8677
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8678
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
8679
+ return {
8680
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
8681
+ options: localVarRequestOptions
8682
+ };
8683
+ },
8684
+ /**
8685
+ *
8686
+ * @summary Get wishlist item count
8687
+ * @param {*} [options] Override http request option.
8688
+ * @throws {RequiredError}
8689
+ */
8690
+ getWishlistItemCount: async (options = {}) => {
8691
+ const localVarPath = `/wishlist/count`;
8692
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
8693
+ let baseOptions;
8694
+ if (configuration) {
8695
+ baseOptions = configuration.baseOptions;
8696
+ }
8697
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
8698
+ const localVarHeaderParameter = {};
8699
+ const localVarQueryParameter = {};
8700
+ if (configuration && configuration.accessToken) {
8701
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
8702
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
8703
+ }
8704
+ const query = new URLSearchParams(localVarUrlObj.search);
8705
+ for (const key in localVarQueryParameter) {
8706
+ query.set(key, localVarQueryParameter[key]);
8707
+ }
8708
+ for (const key in options.params) {
8709
+ query.set(key, options.params[key]);
8710
+ }
8711
+ localVarUrlObj.search = new URLSearchParams(query).toString();
8712
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8713
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
8714
+ return {
8715
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
8716
+ options: localVarRequestOptions
8717
+ };
8718
+ },
8719
+ /**
8720
+ *
8721
+ * @summary Remove product from wishlist
8722
+ * @param {string} productId
8723
+ * @param {*} [options] Override http request option.
8724
+ * @throws {RequiredError}
8725
+ */
8726
+ removeFromWishlist: async (productId, options = {}) => {
8727
+ if (productId === null || productId === void 0) {
8728
+ throw new RequiredError("productId", "Required parameter productId was null or undefined when calling removeFromWishlist.");
8729
+ }
8730
+ const localVarPath = `/wishlist/remove/{productId}`.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
8731
+ const localVarUrlObj = new URL(localVarPath, "https://example.com");
8732
+ let baseOptions;
8733
+ if (configuration) {
8734
+ baseOptions = configuration.baseOptions;
8735
+ }
8736
+ const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
8737
+ const localVarHeaderParameter = {};
8738
+ const localVarQueryParameter = {};
8739
+ if (configuration && configuration.accessToken) {
8740
+ const accessToken = typeof configuration.accessToken === "function" ? await configuration.accessToken() : await configuration.accessToken;
8741
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
8742
+ }
8743
+ const query = new URLSearchParams(localVarUrlObj.search);
8744
+ for (const key in localVarQueryParameter) {
8745
+ query.set(key, localVarQueryParameter[key]);
8746
+ }
8747
+ for (const key in options.params) {
8748
+ query.set(key, options.params[key]);
8749
+ }
8750
+ localVarUrlObj.search = new URLSearchParams(query).toString();
8751
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8752
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
8753
+ return {
8754
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
8755
+ options: localVarRequestOptions
8756
+ };
8757
+ }
8758
+ };
8759
+ };
8760
+ var WishlistApiFp = function(configuration) {
8761
+ return {
8762
+ /**
8763
+ *
8764
+ * @summary Add product to wishlist
8765
+ * @param {string} productId
8766
+ * @param {*} [options] Override http request option.
8767
+ * @throws {RequiredError}
8768
+ */
8769
+ async addToWishlist(productId, options) {
8770
+ const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).addToWishlist(productId, options);
8771
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
8772
+ const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
8773
+ return axios.request(axiosRequestArgs);
8774
+ };
6891
8775
  },
6892
8776
  /**
6893
8777
  *
@@ -6897,7 +8781,7 @@ var WishlistApiFp = function(configuration) {
6897
8781
  */
6898
8782
  async clearWishlist(options) {
6899
8783
  const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).clearWishlist(options);
6900
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
8784
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
6901
8785
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6902
8786
  return axios.request(axiosRequestArgs);
6903
8787
  };
@@ -6910,7 +8794,7 @@ var WishlistApiFp = function(configuration) {
6910
8794
  */
6911
8795
  async getWishlist(options) {
6912
8796
  const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).getWishlist(options);
6913
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
8797
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
6914
8798
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6915
8799
  return axios.request(axiosRequestArgs);
6916
8800
  };
@@ -6923,7 +8807,7 @@ var WishlistApiFp = function(configuration) {
6923
8807
  */
6924
8808
  async getWishlistItemCount(options) {
6925
8809
  const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).getWishlistItemCount(options);
6926
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
8810
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
6927
8811
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6928
8812
  return axios.request(axiosRequestArgs);
6929
8813
  };
@@ -6937,7 +8821,7 @@ var WishlistApiFp = function(configuration) {
6937
8821
  */
6938
8822
  async removeFromWishlist(productId, options) {
6939
8823
  const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).removeFromWishlist(productId, options);
6940
- return (axios = globalAxios18__default.default, basePath = BASE_PATH) => {
8824
+ return (axios = globalAxios21__default.default, basePath = BASE_PATH) => {
6941
8825
  const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
6942
8826
  return axios.request(axiosRequestArgs);
6943
8827
  };
@@ -7002,7 +8886,175 @@ var WishlistApi = class extends BaseAPI {
7002
8886
  // src/lib/Apis/index.ts
7003
8887
  init_configuration();
7004
8888
 
8889
+ // src/lib/Apis/models/address.ts
8890
+ var AddressAddressTypeEnum = /* @__PURE__ */ ((AddressAddressTypeEnum2) => {
8891
+ AddressAddressTypeEnum2["Billing"] = "Billing";
8892
+ AddressAddressTypeEnum2["Shipping"] = "Shipping";
8893
+ AddressAddressTypeEnum2["Both"] = "Both";
8894
+ return AddressAddressTypeEnum2;
8895
+ })(AddressAddressTypeEnum || {});
8896
+
8897
+ // src/lib/Apis/models/address-created-request.ts
8898
+ var AddressCreatedRequestAddressTypeEnum = /* @__PURE__ */ ((AddressCreatedRequestAddressTypeEnum2) => {
8899
+ AddressCreatedRequestAddressTypeEnum2["Billing"] = "Billing";
8900
+ AddressCreatedRequestAddressTypeEnum2["Shipping"] = "Shipping";
8901
+ AddressCreatedRequestAddressTypeEnum2["Both"] = "Both";
8902
+ return AddressCreatedRequestAddressTypeEnum2;
8903
+ })(AddressCreatedRequestAddressTypeEnum || {});
8904
+
8905
+ // src/lib/Apis/models/api-key-info-dto.ts
8906
+ var ApiKeyInfoDtoKeyTypeEnum = /* @__PURE__ */ ((ApiKeyInfoDtoKeyTypeEnum2) => {
8907
+ ApiKeyInfoDtoKeyTypeEnum2["Stripe"] = "stripe";
8908
+ ApiKeyInfoDtoKeyTypeEnum2["Shippo"] = "shippo";
8909
+ return ApiKeyInfoDtoKeyTypeEnum2;
8910
+ })(ApiKeyInfoDtoKeyTypeEnum || {});
8911
+
8912
+ // src/lib/Apis/models/campaign-draft-dto.ts
8913
+ var CampaignDraftDtoStatusEnum = /* @__PURE__ */ ((CampaignDraftDtoStatusEnum2) => {
8914
+ CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_MINUS_3"] = -3] = "NUMBER_MINUS_3";
8915
+ CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_MINUS_2"] = -2] = "NUMBER_MINUS_2";
8916
+ CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_MINUS_1"] = -1] = "NUMBER_MINUS_1";
8917
+ CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_0"] = 0] = "NUMBER_0";
8918
+ CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_1"] = 1] = "NUMBER_1";
8919
+ CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_2"] = 2] = "NUMBER_2";
8920
+ CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_3"] = 3] = "NUMBER_3";
8921
+ CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_4"] = 4] = "NUMBER_4";
8922
+ return CampaignDraftDtoStatusEnum2;
8923
+ })(CampaignDraftDtoStatusEnum || {});
8924
+
8925
+ // src/lib/Apis/models/campaign-draft-schedule-dto.ts
8926
+ var CampaignDraftScheduleDtoStatusEnum = /* @__PURE__ */ ((CampaignDraftScheduleDtoStatusEnum2) => {
8927
+ CampaignDraftScheduleDtoStatusEnum2["AXCancelled"] = "AXCancelled";
8928
+ CampaignDraftScheduleDtoStatusEnum2["Deleted"] = "Deleted";
8929
+ CampaignDraftScheduleDtoStatusEnum2["Archived"] = "Archived";
8930
+ CampaignDraftScheduleDtoStatusEnum2["Draft"] = "Draft";
8931
+ CampaignDraftScheduleDtoStatusEnum2["Programmed"] = "Programmed";
8932
+ CampaignDraftScheduleDtoStatusEnum2["Sent"] = "Sent";
8933
+ CampaignDraftScheduleDtoStatusEnum2["AXTested"] = "AXTested";
8934
+ CampaignDraftScheduleDtoStatusEnum2["AXSelected"] = "AXSelected";
8935
+ return CampaignDraftScheduleDtoStatusEnum2;
8936
+ })(CampaignDraftScheduleDtoStatusEnum || {});
8937
+
8938
+ // src/lib/Apis/models/campaign-draft-sending-dto.ts
8939
+ var CampaignDraftSendingDtoStatusEnum = /* @__PURE__ */ ((CampaignDraftSendingDtoStatusEnum2) => {
8940
+ CampaignDraftSendingDtoStatusEnum2["AXCancelled"] = "AXCancelled";
8941
+ CampaignDraftSendingDtoStatusEnum2["Deleted"] = "Deleted";
8942
+ CampaignDraftSendingDtoStatusEnum2["Archived"] = "Archived";
8943
+ CampaignDraftSendingDtoStatusEnum2["Draft"] = "Draft";
8944
+ CampaignDraftSendingDtoStatusEnum2["Programmed"] = "Programmed";
8945
+ CampaignDraftSendingDtoStatusEnum2["Sent"] = "Sent";
8946
+ CampaignDraftSendingDtoStatusEnum2["AXTested"] = "AXTested";
8947
+ CampaignDraftSendingDtoStatusEnum2["AXSelected"] = "AXSelected";
8948
+ return CampaignDraftSendingDtoStatusEnum2;
8949
+ })(CampaignDraftSendingDtoStatusEnum || {});
8950
+
8951
+ // src/lib/Apis/models/create-address-dto.ts
8952
+ var CreateAddressDtoAddressTypeEnum = /* @__PURE__ */ ((CreateAddressDtoAddressTypeEnum2) => {
8953
+ CreateAddressDtoAddressTypeEnum2["Billing"] = "Billing";
8954
+ CreateAddressDtoAddressTypeEnum2["Shipping"] = "Shipping";
8955
+ CreateAddressDtoAddressTypeEnum2["Both"] = "Both";
8956
+ return CreateAddressDtoAddressTypeEnum2;
8957
+ })(CreateAddressDtoAddressTypeEnum || {});
8958
+
8959
+ // src/lib/Apis/models/create-discount-dto.ts
8960
+ var CreateDiscountDtoDiscountTypeEnum = /* @__PURE__ */ ((CreateDiscountDtoDiscountTypeEnum2) => {
8961
+ CreateDiscountDtoDiscountTypeEnum2["PRODUCT"] = "PRODUCT";
8962
+ CreateDiscountDtoDiscountTypeEnum2["CATEGORY"] = "CATEGORY";
8963
+ CreateDiscountDtoDiscountTypeEnum2["VARIANT"] = "VARIANT";
8964
+ return CreateDiscountDtoDiscountTypeEnum2;
8965
+ })(CreateDiscountDtoDiscountTypeEnum || {});
8966
+ var CreateDiscountDtoDecreasePriceByEnum = /* @__PURE__ */ ((CreateDiscountDtoDecreasePriceByEnum2) => {
8967
+ CreateDiscountDtoDecreasePriceByEnum2["PERCENTAGE"] = "PERCENTAGE";
8968
+ CreateDiscountDtoDecreasePriceByEnum2["AMOUNT"] = "AMOUNT";
8969
+ return CreateDiscountDtoDecreasePriceByEnum2;
8970
+ })(CreateDiscountDtoDecreasePriceByEnum || {});
8971
+ var CreateDiscountDtoStateEnum = /* @__PURE__ */ ((CreateDiscountDtoStateEnum2) => {
8972
+ CreateDiscountDtoStateEnum2["ACTIVE"] = "ACTIVE";
8973
+ CreateDiscountDtoStateEnum2["INACTIVE"] = "INACTIVE";
8974
+ CreateDiscountDtoStateEnum2["EXPIRED"] = "EXPIRED";
8975
+ CreateDiscountDtoStateEnum2["SCHEDULED"] = "SCHEDULED";
8976
+ return CreateDiscountDtoStateEnum2;
8977
+ })(CreateDiscountDtoStateEnum || {});
8978
+ var CreateDiscountDtoMinPurchaseRequiredEnum = /* @__PURE__ */ ((CreateDiscountDtoMinPurchaseRequiredEnum2) => {
8979
+ CreateDiscountDtoMinPurchaseRequiredEnum2["NOREQUIREMENT"] = "NO_REQUIREMENT";
8980
+ CreateDiscountDtoMinPurchaseRequiredEnum2["MINIMUMAMOUNT"] = "MINIMUM_AMOUNT";
8981
+ CreateDiscountDtoMinPurchaseRequiredEnum2["MINIMUMQUANTITY"] = "MINIMUM_QUANTITY";
8982
+ return CreateDiscountDtoMinPurchaseRequiredEnum2;
8983
+ })(CreateDiscountDtoMinPurchaseRequiredEnum || {});
8984
+ var CreateDiscountDtoCustomerEligibilityEnum = /* @__PURE__ */ ((CreateDiscountDtoCustomerEligibilityEnum2) => {
8985
+ CreateDiscountDtoCustomerEligibilityEnum2["ALL"] = "ALL";
8986
+ CreateDiscountDtoCustomerEligibilityEnum2["SPECIFICUSERS"] = "SPECIFIC_USERS";
8987
+ CreateDiscountDtoCustomerEligibilityEnum2["SPECIFICGROUPS"] = "SPECIFIC_GROUPS";
8988
+ return CreateDiscountDtoCustomerEligibilityEnum2;
8989
+ })(CreateDiscountDtoCustomerEligibilityEnum || {});
8990
+
8991
+ // src/lib/Apis/models/create-store-address-dto.ts
8992
+ var CreateStoreAddressDtoAddressTypeEnum = /* @__PURE__ */ ((CreateStoreAddressDtoAddressTypeEnum2) => {
8993
+ CreateStoreAddressDtoAddressTypeEnum2["Billing"] = "Billing";
8994
+ CreateStoreAddressDtoAddressTypeEnum2["Shipping"] = "Shipping";
8995
+ CreateStoreAddressDtoAddressTypeEnum2["Both"] = "Both";
8996
+ return CreateStoreAddressDtoAddressTypeEnum2;
8997
+ })(CreateStoreAddressDtoAddressTypeEnum || {});
8998
+
8999
+ // src/lib/Apis/models/create-user-dto.ts
9000
+ var CreateUserDtoRoleEnum = /* @__PURE__ */ ((CreateUserDtoRoleEnum2) => {
9001
+ CreateUserDtoRoleEnum2["SuperAdmin"] = "SuperAdmin";
9002
+ CreateUserDtoRoleEnum2["Admin"] = "Admin";
9003
+ CreateUserDtoRoleEnum2["User"] = "User";
9004
+ return CreateUserDtoRoleEnum2;
9005
+ })(CreateUserDtoRoleEnum || {});
9006
+ var CreateUserDtoCustomerTypeEnum = /* @__PURE__ */ ((CreateUserDtoCustomerTypeEnum2) => {
9007
+ CreateUserDtoCustomerTypeEnum2["B2B"] = "B2B";
9008
+ CreateUserDtoCustomerTypeEnum2["Regular"] = "Regular";
9009
+ return CreateUserDtoCustomerTypeEnum2;
9010
+ })(CreateUserDtoCustomerTypeEnum || {});
9011
+
9012
+ // src/lib/Apis/models/discount.ts
9013
+ var DiscountDiscountTypeEnum = /* @__PURE__ */ ((DiscountDiscountTypeEnum2) => {
9014
+ DiscountDiscountTypeEnum2["PRODUCT"] = "PRODUCT";
9015
+ DiscountDiscountTypeEnum2["CATEGORY"] = "CATEGORY";
9016
+ DiscountDiscountTypeEnum2["VARIANT"] = "VARIANT";
9017
+ return DiscountDiscountTypeEnum2;
9018
+ })(DiscountDiscountTypeEnum || {});
9019
+ var DiscountDecreasePriceByEnum = /* @__PURE__ */ ((DiscountDecreasePriceByEnum2) => {
9020
+ DiscountDecreasePriceByEnum2["PERCENTAGE"] = "PERCENTAGE";
9021
+ DiscountDecreasePriceByEnum2["AMOUNT"] = "AMOUNT";
9022
+ return DiscountDecreasePriceByEnum2;
9023
+ })(DiscountDecreasePriceByEnum || {});
9024
+ var DiscountStateEnum = /* @__PURE__ */ ((DiscountStateEnum2) => {
9025
+ DiscountStateEnum2["ACTIVE"] = "ACTIVE";
9026
+ DiscountStateEnum2["INACTIVE"] = "INACTIVE";
9027
+ DiscountStateEnum2["EXPIRED"] = "EXPIRED";
9028
+ DiscountStateEnum2["SCHEDULED"] = "SCHEDULED";
9029
+ return DiscountStateEnum2;
9030
+ })(DiscountStateEnum || {});
9031
+ var DiscountMinPurchaseRequiredEnum = /* @__PURE__ */ ((DiscountMinPurchaseRequiredEnum2) => {
9032
+ DiscountMinPurchaseRequiredEnum2["NOREQUIREMENT"] = "NO_REQUIREMENT";
9033
+ DiscountMinPurchaseRequiredEnum2["MINIMUMAMOUNT"] = "MINIMUM_AMOUNT";
9034
+ DiscountMinPurchaseRequiredEnum2["MINIMUMQUANTITY"] = "MINIMUM_QUANTITY";
9035
+ return DiscountMinPurchaseRequiredEnum2;
9036
+ })(DiscountMinPurchaseRequiredEnum || {});
9037
+ var DiscountCustomerEligibilityEnum = /* @__PURE__ */ ((DiscountCustomerEligibilityEnum2) => {
9038
+ DiscountCustomerEligibilityEnum2["ALL"] = "ALL";
9039
+ DiscountCustomerEligibilityEnum2["SPECIFICUSERS"] = "SPECIFIC_USERS";
9040
+ DiscountCustomerEligibilityEnum2["SPECIFICGROUPS"] = "SPECIFIC_GROUPS";
9041
+ return DiscountCustomerEligibilityEnum2;
9042
+ })(DiscountCustomerEligibilityEnum || {});
9043
+
9044
+ // src/lib/Apis/models/manual-discount.ts
9045
+ var ManualDiscountDecreasePriceByEnum = /* @__PURE__ */ ((ManualDiscountDecreasePriceByEnum2) => {
9046
+ ManualDiscountDecreasePriceByEnum2["PERCENTAGE"] = "PERCENTAGE";
9047
+ ManualDiscountDecreasePriceByEnum2["AMOUNT"] = "AMOUNT";
9048
+ return ManualDiscountDecreasePriceByEnum2;
9049
+ })(ManualDiscountDecreasePriceByEnum || {});
9050
+
7005
9051
  // src/lib/Apis/models/manual-order-dto.ts
9052
+ var ManualOrderDTOPaymentMethodEnum = /* @__PURE__ */ ((ManualOrderDTOPaymentMethodEnum2) => {
9053
+ ManualOrderDTOPaymentMethodEnum2["Cash"] = "Cash";
9054
+ ManualOrderDTOPaymentMethodEnum2["Credit"] = "Credit";
9055
+ ManualOrderDTOPaymentMethodEnum2["Card"] = "Card";
9056
+ return ManualOrderDTOPaymentMethodEnum2;
9057
+ })(ManualOrderDTOPaymentMethodEnum || {});
7006
9058
  var ManualOrderDTOOrderStatusEnum = /* @__PURE__ */ ((ManualOrderDTOOrderStatusEnum2) => {
7007
9059
  ManualOrderDTOOrderStatusEnum2["Pending"] = "Pending";
7008
9060
  ManualOrderDTOOrderStatusEnum2["PickingPacking"] = "Picking & Packing";
@@ -7017,6 +9069,30 @@ var ManualOrderDTOOrderStatusEnum = /* @__PURE__ */ ((ManualOrderDTOOrderStatusE
7017
9069
  ManualOrderDTOOrderStatusEnum2["InFulfillment"] = "In Fulfillment";
7018
9070
  return ManualOrderDTOOrderStatusEnum2;
7019
9071
  })(ManualOrderDTOOrderStatusEnum || {});
9072
+ var ManualOrderDTOPaymentStatusEnum = /* @__PURE__ */ ((ManualOrderDTOPaymentStatusEnum2) => {
9073
+ ManualOrderDTOPaymentStatusEnum2["Paid"] = "Paid";
9074
+ ManualOrderDTOPaymentStatusEnum2["Unpaid"] = "Unpaid";
9075
+ return ManualOrderDTOPaymentStatusEnum2;
9076
+ })(ManualOrderDTOPaymentStatusEnum || {});
9077
+
9078
+ // src/lib/Apis/models/order.ts
9079
+ var OrderOrderTypeEnum = /* @__PURE__ */ ((OrderOrderTypeEnum2) => {
9080
+ OrderOrderTypeEnum2["Pickup"] = "Pickup";
9081
+ OrderOrderTypeEnum2["Delivery"] = "Delivery";
9082
+ return OrderOrderTypeEnum2;
9083
+ })(OrderOrderTypeEnum || {});
9084
+ var OrderTypeEnum = /* @__PURE__ */ ((OrderTypeEnum2) => {
9085
+ OrderTypeEnum2["Quotation"] = "Quotation";
9086
+ OrderTypeEnum2["Order"] = "Order";
9087
+ return OrderTypeEnum2;
9088
+ })(OrderTypeEnum || {});
9089
+
9090
+ // src/lib/Apis/models/order-time-line-dto.ts
9091
+ var OrderTimeLineDTOTypeEnum = /* @__PURE__ */ ((OrderTimeLineDTOTypeEnum2) => {
9092
+ OrderTimeLineDTOTypeEnum2["OrderStatus"] = "orderStatus";
9093
+ OrderTimeLineDTOTypeEnum2["Reminder"] = "reminder";
9094
+ return OrderTimeLineDTOTypeEnum2;
9095
+ })(OrderTimeLineDTOTypeEnum || {});
7020
9096
 
7021
9097
  // src/lib/Apis/models/payment.ts
7022
9098
  var PaymentPaymentStatusEnum = /* @__PURE__ */ ((PaymentPaymentStatusEnum2) => {
@@ -7037,6 +9113,207 @@ var PaymentPaymentStatusEnum = /* @__PURE__ */ ((PaymentPaymentStatusEnum2) => {
7037
9113
  PaymentPaymentStatusEnum2["RefundRejected"] = "Refund Rejected";
7038
9114
  return PaymentPaymentStatusEnum2;
7039
9115
  })(PaymentPaymentStatusEnum || {});
9116
+ var PaymentPaymentMethodEnum = /* @__PURE__ */ ((PaymentPaymentMethodEnum2) => {
9117
+ PaymentPaymentMethodEnum2["Cash"] = "Cash";
9118
+ PaymentPaymentMethodEnum2["Credit"] = "Credit";
9119
+ PaymentPaymentMethodEnum2["Card"] = "Card";
9120
+ return PaymentPaymentMethodEnum2;
9121
+ })(PaymentPaymentMethodEnum || {});
9122
+
9123
+ // src/lib/Apis/models/payment-time-line-dto.ts
9124
+ var PaymentTimeLineDTOTitleEnum = /* @__PURE__ */ ((PaymentTimeLineDTOTitleEnum2) => {
9125
+ PaymentTimeLineDTOTitleEnum2["Paid"] = "Paid";
9126
+ PaymentTimeLineDTOTitleEnum2["Unpaid"] = "Unpaid";
9127
+ PaymentTimeLineDTOTitleEnum2["Refunded"] = "Refunded";
9128
+ PaymentTimeLineDTOTitleEnum2["PartiallyRefunded"] = "Partially Refunded";
9129
+ PaymentTimeLineDTOTitleEnum2["PastDue"] = "Past Due";
9130
+ PaymentTimeLineDTOTitleEnum2["Processing"] = "Processing";
9131
+ PaymentTimeLineDTOTitleEnum2["PaymentFailed"] = "Payment Failed";
9132
+ PaymentTimeLineDTOTitleEnum2["PaymentCreated"] = "Payment Created";
9133
+ PaymentTimeLineDTOTitleEnum2["PaymentCanceled"] = "Payment Canceled";
9134
+ PaymentTimeLineDTOTitleEnum2["PaymentUpdated"] = "Payment Updated";
9135
+ PaymentTimeLineDTOTitleEnum2["Cancelled"] = "Cancelled";
9136
+ PaymentTimeLineDTOTitleEnum2["RefundRequested"] = "Refund Requested";
9137
+ PaymentTimeLineDTOTitleEnum2["RefundProcessing"] = "Refund Processing";
9138
+ PaymentTimeLineDTOTitleEnum2["RefundFailed"] = "Refund Failed";
9139
+ PaymentTimeLineDTOTitleEnum2["RefundRejected"] = "Refund Rejected";
9140
+ return PaymentTimeLineDTOTitleEnum2;
9141
+ })(PaymentTimeLineDTOTitleEnum || {});
9142
+
9143
+ // src/lib/Apis/models/populated-discount.ts
9144
+ var PopulatedDiscountDiscountTypeEnum = /* @__PURE__ */ ((PopulatedDiscountDiscountTypeEnum2) => {
9145
+ PopulatedDiscountDiscountTypeEnum2["PRODUCT"] = "PRODUCT";
9146
+ PopulatedDiscountDiscountTypeEnum2["CATEGORY"] = "CATEGORY";
9147
+ PopulatedDiscountDiscountTypeEnum2["VARIANT"] = "VARIANT";
9148
+ return PopulatedDiscountDiscountTypeEnum2;
9149
+ })(PopulatedDiscountDiscountTypeEnum || {});
9150
+ var PopulatedDiscountDecreasePriceByEnum = /* @__PURE__ */ ((PopulatedDiscountDecreasePriceByEnum2) => {
9151
+ PopulatedDiscountDecreasePriceByEnum2["PERCENTAGE"] = "PERCENTAGE";
9152
+ PopulatedDiscountDecreasePriceByEnum2["AMOUNT"] = "AMOUNT";
9153
+ return PopulatedDiscountDecreasePriceByEnum2;
9154
+ })(PopulatedDiscountDecreasePriceByEnum || {});
9155
+ var PopulatedDiscountStateEnum = /* @__PURE__ */ ((PopulatedDiscountStateEnum2) => {
9156
+ PopulatedDiscountStateEnum2["ACTIVE"] = "ACTIVE";
9157
+ PopulatedDiscountStateEnum2["INACTIVE"] = "INACTIVE";
9158
+ PopulatedDiscountStateEnum2["EXPIRED"] = "EXPIRED";
9159
+ PopulatedDiscountStateEnum2["SCHEDULED"] = "SCHEDULED";
9160
+ return PopulatedDiscountStateEnum2;
9161
+ })(PopulatedDiscountStateEnum || {});
9162
+ var PopulatedDiscountMinPurchaseRequiredEnum = /* @__PURE__ */ ((PopulatedDiscountMinPurchaseRequiredEnum2) => {
9163
+ PopulatedDiscountMinPurchaseRequiredEnum2["NOREQUIREMENT"] = "NO_REQUIREMENT";
9164
+ PopulatedDiscountMinPurchaseRequiredEnum2["MINIMUMAMOUNT"] = "MINIMUM_AMOUNT";
9165
+ PopulatedDiscountMinPurchaseRequiredEnum2["MINIMUMQUANTITY"] = "MINIMUM_QUANTITY";
9166
+ return PopulatedDiscountMinPurchaseRequiredEnum2;
9167
+ })(PopulatedDiscountMinPurchaseRequiredEnum || {});
9168
+ var PopulatedDiscountCustomerEligibilityEnum = /* @__PURE__ */ ((PopulatedDiscountCustomerEligibilityEnum2) => {
9169
+ PopulatedDiscountCustomerEligibilityEnum2["ALL"] = "ALL";
9170
+ PopulatedDiscountCustomerEligibilityEnum2["SPECIFICUSERS"] = "SPECIFIC_USERS";
9171
+ PopulatedDiscountCustomerEligibilityEnum2["SPECIFICGROUPS"] = "SPECIFIC_GROUPS";
9172
+ return PopulatedDiscountCustomerEligibilityEnum2;
9173
+ })(PopulatedDiscountCustomerEligibilityEnum || {});
9174
+
9175
+ // src/lib/Apis/models/populated-order.ts
9176
+ var PopulatedOrderOrderTypeEnum = /* @__PURE__ */ ((PopulatedOrderOrderTypeEnum2) => {
9177
+ PopulatedOrderOrderTypeEnum2["Pickup"] = "Pickup";
9178
+ PopulatedOrderOrderTypeEnum2["Delivery"] = "Delivery";
9179
+ return PopulatedOrderOrderTypeEnum2;
9180
+ })(PopulatedOrderOrderTypeEnum || {});
9181
+ var PopulatedOrderTypeEnum = /* @__PURE__ */ ((PopulatedOrderTypeEnum2) => {
9182
+ PopulatedOrderTypeEnum2["Quotation"] = "Quotation";
9183
+ PopulatedOrderTypeEnum2["Order"] = "Order";
9184
+ return PopulatedOrderTypeEnum2;
9185
+ })(PopulatedOrderTypeEnum || {});
9186
+
9187
+ // src/lib/Apis/models/product-variant.ts
9188
+ var ProductVariantInventoryStatusEnum = /* @__PURE__ */ ((ProductVariantInventoryStatusEnum2) => {
9189
+ ProductVariantInventoryStatusEnum2["INSTOCK"] = "IN_STOCK";
9190
+ ProductVariantInventoryStatusEnum2["OUTOFSTOCK"] = "OUT_OF_STOCK";
9191
+ ProductVariantInventoryStatusEnum2["LOWSTOCK"] = "LOW_STOCK";
9192
+ return ProductVariantInventoryStatusEnum2;
9193
+ })(ProductVariantInventoryStatusEnum || {});
9194
+
9195
+ // src/lib/Apis/models/reorder-products-dto.ts
9196
+ var ReorderProductsDtoContainerTypeEnum = /* @__PURE__ */ ((ReorderProductsDtoContainerTypeEnum2) => {
9197
+ ReorderProductsDtoContainerTypeEnum2["Category"] = "category";
9198
+ ReorderProductsDtoContainerTypeEnum2["Subcategory"] = "subcategory";
9199
+ return ReorderProductsDtoContainerTypeEnum2;
9200
+ })(ReorderProductsDtoContainerTypeEnum || {});
9201
+
9202
+ // src/lib/Apis/models/shipment-details-dto.ts
9203
+ var ShipmentDetailsDtoStatusEnum = /* @__PURE__ */ ((ShipmentDetailsDtoStatusEnum2) => {
9204
+ ShipmentDetailsDtoStatusEnum2["ERROR"] = "ERROR";
9205
+ ShipmentDetailsDtoStatusEnum2["QUEUED"] = "QUEUED";
9206
+ ShipmentDetailsDtoStatusEnum2["SUCCESS"] = "SUCCESS";
9207
+ ShipmentDetailsDtoStatusEnum2["WAITING"] = "WAITING";
9208
+ return ShipmentDetailsDtoStatusEnum2;
9209
+ })(ShipmentDetailsDtoStatusEnum || {});
9210
+
9211
+ // src/lib/Apis/models/shipping-info.ts
9212
+ var ShippingInfoStatusEnum = /* @__PURE__ */ ((ShippingInfoStatusEnum2) => {
9213
+ ShippingInfoStatusEnum2["ERROR"] = "ERROR";
9214
+ ShippingInfoStatusEnum2["QUEUED"] = "QUEUED";
9215
+ ShippingInfoStatusEnum2["SUCCESS"] = "SUCCESS";
9216
+ ShippingInfoStatusEnum2["WAITING"] = "WAITING";
9217
+ return ShippingInfoStatusEnum2;
9218
+ })(ShippingInfoStatusEnum || {});
9219
+
9220
+ // src/lib/Apis/models/single-product-media.ts
9221
+ var SingleProductMediaTypeEnum = /* @__PURE__ */ ((SingleProductMediaTypeEnum2) => {
9222
+ SingleProductMediaTypeEnum2["Image"] = "image";
9223
+ SingleProductMediaTypeEnum2["Video"] = "video";
9224
+ SingleProductMediaTypeEnum2["Audio"] = "audio";
9225
+ return SingleProductMediaTypeEnum2;
9226
+ })(SingleProductMediaTypeEnum || {});
9227
+
9228
+ // src/lib/Apis/models/update-address-dto.ts
9229
+ var UpdateAddressDtoAddressTypeEnum = /* @__PURE__ */ ((UpdateAddressDtoAddressTypeEnum2) => {
9230
+ UpdateAddressDtoAddressTypeEnum2["Billing"] = "Billing";
9231
+ UpdateAddressDtoAddressTypeEnum2["Shipping"] = "Shipping";
9232
+ UpdateAddressDtoAddressTypeEnum2["Both"] = "Both";
9233
+ return UpdateAddressDtoAddressTypeEnum2;
9234
+ })(UpdateAddressDtoAddressTypeEnum || {});
9235
+
9236
+ // src/lib/Apis/models/update-discount-dto.ts
9237
+ var UpdateDiscountDtoDiscountTypeEnum = /* @__PURE__ */ ((UpdateDiscountDtoDiscountTypeEnum2) => {
9238
+ UpdateDiscountDtoDiscountTypeEnum2["PRODUCT"] = "PRODUCT";
9239
+ UpdateDiscountDtoDiscountTypeEnum2["CATEGORY"] = "CATEGORY";
9240
+ UpdateDiscountDtoDiscountTypeEnum2["VARIANT"] = "VARIANT";
9241
+ return UpdateDiscountDtoDiscountTypeEnum2;
9242
+ })(UpdateDiscountDtoDiscountTypeEnum || {});
9243
+ var UpdateDiscountDtoDecreasePriceByEnum = /* @__PURE__ */ ((UpdateDiscountDtoDecreasePriceByEnum2) => {
9244
+ UpdateDiscountDtoDecreasePriceByEnum2["PERCENTAGE"] = "PERCENTAGE";
9245
+ UpdateDiscountDtoDecreasePriceByEnum2["AMOUNT"] = "AMOUNT";
9246
+ return UpdateDiscountDtoDecreasePriceByEnum2;
9247
+ })(UpdateDiscountDtoDecreasePriceByEnum || {});
9248
+ var UpdateDiscountDtoStateEnum = /* @__PURE__ */ ((UpdateDiscountDtoStateEnum2) => {
9249
+ UpdateDiscountDtoStateEnum2["ACTIVE"] = "ACTIVE";
9250
+ UpdateDiscountDtoStateEnum2["INACTIVE"] = "INACTIVE";
9251
+ UpdateDiscountDtoStateEnum2["EXPIRED"] = "EXPIRED";
9252
+ UpdateDiscountDtoStateEnum2["SCHEDULED"] = "SCHEDULED";
9253
+ return UpdateDiscountDtoStateEnum2;
9254
+ })(UpdateDiscountDtoStateEnum || {});
9255
+ var UpdateDiscountDtoMinPurchaseRequiredEnum = /* @__PURE__ */ ((UpdateDiscountDtoMinPurchaseRequiredEnum2) => {
9256
+ UpdateDiscountDtoMinPurchaseRequiredEnum2["NOREQUIREMENT"] = "NO_REQUIREMENT";
9257
+ UpdateDiscountDtoMinPurchaseRequiredEnum2["MINIMUMAMOUNT"] = "MINIMUM_AMOUNT";
9258
+ UpdateDiscountDtoMinPurchaseRequiredEnum2["MINIMUMQUANTITY"] = "MINIMUM_QUANTITY";
9259
+ return UpdateDiscountDtoMinPurchaseRequiredEnum2;
9260
+ })(UpdateDiscountDtoMinPurchaseRequiredEnum || {});
9261
+ var UpdateDiscountDtoCustomerEligibilityEnum = /* @__PURE__ */ ((UpdateDiscountDtoCustomerEligibilityEnum2) => {
9262
+ UpdateDiscountDtoCustomerEligibilityEnum2["ALL"] = "ALL";
9263
+ UpdateDiscountDtoCustomerEligibilityEnum2["SPECIFICUSERS"] = "SPECIFIC_USERS";
9264
+ UpdateDiscountDtoCustomerEligibilityEnum2["SPECIFICGROUPS"] = "SPECIFIC_GROUPS";
9265
+ return UpdateDiscountDtoCustomerEligibilityEnum2;
9266
+ })(UpdateDiscountDtoCustomerEligibilityEnum || {});
9267
+
9268
+ // src/lib/Apis/models/update-manual-shipment-status-dto.ts
9269
+ var UpdateManualShipmentStatusDtoStatusEnum = /* @__PURE__ */ ((UpdateManualShipmentStatusDtoStatusEnum2) => {
9270
+ UpdateManualShipmentStatusDtoStatusEnum2["Pending"] = "Pending";
9271
+ UpdateManualShipmentStatusDtoStatusEnum2["Processing"] = "Processing";
9272
+ UpdateManualShipmentStatusDtoStatusEnum2["OutForDelivery"] = "Out for Delivery";
9273
+ UpdateManualShipmentStatusDtoStatusEnum2["Delivered"] = "Delivered";
9274
+ UpdateManualShipmentStatusDtoStatusEnum2["Cancelled"] = "Cancelled";
9275
+ UpdateManualShipmentStatusDtoStatusEnum2["Returned"] = "Returned";
9276
+ return UpdateManualShipmentStatusDtoStatusEnum2;
9277
+ })(UpdateManualShipmentStatusDtoStatusEnum || {});
9278
+
9279
+ // src/lib/Apis/models/update-user-dto.ts
9280
+ var UpdateUserDtoRoleEnum = /* @__PURE__ */ ((UpdateUserDtoRoleEnum2) => {
9281
+ UpdateUserDtoRoleEnum2["SuperAdmin"] = "SuperAdmin";
9282
+ UpdateUserDtoRoleEnum2["Admin"] = "Admin";
9283
+ UpdateUserDtoRoleEnum2["User"] = "User";
9284
+ return UpdateUserDtoRoleEnum2;
9285
+ })(UpdateUserDtoRoleEnum || {});
9286
+ var UpdateUserDtoCustomerTypeEnum = /* @__PURE__ */ ((UpdateUserDtoCustomerTypeEnum2) => {
9287
+ UpdateUserDtoCustomerTypeEnum2["B2B"] = "B2B";
9288
+ UpdateUserDtoCustomerTypeEnum2["Regular"] = "Regular";
9289
+ return UpdateUserDtoCustomerTypeEnum2;
9290
+ })(UpdateUserDtoCustomerTypeEnum || {});
9291
+
9292
+ // src/lib/Apis/models/user-entity.ts
9293
+ var UserEntityRoleEnum = /* @__PURE__ */ ((UserEntityRoleEnum2) => {
9294
+ UserEntityRoleEnum2["SuperAdmin"] = "SuperAdmin";
9295
+ UserEntityRoleEnum2["Admin"] = "Admin";
9296
+ UserEntityRoleEnum2["User"] = "User";
9297
+ return UserEntityRoleEnum2;
9298
+ })(UserEntityRoleEnum || {});
9299
+ var UserEntityCustomerTypeEnum = /* @__PURE__ */ ((UserEntityCustomerTypeEnum2) => {
9300
+ UserEntityCustomerTypeEnum2["B2B"] = "B2B";
9301
+ UserEntityCustomerTypeEnum2["Regular"] = "Regular";
9302
+ return UserEntityCustomerTypeEnum2;
9303
+ })(UserEntityCustomerTypeEnum || {});
9304
+
9305
+ // src/lib/Apis/models/user-with-no-id.ts
9306
+ var UserWithNoIdRoleEnum = /* @__PURE__ */ ((UserWithNoIdRoleEnum2) => {
9307
+ UserWithNoIdRoleEnum2["SuperAdmin"] = "SuperAdmin";
9308
+ UserWithNoIdRoleEnum2["Admin"] = "Admin";
9309
+ UserWithNoIdRoleEnum2["User"] = "User";
9310
+ return UserWithNoIdRoleEnum2;
9311
+ })(UserWithNoIdRoleEnum || {});
9312
+ var UserWithNoIdCustomerTypeEnum = /* @__PURE__ */ ((UserWithNoIdCustomerTypeEnum2) => {
9313
+ UserWithNoIdCustomerTypeEnum2["B2B"] = "B2B";
9314
+ UserWithNoIdCustomerTypeEnum2["Regular"] = "Regular";
9315
+ return UserWithNoIdCustomerTypeEnum2;
9316
+ })(UserWithNoIdCustomerTypeEnum || {});
7040
9317
 
7041
9318
  // src/lib/api-adapter/index.ts
7042
9319
  init_config();
@@ -7386,7 +9663,7 @@ init_config();
7386
9663
  init_config();
7387
9664
  init_sharedConfig();
7388
9665
  init_sharedConfig();
7389
- globalAxios18__default.default.interceptors.request.use(async (config) => {
9666
+ globalAxios21__default.default.interceptors.request.use(async (config) => {
7390
9667
  if (!config?.headers) {
7391
9668
  throw new Error(
7392
9669
  `Expected 'config' and 'config.headers' not to be undefined`
@@ -10161,6 +12438,60 @@ function useAddresses() {
10161
12438
  markAsDefault
10162
12439
  };
10163
12440
  }
12441
+ init_config();
12442
+ var cachedCapabilities = null;
12443
+ var cacheStoreId = null;
12444
+ function useStoreCapabilities() {
12445
+ const [capabilities, setCapabilities] = React8.useState(cachedCapabilities);
12446
+ const [isLoading, setIsLoading] = React8.useState(!cachedCapabilities);
12447
+ const [error, setError] = React8.useState(null);
12448
+ const fetchCapabilities = React8.useCallback(async (forceRefresh = false) => {
12449
+ try {
12450
+ const config = getCurrentConfig();
12451
+ const storeId = config?.storeId;
12452
+ if (!storeId) {
12453
+ setError(new Error("Store ID not configured"));
12454
+ setIsLoading(false);
12455
+ return;
12456
+ }
12457
+ if (!forceRefresh && cachedCapabilities && cacheStoreId === storeId) {
12458
+ setCapabilities(cachedCapabilities);
12459
+ setIsLoading(false);
12460
+ return;
12461
+ }
12462
+ setIsLoading(true);
12463
+ setError(null);
12464
+ const api = new StoresApi(AXIOS_CONFIG);
12465
+ const response = await api.getStoreCapabilities(storeId);
12466
+ cachedCapabilities = response.data;
12467
+ cacheStoreId = storeId;
12468
+ setCapabilities(response.data);
12469
+ } catch (err) {
12470
+ console.error("Failed to fetch store capabilities:", err);
12471
+ setError(err instanceof Error ? err : new Error("Failed to fetch store capabilities"));
12472
+ } finally {
12473
+ setIsLoading(false);
12474
+ }
12475
+ }, []);
12476
+ const refresh = React8.useCallback(async () => {
12477
+ await fetchCapabilities(true);
12478
+ }, [fetchCapabilities]);
12479
+ React8.useEffect(() => {
12480
+ fetchCapabilities();
12481
+ }, [fetchCapabilities]);
12482
+ const showCardPayment = Boolean(capabilities?.hasStripeKey && capabilities?.cardPaymentEnabled);
12483
+ const showShippoDelivery = Boolean(capabilities?.hasShippoKey && capabilities?.shippoDeliveryEnabled);
12484
+ const showCustomDelivery = Boolean(capabilities?.customDeliveryEnabled);
12485
+ return {
12486
+ capabilities,
12487
+ isLoading,
12488
+ error,
12489
+ refresh,
12490
+ showCardPayment,
12491
+ showShippoDelivery,
12492
+ showCustomDelivery
12493
+ };
12494
+ }
10164
12495
  function Modal({ isOpen, onClose, title, children, size = "md" }) {
10165
12496
  React8.useEffect(() => {
10166
12497
  if (typeof window === "undefined") return;
@@ -10417,31 +12748,27 @@ var checkoutSchema = zod.z.object({
10417
12748
  billing: addressSchema,
10418
12749
  sameAsShipping: zod.z.boolean().default(true)
10419
12750
  });
10420
- var PAYMENT_METHODS = [
12751
+ var PAYMENT_METHODS_CONFIG = [
10421
12752
  {
12753
+ id: "Card",
10422
12754
  label: "Card",
10423
12755
  value: "Card",
10424
12756
  icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CreditCard, { className: "w-5 h-5" }),
10425
12757
  description: "Pay securely with your credit or debit card",
10426
12758
  className: "border-blue-500 hover:bg-blue-50",
10427
- activeClass: "bg-blue-50 border-blue-500 text-blue-700"
12759
+ activeClass: "bg-blue-50 border-blue-500 text-blue-700",
12760
+ requiresStripe: true
10428
12761
  },
10429
12762
  {
12763
+ id: "Cash",
10430
12764
  label: "Cash",
10431
12765
  value: "Cash",
10432
12766
  icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.PackageCheck, { className: "w-5 h-5" }),
10433
12767
  description: "Pay with cash on delivery or at pickup",
10434
12768
  className: "border-amber-500 hover:bg-amber-50",
10435
- activeClass: "bg-amber-50 border-amber-500 text-amber-700"
10436
- }
10437
- // {
10438
- // label: 'Credit',
10439
- // value: 'Credit',
10440
- // icon: <ShieldCheck className="w-5 h-5" />,
10441
- // description: 'Use your account credit',
10442
- // className: 'border-emerald-500 hover:bg-emerald-50',
10443
- // activeClass: 'bg-emerald-50 border-emerald-500 text-emerald-700',
10444
- // },
12769
+ activeClass: "bg-amber-50 border-amber-500 text-amber-700",
12770
+ requiresStripe: false
12771
+ }
10445
12772
  ];
10446
12773
  function CheckoutScreen() {
10447
12774
  const router = navigation.useRouter();
@@ -10449,8 +12776,9 @@ function CheckoutScreen() {
10449
12776
  const { isAuthenticated, user } = useAuth();
10450
12777
  const { buildPath } = useBasePath();
10451
12778
  const [isSubmitting, setIsSubmitting] = React8.useState(false);
10452
- const [isDelivery, setIsDelivery] = React8.useState(true);
10453
- const [paymentMethod, setPaymentMethod] = React8.useState("Card");
12779
+ const [isDelivery, setIsDelivery] = React8.useState(null);
12780
+ const [hasSetDefaultDelivery, setHasSetDefaultDelivery] = React8.useState(false);
12781
+ const [paymentMethod, setPaymentMethod] = React8.useState(null);
10454
12782
  const [error, setError] = React8.useState(null);
10455
12783
  const [selectedAddressId, setSelectedAddressId] = React8.useState(null);
10456
12784
  const [storeAddresses, setStoreAddresses] = React8.useState([]);
@@ -10462,6 +12790,58 @@ function CheckoutScreen() {
10462
12790
  addresses: userAddresses,
10463
12791
  defaultAddress
10464
12792
  } = useAddresses();
12793
+ const {
12794
+ capabilities,
12795
+ isLoading: capabilitiesLoading,
12796
+ showCardPayment,
12797
+ showShippoDelivery,
12798
+ showCustomDelivery
12799
+ } = useStoreCapabilities();
12800
+ const availablePaymentMethods = PAYMENT_METHODS_CONFIG.filter((pm) => {
12801
+ if (pm.requiresStripe) {
12802
+ return showCardPayment;
12803
+ }
12804
+ return true;
12805
+ });
12806
+ React8.useEffect(() => {
12807
+ if (!capabilitiesLoading && paymentMethod === null && availablePaymentMethods.length > 0) {
12808
+ const preferCard = availablePaymentMethods.find((pm) => pm.id === "Card");
12809
+ setPaymentMethod(preferCard ? "Card" : availablePaymentMethods[0].value);
12810
+ }
12811
+ }, [capabilitiesLoading, paymentMethod, availablePaymentMethods]);
12812
+ React8.useEffect(() => {
12813
+ if (!capabilitiesLoading && !hasSetDefaultDelivery && capabilities) {
12814
+ if (!showShippoDelivery && !showCustomDelivery) {
12815
+ setIsDelivery(false);
12816
+ }
12817
+ setHasSetDefaultDelivery(true);
12818
+ }
12819
+ }, [capabilitiesLoading, hasSetDefaultDelivery, capabilities, showShippoDelivery, showCustomDelivery]);
12820
+ const deliveryOptions = [
12821
+ // Shippo delivery (if enabled)
12822
+ ...showShippoDelivery ? [{
12823
+ id: "shippo",
12824
+ label: "Delivery",
12825
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Truck, { className: "w-5 h-5" }),
12826
+ value: true,
12827
+ desc: "Shipped to your address"
12828
+ }] : [],
12829
+ // Custom/Store delivery (if enabled)
12830
+ ...showCustomDelivery ? [{
12831
+ id: "custom",
12832
+ label: capabilities?.customDeliveryTitle || "Store Delivery",
12833
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Truck, { className: "w-5 h-5" }),
12834
+ value: "custom",
12835
+ desc: capabilities?.customDeliveryFlatRate ? `Flat rate: ${formatPrice(capabilities.customDeliveryFlatRate)}` : "Flat rate delivery"
12836
+ }] : [],
12837
+ {
12838
+ id: "pickup",
12839
+ label: "Pickup",
12840
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MapPin, { className: "w-5 h-5" }),
12841
+ value: false,
12842
+ desc: "Collect from pharmacy"
12843
+ }
12844
+ ];
10465
12845
  const [selectedShippingRateId, setSelectedShippingRateId] = React8.useState(null);
10466
12846
  const [shippingRates, setShippingRates] = React8.useState([]);
10467
12847
  const [shippingRatesLoading, setShippingRatesLoading] = React8.useState(false);
@@ -10550,7 +12930,7 @@ function CheckoutScreen() {
10550
12930
  setSelectedShippingRateId(null);
10551
12931
  };
10552
12932
  React8.useEffect(() => {
10553
- if (!isDelivery || !selectedAddressId || !cart || cart?.cartBody?.items?.length === 0 || !cart?.cartBody?.items) {
12933
+ if (isDelivery !== true || !selectedAddressId || !cart || cart?.cartBody?.items?.length === 0 || !cart?.cartBody?.items) {
10554
12934
  setShippingRates([]);
10555
12935
  setSelectedShippingRateId(null);
10556
12936
  return;
@@ -10579,16 +12959,20 @@ function CheckoutScreen() {
10579
12959
  })();
10580
12960
  }, [isDelivery, selectedAddressId, cart]);
10581
12961
  React8.useEffect(() => {
10582
- if (!isDelivery) {
12962
+ let cancelled = false;
12963
+ if (isDelivery === false) {
10583
12964
  (async () => {
10584
12965
  const api = new ShippingApi(AXIOS_CONFIG);
10585
12966
  const res = await api.getStoreAddress();
10586
- if (res.data) {
12967
+ if (!cancelled && res.data) {
10587
12968
  setStoreAddresses([res.data]);
10588
12969
  setShippingPrice(0);
10589
12970
  }
10590
12971
  })();
10591
12972
  }
12973
+ return () => {
12974
+ cancelled = true;
12975
+ };
10592
12976
  }, [isDelivery]);
10593
12977
  const onSubmit = async (data) => {
10594
12978
  setError(null);
@@ -10608,12 +12992,19 @@ function CheckoutScreen() {
10608
12992
  setError("Please select a payment method.");
10609
12993
  return;
10610
12994
  }
10611
- if (isDelivery) {
12995
+ if (isDelivery === null) {
12996
+ setError("Please select a delivery method.");
12997
+ return;
12998
+ }
12999
+ const isShippoDelivery = isDelivery === true;
13000
+ const isCustomDelivery = isDelivery === "custom";
13001
+ const needsDeliveryAddress = isShippoDelivery || isCustomDelivery;
13002
+ if (needsDeliveryAddress) {
10612
13003
  if (!selectedAddressId) {
10613
13004
  setError("Please select a shipping address.");
10614
13005
  return;
10615
13006
  }
10616
- if (!selectedShippingRateId) {
13007
+ if (isShippoDelivery && !selectedShippingRateId) {
10617
13008
  setError("Please select a shipping method.");
10618
13009
  return;
10619
13010
  }
@@ -10624,7 +13015,7 @@ function CheckoutScreen() {
10624
13015
  return;
10625
13016
  }
10626
13017
  }
10627
- } else {
13018
+ } else if (isDelivery === false) {
10628
13019
  if (storeAddresses.length === 0) {
10629
13020
  setError("Store pickup location is not available.");
10630
13021
  return;
@@ -10659,21 +13050,28 @@ function CheckoutScreen() {
10659
13050
  } else if (paymentMethod === "Card") {
10660
13051
  billingAddressId = userAddresses.length > 0 ? userAddresses[0].id : void 0;
10661
13052
  }
13053
+ const manualShipping = isDelivery === "custom" && selectedAddressId ? {
13054
+ amount: capabilities?.customDeliveryFlatRate || 0,
13055
+ userAddressId: selectedAddressId,
13056
+ shippingTitle: capabilities?.customDeliveryTitle || "Store Delivery"
13057
+ } : void 0;
10662
13058
  const orderDTO = {
10663
13059
  items,
10664
13060
  paymentMethod,
10665
13061
  orderStatus: "Pending",
10666
13062
  orderRemindingDates: [],
10667
13063
  shippingAddress: data.shipping,
10668
- billingAddress: sameAsShipping ? data.shipping : data.billing
13064
+ billingAddress: sameAsShipping ? data.shipping : data.billing,
13065
+ ...manualShipping && { manualShipping }
10669
13066
  };
10670
13067
  const api = new OrdersApi(AXIOS_CONFIG);
13068
+ const isDeliveryBoolean = isDelivery !== false;
10671
13069
  const response = await api.createCheckout(
10672
13070
  orderDTO,
10673
- isDelivery,
13071
+ isDeliveryBoolean,
10674
13072
  void 0,
10675
13073
  // dont pass userId
10676
- isDelivery ? selectedShippingRateId || void 0 : void 0,
13074
+ isDeliveryBoolean && isDelivery === true ? selectedShippingRateId || void 0 : void 0,
10677
13075
  billingAddressId
10678
13076
  );
10679
13077
  if (response?.data?.payment && response.data.payment.hostedInvoiceUrl === "INSUFFICIENT_CREDIT") {
@@ -10757,17 +13155,102 @@ function CheckoutScreen() {
10757
13155
  /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "font-['Poppins',sans-serif] font-semibold text-[#2B4B7C] mb-2 text-3xl", children: "Checkout" }),
10758
13156
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-['Poppins',sans-serif] text-[14px] text-[#676c80] text-md leading-relaxed", children: "Complete your order information below" })
10759
13157
  ] }),
10760
- /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8 text-[#2B4B7C]", children: [
10761
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center justify-between gap-4", children: [
10762
- /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
10763
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-['Poppins',sans-serif] font-semibold text-[#2B4B7C] mb-2 text-2xl", children: "Contact Information" }),
10764
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-slate-500", children: "We use temperature-aware packaging and real-time tracking on every shipment." })
13158
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-8", children: [
13159
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
13160
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 mb-6", children: [
13161
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Truck, { className: "w-6 h-6 text-[#2B4B7C]" }),
13162
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-xl font-semibold text-[#2B4B7C]", children: "Delivery Method" })
10765
13163
  ] }),
10766
- /* @__PURE__ */ jsxRuntime.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: [
10767
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Truck, { className: "h-4 w-4" }),
10768
- "Dispatch in 12h"
10769
- ] })
13164
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-3", children: deliveryOptions.map((option) => {
13165
+ const active = isDelivery === option.value;
13166
+ return /* @__PURE__ */ jsxRuntime.jsxs(
13167
+ "button",
13168
+ {
13169
+ type: "button",
13170
+ onClick: () => {
13171
+ setIsDelivery(option.value);
13172
+ setSelectedShippingRateId(null);
13173
+ if (option.value === "custom" && capabilities?.customDeliveryFlatRate) {
13174
+ setShippingPrice(capabilities.customDeliveryFlatRate);
13175
+ } else if (option.value === false) {
13176
+ setShippingPrice(0);
13177
+ } else {
13178
+ setShippingPrice(0);
13179
+ }
13180
+ },
13181
+ 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"}`,
13182
+ children: [
13183
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
13184
+ /* @__PURE__ */ jsxRuntime.jsx(
13185
+ "div",
13186
+ {
13187
+ className: `p-2 rounded-lg ${active ? "bg-primary-100 text-primary-600" : "bg-gray-100 text-gray-600"}`,
13188
+ children: option.icon
13189
+ }
13190
+ ),
13191
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-left", children: [
13192
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "font-medium text-gray-900", children: option.label }),
13193
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-gray-500", children: option.desc })
13194
+ ] })
13195
+ ] }),
13196
+ active && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-5 h-5 rounded-full bg-primary-500 flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "w-3 h-3 text-white" }) })
13197
+ ]
13198
+ },
13199
+ option.id
13200
+ );
13201
+ }) })
10770
13202
  ] }),
13203
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
13204
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 mb-6", children: [
13205
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CreditCard, { className: "w-6 h-6 text-[#2B4B7C]" }),
13206
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-xl font-semibold text-[#2B4B7C]", children: "Payment Method" })
13207
+ ] }),
13208
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-3", children: availablePaymentMethods.map((pm) => {
13209
+ const active = paymentMethod === pm.value;
13210
+ return /* @__PURE__ */ jsxRuntime.jsxs(
13211
+ "button",
13212
+ {
13213
+ type: "button",
13214
+ onClick: () => setPaymentMethod(pm.value),
13215
+ className: `
13216
+ group relative flex w-full items-center justify-between rounded-xl border-2 p-3
13217
+ transition-all duration-200 ease-out
13218
+ focus:outline-hidden
13219
+ ${active ? `${pm.activeClass} shadow-md scale-[1.02]` : `${pm.className} border-gray-200 bg-white hover:shadow-xs hover:-translate-y-0.5`}
13220
+ `,
13221
+ children: [
13222
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
13223
+ /* @__PURE__ */ jsxRuntime.jsx(
13224
+ "div",
13225
+ {
13226
+ className: `
13227
+ flex items-center justify-center rounded-lg p-2
13228
+ transition-colors duration-200
13229
+ ${pm.value === "Card" ? " text-blue-600" : pm.value === "Cash" ? " text-amber-600" : " text-emerald-600"}
13230
+ ${active ? "opacity-80" : "group-hover:opacity-90"}
13231
+ `,
13232
+ children: pm.icon
13233
+ }
13234
+ ),
13235
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-semibold text-gray-900", children: pm.label })
13236
+ ] }),
13237
+ active && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-5 w-5 items-center justify-center rounded-full bg-current shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-3 w-3 text-white" }) })
13238
+ ]
13239
+ },
13240
+ pm.value
13241
+ );
13242
+ }) }),
13243
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-xs text-slate-500 mt-4 px-1", children: [
13244
+ paymentMethod === "Card" && "You will be redirected to a secure payment page.",
13245
+ paymentMethod === "Cash" && "Pay with cash at the time of delivery or pickup."
13246
+ ] })
13247
+ ] })
13248
+ ] }) }),
13249
+ isDelivery !== null && /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8 text-[#2B4B7C]", children: [
13250
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap items-center justify-between gap-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
13251
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-['Poppins',sans-serif] font-semibold text-[#2B4B7C] mb-2 text-2xl", children: isDelivery ? "Delivery Address" : "Contact Information" }),
13252
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-slate-500", children: "We use temperature-aware packaging and real-time tracking on every shipment." })
13253
+ ] }) }),
10771
13254
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-6 grid grid-cols-1 gap-4 md:grid-cols-2", children: [
10772
13255
  isDelivery && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "md:col-span-2 space-y-4", children: [
10773
13256
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
@@ -10880,7 +13363,7 @@ function CheckoutScreen() {
10880
13363
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-slate-500", children: "Add a new address to continue" })
10881
13364
  ] })
10882
13365
  ] }),
10883
- !isDelivery && storeAddresses.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "md:col-span-2", children: [
13366
+ isDelivery === false && storeAddresses.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "md:col-span-2", children: [
10884
13367
  /* @__PURE__ */ jsxRuntime.jsx("label", { className: "block mb-2 font-semibold", children: "Select Pickup Location" }),
10885
13368
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: storeAddresses.map((addr) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full border rounded-sm p-2", children: /* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
10886
13369
  addr.name,
@@ -10896,7 +13379,7 @@ function CheckoutScreen() {
10896
13379
  ] })
10897
13380
  ] })
10898
13381
  ] }),
10899
- isDelivery && selectedAddressId && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8 text-[#2B4B7C]", children: [
13382
+ isDelivery === true && selectedAddressId && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8 text-[#2B4B7C]", children: [
10900
13383
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 text-xl font-semibold text-gray-900 pb-4 mb-8 border-b", children: [
10901
13384
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Truck, { className: "w-8 h-8 flex items-center justify-center text-[#2B4B7C]" }),
10902
13385
  /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-['Poppins',sans-serif] font-semibold text-[#2B4B7C] text-2xl", children: "Shipping Options" })
@@ -10995,106 +13478,6 @@ function CheckoutScreen() {
10995
13478
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-gray-500 text-lg font-medium", children: "No shipping options available" }),
10996
13479
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-gray-400 text-sm mt-1", children: "Please check the shipping address or try a different location." })
10997
13480
  ] })
10998
- ] }),
10999
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-6", children: [
11000
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8", children: [
11001
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 mb-6", children: [
11002
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Truck, { className: "w-8 h-8 text-[#2B4B7C]" }),
11003
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl font-semibold text-[#2B4B7C]", children: "Delivery Method" })
11004
- ] }),
11005
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 gap-3", children: [
11006
- {
11007
- label: "Delivery",
11008
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Truck, { className: "w-5 h-5" }),
11009
- value: true,
11010
- desc: "Shipped to your address"
11011
- },
11012
- {
11013
- label: "Pickup",
11014
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MapPin, { className: "w-5 h-5" }),
11015
- value: false,
11016
- desc: "Collect from pharmacy"
11017
- }
11018
- ].map((option) => {
11019
- const active = isDelivery === option.value;
11020
- return /* @__PURE__ */ jsxRuntime.jsxs(
11021
- "button",
11022
- {
11023
- type: "button",
11024
- onClick: () => {
11025
- setIsDelivery(option.value);
11026
- if (option.value) {
11027
- setSelectedShippingRateId(null);
11028
- setShippingPrice(0);
11029
- }
11030
- },
11031
- 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"}`,
11032
- children: [
11033
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
11034
- /* @__PURE__ */ jsxRuntime.jsx(
11035
- "div",
11036
- {
11037
- className: `p-2 rounded-lg ${active ? "bg-primary-100 text-primary-600" : "bg-gray-100 text-gray-600"}`,
11038
- children: option.icon
11039
- }
11040
- ),
11041
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-left", children: [
11042
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "font-medium text-gray-900", children: option.label }),
11043
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-gray-500", children: option.desc })
11044
- ] })
11045
- ] }),
11046
- active && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-5 h-5 rounded-full bg-primary-500 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "w-3 h-3 text-white" }) })
11047
- ]
11048
- },
11049
- option.label
11050
- );
11051
- }) })
11052
- ] }),
11053
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8", children: [
11054
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 mb-6", children: [
11055
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CreditCard, { className: "w-8 h-8 text-[#2B4B7C]" }),
11056
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl font-semibold text-[#2B4B7C]", children: "Payment Method" })
11057
- ] }),
11058
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid gap-4 md:grid-cols-3", children: PAYMENT_METHODS.map((pm) => {
11059
- const active = paymentMethod === pm.value;
11060
- return /* @__PURE__ */ jsxRuntime.jsxs(
11061
- "button",
11062
- {
11063
- type: "button",
11064
- onClick: () => setPaymentMethod(pm.value),
11065
- className: `
11066
- group relative flex w-full items-center justify-between rounded-xl border-2 p-3
11067
- transition-all duration-200 ease-out
11068
- focus:outline-hidden f
11069
- ${active ? `${pm.activeClass} shadow-md scale-[1.02]` : `${pm.className} border-gray-200 bg-white hover:shadow-xs hover:-translate-y-0.5`}
11070
- `,
11071
- children: [
11072
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
11073
- /* @__PURE__ */ jsxRuntime.jsx(
11074
- "div",
11075
- {
11076
- className: `
11077
- flex items-center justify-center rounded-lg p-2
11078
- transition-colors duration-200
11079
- ${pm.value === "Card" ? " text-blue-600" : pm.value === "Cash" ? " text-amber-600" : " text-emerald-600"}
11080
- ${active ? "opacity-80" : "group-hover:opacity-90"}
11081
- `,
11082
- children: pm.icon
11083
- }
11084
- ),
11085
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-semibold text-gray-900", children: pm.label })
11086
- ] }),
11087
- active && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-6 w-6 items-center justify-center rounded-full shadow-xs", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-3.5 w-3.5 text-white" }) })
11088
- ]
11089
- },
11090
- pm.value
11091
- );
11092
- }) }),
11093
- /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm text-gray-500 mt-4", children: [
11094
- paymentMethod === "Card" && "You will be redirected to a secure payment page.",
11095
- paymentMethod === "Cash" && "Pay with cash at the time of delivery or pickup."
11096
- ] })
11097
- ] })
11098
13481
  ] })
11099
13482
  ]
11100
13483
  }
@@ -11735,7 +14118,7 @@ function ResetPasswordScreen() {
11735
14118
  const { buildPath } = useBasePath();
11736
14119
  const params = navigation.useParams();
11737
14120
  const token = params?.token;
11738
- params?.storeId;
14121
+ const storeId = params?.storeId;
11739
14122
  const [showPassword, setShowPassword] = React8.useState(false);
11740
14123
  const [showConfirmPassword, setShowConfirmPassword] = React8.useState(false);
11741
14124
  const [isSubmitting, setIsSubmitting] = React8.useState(false);
@@ -11769,7 +14152,14 @@ function ResetPasswordScreen() {
11769
14152
  setStatus(null);
11770
14153
  try {
11771
14154
  const authApi = new AuthApi(AXIOS_CONFIG);
11772
- await authApi.resetPassword(data.newPassword, token);
14155
+ if (!storeId) {
14156
+ setStatus({
14157
+ type: "error",
14158
+ message: "Store ID is missing. Please use the link from your email."
14159
+ });
14160
+ return;
14161
+ }
14162
+ await authApi.resetPassword(data.newPassword, token, storeId);
11773
14163
  setStatus({
11774
14164
  type: "success",
11775
14165
  message: "Password reset successfully! Redirecting to login..."
@@ -15016,15 +17406,35 @@ function Footer() {
15016
17406
  ] }) });
15017
17407
  }
15018
17408
 
17409
+ exports.AddressAddressTypeEnum = AddressAddressTypeEnum;
17410
+ exports.AddressCreatedRequestAddressTypeEnum = AddressCreatedRequestAddressTypeEnum;
15019
17411
  exports.AddressesScreen = AddressesScreen;
17412
+ exports.ApiKeyInfoDtoKeyTypeEnum = ApiKeyInfoDtoKeyTypeEnum;
15020
17413
  exports.AuthProvider = AuthProvider;
15021
17414
  exports.Badge = Badge;
15022
17415
  exports.Button = Button;
17416
+ exports.CampaignDraftDtoStatusEnum = CampaignDraftDtoStatusEnum;
17417
+ exports.CampaignDraftScheduleDtoStatusEnum = CampaignDraftScheduleDtoStatusEnum;
17418
+ exports.CampaignDraftSendingDtoStatusEnum = CampaignDraftSendingDtoStatusEnum;
15023
17419
  exports.CartItem = CartItem;
15024
17420
  exports.CartProvider = CartProvider;
15025
17421
  exports.CartScreen = CartScreen;
15026
17422
  exports.CheckoutScreen = CheckoutScreen;
17423
+ exports.CreateAddressDtoAddressTypeEnum = CreateAddressDtoAddressTypeEnum;
17424
+ exports.CreateDiscountDtoCustomerEligibilityEnum = CreateDiscountDtoCustomerEligibilityEnum;
17425
+ exports.CreateDiscountDtoDecreasePriceByEnum = CreateDiscountDtoDecreasePriceByEnum;
17426
+ exports.CreateDiscountDtoDiscountTypeEnum = CreateDiscountDtoDiscountTypeEnum;
17427
+ exports.CreateDiscountDtoMinPurchaseRequiredEnum = CreateDiscountDtoMinPurchaseRequiredEnum;
17428
+ exports.CreateDiscountDtoStateEnum = CreateDiscountDtoStateEnum;
17429
+ exports.CreateStoreAddressDtoAddressTypeEnum = CreateStoreAddressDtoAddressTypeEnum;
17430
+ exports.CreateUserDtoCustomerTypeEnum = CreateUserDtoCustomerTypeEnum;
17431
+ exports.CreateUserDtoRoleEnum = CreateUserDtoRoleEnum;
15027
17432
  exports.CurrentOrdersScreen = CurrentOrdersScreen;
17433
+ exports.DiscountCustomerEligibilityEnum = DiscountCustomerEligibilityEnum;
17434
+ exports.DiscountDecreasePriceByEnum = DiscountDecreasePriceByEnum;
17435
+ exports.DiscountDiscountTypeEnum = DiscountDiscountTypeEnum;
17436
+ exports.DiscountMinPurchaseRequiredEnum = DiscountMinPurchaseRequiredEnum;
17437
+ exports.DiscountStateEnum = DiscountStateEnum;
15028
17438
  exports.EcommerceProvider = EcommerceProvider;
15029
17439
  exports.EditProfileScreen = EditProfileScreen;
15030
17440
  exports.EmptyState = EmptyState;
@@ -15033,21 +17443,56 @@ exports.ForgotPasswordScreen = ForgotPasswordScreen;
15033
17443
  exports.Header = Header;
15034
17444
  exports.Input = Input;
15035
17445
  exports.LoginScreen = LoginScreen;
17446
+ exports.ManualDiscountDecreasePriceByEnum = ManualDiscountDecreasePriceByEnum;
17447
+ exports.ManualOrderDTOOrderStatusEnum = ManualOrderDTOOrderStatusEnum;
17448
+ exports.ManualOrderDTOPaymentMethodEnum = ManualOrderDTOPaymentMethodEnum;
17449
+ exports.ManualOrderDTOPaymentStatusEnum = ManualOrderDTOPaymentStatusEnum;
15036
17450
  exports.Modal = Modal;
15037
17451
  exports.NewAddressScreen = NewAddressPage;
15038
17452
  exports.OrderCard = OrderCard;
15039
17453
  exports.OrderCardSkeleton = OrderCardSkeleton;
17454
+ exports.OrderOrderTypeEnum = OrderOrderTypeEnum;
17455
+ exports.OrderTimeLineDTOTypeEnum = OrderTimeLineDTOTypeEnum;
17456
+ exports.OrderTypeEnum = OrderTypeEnum;
15040
17457
  exports.OrdersScreen = OrdersScreen;
17458
+ exports.PaymentPaymentMethodEnum = PaymentPaymentMethodEnum;
17459
+ exports.PaymentPaymentStatusEnum = PaymentPaymentStatusEnum;
17460
+ exports.PaymentTimeLineDTOTitleEnum = PaymentTimeLineDTOTitleEnum;
17461
+ exports.PopulatedDiscountCustomerEligibilityEnum = PopulatedDiscountCustomerEligibilityEnum;
17462
+ exports.PopulatedDiscountDecreasePriceByEnum = PopulatedDiscountDecreasePriceByEnum;
17463
+ exports.PopulatedDiscountDiscountTypeEnum = PopulatedDiscountDiscountTypeEnum;
17464
+ exports.PopulatedDiscountMinPurchaseRequiredEnum = PopulatedDiscountMinPurchaseRequiredEnum;
17465
+ exports.PopulatedDiscountStateEnum = PopulatedDiscountStateEnum;
17466
+ exports.PopulatedOrderOrderTypeEnum = PopulatedOrderOrderTypeEnum;
17467
+ exports.PopulatedOrderTypeEnum = PopulatedOrderTypeEnum;
15041
17468
  exports.ProductCard = ProductCard;
15042
17469
  exports.ProductCardSkeleton = ProductCardSkeleton;
15043
17470
  exports.ProductDetailScreen = ProductDetailScreen;
17471
+ exports.ProductVariantInventoryStatusEnum = ProductVariantInventoryStatusEnum;
15044
17472
  exports.ProfileScreen = AccountPage;
15045
17473
  exports.RegisterScreen = RegisterScreen;
17474
+ exports.ReorderProductsDtoContainerTypeEnum = ReorderProductsDtoContainerTypeEnum;
15046
17475
  exports.ResetPasswordScreen = ResetPasswordScreen;
15047
17476
  exports.SearchResultsScreen = SearchPage;
17477
+ exports.ShipmentDetailsDtoStatusEnum = ShipmentDetailsDtoStatusEnum;
17478
+ exports.ShippingInfoStatusEnum = ShippingInfoStatusEnum;
15048
17479
  exports.ShopScreen = ShopScreen;
17480
+ exports.SingleProductMediaTypeEnum = SingleProductMediaTypeEnum;
15049
17481
  exports.Skeleton = Skeleton;
15050
17482
  exports.ThemeProvider = ThemeProvider;
17483
+ exports.UpdateAddressDtoAddressTypeEnum = UpdateAddressDtoAddressTypeEnum;
17484
+ exports.UpdateDiscountDtoCustomerEligibilityEnum = UpdateDiscountDtoCustomerEligibilityEnum;
17485
+ exports.UpdateDiscountDtoDecreasePriceByEnum = UpdateDiscountDtoDecreasePriceByEnum;
17486
+ exports.UpdateDiscountDtoDiscountTypeEnum = UpdateDiscountDtoDiscountTypeEnum;
17487
+ exports.UpdateDiscountDtoMinPurchaseRequiredEnum = UpdateDiscountDtoMinPurchaseRequiredEnum;
17488
+ exports.UpdateDiscountDtoStateEnum = UpdateDiscountDtoStateEnum;
17489
+ exports.UpdateManualShipmentStatusDtoStatusEnum = UpdateManualShipmentStatusDtoStatusEnum;
17490
+ exports.UpdateUserDtoCustomerTypeEnum = UpdateUserDtoCustomerTypeEnum;
17491
+ exports.UpdateUserDtoRoleEnum = UpdateUserDtoRoleEnum;
17492
+ exports.UserEntityCustomerTypeEnum = UserEntityCustomerTypeEnum;
17493
+ exports.UserEntityRoleEnum = UserEntityRoleEnum;
17494
+ exports.UserWithNoIdCustomerTypeEnum = UserWithNoIdCustomerTypeEnum;
17495
+ exports.UserWithNoIdRoleEnum = UserWithNoIdRoleEnum;
15051
17496
  exports.WishlistProvider = WishlistProvider;
15052
17497
  exports.WishlistScreen = WishlistScreen;
15053
17498
  exports.formatDate = formatDate;
@@ -15068,6 +17513,7 @@ exports.useOrder = useOrder;
15068
17513
  exports.useOrders = useOrders;
15069
17514
  exports.useProduct = useProduct;
15070
17515
  exports.useProducts = useProducts;
17516
+ exports.useStoreCapabilities = useStoreCapabilities;
15071
17517
  exports.useTheme = useTheme;
15072
17518
  exports.useWishlist = useWishlist;
15073
17519
  //# sourceMappingURL=index.js.map