@kiminix/tp-client 2.32.0 → 2.33.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/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/menus/index.d.ts +0 -3
- package/dist/menus/index.js +0 -3
- package/dist/{menus → tables}/admin/api/create-tables-api.js +1 -1
- package/dist/tables/admin/api/get-tables-api.d.ts +20 -0
- package/dist/{menus → tables}/admin/api/get-tables-api.js +1 -1
- package/dist/{menus → tables}/admin/api/patch-tables-api.js +1 -1
- package/dist/tables/index.d.ts +3 -0
- package/dist/tables/index.js +5 -0
- package/package.json +1 -1
- package/dist/menus/admin/api/get-tables-api.d.ts +0 -11
- /package/dist/{menus → tables}/admin/api/create-tables-api.d.ts +0 -0
- /package/dist/{menus → tables}/admin/api/patch-tables-api.d.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from './cashback/index';
|
|
|
10
10
|
export * from './discounts/index';
|
|
11
11
|
export * from './vouchers/index';
|
|
12
12
|
export * from './menus/index';
|
|
13
|
+
export * from './tables/index';
|
|
13
14
|
export * from './utils/patch-utils';
|
|
14
15
|
export * from './utils/business-utils';
|
|
15
16
|
export * from './utils/date-utils';
|
package/dist/index.js
CHANGED
|
@@ -18,6 +18,8 @@ export * from './discounts/index';
|
|
|
18
18
|
export * from './vouchers/index';
|
|
19
19
|
//menus module
|
|
20
20
|
export * from './menus/index';
|
|
21
|
+
// tables module
|
|
22
|
+
export * from './tables/index';
|
|
21
23
|
//utils
|
|
22
24
|
export * from './utils/patch-utils';
|
|
23
25
|
export * from './utils/business-utils';
|
package/dist/menus/index.d.ts
CHANGED
|
@@ -3,18 +3,15 @@ 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-tables-api";
|
|
7
6
|
export * from "./admin/api/delete-categories-api";
|
|
8
7
|
export * from "./admin/api/delete-products-api";
|
|
9
8
|
export * from "./admin/api/get-menu-api";
|
|
10
9
|
export * from "./admin/api/get-order-by-id-api";
|
|
11
10
|
export * from "./admin/api/get-product-api";
|
|
12
|
-
export * from "./admin/api/get-tables-api";
|
|
13
11
|
export * from "./admin/api/patch-categories-indices-api";
|
|
14
12
|
export * from "./admin/api/patch-order-api";
|
|
15
13
|
export * from "./admin/api/patch-product-api";
|
|
16
14
|
export * from "./admin/api/patch-product-indices-api";
|
|
17
|
-
export * from "./admin/api/patch-tables-api";
|
|
18
15
|
export * from "./admin/api/search-orders-api";
|
|
19
16
|
export * from "./admin/api/statistic/bills-recap-api";
|
|
20
17
|
export * from "./admin/api/statistic/products-recap-api";
|
package/dist/menus/index.js
CHANGED
|
@@ -5,18 +5,15 @@ 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-tables-api";
|
|
9
8
|
export * from "./admin/api/delete-categories-api";
|
|
10
9
|
export * from "./admin/api/delete-products-api";
|
|
11
10
|
export * from "./admin/api/get-menu-api";
|
|
12
11
|
export * from "./admin/api/get-order-by-id-api";
|
|
13
12
|
export * from "./admin/api/get-product-api";
|
|
14
|
-
export * from "./admin/api/get-tables-api";
|
|
15
13
|
export * from "./admin/api/patch-categories-indices-api";
|
|
16
14
|
export * from "./admin/api/patch-order-api";
|
|
17
15
|
export * from "./admin/api/patch-product-api";
|
|
18
16
|
export * from "./admin/api/patch-product-indices-api";
|
|
19
|
-
export * from "./admin/api/patch-tables-api";
|
|
20
17
|
export * from "./admin/api/search-orders-api";
|
|
21
18
|
export * from "./admin/api/statistic/bills-recap-api";
|
|
22
19
|
export * from "./admin/api/statistic/products-recap-api";
|
|
@@ -51,7 +51,7 @@ var CreateTableAdminAPI = /** @class */ (function () {
|
|
|
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 + "/
|
|
54
|
+
return axios.post(base + "/admin/tables", props.request, {
|
|
55
55
|
headers: {
|
|
56
56
|
'Authorization': "".concat(props.token)
|
|
57
57
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare class GetTablesAdminAPI {
|
|
2
|
+
static get(props: {
|
|
3
|
+
token?: string;
|
|
4
|
+
}): Promise<GetTablesAdminAPI.Response>;
|
|
5
|
+
}
|
|
6
|
+
export declare namespace GetTablesAdminAPI {
|
|
7
|
+
interface Response {
|
|
8
|
+
withoutArea: Table[];
|
|
9
|
+
areas: TableArea[];
|
|
10
|
+
}
|
|
11
|
+
interface TableArea {
|
|
12
|
+
id: string;
|
|
13
|
+
label: string;
|
|
14
|
+
tables: Table[];
|
|
15
|
+
}
|
|
16
|
+
interface Table {
|
|
17
|
+
id: string;
|
|
18
|
+
label: string;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -44,7 +44,7 @@ var GetTablesAdminAPI = /** @class */ (function () {
|
|
|
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 + "/
|
|
47
|
+
return axios.get(base + "/admin/tables", {
|
|
48
48
|
headers: {
|
|
49
49
|
'Authorization': "".concat(props.token)
|
|
50
50
|
}
|
|
@@ -51,7 +51,7 @@ var PatchTableAdminAPI = /** @class */ (function () {
|
|
|
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 + "/
|
|
54
|
+
return axios.patch(base + "/admin/tables", props.request, {
|
|
55
55
|
headers: {
|
|
56
56
|
'Authorization': "".concat(props.token)
|
|
57
57
|
}
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|