@vendit-dev/thirdparty-adapters 0.2.3 → 0.2.4

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.
@@ -57,6 +57,10 @@ export default class SmartAccessAdapter {
57
57
  method?: string | undefined;
58
58
  headers?: any;
59
59
  }) => Promise<any>;
60
+ getRoomInfo: ({ accommodationId, roomId }: {
61
+ accommodationId: string;
62
+ roomId: string;
63
+ }) => Promise<SmartAccessRoom>;
60
64
  getRooms: (accommodationId: string) => Promise<SmartAccessRoom[]>;
61
65
  getDevices: (accommodationId: string) => Promise<any>;
62
66
  getRoomsWithDevices: (accommodationId: string) => Promise<SmartAccessRoom[]>;
@@ -217,6 +217,24 @@ var SmartAccessAdapter = /** @class */ (function () {
217
217
  });
218
218
  });
219
219
  };
220
+ this.getRoomInfo = function (_a) {
221
+ var accommodationId = _a.accommodationId, roomId = _a.roomId;
222
+ return __awaiter(_this, void 0, void 0, function () {
223
+ var roomResponse;
224
+ return __generator(this, function (_b) {
225
+ switch (_b.label) {
226
+ case 0: return [4 /*yield*/, this.callSmartAccessApi({
227
+ accommodationId: accommodationId,
228
+ method: 'get',
229
+ route: "v1/room/" + roomId + "/roominfo",
230
+ })];
231
+ case 1:
232
+ roomResponse = _b.sent();
233
+ return [2 /*return*/, roomResponse];
234
+ }
235
+ });
236
+ });
237
+ };
220
238
  this.getRooms = function (accommodationId) { return __awaiter(_this, void 0, void 0, function () {
221
239
  var roomResponse;
222
240
  return __generator(this, function (_a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendit-dev/thirdparty-adapters",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Third party adapters between v-cloud and other PMS/CMS providers.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {