gap-nodejs-sdk 1.0.22 → 1.0.25
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/base_type.d.ts +3 -0
- package/dist/base_type.d.ts.map +1 -1
- package/dist/gap-sdk.js +1 -1
- package/dist/http_client/http_client.d.ts +1 -0
- package/dist/http_client/http_client.d.ts.map +1 -1
- package/dist/http_client/http_client.js +4 -3
- 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/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 +3 -3
- 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 +9 -3
- package/dist/pos_client_api/1.0.0/api/check_out.d.ts +6 -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 +28 -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/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/check_out.d.ts +1 -0
- package/dist/pos_client_api/1.0.0/endpoints/check_out.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/endpoints/check_out.js +1 -0
- 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 +7 -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/category.js +10 -10
- package/dist/pos_client_api/1.0.0/models/check_in.d.ts +3 -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 +94 -3
- package/dist/pos_client_api/1.0.0/models/check_out.d.ts +4 -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 +383 -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/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 +7 -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 +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/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/check_in.d.ts +5 -2
- package/dist/pos_client_api/1.0.0/types/request/check_in.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/request/check_out.d.ts +4 -0
- package/dist/pos_client_api/1.0.0/types/request/check_out.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/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 +131 -64
- 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 +333 -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/{request/appointment.js → response/combo.js} +0 -0
- 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 +7 -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 +7 -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
|
@@ -5,6 +5,7 @@ export declare class HttpClient {
|
|
|
5
5
|
private readonly axios;
|
|
6
6
|
private readonly domain;
|
|
7
7
|
private readonly RETRY_WAIT_TIME;
|
|
8
|
+
private readonly MAX_RETRY;
|
|
8
9
|
private readonly API_VERSION;
|
|
9
10
|
constructor(domain: string, gClientId: string, token: string, version: GapApiVersion);
|
|
10
11
|
get(params: GetRequestParams): Promise<ResponseDataApi>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http_client.d.ts","sourceRoot":"","sources":["../../src/http_client/http_client.ts"],"names":[],"mappings":"AACA,OAAc,
|
|
1
|
+
{"version":3,"file":"http_client.d.ts","sourceRoot":"","sources":["../../src/http_client/http_client.ts"],"names":[],"mappings":"AACA,OAAc,EAAgB,kBAAkB,EAAgB,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAC,aAAa,EAAE,eAAe,EAAC,MAAM,eAAe,CAAC;AAG7D,OAAO,EACH,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EAGhB,MAAM,SAAS,CAAC;AAEjB,qBAAa,UAAU;IACnB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IACtC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAQ;IACxC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAK;IAC/B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAgB;gBAEzB,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa;IAW9E,GAAG,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;IAIvD,IAAI,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,eAAe,CAAC;IAIzD,GAAG,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;IAIvD,MAAM,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,eAAe,CAAC;IAI7D,OAAO,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC;IAwD9D,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAI9B,SAAS,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,eAAe,CAAC;CAmDhF"}
|
|
@@ -5,7 +5,8 @@ import { Context } from "../context";
|
|
|
5
5
|
import { Method, StatusCode } from './types';
|
|
6
6
|
export class HttpClient {
|
|
7
7
|
constructor(domain, gClientId, token, version) {
|
|
8
|
-
this.RETRY_WAIT_TIME =
|
|
8
|
+
this.RETRY_WAIT_TIME = 2000;
|
|
9
|
+
this.MAX_RETRY = 3;
|
|
9
10
|
this.API_VERSION = version;
|
|
10
11
|
this.domain = domain;
|
|
11
12
|
this.axios = axios.create({
|
|
@@ -40,7 +41,7 @@ export class HttpClient {
|
|
|
40
41
|
if (Context.API_VERSION !== this.API_VERSION) {
|
|
41
42
|
throw new GapErrors.RestResourceError(`Current Context.API_VERSION '${Context.API_VERSION}' does not match resource version ${this.API_VERSION}`);
|
|
42
43
|
}
|
|
43
|
-
const maxTries = params.tries
|
|
44
|
+
const maxTries = params.tries || this.MAX_RETRY;
|
|
44
45
|
if (maxTries <= 0) {
|
|
45
46
|
throw new GapErrors.HttpRequestError(`Number of tries must be >= 0, got ${maxTries}`);
|
|
46
47
|
}
|
|
@@ -63,7 +64,7 @@ export class HttpClient {
|
|
|
63
64
|
}
|
|
64
65
|
catch (error) {
|
|
65
66
|
tries++;
|
|
66
|
-
if (error instanceof GapErrors.
|
|
67
|
+
if (error instanceof GapErrors.HttpRequestError) {
|
|
67
68
|
if (tries < maxTries) {
|
|
68
69
|
let waitTime = this.RETRY_WAIT_TIME;
|
|
69
70
|
if (error instanceof GapErrors.HttpThrottlingError &&
|
|
@@ -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,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;
|
|
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;AAG9C,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"}
|
|
@@ -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
|
}
|
|
@@ -3,9 +3,9 @@ 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 CheckIn extends Base implements CheckInAbstractClass {
|
|
6
|
-
static postCheckInFormSubmit(data: Request.PostCheckInFormSubmitRequest): Promise<
|
|
7
|
-
static getCheckInReport(data: Request.GetCheckInReportRequest): Promise<
|
|
8
|
-
static getLastCheckIn(data: Request.GetLastCheckInRequest): Promise<
|
|
6
|
+
static postCheckInFormSubmit(data: Request.PostCheckInFormSubmitRequest): Promise<Response.PostCheckInFormSubmitResponse>;
|
|
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;
|
|
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,GAAG,OAAO,CAAC,QAAQ,CAAC,6BAA6B,CAAC;WAUlH,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"}
|
|
@@ -4,27 +4,33 @@ import Base from "../../../base/Base";
|
|
|
4
4
|
import * as Model from "../models";
|
|
5
5
|
export default class CheckIn extends Base {
|
|
6
6
|
static postCheckInFormSubmit(data) {
|
|
7
|
+
var _a;
|
|
7
8
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8
|
-
|
|
9
|
+
const response = yield this.client.post({
|
|
9
10
|
path: posEndpoints.check_in.POST_CHECK_IN_FORM_SUBMIT,
|
|
10
11
|
data: data
|
|
11
12
|
});
|
|
13
|
+
return Model.CheckInFormSubmitResponse((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
12
14
|
});
|
|
13
15
|
}
|
|
14
16
|
static getCheckInReport(data) {
|
|
17
|
+
var _a;
|
|
15
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
-
|
|
19
|
+
const response = yield this.client.get({
|
|
17
20
|
path: posEndpoints.check_in.GET_CHECK_IN_REPORT,
|
|
18
21
|
query: data
|
|
19
22
|
});
|
|
23
|
+
return Model.CheckInReportModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
20
24
|
});
|
|
21
25
|
}
|
|
22
26
|
static getLastCheckIn(data) {
|
|
27
|
+
var _a;
|
|
23
28
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
|
|
29
|
+
const response = yield this.client.get({
|
|
25
30
|
path: posEndpoints.check_in.GET_LAST_CHECK_IN,
|
|
26
31
|
query: data
|
|
27
32
|
});
|
|
33
|
+
return Model.LastCheckInModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
28
34
|
});
|
|
29
35
|
}
|
|
30
36
|
static getCheckInList(data) {
|
|
@@ -3,12 +3,13 @@ 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 CheckOut extends Base implements CheckOutAbstractClass {
|
|
6
|
+
static postUpdateInService(data: Request.PostUpdateInServiceRequest): Promise<Response.PostUpdateInServiceResponse>;
|
|
6
7
|
static getItemList(data: Request.GetItemListRequest): Promise<any>;
|
|
7
|
-
static getCheckOutHistoryList(data: Request.GetCheckOutHistoryListRequest): Promise<
|
|
8
|
-
static getCheckOutInfo(data: Request.GetCheckOutInfoRequest): Promise<
|
|
8
|
+
static getCheckOutHistoryList(data: Request.GetCheckOutHistoryListRequest): Promise<Response.DataWithMeta<Array<Response.GetCheckOutHistoryListResponse>>>;
|
|
9
|
+
static getCheckOutInfo(data: Request.GetCheckOutInfoRequest): Promise<Response.GetCheckOutInfoResponse>;
|
|
9
10
|
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<
|
|
11
|
+
static getCheckOutBatchCloseSummary(data: Request.GetCheckOutBatchCloseSummaryRequest): Promise<Response.GetCheckOutBatchCloseSummaryResponse>;
|
|
12
|
+
static postCheckOutAddItem(data: Request.PostCheckOutAddItemRequest): Promise<Response.PostCheckOutAddItemResponse>;
|
|
12
13
|
static postCheckOutRemoveItem(data: Request.PostCheckOutRemoveItemRequest): Promise<any>;
|
|
13
14
|
static postCheckOutSubmitOrder(data: Request.PostCheckOutSubmitOrderRequest): Promise<any>;
|
|
14
15
|
static postCheckOutUpdateStatus(data: Request.PostCheckOutUpdateStatusRequest): Promise<any>;
|
|
@@ -25,7 +26,7 @@ export default class CheckOut extends Base implements CheckOutAbstractClass {
|
|
|
25
26
|
static postCheckOutItemAdjustPrice(data: Request.PostCheckOutItemAdjustPriceRequest): Promise<any>;
|
|
26
27
|
static postCheckOutUpdatePaymentData(data: Request.PostCheckOutUpdatePaymentDataRequest): Promise<any>;
|
|
27
28
|
static postCheckOutItemAddCombo(data: Request.PostCheckOutItemAddComboRequest): Promise<any>;
|
|
28
|
-
static getCheckoutResendRating(data: Request.GetCheckoutResendRatingRequest): Promise<
|
|
29
|
+
static getCheckoutResendRating(data: Request.GetCheckoutResendRatingRequest): Promise<Response.GetCheckoutResendRatingResponse>;
|
|
29
30
|
static postCustomerAchAvailable(data: Request.PostCustomerAchAvailableRequest): Promise<any>;
|
|
30
31
|
static postAchResend(data: Request.PostAchResendRequest): Promise<any>;
|
|
31
32
|
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,mBAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,0BAA0B,GAAG,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC;WAU5G,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"}
|
|
@@ -3,6 +3,16 @@ import * as posEndpoints from "../endpoints";
|
|
|
3
3
|
import Base from "../../../base/Base";
|
|
4
4
|
import * as Model from "../models";
|
|
5
5
|
export default class CheckOut extends Base {
|
|
6
|
+
static postUpdateInService(data) {
|
|
7
|
+
var _a;
|
|
8
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9
|
+
const response = yield this.client.post({
|
|
10
|
+
path: posEndpoints.check_out.POST_UPDATE_IN_SERVICE,
|
|
11
|
+
data: data
|
|
12
|
+
});
|
|
13
|
+
return Model.UpdateInServiceModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
14
|
+
});
|
|
15
|
+
}
|
|
6
16
|
static getItemList(data) {
|
|
7
17
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8
18
|
return yield this.client.get({
|
|
@@ -12,19 +22,26 @@ export default class CheckOut extends Base {
|
|
|
12
22
|
});
|
|
13
23
|
}
|
|
14
24
|
static getCheckOutHistoryList(data) {
|
|
25
|
+
var _a, _b, _c, _d;
|
|
15
26
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
-
|
|
27
|
+
const response = yield this.client.get({
|
|
17
28
|
path: posEndpoints.check_out.GET_CHECK_OUT_HISTORY_LIST,
|
|
18
29
|
query: data
|
|
19
30
|
});
|
|
31
|
+
return {
|
|
32
|
+
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)),
|
|
33
|
+
_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)
|
|
34
|
+
};
|
|
20
35
|
});
|
|
21
36
|
}
|
|
22
37
|
static getCheckOutInfo(data) {
|
|
38
|
+
var _a;
|
|
23
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
|
|
40
|
+
const response = yield this.client.get({
|
|
25
41
|
path: posEndpoints.check_out.GET_CHECK_OUT_INFO,
|
|
26
42
|
query: data
|
|
27
43
|
});
|
|
44
|
+
return Model.CheckOutInfoModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
28
45
|
});
|
|
29
46
|
}
|
|
30
47
|
static getCheckOutHistoryInfo(data) {
|
|
@@ -41,19 +58,23 @@ export default class CheckOut extends Base {
|
|
|
41
58
|
});
|
|
42
59
|
}
|
|
43
60
|
static getCheckOutBatchCloseSummary(data) {
|
|
61
|
+
var _a;
|
|
44
62
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
|
|
63
|
+
const response = yield this.client.get({
|
|
46
64
|
path: posEndpoints.check_out.GET_CHECKOUT_BATCH_CLOSE_SUMMARY,
|
|
47
65
|
query: data
|
|
48
66
|
});
|
|
67
|
+
return Model.CheckOutBatchCloseSummaryModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
49
68
|
});
|
|
50
69
|
}
|
|
51
70
|
static postCheckOutAddItem(data) {
|
|
71
|
+
var _a;
|
|
52
72
|
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
|
|
73
|
+
const response = yield this.client.post({
|
|
54
74
|
path: posEndpoints.check_out.POST_CHECKOUT_ADD_ITEM,
|
|
55
75
|
data: data
|
|
56
76
|
});
|
|
77
|
+
return Model.CheckOutInfoModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
57
78
|
});
|
|
58
79
|
}
|
|
59
80
|
static postCheckOutRemoveItem(data) {
|
|
@@ -185,11 +206,13 @@ export default class CheckOut extends Base {
|
|
|
185
206
|
});
|
|
186
207
|
}
|
|
187
208
|
static getCheckoutResendRating(data) {
|
|
209
|
+
var _a;
|
|
188
210
|
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
-
|
|
211
|
+
const response = yield this.client.get({
|
|
190
212
|
path: posEndpoints.check_out.GET_CHECKOUT_RESEND_RATING,
|
|
191
213
|
query: data
|
|
192
214
|
});
|
|
215
|
+
return Model.CheckoutResendRatingModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
193
216
|
});
|
|
194
217
|
}
|
|
195
218
|
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
|
}
|
|
@@ -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
|