@kiminix/tp-client 2.9.2 → 2.9.3
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.
|
@@ -121,6 +121,23 @@ var MenuAdminAPIs = /** @class */ (function () {
|
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
123
|
};
|
|
124
|
+
MenuAdminAPIs.setUnauthorizedDevice = function (props) {
|
|
125
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
126
|
+
return __generator(this, function (_a) {
|
|
127
|
+
return [2 /*return*/, RequestUtils.send(function () {
|
|
128
|
+
return axios.patch(base + "/menus/admin/unauthorized", {
|
|
129
|
+
deviceId: props.deviceId,
|
|
130
|
+
qrCodeId: props.qrCodeId
|
|
131
|
+
}, {
|
|
132
|
+
headers: {
|
|
133
|
+
'Authorization': "".concat(props.token)
|
|
134
|
+
}
|
|
135
|
+
})
|
|
136
|
+
.then(function (_) { return undefined; });
|
|
137
|
+
})];
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
};
|
|
124
141
|
return MenuAdminAPIs;
|
|
125
142
|
}());
|
|
126
143
|
export { MenuAdminAPIs };
|
|
@@ -8,7 +8,7 @@ export declare class MenuGuestAPIs {
|
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
10
10
|
* @param props
|
|
11
|
-
* @throws
|
|
11
|
+
* @throws unauthorized_action, pending_limit_exceeded, item_unavailable, item_not_found, variant_not_found , qrcode_not_found, internal_error
|
|
12
12
|
*
|
|
13
13
|
* @returns
|
|
14
14
|
*/
|
|
@@ -34,7 +34,7 @@ export declare class MenuGuestAPIs {
|
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @param data
|
|
37
|
-
* @throws
|
|
37
|
+
* @throws unauthorized_action, pending_limit_exceeded, qrcode_not_found, internal_error
|
|
38
38
|
* @returns
|
|
39
39
|
*/
|
|
40
40
|
static callWaiter(data: PostCallWaiter): Promise<void>;
|
|
@@ -67,7 +67,7 @@ var MenuGuestAPIs = /** @class */ (function () {
|
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @param props
|
|
70
|
-
* @throws
|
|
70
|
+
* @throws unauthorized_action, pending_limit_exceeded, item_unavailable, item_not_found, variant_not_found , qrcode_not_found, internal_error
|
|
71
71
|
*
|
|
72
72
|
* @returns
|
|
73
73
|
*/
|
|
@@ -132,7 +132,7 @@ var MenuGuestAPIs = /** @class */ (function () {
|
|
|
132
132
|
/**
|
|
133
133
|
*
|
|
134
134
|
* @param data
|
|
135
|
-
* @throws
|
|
135
|
+
* @throws unauthorized_action, pending_limit_exceeded, qrcode_not_found, internal_error
|
|
136
136
|
* @returns
|
|
137
137
|
*/
|
|
138
138
|
MenuGuestAPIs.callWaiter = function (data) {
|