arky-sdk 0.7.35 → 0.7.37

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
@@ -917,7 +917,7 @@ var createBookingApi = (apiConfig) => {
917
917
  const targetBusinessId = businessId || apiConfig.businessId;
918
918
  return apiConfig.httpClient.post(
919
919
  `/v1/businesses/${targetBusinessId}/bookings`,
920
- { market: apiConfig.market, ...payload },
920
+ { market: "booking", ...payload },
921
921
  options
922
922
  );
923
923
  },
@@ -935,7 +935,7 @@ var createBookingApi = (apiConfig) => {
935
935
  const items = paramItems || groupCartToItems(cart);
936
936
  return apiConfig.httpClient.post(
937
937
  `/v1/businesses/${targetBusinessId}/bookings/checkout`,
938
- { market: apiConfig.market, ...payload, items },
938
+ { market: "booking", ...payload, items },
939
939
  options
940
940
  );
941
941
  },
@@ -962,7 +962,7 @@ var createBookingApi = (apiConfig) => {
962
962
  const targetBusinessId = businessId || apiConfig.businessId;
963
963
  return apiConfig.httpClient.post(
964
964
  `/v1/businesses/${targetBusinessId}/bookings/quote`,
965
- { market: apiConfig.market, ...payload },
965
+ { market: "booking", ...payload },
966
966
  options
967
967
  );
968
968
  },
@@ -1159,38 +1159,38 @@ var createLocationApi = (apiConfig) => {
1159
1159
  };
1160
1160
  };
1161
1161
 
1162
- // src/api/zone.ts
1163
- var createZoneApi = (apiConfig) => {
1162
+ // src/api/market.ts
1163
+ var createMarketApi = (apiConfig) => {
1164
1164
  return {
1165
1165
  async list(options) {
1166
1166
  return apiConfig.httpClient.get(
1167
- `/v1/businesses/${apiConfig.businessId}/zones`,
1167
+ `/v1/businesses/${apiConfig.businessId}/markets`,
1168
1168
  options
1169
1169
  );
1170
1170
  },
1171
1171
  async get(id, options) {
1172
1172
  return apiConfig.httpClient.get(
1173
- `/v1/businesses/${apiConfig.businessId}/zones/${id}`,
1173
+ `/v1/businesses/${apiConfig.businessId}/markets/${id}`,
1174
1174
  options
1175
1175
  );
1176
1176
  },
1177
1177
  async create(params, options) {
1178
1178
  return apiConfig.httpClient.post(
1179
- `/v1/businesses/${apiConfig.businessId}/zones`,
1179
+ `/v1/businesses/${apiConfig.businessId}/markets`,
1180
1180
  { ...params, businessId: apiConfig.businessId },
1181
1181
  options
1182
1182
  );
1183
1183
  },
1184
1184
  async update(params, options) {
1185
1185
  return apiConfig.httpClient.put(
1186
- `/v1/businesses/${apiConfig.businessId}/zones/${params.id}`,
1186
+ `/v1/businesses/${apiConfig.businessId}/markets/${params.id}`,
1187
1187
  { ...params, businessId: apiConfig.businessId },
1188
1188
  options
1189
1189
  );
1190
1190
  },
1191
1191
  async delete(params, options) {
1192
1192
  return apiConfig.httpClient.delete(
1193
- `/v1/businesses/${apiConfig.businessId}/zones/${params.id}`,
1193
+ `/v1/businesses/${apiConfig.businessId}/markets/${params.id}`,
1194
1194
  options
1195
1195
  );
1196
1196
  }
@@ -2261,7 +2261,7 @@ async function createArkySDK(config) {
2261
2261
  eshop: createEshopApi(apiConfig),
2262
2262
  booking: createBookingApi(apiConfig),
2263
2263
  location: createLocationApi(apiConfig),
2264
- zone: createZoneApi(apiConfig),
2264
+ market: createMarketApi(apiConfig),
2265
2265
  crm: createCustomerApi(apiConfig),
2266
2266
  reaction: createReactionApi(apiConfig),
2267
2267
  workflow: createWorkflowApi(apiConfig),