gap-nodejs-sdk 1.0.21 → 1.0.24
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/gap-sdk.js +1 -1
- package/dist/pos_client_api/1.0.0/api/batch_history.d.ts +3 -2
- package/dist/pos_client_api/1.0.0/api/batch_history.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/batch_history.js +6 -2
- package/dist/pos_client_api/1.0.0/api/business.d.ts +3 -2
- package/dist/pos_client_api/1.0.0/api/business.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/business.js +5 -2
- package/dist/pos_client_api/1.0.0/api/call.d.ts +1 -1
- package/dist/pos_client_api/1.0.0/api/call.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/call.js +2 -1
- package/dist/pos_client_api/1.0.0/api/category.d.ts +2 -1
- package/dist/pos_client_api/1.0.0/api/category.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/category.js +4 -1
- package/dist/pos_client_api/1.0.0/api/check_in.d.ts +2 -2
- package/dist/pos_client_api/1.0.0/api/check_in.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/check_in.js +6 -2
- package/dist/pos_client_api/1.0.0/api/check_out.d.ts +6 -6
- package/dist/pos_client_api/1.0.0/api/check_out.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/check_out.js +18 -5
- package/dist/pos_client_api/1.0.0/api/combo.d.ts +2 -1
- package/dist/pos_client_api/1.0.0/api/combo.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/combo.js +4 -1
- package/dist/pos_client_api/1.0.0/api/customer.d.ts +1 -1
- package/dist/pos_client_api/1.0.0/api/customer.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/customer.js +2 -1
- package/dist/pos_client_api/1.0.0/api/gift_card.d.ts +3 -2
- package/dist/pos_client_api/1.0.0/api/gift_card.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/gift_card.js +6 -2
- package/dist/pos_client_api/1.0.0/api/index.d.ts +0 -1
- package/dist/pos_client_api/1.0.0/api/index.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/index.js +0 -1
- package/dist/pos_client_api/1.0.0/api/key_storage.d.ts +2 -1
- package/dist/pos_client_api/1.0.0/api/key_storage.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/key_storage.js +4 -1
- package/dist/pos_client_api/1.0.0/api/order.d.ts +5 -5
- package/dist/pos_client_api/1.0.0/api/order.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/order.js +18 -4
- package/dist/pos_client_api/1.0.0/api/payroll.d.ts +15 -14
- package/dist/pos_client_api/1.0.0/api/payroll.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/payroll.js +36 -11
- package/dist/pos_client_api/1.0.0/api/printer.d.ts +5 -4
- package/dist/pos_client_api/1.0.0/api/printer.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/printer.js +17 -8
- package/dist/pos_client_api/1.0.0/api/service.d.ts +2 -1
- package/dist/pos_client_api/1.0.0/api/service.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/service.js +4 -1
- package/dist/pos_client_api/1.0.0/api/setting_turn.d.ts +3 -2
- package/dist/pos_client_api/1.0.0/api/setting_turn.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/setting_turn.js +7 -2
- package/dist/pos_client_api/1.0.0/api/staff.d.ts +3 -2
- package/dist/pos_client_api/1.0.0/api/staff.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/staff.js +7 -2
- package/dist/pos_client_api/1.0.0/api/ticket.d.ts +8 -7
- package/dist/pos_client_api/1.0.0/api/ticket.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/ticket.js +19 -7
- package/dist/pos_client_api/1.0.0/api/time_keeping.d.ts +9 -7
- package/dist/pos_client_api/1.0.0/api/time_keeping.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/time_keeping.js +20 -7
- package/dist/pos_client_api/1.0.0/endpoints/index.d.ts +0 -1
- package/dist/pos_client_api/1.0.0/endpoints/index.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/endpoints/index.js +0 -1
- package/dist/pos_client_api/1.0.0/interfaces/batch_history.d.ts +3 -3
- package/dist/pos_client_api/1.0.0/interfaces/batch_history.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/business.d.ts +3 -3
- package/dist/pos_client_api/1.0.0/interfaces/business.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/category.d.ts +2 -2
- package/dist/pos_client_api/1.0.0/interfaces/category.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/check_out.d.ts +6 -7
- package/dist/pos_client_api/1.0.0/interfaces/check_out.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/customer.d.ts +1 -2
- package/dist/pos_client_api/1.0.0/interfaces/customer.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/gift_card.d.ts +4 -4
- package/dist/pos_client_api/1.0.0/interfaces/gift_card.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/index.d.ts +0 -1
- package/dist/pos_client_api/1.0.0/interfaces/index.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/key_storage.d.ts +2 -2
- package/dist/pos_client_api/1.0.0/interfaces/key_storage.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/order.d.ts +5 -6
- package/dist/pos_client_api/1.0.0/interfaces/order.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/payroll.d.ts +18 -17
- package/dist/pos_client_api/1.0.0/interfaces/payroll.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/printer.d.ts +5 -5
- package/dist/pos_client_api/1.0.0/interfaces/printer.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/service.d.ts +2 -2
- package/dist/pos_client_api/1.0.0/interfaces/service.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/setting_turn.d.ts +3 -3
- package/dist/pos_client_api/1.0.0/interfaces/setting_turn.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/staff.d.ts +3 -3
- package/dist/pos_client_api/1.0.0/interfaces/staff.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/ticket.d.ts +8 -8
- package/dist/pos_client_api/1.0.0/interfaces/ticket.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/time_keeping.d.ts +9 -8
- package/dist/pos_client_api/1.0.0/interfaces/time_keeping.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/models/batch_history.d.ts +4 -0
- package/dist/pos_client_api/1.0.0/models/batch_history.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/models/batch_history.js +84 -0
- package/dist/pos_client_api/1.0.0/models/business.d.ts +3 -0
- package/dist/pos_client_api/1.0.0/models/business.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/models/business.js +17 -0
- package/dist/pos_client_api/1.0.0/models/category.d.ts +3 -0
- package/dist/pos_client_api/1.0.0/models/category.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/models/category.js +30 -0
- package/dist/pos_client_api/1.0.0/models/check_in.d.ts +2 -0
- package/dist/pos_client_api/1.0.0/models/check_in.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/models/check_in.js +18 -0
- package/dist/pos_client_api/1.0.0/models/check_out.d.ts +3 -0
- package/dist/pos_client_api/1.0.0/models/check_out.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/models/check_out.js +379 -0
- package/dist/pos_client_api/1.0.0/models/combo.d.ts +3 -0
- package/dist/pos_client_api/1.0.0/models/combo.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/models/combo.js +68 -0
- package/dist/pos_client_api/1.0.0/models/customer.d.ts +1 -0
- package/dist/pos_client_api/1.0.0/models/customer.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/models/customer.js +14 -0
- package/dist/pos_client_api/1.0.0/models/gift_card.d.ts +3 -0
- package/dist/pos_client_api/1.0.0/models/gift_card.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/models/gift_card.js +24 -0
- package/dist/pos_client_api/1.0.0/models/index.d.ts +12 -0
- package/dist/pos_client_api/1.0.0/models/index.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/models/index.js +12 -0
- package/dist/pos_client_api/1.0.0/models/key_storage.d.ts +3 -0
- package/dist/pos_client_api/1.0.0/models/key_storage.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/models/key_storage.js +45 -0
- package/dist/pos_client_api/1.0.0/models/order.d.ts +2 -0
- package/dist/pos_client_api/1.0.0/models/order.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/models/order.js +34 -0
- package/dist/pos_client_api/1.0.0/models/payroll.d.ts +7 -0
- package/dist/pos_client_api/1.0.0/models/payroll.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/models/payroll.js +144 -0
- package/dist/pos_client_api/1.0.0/models/printer.d.ts +5 -0
- package/dist/pos_client_api/1.0.0/models/printer.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/models/printer.js +45 -0
- package/dist/pos_client_api/1.0.0/models/service.d.ts +3 -0
- package/dist/pos_client_api/1.0.0/models/service.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/models/service.js +18 -0
- package/dist/pos_client_api/1.0.0/models/setting_turn.d.ts +3 -0
- package/dist/pos_client_api/1.0.0/models/setting_turn.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/models/setting_turn.js +3 -0
- package/dist/pos_client_api/1.0.0/models/staff.d.ts +4 -0
- package/dist/pos_client_api/1.0.0/models/staff.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/models/staff.js +33 -0
- package/dist/pos_client_api/1.0.0/models/ticket.d.ts +4 -0
- package/dist/pos_client_api/1.0.0/models/ticket.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/models/ticket.js +21 -0
- package/dist/pos_client_api/1.0.0/models/time_keeping.d.ts +4 -0
- package/dist/pos_client_api/1.0.0/models/time_keeping.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/models/time_keeping.js +25 -0
- package/dist/pos_client_api/1.0.0/types/request/category.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/request/gift_card.d.ts +1 -1
- package/dist/pos_client_api/1.0.0/types/request/gift_card.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/request/income.d.ts +2 -1
- package/dist/pos_client_api/1.0.0/types/request/income.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/request/index.d.ts +0 -1
- package/dist/pos_client_api/1.0.0/types/request/index.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/request/index.js +0 -1
- package/dist/pos_client_api/1.0.0/types/request/printer.d.ts +8 -4
- package/dist/pos_client_api/1.0.0/types/request/printer.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/request/staff.d.ts +1 -1
- package/dist/pos_client_api/1.0.0/types/request/staff.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/request/ticket.d.ts +1 -1
- package/dist/pos_client_api/1.0.0/types/request/ticket.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/batch_history.d.ts +78 -0
- package/dist/pos_client_api/1.0.0/types/response/batch_history.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/types/{request/appointment.js → response/batch_history.js} +0 -0
- package/dist/pos_client_api/1.0.0/types/response/business.d.ts +30 -0
- package/dist/pos_client_api/1.0.0/types/response/business.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/types/response/business.js +1 -0
- package/dist/pos_client_api/1.0.0/types/response/category.d.ts +26 -0
- package/dist/pos_client_api/1.0.0/types/response/category.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/types/response/category.js +1 -0
- package/dist/pos_client_api/1.0.0/types/response/check_in.d.ts +12 -0
- package/dist/pos_client_api/1.0.0/types/response/check_in.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/check_out.d.ts +328 -0
- package/dist/pos_client_api/1.0.0/types/response/check_out.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/combo.d.ts +61 -0
- package/dist/pos_client_api/1.0.0/types/response/combo.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/types/response/combo.js +1 -0
- package/dist/pos_client_api/1.0.0/types/response/customer.d.ts +11 -0
- package/dist/pos_client_api/1.0.0/types/response/customer.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/gift_card.d.ts +23 -0
- package/dist/pos_client_api/1.0.0/types/response/gift_card.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/types/response/gift_card.js +1 -0
- package/dist/pos_client_api/1.0.0/types/response/index.d.ts +12 -0
- package/dist/pos_client_api/1.0.0/types/response/index.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/index.js +12 -0
- package/dist/pos_client_api/1.0.0/types/response/key_storage.d.ts +48 -0
- package/dist/pos_client_api/1.0.0/types/response/key_storage.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/types/response/key_storage.js +1 -0
- package/dist/pos_client_api/1.0.0/types/response/order.d.ts +28 -0
- package/dist/pos_client_api/1.0.0/types/response/order.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/payroll.d.ts +119 -0
- package/dist/pos_client_api/1.0.0/types/response/payroll.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/printer.d.ts +27 -0
- package/dist/pos_client_api/1.0.0/types/response/printer.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/types/response/printer.js +1 -0
- package/dist/pos_client_api/1.0.0/types/response/service.d.ts +17 -0
- package/dist/pos_client_api/1.0.0/types/response/service.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/types/response/service.js +1 -0
- package/dist/pos_client_api/1.0.0/types/response/setting_turn.d.ts +4 -0
- package/dist/pos_client_api/1.0.0/types/response/setting_turn.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/types/response/setting_turn.js +1 -0
- package/dist/pos_client_api/1.0.0/types/response/staff.d.ts +26 -0
- package/dist/pos_client_api/1.0.0/types/response/staff.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/types/response/staff.js +1 -0
- package/dist/pos_client_api/1.0.0/types/response/ticket.d.ts +20 -0
- package/dist/pos_client_api/1.0.0/types/response/ticket.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/types/response/ticket.js +1 -0
- package/dist/pos_client_api/1.0.0/types/response/time_keeping.d.ts +21 -0
- package/dist/pos_client_api/1.0.0/types/response/time_keeping.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/types/response/time_keeping.js +1 -0
- package/dist/pos_client_api/PosClientApi.d.ts +0 -1
- package/dist/pos_client_api/PosClientApi.d.ts.map +1 -1
- package/dist/pos_client_api/PosClientApi.js +0 -31
- package/package.json +1 -1
- package/dist/pos_client_api/1.0.0/api/appointment.d.ts +0 -9
- package/dist/pos_client_api/1.0.0/api/appointment.d.ts.map +0 -1
- package/dist/pos_client_api/1.0.0/api/appointment.js +0 -29
- package/dist/pos_client_api/1.0.0/endpoints/appointment.d.ts +0 -7
- package/dist/pos_client_api/1.0.0/endpoints/appointment.d.ts.map +0 -1
- package/dist/pos_client_api/1.0.0/endpoints/appointment.js +0 -5
- package/dist/pos_client_api/1.0.0/interfaces/appointment.d.ts +0 -8
- package/dist/pos_client_api/1.0.0/interfaces/appointment.d.ts.map +0 -1
- package/dist/pos_client_api/1.0.0/interfaces/appointment.js +0 -2
- package/dist/pos_client_api/1.0.0/types/request/appointment.d.ts +0 -13
- package/dist/pos_client_api/1.0.0/types/request/appointment.d.ts.map +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import BatchHistoryAbstractClass from "../interfaces/batch_history";
|
|
2
2
|
import Base from "../../../base/Base";
|
|
3
3
|
import * as Request from "../types/request";
|
|
4
|
+
import * as Response from "../types/response";
|
|
4
5
|
export default class BatchHistory extends Base implements BatchHistoryAbstractClass {
|
|
5
|
-
static getBatchHistory(data: Request.GetBatchHistoryRequest): Promise<
|
|
6
|
-
static getBatchDetail(data: Request.GetBatchDetailRequest): Promise<
|
|
6
|
+
static getBatchHistory(data: Request.GetBatchHistoryRequest): Promise<Array<Response.GetBatchHistoryResponse>>;
|
|
7
|
+
static getBatchDetail(data: Request.GetBatchDetailRequest): Promise<Response.GetBatchDetailResponse>;
|
|
7
8
|
}
|
|
8
9
|
//# sourceMappingURL=batch_history.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch_history.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/batch_history.ts"],"names":[],"mappings":"AACA,OAAO,yBAAyB,MAAM,6BAA6B,CAAC;AACpE,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"batch_history.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/batch_history.ts"],"names":[],"mappings":"AACA,OAAO,yBAAyB,MAAM,6BAA6B,CAAC;AACpE,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAI9C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,IAAK,YAAW,yBAAyB;WAC3D,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC;WAUvG,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;CASpH"}
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
2
|
import * as posEndpoints from "../endpoints";
|
|
3
3
|
import Base from "../../../base/Base";
|
|
4
|
+
import * as Model from "../models";
|
|
4
5
|
export default class BatchHistory extends Base {
|
|
5
6
|
static getBatchHistory(data) {
|
|
7
|
+
var _a;
|
|
6
8
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7
|
-
|
|
9
|
+
const response = yield this.client.get({
|
|
8
10
|
path: posEndpoints.batch_history.GET_BATCH_HISTORY,
|
|
9
11
|
query: data
|
|
10
12
|
});
|
|
13
|
+
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.BatchHistoryModel(item));
|
|
11
14
|
});
|
|
12
15
|
}
|
|
13
16
|
static getBatchDetail(data) {
|
|
14
17
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15
|
-
|
|
18
|
+
const response = yield this.client.get({
|
|
16
19
|
path: posEndpoints.batch_history.GET_BATCH_DETAIL,
|
|
17
20
|
query: data
|
|
18
21
|
});
|
|
22
|
+
return Model.BatchDetailModel(response.result.data);
|
|
19
23
|
});
|
|
20
24
|
}
|
|
21
25
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import BusinessAbstractClass from "../interfaces/business";
|
|
2
2
|
import Base from "../../../base/Base";
|
|
3
3
|
import * as Request from "../types/request";
|
|
4
|
+
import * as Response from "../types/response";
|
|
4
5
|
export default class Business extends Base implements BusinessAbstractClass {
|
|
5
|
-
static getBusinessInfo(data: Request.GetBusinessInfoRequest): Promise<
|
|
6
|
-
static postBusinessUpdateInfo(data: Request.PostBusinessUpdateInfoRequest): Promise<
|
|
6
|
+
static getBusinessInfo(data: Request.GetBusinessInfoRequest): Promise<Response.GetBusinessInfoResponse>;
|
|
7
|
+
static postBusinessUpdateInfo(data: Request.PostBusinessUpdateInfoRequest): Promise<Response.PostBusinessUpdateInfoResponse>;
|
|
7
8
|
}
|
|
8
9
|
//# sourceMappingURL=business.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"business.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/business.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"business.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/business.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,IAAK,YAAW,qBAAqB;WACnD,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC;WAUhG,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,6BAA6B,GAAG,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CAAC;CAS5I"}
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
2
|
import * as posEndpoints from "../endpoints";
|
|
3
3
|
import Base from "../../../base/Base";
|
|
4
|
+
import * as Model from "../models";
|
|
4
5
|
export default class Business extends Base {
|
|
5
6
|
static getBusinessInfo(data) {
|
|
6
7
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7
|
-
|
|
8
|
+
const response = yield this.client.get({
|
|
8
9
|
path: posEndpoints.business.GET_BUSINESS_INFO,
|
|
9
10
|
query: data
|
|
10
11
|
});
|
|
12
|
+
return Model.BusinessInfoModel(response.result.data);
|
|
11
13
|
});
|
|
12
14
|
}
|
|
13
15
|
static postBusinessUpdateInfo(data) {
|
|
14
16
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15
|
-
|
|
17
|
+
const response = yield this.client.post({
|
|
16
18
|
path: posEndpoints.business.POST_BUSINESS_UPDATE_INFO,
|
|
17
19
|
data: data
|
|
18
20
|
});
|
|
21
|
+
return Model.BusinessInfoModel(response.result.data);
|
|
19
22
|
});
|
|
20
23
|
}
|
|
21
24
|
}
|
|
@@ -2,6 +2,6 @@ import CallAbstractClass from "../interfaces/call";
|
|
|
2
2
|
import Base from "../../../base/Base";
|
|
3
3
|
import * as Request from "../types/request";
|
|
4
4
|
export default class Call extends Base implements CallAbstractClass {
|
|
5
|
-
static sendSms(data: Request.SendSmsRequest): Promise<
|
|
5
|
+
static sendSms(data: Request.SendSmsRequest): Promise<null>;
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=call.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/call.ts"],"names":[],"mappings":"AACA,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AACnD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAA;AAE3C,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,IAAK,YAAW,iBAAiB;WAC3C,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/call.ts"],"names":[],"mappings":"AACA,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AACnD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAA;AAE3C,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,IAAK,YAAW,iBAAiB;WAC3C,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAS3E"}
|
|
@@ -4,10 +4,11 @@ import Base from "../../../base/Base";
|
|
|
4
4
|
export default class Call extends Base {
|
|
5
5
|
static sendSms(data) {
|
|
6
6
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7
|
-
|
|
7
|
+
const response = yield this.client.post({
|
|
8
8
|
path: posEndpoints.call.SEND_SMS,
|
|
9
9
|
data: data
|
|
10
10
|
});
|
|
11
|
+
return null;
|
|
11
12
|
});
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import CategoryAbstractClass from "../interfaces/category";
|
|
2
2
|
import Base from "../../../base/Base";
|
|
3
3
|
import * as Request from "../types/request";
|
|
4
|
+
import * as Response from "../types/response";
|
|
4
5
|
export default class Category extends Base implements CategoryAbstractClass {
|
|
5
|
-
static getCategoryListItem(data: Request.GetCategoryListItemRequest): Promise<
|
|
6
|
+
static getCategoryListItem(data: Request.GetCategoryListItemRequest): Promise<Array<Response.GetCategoryListItemResponse>>;
|
|
6
7
|
}
|
|
7
8
|
//# sourceMappingURL=category.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/category.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/category.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,IAAK,YAAW,qBAAqB;WACnD,mBAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,0BAA0B,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC;CAS1I"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
2
|
import * as posEndpoints from "../endpoints";
|
|
3
3
|
import Base from "../../../base/Base";
|
|
4
|
+
import * as Model from "../models";
|
|
4
5
|
export default class Category extends Base {
|
|
5
6
|
static getCategoryListItem(data) {
|
|
7
|
+
var _a;
|
|
6
8
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7
|
-
|
|
9
|
+
const response = yield this.client.get({
|
|
8
10
|
path: posEndpoints.category.GET_CATEGORY_LIST_ITEM,
|
|
9
11
|
query: data
|
|
10
12
|
});
|
|
13
|
+
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.CategoryListItemModel(item));
|
|
11
14
|
});
|
|
12
15
|
}
|
|
13
16
|
}
|
|
@@ -4,8 +4,8 @@ import * as Request from "../types/request";
|
|
|
4
4
|
import * as Response from "../types/response";
|
|
5
5
|
export default class CheckIn extends Base implements CheckInAbstractClass {
|
|
6
6
|
static postCheckInFormSubmit(data: Request.PostCheckInFormSubmitRequest): Promise<any>;
|
|
7
|
-
static getCheckInReport(data: Request.GetCheckInReportRequest): Promise<
|
|
8
|
-
static getLastCheckIn(data: Request.GetLastCheckInRequest): Promise<
|
|
7
|
+
static getCheckInReport(data: Request.GetCheckInReportRequest): Promise<Response.GetCheckInReportResponse>;
|
|
8
|
+
static getLastCheckIn(data: Request.GetLastCheckInRequest): Promise<Response.GetLastCheckInResponse>;
|
|
9
9
|
static getCheckInList(data: Request.GetCheckInListRequest): Promise<Array<Response.GetCheckInInfoResponse>>;
|
|
10
10
|
static getCheckInInfo(data: Request.GetCheckInInfoRequest): Promise<Response.GetCheckInInfoResponse>;
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check_in.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/check_in.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,IAAK,YAAW,oBAAoB;WACjD,qBAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,4BAA4B;WAShE,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB;
|
|
1
|
+
{"version":3,"file":"check_in.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/check_in.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,IAAK,YAAW,oBAAoB;WACjD,qBAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,4BAA4B;WAShE,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;WAUnG,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;WAU7F,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC;WAUpG,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;CASpH"}
|
|
@@ -12,19 +12,23 @@ export default class CheckIn extends Base {
|
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
14
|
static getCheckInReport(data) {
|
|
15
|
+
var _a;
|
|
15
16
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
-
|
|
17
|
+
const response = yield this.client.get({
|
|
17
18
|
path: posEndpoints.check_in.GET_CHECK_IN_REPORT,
|
|
18
19
|
query: data
|
|
19
20
|
});
|
|
21
|
+
return Model.CheckInReportModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
20
22
|
});
|
|
21
23
|
}
|
|
22
24
|
static getLastCheckIn(data) {
|
|
25
|
+
var _a;
|
|
23
26
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
|
|
27
|
+
const response = yield this.client.get({
|
|
25
28
|
path: posEndpoints.check_in.GET_LAST_CHECK_IN,
|
|
26
29
|
query: data
|
|
27
30
|
});
|
|
31
|
+
return Model.LastCheckInModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
28
32
|
});
|
|
29
33
|
}
|
|
30
34
|
static getCheckInList(data) {
|
|
@@ -4,11 +4,11 @@ import * as Request from "../types/request";
|
|
|
4
4
|
import * as Response from "../types/response";
|
|
5
5
|
export default class CheckOut extends Base implements CheckOutAbstractClass {
|
|
6
6
|
static getItemList(data: Request.GetItemListRequest): Promise<any>;
|
|
7
|
-
static getCheckOutHistoryList(data: Request.GetCheckOutHistoryListRequest): Promise<
|
|
8
|
-
static getCheckOutInfo(data: Request.GetCheckOutInfoRequest): Promise<
|
|
9
|
-
static getCheckOutHistoryInfo(data: Request.GetCheckOutHistoryInfoRequest): Promise<Response.DataWithMeta<Response.GetCheckOutHistoryInfoResponse
|
|
10
|
-
static getCheckOutBatchCloseSummary(data: Request.GetCheckOutBatchCloseSummaryRequest): Promise<
|
|
11
|
-
static postCheckOutAddItem(data: Request.PostCheckOutAddItemRequest): Promise<
|
|
7
|
+
static getCheckOutHistoryList(data: Request.GetCheckOutHistoryListRequest): Promise<Response.DataWithMeta<Array<Response.GetCheckOutHistoryListResponse>>>;
|
|
8
|
+
static getCheckOutInfo(data: Request.GetCheckOutInfoRequest): Promise<Response.GetCheckOutInfoResponse>;
|
|
9
|
+
static getCheckOutHistoryInfo(data: Request.GetCheckOutHistoryInfoRequest): Promise<Response.DataWithMeta<Array<Response.GetCheckOutHistoryInfoResponse>>>;
|
|
10
|
+
static getCheckOutBatchCloseSummary(data: Request.GetCheckOutBatchCloseSummaryRequest): Promise<Response.GetCheckOutBatchCloseSummaryResponse>;
|
|
11
|
+
static postCheckOutAddItem(data: Request.PostCheckOutAddItemRequest): Promise<Response.PostCheckOutAddItemResponse>;
|
|
12
12
|
static postCheckOutRemoveItem(data: Request.PostCheckOutRemoveItemRequest): Promise<any>;
|
|
13
13
|
static postCheckOutSubmitOrder(data: Request.PostCheckOutSubmitOrderRequest): Promise<any>;
|
|
14
14
|
static postCheckOutUpdateStatus(data: Request.PostCheckOutUpdateStatusRequest): Promise<any>;
|
|
@@ -25,7 +25,7 @@ export default class CheckOut extends Base implements CheckOutAbstractClass {
|
|
|
25
25
|
static postCheckOutItemAdjustPrice(data: Request.PostCheckOutItemAdjustPriceRequest): Promise<any>;
|
|
26
26
|
static postCheckOutUpdatePaymentData(data: Request.PostCheckOutUpdatePaymentDataRequest): Promise<any>;
|
|
27
27
|
static postCheckOutItemAddCombo(data: Request.PostCheckOutItemAddComboRequest): Promise<any>;
|
|
28
|
-
static getCheckoutResendRating(data: Request.GetCheckoutResendRatingRequest): Promise<
|
|
28
|
+
static getCheckoutResendRating(data: Request.GetCheckoutResendRatingRequest): Promise<Response.GetCheckoutResendRatingResponse>;
|
|
29
29
|
static postCustomerAchAvailable(data: Request.PostCustomerAchAvailableRequest): Promise<any>;
|
|
30
30
|
static postAchResend(data: Request.PostAchResendRequest): Promise<any>;
|
|
31
31
|
static postAchVoid(data: Request.PostAchVoidRequest): Promise<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check_out.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/check_out.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,IAAK,YAAW,qBAAqB;WACnD,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB;WAS5C,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,6BAA6B;
|
|
1
|
+
{"version":3,"file":"check_out.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/check_out.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,IAAK,YAAW,qBAAqB;WACnD,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB;WAS5C,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,6BAA6B,GAAG,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,8BAA8B,CAAC,CAAC,CAAC;WAanJ,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC;WAUhG,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,6BAA6B,GAAG,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,8BAA8B,CAAC,CAAC,CAAC;WAcnJ,4BAA4B,CAAC,IAAI,EAAE,OAAO,CAAC,mCAAmC,GAAG,OAAO,CAAC,QAAQ,CAAC,oCAAoC,CAAC;WAUvI,mBAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,0BAA0B,GAAG,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC;WAU5G,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,6BAA6B;WASlE,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC,8BAA8B;WASpE,wBAAwB,CAAC,IAAI,EAAE,OAAO,CAAC,+BAA+B;WAStE,4CAA4C,CAAC,IAAI,EAAE,OAAO,CAAC,mDAAmD;WAS9G,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,yBAAyB;WAS1D,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC,8BAA8B;WASpE,yBAAyB,CAAC,IAAI,EAAE,OAAO,CAAC,gCAAgC;WASxE,4BAA4B,CAAC,IAAI,EAAE,OAAO,CAAC,mCAAmC;WAS9E,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B;WAS9D,2BAA2B,CAAC,IAAI,EAAE,OAAO,CAAC,kCAAkC;WAS5E,6BAA6B,CAAC,IAAI,EAAE,OAAO,CAAC,oCAAoC;WAShF,0BAA0B,CAAC,IAAI,EAAE,OAAO,CAAC,iCAAiC;WAS1E,yBAAyB,CAAC,IAAI,EAAE,OAAO,CAAC,gCAAgC;WASxE,2BAA2B,CAAC,IAAI,EAAE,OAAO,CAAC,kCAAkC;WAS5E,6BAA6B,CAAC,IAAI,EAAE,OAAO,CAAC,oCAAoC;WAShF,wBAAwB,CAAC,IAAI,EAAE,OAAO,CAAC,+BAA+B;WAStE,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC,8BAA8B,GAAG,OAAO,CAAC,QAAQ,CAAC,+BAA+B,CAAC;WAUxH,wBAAwB,CAAC,IAAI,EAAE,OAAO,CAAC,+BAA+B;WAStE,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,oBAAoB;WAShD,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB;WAS5C,+BAA+B,CAAC,IAAI,EAAE,OAAO,CAAC,sCAAsC;WASpF,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB;WAStD,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B;CAQrF"}
|
|
@@ -12,19 +12,26 @@ export default class CheckOut extends Base {
|
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
14
|
static getCheckOutHistoryList(data) {
|
|
15
|
+
var _a, _b, _c, _d;
|
|
15
16
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
-
|
|
17
|
+
const response = yield this.client.get({
|
|
17
18
|
path: posEndpoints.check_out.GET_CHECK_OUT_HISTORY_LIST,
|
|
18
19
|
query: data
|
|
19
20
|
});
|
|
21
|
+
return {
|
|
22
|
+
data: (((_b = (_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.items) || []).map(item => Model.CheckOutInfoModel(item)),
|
|
23
|
+
_meta: Model.MetaModel((_d = (_c = response === null || response === void 0 ? void 0 : response.result) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d._meta)
|
|
24
|
+
};
|
|
20
25
|
});
|
|
21
26
|
}
|
|
22
27
|
static getCheckOutInfo(data) {
|
|
28
|
+
var _a;
|
|
23
29
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
|
|
30
|
+
const response = yield this.client.get({
|
|
25
31
|
path: posEndpoints.check_out.GET_CHECK_OUT_INFO,
|
|
26
32
|
query: data
|
|
27
33
|
});
|
|
34
|
+
return Model.CheckOutInfoModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
28
35
|
});
|
|
29
36
|
}
|
|
30
37
|
static getCheckOutHistoryInfo(data) {
|
|
@@ -41,19 +48,23 @@ export default class CheckOut extends Base {
|
|
|
41
48
|
});
|
|
42
49
|
}
|
|
43
50
|
static getCheckOutBatchCloseSummary(data) {
|
|
51
|
+
var _a;
|
|
44
52
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
|
|
53
|
+
const response = yield this.client.get({
|
|
46
54
|
path: posEndpoints.check_out.GET_CHECKOUT_BATCH_CLOSE_SUMMARY,
|
|
47
55
|
query: data
|
|
48
56
|
});
|
|
57
|
+
return Model.CheckOutBatchCloseSummaryModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
49
58
|
});
|
|
50
59
|
}
|
|
51
60
|
static postCheckOutAddItem(data) {
|
|
61
|
+
var _a;
|
|
52
62
|
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
|
|
63
|
+
const response = yield this.client.post({
|
|
54
64
|
path: posEndpoints.check_out.POST_CHECKOUT_ADD_ITEM,
|
|
55
65
|
data: data
|
|
56
66
|
});
|
|
67
|
+
return Model.CheckOutInfoModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
57
68
|
});
|
|
58
69
|
}
|
|
59
70
|
static postCheckOutRemoveItem(data) {
|
|
@@ -185,11 +196,13 @@ export default class CheckOut extends Base {
|
|
|
185
196
|
});
|
|
186
197
|
}
|
|
187
198
|
static getCheckoutResendRating(data) {
|
|
199
|
+
var _a;
|
|
188
200
|
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
-
|
|
201
|
+
const response = yield this.client.get({
|
|
190
202
|
path: posEndpoints.check_out.GET_CHECKOUT_RESEND_RATING,
|
|
191
203
|
query: data
|
|
192
204
|
});
|
|
205
|
+
return Model.CheckoutResendRatingModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
193
206
|
});
|
|
194
207
|
}
|
|
195
208
|
static postCustomerAchAvailable(data) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import ComboAbstractClass from "../interfaces/combo";
|
|
2
2
|
import Base from "../../../base/Base";
|
|
3
3
|
import * as Request from "../types/request";
|
|
4
|
+
import * as Response from "../types/response";
|
|
4
5
|
export default class Combo extends Base implements ComboAbstractClass {
|
|
5
|
-
static getComboSiteInfo(data: Request.GetComboSiteInfoRequest): Promise<
|
|
6
|
+
static getComboSiteInfo(data: Request.GetComboSiteInfoRequest): Promise<Response.GetComboSiteInfoResponse>;
|
|
6
7
|
}
|
|
7
8
|
//# sourceMappingURL=combo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combo.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/combo.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,MAAM,qBAAqB,CAAC;AACrD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"combo.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/combo.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,MAAM,qBAAqB,CAAC;AACrD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,IAAK,YAAW,kBAAkB;WAC7C,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;CAS1H"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
2
|
import * as posEndpoints from "../endpoints";
|
|
3
3
|
import Base from "../../../base/Base";
|
|
4
|
+
import * as Model from "../models";
|
|
4
5
|
export default class Combo extends Base {
|
|
5
6
|
static getComboSiteInfo(data) {
|
|
7
|
+
var _a;
|
|
6
8
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7
|
-
|
|
9
|
+
const response = yield this.client.get({
|
|
8
10
|
path: posEndpoints.combo.GET_COMBO_SITE_INFO,
|
|
9
11
|
query: data
|
|
10
12
|
});
|
|
13
|
+
return Model.ComboModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
11
14
|
});
|
|
12
15
|
}
|
|
13
16
|
}
|
|
@@ -4,6 +4,6 @@ import * as Request from "../types/request";
|
|
|
4
4
|
import * as Response from "../types/response";
|
|
5
5
|
export default class Customer extends Base implements CustomerAbstractClass {
|
|
6
6
|
static getCustomerList(data: Request.GetCustomerListRequest): Promise<Array<Response.GetCustomerListResponse>>;
|
|
7
|
-
static getCustomerDetail(data: Request.GetCustomerDetailRequest): Promise<
|
|
7
|
+
static getCustomerDetail(data: Request.GetCustomerDetailRequest): Promise<Response.GetCustomerDetailResponse>;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=customer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/customer.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,IAAK,YAAW,qBAAqB;WACnD,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC;WAUvG,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB;
|
|
1
|
+
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/customer.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,IAAK,YAAW,qBAAqB;WACnD,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC;WAUvG,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;CAS7H"}
|
|
@@ -15,10 +15,11 @@ export default class Customer extends Base {
|
|
|
15
15
|
}
|
|
16
16
|
static getCustomerDetail(data) {
|
|
17
17
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18
|
-
|
|
18
|
+
const response = yield this.client.get({
|
|
19
19
|
path: posEndpoints.customer.GET_CUSTOMER_DETAIL,
|
|
20
20
|
query: data
|
|
21
21
|
});
|
|
22
|
+
return Model.CustomerDetailModel(response.result.data);
|
|
22
23
|
});
|
|
23
24
|
}
|
|
24
25
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import GiftCardAbstractClass from "../interfaces/gift_card";
|
|
2
2
|
import Base from "../../../base/Base";
|
|
3
3
|
import * as Request from "../types/request";
|
|
4
|
+
import * as Response from "../types/response";
|
|
4
5
|
export default class GiftCard extends Base implements GiftCardAbstractClass {
|
|
5
|
-
static getCheckGiftCard(data: Request.GetCheckGiftCardRequest): Promise<
|
|
6
|
-
static postResetGiftCard(data: Request.PostResetGiftCardRequest): Promise<
|
|
6
|
+
static getCheckGiftCard(data: Request.GetCheckGiftCardRequest): Promise<Response.GetCheckGiftCardResponse>;
|
|
7
|
+
static postResetGiftCard(data: Request.PostResetGiftCardRequest): Promise<null>;
|
|
7
8
|
}
|
|
8
9
|
//# sourceMappingURL=gift_card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gift_card.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/gift_card.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"gift_card.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/gift_card.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,IAAK,YAAW,qBAAqB;WACnD,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;WAUnG,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;CAS/F"}
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
2
|
import * as posEndpoints from "../endpoints";
|
|
3
3
|
import Base from "../../../base/Base";
|
|
4
|
+
import * as Model from "../models";
|
|
4
5
|
export default class GiftCard extends Base {
|
|
5
6
|
static getCheckGiftCard(data) {
|
|
7
|
+
var _a;
|
|
6
8
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7
|
-
|
|
9
|
+
const response = yield this.client.get({
|
|
8
10
|
path: posEndpoints.gift_card.GET_CHECK_GIFT_CARD,
|
|
9
11
|
query: data
|
|
10
12
|
});
|
|
13
|
+
return Model.GiftCardModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
11
14
|
});
|
|
12
15
|
}
|
|
13
16
|
static postResetGiftCard(data) {
|
|
14
17
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15
|
-
|
|
18
|
+
const response = yield this.client.post({
|
|
16
19
|
path: posEndpoints.gift_card.POST_RESET_GIFT_CARD,
|
|
17
20
|
data: data
|
|
18
21
|
});
|
|
22
|
+
return null;
|
|
19
23
|
});
|
|
20
24
|
}
|
|
21
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,aAAa,CAAC;AAChD,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,aAAa,CAAC;AAChD,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,eAAe,CAAC;AACpD,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,QAAQ,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import KeyStorageAbstractClass from "../interfaces/key_storage";
|
|
2
2
|
import Base from "../../../base/Base";
|
|
3
3
|
import * as Request from "../types/request";
|
|
4
|
+
import * as Response from "../types/response";
|
|
4
5
|
export default class KeyStorage extends Base implements KeyStorageAbstractClass {
|
|
5
|
-
static getKeyStorage(data: Request.GetKeyStorageRequest): Promise<
|
|
6
|
+
static getKeyStorage(data: Request.GetKeyStorageRequest): Promise<Response.GetKeyStorageResponse>;
|
|
6
7
|
}
|
|
7
8
|
//# sourceMappingURL=key_storage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key_storage.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/key_storage.ts"],"names":[],"mappings":"AACA,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAChE,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"key_storage.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/key_storage.ts"],"names":[],"mappings":"AACA,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAChE,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,IAAK,YAAW,uBAAuB;WACvD,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC;CASjH"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
2
|
import * as posEndpoints from "../endpoints";
|
|
3
3
|
import Base from "../../../base/Base";
|
|
4
|
+
import * as Model from "../models";
|
|
4
5
|
export default class KeyStorage extends Base {
|
|
5
6
|
static getKeyStorage(data) {
|
|
7
|
+
var _a;
|
|
6
8
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7
|
-
|
|
9
|
+
const response = yield this.client.get({
|
|
8
10
|
path: posEndpoints.key_storage.GET_KEY_STORAGE,
|
|
9
11
|
query: data
|
|
10
12
|
});
|
|
13
|
+
return Model.KeyStorageModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
11
14
|
});
|
|
12
15
|
}
|
|
13
16
|
}
|
|
@@ -3,12 +3,12 @@ import Base from "../../../base/Base";
|
|
|
3
3
|
import * as Request from "../types/request";
|
|
4
4
|
import * as Response from "../types/response";
|
|
5
5
|
export default class Order extends Base implements OrderAbstractClass {
|
|
6
|
-
static getOrderCheckInList(data: Request.GetOrderCheckInListRequest): Promise<
|
|
6
|
+
static getOrderCheckInList(data: Request.GetOrderCheckInListRequest): Promise<Response.DataWithMeta<Array<Response.GetOrderDetailResponse>>>;
|
|
7
7
|
static getOrderDetail(data: Request.GetOrderDetailRequest): Promise<Response.GetOrderDetailResponse>;
|
|
8
|
-
static getOrderHistoryList(data: Request.GetOrderHistoryListRequest): Promise<
|
|
8
|
+
static getOrderHistoryList(data: Request.GetOrderHistoryListRequest): Promise<Response.DataWithMeta<Array<Response.GetOrderHistoryListResponse>>>;
|
|
9
9
|
static getReportCheckIn(data: Request.GetReportCheckInRequest): Promise<Response.GetReportCheckInResponse>;
|
|
10
|
-
static updateOrderStaff(data: Request.UpdateOrderStaffRequest): Promise<
|
|
11
|
-
static removeOrder(data: Request.RemoveOrderRequest): Promise<
|
|
12
|
-
static exportOrder(data: Request.ExportOrderRequest): Promise<
|
|
10
|
+
static updateOrderStaff(data: Request.UpdateOrderStaffRequest): Promise<Array<Response.UpdateOrderStaffResponse>>;
|
|
11
|
+
static removeOrder(data: Request.RemoveOrderRequest): Promise<null>;
|
|
12
|
+
static exportOrder(data: Request.ExportOrderRequest): Promise<null>;
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=order.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/order.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,MAAM,qBAAqB,CAAC;AACrD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AAKtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAE9C,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,IAAK,YAAW,kBAAkB;WAC7C,mBAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,0BAA0B;
|
|
1
|
+
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/order.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,MAAM,qBAAqB,CAAC;AACrD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AAKtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAE9C,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,IAAK,YAAW,kBAAkB;WAC7C,mBAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,0BAA0B,GAAG,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC;WAarI,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;WAU7F,mBAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,0BAA0B,GAAG,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC,CAAC;WAa1I,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;WAmBnG,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC;WAmB1G,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;WAU5D,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;CAoDnF"}
|
|
@@ -7,11 +7,16 @@ import dayjs from 'dayjs';
|
|
|
7
7
|
import * as Model from "../models";
|
|
8
8
|
export default class Order extends Base {
|
|
9
9
|
static getOrderCheckInList(data) {
|
|
10
|
+
var _a, _b, _c, _d;
|
|
10
11
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11
|
-
|
|
12
|
+
const response = yield this.client.get({
|
|
12
13
|
path: posEndpoints.order.GET_CHECKIN_LIST,
|
|
13
14
|
query: data
|
|
14
15
|
});
|
|
16
|
+
return {
|
|
17
|
+
data: (((_b = (_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.items) || []).map(item => Model.OrderDetailModel(item)),
|
|
18
|
+
_meta: Model.MetaModel((_d = (_c = response === null || response === void 0 ? void 0 : response.result) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d._meta)
|
|
19
|
+
};
|
|
15
20
|
});
|
|
16
21
|
}
|
|
17
22
|
static getOrderDetail(data) {
|
|
@@ -25,11 +30,16 @@ export default class Order extends Base {
|
|
|
25
30
|
});
|
|
26
31
|
}
|
|
27
32
|
static getOrderHistoryList(data) {
|
|
33
|
+
var _a, _b, _c, _d;
|
|
28
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
|
|
35
|
+
const response = yield this.client.get({
|
|
30
36
|
path: posEndpoints.order.GET_ORDER_HISTORY_LIST,
|
|
31
37
|
query: data
|
|
32
38
|
});
|
|
39
|
+
return {
|
|
40
|
+
data: (((_b = (_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.items) || []).map(item => Model.OrderHistoryModel(item)),
|
|
41
|
+
_meta: Model.MetaModel((_d = (_c = response === null || response === void 0 ? void 0 : response.result) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d._meta)
|
|
42
|
+
};
|
|
33
43
|
});
|
|
34
44
|
}
|
|
35
45
|
static getReportCheckIn(data) {
|
|
@@ -50,11 +60,13 @@ export default class Order extends Base {
|
|
|
50
60
|
// );
|
|
51
61
|
// }
|
|
52
62
|
static updateOrderStaff(data) {
|
|
63
|
+
var _a;
|
|
53
64
|
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
|
|
65
|
+
const response = yield this.client.post({
|
|
55
66
|
path: posEndpoints.order.UPDATE_ORDER_STAFF,
|
|
56
67
|
data: data
|
|
57
68
|
});
|
|
69
|
+
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.OrderStaffModel(item));
|
|
58
70
|
});
|
|
59
71
|
}
|
|
60
72
|
// public static async checkPassword(data: InputDataType.GetIncomeHistory) {
|
|
@@ -67,10 +79,11 @@ export default class Order extends Base {
|
|
|
67
79
|
// }
|
|
68
80
|
static removeOrder(data) {
|
|
69
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
-
|
|
82
|
+
const response = yield this.client.post({
|
|
71
83
|
path: posEndpoints.order.REMOVE_ORDER,
|
|
72
84
|
data: data
|
|
73
85
|
});
|
|
86
|
+
return null;
|
|
74
87
|
});
|
|
75
88
|
}
|
|
76
89
|
static exportOrder(data) {
|
|
@@ -81,6 +94,7 @@ export default class Order extends Base {
|
|
|
81
94
|
});
|
|
82
95
|
let dateFormat = formatExportDateString();
|
|
83
96
|
FileDownload(response, `export-orders-${dayjs().format(dateFormat)}.xls`);
|
|
97
|
+
return null;
|
|
84
98
|
});
|
|
85
99
|
}
|
|
86
100
|
}
|