arky-sdk 0.3.80 → 0.3.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1345,6 +1345,21 @@ var createFeatureFlagsApi = (apiConfig) => {
1345
1345
  };
1346
1346
  };
1347
1347
 
1348
+ // src/api/location.ts
1349
+ var createLocationApi = (apiConfig) => {
1350
+ return {
1351
+ async getCountries(options) {
1352
+ return apiConfig.httpClient.get(`/v1/operations/location/countries`, options);
1353
+ },
1354
+ async getCountryStates(countryCode, options) {
1355
+ return apiConfig.httpClient.get(
1356
+ `/v1/operations/location/countries/${countryCode}/states`,
1357
+ options
1358
+ );
1359
+ }
1360
+ };
1361
+ };
1362
+
1348
1363
  // src/utils/currency.ts
1349
1364
  function getCurrencySymbol(currency) {
1350
1365
  const currencySymbols = {
@@ -2001,7 +2016,7 @@ var createReservationEngine = (api, config = {}) => {
2001
2016
  };
2002
2017
 
2003
2018
  // src/index.ts
2004
- var SDK_VERSION = "0.3.78";
2019
+ var SDK_VERSION = "0.3.81";
2005
2020
  var SUPPORTED_FRAMEWORKS = [
2006
2021
  "astro",
2007
2022
  "react",
@@ -2051,6 +2066,7 @@ async function createArkySDK(config) {
2051
2066
  reservation: createReservationApi(apiConfig),
2052
2067
  database: createDatabaseApi(apiConfig),
2053
2068
  featureFlags: createFeatureFlagsApi(apiConfig),
2069
+ location: createLocationApi(apiConfig),
2054
2070
  // High-level reservation engine
2055
2071
  reservationEngine: (engineConfig) => {
2056
2072
  const reservationApi = createReservationApi(apiConfig);