@kiminix/tp-client 2.31.0 → 2.32.0
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.
- package/dist/menus/admin/admin-apis.d.ts +1 -1
- package/dist/menus/admin/admin-apis.js +1 -1
- package/dist/menus/admin/api/create-orders-api.d.ts +2 -2
- package/dist/menus/admin/api/create-orders-api.js +1 -1
- package/dist/menus/admin/api/{create-qrcodes-api.d.ts → create-tables-api.d.ts} +3 -3
- package/dist/menus/admin/api/{create-qrcodes-api.js → create-tables-api.js} +6 -6
- package/dist/menus/admin/api/get-tables-api.d.ts +11 -0
- package/dist/menus/admin/api/{get-qrcodes-api.js → get-tables-api.js} +6 -6
- package/dist/menus/admin/api/{patch-qrcodes-api.d.ts → patch-tables-api.d.ts} +4 -4
- package/dist/menus/admin/api/{patch-qrcodes-api.js → patch-tables-api.js} +7 -7
- package/dist/menus/admin/api/search-orders-api.d.ts +1 -1
- package/dist/menus/admin/api/update-order-api.d.ts +1 -1
- package/dist/menus/admin/types/get-calls-response.d.ts +2 -2
- package/dist/menus/index.d.ts +3 -3
- package/dist/menus/index.js +3 -3
- package/dist/menus/shared/types.d.ts +2 -2
- package/dist/menus/user/guest-apis.d.ts +2 -2
- package/dist/menus/user/guest-apis.js +2 -2
- package/dist/menus/user/types/post-call-waiter-request.d.ts +1 -1
- package/dist/menus/user/types/post-order.d.ts +1 -1
- package/package.json +2 -2
- package/dist/menus/admin/api/get-qrcodes-api.d.ts +0 -11
|
@@ -87,7 +87,7 @@ var MenuAdminAPIs = /** @class */ (function () {
|
|
|
87
87
|
return [2 /*return*/, RequestUtils.send(function () {
|
|
88
88
|
return axios.post(base + "/menus/admin/unauthorized", {
|
|
89
89
|
deviceId: props.deviceId,
|
|
90
|
-
|
|
90
|
+
tableId: props.tableId
|
|
91
91
|
}, {
|
|
92
92
|
headers: {
|
|
93
93
|
'Authorization': "".concat(props.token)
|
|
@@ -2,7 +2,7 @@ export declare class CreateOrdersAdminAPI {
|
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
* @param props
|
|
5
|
-
* @throws unauthorized_action, item_unavailable, item_not_found,variant_not_found,
|
|
5
|
+
* @throws unauthorized_action, item_unavailable, item_not_found,variant_not_found, table_not_found, internal_error
|
|
6
6
|
*
|
|
7
7
|
* @returns
|
|
8
8
|
*/
|
|
@@ -13,7 +13,7 @@ export declare class CreateOrdersAdminAPI {
|
|
|
13
13
|
}
|
|
14
14
|
export declare namespace CreateOrdersAdminAPI {
|
|
15
15
|
interface Request {
|
|
16
|
-
|
|
16
|
+
tableId?: string | undefined;
|
|
17
17
|
items: OrderItem[];
|
|
18
18
|
}
|
|
19
19
|
interface OrderItem {
|
|
@@ -43,7 +43,7 @@ var CreateOrdersAdminAPI = /** @class */ (function () {
|
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @param props
|
|
46
|
-
* @throws unauthorized_action, item_unavailable, item_not_found,variant_not_found,
|
|
46
|
+
* @throws unauthorized_action, item_unavailable, item_not_found,variant_not_found, table_not_found, internal_error
|
|
47
47
|
*
|
|
48
48
|
* @returns
|
|
49
49
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare class
|
|
1
|
+
export declare class CreateTableAdminAPI {
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
* @param props
|
|
@@ -8,10 +8,10 @@ export declare class CreateQRCodeAdminAPI {
|
|
|
8
8
|
*/
|
|
9
9
|
static create(props: {
|
|
10
10
|
token?: string;
|
|
11
|
-
request:
|
|
11
|
+
request: CreateTableAdminAPI.Request;
|
|
12
12
|
}): Promise<void>;
|
|
13
13
|
}
|
|
14
|
-
export declare namespace
|
|
14
|
+
export declare namespace CreateTableAdminAPI {
|
|
15
15
|
interface Request {
|
|
16
16
|
label: string;
|
|
17
17
|
}
|
|
@@ -37,8 +37,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
import axios from "axios";
|
|
38
38
|
import { base } from "../../../constants";
|
|
39
39
|
import { RequestUtils } from "../../../utils/request-utils";
|
|
40
|
-
var
|
|
41
|
-
function
|
|
40
|
+
var CreateTableAdminAPI = /** @class */ (function () {
|
|
41
|
+
function CreateTableAdminAPI() {
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
@@ -47,11 +47,11 @@ var CreateQRCodeAdminAPI = /** @class */ (function () {
|
|
|
47
47
|
*
|
|
48
48
|
* @returns
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
CreateTableAdminAPI.create = function (props) {
|
|
51
51
|
return __awaiter(this, void 0, void 0, function () {
|
|
52
52
|
return __generator(this, function (_a) {
|
|
53
53
|
return [2 /*return*/, RequestUtils.send(function () {
|
|
54
|
-
return axios.post(base + "/menus/admin/
|
|
54
|
+
return axios.post(base + "/menus/admin/tables", props.request, {
|
|
55
55
|
headers: {
|
|
56
56
|
'Authorization': "".concat(props.token)
|
|
57
57
|
}
|
|
@@ -61,6 +61,6 @@ var CreateQRCodeAdminAPI = /** @class */ (function () {
|
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
|
-
return
|
|
64
|
+
return CreateTableAdminAPI;
|
|
65
65
|
}());
|
|
66
|
-
export {
|
|
66
|
+
export { CreateTableAdminAPI };
|
|
@@ -37,14 +37,14 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
import axios from "axios";
|
|
38
38
|
import { base } from "../../../constants";
|
|
39
39
|
import { RequestUtils } from "../../../utils/request-utils";
|
|
40
|
-
var
|
|
41
|
-
function
|
|
40
|
+
var GetTablesAdminAPI = /** @class */ (function () {
|
|
41
|
+
function GetTablesAdminAPI() {
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
GetTablesAdminAPI.get = function (props) {
|
|
44
44
|
return __awaiter(this, void 0, void 0, function () {
|
|
45
45
|
return __generator(this, function (_a) {
|
|
46
46
|
return [2 /*return*/, RequestUtils.send(function () {
|
|
47
|
-
return axios.get(base + "/menus/admin/
|
|
47
|
+
return axios.get(base + "/menus/admin/tables", {
|
|
48
48
|
headers: {
|
|
49
49
|
'Authorization': "".concat(props.token)
|
|
50
50
|
}
|
|
@@ -54,6 +54,6 @@ var GetQrCodesAdminAPI = /** @class */ (function () {
|
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
56
|
};
|
|
57
|
-
return
|
|
57
|
+
return GetTablesAdminAPI;
|
|
58
58
|
}());
|
|
59
|
-
export {
|
|
59
|
+
export { GetTablesAdminAPI };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export declare class
|
|
1
|
+
export declare class PatchTableAdminAPI {
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
* @param props
|
|
5
|
-
* @throws unauthorized_action, internal_error,
|
|
5
|
+
* @throws unauthorized_action, internal_error, table_not_found
|
|
6
6
|
*
|
|
7
7
|
* @returns
|
|
8
8
|
*/
|
|
9
9
|
static patch(props: {
|
|
10
10
|
token?: string;
|
|
11
|
-
request:
|
|
11
|
+
request: PatchTableAdminAPI.Request;
|
|
12
12
|
}): Promise<void>;
|
|
13
13
|
}
|
|
14
|
-
export declare namespace
|
|
14
|
+
export declare namespace PatchTableAdminAPI {
|
|
15
15
|
interface Request {
|
|
16
16
|
id: string;
|
|
17
17
|
label?: string | undefined;
|
|
@@ -37,21 +37,21 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
import axios from "axios";
|
|
38
38
|
import { base } from "../../../constants";
|
|
39
39
|
import { RequestUtils } from "../../../utils/request-utils";
|
|
40
|
-
var
|
|
41
|
-
function
|
|
40
|
+
var PatchTableAdminAPI = /** @class */ (function () {
|
|
41
|
+
function PatchTableAdminAPI() {
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @param props
|
|
46
|
-
* @throws unauthorized_action, internal_error,
|
|
46
|
+
* @throws unauthorized_action, internal_error, table_not_found
|
|
47
47
|
*
|
|
48
48
|
* @returns
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
PatchTableAdminAPI.patch = function (props) {
|
|
51
51
|
return __awaiter(this, void 0, void 0, function () {
|
|
52
52
|
return __generator(this, function (_a) {
|
|
53
53
|
return [2 /*return*/, RequestUtils.send(function () {
|
|
54
|
-
return axios.patch(base + "/menus/admin/
|
|
54
|
+
return axios.patch(base + "/menus/admin/tables", props.request, {
|
|
55
55
|
headers: {
|
|
56
56
|
'Authorization': "".concat(props.token)
|
|
57
57
|
}
|
|
@@ -61,6 +61,6 @@ var PatchQRCodeAdminAPI = /** @class */ (function () {
|
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
|
-
return
|
|
64
|
+
return PatchTableAdminAPI;
|
|
65
65
|
}());
|
|
66
|
-
export {
|
|
66
|
+
export { PatchTableAdminAPI };
|
|
@@ -10,7 +10,7 @@ export declare namespace SearchOrdersAdminAPI {
|
|
|
10
10
|
interface Request {
|
|
11
11
|
timestamp: number;
|
|
12
12
|
status: OrderStatus[];
|
|
13
|
-
|
|
13
|
+
tables?: string[] | undefined;
|
|
14
14
|
isLinkedToBill?: boolean | undefined;
|
|
15
15
|
page: number;
|
|
16
16
|
size?: number | undefined;
|
package/dist/menus/index.d.ts
CHANGED
|
@@ -3,18 +3,18 @@ export * from "./user/types/get-menu-response";
|
|
|
3
3
|
export * from "./user/types/post-call-waiter-request";
|
|
4
4
|
export * from "./user/types/post-order";
|
|
5
5
|
export * from "./admin/api/create-orders-api";
|
|
6
|
-
export * from "./admin/api/create-
|
|
6
|
+
export * from "./admin/api/create-tables-api";
|
|
7
7
|
export * from "./admin/api/delete-categories-api";
|
|
8
8
|
export * from "./admin/api/delete-products-api";
|
|
9
9
|
export * from "./admin/api/get-menu-api";
|
|
10
10
|
export * from "./admin/api/get-order-by-id-api";
|
|
11
11
|
export * from "./admin/api/get-product-api";
|
|
12
|
-
export * from "./admin/api/get-
|
|
12
|
+
export * from "./admin/api/get-tables-api";
|
|
13
13
|
export * from "./admin/api/patch-categories-indices-api";
|
|
14
14
|
export * from "./admin/api/patch-order-api";
|
|
15
15
|
export * from "./admin/api/patch-product-api";
|
|
16
16
|
export * from "./admin/api/patch-product-indices-api";
|
|
17
|
-
export * from "./admin/api/patch-
|
|
17
|
+
export * from "./admin/api/patch-tables-api";
|
|
18
18
|
export * from "./admin/api/search-orders-api";
|
|
19
19
|
export * from "./admin/api/statistic/bills-recap-api";
|
|
20
20
|
export * from "./admin/api/statistic/products-recap-api";
|
package/dist/menus/index.js
CHANGED
|
@@ -5,18 +5,18 @@ export * from "./user/types/post-call-waiter-request";
|
|
|
5
5
|
export * from "./user/types/post-order";
|
|
6
6
|
// admin module
|
|
7
7
|
export * from "./admin/api/create-orders-api";
|
|
8
|
-
export * from "./admin/api/create-
|
|
8
|
+
export * from "./admin/api/create-tables-api";
|
|
9
9
|
export * from "./admin/api/delete-categories-api";
|
|
10
10
|
export * from "./admin/api/delete-products-api";
|
|
11
11
|
export * from "./admin/api/get-menu-api";
|
|
12
12
|
export * from "./admin/api/get-order-by-id-api";
|
|
13
13
|
export * from "./admin/api/get-product-api";
|
|
14
|
-
export * from "./admin/api/get-
|
|
14
|
+
export * from "./admin/api/get-tables-api";
|
|
15
15
|
export * from "./admin/api/patch-categories-indices-api";
|
|
16
16
|
export * from "./admin/api/patch-order-api";
|
|
17
17
|
export * from "./admin/api/patch-product-api";
|
|
18
18
|
export * from "./admin/api/patch-product-indices-api";
|
|
19
|
-
export * from "./admin/api/patch-
|
|
19
|
+
export * from "./admin/api/patch-tables-api";
|
|
20
20
|
export * from "./admin/api/search-orders-api";
|
|
21
21
|
export * from "./admin/api/statistic/bills-recap-api";
|
|
22
22
|
export * from "./admin/api/statistic/products-recap-api";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OrderStatus } from "../../enum";
|
|
2
2
|
export interface Order {
|
|
3
3
|
id: string;
|
|
4
|
-
|
|
4
|
+
table?: Order.Table | undefined;
|
|
5
5
|
deviceId?: string | undefined;
|
|
6
6
|
billId?: string | undefined;
|
|
7
7
|
status: OrderStatus;
|
|
@@ -10,7 +10,7 @@ export interface Order {
|
|
|
10
10
|
items: Order.Item[];
|
|
11
11
|
}
|
|
12
12
|
export declare namespace Order {
|
|
13
|
-
interface
|
|
13
|
+
interface Table {
|
|
14
14
|
id: string;
|
|
15
15
|
label: string;
|
|
16
16
|
}
|
|
@@ -8,7 +8,7 @@ export declare class MenuGuestAPIs {
|
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
10
10
|
* @param props
|
|
11
|
-
* @throws unauthorized_action, pending_limit_exceeded, item_unavailable, item_not_found, variant_not_found ,
|
|
11
|
+
* @throws unauthorized_action, pending_limit_exceeded, item_unavailable, item_not_found, variant_not_found , table_not_found, internal_error
|
|
12
12
|
*
|
|
13
13
|
* @returns
|
|
14
14
|
*/
|
|
@@ -36,7 +36,7 @@ export declare class MenuGuestAPIs {
|
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @param data
|
|
39
|
-
* @throws unauthorized_action, pending_limit_exceeded,
|
|
39
|
+
* @throws unauthorized_action, pending_limit_exceeded, table_not_found, internal_error
|
|
40
40
|
* @returns
|
|
41
41
|
*/
|
|
42
42
|
static callWaiter(data: PostCallWaiter): Promise<void>;
|
|
@@ -67,7 +67,7 @@ var MenuGuestAPIs = /** @class */ (function () {
|
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @param props
|
|
70
|
-
* @throws unauthorized_action, pending_limit_exceeded, item_unavailable, item_not_found, variant_not_found ,
|
|
70
|
+
* @throws unauthorized_action, pending_limit_exceeded, item_unavailable, item_not_found, variant_not_found , table_not_found, internal_error
|
|
71
71
|
*
|
|
72
72
|
* @returns
|
|
73
73
|
*/
|
|
@@ -140,7 +140,7 @@ var MenuGuestAPIs = /** @class */ (function () {
|
|
|
140
140
|
/**
|
|
141
141
|
*
|
|
142
142
|
* @param data
|
|
143
|
-
* @throws unauthorized_action, pending_limit_exceeded,
|
|
143
|
+
* @throws unauthorized_action, pending_limit_exceeded, table_not_found, internal_error
|
|
144
144
|
* @returns
|
|
145
145
|
*/
|
|
146
146
|
MenuGuestAPIs.callWaiter = function (data) {
|
package/package.json
CHANGED