gap-nodejs-sdk 1.0.9 → 1.0.12

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.
Files changed (148) hide show
  1. package/dist/base/Base.js +9 -0
  2. package/dist/error.js +18 -5
  3. package/dist/gap-sdk.js +1 -1
  4. package/dist/gci_client_api/interface/customer.js +2 -0
  5. package/dist/gci_client_api/interface/staff.js +2 -0
  6. package/dist/{base/response_data_api_type.js → gci_client_api/types/customer.js} +0 -0
  7. package/dist/gci_client_api/types/index.js +2 -0
  8. package/dist/{src/base/response_data_api_type.js → gci_client_api/types/staff.js} +0 -0
  9. package/dist/gci_client_api/v1/GciClientApi.js +10 -0
  10. package/dist/gci_client_api/v1/api/customer.js +115 -0
  11. package/dist/gci_client_api/v1/api/index.js +2 -0
  12. package/dist/gci_client_api/v1/api/staff.js +3 -0
  13. package/dist/{src/http_client/http_client.js → gci_client_api/v1/endpoint/customer.js} +0 -0
  14. package/dist/gci_client_api/v1/endpoint/index.js +15 -0
  15. package/dist/gci_client_api/v1/endpoint/staff.js +0 -0
  16. package/dist/http_client/http_client.js +160 -0
  17. package/dist/http_client/types.js +57 -13
  18. package/dist/index.js +2 -5
  19. package/dist/pos_client_api/enums/index.js +12 -0
  20. package/dist/pos_client_api/interface/appointment.js +2 -0
  21. package/dist/pos_client_api/interface/batch_history.js +2 -0
  22. package/dist/pos_client_api/interface/business.js +2 -0
  23. package/dist/pos_client_api/interface/call.js +2 -0
  24. package/dist/pos_client_api/interface/category.js +2 -0
  25. package/dist/pos_client_api/interface/check_in.js +2 -0
  26. package/dist/pos_client_api/interface/check_out.js +2 -0
  27. package/dist/pos_client_api/interface/combo.js +2 -0
  28. package/dist/pos_client_api/interface/customer.js +2 -0
  29. package/dist/pos_client_api/interface/gift_card.js +2 -0
  30. package/dist/pos_client_api/interface/income.js +2 -0
  31. package/dist/{src/gci_client_api → pos_client_api}/interface/index.js +0 -0
  32. package/dist/pos_client_api/interface/key_storage.js +2 -0
  33. package/dist/pos_client_api/interface/order.js +2 -0
  34. package/dist/pos_client_api/interface/payroll.js +2 -0
  35. package/dist/pos_client_api/interface/printer.js +2 -0
  36. package/dist/pos_client_api/interface/service.js +2 -0
  37. package/dist/pos_client_api/interface/setting_turn.js +2 -0
  38. package/dist/pos_client_api/interface/staff.js +2 -0
  39. package/dist/pos_client_api/interface/ticket.js +2 -0
  40. package/dist/pos_client_api/interface/time_keeping.js +2 -0
  41. package/dist/pos_client_api/interface/unsubscribe_contact.js +4 -0
  42. package/dist/pos_client_api/interface/user.js +2 -0
  43. package/dist/{src/interface/invoke_event_interface.js → pos_client_api/types/appointment.js} +0 -0
  44. package/dist/pos_client_api/types/batch_history.js +1 -0
  45. package/dist/pos_client_api/types/business.js +1 -0
  46. package/dist/pos_client_api/types/call.js +1 -0
  47. package/dist/pos_client_api/types/category.js +1 -0
  48. package/dist/pos_client_api/types/check_in.js +1 -0
  49. package/dist/pos_client_api/types/check_out.js +1 -0
  50. package/dist/pos_client_api/types/combo.js +1 -0
  51. package/dist/pos_client_api/types/customer.js +1 -0
  52. package/dist/pos_client_api/types/gift_card.js +1 -0
  53. package/dist/pos_client_api/types/income.js +1 -0
  54. package/dist/pos_client_api/types/key_storage.js +1 -0
  55. package/dist/pos_client_api/types/order.js +16 -0
  56. package/dist/pos_client_api/types/payroll.js +1 -0
  57. package/dist/pos_client_api/types/printer.js +1 -0
  58. package/dist/pos_client_api/types/service.js +1 -0
  59. package/dist/pos_client_api/types/setting_turn.js +1 -0
  60. package/dist/pos_client_api/types/staff.js +1 -0
  61. package/dist/pos_client_api/types/ticket.js +1 -0
  62. package/dist/pos_client_api/types/time_keeping.js +1 -0
  63. package/dist/pos_client_api/types/unsubscribe_contact.js +1 -0
  64. package/dist/pos_client_api/v1/PosClientApi.js +29 -0
  65. package/dist/pos_client_api/v1/api/appointment.js +29 -0
  66. package/dist/pos_client_api/v1/api/batch_history.js +21 -0
  67. package/dist/pos_client_api/v1/api/business.js +21 -0
  68. package/dist/pos_client_api/v1/api/call.js +13 -0
  69. package/dist/pos_client_api/v1/api/category.js +13 -0
  70. package/dist/pos_client_api/v1/api/check_in.js +45 -0
  71. package/dist/pos_client_api/v1/api/check_out.js +237 -0
  72. package/dist/pos_client_api/v1/api/combo.js +13 -0
  73. package/dist/pos_client_api/v1/api/customer.js +21 -0
  74. package/dist/pos_client_api/v1/api/gift_card.js +21 -0
  75. package/dist/pos_client_api/v1/api/income.js +21 -0
  76. package/dist/pos_client_api/v1/api/index.js +22 -0
  77. package/dist/pos_client_api/v1/api/key_storage.js +13 -0
  78. package/dist/pos_client_api/v1/api/order.js +82 -0
  79. package/dist/pos_client_api/v1/api/payroll.js +142 -0
  80. package/dist/pos_client_api/v1/api/printer.js +37 -0
  81. package/dist/pos_client_api/v1/api/service.js +13 -0
  82. package/dist/pos_client_api/v1/api/setting_turn.js +21 -0
  83. package/dist/pos_client_api/v1/api/staff.js +21 -0
  84. package/dist/pos_client_api/v1/api/ticket.js +70 -0
  85. package/dist/pos_client_api/v1/api/time_keeping.js +61 -0
  86. package/dist/pos_client_api/v1/api/unsubscribe_contact.js +4 -0
  87. package/dist/pos_client_api/v1/api/user.js +13 -0
  88. package/dist/pos_client_api/v1/endpoint/appointment.js +5 -0
  89. package/dist/pos_client_api/v1/endpoint/batch_history.js +4 -0
  90. package/dist/pos_client_api/v1/endpoint/business.js +4 -0
  91. package/dist/pos_client_api/v1/endpoint/call.js +4 -0
  92. package/dist/pos_client_api/v1/endpoint/category.js +3 -0
  93. package/dist/pos_client_api/v1/endpoint/check_in.js +7 -0
  94. package/dist/pos_client_api/v1/endpoint/check_out.js +31 -0
  95. package/dist/pos_client_api/v1/endpoint/combo.js +3 -0
  96. package/dist/pos_client_api/v1/endpoint/customer.js +4 -0
  97. package/dist/pos_client_api/v1/endpoint/gift_card.js +4 -0
  98. package/dist/pos_client_api/v1/endpoint/income.js +4 -0
  99. package/dist/pos_client_api/v1/endpoint/index.js +22 -0
  100. package/dist/pos_client_api/v1/endpoint/key_storage.js +3 -0
  101. package/dist/pos_client_api/v1/endpoint/order.js +16 -0
  102. package/dist/pos_client_api/v1/endpoint/payroll.js +18 -0
  103. package/dist/pos_client_api/v1/endpoint/printer.js +6 -0
  104. package/dist/pos_client_api/v1/endpoint/service.js +3 -0
  105. package/dist/pos_client_api/v1/endpoint/setting_turn.js +4 -0
  106. package/dist/pos_client_api/v1/endpoint/staff.js +4 -0
  107. package/dist/pos_client_api/v1/endpoint/ticket.js +10 -0
  108. package/dist/pos_client_api/v1/endpoint/time_keeping.js +9 -0
  109. package/dist/pos_client_api/v1/endpoint/unsubscribe_contact.js +4 -0
  110. package/dist/pos_client_api/v1/endpoint/user.js +3 -0
  111. package/dist/utils/date-time.js +9 -0
  112. package/dist/utils/processed-query.js +40 -0
  113. package/package.json +2 -2
  114. package/dist/base/response_data_api_type.d.ts +0 -8
  115. package/dist/base/response_data_api_type.d.ts.map +0 -1
  116. package/dist/gci_client_api/v1/repository/GciClientRepository.d.ts +0 -8
  117. package/dist/gci_client_api/v1/repository/GciClientRepository.d.ts.map +0 -1
  118. package/dist/gci_client_api/v1/repository/GciClientRepository.js +0 -14
  119. package/dist/src/base/response_data_api_type.d.ts +0 -8
  120. package/dist/src/base/response_data_api_type.d.ts.map +0 -1
  121. package/dist/src/base_type.d.ts +0 -20
  122. package/dist/src/base_type.d.ts.map +0 -1
  123. package/dist/src/base_type.js +0 -23
  124. package/dist/src/context.d.ts +0 -23
  125. package/dist/src/context.d.ts.map +0 -1
  126. package/dist/src/context.js +0 -35
  127. package/dist/src/error.d.ts +0 -26
  128. package/dist/src/error.d.ts.map +0 -1
  129. package/dist/src/error.js +0 -24
  130. package/dist/src/gci_client_api/interface/index.d.ts +0 -7
  131. package/dist/src/gci_client_api/interface/index.d.ts.map +0 -1
  132. package/dist/src/gci_client_api/v1/repository/GciClientRepository.d.ts +0 -8
  133. package/dist/src/gci_client_api/v1/repository/GciClientRepository.d.ts.map +0 -1
  134. package/dist/src/gci_client_api/v1/repository/GciClientRepository.js +0 -14
  135. package/dist/src/http_client/http_client.d.ts +0 -1
  136. package/dist/src/http_client/http_client.d.ts.map +0 -1
  137. package/dist/src/http_client/types.d.ts +0 -31
  138. package/dist/src/http_client/types.d.ts.map +0 -1
  139. package/dist/src/http_client/types.js +0 -13
  140. package/dist/src/index.d.ts +0 -8
  141. package/dist/src/index.d.ts.map +0 -1
  142. package/dist/src/index.js +0 -14
  143. package/dist/src/interface/invoke_event_interface.d.ts +0 -4
  144. package/dist/src/interface/invoke_event_interface.d.ts.map +0 -1
  145. package/dist/src/types.d.ts +0 -2
  146. package/dist/src/types.d.ts.map +0 -1
  147. package/dist/src/types.js +0 -1
  148. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -0,0 +1,2 @@
1
+ export default class BatchHistory {
2
+ }
@@ -0,0 +1,2 @@
1
+ export default class Business {
2
+ }
@@ -0,0 +1,2 @@
1
+ export default class Call {
2
+ }
@@ -0,0 +1,2 @@
1
+ export default class Category {
2
+ }
@@ -0,0 +1,2 @@
1
+ export default class CheckIn {
2
+ }
@@ -0,0 +1,2 @@
1
+ export default class CheckOut {
2
+ }
@@ -0,0 +1,2 @@
1
+ export default class Combo {
2
+ }
@@ -0,0 +1,2 @@
1
+ export default class Customer {
2
+ }
@@ -0,0 +1,2 @@
1
+ export default class GiftCard {
2
+ }
@@ -0,0 +1,2 @@
1
+ export default class Income {
2
+ }
@@ -0,0 +1,2 @@
1
+ export default class KeyStorage {
2
+ }
@@ -0,0 +1,2 @@
1
+ export default class Order {
2
+ }
@@ -0,0 +1,2 @@
1
+ export default class Payroll {
2
+ }
@@ -0,0 +1,2 @@
1
+ export default class Printer {
2
+ }
@@ -0,0 +1,2 @@
1
+ export default class Service {
2
+ }
@@ -0,0 +1,2 @@
1
+ export default class SettingTurn {
2
+ }
@@ -0,0 +1,2 @@
1
+ export default class Staff {
2
+ }
@@ -0,0 +1,2 @@
1
+ export default class Ticket {
2
+ }
@@ -0,0 +1,2 @@
1
+ export default class TimeKeeping {
2
+ }
@@ -0,0 +1,4 @@
1
+ // import {ResponseDataApi} from "src/base_type";
2
+ // import * as InputDataType from "../types";
3
+ export default class UnsubscribeContact {
4
+ }
@@ -0,0 +1,2 @@
1
+ export default class User {
2
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,16 @@
1
+ export {};
2
+ // export declare type CalculateOrder = {
3
+ //
4
+ // }
5
+ // export declare type CheckGiftCard = {
6
+ //
7
+ // }
8
+ // export declare type UpdateOrder = {
9
+ //
10
+ // }
11
+ // export declare type ResetGiftCard = {
12
+ //
13
+ // }
14
+ // export declare type CancelOrder = {
15
+ //
16
+ // }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,29 @@
1
+ import * as API from "./api";
2
+ import Base from "../../base/Base";
3
+ export class PosClientApi {
4
+ constructor(domain, gClientId, token) {
5
+ this.appointment = API.Appointment;
6
+ this.batch_history = API.BatchHistory;
7
+ this.business = API.Business;
8
+ this.call = API.Call;
9
+ this.category = API.Category;
10
+ this.check_in = API.CheckIn;
11
+ this.check_out = API.CheckOut;
12
+ this.combo = API.Combo;
13
+ this.customer = API.Customer;
14
+ this.gift_card = API.GiftCard;
15
+ this.income = API.Income;
16
+ this.key_storage = API.KeyStorage;
17
+ this.order = API.Order;
18
+ this.payroll = API.Payroll;
19
+ this.printer = API.Printer;
20
+ this.service = API.Service;
21
+ this.setting_turn = API.SettingTurn;
22
+ this.staff = API.Staff;
23
+ this.ticket = API.Ticket;
24
+ this.time_keeping = API.TimeKeeping;
25
+ this.unsubscribe_contact = API.UnsubscribeContact;
26
+ this.user = API.User;
27
+ Base.setClient(domain, gClientId, token);
28
+ }
29
+ }
@@ -0,0 +1,29 @@
1
+ import { __awaiter } from "tslib";
2
+ import * as posEndpoints from "../endpoint";
3
+ import Base from "../../../base/Base";
4
+ export default class Appointment extends Base {
5
+ static postCreateAppointment(data) {
6
+ return __awaiter(this, void 0, void 0, function* () {
7
+ return yield this.client.post({
8
+ path: posEndpoints.appointment.POST_CREATE_APPOINTMENT,
9
+ data: data
10
+ });
11
+ });
12
+ }
13
+ static getCategoryListAppointment(data) {
14
+ return __awaiter(this, void 0, void 0, function* () {
15
+ return yield this.client.get({
16
+ path: posEndpoints.appointment.GET_CATEGORY_LIST_APPOINTMENT,
17
+ query: data
18
+ });
19
+ });
20
+ }
21
+ static getStaffListAppointment(data) {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ return yield this.client.get({
24
+ path: posEndpoints.appointment.GET_STAFF_LIST_APPOINTMENT,
25
+ query: data
26
+ });
27
+ });
28
+ }
29
+ }
@@ -0,0 +1,21 @@
1
+ import { __awaiter } from "tslib";
2
+ import * as posEndpoints from "../endpoint";
3
+ import Base from "../../../base/Base";
4
+ export default class BatchHistory extends Base {
5
+ static getBatchHistory(data) {
6
+ return __awaiter(this, void 0, void 0, function* () {
7
+ return yield this.client.get({
8
+ path: posEndpoints.batch_history.GET_BATCH_HISTORY,
9
+ query: data
10
+ });
11
+ });
12
+ }
13
+ static getBatchDetail(data) {
14
+ return __awaiter(this, void 0, void 0, function* () {
15
+ return yield this.client.get({
16
+ path: posEndpoints.batch_history.GET_BATCH_DETAIL,
17
+ query: data
18
+ });
19
+ });
20
+ }
21
+ }
@@ -0,0 +1,21 @@
1
+ import { __awaiter } from "tslib";
2
+ import * as posEndpoints from "../endpoint";
3
+ import Base from "../../../base/Base";
4
+ export default class Business extends Base {
5
+ static getBusinessInfo(data) {
6
+ return __awaiter(this, void 0, void 0, function* () {
7
+ return yield this.client.get({
8
+ path: posEndpoints.business.GET_BUSINESS_INFO,
9
+ query: data
10
+ });
11
+ });
12
+ }
13
+ static postBusinessUpdateInfo(data) {
14
+ return __awaiter(this, void 0, void 0, function* () {
15
+ return yield this.client.post({
16
+ path: posEndpoints.business.POST_BUSINESS_UPDATE_INFO,
17
+ data: data
18
+ });
19
+ });
20
+ }
21
+ }
@@ -0,0 +1,13 @@
1
+ import { __awaiter } from "tslib";
2
+ import * as posEndpoints from "../endpoint";
3
+ import Base from "../../../base/Base";
4
+ export default class Call extends Base {
5
+ static sendSms(data) {
6
+ return __awaiter(this, void 0, void 0, function* () {
7
+ return yield this.client.post({
8
+ path: posEndpoints.call.SEND_SMS,
9
+ data: data
10
+ });
11
+ });
12
+ }
13
+ }
@@ -0,0 +1,13 @@
1
+ import { __awaiter } from "tslib";
2
+ import * as posEndpoints from "../endpoint";
3
+ import Base from "../../../base/Base";
4
+ export default class Category extends Base {
5
+ static getCategoryListItem(data) {
6
+ return __awaiter(this, void 0, void 0, function* () {
7
+ return yield this.client.get({
8
+ path: posEndpoints.category.GET_CATEGORY_LIST_ITEM,
9
+ query: data
10
+ });
11
+ });
12
+ }
13
+ }
@@ -0,0 +1,45 @@
1
+ import { __awaiter } from "tslib";
2
+ import * as posEndpoints from "../endpoint";
3
+ import Base from "../../../base/Base";
4
+ export default class CheckIn extends Base {
5
+ static postCheckInFormSubmit(data) {
6
+ return __awaiter(this, void 0, void 0, function* () {
7
+ return yield this.client.post({
8
+ path: posEndpoints.check_in.POST_CHECK_IN_FORM_SUBMIT,
9
+ data: data
10
+ });
11
+ });
12
+ }
13
+ static getCheckInList(data) {
14
+ return __awaiter(this, void 0, void 0, function* () {
15
+ return yield this.client.get({
16
+ path: posEndpoints.check_in.GET_CHECK_IN_LIST,
17
+ query: data
18
+ });
19
+ });
20
+ }
21
+ static getCheckInReport(data) {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ return yield this.client.get({
24
+ path: posEndpoints.check_in.GET_CHECK_IN_REPORT,
25
+ query: data
26
+ });
27
+ });
28
+ }
29
+ static getLastCheckIn(data) {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ return yield this.client.get({
32
+ path: posEndpoints.check_in.GET_LAST_CHECK_IN,
33
+ query: data
34
+ });
35
+ });
36
+ }
37
+ static getCheckInInfo(data) {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ return yield this.client.get({
40
+ path: posEndpoints.check_in.GET_CHECK_IN_INFO,
41
+ query: data
42
+ });
43
+ });
44
+ }
45
+ }
@@ -0,0 +1,237 @@
1
+ import { __awaiter } from "tslib";
2
+ import * as posEndpoints from "../endpoint";
3
+ import Base from "../../../base/Base";
4
+ export default class CheckOut extends Base {
5
+ static getItemList(data) {
6
+ return __awaiter(this, void 0, void 0, function* () {
7
+ return yield this.client.get({
8
+ path: posEndpoints.check_out.GET_ITEM_LIST,
9
+ query: data
10
+ });
11
+ });
12
+ }
13
+ static getCheckOutHistoryList(data) {
14
+ return __awaiter(this, void 0, void 0, function* () {
15
+ return yield this.client.get({
16
+ path: posEndpoints.check_out.GET_CHECK_OUT_HISTORY_LIST,
17
+ query: data
18
+ });
19
+ });
20
+ }
21
+ static getCheckOutInfo(data) {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ return yield this.client.get({
24
+ path: posEndpoints.check_out.GET_CHECK_OUT_INFO,
25
+ query: data
26
+ });
27
+ });
28
+ }
29
+ static getCheckOutHistoryInfo(data) {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ return yield this.client.get({
32
+ path: posEndpoints.check_out.GET_CHECKOUT_HISTORY_INFO,
33
+ query: data
34
+ });
35
+ });
36
+ }
37
+ static getCheckOutBatchCloseSummary(data) {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ return yield this.client.get({
40
+ path: posEndpoints.check_out.GET_CHECKOUT_BATCH_CLOSE_SUMMARY,
41
+ query: data
42
+ });
43
+ });
44
+ }
45
+ static postCheckOutAddItem(data) {
46
+ return __awaiter(this, void 0, void 0, function* () {
47
+ return yield this.client.post({
48
+ path: posEndpoints.check_out.POST_CHECKOUT_ADD_ITEM,
49
+ data: data
50
+ });
51
+ });
52
+ }
53
+ static postCheckOutRemoveItem(data) {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ return yield this.client.post({
56
+ path: posEndpoints.check_out.POST_CHECKOUT_REMOVE_ITEM,
57
+ data: data
58
+ });
59
+ });
60
+ }
61
+ static postCheckOutSubmitOrder(data) {
62
+ return __awaiter(this, void 0, void 0, function* () {
63
+ return yield this.client.post({
64
+ path: posEndpoints.check_out.POST_CHECKOUT_SUBMIT_ORDER,
65
+ data: data
66
+ });
67
+ });
68
+ }
69
+ static postCheckOutUpdateStatus(data) {
70
+ return __awaiter(this, void 0, void 0, function* () {
71
+ return yield this.client.post({
72
+ path: posEndpoints.check_out.POST_CHECKOUT_UPDATE_STATUS,
73
+ data: data
74
+ });
75
+ });
76
+ }
77
+ static postCheckOutUpdateOrderWithCreditCardPayment(data) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ return yield this.client.post({
80
+ path: posEndpoints.check_out.POST_CHECKOUT_UPDATE_ORDER_WITH_CREDIT_CARD_PAYMENT,
81
+ data: data
82
+ });
83
+ });
84
+ }
85
+ static postCheckOutDoAuth(data) {
86
+ return __awaiter(this, void 0, void 0, function* () {
87
+ return yield this.client.post({
88
+ path: posEndpoints.check_out.POST_CHECKOUT_DO_AUTH,
89
+ data: data
90
+ });
91
+ });
92
+ }
93
+ static postCheckOutVoidPayment(data) {
94
+ return __awaiter(this, void 0, void 0, function* () {
95
+ return yield this.client.post({
96
+ path: posEndpoints.check_out.POST_CHECKOUT_VOID_PAYMENT,
97
+ data: data
98
+ });
99
+ });
100
+ }
101
+ static postCheckOutRefundPayment(data) {
102
+ return __awaiter(this, void 0, void 0, function* () {
103
+ return yield this.client.post({
104
+ path: posEndpoints.check_out.POST_CHECKOUT_REFUND_PAYMENT,
105
+ data: data
106
+ });
107
+ });
108
+ }
109
+ static postCheckOutAdjustTipPayment(data) {
110
+ return __awaiter(this, void 0, void 0, function* () {
111
+ return yield this.client.post({
112
+ path: posEndpoints.check_out.POST_CHECKOUT_ADJUST_TIP_PAYMENT,
113
+ data: data
114
+ });
115
+ });
116
+ }
117
+ static postCheckOutCloseOut(data) {
118
+ return __awaiter(this, void 0, void 0, function* () {
119
+ return yield this.client.post({
120
+ path: posEndpoints.check_out.POST_CHECKOUT_CLOSE_OUT,
121
+ data: data
122
+ });
123
+ });
124
+ }
125
+ static postCheckOutUpdateIsWaiting(data) {
126
+ return __awaiter(this, void 0, void 0, function* () {
127
+ return yield this.client.post({
128
+ path: posEndpoints.check_out.POST_CHECKOUT_UPDATE_IS_WAITING,
129
+ data: data
130
+ });
131
+ });
132
+ }
133
+ static postCheckOutDiscountPromotion(data) {
134
+ return __awaiter(this, void 0, void 0, function* () {
135
+ return yield this.client.post({
136
+ path: posEndpoints.check_out.POST_CHECKOUT_DISCOUNT_PROMOTION,
137
+ data: data
138
+ });
139
+ });
140
+ }
141
+ static postCheckOutDiscountRedeem(data) {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ return yield this.client.post({
144
+ path: posEndpoints.check_out.POST_CHECKOUT_DISCOUNT_REDEEM,
145
+ data: data
146
+ });
147
+ });
148
+ }
149
+ static postCheckOutUpdateTipData(data) {
150
+ return __awaiter(this, void 0, void 0, function* () {
151
+ return yield this.client.post({
152
+ path: posEndpoints.check_out.POST_CHECKOUT_UPDATE_TIP_DATA,
153
+ data: data
154
+ });
155
+ });
156
+ }
157
+ static postCheckOutItemAdjustPrice(data) {
158
+ return __awaiter(this, void 0, void 0, function* () {
159
+ return yield this.client.post({
160
+ path: posEndpoints.check_out.POST_CHECKOUT_ITEM_ADJUST_PRICE,
161
+ data: data
162
+ });
163
+ });
164
+ }
165
+ static postCheckOutUpdatePaymentData(data) {
166
+ return __awaiter(this, void 0, void 0, function* () {
167
+ return yield this.client.post({
168
+ path: posEndpoints.check_out.POST_CHECKOUT_UPDATE_PAYMENT_DATA,
169
+ data: data
170
+ });
171
+ });
172
+ }
173
+ static postCheckOutItemAddCombo(data) {
174
+ return __awaiter(this, void 0, void 0, function* () {
175
+ return yield this.client.post({
176
+ path: posEndpoints.check_out.POST_CHECKOUT_ITEM_ADD_COMBO,
177
+ data: data
178
+ });
179
+ });
180
+ }
181
+ static getCheckoutResendRating(data) {
182
+ return __awaiter(this, void 0, void 0, function* () {
183
+ return yield this.client.get({
184
+ path: posEndpoints.check_out.GET_CHECKOUT_RESEND_RATING,
185
+ query: data
186
+ });
187
+ });
188
+ }
189
+ static postCustomerAchAvailable(data) {
190
+ return __awaiter(this, void 0, void 0, function* () {
191
+ return yield this.client.post({
192
+ path: posEndpoints.check_out.POST_CUSTOMER_ACH_AVAILABLE,
193
+ data: data
194
+ });
195
+ });
196
+ }
197
+ static postAchResend(data) {
198
+ return __awaiter(this, void 0, void 0, function* () {
199
+ return yield this.client.post({
200
+ path: posEndpoints.check_out.POST_ACH_RESEND,
201
+ data: data
202
+ });
203
+ });
204
+ }
205
+ static postAchVoid(data) {
206
+ return __awaiter(this, void 0, void 0, function* () {
207
+ return yield this.client.post({
208
+ path: posEndpoints.check_out.POST_ACH_VOID,
209
+ data: data
210
+ });
211
+ });
212
+ }
213
+ static postUpdateOrderSuccessToSettled(data) {
214
+ return __awaiter(this, void 0, void 0, function* () {
215
+ return yield this.client.post({
216
+ path: posEndpoints.check_out.POST_UPDATE_ORDER_SUCCESS_TO_SETTLED,
217
+ data: data
218
+ });
219
+ });
220
+ }
221
+ static postCalculateTax(data) {
222
+ return __awaiter(this, void 0, void 0, function* () {
223
+ return yield this.client.post({
224
+ path: posEndpoints.check_out.POST_CALCULATE_TAX,
225
+ data: data
226
+ });
227
+ });
228
+ }
229
+ static postCalculatePayment(data) {
230
+ return __awaiter(this, void 0, void 0, function* () {
231
+ return yield this.client.post({
232
+ path: posEndpoints.check_out.POST_CALCULATE_PAYMENT,
233
+ data: data
234
+ });
235
+ });
236
+ }
237
+ }
@@ -0,0 +1,13 @@
1
+ import { __awaiter } from "tslib";
2
+ import * as posEndpoints from "../endpoint";
3
+ import Base from "../../../base/Base";
4
+ export default class Combo extends Base {
5
+ static getComboSiteInfo(data) {
6
+ return __awaiter(this, void 0, void 0, function* () {
7
+ return yield this.client.get({
8
+ path: posEndpoints.combo.GET_COMBO_SITE_INFO,
9
+ query: data
10
+ });
11
+ });
12
+ }
13
+ }
@@ -0,0 +1,21 @@
1
+ import { __awaiter } from "tslib";
2
+ import * as posEndpoints from "../endpoint";
3
+ import Base from "../../../base/Base";
4
+ export default class Customer extends Base {
5
+ static getCustomerList(data) {
6
+ return __awaiter(this, void 0, void 0, function* () {
7
+ return yield this.client.get({
8
+ path: posEndpoints.customer.GET_CUSTOMER_LIST,
9
+ query: data
10
+ });
11
+ });
12
+ }
13
+ static getCustomerDetail(data) {
14
+ return __awaiter(this, void 0, void 0, function* () {
15
+ return yield this.client.get({
16
+ path: posEndpoints.customer.GET_CUSTOMER_DETAIL,
17
+ query: data
18
+ });
19
+ });
20
+ }
21
+ }
@@ -0,0 +1,21 @@
1
+ import { __awaiter } from "tslib";
2
+ import * as posEndpoints from "../endpoint";
3
+ import Base from "../../../base/Base";
4
+ export default class GiftCard extends Base {
5
+ static getCheckGiftCard(data) {
6
+ return __awaiter(this, void 0, void 0, function* () {
7
+ return yield this.client.get({
8
+ path: posEndpoints.gift_card.GET_CHECK_GIFT_CARD,
9
+ query: data
10
+ });
11
+ });
12
+ }
13
+ static postResetGiftCard(data) {
14
+ return __awaiter(this, void 0, void 0, function* () {
15
+ return yield this.client.post({
16
+ path: posEndpoints.gift_card.POST_RESET_GIFT_CARD,
17
+ data: data
18
+ });
19
+ });
20
+ }
21
+ }