@hyper.software/visitor-integrations-client 1.2.71 → 1.2.72

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.
@@ -51,7 +51,7 @@ const deleteRoomType = async (company, roomType, config) => {
51
51
  var _a, _b, _c, _d, _e, _f, _g;
52
52
  if (((_a = company.integrations) === null || _a === void 0 ? void 0 : _a.channelManagerType) === 'CHANNEX') {
53
53
  const roomTypeId = (_c = (_b = roomType.integrations) === null || _b === void 0 ? void 0 : _b.channex) === null || _c === void 0 ? void 0 : _c.id;
54
- return httpClient().del(`/companies/${company.id}/room_types/${roomTypeId}?force=true`, config);
54
+ return httpClient().del(`/companies/${company.id}/room-types/${roomTypeId}?force=true`, config);
55
55
  }
56
56
  else {
57
57
  const integrationsId = (_e = (_d = company.integrations) === null || _d === void 0 ? void 0 : _d.bnovo) === null || _e === void 0 ? void 0 : _e.id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyper.software/visitor-integrations-client",
3
- "version": "1.2.71",
3
+ "version": "1.2.72",
4
4
  "main": "./lib/client/src/index.js",
5
5
  "types": "./lib/client/src/index.d.ts",
6
6
  "author": "Raul Tomescu <tomescu.raul+hyper@gmail.com>",
package/src/service.ts CHANGED
@@ -94,7 +94,7 @@ export const deleteRoomType = async (
94
94
  ): Promise<IBackendApiClientResponse<void>> => {
95
95
  if (company.integrations?.channelManagerType === 'CHANNEX') {
96
96
  const roomTypeId = roomType.integrations?.channex?.id;
97
- return httpClient().del(`/companies/${company.id}/room_types/${roomTypeId}?force=true`, config);
97
+ return httpClient().del(`/companies/${company.id}/room-types/${roomTypeId}?force=true`, config);
98
98
  } else {
99
99
  const integrationsId = company.integrations?.bnovo?.id;
100
100
  const roomTypeId = roomType.integrations?.bnovo?.id;