gap-nodejs-sdk 1.0.21 → 1.0.24

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 (225) hide show
  1. package/dist/gap-sdk.js +1 -1
  2. package/dist/pos_client_api/1.0.0/api/batch_history.d.ts +3 -2
  3. package/dist/pos_client_api/1.0.0/api/batch_history.d.ts.map +1 -1
  4. package/dist/pos_client_api/1.0.0/api/batch_history.js +6 -2
  5. package/dist/pos_client_api/1.0.0/api/business.d.ts +3 -2
  6. package/dist/pos_client_api/1.0.0/api/business.d.ts.map +1 -1
  7. package/dist/pos_client_api/1.0.0/api/business.js +5 -2
  8. package/dist/pos_client_api/1.0.0/api/call.d.ts +1 -1
  9. package/dist/pos_client_api/1.0.0/api/call.d.ts.map +1 -1
  10. package/dist/pos_client_api/1.0.0/api/call.js +2 -1
  11. package/dist/pos_client_api/1.0.0/api/category.d.ts +2 -1
  12. package/dist/pos_client_api/1.0.0/api/category.d.ts.map +1 -1
  13. package/dist/pos_client_api/1.0.0/api/category.js +4 -1
  14. package/dist/pos_client_api/1.0.0/api/check_in.d.ts +2 -2
  15. package/dist/pos_client_api/1.0.0/api/check_in.d.ts.map +1 -1
  16. package/dist/pos_client_api/1.0.0/api/check_in.js +6 -2
  17. package/dist/pos_client_api/1.0.0/api/check_out.d.ts +6 -6
  18. package/dist/pos_client_api/1.0.0/api/check_out.d.ts.map +1 -1
  19. package/dist/pos_client_api/1.0.0/api/check_out.js +18 -5
  20. package/dist/pos_client_api/1.0.0/api/combo.d.ts +2 -1
  21. package/dist/pos_client_api/1.0.0/api/combo.d.ts.map +1 -1
  22. package/dist/pos_client_api/1.0.0/api/combo.js +4 -1
  23. package/dist/pos_client_api/1.0.0/api/customer.d.ts +1 -1
  24. package/dist/pos_client_api/1.0.0/api/customer.d.ts.map +1 -1
  25. package/dist/pos_client_api/1.0.0/api/customer.js +2 -1
  26. package/dist/pos_client_api/1.0.0/api/gift_card.d.ts +3 -2
  27. package/dist/pos_client_api/1.0.0/api/gift_card.d.ts.map +1 -1
  28. package/dist/pos_client_api/1.0.0/api/gift_card.js +6 -2
  29. package/dist/pos_client_api/1.0.0/api/index.d.ts +0 -1
  30. package/dist/pos_client_api/1.0.0/api/index.d.ts.map +1 -1
  31. package/dist/pos_client_api/1.0.0/api/index.js +0 -1
  32. package/dist/pos_client_api/1.0.0/api/key_storage.d.ts +2 -1
  33. package/dist/pos_client_api/1.0.0/api/key_storage.d.ts.map +1 -1
  34. package/dist/pos_client_api/1.0.0/api/key_storage.js +4 -1
  35. package/dist/pos_client_api/1.0.0/api/order.d.ts +5 -5
  36. package/dist/pos_client_api/1.0.0/api/order.d.ts.map +1 -1
  37. package/dist/pos_client_api/1.0.0/api/order.js +18 -4
  38. package/dist/pos_client_api/1.0.0/api/payroll.d.ts +15 -14
  39. package/dist/pos_client_api/1.0.0/api/payroll.d.ts.map +1 -1
  40. package/dist/pos_client_api/1.0.0/api/payroll.js +36 -11
  41. package/dist/pos_client_api/1.0.0/api/printer.d.ts +5 -4
  42. package/dist/pos_client_api/1.0.0/api/printer.d.ts.map +1 -1
  43. package/dist/pos_client_api/1.0.0/api/printer.js +17 -8
  44. package/dist/pos_client_api/1.0.0/api/service.d.ts +2 -1
  45. package/dist/pos_client_api/1.0.0/api/service.d.ts.map +1 -1
  46. package/dist/pos_client_api/1.0.0/api/service.js +4 -1
  47. package/dist/pos_client_api/1.0.0/api/setting_turn.d.ts +3 -2
  48. package/dist/pos_client_api/1.0.0/api/setting_turn.d.ts.map +1 -1
  49. package/dist/pos_client_api/1.0.0/api/setting_turn.js +7 -2
  50. package/dist/pos_client_api/1.0.0/api/staff.d.ts +3 -2
  51. package/dist/pos_client_api/1.0.0/api/staff.d.ts.map +1 -1
  52. package/dist/pos_client_api/1.0.0/api/staff.js +7 -2
  53. package/dist/pos_client_api/1.0.0/api/ticket.d.ts +8 -7
  54. package/dist/pos_client_api/1.0.0/api/ticket.d.ts.map +1 -1
  55. package/dist/pos_client_api/1.0.0/api/ticket.js +19 -7
  56. package/dist/pos_client_api/1.0.0/api/time_keeping.d.ts +9 -7
  57. package/dist/pos_client_api/1.0.0/api/time_keeping.d.ts.map +1 -1
  58. package/dist/pos_client_api/1.0.0/api/time_keeping.js +20 -7
  59. package/dist/pos_client_api/1.0.0/endpoints/index.d.ts +0 -1
  60. package/dist/pos_client_api/1.0.0/endpoints/index.d.ts.map +1 -1
  61. package/dist/pos_client_api/1.0.0/endpoints/index.js +0 -1
  62. package/dist/pos_client_api/1.0.0/interfaces/batch_history.d.ts +3 -3
  63. package/dist/pos_client_api/1.0.0/interfaces/batch_history.d.ts.map +1 -1
  64. package/dist/pos_client_api/1.0.0/interfaces/business.d.ts +3 -3
  65. package/dist/pos_client_api/1.0.0/interfaces/business.d.ts.map +1 -1
  66. package/dist/pos_client_api/1.0.0/interfaces/category.d.ts +2 -2
  67. package/dist/pos_client_api/1.0.0/interfaces/category.d.ts.map +1 -1
  68. package/dist/pos_client_api/1.0.0/interfaces/check_out.d.ts +6 -7
  69. package/dist/pos_client_api/1.0.0/interfaces/check_out.d.ts.map +1 -1
  70. package/dist/pos_client_api/1.0.0/interfaces/customer.d.ts +1 -2
  71. package/dist/pos_client_api/1.0.0/interfaces/customer.d.ts.map +1 -1
  72. package/dist/pos_client_api/1.0.0/interfaces/gift_card.d.ts +4 -4
  73. package/dist/pos_client_api/1.0.0/interfaces/gift_card.d.ts.map +1 -1
  74. package/dist/pos_client_api/1.0.0/interfaces/index.d.ts +0 -1
  75. package/dist/pos_client_api/1.0.0/interfaces/index.d.ts.map +1 -1
  76. package/dist/pos_client_api/1.0.0/interfaces/key_storage.d.ts +2 -2
  77. package/dist/pos_client_api/1.0.0/interfaces/key_storage.d.ts.map +1 -1
  78. package/dist/pos_client_api/1.0.0/interfaces/order.d.ts +5 -6
  79. package/dist/pos_client_api/1.0.0/interfaces/order.d.ts.map +1 -1
  80. package/dist/pos_client_api/1.0.0/interfaces/payroll.d.ts +18 -17
  81. package/dist/pos_client_api/1.0.0/interfaces/payroll.d.ts.map +1 -1
  82. package/dist/pos_client_api/1.0.0/interfaces/printer.d.ts +5 -5
  83. package/dist/pos_client_api/1.0.0/interfaces/printer.d.ts.map +1 -1
  84. package/dist/pos_client_api/1.0.0/interfaces/service.d.ts +2 -2
  85. package/dist/pos_client_api/1.0.0/interfaces/service.d.ts.map +1 -1
  86. package/dist/pos_client_api/1.0.0/interfaces/setting_turn.d.ts +3 -3
  87. package/dist/pos_client_api/1.0.0/interfaces/setting_turn.d.ts.map +1 -1
  88. package/dist/pos_client_api/1.0.0/interfaces/staff.d.ts +3 -3
  89. package/dist/pos_client_api/1.0.0/interfaces/staff.d.ts.map +1 -1
  90. package/dist/pos_client_api/1.0.0/interfaces/ticket.d.ts +8 -8
  91. package/dist/pos_client_api/1.0.0/interfaces/ticket.d.ts.map +1 -1
  92. package/dist/pos_client_api/1.0.0/interfaces/time_keeping.d.ts +9 -8
  93. package/dist/pos_client_api/1.0.0/interfaces/time_keeping.d.ts.map +1 -1
  94. package/dist/pos_client_api/1.0.0/models/batch_history.d.ts +4 -0
  95. package/dist/pos_client_api/1.0.0/models/batch_history.d.ts.map +1 -0
  96. package/dist/pos_client_api/1.0.0/models/batch_history.js +84 -0
  97. package/dist/pos_client_api/1.0.0/models/business.d.ts +3 -0
  98. package/dist/pos_client_api/1.0.0/models/business.d.ts.map +1 -0
  99. package/dist/pos_client_api/1.0.0/models/business.js +17 -0
  100. package/dist/pos_client_api/1.0.0/models/category.d.ts +3 -0
  101. package/dist/pos_client_api/1.0.0/models/category.d.ts.map +1 -0
  102. package/dist/pos_client_api/1.0.0/models/category.js +30 -0
  103. package/dist/pos_client_api/1.0.0/models/check_in.d.ts +2 -0
  104. package/dist/pos_client_api/1.0.0/models/check_in.d.ts.map +1 -1
  105. package/dist/pos_client_api/1.0.0/models/check_in.js +18 -0
  106. package/dist/pos_client_api/1.0.0/models/check_out.d.ts +3 -0
  107. package/dist/pos_client_api/1.0.0/models/check_out.d.ts.map +1 -1
  108. package/dist/pos_client_api/1.0.0/models/check_out.js +379 -0
  109. package/dist/pos_client_api/1.0.0/models/combo.d.ts +3 -0
  110. package/dist/pos_client_api/1.0.0/models/combo.d.ts.map +1 -0
  111. package/dist/pos_client_api/1.0.0/models/combo.js +68 -0
  112. package/dist/pos_client_api/1.0.0/models/customer.d.ts +1 -0
  113. package/dist/pos_client_api/1.0.0/models/customer.d.ts.map +1 -1
  114. package/dist/pos_client_api/1.0.0/models/customer.js +14 -0
  115. package/dist/pos_client_api/1.0.0/models/gift_card.d.ts +3 -0
  116. package/dist/pos_client_api/1.0.0/models/gift_card.d.ts.map +1 -0
  117. package/dist/pos_client_api/1.0.0/models/gift_card.js +24 -0
  118. package/dist/pos_client_api/1.0.0/models/index.d.ts +12 -0
  119. package/dist/pos_client_api/1.0.0/models/index.d.ts.map +1 -1
  120. package/dist/pos_client_api/1.0.0/models/index.js +12 -0
  121. package/dist/pos_client_api/1.0.0/models/key_storage.d.ts +3 -0
  122. package/dist/pos_client_api/1.0.0/models/key_storage.d.ts.map +1 -0
  123. package/dist/pos_client_api/1.0.0/models/key_storage.js +45 -0
  124. package/dist/pos_client_api/1.0.0/models/order.d.ts +2 -0
  125. package/dist/pos_client_api/1.0.0/models/order.d.ts.map +1 -1
  126. package/dist/pos_client_api/1.0.0/models/order.js +34 -0
  127. package/dist/pos_client_api/1.0.0/models/payroll.d.ts +7 -0
  128. package/dist/pos_client_api/1.0.0/models/payroll.d.ts.map +1 -1
  129. package/dist/pos_client_api/1.0.0/models/payroll.js +144 -0
  130. package/dist/pos_client_api/1.0.0/models/printer.d.ts +5 -0
  131. package/dist/pos_client_api/1.0.0/models/printer.d.ts.map +1 -0
  132. package/dist/pos_client_api/1.0.0/models/printer.js +45 -0
  133. package/dist/pos_client_api/1.0.0/models/service.d.ts +3 -0
  134. package/dist/pos_client_api/1.0.0/models/service.d.ts.map +1 -0
  135. package/dist/pos_client_api/1.0.0/models/service.js +18 -0
  136. package/dist/pos_client_api/1.0.0/models/setting_turn.d.ts +3 -0
  137. package/dist/pos_client_api/1.0.0/models/setting_turn.d.ts.map +1 -0
  138. package/dist/pos_client_api/1.0.0/models/setting_turn.js +3 -0
  139. package/dist/pos_client_api/1.0.0/models/staff.d.ts +4 -0
  140. package/dist/pos_client_api/1.0.0/models/staff.d.ts.map +1 -0
  141. package/dist/pos_client_api/1.0.0/models/staff.js +33 -0
  142. package/dist/pos_client_api/1.0.0/models/ticket.d.ts +4 -0
  143. package/dist/pos_client_api/1.0.0/models/ticket.d.ts.map +1 -0
  144. package/dist/pos_client_api/1.0.0/models/ticket.js +21 -0
  145. package/dist/pos_client_api/1.0.0/models/time_keeping.d.ts +4 -0
  146. package/dist/pos_client_api/1.0.0/models/time_keeping.d.ts.map +1 -0
  147. package/dist/pos_client_api/1.0.0/models/time_keeping.js +25 -0
  148. package/dist/pos_client_api/1.0.0/types/request/category.d.ts.map +1 -1
  149. package/dist/pos_client_api/1.0.0/types/request/gift_card.d.ts +1 -1
  150. package/dist/pos_client_api/1.0.0/types/request/gift_card.d.ts.map +1 -1
  151. package/dist/pos_client_api/1.0.0/types/request/income.d.ts +2 -1
  152. package/dist/pos_client_api/1.0.0/types/request/income.d.ts.map +1 -1
  153. package/dist/pos_client_api/1.0.0/types/request/index.d.ts +0 -1
  154. package/dist/pos_client_api/1.0.0/types/request/index.d.ts.map +1 -1
  155. package/dist/pos_client_api/1.0.0/types/request/index.js +0 -1
  156. package/dist/pos_client_api/1.0.0/types/request/printer.d.ts +8 -4
  157. package/dist/pos_client_api/1.0.0/types/request/printer.d.ts.map +1 -1
  158. package/dist/pos_client_api/1.0.0/types/request/staff.d.ts +1 -1
  159. package/dist/pos_client_api/1.0.0/types/request/staff.d.ts.map +1 -1
  160. package/dist/pos_client_api/1.0.0/types/request/ticket.d.ts +1 -1
  161. package/dist/pos_client_api/1.0.0/types/request/ticket.d.ts.map +1 -1
  162. package/dist/pos_client_api/1.0.0/types/response/batch_history.d.ts +78 -0
  163. package/dist/pos_client_api/1.0.0/types/response/batch_history.d.ts.map +1 -0
  164. package/dist/pos_client_api/1.0.0/types/{request/appointment.js → response/batch_history.js} +0 -0
  165. package/dist/pos_client_api/1.0.0/types/response/business.d.ts +30 -0
  166. package/dist/pos_client_api/1.0.0/types/response/business.d.ts.map +1 -0
  167. package/dist/pos_client_api/1.0.0/types/response/business.js +1 -0
  168. package/dist/pos_client_api/1.0.0/types/response/category.d.ts +26 -0
  169. package/dist/pos_client_api/1.0.0/types/response/category.d.ts.map +1 -0
  170. package/dist/pos_client_api/1.0.0/types/response/category.js +1 -0
  171. package/dist/pos_client_api/1.0.0/types/response/check_in.d.ts +12 -0
  172. package/dist/pos_client_api/1.0.0/types/response/check_in.d.ts.map +1 -1
  173. package/dist/pos_client_api/1.0.0/types/response/check_out.d.ts +328 -0
  174. package/dist/pos_client_api/1.0.0/types/response/check_out.d.ts.map +1 -1
  175. package/dist/pos_client_api/1.0.0/types/response/combo.d.ts +61 -0
  176. package/dist/pos_client_api/1.0.0/types/response/combo.d.ts.map +1 -0
  177. package/dist/pos_client_api/1.0.0/types/response/combo.js +1 -0
  178. package/dist/pos_client_api/1.0.0/types/response/customer.d.ts +11 -0
  179. package/dist/pos_client_api/1.0.0/types/response/customer.d.ts.map +1 -1
  180. package/dist/pos_client_api/1.0.0/types/response/gift_card.d.ts +23 -0
  181. package/dist/pos_client_api/1.0.0/types/response/gift_card.d.ts.map +1 -0
  182. package/dist/pos_client_api/1.0.0/types/response/gift_card.js +1 -0
  183. package/dist/pos_client_api/1.0.0/types/response/index.d.ts +12 -0
  184. package/dist/pos_client_api/1.0.0/types/response/index.d.ts.map +1 -1
  185. package/dist/pos_client_api/1.0.0/types/response/index.js +12 -0
  186. package/dist/pos_client_api/1.0.0/types/response/key_storage.d.ts +48 -0
  187. package/dist/pos_client_api/1.0.0/types/response/key_storage.d.ts.map +1 -0
  188. package/dist/pos_client_api/1.0.0/types/response/key_storage.js +1 -0
  189. package/dist/pos_client_api/1.0.0/types/response/order.d.ts +28 -0
  190. package/dist/pos_client_api/1.0.0/types/response/order.d.ts.map +1 -1
  191. package/dist/pos_client_api/1.0.0/types/response/payroll.d.ts +119 -0
  192. package/dist/pos_client_api/1.0.0/types/response/payroll.d.ts.map +1 -1
  193. package/dist/pos_client_api/1.0.0/types/response/printer.d.ts +27 -0
  194. package/dist/pos_client_api/1.0.0/types/response/printer.d.ts.map +1 -0
  195. package/dist/pos_client_api/1.0.0/types/response/printer.js +1 -0
  196. package/dist/pos_client_api/1.0.0/types/response/service.d.ts +17 -0
  197. package/dist/pos_client_api/1.0.0/types/response/service.d.ts.map +1 -0
  198. package/dist/pos_client_api/1.0.0/types/response/service.js +1 -0
  199. package/dist/pos_client_api/1.0.0/types/response/setting_turn.d.ts +4 -0
  200. package/dist/pos_client_api/1.0.0/types/response/setting_turn.d.ts.map +1 -0
  201. package/dist/pos_client_api/1.0.0/types/response/setting_turn.js +1 -0
  202. package/dist/pos_client_api/1.0.0/types/response/staff.d.ts +26 -0
  203. package/dist/pos_client_api/1.0.0/types/response/staff.d.ts.map +1 -0
  204. package/dist/pos_client_api/1.0.0/types/response/staff.js +1 -0
  205. package/dist/pos_client_api/1.0.0/types/response/ticket.d.ts +20 -0
  206. package/dist/pos_client_api/1.0.0/types/response/ticket.d.ts.map +1 -0
  207. package/dist/pos_client_api/1.0.0/types/response/ticket.js +1 -0
  208. package/dist/pos_client_api/1.0.0/types/response/time_keeping.d.ts +21 -0
  209. package/dist/pos_client_api/1.0.0/types/response/time_keeping.d.ts.map +1 -0
  210. package/dist/pos_client_api/1.0.0/types/response/time_keeping.js +1 -0
  211. package/dist/pos_client_api/PosClientApi.d.ts +0 -1
  212. package/dist/pos_client_api/PosClientApi.d.ts.map +1 -1
  213. package/dist/pos_client_api/PosClientApi.js +0 -31
  214. package/package.json +1 -1
  215. package/dist/pos_client_api/1.0.0/api/appointment.d.ts +0 -9
  216. package/dist/pos_client_api/1.0.0/api/appointment.d.ts.map +0 -1
  217. package/dist/pos_client_api/1.0.0/api/appointment.js +0 -29
  218. package/dist/pos_client_api/1.0.0/endpoints/appointment.d.ts +0 -7
  219. package/dist/pos_client_api/1.0.0/endpoints/appointment.d.ts.map +0 -1
  220. package/dist/pos_client_api/1.0.0/endpoints/appointment.js +0 -5
  221. package/dist/pos_client_api/1.0.0/interfaces/appointment.d.ts +0 -8
  222. package/dist/pos_client_api/1.0.0/interfaces/appointment.d.ts.map +0 -1
  223. package/dist/pos_client_api/1.0.0/interfaces/appointment.js +0 -2
  224. package/dist/pos_client_api/1.0.0/types/request/appointment.d.ts +0 -13
  225. package/dist/pos_client_api/1.0.0/types/request/appointment.d.ts.map +0 -1
@@ -3,22 +3,23 @@ import Base from "../../../base/Base";
3
3
  import { GapApiVersion } from "../../../base_type";
4
4
  import * as Request from "../types/request";
5
5
  import * as Response from "../types/response";
6
+ import { GetSalaryChartResponse } from "../types/response";
6
7
  export default class Payroll extends Base implements PayrollAbstractClass {
7
8
  static API_VERSION: GapApiVersion;
8
- static getPayrollList(data: Request.GetPayrollListRequest): Promise<any>;
9
- static getPayrollSetting(data: Request.GetPayrollSettingRequest): Promise<any>;
10
- static approvePayroll(data: Request.ApprovePayrollRequest): Promise<any>;
11
- static updatePayrollSetting(data: Request.UpdatePayrollSettingRequest): Promise<any>;
12
- static getDiscountSetting(data: Request.GetDiscountSettingRequest): Promise<any>;
13
- static updateDiscountSetting(data: Request.UpdateDiscountSettingRequest): Promise<any>;
14
- static getCashDiscountSetting(data: Request.GetCashDiscountSettingRequest): Promise<any>;
15
- static updateCashDiscountSetting(data: Request.UpdateCashDiscountSettingRequest): Promise<any>;
16
- static getIncomeDetail(data: Request.GetIncomeDetailRequest): Promise<any>;
17
- static getApprovePayroll(data: Request.GetApprovePayrollRequest): Promise<any>;
18
- static exportPayroll(data: Request.ExportPayrollRequest): Promise<void>;
19
- static exportApprovePayroll(data: Request.ExportApprovePayrollRequest): Promise<void>;
20
- static exportIncomeDetail(data: Request.ExportIncomeDetailRequest): Promise<void>;
21
- static getSalaryChart(data: Request.GetSalaryChartRequest): Promise<any>;
9
+ static getPayrollList(data: Request.GetPayrollListRequest): Promise<Response.GetPayrollListResponse>;
10
+ static getPayrollSetting(data: Request.GetPayrollSettingRequest): Promise<Response.GetPayrollSettingResponse>;
11
+ static approvePayroll(data: Request.ApprovePayrollRequest): Promise<null>;
12
+ static updatePayrollSetting(data: Request.UpdatePayrollSettingRequest): Promise<Response.UpdatePayrollSettingResponse>;
13
+ static getDiscountSetting(data: Request.GetDiscountSettingRequest): Promise<Response.GetDiscountSettingResponse>;
14
+ static updateDiscountSetting(data: Request.UpdateDiscountSettingRequest): Promise<Response.UpdateDiscountSettingResponse>;
15
+ static getCashDiscountSetting(data: Request.GetCashDiscountSettingRequest): Promise<Response.GetCashDiscountSettingResponse>;
16
+ static updateCashDiscountSetting(data: Request.UpdateCashDiscountSettingRequest): Promise<Response.UpdateCashDiscountSettingResponse>;
17
+ static getIncomeDetail(data: Request.GetIncomeDetailRequest): Promise<Response.GetIncomeDetailResponse>;
18
+ static getApprovePayroll(data: Request.GetApprovePayrollRequest): Promise<Response.GetApprovePayrollResponse>;
19
+ static exportPayroll(data: Request.ExportPayrollRequest): Promise<null>;
20
+ static exportApprovePayroll(data: Request.ExportApprovePayrollRequest): Promise<null>;
21
+ static exportIncomeDetail(data: Request.ExportIncomeDetailRequest): Promise<null>;
22
+ static getSalaryChart(data: Request.GetSalaryChartRequest): Promise<GetSalaryChartResponse>;
22
23
  static getAppListPayroll(data: Request.GetAppListPayrollRequest): Promise<Array<Response.GetAppListPayrollResponse>>;
23
24
  static getPayrollDetail(data: Request.GetPayrollDetailRequest): Promise<Array<Response.GetPayrollDetailResponse>>;
24
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"payroll.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/payroll.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,MAAM,uBAAuB,CAAC;AACzD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AAItC,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACjD,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;WASlD,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB;WASxD,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB;WASlD,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B;WAS9D,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,yBAAyB;WAS1D,qBAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,4BAA4B;WAShE,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,6BAA6B;WASlE,yBAAyB,CAAC,IAAI,EAAE,OAAO,CAAC,gCAAgC;WASxE,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,sBAAsB;WASpD,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB;WASxD,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,oBAAoB;WAWhD,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B;WAW9D,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,yBAAyB;WAW1D,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB;WASlD,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAC;WAU7G,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC;CASjI"}
1
+ {"version":3,"file":"payroll.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/payroll.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,MAAM,uBAAuB,CAAC;AACzD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AAItC,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAA0B,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AAGlF,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,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;WAUtG,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC;WAUlE,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAC;WAU/G,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAC;WAUzG,qBAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,4BAA4B,GAAG,OAAO,CAAC,QAAQ,CAAC,6BAA6B,CAAC;WAUlH,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,6BAA6B,GAAG,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CAAC;WAUrH,yBAAyB,CAAC,IAAI,EAAE,OAAO,CAAC,gCAAgC,GAAG,OAAO,CAAC,QAAQ,CAAC,iCAAiC,CAAC;WAU9H,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC;WAUhG,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;WAUtG,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;WAYhE,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,IAAI,CAAC;WAY9E,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;WAY1E,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC;WAUpF,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAC;WAU7G,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC;CASjI"}
@@ -6,85 +6,105 @@ import dayjs from "dayjs";
6
6
  import { formatExportDateString } from "../../../utils/date-time";
7
7
  import { GapApiVersion } from "../../../base_type";
8
8
  import * as Model from "../models";
9
+ import { SalaryChartModel } from "../models";
9
10
  export default class Payroll extends Base {
10
11
  static getPayrollList(data) {
12
+ var _a;
11
13
  return __awaiter(this, void 0, void 0, function* () {
12
- return yield this.client.get({
14
+ const response = yield this.client.get({
13
15
  path: posEndpoints.payroll.GET_PAYROLL_LIST,
14
16
  query: data
15
17
  });
18
+ return Model.PayrollModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
16
19
  });
17
20
  }
18
21
  static getPayrollSetting(data) {
22
+ var _a;
19
23
  return __awaiter(this, void 0, void 0, function* () {
20
- return yield this.client.get({
24
+ const response = yield this.client.get({
21
25
  path: posEndpoints.payroll.GET_PAYROLL_SETTING,
22
26
  query: data
23
27
  });
28
+ return Model.PayrollSettingModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
24
29
  });
25
30
  }
26
31
  static approvePayroll(data) {
27
32
  return __awaiter(this, void 0, void 0, function* () {
28
- return yield this.client.post({
33
+ const response = yield this.client.post({
29
34
  path: posEndpoints.payroll.APPROVE_PAYROLL,
30
35
  data: data
31
36
  });
37
+ return null;
32
38
  });
33
39
  }
34
40
  static updatePayrollSetting(data) {
41
+ var _a;
35
42
  return __awaiter(this, void 0, void 0, function* () {
36
- return yield this.client.post({
43
+ const response = yield this.client.post({
37
44
  path: posEndpoints.payroll.UPDATE_PAYROLL_SETTING,
38
45
  data: data
39
46
  });
47
+ return Model.PayrollSettingModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
40
48
  });
41
49
  }
42
50
  static getDiscountSetting(data) {
51
+ var _a;
43
52
  return __awaiter(this, void 0, void 0, function* () {
44
- return yield this.client.get({
53
+ const response = yield this.client.get({
45
54
  path: posEndpoints.payroll.GET_DISCOUNT_SETTING,
46
55
  query: data
47
56
  });
57
+ return Model.DiscountSettingModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
48
58
  });
49
59
  }
50
60
  static updateDiscountSetting(data) {
61
+ var _a;
51
62
  return __awaiter(this, void 0, void 0, function* () {
52
- return yield this.client.post({
63
+ const response = yield this.client.post({
53
64
  path: posEndpoints.payroll.UPDATE_DISCOUNT_SETTING,
54
65
  data: data
55
66
  });
67
+ return Model.DiscountSettingModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
56
68
  });
57
69
  }
58
70
  static getCashDiscountSetting(data) {
71
+ var _a;
59
72
  return __awaiter(this, void 0, void 0, function* () {
60
- return yield this.client.get({
73
+ const response = yield this.client.get({
61
74
  path: posEndpoints.payroll.GET_CASH_DISCOUNT_SETTING,
62
75
  query: data
63
76
  });
77
+ return Model.CashDisCountSettingModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
64
78
  });
65
79
  }
66
80
  static updateCashDiscountSetting(data) {
81
+ var _a;
67
82
  return __awaiter(this, void 0, void 0, function* () {
68
- return yield this.client.post({
83
+ const response = yield this.client.post({
69
84
  path: posEndpoints.payroll.UPDATE_CASH_DISCOUNT_SETTING,
70
85
  data: data
71
86
  });
87
+ return Model.CashDisCountSettingModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
72
88
  });
73
89
  }
74
90
  static getIncomeDetail(data) {
91
+ var _a;
75
92
  return __awaiter(this, void 0, void 0, function* () {
76
- return yield this.client.get({
93
+ const response = yield this.client.get({
77
94
  path: posEndpoints.payroll.GET_INCOME_DETAIL,
78
95
  query: data
79
96
  });
97
+ return Model.IncomeModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
80
98
  });
81
99
  }
82
100
  static getApprovePayroll(data) {
101
+ var _a;
83
102
  return __awaiter(this, void 0, void 0, function* () {
84
- return yield this.client.get({
103
+ const response = yield this.client.get({
85
104
  path: posEndpoints.payroll.GET_APPROVE_PAYROLL,
86
105
  query: data
87
106
  });
107
+ return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.ApprovePayrollModel(item));
88
108
  });
89
109
  }
90
110
  static exportPayroll(data) {
@@ -95,6 +115,7 @@ export default class Payroll extends Base {
95
115
  });
96
116
  const exportDateFormat = formatExportDateString();
97
117
  FileDownload(response.data, `${dayjs().format(exportDateFormat)}.xlsx`, 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
118
+ return null;
98
119
  });
99
120
  }
100
121
  static exportApprovePayroll(data) {
@@ -105,6 +126,7 @@ export default class Payroll extends Base {
105
126
  });
106
127
  const exportDateFormat = formatExportDateString();
107
128
  FileDownload(response.data, `${dayjs().format(exportDateFormat)}.xlsx`, 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
129
+ return null;
108
130
  });
109
131
  }
110
132
  static exportIncomeDetail(data) {
@@ -115,14 +137,17 @@ export default class Payroll extends Base {
115
137
  });
116
138
  const exportDateFormat = formatExportDateString();
117
139
  FileDownload(response.data, `${dayjs().format(exportDateFormat)}.xlsx`, 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
140
+ return null;
118
141
  });
119
142
  }
120
143
  static getSalaryChart(data) {
144
+ var _a;
121
145
  return __awaiter(this, void 0, void 0, function* () {
122
- return yield this.client.get({
146
+ const response = yield this.client.get({
123
147
  path: posEndpoints.payroll.GET_SALARY_CHART,
124
148
  query: data
125
149
  });
150
+ return SalaryChartModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
126
151
  });
127
152
  }
128
153
  static getAppListPayroll(data) {
@@ -1,10 +1,11 @@
1
1
  import PrinterAbstractClass from "../interfaces/printer";
2
2
  import Base from "../../../base/Base";
3
3
  import * as Request from "../types/request";
4
+ import * as Response from "../types/response";
4
5
  export default class Printer extends Base implements PrinterAbstractClass {
5
- static getPrinterList(data: Request.GetPrinterListRequest): Promise<any>;
6
- static getPrinterDetail(data: Request.GetPrinterDetailRequest): Promise<any>;
7
- static createPrinterInfo(data: Request.CreatePrinterInfoRequest): Promise<any>;
8
- static updatePrinterInfo(data: Request.UpdatePrinterInfoRequest): Promise<any>;
6
+ static getPrinterList(data: Request.GetPrinterListRequest): Promise<Response.GetPrinterListResponse>;
7
+ static getPrinterDetail(data: Request.GetPrinterDetailRequest): Promise<Response.GetPrinterDetailResponse>;
8
+ static createPrinterInfo(data: Request.CreatePrinterInfoRequest): Promise<Response.CreatePrinterInfoResponse>;
9
+ static updatePrinterInfo(data: Request.UpdatePrinterInfoRequest): Promise<Response.UpdatePrinterInfoResponse>;
9
10
  }
10
11
  //# sourceMappingURL=printer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"printer.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/printer.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,MAAM,uBAAuB,CAAC;AACzD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAA;AAE3C,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,IAAK,YAAW,oBAAoB;WACjD,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB;WAQlD,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB;WAQtD,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB;WAQxD,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB;CAQ/E"}
1
+ {"version":3,"file":"printer.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/printer.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,MAAM,uBAAuB,CAAC;AACzD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,IAAK,YAAW,oBAAoB;WACjD,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;WAU7F,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;WAUnG,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;WAUtG,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;CAS7H"}
@@ -1,37 +1,46 @@
1
1
  import { __awaiter } from "tslib";
2
2
  import * as posEndpoints from "../endpoints";
3
3
  import Base from "../../../base/Base";
4
+ import * as Model from "../models";
4
5
  export default class Printer extends Base {
5
6
  static getPrinterList(data) {
7
+ var _a, _b;
6
8
  return __awaiter(this, void 0, void 0, function* () {
7
- return yield this.client.get({
9
+ const response = yield this.client.get({
8
10
  path: posEndpoints.printer.GET_PRINTER_LIST,
9
11
  query: data
10
12
  });
13
+ return (((_b = (_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.items) || []).map(item => Model.PrinterModel(item));
11
14
  });
12
15
  }
13
16
  static getPrinterDetail(data) {
17
+ var _a;
14
18
  return __awaiter(this, void 0, void 0, function* () {
15
- return yield this.client.get({
16
- path: posEndpoints.printer.GET_PRINTER_LIST,
19
+ const response = yield this.client.get({
20
+ path: posEndpoints.printer.GET_PRINTER_DETAIL,
17
21
  query: data
18
22
  });
23
+ return Model.PrinterModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
19
24
  });
20
25
  }
21
26
  static createPrinterInfo(data) {
27
+ var _a;
22
28
  return __awaiter(this, void 0, void 0, function* () {
23
- return yield this.client.post({
24
- path: posEndpoints.printer.GET_PRINTER_LIST,
29
+ const response = yield this.client.post({
30
+ path: posEndpoints.printer.CREATE_PRINTER_INFO,
25
31
  data: data
26
32
  });
33
+ return Model.PrinterInfoModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
27
34
  });
28
35
  }
29
36
  static updatePrinterInfo(data) {
37
+ var _a;
30
38
  return __awaiter(this, void 0, void 0, function* () {
31
- return yield this.client.get({
32
- path: posEndpoints.printer.GET_PRINTER_LIST,
33
- query: data
39
+ const response = yield this.client.post({
40
+ path: posEndpoints.printer.UPDATE_PRINTER_INFO,
41
+ data: data
34
42
  });
43
+ return Model.UpdatePrinterInfoModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
35
44
  });
36
45
  }
37
46
  }
@@ -1,7 +1,8 @@
1
1
  import ServiceAbstractClass from "../interfaces/service";
2
2
  import Base from "../../../base/Base";
3
3
  import * as Request from "../types/request";
4
+ import * as Response from "../types/response";
4
5
  export default class Service extends Base implements ServiceAbstractClass {
5
- static getServiceList(data: Request.GetServiceListRequest): Promise<any>;
6
+ static getServiceList(data: Request.GetServiceListRequest): Promise<Response.GetServiceListResponse>;
6
7
  }
7
8
  //# sourceMappingURL=service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/service.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,MAAM,uBAAuB,CAAC;AACzD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAA;AAE3C,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,IAAK,YAAW,oBAAoB;WACjD,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB;CAQzE"}
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/service.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,MAAM,uBAAuB,CAAC;AACzD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,IAAK,YAAW,oBAAoB;WACjD,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;CASpH"}
@@ -1,13 +1,16 @@
1
1
  import { __awaiter } from "tslib";
2
2
  import * as posEndpoints from "../endpoints";
3
3
  import Base from "../../../base/Base";
4
+ import * as Model from "../models";
4
5
  export default class Service extends Base {
5
6
  static getServiceList(data) {
7
+ var _a;
6
8
  return __awaiter(this, void 0, void 0, function* () {
7
- return yield this.client.get({
9
+ const response = yield this.client.get({
8
10
  path: posEndpoints.service.GET_SERVICE_LIST,
9
11
  query: data
10
12
  });
13
+ return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.ServiceModel(item));
11
14
  });
12
15
  }
13
16
  }
@@ -1,8 +1,9 @@
1
1
  import SettingTurnAbstractClass from "../interfaces/setting_turn";
2
2
  import Base from "../../../base/Base";
3
3
  import * as Request from "../types/request";
4
+ import * as Response from "../types/response";
4
5
  export default class SettingTurn extends Base implements SettingTurnAbstractClass {
5
- static getTurnValue(data: Request.GetTurnValueRequest): Promise<any>;
6
- static postTurnUpdateValue(data: Request.PostTurnUpdateValueRequest): Promise<any>;
6
+ static getTurnValue(data: Request.GetTurnValueRequest): Promise<Response.GetSettingTurnResponse>;
7
+ static postTurnUpdateValue(data: Request.PostTurnUpdateValueRequest): Promise<Response.PostSettingTurnResponse>;
7
8
  }
8
9
  //# sourceMappingURL=setting_turn.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setting_turn.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/setting_turn.ts"],"names":[],"mappings":"AACA,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAClE,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAA;AAE3C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,IAAK,YAAW,wBAAwB;WACzD,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,mBAAmB;WAS9C,mBAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,0BAA0B;CAQnF"}
1
+ {"version":3,"file":"setting_turn.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/setting_turn.ts"],"names":[],"mappings":"AACA,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAClE,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,IAAK,YAAW,wBAAwB;WACzD,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;WAUzF,mBAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,0BAA0B,GAAG,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC;CAS/H"}
@@ -1,21 +1,26 @@
1
1
  import { __awaiter } from "tslib";
2
2
  import * as posEndpoints from "../endpoints";
3
3
  import Base from "../../../base/Base";
4
+ import * as Model from "../models";
4
5
  export default class SettingTurn extends Base {
5
6
  static getTurnValue(data) {
7
+ var _a;
6
8
  return __awaiter(this, void 0, void 0, function* () {
7
- return yield this.client.get({
9
+ const response = yield this.client.get({
8
10
  path: posEndpoints.setting_turn.GET_TURN_VALUE,
9
11
  query: data
10
12
  });
13
+ return Model.SettingTurnModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
11
14
  });
12
15
  }
13
16
  static postTurnUpdateValue(data) {
17
+ var _a;
14
18
  return __awaiter(this, void 0, void 0, function* () {
15
- return yield this.client.post({
19
+ const response = yield this.client.post({
16
20
  path: posEndpoints.setting_turn.POST_TURN_UPDATE_VALUE,
17
21
  data: data
18
22
  });
23
+ return Model.SettingTurnModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
19
24
  });
20
25
  }
21
26
  }
@@ -1,8 +1,9 @@
1
1
  import StaffAbstractClass from "../interfaces/staff";
2
2
  import Base from "../../../base/Base";
3
3
  import * as Request from "../types/request";
4
+ import * as Response from "../types/response";
4
5
  export default class Staff extends Base implements StaffAbstractClass {
5
- static getStaffList(data: Request.GetStaffListRequest): Promise<any>;
6
- static getStaffListByCheckout(data: Request.GetStaffListByCheckoutRequest): Promise<any>;
6
+ static getStaffList(data: Request.GetStaffListRequest): Promise<Response.GetStaffListResponse>;
7
+ static getStaffListByCheckout(data: Request.GetStaffListByCheckoutRequest): Promise<Response.GetStaffListByCheckoutResponse>;
7
8
  }
8
9
  //# sourceMappingURL=staff.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"staff.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/staff.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,MAAM,qBAAqB,CAAC;AACrD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAA;AAE3C,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,IAAK,YAAW,kBAAkB;WAC7C,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,mBAAmB;WAQ9C,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,6BAA6B;CAQzF"}
1
+ {"version":3,"file":"staff.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/staff.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,MAAM,qBAAqB,CAAC;AACrD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,IAAK,YAAW,kBAAkB;WAC7C,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC;WAUvF,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,6BAA6B,GAAG,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CAAC;CAS5I"}
@@ -1,21 +1,26 @@
1
1
  import { __awaiter } from "tslib";
2
2
  import * as posEndpoints from "../endpoints";
3
3
  import Base from "../../../base/Base";
4
+ import * as Model from "../models";
4
5
  export default class Staff extends Base {
5
6
  static getStaffList(data) {
7
+ var _a;
6
8
  return __awaiter(this, void 0, void 0, function* () {
7
- return yield this.client.get({
9
+ const response = yield this.client.get({
8
10
  path: posEndpoints.staff.GET_STAFF_LIST,
9
11
  query: data
10
12
  });
13
+ return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.StaffModel(item));
11
14
  });
12
15
  }
13
16
  static getStaffListByCheckout(data) {
17
+ var _a;
14
18
  return __awaiter(this, void 0, void 0, function* () {
15
- return yield this.client.get({
19
+ const response = yield this.client.get({
16
20
  path: posEndpoints.staff.GET_STAFF_LIST_BY_CHECKOUT,
17
21
  query: data
18
22
  });
23
+ return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.StaffByCheckoutModel(item));
19
24
  });
20
25
  }
21
26
  }
@@ -1,13 +1,14 @@
1
1
  import TicketAbstractClass from "../interfaces/ticket";
2
2
  import Base from "../../../base/Base";
3
3
  import * as Request from "../types/request";
4
+ import * as Response from "../types/response";
4
5
  export default class Ticket extends Base implements TicketAbstractClass {
5
- static getTicketList(data: Request.GetTicketListRequest): Promise<any>;
6
- static createTicketTemplate(data: Request.CreateTicketTemplateRequest): Promise<any>;
7
- static deleteTicketTemplate(data: Request.DeleteTicketTemplateRequest): Promise<any>;
8
- static updateTicketTemplate(data: Request.UpdateTicketTemplateRequest): Promise<any>;
9
- static moveSubject(data: Request.MoveSubjectRequest): Promise<any>;
10
- static setDefaultTicketTemplate(data: Request.SetDefaultTicketTemplateRequest): Promise<any>;
11
- static getTicketTemplate(data: Request.GetTicketTemplateRequest): Promise<any>;
6
+ static getTicketList(data: Request.GetTicketListRequest): Promise<Response.GetTicketListResponse>;
7
+ static createTicketTemplate(data: Request.CreateTicketTemplateRequest): Promise<Response.CreateTicketTemplateResponse>;
8
+ static deleteTicketTemplate(data: Request.DeleteTicketTemplateRequest): Promise<null>;
9
+ static updateTicketTemplate(data: Request.UpdateTicketTemplateRequest): Promise<Response.UpdateTicketTemplateResponse>;
10
+ static moveSubject(data: Request.MoveSubjectRequest): Promise<null>;
11
+ static setDefaultTicketTemplate(data: Request.SetDefaultTicketTemplateRequest): Promise<null>;
12
+ static getTicketTemplate(data: Request.GetTicketTemplateRequest): Promise<Response.GetTicketTemplateResponse>;
12
13
  }
13
14
  //# sourceMappingURL=ticket.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ticket.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/ticket.ts"],"names":[],"mappings":"AACA,OAAO,mBAAmB,MAAM,sBAAsB,CAAC;AACvD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAE5C,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,IAAK,YAAW,mBAAmB;WAC/C,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,oBAAoB;WAkBhD,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B;WAS9D,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B;WAS9D,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B;WAU9D,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB;WAS5C,wBAAwB,CAAC,IAAI,EAAE,OAAO,CAAC,+BAA+B;WAStE,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB;CAQ/E"}
1
+ {"version":3,"file":"ticket.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/ticket.ts"],"names":[],"mappings":"AACA,OAAO,mBAAmB,MAAM,sBAAsB,CAAC;AACvD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,IAAK,YAAW,mBAAmB;WAC/C,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC;WAmB1F,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAC;WAU/G,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,IAAI,CAAC;WAU9E,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAC;WAW/G,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;WAU5D,wBAAwB,CAAC,IAAI,EAAE,OAAO,CAAC,+BAA+B,GAAG,OAAO,CAAC,IAAI,CAAC;WAUtF,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;CAS7H"}
@@ -1,13 +1,16 @@
1
1
  import { __awaiter } from "tslib";
2
2
  import * as posEndpoints from "../endpoints";
3
3
  import Base from "../../../base/Base";
4
+ import * as Model from "../models";
4
5
  export default class Ticket extends Base {
5
6
  static getTicketList(data) {
7
+ var _a;
6
8
  return __awaiter(this, void 0, void 0, function* () {
7
- return yield this.client.get({
9
+ const response = yield this.client.get({
8
10
  path: posEndpoints.ticket.GET_TICKET_LIST,
9
11
  query: data
10
12
  });
13
+ return Model.TicketListModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
11
14
  });
12
15
  }
13
16
  // public static async getBlockList(data: InputDataType.GetBlockList) {
@@ -19,52 +22,61 @@ export default class Ticket extends Base {
19
22
  // );
20
23
  // }
21
24
  static createTicketTemplate(data) {
25
+ var _a;
22
26
  return __awaiter(this, void 0, void 0, function* () {
23
- return yield this.client.post({
27
+ const response = yield this.client.post({
24
28
  path: posEndpoints.ticket.CREATE_TICKET_TEMPLATE,
25
29
  data: data
26
30
  });
31
+ return Model.TicketModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
27
32
  });
28
33
  }
29
34
  static deleteTicketTemplate(data) {
30
35
  return __awaiter(this, void 0, void 0, function* () {
31
- return yield this.client.get({
36
+ const response = yield this.client.get({
32
37
  path: posEndpoints.ticket.DELETE_TICKET_TEMPLATE,
33
38
  query: data
34
39
  });
40
+ return null;
35
41
  });
36
42
  }
37
43
  static updateTicketTemplate(data) {
44
+ var _a;
38
45
  return __awaiter(this, void 0, void 0, function* () {
39
- return yield this.client.post({
46
+ const response = yield this.client.post({
40
47
  path: posEndpoints.ticket.UPDATE_TICKET_TEMPLATE,
41
48
  query: data,
42
49
  data: data,
43
50
  });
51
+ return Model.TicketModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
44
52
  });
45
53
  }
46
54
  static moveSubject(data) {
47
55
  return __awaiter(this, void 0, void 0, function* () {
48
- return yield this.client.post({
56
+ const response = yield this.client.post({
49
57
  path: posEndpoints.ticket.MOVE_SUBJECT,
50
58
  data: data
51
59
  });
60
+ return null;
52
61
  });
53
62
  }
54
63
  static setDefaultTicketTemplate(data) {
55
64
  return __awaiter(this, void 0, void 0, function* () {
56
- return yield this.client.post({
65
+ const response = yield this.client.post({
57
66
  path: posEndpoints.ticket.SET_DEFAULT_TICKET_TEMPLATE,
58
67
  data: data
59
68
  });
69
+ return null;
60
70
  });
61
71
  }
62
72
  static getTicketTemplate(data) {
73
+ var _a, _b;
63
74
  return __awaiter(this, void 0, void 0, function* () {
64
- return yield this.client.get({
75
+ const response = yield this.client.get({
65
76
  path: posEndpoints.ticket.GET_TICKET_TEMPLATE,
66
77
  query: data
67
78
  });
79
+ 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.TicketModel(item));
68
80
  });
69
81
  }
70
82
  }
@@ -1,13 +1,15 @@
1
1
  import TimeKeepingAbstractClass from "../interfaces/time_keeping";
2
2
  import Base from "../../../base/Base";
3
3
  import * as Request from "../types/request";
4
+ import * as Response from "../types/response";
5
+ import { GetTimeKeepingListStaffResponse } from "../types/response";
4
6
  export default class TimeKeeping extends Base implements TimeKeepingAbstractClass {
5
- static getTimeKeepingList(data: Request.GetTimeKeepingListRequest): Promise<any>;
6
- static addTimeKeeping(data: Request.AddTimeKeepingRequest): Promise<any>;
7
- static updateTimeKeeping(data: Request.UpdateTimeKeepingRequest): Promise<any>;
8
- static removeTimeKeeping(data: Request.RemoveTimeKeepingRequest): Promise<any>;
9
- static getTimeKeepingListStaff(data: Request.GetTimeKeepingListStaffRequest): Promise<any>;
10
- static postTimeKeepingCheckIn(data: Request.PostTimeKeepingCheckInRequest): Promise<any>;
11
- static postTimeKeepingCheckOut(data: Request.PostTimeKeepingCheckOutRequest): Promise<any>;
7
+ static getTimeKeepingList(data: Request.GetTimeKeepingListRequest): Promise<Response.DataWithMeta<Array<Response.GetTimeKeepingListResponse>>>;
8
+ static addTimeKeeping(data: Request.AddTimeKeepingRequest): Promise<null>;
9
+ static updateTimeKeeping(data: Request.UpdateTimeKeepingRequest): Promise<null>;
10
+ static removeTimeKeeping(data: Request.RemoveTimeKeepingRequest): Promise<null>;
11
+ static getTimeKeepingListStaff(data: Request.GetTimeKeepingListStaffRequest): Promise<Array<GetTimeKeepingListStaffResponse>>;
12
+ static postTimeKeepingCheckIn(data: Request.PostTimeKeepingCheckInRequest): Promise<null>;
13
+ static postTimeKeepingCheckOut(data: Request.PostTimeKeepingCheckOutRequest): Promise<null>;
12
14
  }
13
15
  //# sourceMappingURL=time_keeping.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"time_keeping.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/time_keeping.ts"],"names":[],"mappings":"AACA,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAClE,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAE5C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,IAAK,YAAW,wBAAwB;WACzD,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,yBAAyB;WAS1D,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB;WASlD,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB;WASxD,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB;WASxD,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC,8BAA8B;WASpE,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,6BAA6B;WASlE,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC,8BAA8B;CAQ3F"}
1
+ {"version":3,"file":"time_keeping.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/time_keeping.ts"],"names":[],"mappings":"AACA,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAClE,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAC,+BAA+B,EAAC,MAAM,mBAAmB,CAAC;AAElE,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,IAAK,YAAW,wBAAwB;WACzD,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAC,CAAC;WAavI,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB;WAUlD,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB;WAUxD,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB;WAUxD,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC,8BAA8B,GAAG,OAAO,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;WAUtH,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,6BAA6B;WAUlE,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC,8BAA8B;CAS3F"}