arky-sdk 0.3.75 → 0.3.77

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
@@ -1,5 +1,13 @@
1
1
  'use strict';
2
2
 
3
+ // src/types/index.ts
4
+ var PaymentMethodType = /* @__PURE__ */ ((PaymentMethodType2) => {
5
+ PaymentMethodType2["Cash"] = "CASH";
6
+ PaymentMethodType2["CreditCard"] = "CREDIT_CARD";
7
+ PaymentMethodType2["Free"] = "FREE";
8
+ return PaymentMethodType2;
9
+ })(PaymentMethodType || {});
10
+
3
11
  // src/utils/errors.ts
4
12
  var convertServerErrorToRequestError = (serverError, renameRules) => {
5
13
  return {
@@ -1100,6 +1108,16 @@ var createReservationApi = (apiConfig) => {
1100
1108
  }
1101
1109
  );
1102
1110
  },
1111
+ async getServiceProviders(params, options) {
1112
+ const { serviceId, ...queryParams } = params;
1113
+ return apiConfig.httpClient.get(
1114
+ `/v1/businesses/${apiConfig.businessId}/services/${serviceId}/providers`,
1115
+ {
1116
+ ...options,
1117
+ params: queryParams
1118
+ }
1119
+ );
1120
+ },
1103
1121
  // ===== PROVIDERS =====
1104
1122
  async createProvider(params, options) {
1105
1123
  return apiConfig.httpClient.post(
@@ -1778,6 +1796,7 @@ async function createArkySDK(config) {
1778
1796
  return sdk;
1779
1797
  }
1780
1798
 
1799
+ exports.PaymentMethodType = PaymentMethodType;
1781
1800
  exports.SDK_VERSION = SDK_VERSION;
1782
1801
  exports.SUPPORTED_FRAMEWORKS = SUPPORTED_FRAMEWORKS;
1783
1802
  exports.createArkySDK = createArkySDK;