gap-nodejs-sdk 1.0.22 → 1.0.23
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/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/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 +5 -5
- 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/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/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/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/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/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/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/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/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 +6 -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 +6 -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/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/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/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/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/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/{request/appointment.js → response/gift_card.js} +0 -0
- package/dist/pos_client_api/1.0.0/types/response/index.d.ts +6 -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 +6 -0
- 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/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
|
@@ -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
|
}
|
|
@@ -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<
|
|
7
|
+
static getCheckOutHistoryList(data: Request.GetCheckOutHistoryListRequest): Promise<Response.DataWithMeta<Array<Response.GetCheckOutHistoryListResponse>>>;
|
|
8
|
+
static getCheckOutInfo(data: Request.GetCheckOutInfoRequest): Promise<Response.GetCheckOutInfoResponse>;
|
|
9
9
|
static getCheckOutHistoryInfo(data: Request.GetCheckOutHistoryInfoRequest): Promise<Response.DataWithMeta<Array<Response.GetCheckOutHistoryInfoResponse>>>;
|
|
10
|
-
static getCheckOutBatchCloseSummary(data: Request.GetCheckOutBatchCloseSummaryRequest): Promise<
|
|
11
|
-
static postCheckOutAddItem(data: Request.PostCheckOutAddItemRequest): Promise<
|
|
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,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,10 +1,11 @@
|
|
|
1
1
|
import PrinterAbstractClass from "../interfaces/printer";
|
|
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 Printer extends Base implements PrinterAbstractClass {
|
|
5
|
-
static getPrinterList(data: Request.GetPrinterListRequest): Promise<
|
|
6
|
-
static getPrinterDetail(data: Request.GetPrinterDetailRequest): Promise<
|
|
7
|
-
static createPrinterInfo(data: Request.CreatePrinterInfoRequest): Promise<
|
|
8
|
-
static updatePrinterInfo(data: Request.UpdatePrinterInfoRequest): Promise<
|
|
6
|
+
static getPrinterList(data: Request.GetPrinterListRequest): Promise<Response.GetPrinterListResponse>;
|
|
7
|
+
static getPrinterDetail(data: Request.GetPrinterDetailRequest): Promise<Response.GetPrinterDetailResponse>;
|
|
8
|
+
static createPrinterInfo(data: Request.CreatePrinterInfoRequest): Promise<Response.CreatePrinterInfoResponse>;
|
|
9
|
+
static updatePrinterInfo(data: Request.UpdatePrinterInfoRequest): Promise<Response.UpdatePrinterInfoResponse>;
|
|
9
10
|
}
|
|
10
11
|
//# sourceMappingURL=printer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"printer.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/printer.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,MAAM,uBAAuB,CAAC;AACzD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"printer.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/printer.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,MAAM,uBAAuB,CAAC;AACzD,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,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;WAU7F,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,QAAQ,CAAC,yBAAyB,CAAC;WAUtG,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;CAS7H"}
|
|
@@ -1,37 +1,46 @@
|
|
|
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 Printer extends Base {
|
|
5
6
|
static getPrinterList(data) {
|
|
7
|
+
var _a, _b;
|
|
6
8
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7
|
-
|
|
9
|
+
const response = yield this.client.get({
|
|
8
10
|
path: posEndpoints.printer.GET_PRINTER_LIST,
|
|
9
11
|
query: data
|
|
10
12
|
});
|
|
13
|
+
return (((_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.PrinterModel(item));
|
|
11
14
|
});
|
|
12
15
|
}
|
|
13
16
|
static getPrinterDetail(data) {
|
|
17
|
+
var _a;
|
|
14
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15
|
-
|
|
16
|
-
path: posEndpoints.printer.
|
|
19
|
+
const response = yield this.client.get({
|
|
20
|
+
path: posEndpoints.printer.GET_PRINTER_DETAIL,
|
|
17
21
|
query: data
|
|
18
22
|
});
|
|
23
|
+
return Model.PrinterModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
19
24
|
});
|
|
20
25
|
}
|
|
21
26
|
static createPrinterInfo(data) {
|
|
27
|
+
var _a;
|
|
22
28
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
|
|
24
|
-
path: posEndpoints.printer.
|
|
29
|
+
const response = yield this.client.post({
|
|
30
|
+
path: posEndpoints.printer.CREATE_PRINTER_INFO,
|
|
25
31
|
data: data
|
|
26
32
|
});
|
|
33
|
+
return Model.PrinterInfoModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
27
34
|
});
|
|
28
35
|
}
|
|
29
36
|
static updatePrinterInfo(data) {
|
|
37
|
+
var _a;
|
|
30
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
|
|
32
|
-
path: posEndpoints.printer.
|
|
33
|
-
|
|
39
|
+
const response = yield this.client.post({
|
|
40
|
+
path: posEndpoints.printer.UPDATE_PRINTER_INFO,
|
|
41
|
+
data: data
|
|
34
42
|
});
|
|
43
|
+
return Model.UpdatePrinterInfoModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
35
44
|
});
|
|
36
45
|
}
|
|
37
46
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import ServiceAbstractClass from "../interfaces/service";
|
|
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 Service extends Base implements ServiceAbstractClass {
|
|
5
|
-
static getServiceList(data: Request.GetServiceListRequest): Promise<
|
|
6
|
+
static getServiceList(data: Request.GetServiceListRequest): Promise<Response.GetServiceListResponse>;
|
|
6
7
|
}
|
|
7
8
|
//# sourceMappingURL=service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/service.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,MAAM,uBAAuB,CAAC;AACzD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/service.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,MAAM,uBAAuB,CAAC;AACzD,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,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;CASpH"}
|
|
@@ -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 Service extends Base {
|
|
5
6
|
static getServiceList(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.service.GET_SERVICE_LIST,
|
|
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.ServiceModel(item));
|
|
11
14
|
});
|
|
12
15
|
}
|
|
13
16
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import SettingTurnAbstractClass from "../interfaces/setting_turn";
|
|
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 SettingTurn extends Base implements SettingTurnAbstractClass {
|
|
5
|
-
static getTurnValue(data: Request.GetTurnValueRequest): Promise<
|
|
6
|
-
static postTurnUpdateValue(data: Request.PostTurnUpdateValueRequest): Promise<
|
|
6
|
+
static getTurnValue(data: Request.GetTurnValueRequest): Promise<Response.GetSettingTurnResponse>;
|
|
7
|
+
static postTurnUpdateValue(data: Request.PostTurnUpdateValueRequest): Promise<Response.PostSettingTurnResponse>;
|
|
7
8
|
}
|
|
8
9
|
//# sourceMappingURL=setting_turn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setting_turn.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/setting_turn.ts"],"names":[],"mappings":"AACA,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAClE,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"setting_turn.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/setting_turn.ts"],"names":[],"mappings":"AACA,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAClE,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,IAAK,YAAW,wBAAwB;WACzD,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;WAUzF,mBAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,0BAA0B,GAAG,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC;CAS/H"}
|
|
@@ -1,21 +1,26 @@
|
|
|
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 SettingTurn extends Base {
|
|
5
6
|
static getTurnValue(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.setting_turn.GET_TURN_VALUE,
|
|
9
11
|
query: data
|
|
10
12
|
});
|
|
13
|
+
return Model.SettingTurnModel((_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 postTurnUpdateValue(data) {
|
|
17
|
+
var _a;
|
|
14
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15
|
-
|
|
19
|
+
const response = yield this.client.post({
|
|
16
20
|
path: posEndpoints.setting_turn.POST_TURN_UPDATE_VALUE,
|
|
17
21
|
data: data
|
|
18
22
|
});
|
|
23
|
+
return Model.SettingTurnModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
19
24
|
});
|
|
20
25
|
}
|
|
21
26
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import StaffAbstractClass from "../interfaces/staff";
|
|
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 Staff extends Base implements StaffAbstractClass {
|
|
5
|
-
static getStaffList(data: Request.GetStaffListRequest): Promise<
|
|
6
|
-
static getStaffListByCheckout(data: Request.GetStaffListByCheckoutRequest): Promise<
|
|
6
|
+
static getStaffList(data: Request.GetStaffListRequest): Promise<Response.GetStaffListResponse>;
|
|
7
|
+
static getStaffListByCheckout(data: Request.GetStaffListByCheckoutRequest): Promise<Response.GetStaffListByCheckoutResponse>;
|
|
7
8
|
}
|
|
8
9
|
//# sourceMappingURL=staff.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"staff.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/staff.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":"staff.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/staff.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,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC;WAUvF,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,6BAA6B,GAAG,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CAAC;CAS5I"}
|
|
@@ -1,21 +1,26 @@
|
|
|
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 Staff extends Base {
|
|
5
6
|
static getStaffList(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.staff.GET_STAFF_LIST,
|
|
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.StaffModel(item));
|
|
11
14
|
});
|
|
12
15
|
}
|
|
13
16
|
static getStaffListByCheckout(data) {
|
|
17
|
+
var _a;
|
|
14
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15
|
-
|
|
19
|
+
const response = yield this.client.get({
|
|
16
20
|
path: posEndpoints.staff.GET_STAFF_LIST_BY_CHECKOUT,
|
|
17
21
|
query: data
|
|
18
22
|
});
|
|
23
|
+
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.StaffByCheckoutModel(item));
|
|
19
24
|
});
|
|
20
25
|
}
|
|
21
26
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import TicketAbstractClass from "../interfaces/ticket";
|
|
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 Ticket extends Base implements TicketAbstractClass {
|
|
5
|
-
static getTicketList(data: Request.GetTicketListRequest): Promise<
|
|
6
|
-
static createTicketTemplate(data: Request.CreateTicketTemplateRequest): Promise<
|
|
7
|
-
static deleteTicketTemplate(data: Request.DeleteTicketTemplateRequest): Promise<
|
|
8
|
-
static updateTicketTemplate(data: Request.UpdateTicketTemplateRequest): Promise<
|
|
9
|
-
static moveSubject(data: Request.MoveSubjectRequest): Promise<
|
|
10
|
-
static setDefaultTicketTemplate(data: Request.SetDefaultTicketTemplateRequest): Promise<
|
|
11
|
-
static getTicketTemplate(data: Request.GetTicketTemplateRequest): Promise<
|
|
6
|
+
static getTicketList(data: Request.GetTicketListRequest): Promise<Response.GetTicketListResponse>;
|
|
7
|
+
static createTicketTemplate(data: Request.CreateTicketTemplateRequest): Promise<Response.CreateTicketTemplateResponse>;
|
|
8
|
+
static deleteTicketTemplate(data: Request.DeleteTicketTemplateRequest): Promise<null>;
|
|
9
|
+
static updateTicketTemplate(data: Request.UpdateTicketTemplateRequest): Promise<Response.UpdateTicketTemplateResponse>;
|
|
10
|
+
static moveSubject(data: Request.MoveSubjectRequest): Promise<null>;
|
|
11
|
+
static setDefaultTicketTemplate(data: Request.SetDefaultTicketTemplateRequest): Promise<null>;
|
|
12
|
+
static getTicketTemplate(data: Request.GetTicketTemplateRequest): Promise<Response.GetTicketTemplateResponse>;
|
|
12
13
|
}
|
|
13
14
|
//# sourceMappingURL=ticket.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ticket.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/ticket.ts"],"names":[],"mappings":"AACA,OAAO,mBAAmB,MAAM,sBAAsB,CAAC;AACvD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"ticket.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/ticket.ts"],"names":[],"mappings":"AACA,OAAO,mBAAmB,MAAM,sBAAsB,CAAC;AACvD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,IAAK,YAAW,mBAAmB;WAC/C,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC;WAmB1F,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAC;WAU/G,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,IAAI,CAAC;WAU9E,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAC;WAW/G,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;WAU5D,wBAAwB,CAAC,IAAI,EAAE,OAAO,CAAC,+BAA+B,GAAG,OAAO,CAAC,IAAI,CAAC;WAUtF,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;CAS7H"}
|
|
@@ -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 Ticket extends Base {
|
|
5
6
|
static getTicketList(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.ticket.GET_TICKET_LIST,
|
|
9
11
|
query: data
|
|
10
12
|
});
|
|
13
|
+
return Model.TicketListModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
11
14
|
});
|
|
12
15
|
}
|
|
13
16
|
// public static async getBlockList(data: InputDataType.GetBlockList) {
|
|
@@ -19,52 +22,61 @@ export default class Ticket extends Base {
|
|
|
19
22
|
// );
|
|
20
23
|
// }
|
|
21
24
|
static createTicketTemplate(data) {
|
|
25
|
+
var _a;
|
|
22
26
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
|
|
27
|
+
const response = yield this.client.post({
|
|
24
28
|
path: posEndpoints.ticket.CREATE_TICKET_TEMPLATE,
|
|
25
29
|
data: data
|
|
26
30
|
});
|
|
31
|
+
return Model.TicketModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
27
32
|
});
|
|
28
33
|
}
|
|
29
34
|
static deleteTicketTemplate(data) {
|
|
30
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
|
|
36
|
+
const response = yield this.client.get({
|
|
32
37
|
path: posEndpoints.ticket.DELETE_TICKET_TEMPLATE,
|
|
33
38
|
query: data
|
|
34
39
|
});
|
|
40
|
+
return null;
|
|
35
41
|
});
|
|
36
42
|
}
|
|
37
43
|
static updateTicketTemplate(data) {
|
|
44
|
+
var _a;
|
|
38
45
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
|
|
46
|
+
const response = yield this.client.post({
|
|
40
47
|
path: posEndpoints.ticket.UPDATE_TICKET_TEMPLATE,
|
|
41
48
|
query: data,
|
|
42
49
|
data: data,
|
|
43
50
|
});
|
|
51
|
+
return Model.TicketModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
44
52
|
});
|
|
45
53
|
}
|
|
46
54
|
static moveSubject(data) {
|
|
47
55
|
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
|
|
56
|
+
const response = yield this.client.post({
|
|
49
57
|
path: posEndpoints.ticket.MOVE_SUBJECT,
|
|
50
58
|
data: data
|
|
51
59
|
});
|
|
60
|
+
return null;
|
|
52
61
|
});
|
|
53
62
|
}
|
|
54
63
|
static setDefaultTicketTemplate(data) {
|
|
55
64
|
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
|
|
65
|
+
const response = yield this.client.post({
|
|
57
66
|
path: posEndpoints.ticket.SET_DEFAULT_TICKET_TEMPLATE,
|
|
58
67
|
data: data
|
|
59
68
|
});
|
|
69
|
+
return null;
|
|
60
70
|
});
|
|
61
71
|
}
|
|
62
72
|
static getTicketTemplate(data) {
|
|
73
|
+
var _a, _b;
|
|
63
74
|
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
-
|
|
75
|
+
const response = yield this.client.get({
|
|
65
76
|
path: posEndpoints.ticket.GET_TICKET_TEMPLATE,
|
|
66
77
|
query: data
|
|
67
78
|
});
|
|
79
|
+
return (((_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.TicketModel(item));
|
|
68
80
|
});
|
|
69
81
|
}
|
|
70
82
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/endpoints/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/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC;AACzD,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,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,aAAa,CAAC;AACjD,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,SAAS,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,eAAe,CAAC;AACrD,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,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,QAAQ,CAAC"}
|