gap-nodejs-sdk 1.0.127 → 1.0.129
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/api/appointment_api/1.0.0/api/settings.js +3 -3
- package/dist/api/base_api/1.0.0/api/auth.js +4 -4
- package/dist/api/go_check_in_api/1.0.0/api/category.js +6 -6
- package/dist/api/go_check_in_api/1.0.0/api/service.js +7 -7
- package/dist/api/go_check_in_api/1.0.0/api/settings.d.ts +1 -1
- package/dist/api/go_check_in_api/1.0.0/api/settings.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/api/settings.js +2 -2
- package/dist/api/go_check_in_api/1.0.0/api/staff.js +16 -16
- package/dist/api/go_check_in_api/1.0.0/api/ticket.js +14 -14
- package/dist/api/pos_client_api/1.0.0/api/batch_history.js +3 -3
- package/dist/api/pos_client_api/1.0.0/api/business.js +3 -3
- package/dist/api/pos_client_api/1.0.0/api/call.js +3 -3
- package/dist/api/pos_client_api/1.0.0/api/category.js +2 -2
- package/dist/api/pos_client_api/1.0.0/api/check_in.js +7 -7
- package/dist/api/pos_client_api/1.0.0/api/check_out.js +34 -34
- package/dist/api/pos_client_api/1.0.0/api/combo.js +7 -7
- package/dist/api/pos_client_api/1.0.0/api/commission.js +2 -2
- package/dist/api/pos_client_api/1.0.0/api/customer.js +5 -5
- package/dist/api/pos_client_api/1.0.0/api/gift_card.js +4 -4
- package/dist/api/pos_client_api/1.0.0/api/income.js +3 -3
- package/dist/api/pos_client_api/1.0.0/api/key_storage.js +2 -2
- package/dist/api/pos_client_api/1.0.0/api/order.js +19 -19
- package/dist/api/pos_client_api/1.0.0/api/payroll.js +17 -17
- package/dist/api/pos_client_api/1.0.0/api/printer.d.ts.map +1 -1
- package/dist/api/pos_client_api/1.0.0/api/product.js +6 -6
- package/dist/api/pos_client_api/1.0.0/api/service.js +3 -3
- package/dist/api/pos_client_api/1.0.0/api/setting.js +17 -17
- package/dist/api/pos_client_api/1.0.0/api/staff.js +4 -4
- package/dist/api/pos_client_api/1.0.0/api/ticket.js +14 -14
- package/dist/api/pos_client_api/1.0.0/api/time_keeping.js +8 -8
- package/dist/api/pos_client_api/1.0.0/api/user.js +2 -2
- package/dist/api/settings_api/1.0.0/api/check_in.js +2 -2
- package/dist/api/settings_api/1.0.0/api/checkout.js +2 -2
- package/dist/api/settings_api/1.0.0/api/key_storage.js +7 -7
- package/dist/api/user_api/1.0.0/api/auth.js +2 -2
- package/dist/gap-sdk.js +1 -1
- package/dist/http_client/types.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/package.json +1 -1
- package/dist/interfaces/invoke_event_interface.d.ts +0 -4
- package/dist/interfaces/invoke_event_interface.d.ts.map +0 -1
- package/dist/interfaces/invoke_event_interface.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { payroll } from "../endpoints";
|
|
3
3
|
import Base from "../../../../base/Base";
|
|
4
4
|
import FileDownload from "js-file-download";
|
|
5
5
|
import dayjs from "dayjs";
|
|
@@ -11,7 +11,7 @@ export default class Payroll extends Base {
|
|
|
11
11
|
var _a;
|
|
12
12
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13
13
|
const response = yield this.client.get({
|
|
14
|
-
path:
|
|
14
|
+
path: payroll.GET_PAYROLL_LIST,
|
|
15
15
|
query: data
|
|
16
16
|
});
|
|
17
17
|
return Model.PayrollModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -20,7 +20,7 @@ export default class Payroll extends Base {
|
|
|
20
20
|
// public static async getPayrollSetting(data: Request.GetPayrollSettingRequest): Promise<Response.GetPayrollSettingResponse> {
|
|
21
21
|
// const response = await this.client.get(
|
|
22
22
|
// {
|
|
23
|
-
// path:
|
|
23
|
+
// path: payroll.GET_PAYROLL_SETTING,
|
|
24
24
|
// query: data
|
|
25
25
|
// }
|
|
26
26
|
// );
|
|
@@ -29,7 +29,7 @@ export default class Payroll extends Base {
|
|
|
29
29
|
static approvePayroll(data) {
|
|
30
30
|
return __awaiter(this, void 0, void 0, function* () {
|
|
31
31
|
const response = yield this.client.post({
|
|
32
|
-
path:
|
|
32
|
+
path: payroll.APPROVE_PAYROLL,
|
|
33
33
|
data: data
|
|
34
34
|
});
|
|
35
35
|
return null;
|
|
@@ -38,7 +38,7 @@ export default class Payroll extends Base {
|
|
|
38
38
|
// public static async updatePayrollSetting(data: Request.UpdatePayrollSettingRequest): Promise<Response.UpdatePayrollSettingResponse> {
|
|
39
39
|
// const response = await this.client.post(
|
|
40
40
|
// {
|
|
41
|
-
// path:
|
|
41
|
+
// path: payroll.UPDATE_PAYROLL_SETTING,
|
|
42
42
|
// data: data
|
|
43
43
|
// }
|
|
44
44
|
// );
|
|
@@ -47,7 +47,7 @@ export default class Payroll extends Base {
|
|
|
47
47
|
// public static async getDiscountSetting(data: Request.GetDiscountSettingRequest): Promise<Response.GetDiscountSettingResponse> {
|
|
48
48
|
// const response = await this.client.get(
|
|
49
49
|
// {
|
|
50
|
-
// path:
|
|
50
|
+
// path: payroll.GET_DISCOUNT_SETTING,
|
|
51
51
|
// query: data
|
|
52
52
|
// }
|
|
53
53
|
// );
|
|
@@ -56,7 +56,7 @@ export default class Payroll extends Base {
|
|
|
56
56
|
// public static async updateDiscountSetting(data: Request.UpdateDiscountSettingRequest): Promise<Response.UpdateDiscountSettingResponse> {
|
|
57
57
|
// const response = await this.client.post(
|
|
58
58
|
// {
|
|
59
|
-
// path:
|
|
59
|
+
// path: payroll.UPDATE_DISCOUNT_SETTING,
|
|
60
60
|
// data: data
|
|
61
61
|
// }
|
|
62
62
|
// );
|
|
@@ -66,7 +66,7 @@ export default class Payroll extends Base {
|
|
|
66
66
|
var _a;
|
|
67
67
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
68
|
const response = yield this.client.get({
|
|
69
|
-
path:
|
|
69
|
+
path: payroll.GET_CASH_DISCOUNT_SETTING,
|
|
70
70
|
query: data
|
|
71
71
|
});
|
|
72
72
|
return Model.CashDisCountSettingModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -76,7 +76,7 @@ export default class Payroll extends Base {
|
|
|
76
76
|
var _a;
|
|
77
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
78
|
const response = yield this.client.post({
|
|
79
|
-
path:
|
|
79
|
+
path: payroll.UPDATE_CASH_DISCOUNT_SETTING,
|
|
80
80
|
data: data
|
|
81
81
|
});
|
|
82
82
|
return Model.CashDisCountSettingModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -86,7 +86,7 @@ export default class Payroll extends Base {
|
|
|
86
86
|
var _a;
|
|
87
87
|
return __awaiter(this, void 0, void 0, function* () {
|
|
88
88
|
const response = yield this.client.get({
|
|
89
|
-
path:
|
|
89
|
+
path: payroll.GET_INCOME_DETAIL,
|
|
90
90
|
query: data
|
|
91
91
|
});
|
|
92
92
|
return Model.IncomeModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -96,7 +96,7 @@ export default class Payroll extends Base {
|
|
|
96
96
|
var _a;
|
|
97
97
|
return __awaiter(this, void 0, void 0, function* () {
|
|
98
98
|
const response = yield this.client.get({
|
|
99
|
-
path:
|
|
99
|
+
path: payroll.GET_APPROVE_PAYROLL,
|
|
100
100
|
query: data
|
|
101
101
|
});
|
|
102
102
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.ApprovePayrollModel(item));
|
|
@@ -105,7 +105,7 @@ export default class Payroll extends Base {
|
|
|
105
105
|
static exportPayroll(data) {
|
|
106
106
|
return __awaiter(this, void 0, void 0, function* () {
|
|
107
107
|
const response = yield this.client.get({
|
|
108
|
-
path:
|
|
108
|
+
path: payroll.EXPORT_PAYROLL,
|
|
109
109
|
query: data
|
|
110
110
|
});
|
|
111
111
|
const exportDateFormat = formatExportDateString();
|
|
@@ -116,7 +116,7 @@ export default class Payroll extends Base {
|
|
|
116
116
|
static exportApprovePayroll(data) {
|
|
117
117
|
return __awaiter(this, void 0, void 0, function* () {
|
|
118
118
|
const response = yield this.client.get({
|
|
119
|
-
path:
|
|
119
|
+
path: payroll.EXPORT_APPROVE_PAYROLL,
|
|
120
120
|
query: data
|
|
121
121
|
});
|
|
122
122
|
const exportDateFormat = formatExportDateString();
|
|
@@ -127,7 +127,7 @@ export default class Payroll extends Base {
|
|
|
127
127
|
static exportIncomeDetail(data) {
|
|
128
128
|
return __awaiter(this, void 0, void 0, function* () {
|
|
129
129
|
const response = yield this.client.get({
|
|
130
|
-
path:
|
|
130
|
+
path: payroll.EXPORT_INCOME_DETAIL,
|
|
131
131
|
query: data
|
|
132
132
|
});
|
|
133
133
|
const exportDateFormat = formatExportDateString();
|
|
@@ -139,7 +139,7 @@ export default class Payroll extends Base {
|
|
|
139
139
|
var _a;
|
|
140
140
|
return __awaiter(this, void 0, void 0, function* () {
|
|
141
141
|
const response = yield this.client.get({
|
|
142
|
-
path:
|
|
142
|
+
path: payroll.GET_SALARY_CHART,
|
|
143
143
|
query: data
|
|
144
144
|
});
|
|
145
145
|
return Model.SalaryChartModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -149,7 +149,7 @@ export default class Payroll extends Base {
|
|
|
149
149
|
var _a;
|
|
150
150
|
return __awaiter(this, void 0, void 0, function* () {
|
|
151
151
|
const response = yield this.client.get({
|
|
152
|
-
path:
|
|
152
|
+
path: payroll.GET_APP_LIST_PAYROLL,
|
|
153
153
|
query: data
|
|
154
154
|
});
|
|
155
155
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.AppListPayrollModel(item));
|
|
@@ -159,7 +159,7 @@ export default class Payroll extends Base {
|
|
|
159
159
|
var _a;
|
|
160
160
|
return __awaiter(this, void 0, void 0, function* () {
|
|
161
161
|
const response = yield this.client.get({
|
|
162
|
-
path:
|
|
162
|
+
path: payroll.GET_PAYROLL_DETAIL,
|
|
163
163
|
query: data
|
|
164
164
|
});
|
|
165
165
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.PayrollDetailModel(item));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"printer.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/api/printer.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,MAAM,uBAAuB,CAAC;AACzD,OAAO,IAAI,MAAM,uBAAuB,CAAC;AACzC,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"printer.d.ts","sourceRoot":"","sources":["../../../../../src/api/pos_client_api/1.0.0/api/printer.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,MAAM,uBAAuB,CAAC;AACzD,OAAO,IAAI,MAAM,uBAAuB,CAAC;AACzC,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,IAAK,YAAW,oBAAoB;IACrE,OAAc,WAAW,gBAAoB;WAEzB,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,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { product } from "../endpoints";
|
|
3
3
|
import Base from "../../../../base/Base";
|
|
4
4
|
import { GapApiVersion } from "../../../../base_type";
|
|
5
5
|
import * as Model from "../models";
|
|
@@ -9,7 +9,7 @@ export default class Product extends Base {
|
|
|
9
9
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10
10
|
const formData = objectToFormData(data);
|
|
11
11
|
yield this.client.post({
|
|
12
|
-
path:
|
|
12
|
+
path: product.SORT_POS_LIST_PRODUCT,
|
|
13
13
|
data: formData
|
|
14
14
|
});
|
|
15
15
|
return null;
|
|
@@ -19,7 +19,7 @@ export default class Product extends Base {
|
|
|
19
19
|
var _a;
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
21
|
const response = yield this.client.get({
|
|
22
|
-
path:
|
|
22
|
+
path: product.GET_POS_LIST_PRODUCT,
|
|
23
23
|
query: data
|
|
24
24
|
});
|
|
25
25
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.PosProductModel(item));
|
|
@@ -30,7 +30,7 @@ export default class Product extends Base {
|
|
|
30
30
|
return __awaiter(this, void 0, void 0, function* () {
|
|
31
31
|
const formData = objectToFormData(data);
|
|
32
32
|
const response = yield this.client.post({
|
|
33
|
-
path:
|
|
33
|
+
path: product.CREATE_POS_PRODUCT,
|
|
34
34
|
data: formData
|
|
35
35
|
});
|
|
36
36
|
return Model.PosProductModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -41,7 +41,7 @@ export default class Product extends Base {
|
|
|
41
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
42
|
const formData = objectToFormData(data);
|
|
43
43
|
const response = yield this.client.post({
|
|
44
|
-
path:
|
|
44
|
+
path: product.UPDATE_POS_PRODUCT,
|
|
45
45
|
data: formData
|
|
46
46
|
});
|
|
47
47
|
return Model.PosProductModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -50,7 +50,7 @@ export default class Product extends Base {
|
|
|
50
50
|
static deletePosProduct(data) {
|
|
51
51
|
return __awaiter(this, void 0, void 0, function* () {
|
|
52
52
|
yield this.client.get({
|
|
53
|
-
path:
|
|
53
|
+
path: product.DELETE_POS_PRODUCT,
|
|
54
54
|
query: data
|
|
55
55
|
});
|
|
56
56
|
return null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { service } from "../endpoints";
|
|
3
3
|
import Base from "../../../../base/Base";
|
|
4
4
|
import { GapApiVersion } from "../../../../base_type";
|
|
5
5
|
import * as Model from "../models";
|
|
@@ -9,7 +9,7 @@ export default class Service extends Base {
|
|
|
9
9
|
var _a;
|
|
10
10
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const response = yield this.client.get({
|
|
12
|
-
path:
|
|
12
|
+
path: service.GET_SERVICE_LIST,
|
|
13
13
|
query: data
|
|
14
14
|
});
|
|
15
15
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.ServiceModel(item));
|
|
@@ -19,7 +19,7 @@ export default class Service extends Base {
|
|
|
19
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
20
|
const formData = objectToFormData(data);
|
|
21
21
|
const response = yield this.client.post({
|
|
22
|
-
path:
|
|
22
|
+
path: service.UPLOAD_FILE,
|
|
23
23
|
data: formData
|
|
24
24
|
});
|
|
25
25
|
return (response || []).map(item => Model.UploadFileModel(item));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { setting } from "../endpoints";
|
|
3
3
|
import Base from "../../../../base/Base";
|
|
4
4
|
import { GapApiVersion } from "../../../../base_type";
|
|
5
5
|
import * as Model from "../models";
|
|
@@ -9,7 +9,7 @@ export default class Setting extends Base {
|
|
|
9
9
|
var _a;
|
|
10
10
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const response = yield this.client.get({
|
|
12
|
-
path:
|
|
12
|
+
path: setting.GET_PAYROLL_SETTING,
|
|
13
13
|
query: data
|
|
14
14
|
});
|
|
15
15
|
return Model.PayrollSettingModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -19,7 +19,7 @@ export default class Setting extends Base {
|
|
|
19
19
|
var _a;
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
21
|
const response = yield this.client.post({
|
|
22
|
-
path:
|
|
22
|
+
path: setting.UPDATE_PAYROLL_SETTING,
|
|
23
23
|
data: data
|
|
24
24
|
});
|
|
25
25
|
return Model.PayrollSettingModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -29,7 +29,7 @@ export default class Setting extends Base {
|
|
|
29
29
|
var _a;
|
|
30
30
|
return __awaiter(this, void 0, void 0, function* () {
|
|
31
31
|
const response = yield this.client.get({
|
|
32
|
-
path:
|
|
32
|
+
path: setting.GET_DISCOUNT_SETTING,
|
|
33
33
|
query: data
|
|
34
34
|
});
|
|
35
35
|
return Model.DiscountSettingModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -39,7 +39,7 @@ export default class Setting extends Base {
|
|
|
39
39
|
var _a;
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
41
|
const response = yield this.client.post({
|
|
42
|
-
path:
|
|
42
|
+
path: setting.UPDATE_DISCOUNT_SETTING,
|
|
43
43
|
data: data
|
|
44
44
|
});
|
|
45
45
|
return Model.DiscountSettingModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -49,7 +49,7 @@ export default class Setting extends Base {
|
|
|
49
49
|
var _a;
|
|
50
50
|
return __awaiter(this, void 0, void 0, function* () {
|
|
51
51
|
const response = yield this.client.get({
|
|
52
|
-
path:
|
|
52
|
+
path: setting.GET_TAX_SETTING,
|
|
53
53
|
query: data
|
|
54
54
|
});
|
|
55
55
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.TaxSettingModel(item));
|
|
@@ -58,7 +58,7 @@ export default class Setting extends Base {
|
|
|
58
58
|
static updateTaxSetting(data) {
|
|
59
59
|
return __awaiter(this, void 0, void 0, function* () {
|
|
60
60
|
const response = yield this.client.post({
|
|
61
|
-
path:
|
|
61
|
+
path: setting.UPDATE_TAX_SETTING,
|
|
62
62
|
data: data
|
|
63
63
|
});
|
|
64
64
|
return null;
|
|
@@ -68,7 +68,7 @@ export default class Setting extends Base {
|
|
|
68
68
|
var _a;
|
|
69
69
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
70
|
const response = yield this.client.get({
|
|
71
|
-
path:
|
|
71
|
+
path: setting.GET_TURN_VALUE,
|
|
72
72
|
query: data
|
|
73
73
|
});
|
|
74
74
|
return Model.TurnValueModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -78,7 +78,7 @@ export default class Setting extends Base {
|
|
|
78
78
|
var _a;
|
|
79
79
|
return __awaiter(this, void 0, void 0, function* () {
|
|
80
80
|
const response = yield this.client.post({
|
|
81
|
-
path:
|
|
81
|
+
path: setting.UPDATE_TURN_VALUE,
|
|
82
82
|
data: data
|
|
83
83
|
});
|
|
84
84
|
return Model.TurnValueModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -88,7 +88,7 @@ export default class Setting extends Base {
|
|
|
88
88
|
var _a;
|
|
89
89
|
return __awaiter(this, void 0, void 0, function* () {
|
|
90
90
|
const response = yield this.client.get({
|
|
91
|
-
path:
|
|
91
|
+
path: setting.GET_TIP,
|
|
92
92
|
query: data
|
|
93
93
|
});
|
|
94
94
|
return Model.TipModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -98,7 +98,7 @@ export default class Setting extends Base {
|
|
|
98
98
|
var _a;
|
|
99
99
|
return __awaiter(this, void 0, void 0, function* () {
|
|
100
100
|
const response = yield this.client.post({
|
|
101
|
-
path:
|
|
101
|
+
path: setting.UPDATE_TIP,
|
|
102
102
|
data: data
|
|
103
103
|
});
|
|
104
104
|
return Model.UpdateTipModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -108,7 +108,7 @@ export default class Setting extends Base {
|
|
|
108
108
|
var _a;
|
|
109
109
|
return __awaiter(this, void 0, void 0, function* () {
|
|
110
110
|
const response = yield this.client.get({
|
|
111
|
-
path:
|
|
111
|
+
path: setting.GET_LIST_ANSWER,
|
|
112
112
|
query: data
|
|
113
113
|
});
|
|
114
114
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.GetListAnswerModel(item));
|
|
@@ -118,7 +118,7 @@ export default class Setting extends Base {
|
|
|
118
118
|
var _a;
|
|
119
119
|
return __awaiter(this, void 0, void 0, function* () {
|
|
120
120
|
const response = yield this.client.post({
|
|
121
|
-
path:
|
|
121
|
+
path: setting.CREATE_ANSWER,
|
|
122
122
|
data: data
|
|
123
123
|
});
|
|
124
124
|
return Model.CreateAnswerModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -128,7 +128,7 @@ export default class Setting extends Base {
|
|
|
128
128
|
var _a;
|
|
129
129
|
return __awaiter(this, void 0, void 0, function* () {
|
|
130
130
|
const response = yield this.client.post({
|
|
131
|
-
path:
|
|
131
|
+
path: setting.UPDATE_ANSWER,
|
|
132
132
|
data: data
|
|
133
133
|
});
|
|
134
134
|
return UpdateAnswerModal((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -138,7 +138,7 @@ export default class Setting extends Base {
|
|
|
138
138
|
var _a;
|
|
139
139
|
return __awaiter(this, void 0, void 0, function* () {
|
|
140
140
|
const response = yield this.client.post({
|
|
141
|
-
path:
|
|
141
|
+
path: setting.CHANGE_ANSWER_STATUS,
|
|
142
142
|
data: data
|
|
143
143
|
});
|
|
144
144
|
return ChangeAnswerStatusModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -148,7 +148,7 @@ export default class Setting extends Base {
|
|
|
148
148
|
var _a;
|
|
149
149
|
return __awaiter(this, void 0, void 0, function* () {
|
|
150
150
|
const response = yield this.client.get({
|
|
151
|
-
path:
|
|
151
|
+
path: setting.CHANGE_ANSWER_STATUS,
|
|
152
152
|
query: data
|
|
153
153
|
});
|
|
154
154
|
return ChangeAnswerStatusModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -158,7 +158,7 @@ export default class Setting extends Base {
|
|
|
158
158
|
var _a;
|
|
159
159
|
return __awaiter(this, void 0, void 0, function* () {
|
|
160
160
|
const response = yield this.client.post({
|
|
161
|
-
path:
|
|
161
|
+
path: setting.CHANGE_ANSWER_STATUS,
|
|
162
162
|
data: data
|
|
163
163
|
});
|
|
164
164
|
return ChangeAnswerStatusModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { staff } from "../endpoints";
|
|
3
3
|
import Base from "../../../../base/Base";
|
|
4
4
|
import { GapApiVersion } from "../../../../base_type";
|
|
5
5
|
import * as Model from "../models";
|
|
@@ -8,7 +8,7 @@ export default class Staff extends Base {
|
|
|
8
8
|
var _a;
|
|
9
9
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10
10
|
const response = yield this.client.get({
|
|
11
|
-
path:
|
|
11
|
+
path: staff.GET_STAFF_LIST,
|
|
12
12
|
query: data
|
|
13
13
|
});
|
|
14
14
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.StaffModel(item));
|
|
@@ -18,7 +18,7 @@ export default class Staff extends Base {
|
|
|
18
18
|
var _a;
|
|
19
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
20
|
const response = yield this.client.get({
|
|
21
|
-
path:
|
|
21
|
+
path: staff.GET_STAFF_LIST_BY_CHECKOUT,
|
|
22
22
|
query: data
|
|
23
23
|
});
|
|
24
24
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.StaffByCheckoutModel(item));
|
|
@@ -28,7 +28,7 @@ export default class Staff extends Base {
|
|
|
28
28
|
var _a;
|
|
29
29
|
return __awaiter(this, void 0, void 0, function* () {
|
|
30
30
|
const response = yield this.client.get({
|
|
31
|
-
path:
|
|
31
|
+
path: staff.GET_STAFF_TURN_CHART,
|
|
32
32
|
query: data
|
|
33
33
|
});
|
|
34
34
|
return Model.StaffTurnChartModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { ticket } from "../endpoints";
|
|
3
3
|
import Base from "../../../../base/Base";
|
|
4
4
|
import { GapApiVersion } from "../../../../base_type";
|
|
5
5
|
import * as Model from "../models";
|
|
@@ -8,7 +8,7 @@ export default class Ticket extends Base {
|
|
|
8
8
|
var _a, _b;
|
|
9
9
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10
10
|
const response = yield this.client.get({
|
|
11
|
-
path:
|
|
11
|
+
path: ticket.GET_TICKET_TEMPLATE,
|
|
12
12
|
query: data
|
|
13
13
|
});
|
|
14
14
|
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.PosTicketModel(item));
|
|
@@ -18,7 +18,7 @@ export default class Ticket extends Base {
|
|
|
18
18
|
var _a;
|
|
19
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
20
|
const response = yield this.client.get({
|
|
21
|
-
path:
|
|
21
|
+
path: ticket.GET_TICKET_INFO,
|
|
22
22
|
query: data
|
|
23
23
|
});
|
|
24
24
|
return Model.PosTicketInfoModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -28,7 +28,7 @@ export default class Ticket extends Base {
|
|
|
28
28
|
var _a;
|
|
29
29
|
return __awaiter(this, void 0, void 0, function* () {
|
|
30
30
|
const response = yield this.client.get({
|
|
31
|
-
path:
|
|
31
|
+
path: ticket.GET_TICKET_LIST,
|
|
32
32
|
query: data
|
|
33
33
|
});
|
|
34
34
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.PosTicketModel(item));
|
|
@@ -38,7 +38,7 @@ export default class Ticket extends Base {
|
|
|
38
38
|
var _a;
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
const response = yield this.client.get({
|
|
41
|
-
path:
|
|
41
|
+
path: ticket.GET_TICKET_LIST_BLOCK_NAME,
|
|
42
42
|
query: data
|
|
43
43
|
});
|
|
44
44
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.PosTicketBlockNameModel(item));
|
|
@@ -48,7 +48,7 @@ export default class Ticket extends Base {
|
|
|
48
48
|
var _a;
|
|
49
49
|
return __awaiter(this, void 0, void 0, function* () {
|
|
50
50
|
const response = yield this.client.post({
|
|
51
|
-
path:
|
|
51
|
+
path: ticket.CREATE_TICKET_TEMPLATE,
|
|
52
52
|
data: data
|
|
53
53
|
});
|
|
54
54
|
return Model.PosTicketModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -57,7 +57,7 @@ export default class Ticket extends Base {
|
|
|
57
57
|
static deletePosTicketTemplate(data) {
|
|
58
58
|
return __awaiter(this, void 0, void 0, function* () {
|
|
59
59
|
const response = yield this.client.get({
|
|
60
|
-
path:
|
|
60
|
+
path: ticket.DELETE_TICKET_TEMPLATE,
|
|
61
61
|
query: data
|
|
62
62
|
});
|
|
63
63
|
return null;
|
|
@@ -67,7 +67,7 @@ export default class Ticket extends Base {
|
|
|
67
67
|
var _a;
|
|
68
68
|
return __awaiter(this, void 0, void 0, function* () {
|
|
69
69
|
const response = yield this.client.post({
|
|
70
|
-
path:
|
|
70
|
+
path: ticket.UPDATE_TICKET_TEMPLATE,
|
|
71
71
|
query: data,
|
|
72
72
|
data: data,
|
|
73
73
|
});
|
|
@@ -76,8 +76,8 @@ export default class Ticket extends Base {
|
|
|
76
76
|
}
|
|
77
77
|
static movePosSubject(data) {
|
|
78
78
|
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
-
|
|
80
|
-
path:
|
|
79
|
+
yield this.client.post({
|
|
80
|
+
path: ticket.MOVE_SUBJECT,
|
|
81
81
|
data: data
|
|
82
82
|
});
|
|
83
83
|
return null;
|
|
@@ -85,8 +85,8 @@ export default class Ticket extends Base {
|
|
|
85
85
|
}
|
|
86
86
|
static setPosDefaultTicketTemplate(data) {
|
|
87
87
|
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
-
|
|
89
|
-
path:
|
|
88
|
+
yield this.client.post({
|
|
89
|
+
path: ticket.SET_DEFAULT_TICKET_TEMPLATE,
|
|
90
90
|
data: data
|
|
91
91
|
});
|
|
92
92
|
return null;
|
|
@@ -94,8 +94,8 @@ export default class Ticket extends Base {
|
|
|
94
94
|
}
|
|
95
95
|
static sortPosPriority(data) {
|
|
96
96
|
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
-
|
|
98
|
-
path:
|
|
97
|
+
yield this.client.post({
|
|
98
|
+
path: ticket.SORT_PRIORITY,
|
|
99
99
|
data: data
|
|
100
100
|
});
|
|
101
101
|
return null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { time_keeping } from "../endpoints";
|
|
3
3
|
import Base from "../../../../base/Base";
|
|
4
4
|
import { GapApiVersion } from "../../../../base_type";
|
|
5
5
|
import * as Model from "../models";
|
|
@@ -8,7 +8,7 @@ export default class TimeKeeping extends Base {
|
|
|
8
8
|
static getTimeKeepingList(data) {
|
|
9
9
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10
10
|
const response = yield this.client.get({
|
|
11
|
-
path:
|
|
11
|
+
path: time_keeping.GET_TIME_KEEPING_LIST,
|
|
12
12
|
query: data
|
|
13
13
|
});
|
|
14
14
|
return DataWithMetaModel(response, Model.TimeKeepingListModel);
|
|
@@ -17,7 +17,7 @@ export default class TimeKeeping extends Base {
|
|
|
17
17
|
static addTimeKeeping(data) {
|
|
18
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19
19
|
yield this.client.post({
|
|
20
|
-
path:
|
|
20
|
+
path: time_keeping.ADD_TIME_KEEPING,
|
|
21
21
|
data: data
|
|
22
22
|
});
|
|
23
23
|
return null;
|
|
@@ -26,7 +26,7 @@ export default class TimeKeeping extends Base {
|
|
|
26
26
|
static updateTimeKeeping(data) {
|
|
27
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
28
|
yield this.client.post({
|
|
29
|
-
path:
|
|
29
|
+
path: time_keeping.UPDATE_TIME_KEEPING,
|
|
30
30
|
data: data
|
|
31
31
|
});
|
|
32
32
|
return null;
|
|
@@ -35,7 +35,7 @@ export default class TimeKeeping extends Base {
|
|
|
35
35
|
static removeTimeKeeping(data) {
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
37
|
yield this.client.post({
|
|
38
|
-
path:
|
|
38
|
+
path: time_keeping.REMOVE_TIME_KEEPING,
|
|
39
39
|
data: data
|
|
40
40
|
});
|
|
41
41
|
return null;
|
|
@@ -45,7 +45,7 @@ export default class TimeKeeping extends Base {
|
|
|
45
45
|
var _a;
|
|
46
46
|
return __awaiter(this, void 0, void 0, function* () {
|
|
47
47
|
const response = yield this.client.get({
|
|
48
|
-
path:
|
|
48
|
+
path: time_keeping.GET_TIME_KEEPING_LIST_STAFF,
|
|
49
49
|
query: data
|
|
50
50
|
});
|
|
51
51
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.TimeKeepingListStaffModel(item));
|
|
@@ -54,7 +54,7 @@ export default class TimeKeeping extends Base {
|
|
|
54
54
|
static postTimeKeepingCheckIn(data) {
|
|
55
55
|
return __awaiter(this, void 0, void 0, function* () {
|
|
56
56
|
yield this.client.post({
|
|
57
|
-
path:
|
|
57
|
+
path: time_keeping.POST_TIME_KEEPING_CHECK_IN,
|
|
58
58
|
data: data
|
|
59
59
|
});
|
|
60
60
|
return null;
|
|
@@ -63,7 +63,7 @@ export default class TimeKeeping extends Base {
|
|
|
63
63
|
static postTimeKeepingCheckOut(data) {
|
|
64
64
|
return __awaiter(this, void 0, void 0, function* () {
|
|
65
65
|
this.client.post({
|
|
66
|
-
path:
|
|
66
|
+
path: time_keeping.POST_TIME_KEEPING_CHECK_OUT,
|
|
67
67
|
data: data
|
|
68
68
|
});
|
|
69
69
|
return null;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { user } from "../endpoints";
|
|
3
3
|
import Base from "../../../../base/Base";
|
|
4
4
|
import { GapApiVersion } from "../../../../base_type";
|
|
5
5
|
export default class User extends Base {
|
|
6
6
|
static postLogin(data) {
|
|
7
7
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8
8
|
return yield this.client.post({
|
|
9
|
-
path:
|
|
9
|
+
path: user.POST_LOGIN_API,
|
|
10
10
|
data: data
|
|
11
11
|
});
|
|
12
12
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { checkIn } from "../endpoints";
|
|
3
3
|
import Base from "../../../../base/Base";
|
|
4
4
|
import { GapApiVersion } from "../../../../base_type";
|
|
5
5
|
import * as Model from "../models";
|
|
@@ -8,7 +8,7 @@ export default class CheckIn extends Base {
|
|
|
8
8
|
var _a;
|
|
9
9
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10
10
|
const response = yield this.client.get({
|
|
11
|
-
path:
|
|
11
|
+
path: checkIn.GET_CHECK_IN_CONFIG,
|
|
12
12
|
query: data
|
|
13
13
|
});
|
|
14
14
|
return Model.CheckInConfigModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { checkout } from "../endpoints";
|
|
3
3
|
import Base from "../../../../base/Base";
|
|
4
4
|
import { GapApiVersion } from "../../../../base_type";
|
|
5
5
|
import * as Model from "../models";
|
|
@@ -8,7 +8,7 @@ export default class Checkout extends Base {
|
|
|
8
8
|
var _a;
|
|
9
9
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10
10
|
const response = yield this.client.get({
|
|
11
|
-
path:
|
|
11
|
+
path: checkout.GET_CHECKOUT_CONFIG,
|
|
12
12
|
query: data
|
|
13
13
|
});
|
|
14
14
|
return Model.CheckoutConfigModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|