gap-nodejs-sdk 1.0.128 → 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 { check_out } 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 CheckOut extends Base {
|
|
|
9
9
|
var _a;
|
|
10
10
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const response = yield this.client.post({
|
|
12
|
-
path:
|
|
12
|
+
path: check_out.POST_UPDATE_IN_SERVICE,
|
|
13
13
|
data: data
|
|
14
14
|
});
|
|
15
15
|
return Model.UpdateInServiceModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -18,7 +18,7 @@ export default class CheckOut extends Base {
|
|
|
18
18
|
static getItemList(data) {
|
|
19
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
20
|
return yield this.client.get({
|
|
21
|
-
path:
|
|
21
|
+
path: check_out.GET_ITEM_LIST,
|
|
22
22
|
query: data
|
|
23
23
|
});
|
|
24
24
|
});
|
|
@@ -26,7 +26,7 @@ export default class CheckOut extends Base {
|
|
|
26
26
|
static getCheckOutHistoryList(data) {
|
|
27
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
28
|
const response = yield this.client.get({
|
|
29
|
-
path:
|
|
29
|
+
path: check_out.GET_CHECK_OUT_HISTORY_LIST,
|
|
30
30
|
query: data
|
|
31
31
|
});
|
|
32
32
|
return DataWithMetaModel(response, Model.CheckOutInfoModel);
|
|
@@ -36,7 +36,7 @@ export default class CheckOut extends Base {
|
|
|
36
36
|
var _a;
|
|
37
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
38
|
const response = yield this.client.get({
|
|
39
|
-
path:
|
|
39
|
+
path: check_out.GET_CHECK_OUT_INFO,
|
|
40
40
|
query: data
|
|
41
41
|
});
|
|
42
42
|
return Model.CheckOutInfoModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -45,7 +45,7 @@ export default class CheckOut extends Base {
|
|
|
45
45
|
static getCheckOutHistoryInfo(data) {
|
|
46
46
|
return __awaiter(this, void 0, void 0, function* () {
|
|
47
47
|
const response = yield this.client.get({
|
|
48
|
-
path:
|
|
48
|
+
path: check_out.GET_CHECKOUT_HISTORY_INFO,
|
|
49
49
|
query: data
|
|
50
50
|
});
|
|
51
51
|
return DataWithMetaModel(response, Model.CheckOutHistoryInfoModel);
|
|
@@ -55,7 +55,7 @@ export default class CheckOut extends Base {
|
|
|
55
55
|
var _a;
|
|
56
56
|
return __awaiter(this, void 0, void 0, function* () {
|
|
57
57
|
const response = yield this.client.get({
|
|
58
|
-
path:
|
|
58
|
+
path: check_out.GET_CHECKOUT_BATCH_CLOSE_SUMMARY,
|
|
59
59
|
query: data
|
|
60
60
|
});
|
|
61
61
|
return Model.CheckOutBatchCloseSummaryModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -65,7 +65,7 @@ export default class CheckOut extends Base {
|
|
|
65
65
|
var _a;
|
|
66
66
|
return __awaiter(this, void 0, void 0, function* () {
|
|
67
67
|
const response = yield this.client.post({
|
|
68
|
-
path:
|
|
68
|
+
path: check_out.POST_CHECKOUT_ADD_ITEM,
|
|
69
69
|
data: data
|
|
70
70
|
});
|
|
71
71
|
return Model.CheckOutInfoModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -74,7 +74,7 @@ export default class CheckOut extends Base {
|
|
|
74
74
|
static postCheckOutRemoveItem(data) {
|
|
75
75
|
return __awaiter(this, void 0, void 0, function* () {
|
|
76
76
|
return yield this.client.post({
|
|
77
|
-
path:
|
|
77
|
+
path: check_out.POST_CHECKOUT_REMOVE_ITEM,
|
|
78
78
|
data: data
|
|
79
79
|
});
|
|
80
80
|
});
|
|
@@ -82,7 +82,7 @@ export default class CheckOut extends Base {
|
|
|
82
82
|
static postCheckOutSubmitOrder(data) {
|
|
83
83
|
return __awaiter(this, void 0, void 0, function* () {
|
|
84
84
|
return yield this.client.post({
|
|
85
|
-
path:
|
|
85
|
+
path: check_out.POST_CHECKOUT_SUBMIT_ORDER,
|
|
86
86
|
data: data
|
|
87
87
|
});
|
|
88
88
|
});
|
|
@@ -91,7 +91,7 @@ export default class CheckOut extends Base {
|
|
|
91
91
|
var _a;
|
|
92
92
|
return __awaiter(this, void 0, void 0, function* () {
|
|
93
93
|
const response = yield this.client.post({
|
|
94
|
-
path:
|
|
94
|
+
path: check_out.POST_CHECKOUT_UPDATE_STATUS,
|
|
95
95
|
data: data
|
|
96
96
|
});
|
|
97
97
|
return Model.CheckOutInfoModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -100,7 +100,7 @@ export default class CheckOut extends Base {
|
|
|
100
100
|
static postCheckOutUpdateOrderWithCreditCardPayment(data) {
|
|
101
101
|
return __awaiter(this, void 0, void 0, function* () {
|
|
102
102
|
return yield this.client.post({
|
|
103
|
-
path:
|
|
103
|
+
path: check_out.POST_CHECKOUT_UPDATE_ORDER_WITH_CREDIT_CARD_PAYMENT,
|
|
104
104
|
data: data
|
|
105
105
|
});
|
|
106
106
|
});
|
|
@@ -108,7 +108,7 @@ export default class CheckOut extends Base {
|
|
|
108
108
|
static postCheckOutDoAuth(data) {
|
|
109
109
|
return __awaiter(this, void 0, void 0, function* () {
|
|
110
110
|
return yield this.client.post({
|
|
111
|
-
path:
|
|
111
|
+
path: check_out.POST_CHECKOUT_DO_AUTH,
|
|
112
112
|
data: data
|
|
113
113
|
});
|
|
114
114
|
});
|
|
@@ -116,7 +116,7 @@ export default class CheckOut extends Base {
|
|
|
116
116
|
static postCheckOutVoidPayment(data) {
|
|
117
117
|
return __awaiter(this, void 0, void 0, function* () {
|
|
118
118
|
return yield this.client.post({
|
|
119
|
-
path:
|
|
119
|
+
path: check_out.POST_CHECKOUT_VOID_PAYMENT,
|
|
120
120
|
data: data
|
|
121
121
|
});
|
|
122
122
|
});
|
|
@@ -124,7 +124,7 @@ export default class CheckOut extends Base {
|
|
|
124
124
|
static postCheckOutRefundPayment(data) {
|
|
125
125
|
return __awaiter(this, void 0, void 0, function* () {
|
|
126
126
|
return yield this.client.post({
|
|
127
|
-
path:
|
|
127
|
+
path: check_out.POST_CHECKOUT_REFUND_PAYMENT,
|
|
128
128
|
data: data
|
|
129
129
|
});
|
|
130
130
|
});
|
|
@@ -132,7 +132,7 @@ export default class CheckOut extends Base {
|
|
|
132
132
|
static postCheckOutAdjustTipPayment(data) {
|
|
133
133
|
return __awaiter(this, void 0, void 0, function* () {
|
|
134
134
|
return yield this.client.post({
|
|
135
|
-
path:
|
|
135
|
+
path: check_out.POST_CHECKOUT_ADJUST_TIP_PAYMENT,
|
|
136
136
|
data: data
|
|
137
137
|
});
|
|
138
138
|
});
|
|
@@ -140,7 +140,7 @@ export default class CheckOut extends Base {
|
|
|
140
140
|
static postCheckOutCloseOut(data) {
|
|
141
141
|
return __awaiter(this, void 0, void 0, function* () {
|
|
142
142
|
return yield this.client.post({
|
|
143
|
-
path:
|
|
143
|
+
path: check_out.POST_CHECKOUT_CLOSE_OUT,
|
|
144
144
|
data: data
|
|
145
145
|
});
|
|
146
146
|
});
|
|
@@ -149,7 +149,7 @@ export default class CheckOut extends Base {
|
|
|
149
149
|
var _a;
|
|
150
150
|
return __awaiter(this, void 0, void 0, function* () {
|
|
151
151
|
const response = yield this.client.post({
|
|
152
|
-
path:
|
|
152
|
+
path: check_out.POST_CHECKOUT_UPDATE_IS_WAITING,
|
|
153
153
|
data: data
|
|
154
154
|
});
|
|
155
155
|
return Model.CheckOutInfoModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -159,7 +159,7 @@ export default class CheckOut extends Base {
|
|
|
159
159
|
var _a;
|
|
160
160
|
return __awaiter(this, void 0, void 0, function* () {
|
|
161
161
|
const response = yield this.client.post({
|
|
162
|
-
path:
|
|
162
|
+
path: check_out.POST_CHECKOUT_DISCOUNT_PROMOTION,
|
|
163
163
|
data: data
|
|
164
164
|
});
|
|
165
165
|
return Model.CheckOutInfoModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -169,7 +169,7 @@ export default class CheckOut extends Base {
|
|
|
169
169
|
var _a;
|
|
170
170
|
return __awaiter(this, void 0, void 0, function* () {
|
|
171
171
|
const response = yield this.client.post({
|
|
172
|
-
path:
|
|
172
|
+
path: check_out.POST_CHECKOUT_DISCOUNT_REDEEM,
|
|
173
173
|
data: data
|
|
174
174
|
});
|
|
175
175
|
return Model.CheckOutInfoModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -178,7 +178,7 @@ export default class CheckOut extends Base {
|
|
|
178
178
|
static postCheckOutUpdateTipData(data) {
|
|
179
179
|
return __awaiter(this, void 0, void 0, function* () {
|
|
180
180
|
return yield this.client.post({
|
|
181
|
-
path:
|
|
181
|
+
path: check_out.POST_CHECKOUT_UPDATE_TIP_DATA,
|
|
182
182
|
data: data
|
|
183
183
|
});
|
|
184
184
|
});
|
|
@@ -186,7 +186,7 @@ export default class CheckOut extends Base {
|
|
|
186
186
|
static postCheckOutItemAdjustPrice(data) {
|
|
187
187
|
return __awaiter(this, void 0, void 0, function* () {
|
|
188
188
|
return yield this.client.post({
|
|
189
|
-
path:
|
|
189
|
+
path: check_out.POST_CHECKOUT_ITEM_ADJUST_PRICE,
|
|
190
190
|
data: data
|
|
191
191
|
});
|
|
192
192
|
});
|
|
@@ -195,7 +195,7 @@ export default class CheckOut extends Base {
|
|
|
195
195
|
var _a;
|
|
196
196
|
return __awaiter(this, void 0, void 0, function* () {
|
|
197
197
|
const response = yield this.client.post({
|
|
198
|
-
path:
|
|
198
|
+
path: check_out.POST_CHECKOUT_UPDATE_PAYMENT_DATA,
|
|
199
199
|
data: data
|
|
200
200
|
});
|
|
201
201
|
return Model.CheckOutUpdatePaymentDataModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -204,7 +204,7 @@ export default class CheckOut extends Base {
|
|
|
204
204
|
static postCheckOutItemAddCombo(data) {
|
|
205
205
|
return __awaiter(this, void 0, void 0, function* () {
|
|
206
206
|
return yield this.client.post({
|
|
207
|
-
path:
|
|
207
|
+
path: check_out.POST_CHECKOUT_ITEM_ADD_COMBO,
|
|
208
208
|
data: data
|
|
209
209
|
});
|
|
210
210
|
});
|
|
@@ -213,7 +213,7 @@ export default class CheckOut extends Base {
|
|
|
213
213
|
var _a;
|
|
214
214
|
return __awaiter(this, void 0, void 0, function* () {
|
|
215
215
|
const response = yield this.client.get({
|
|
216
|
-
path:
|
|
216
|
+
path: check_out.GET_CHECKOUT_RESEND_RATING,
|
|
217
217
|
query: data
|
|
218
218
|
});
|
|
219
219
|
return Model.CheckoutResendRatingModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -222,7 +222,7 @@ export default class CheckOut extends Base {
|
|
|
222
222
|
static postCustomerAchAvailable(data) {
|
|
223
223
|
return __awaiter(this, void 0, void 0, function* () {
|
|
224
224
|
return yield this.client.post({
|
|
225
|
-
path:
|
|
225
|
+
path: check_out.POST_CUSTOMER_ACH_AVAILABLE,
|
|
226
226
|
data: data
|
|
227
227
|
});
|
|
228
228
|
});
|
|
@@ -230,7 +230,7 @@ export default class CheckOut extends Base {
|
|
|
230
230
|
static postAchResend(data) {
|
|
231
231
|
return __awaiter(this, void 0, void 0, function* () {
|
|
232
232
|
return yield this.client.post({
|
|
233
|
-
path:
|
|
233
|
+
path: check_out.POST_ACH_RESEND,
|
|
234
234
|
data: data
|
|
235
235
|
});
|
|
236
236
|
});
|
|
@@ -238,7 +238,7 @@ export default class CheckOut extends Base {
|
|
|
238
238
|
static postAchVoid(data) {
|
|
239
239
|
return __awaiter(this, void 0, void 0, function* () {
|
|
240
240
|
return yield this.client.post({
|
|
241
|
-
path:
|
|
241
|
+
path: check_out.POST_ACH_VOID,
|
|
242
242
|
data: data
|
|
243
243
|
});
|
|
244
244
|
});
|
|
@@ -247,7 +247,7 @@ export default class CheckOut extends Base {
|
|
|
247
247
|
var _a;
|
|
248
248
|
return __awaiter(this, void 0, void 0, function* () {
|
|
249
249
|
const response = yield this.client.post({
|
|
250
|
-
path:
|
|
250
|
+
path: check_out.POST_UPDATE_ORDER_SUCCESS_TO_SETTLED,
|
|
251
251
|
data: data
|
|
252
252
|
});
|
|
253
253
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.UpdateOrderSuccessToSettledModel(item));
|
|
@@ -257,7 +257,7 @@ export default class CheckOut extends Base {
|
|
|
257
257
|
var _a;
|
|
258
258
|
return __awaiter(this, void 0, void 0, function* () {
|
|
259
259
|
const response = yield this.client.post({
|
|
260
|
-
path:
|
|
260
|
+
path: check_out.POST_CALCULATE_TAX,
|
|
261
261
|
data: data
|
|
262
262
|
});
|
|
263
263
|
return Model.CheckOutInfoModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -266,7 +266,7 @@ export default class CheckOut extends Base {
|
|
|
266
266
|
static postCalculatePayment(data) {
|
|
267
267
|
return __awaiter(this, void 0, void 0, function* () {
|
|
268
268
|
return yield this.client.post({
|
|
269
|
-
path:
|
|
269
|
+
path: check_out.POST_CALCULATE_PAYMENT,
|
|
270
270
|
data: data
|
|
271
271
|
});
|
|
272
272
|
});
|
|
@@ -275,7 +275,7 @@ export default class CheckOut extends Base {
|
|
|
275
275
|
var _a;
|
|
276
276
|
return __awaiter(this, void 0, void 0, function* () {
|
|
277
277
|
const response = yield this.client.post({
|
|
278
|
-
path:
|
|
278
|
+
path: check_out.POST_CHECKOUT_DELETE_BY_STAFF,
|
|
279
279
|
data: data
|
|
280
280
|
});
|
|
281
281
|
return Model.CheckOutDeleteByStaffModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -285,7 +285,7 @@ export default class CheckOut extends Base {
|
|
|
285
285
|
var _a;
|
|
286
286
|
return __awaiter(this, void 0, void 0, function* () {
|
|
287
287
|
const response = yield this.client.post({
|
|
288
|
-
path:
|
|
288
|
+
path: check_out.POST_CHECKOUT_UPDATE_ITEM,
|
|
289
289
|
data: data
|
|
290
290
|
});
|
|
291
291
|
return Model.CheckOutInfoModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -295,7 +295,7 @@ export default class CheckOut extends Base {
|
|
|
295
295
|
var _a;
|
|
296
296
|
return __awaiter(this, void 0, void 0, function* () {
|
|
297
297
|
const response = yield this.client.post({
|
|
298
|
-
path:
|
|
298
|
+
path: check_out.POST_CHECKOUT_UPDATE_STAFF,
|
|
299
299
|
data: data
|
|
300
300
|
});
|
|
301
301
|
return (_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 { combo } 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 Combo 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: combo.GET_COMBO_SITE_INFO,
|
|
13
13
|
query: data
|
|
14
14
|
});
|
|
15
15
|
return Model.ComboModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -18,7 +18,7 @@ export default class Combo extends Base {
|
|
|
18
18
|
static getComboSiteList(data) {
|
|
19
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
20
|
const response = yield this.client.get({
|
|
21
|
-
path:
|
|
21
|
+
path: combo.GET_COMBO_SITE_LIST,
|
|
22
22
|
query: data
|
|
23
23
|
});
|
|
24
24
|
return DataWithMetaModel(response, Model.ComboModel);
|
|
@@ -27,7 +27,7 @@ export default class Combo extends Base {
|
|
|
27
27
|
static sortCombo(data) {
|
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
|
29
29
|
yield this.client.post({
|
|
30
|
-
path:
|
|
30
|
+
path: combo.SORT_COMBO,
|
|
31
31
|
data: data
|
|
32
32
|
});
|
|
33
33
|
return null;
|
|
@@ -37,7 +37,7 @@ export default class Combo extends Base {
|
|
|
37
37
|
var _a;
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
39
|
const response = yield this.client.post({
|
|
40
|
-
path:
|
|
40
|
+
path: combo.CREATE_COMBO,
|
|
41
41
|
data: data
|
|
42
42
|
});
|
|
43
43
|
return Model.ComboModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -47,7 +47,7 @@ export default class Combo extends Base {
|
|
|
47
47
|
var _a;
|
|
48
48
|
return __awaiter(this, void 0, void 0, function* () {
|
|
49
49
|
const response = yield this.client.post({
|
|
50
|
-
path:
|
|
50
|
+
path: combo.UPDATE_COMBO,
|
|
51
51
|
data: data
|
|
52
52
|
});
|
|
53
53
|
return Model.ComboModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -56,7 +56,7 @@ export default class Combo extends Base {
|
|
|
56
56
|
static deleteCombo(data) {
|
|
57
57
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
58
|
yield this.client.post({
|
|
59
|
-
path:
|
|
59
|
+
path: combo.DELETE_COMBO,
|
|
60
60
|
data: data
|
|
61
61
|
});
|
|
62
62
|
return null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { commission } 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 Customer 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: commission.GET_LIST_COMMISSION_BY_STAFF,
|
|
12
12
|
query: data
|
|
13
13
|
});
|
|
14
14
|
return Model.CommissionModel((_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 { customer } 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 Customer 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: customer.GET_CUSTOMER_LIST,
|
|
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.CustomerListModel(item));
|
|
@@ -17,7 +17,7 @@ export default class Customer extends Base {
|
|
|
17
17
|
static getCustomerDetail(data) {
|
|
18
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19
19
|
const response = yield this.client.get({
|
|
20
|
-
path:
|
|
20
|
+
path: customer.GET_CUSTOMER_DETAIL,
|
|
21
21
|
query: data
|
|
22
22
|
});
|
|
23
23
|
return Model.CustomerDetailModel(response.result.data);
|
|
@@ -26,7 +26,7 @@ export default class Customer extends Base {
|
|
|
26
26
|
static getCustomerHistory(data) {
|
|
27
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
28
|
const response = yield this.client.get({
|
|
29
|
-
path:
|
|
29
|
+
path: customer.GET_CUSTOMER_HISTORY,
|
|
30
30
|
query: data
|
|
31
31
|
});
|
|
32
32
|
return Model.CustomerHistoryModel(response.result.data);
|
|
@@ -35,7 +35,7 @@ export default class Customer extends Base {
|
|
|
35
35
|
static updateCustomer(data) {
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
37
|
const response = yield this.client.post({
|
|
38
|
-
path:
|
|
38
|
+
path: customer.UPDATE_CUSTOMER,
|
|
39
39
|
data: data
|
|
40
40
|
});
|
|
41
41
|
return Model.UpdateCustomerModel(response.result.data);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { gift_card } 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 GiftCard 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: gift_card.GET_CHECK_GIFT_CARD,
|
|
12
12
|
query: data
|
|
13
13
|
});
|
|
14
14
|
return Model.GiftCardModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -16,8 +16,8 @@ export default class GiftCard extends Base {
|
|
|
16
16
|
}
|
|
17
17
|
static postResetGiftCard(data) {
|
|
18
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
|
|
20
|
-
path:
|
|
19
|
+
yield this.client.post({
|
|
20
|
+
path: gift_card.POST_RESET_GIFT_CARD,
|
|
21
21
|
data: data
|
|
22
22
|
});
|
|
23
23
|
return null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { income } 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 Income 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: income.GET_INCOME_HISTORY,
|
|
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.IncomeHistoryModel(item));
|
|
@@ -18,7 +18,7 @@ export default class Income 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: income.GET_STAFF_DAILY_INCOME,
|
|
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.StaffDailyIncomeModel(item));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { key_storage } 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 KeyStorage 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: key_storage.GET_POS_KEY_STORAGE,
|
|
12
12
|
query: data
|
|
13
13
|
});
|
|
14
14
|
return Model.KeyStorageModel((_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 { order } from "../endpoints";
|
|
3
3
|
import Base from "../../../../base/Base";
|
|
4
4
|
import FileDownload from "js-file-download";
|
|
5
5
|
import { formatExportDateString } from "../../../../utils/date-time";
|
|
@@ -11,7 +11,7 @@ export default class Order extends Base {
|
|
|
11
11
|
static getOrderCheckInList(data) {
|
|
12
12
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13
13
|
const response = yield this.client.get({
|
|
14
|
-
path:
|
|
14
|
+
path: order.GET_CHECKIN_LIST,
|
|
15
15
|
query: data
|
|
16
16
|
});
|
|
17
17
|
return DataWithMetaModel(response, Model.OrderDetailModel);
|
|
@@ -20,7 +20,7 @@ export default class Order extends Base {
|
|
|
20
20
|
// public static async getOrderDetail(data: Request.GetOrderDetailRequest): Promise<Response.GetOrderDetailResponse> {
|
|
21
21
|
// const response = await this.client.get(
|
|
22
22
|
// {
|
|
23
|
-
// path:
|
|
23
|
+
// path: order.GET_ORDER_DETAIL,
|
|
24
24
|
// query: data
|
|
25
25
|
// }
|
|
26
26
|
// );
|
|
@@ -29,7 +29,7 @@ export default class Order extends Base {
|
|
|
29
29
|
// public static async getOrderHistoryList(data: Request.GetOrderHistoryListRequest): Promise<DataWithMetaResponse<Array<Response.GetOrderHistoryListResponse>>> {
|
|
30
30
|
// const response = await this.client.get(
|
|
31
31
|
// {
|
|
32
|
-
// path:
|
|
32
|
+
// path: order.GET_ORDER_HISTORY_LIST,
|
|
33
33
|
// query: data
|
|
34
34
|
// }
|
|
35
35
|
// );
|
|
@@ -41,7 +41,7 @@ export default class Order extends Base {
|
|
|
41
41
|
static getReportCheckIn(data) {
|
|
42
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43
43
|
const response = yield this.client.get({
|
|
44
|
-
path:
|
|
44
|
+
path: order.GET_REPORT_CHECKIN,
|
|
45
45
|
query: data
|
|
46
46
|
});
|
|
47
47
|
return Model.ReportCheckInModel(response.result.data);
|
|
@@ -50,7 +50,7 @@ export default class Order extends Base {
|
|
|
50
50
|
// public static async removeCheckingItem(data: InputDataType.GetIncomeHistory) {
|
|
51
51
|
// return await this.client.post(
|
|
52
52
|
// {
|
|
53
|
-
// path:
|
|
53
|
+
// path: order.REMOVE_CHECKIN_ITEM,
|
|
54
54
|
// data: data
|
|
55
55
|
// }
|
|
56
56
|
// );
|
|
@@ -59,7 +59,7 @@ export default class Order extends Base {
|
|
|
59
59
|
var _a;
|
|
60
60
|
return __awaiter(this, void 0, void 0, function* () {
|
|
61
61
|
const response = yield this.client.post({
|
|
62
|
-
path:
|
|
62
|
+
path: order.UPDATE_ORDER_STAFF,
|
|
63
63
|
data: data
|
|
64
64
|
});
|
|
65
65
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.OrderStaffModel(item));
|
|
@@ -68,7 +68,7 @@ export default class Order extends Base {
|
|
|
68
68
|
// public static async checkPassword(data: InputDataType.GetIncomeHistory) {
|
|
69
69
|
// return await this.client.get(
|
|
70
70
|
// {
|
|
71
|
-
// path:
|
|
71
|
+
// path: order.CHECK_PASSWORD,
|
|
72
72
|
// query: data
|
|
73
73
|
// }
|
|
74
74
|
// );
|
|
@@ -76,7 +76,7 @@ export default class Order extends Base {
|
|
|
76
76
|
static removeOrder(data) {
|
|
77
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
78
|
const response = yield this.client.post({
|
|
79
|
-
path:
|
|
79
|
+
path: order.REMOVE_ORDER,
|
|
80
80
|
data: data
|
|
81
81
|
});
|
|
82
82
|
return null;
|
|
@@ -85,7 +85,7 @@ export default class Order extends Base {
|
|
|
85
85
|
static exportOrder(data) {
|
|
86
86
|
return __awaiter(this, void 0, void 0, function* () {
|
|
87
87
|
const response = yield this.client.get({
|
|
88
|
-
path:
|
|
88
|
+
path: order.EXPORT_ORDER,
|
|
89
89
|
query: data
|
|
90
90
|
});
|
|
91
91
|
let dateFormat = formatExportDateString();
|
|
@@ -96,7 +96,7 @@ export default class Order extends Base {
|
|
|
96
96
|
// public static async calculateOrder(data: InputDataType.GetIncomeHistory) {
|
|
97
97
|
// return await this.client.get(
|
|
98
98
|
// {
|
|
99
|
-
// path:
|
|
99
|
+
// path: order.CALCULATE_ORDER,
|
|
100
100
|
// query: data
|
|
101
101
|
// }
|
|
102
102
|
// );
|
|
@@ -104,7 +104,7 @@ export default class Order extends Base {
|
|
|
104
104
|
// public static async checkGiftCard(data: InputDataType.GetIncomeHistory) {
|
|
105
105
|
// return await this.client.get(
|
|
106
106
|
// {
|
|
107
|
-
// path:
|
|
107
|
+
// path: order.CHECK_GIFTCARD,
|
|
108
108
|
// query: data
|
|
109
109
|
// }
|
|
110
110
|
// );
|
|
@@ -112,7 +112,7 @@ export default class Order extends Base {
|
|
|
112
112
|
// public static async updateOrder(data: InputDataType.GetIncomeHistory) {
|
|
113
113
|
// return await this.client.get(
|
|
114
114
|
// {
|
|
115
|
-
// path:
|
|
115
|
+
// path: order.UPDATE_ORDER,
|
|
116
116
|
// query: data
|
|
117
117
|
// }
|
|
118
118
|
// );
|
|
@@ -120,7 +120,7 @@ export default class Order extends Base {
|
|
|
120
120
|
// public static async resetGiftCard(data: InputDataType.GetIncomeHistory) {
|
|
121
121
|
// return await this.client.get(
|
|
122
122
|
// {
|
|
123
|
-
// path:
|
|
123
|
+
// path: order.RESET_GIFT_CARD,
|
|
124
124
|
// query: data
|
|
125
125
|
// }
|
|
126
126
|
// );
|
|
@@ -128,7 +128,7 @@ export default class Order extends Base {
|
|
|
128
128
|
// public static async cancelOrder(data: InputDataType.GetIncomeHistory) {
|
|
129
129
|
// return await this.client.get(
|
|
130
130
|
// {
|
|
131
|
-
// path:
|
|
131
|
+
// path: order.CANCEL_ORDER,
|
|
132
132
|
// query: data
|
|
133
133
|
// }
|
|
134
134
|
// );
|
|
@@ -137,7 +137,7 @@ export default class Order extends Base {
|
|
|
137
137
|
var _a;
|
|
138
138
|
return __awaiter(this, void 0, void 0, function* () {
|
|
139
139
|
const response = yield this.client.post({
|
|
140
|
-
path:
|
|
140
|
+
path: order.SUBMIT_CHECKOUT,
|
|
141
141
|
data: data
|
|
142
142
|
});
|
|
143
143
|
return Model.SubmitCheckoutModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -147,7 +147,7 @@ export default class Order extends Base {
|
|
|
147
147
|
var _a;
|
|
148
148
|
return __awaiter(this, void 0, void 0, function* () {
|
|
149
149
|
const response = yield this.client.post({
|
|
150
|
-
path:
|
|
150
|
+
path: order.SUBMIT_PAYMENT,
|
|
151
151
|
data: data
|
|
152
152
|
});
|
|
153
153
|
return Model.SubmitCheckoutModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -157,7 +157,7 @@ export default class Order extends Base {
|
|
|
157
157
|
var _a;
|
|
158
158
|
return __awaiter(this, void 0, void 0, function* () {
|
|
159
159
|
const response = yield this.client.post({
|
|
160
|
-
path:
|
|
160
|
+
path: order.UPDATE_PAYMENT_DATA,
|
|
161
161
|
data: data
|
|
162
162
|
});
|
|
163
163
|
return Model.UpdatePaymentDataModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -167,7 +167,7 @@ export default class Order extends Base {
|
|
|
167
167
|
var _a;
|
|
168
168
|
return __awaiter(this, void 0, void 0, function* () {
|
|
169
169
|
const response = yield this.client.post({
|
|
170
|
-
path:
|
|
170
|
+
path: order.ADD_NOTE,
|
|
171
171
|
data: data
|
|
172
172
|
});
|
|
173
173
|
return Model.SubmitCheckoutModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|