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,21 @@
1
+ import { __awaiter } from "tslib";
2
+ import * as posEndpoints from "../endpoint";
3
+ import Base from "../../../base/Base";
4
+ export default class Income extends Base {
5
+ static getIncomeHistory(data) {
6
+ return __awaiter(this, void 0, void 0, function* () {
7
+ return yield this.client.get({
8
+ path: posEndpoints.income.GET_INCOME_HISTORY,
9
+ query: data
10
+ });
11
+ });
12
+ }
13
+ static getStaffDailyIncome(data) {
14
+ return __awaiter(this, void 0, void 0, function* () {
15
+ return yield this.client.get({
16
+ path: posEndpoints.income.GET_STAFF_DAILY_INCOME,
17
+ query: data
18
+ });
19
+ });
20
+ }
21
+ }
@@ -0,0 +1,22 @@
1
+ export { default as Appointment } from "./appointment";
2
+ export { default as BatchHistory } from "./batch_history";
3
+ export { default as Business } from "./business";
4
+ export { default as Call } from "./call";
5
+ export { default as Category } from "./category";
6
+ export { default as CheckIn } from "./check_in";
7
+ export { default as CheckOut } from "./check_out";
8
+ export { default as Combo } from "./combo";
9
+ export { default as Customer } from "./customer";
10
+ export { default as GiftCard } from "./gift_card";
11
+ export { default as Income } from "./income";
12
+ export { default as KeyStorage } from "./key_storage";
13
+ export { default as Order } from "./order";
14
+ export { default as Payroll } from "./payroll";
15
+ export { default as Printer } from "./printer";
16
+ export { default as Service } from "./service";
17
+ export { default as SettingTurn } from "./setting_turn";
18
+ export { default as Staff } from "./staff";
19
+ export { default as Ticket } from "./ticket";
20
+ export { default as TimeKeeping } from "./time_keeping";
21
+ export { default as UnsubscribeContact } from "./unsubscribe_contact";
22
+ export { default as User } from "./user";
@@ -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 KeyStorage extends Base {
5
+ static getKeyStorage(data) {
6
+ return __awaiter(this, void 0, void 0, function* () {
7
+ return yield this.client.get({
8
+ path: posEndpoints.key_storage.GET_KEY_STORAGE,
9
+ query: data
10
+ });
11
+ });
12
+ }
13
+ }
@@ -0,0 +1,82 @@
1
+ import { __awaiter } from "tslib";
2
+ import * as posEndpoints from "../endpoint";
3
+ import Base from "../../../base/Base";
4
+ import FileDownload from "js-file-download";
5
+ import { formatExportDateString } from "../../../utils/date-time";
6
+ import dayjs from 'dayjs';
7
+ export default class Order extends Base {
8
+ static getCheckingList(data) {
9
+ return __awaiter(this, void 0, void 0, function* () {
10
+ return yield this.client.get({
11
+ path: posEndpoints.order.GET_CHECKIN_LIST,
12
+ query: data
13
+ });
14
+ });
15
+ }
16
+ static getOrderDetail(data) {
17
+ return __awaiter(this, void 0, void 0, function* () {
18
+ return yield this.client.get({
19
+ path: posEndpoints.order.GET_ORDER_DETAIL,
20
+ query: data
21
+ });
22
+ });
23
+ }
24
+ static getOrderHistoryList(data) {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ return yield this.client.get({
27
+ path: posEndpoints.order.GET_ORDER_HISTORY_LIST,
28
+ query: data
29
+ });
30
+ });
31
+ }
32
+ static getReportChecking(data) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ return yield this.client.get({
35
+ path: posEndpoints.order.GET_REPORT_CHECKIN,
36
+ query: data
37
+ });
38
+ });
39
+ }
40
+ // public static async removeCheckingItem(data: InputDataType.GetIncomeHistory) {
41
+ // return await this.client.post(
42
+ // {
43
+ // path: posEndpoints.order.REMOVE_CHECKIN_ITEM,
44
+ // data: data
45
+ // }
46
+ // );
47
+ // }
48
+ static updateOrderStaff(data) {
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ return yield this.client.post({
51
+ path: posEndpoints.order.UPDATE_ORDER_STAFF,
52
+ data: data
53
+ });
54
+ });
55
+ }
56
+ // public static async checkPassword(data: InputDataType.GetIncomeHistory) {
57
+ // return await this.client.get(
58
+ // {
59
+ // path: posEndpoints.order.CHECK_PASSWORD,
60
+ // query: data
61
+ // }
62
+ // );
63
+ // }
64
+ static removeOrder(data) {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ return yield this.client.post({
67
+ path: posEndpoints.order.REMOVE_ORDER,
68
+ data: data
69
+ });
70
+ });
71
+ }
72
+ static exportOrder(data) {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ const response = yield this.client.get({
75
+ path: posEndpoints.order.EXPORT_ORDER,
76
+ query: data
77
+ });
78
+ let dateFormat = formatExportDateString();
79
+ FileDownload(response, `export-orders-${dayjs().format(dateFormat)}.xls`);
80
+ });
81
+ }
82
+ }
@@ -0,0 +1,142 @@
1
+ import { __awaiter } from "tslib";
2
+ import * as posEndpoints from "../endpoint";
3
+ import Base from "../../../base/Base";
4
+ import FileDownload from "js-file-download";
5
+ import dayjs from "dayjs";
6
+ import { formatExportDateString } from "../../../utils/date-time";
7
+ export default class Payroll extends Base {
8
+ static getPayrollList(data) {
9
+ return __awaiter(this, void 0, void 0, function* () {
10
+ return yield this.client.get({
11
+ path: posEndpoints.payroll.GET_PAYROLL_LIST,
12
+ query: data
13
+ });
14
+ });
15
+ }
16
+ static getPayrollSetting(data) {
17
+ return __awaiter(this, void 0, void 0, function* () {
18
+ return yield this.client.get({
19
+ path: posEndpoints.payroll.GET_PAYROLL_SETTING,
20
+ query: data
21
+ });
22
+ });
23
+ }
24
+ static approvePayroll(data) {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ return yield this.client.post({
27
+ path: posEndpoints.payroll.APPROVE_PAYROLL,
28
+ data: data
29
+ });
30
+ });
31
+ }
32
+ static updatePayrollSetting(data) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ return yield this.client.post({
35
+ path: posEndpoints.payroll.UPDATE_PAYROLL_SETTING,
36
+ data: data
37
+ });
38
+ });
39
+ }
40
+ static getDiscountSetting(data) {
41
+ return __awaiter(this, void 0, void 0, function* () {
42
+ return yield this.client.get({
43
+ path: posEndpoints.payroll.GET_DISCOUNT_SETTING,
44
+ query: data
45
+ });
46
+ });
47
+ }
48
+ static updateDiscountSetting(data) {
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ return yield this.client.post({
51
+ path: posEndpoints.payroll.UPDATE_DISCOUNT_SETTING,
52
+ data: data
53
+ });
54
+ });
55
+ }
56
+ static getCashDiscountSetting(data) {
57
+ return __awaiter(this, void 0, void 0, function* () {
58
+ return yield this.client.get({
59
+ path: posEndpoints.payroll.GET_CASH_DISCOUNT_SETTING,
60
+ query: data
61
+ });
62
+ });
63
+ }
64
+ static updateCashDiscountSetting(data) {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ return yield this.client.post({
67
+ path: posEndpoints.payroll.UPDATE_CASH_DISCOUNT_SETTING,
68
+ data: data
69
+ });
70
+ });
71
+ }
72
+ static getIncomeDetail(data) {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ return yield this.client.get({
75
+ path: posEndpoints.payroll.GET_INCOME_DETAIL,
76
+ query: data
77
+ });
78
+ });
79
+ }
80
+ static getApprovePayroll(data) {
81
+ return __awaiter(this, void 0, void 0, function* () {
82
+ return yield this.client.get({
83
+ path: posEndpoints.payroll.GET_APPROVE_PAYROLL,
84
+ query: data
85
+ });
86
+ });
87
+ }
88
+ static exportPayroll(data) {
89
+ return __awaiter(this, void 0, void 0, function* () {
90
+ const response = yield this.client.get({
91
+ path: posEndpoints.payroll.EXPORT_PAYROLL,
92
+ query: data
93
+ });
94
+ const exportDateFormat = formatExportDateString();
95
+ FileDownload(response.data, `${dayjs().format(exportDateFormat)}.xlsx`, 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
96
+ });
97
+ }
98
+ static exportApprovePayroll(data) {
99
+ return __awaiter(this, void 0, void 0, function* () {
100
+ const response = yield this.client.get({
101
+ path: posEndpoints.payroll.EXPORT_APPROVE_PAYROLL,
102
+ query: data
103
+ });
104
+ const exportDateFormat = formatExportDateString();
105
+ FileDownload(response.data, `${dayjs().format(exportDateFormat)}.xlsx`, 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
106
+ });
107
+ }
108
+ static exportIncomeDetail(data) {
109
+ return __awaiter(this, void 0, void 0, function* () {
110
+ const response = yield this.client.get({
111
+ path: posEndpoints.payroll.EXPORT_INCOME_DETAIL,
112
+ query: data
113
+ });
114
+ const exportDateFormat = formatExportDateString();
115
+ FileDownload(response.data, `${dayjs().format(exportDateFormat)}.xlsx`, 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
116
+ });
117
+ }
118
+ static getSalaryChart(data) {
119
+ return __awaiter(this, void 0, void 0, function* () {
120
+ return yield this.client.get({
121
+ path: posEndpoints.payroll.GET_SALARY_CHART,
122
+ query: data
123
+ });
124
+ });
125
+ }
126
+ static getAppListPayroll(data) {
127
+ return __awaiter(this, void 0, void 0, function* () {
128
+ return yield this.client.get({
129
+ path: posEndpoints.payroll.GET_APP_LIST_PAYROLL,
130
+ query: data
131
+ });
132
+ });
133
+ }
134
+ static getPayrollDetail(data) {
135
+ return __awaiter(this, void 0, void 0, function* () {
136
+ return yield this.client.get({
137
+ path: posEndpoints.payroll.GET_PAYROLL_DETAIL,
138
+ query: data
139
+ });
140
+ });
141
+ }
142
+ }
@@ -0,0 +1,37 @@
1
+ import { __awaiter } from "tslib";
2
+ import * as posEndpoints from "../endpoint";
3
+ import Base from "../../../base/Base";
4
+ export default class Printer extends Base {
5
+ static getPrinterList(data) {
6
+ return __awaiter(this, void 0, void 0, function* () {
7
+ return yield this.client.get({
8
+ path: posEndpoints.printer.GET_PRINTER_LIST,
9
+ query: data
10
+ });
11
+ });
12
+ }
13
+ static getPrinterDetail(data) {
14
+ return __awaiter(this, void 0, void 0, function* () {
15
+ return yield this.client.get({
16
+ path: posEndpoints.printer.GET_PRINTER_LIST,
17
+ query: data
18
+ });
19
+ });
20
+ }
21
+ static createPrinterInfo(data) {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ return yield this.client.post({
24
+ path: posEndpoints.printer.GET_PRINTER_LIST,
25
+ data: data
26
+ });
27
+ });
28
+ }
29
+ static updatePrinterInfo(data) {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ return yield this.client.get({
32
+ path: posEndpoints.printer.GET_PRINTER_LIST,
33
+ query: data
34
+ });
35
+ });
36
+ }
37
+ }
@@ -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 Service extends Base {
5
+ static getServiceList(data) {
6
+ return __awaiter(this, void 0, void 0, function* () {
7
+ return yield this.client.get({
8
+ path: posEndpoints.service.GET_SERVICE_LIST,
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 SettingTurn extends Base {
5
+ static getTurnValue(data) {
6
+ return __awaiter(this, void 0, void 0, function* () {
7
+ return yield this.client.get({
8
+ path: posEndpoints.setting_turn.GET_TURN_VALUE,
9
+ query: data
10
+ });
11
+ });
12
+ }
13
+ static postTurnUpdateValue(data) {
14
+ return __awaiter(this, void 0, void 0, function* () {
15
+ return yield this.client.post({
16
+ path: posEndpoints.setting_turn.POST_TURN_UPDATE_VALUE,
17
+ data: 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 Staff extends Base {
5
+ static getStaffList(data) {
6
+ return __awaiter(this, void 0, void 0, function* () {
7
+ return yield this.client.get({
8
+ path: posEndpoints.staff.GET_STAFF_LIST,
9
+ query: data
10
+ });
11
+ });
12
+ }
13
+ static getStaffListByCheckout(data) {
14
+ return __awaiter(this, void 0, void 0, function* () {
15
+ return yield this.client.get({
16
+ path: posEndpoints.staff.GET_STAFF_LIST_BY_CHECKOUT,
17
+ query: data
18
+ });
19
+ });
20
+ }
21
+ }
@@ -0,0 +1,70 @@
1
+ import { __awaiter } from "tslib";
2
+ import * as posEndpoints from "../endpoint";
3
+ import Base from "../../../base/Base";
4
+ export default class Ticket extends Base {
5
+ static getTicketList(data) {
6
+ return __awaiter(this, void 0, void 0, function* () {
7
+ return yield this.client.get({
8
+ path: posEndpoints.ticket.GET_TICKET_LIST,
9
+ query: data
10
+ });
11
+ });
12
+ }
13
+ // public static async getBlockList(data: InputDataType.GetBlockList) {
14
+ // return await this.client.get(
15
+ // {
16
+ // path: posEndpoints.ticket.GET_BLOCK_LIST,
17
+ // query: data
18
+ // }
19
+ // );
20
+ // }
21
+ static createTicketTemplate(data) {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ return yield this.client.post({
24
+ path: posEndpoints.ticket.CREATE_TICKET_TEMPLATE,
25
+ data: data
26
+ });
27
+ });
28
+ }
29
+ static deleteTicketTemplate(data) {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ return yield this.client.get({
32
+ path: posEndpoints.ticket.DELETE_TICKET_TEMPLATE,
33
+ query: data
34
+ });
35
+ });
36
+ }
37
+ static updateTicketTemplate(data) {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ return yield this.client.post({
40
+ path: posEndpoints.ticket.UPDATE_TICKET_TEMPLATE,
41
+ query: data,
42
+ data: data,
43
+ });
44
+ });
45
+ }
46
+ static moveSubject(data) {
47
+ return __awaiter(this, void 0, void 0, function* () {
48
+ return yield this.client.post({
49
+ path: posEndpoints.ticket.MOVE_SUBJECT,
50
+ data: data
51
+ });
52
+ });
53
+ }
54
+ static setDefaultTicketTemplate(data) {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ return yield this.client.post({
57
+ path: posEndpoints.ticket.SET_DEFAULT_TICKET_TEMPLATE,
58
+ data: data
59
+ });
60
+ });
61
+ }
62
+ static getTicketTemplate(data) {
63
+ return __awaiter(this, void 0, void 0, function* () {
64
+ return yield this.client.get({
65
+ path: posEndpoints.ticket.GET_TICKET_TEMPLATE,
66
+ query: data
67
+ });
68
+ });
69
+ }
70
+ }
@@ -0,0 +1,61 @@
1
+ import { __awaiter } from "tslib";
2
+ import * as posEndpoints from "../endpoint";
3
+ import Base from "../../../base/Base";
4
+ export default class TimeKeeping extends Base {
5
+ static getTimeKeepingList(data) {
6
+ return __awaiter(this, void 0, void 0, function* () {
7
+ return yield this.client.get({
8
+ path: posEndpoints.time_keeping.GET_TIME_KEEPING_LIST,
9
+ query: data
10
+ });
11
+ });
12
+ }
13
+ static addTimeKeeping(data) {
14
+ return __awaiter(this, void 0, void 0, function* () {
15
+ return yield this.client.post({
16
+ path: posEndpoints.time_keeping.ADD_TIME_KEEPING,
17
+ data: data
18
+ });
19
+ });
20
+ }
21
+ static updateTimeKeeping(data) {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ return yield this.client.post({
24
+ path: posEndpoints.time_keeping.UPDATE_TIME_KEEPING,
25
+ data: data
26
+ });
27
+ });
28
+ }
29
+ static removeTimeKeeping(data) {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ return yield this.client.post({
32
+ path: posEndpoints.time_keeping.REMOVE_TIME_KEEPING,
33
+ data: data
34
+ });
35
+ });
36
+ }
37
+ static getTimeKeepingListStaff(data) {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ return yield this.client.get({
40
+ path: posEndpoints.time_keeping.GET_TIME_KEEPING_LIST_STAFF,
41
+ query: data
42
+ });
43
+ });
44
+ }
45
+ static postTimeKeepingCheckIn(data) {
46
+ return __awaiter(this, void 0, void 0, function* () {
47
+ return yield this.client.post({
48
+ path: posEndpoints.time_keeping.POST_TIME_KEEPING_CHECK_IN,
49
+ data: data
50
+ });
51
+ });
52
+ }
53
+ static postTimeKeepingCheckOut(data) {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ return yield this.client.post({
56
+ path: posEndpoints.time_keeping.POST_TIME_KEEPING_CHECK_OUT,
57
+ data: data
58
+ });
59
+ });
60
+ }
61
+ }
@@ -0,0 +1,4 @@
1
+ import Base from "../../../base/Base";
2
+ // import * as InputDataType from "../../types"
3
+ export default class UnsubscribeContact extends Base {
4
+ }
@@ -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 User extends Base {
5
+ static postLogin(data) {
6
+ return __awaiter(this, void 0, void 0, function* () {
7
+ return yield this.client.post({
8
+ path: posEndpoints.user.POST_LOGIN_API,
9
+ data: data
10
+ });
11
+ });
12
+ }
13
+ }
@@ -0,0 +1,5 @@
1
+ export default {
2
+ POST_CREATE_APPOINTMENT: '/v1/pos/appointment/appointment/form/create',
3
+ GET_CATEGORY_LIST_APPOINTMENT: '/v1/pos/gocheckin/service/site/list-by-category',
4
+ GET_STAFF_LIST_APPOINTMENT: '/v1/pos/gocheckin/staff/site/list',
5
+ };
@@ -0,0 +1,4 @@
1
+ export default {
2
+ GET_BATCH_HISTORY: "/v1/pos/history/site/batch-history",
3
+ GET_BATCH_DETAIL: "/v1/pos/history/site/batch-detail"
4
+ };
@@ -0,0 +1,4 @@
1
+ export default {
2
+ GET_BUSINESS_INFO: '/v1/pos/business/site/get-info',
3
+ POST_BUSINESS_UPDATE_INFO: '/v1/pos/business/form/update',
4
+ };
@@ -0,0 +1,4 @@
1
+ export default {
2
+ SEND_SMS: '/v1/pos/call/form/send-sms',
3
+ // GET_SMS_TEMPLATE: '/v1/pos/call/site/get-sms-call-template',
4
+ };
@@ -0,0 +1,3 @@
1
+ export default {
2
+ GET_CATEGORY_LIST_ITEM: '/v1/pos/category/site/list-item',
3
+ };
@@ -0,0 +1,7 @@
1
+ export default {
2
+ POST_CHECK_IN_FORM_SUBMIT: '/v1/pos/checkin/form/submit',
3
+ GET_CHECK_IN_LIST: '/v1/pos/checkin/site/list',
4
+ GET_CHECK_IN_REPORT: '/v1/pos/checkin/site/report',
5
+ GET_LAST_CHECK_IN: '/v1/pos/checkin/site/check-update',
6
+ GET_CHECK_IN_INFO: '/v1/pos/checkin/site/info',
7
+ };
@@ -0,0 +1,31 @@
1
+ export default {
2
+ GET_ITEM_LIST: '/v1/pos/item/site/list',
3
+ GET_CHECK_OUT_HISTORY_LIST: '/v1/pos/checkout/history/list',
4
+ GET_CHECK_OUT_INFO: '/v1/pos/checkout/site/info',
5
+ GET_CHECKOUT_HISTORY_INFO: '/v1/pos/checkout/history/info',
6
+ GET_CHECKOUT_BATCH_CLOSE_SUMMARY: '/v1/pos/checkout/site/get-batch-close-summary',
7
+ POST_CHECKOUT_ADD_ITEM: '/v1/pos/checkout/item/add',
8
+ POST_CHECKOUT_REMOVE_ITEM: '/v1/pos/checkout/item/remove',
9
+ POST_CHECKOUT_SUBMIT_ORDER: '/v1/pos/checkout/payment/submit',
10
+ POST_CHECKOUT_UPDATE_STATUS: '/v1/pos/checkout/form/update-status',
11
+ POST_CHECKOUT_UPDATE_ORDER_WITH_CREDIT_CARD_PAYMENT: '/v1/pos/checkout/form/update-order-with-credit-card-payment',
12
+ POST_CHECKOUT_DO_AUTH: '/v1/pos/checkout/form/do-auth',
13
+ POST_CHECKOUT_VOID_PAYMENT: '/v1/pos/checkout/form/void-payment',
14
+ POST_CHECKOUT_REFUND_PAYMENT: '/v1/pos/checkout/form/refund-payment',
15
+ POST_CHECKOUT_ADJUST_TIP_PAYMENT: '/v1/pos/checkout/form/adjust-tip',
16
+ POST_CHECKOUT_CLOSE_OUT: '/v1/pos/checkout/form/closeout',
17
+ POST_CHECKOUT_UPDATE_IS_WAITING: '/v1/pos/checkout/form/update-is-wait',
18
+ POST_CHECKOUT_DISCOUNT_PROMOTION: '/v1/pos/checkout/discount/promotion',
19
+ POST_CHECKOUT_DISCOUNT_REDEEM: '/v1/pos/checkout/discount/redeem',
20
+ POST_CHECKOUT_UPDATE_TIP_DATA: '/v1/pos/checkout/tip/update',
21
+ POST_CHECKOUT_ITEM_ADJUST_PRICE: '/v1/pos/checkout/item/adjust-price',
22
+ POST_CHECKOUT_UPDATE_PAYMENT_DATA: '/v1/pos/checkout/form/update-payment-data',
23
+ POST_CHECKOUT_ITEM_ADD_COMBO: '/v1/pos/checkout/item/add-combo',
24
+ GET_CHECKOUT_RESEND_RATING: '/v1/pos/checkout/form/send-mercure',
25
+ POST_CUSTOMER_ACH_AVAILABLE: '/v1/pos/ach/form/check-customer',
26
+ POST_ACH_RESEND: '/v1/pos/ach/form/resend-transaction',
27
+ POST_ACH_VOID: '/v1/pos/ach/form/cancel-transaction',
28
+ POST_UPDATE_ORDER_SUCCESS_TO_SETTLED: '/v1/pos/checkout/form/update-success-to-settled',
29
+ POST_CALCULATE_TAX: '/v1/pos/checkout/form/calculate-tax',
30
+ POST_CALCULATE_PAYMENT: '/v1/pos/checkout/form/calculate-payment',
31
+ };
@@ -0,0 +1,3 @@
1
+ export default {
2
+ GET_COMBO_SITE_INFO: '/v1/pos/combo/site/info',
3
+ };
@@ -0,0 +1,4 @@
1
+ export default {
2
+ GET_CUSTOMER_LIST: '/v1/pos/customer/site/list',
3
+ GET_CUSTOMER_DETAIL: '/v1/pos/customer/site/detail',
4
+ };
@@ -0,0 +1,4 @@
1
+ export default {
2
+ GET_CHECK_GIFT_CARD: '/v1/pos/giftcard/site/check-gift-card',
3
+ POST_RESET_GIFT_CARD: '/v1/pos/checkout/item/reset-gift-card',
4
+ };
@@ -0,0 +1,4 @@
1
+ export default {
2
+ GET_INCOME_HISTORY: "/v1/pos/history/site/income-history",
3
+ GET_STAFF_DAILY_INCOME: "/v1/pos/staff/site/list-income-v1",
4
+ };
@@ -0,0 +1,22 @@
1
+ export { default as appointment } from "./appointment";
2
+ export { default as batch_history } from "./batch_history";
3
+ export { default as business } from "./business";
4
+ export { default as call } from "./call";
5
+ export { default as category } from "./category";
6
+ export { default as check_in } from "./check_in";
7
+ export { default as check_out } from "./check_out";
8
+ export { default as combo } from "./combo";
9
+ export { default as customer } from "./customer";
10
+ export { default as gift_card } from "./gift_card";
11
+ export { default as income } from "./income";
12
+ export { default as key_storage } from "./key_storage";
13
+ export { default as order } from "./order";
14
+ export { default as payroll } from "./payroll";
15
+ export { default as printer } from "./printer";
16
+ export { default as service } from "./service";
17
+ export { default as setting_turn } from "./setting_turn";
18
+ export { default as staff } from "./staff";
19
+ export { default as ticket } from "./ticket";
20
+ export { default as time_keeping } from "./time_keeping";
21
+ export { default as unsubscribe_contact } from "./unsubscribe_contact";
22
+ export { default as user } from "./user";
@@ -0,0 +1,3 @@
1
+ export default {
2
+ GET_KEY_STORAGE: '/v1/pos/user/site/get-key-storage',
3
+ };