@kiminix/tp-client 2.8.4 → 2.8.5

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.
@@ -30,4 +30,11 @@ export declare class MenuGuestAPIs {
30
30
  static getMenu(props: {
31
31
  id: string;
32
32
  }): Promise<Menu>;
33
+ /**
34
+ *
35
+ * @param props
36
+ * @throws qrcode_not_found, internal_error
37
+ * @returns
38
+ */
39
+ static callWaiter(qrcode: string): Promise<void>;
33
40
  }
@@ -129,6 +129,26 @@ var MenuGuestAPIs = /** @class */ (function () {
129
129
  });
130
130
  });
131
131
  };
132
+ /**
133
+ *
134
+ * @param props
135
+ * @throws qrcode_not_found, internal_error
136
+ * @returns
137
+ */
138
+ MenuGuestAPIs.callWaiter = function (qrcode) {
139
+ return __awaiter(this, void 0, void 0, function () {
140
+ return __generator(this, function (_a) {
141
+ return [2 /*return*/, RequestUtils.send(function () {
142
+ return axios.get(base + "/menus/guest/call-waiter/".concat(qrcode), {
143
+ headers: {
144
+ 'Content-Type': 'application/json'
145
+ }
146
+ })
147
+ .then(function (_) { return undefined; });
148
+ })];
149
+ });
150
+ });
151
+ };
132
152
  return MenuGuestAPIs;
133
153
  }());
134
154
  export { MenuGuestAPIs };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiminix/tp-client",
3
- "version": "2.8.4",
3
+ "version": "2.8.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [