@kiminix/tp-client 2.9.1 → 2.9.2
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.
|
@@ -6,7 +6,12 @@ export declare class MenuAdminAPIs {
|
|
|
6
6
|
token?: string;
|
|
7
7
|
id: string;
|
|
8
8
|
status?: OrderStatus;
|
|
9
|
-
}): Promise<
|
|
9
|
+
}): Promise<undefined>;
|
|
10
|
+
static updateCalls(props: {
|
|
11
|
+
token?: string;
|
|
12
|
+
id: string;
|
|
13
|
+
status?: CallWaiterStatus;
|
|
14
|
+
}): Promise<undefined>;
|
|
10
15
|
static getOrders(props: {
|
|
11
16
|
token?: string;
|
|
12
17
|
status: OrderStatus[];
|
|
@@ -58,6 +58,23 @@ var MenuAdminAPIs = /** @class */ (function () {
|
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
|
+
MenuAdminAPIs.updateCalls = function (props) {
|
|
62
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
63
|
+
return __generator(this, function (_a) {
|
|
64
|
+
return [2 /*return*/, RequestUtils.send(function () {
|
|
65
|
+
return axios.patch(base + "/menus/admin/calls", {
|
|
66
|
+
id: props.id,
|
|
67
|
+
status: props.status
|
|
68
|
+
}, {
|
|
69
|
+
headers: {
|
|
70
|
+
'Authorization': "".concat(props.token)
|
|
71
|
+
}
|
|
72
|
+
})
|
|
73
|
+
.then(function (_) { return undefined; });
|
|
74
|
+
})];
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
};
|
|
61
78
|
MenuAdminAPIs.getOrders = function (props) {
|
|
62
79
|
return __awaiter(this, void 0, void 0, function () {
|
|
63
80
|
return __generator(this, function (_a) {
|
|
@@ -2,7 +2,7 @@ import { OrderRequest, OrderResponse } from "./types/post-order";
|
|
|
2
2
|
import { QrCode } from "./types/get-qrcode-response";
|
|
3
3
|
import { Menu } from "./types/get-menu-response";
|
|
4
4
|
import { Order } from "../shared/types";
|
|
5
|
-
import {
|
|
5
|
+
import { PostCallWaiter } from "./types/post-call-waiter-request";
|
|
6
6
|
export declare class MenuGuestAPIs {
|
|
7
7
|
static getOrders(businessId: string, deviceId: string, timestamp: number, page?: number, size?: number): Promise<Order[]>;
|
|
8
8
|
/**
|
|
@@ -37,5 +37,5 @@ export declare class MenuGuestAPIs {
|
|
|
37
37
|
* @throws call_limit_exceeded, qrcode_not_found, internal_error
|
|
38
38
|
* @returns
|
|
39
39
|
*/
|
|
40
|
-
static callWaiter(data:
|
|
40
|
+
static callWaiter(data: PostCallWaiter): Promise<void>;
|
|
41
41
|
}
|