gap-nodejs-sdk 1.0.18 → 1.0.21

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 (539) hide show
  1. package/dist/base/Base.d.ts +1 -2
  2. package/dist/base/Base.d.ts.map +1 -1
  3. package/dist/base/Base.js +2 -2
  4. package/dist/base_type.d.ts +4 -1
  5. package/dist/base_type.d.ts.map +1 -1
  6. package/dist/error.d.ts +2 -0
  7. package/dist/error.d.ts.map +1 -1
  8. package/dist/error.js +2 -0
  9. package/dist/gap-sdk.js +1 -1
  10. package/dist/http_client/http_client.d.ts +3 -2
  11. package/dist/http_client/http_client.d.ts.map +1 -1
  12. package/dist/http_client/http_client.js +6 -1
  13. package/dist/index.d.ts +1 -1
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +1 -1
  16. package/dist/pos_client_api/1.0.0/api/appointment.d.ts +9 -0
  17. package/dist/pos_client_api/1.0.0/api/appointment.d.ts.map +1 -0
  18. package/dist/pos_client_api/{v1 → 1.0.0}/api/appointment.js +1 -1
  19. package/dist/pos_client_api/1.0.0/api/batch_history.d.ts +8 -0
  20. package/dist/pos_client_api/1.0.0/api/batch_history.d.ts.map +1 -0
  21. package/dist/pos_client_api/{v1 → 1.0.0}/api/batch_history.js +1 -1
  22. package/dist/pos_client_api/1.0.0/api/business.d.ts +8 -0
  23. package/dist/pos_client_api/1.0.0/api/business.d.ts.map +1 -0
  24. package/dist/pos_client_api/{v1 → 1.0.0}/api/business.js +1 -1
  25. package/dist/pos_client_api/1.0.0/api/call.d.ts +7 -0
  26. package/dist/pos_client_api/1.0.0/api/call.d.ts.map +1 -0
  27. package/dist/pos_client_api/{v1 → 1.0.0}/api/call.js +1 -1
  28. package/dist/pos_client_api/1.0.0/api/category.d.ts +7 -0
  29. package/dist/pos_client_api/1.0.0/api/category.d.ts.map +1 -0
  30. package/dist/pos_client_api/{v1 → 1.0.0}/api/category.js +1 -1
  31. package/dist/pos_client_api/1.0.0/api/check_in.d.ts +12 -0
  32. package/dist/pos_client_api/1.0.0/api/check_in.d.ts.map +1 -0
  33. package/dist/pos_client_api/{v1 → 1.0.0}/api/check_in.js +13 -9
  34. package/dist/pos_client_api/1.0.0/api/check_out.d.ts +36 -0
  35. package/dist/pos_client_api/1.0.0/api/check_out.d.ts.map +1 -0
  36. package/dist/pos_client_api/{v1 → 1.0.0}/api/check_out.js +8 -2
  37. package/dist/pos_client_api/1.0.0/api/combo.d.ts +7 -0
  38. package/dist/pos_client_api/1.0.0/api/combo.d.ts.map +1 -0
  39. package/dist/pos_client_api/{v1 → 1.0.0}/api/combo.js +1 -1
  40. package/dist/pos_client_api/1.0.0/api/customer.d.ts +9 -0
  41. package/dist/pos_client_api/1.0.0/api/customer.d.ts.map +1 -0
  42. package/dist/pos_client_api/{v1 → 1.0.0}/api/customer.js +5 -2
  43. package/dist/pos_client_api/1.0.0/api/gift_card.d.ts +8 -0
  44. package/dist/pos_client_api/1.0.0/api/gift_card.d.ts.map +1 -0
  45. package/dist/pos_client_api/{v1 → 1.0.0}/api/gift_card.js +1 -1
  46. package/dist/pos_client_api/1.0.0/api/income.d.ts +9 -0
  47. package/dist/pos_client_api/1.0.0/api/income.d.ts.map +1 -0
  48. package/dist/pos_client_api/1.0.0/api/income.js +26 -0
  49. package/dist/pos_client_api/{v1 → 1.0.0}/api/index.d.ts +0 -0
  50. package/dist/pos_client_api/1.0.0/api/index.d.ts.map +1 -0
  51. package/dist/pos_client_api/{v1 → 1.0.0}/api/index.js +0 -0
  52. package/dist/pos_client_api/1.0.0/api/key_storage.d.ts +7 -0
  53. package/dist/pos_client_api/1.0.0/api/key_storage.d.ts.map +1 -0
  54. package/dist/pos_client_api/{v1 → 1.0.0}/api/key_storage.js +1 -1
  55. package/dist/pos_client_api/1.0.0/api/order.d.ts +14 -0
  56. package/dist/pos_client_api/1.0.0/api/order.d.ts.map +1 -0
  57. package/dist/pos_client_api/{v1 → 1.0.0}/api/order.js +9 -5
  58. package/dist/pos_client_api/1.0.0/api/payroll.d.ts +25 -0
  59. package/dist/pos_client_api/1.0.0/api/payroll.d.ts.map +1 -0
  60. package/dist/pos_client_api/{v1 → 1.0.0}/api/payroll.js +10 -3
  61. package/dist/pos_client_api/1.0.0/api/printer.d.ts +10 -0
  62. package/dist/pos_client_api/1.0.0/api/printer.d.ts.map +1 -0
  63. package/dist/pos_client_api/{v1 → 1.0.0}/api/printer.js +1 -1
  64. package/dist/pos_client_api/1.0.0/api/service.d.ts +7 -0
  65. package/dist/pos_client_api/1.0.0/api/service.d.ts.map +1 -0
  66. package/dist/pos_client_api/{v1 → 1.0.0}/api/service.js +1 -1
  67. package/dist/pos_client_api/1.0.0/api/setting_turn.d.ts +8 -0
  68. package/dist/pos_client_api/1.0.0/api/setting_turn.d.ts.map +1 -0
  69. package/dist/pos_client_api/{v1 → 1.0.0}/api/setting_turn.js +1 -1
  70. package/dist/pos_client_api/1.0.0/api/staff.d.ts +8 -0
  71. package/dist/pos_client_api/1.0.0/api/staff.d.ts.map +1 -0
  72. package/dist/pos_client_api/{v1 → 1.0.0}/api/staff.js +1 -1
  73. package/dist/pos_client_api/1.0.0/api/ticket.d.ts +13 -0
  74. package/dist/pos_client_api/1.0.0/api/ticket.d.ts.map +1 -0
  75. package/dist/pos_client_api/{v1 → 1.0.0}/api/ticket.js +1 -1
  76. package/dist/pos_client_api/1.0.0/api/time_keeping.d.ts +13 -0
  77. package/dist/pos_client_api/1.0.0/api/time_keeping.d.ts.map +1 -0
  78. package/dist/pos_client_api/{v1 → 1.0.0}/api/time_keeping.js +1 -1
  79. package/dist/pos_client_api/{v1 → 1.0.0}/api/unsubscribe_contact.d.ts +1 -1
  80. package/dist/pos_client_api/1.0.0/api/unsubscribe_contact.d.ts.map +1 -0
  81. package/dist/pos_client_api/{v1 → 1.0.0}/api/unsubscribe_contact.js +1 -1
  82. package/dist/pos_client_api/1.0.0/api/user.d.ts +7 -0
  83. package/dist/pos_client_api/1.0.0/api/user.d.ts.map +1 -0
  84. package/dist/pos_client_api/{v1 → 1.0.0}/api/user.js +1 -1
  85. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/appointment.d.ts +0 -0
  86. package/dist/pos_client_api/1.0.0/endpoints/appointment.d.ts.map +1 -0
  87. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/appointment.js +0 -0
  88. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/batch_history.d.ts +0 -0
  89. package/dist/pos_client_api/1.0.0/endpoints/batch_history.d.ts.map +1 -0
  90. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/batch_history.js +0 -0
  91. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/business.d.ts +0 -0
  92. package/dist/pos_client_api/1.0.0/endpoints/business.d.ts.map +1 -0
  93. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/business.js +0 -0
  94. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/call.d.ts +0 -0
  95. package/dist/pos_client_api/1.0.0/endpoints/call.d.ts.map +1 -0
  96. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/call.js +0 -0
  97. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/category.d.ts +0 -0
  98. package/dist/pos_client_api/1.0.0/endpoints/category.d.ts.map +1 -0
  99. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/category.js +0 -0
  100. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/check_in.d.ts +0 -0
  101. package/dist/pos_client_api/1.0.0/endpoints/check_in.d.ts.map +1 -0
  102. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/check_in.js +0 -0
  103. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/check_out.d.ts +0 -0
  104. package/dist/pos_client_api/1.0.0/endpoints/check_out.d.ts.map +1 -0
  105. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/check_out.js +0 -0
  106. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/combo.d.ts +0 -0
  107. package/dist/pos_client_api/1.0.0/endpoints/combo.d.ts.map +1 -0
  108. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/combo.js +0 -0
  109. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/customer.d.ts +0 -0
  110. package/dist/pos_client_api/1.0.0/endpoints/customer.d.ts.map +1 -0
  111. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/customer.js +0 -0
  112. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/gift_card.d.ts +0 -0
  113. package/dist/pos_client_api/1.0.0/endpoints/gift_card.d.ts.map +1 -0
  114. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/gift_card.js +0 -0
  115. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/income.d.ts +0 -0
  116. package/dist/pos_client_api/1.0.0/endpoints/income.d.ts.map +1 -0
  117. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/income.js +0 -0
  118. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/index.d.ts +0 -0
  119. package/dist/pos_client_api/1.0.0/endpoints/index.d.ts.map +1 -0
  120. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/index.js +0 -0
  121. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/key_storage.d.ts +0 -0
  122. package/dist/pos_client_api/1.0.0/endpoints/key_storage.d.ts.map +1 -0
  123. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/key_storage.js +0 -0
  124. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/order.d.ts +0 -0
  125. package/dist/pos_client_api/1.0.0/endpoints/order.d.ts.map +1 -0
  126. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/order.js +0 -0
  127. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/payroll.d.ts +0 -0
  128. package/dist/pos_client_api/1.0.0/endpoints/payroll.d.ts.map +1 -0
  129. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/payroll.js +0 -0
  130. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/printer.d.ts +0 -0
  131. package/dist/pos_client_api/1.0.0/endpoints/printer.d.ts.map +1 -0
  132. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/printer.js +0 -0
  133. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/service.d.ts +0 -0
  134. package/dist/pos_client_api/1.0.0/endpoints/service.d.ts.map +1 -0
  135. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/service.js +0 -0
  136. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/setting_turn.d.ts +0 -0
  137. package/dist/pos_client_api/1.0.0/endpoints/setting_turn.d.ts.map +1 -0
  138. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/setting_turn.js +0 -0
  139. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/staff.d.ts +0 -0
  140. package/dist/pos_client_api/1.0.0/endpoints/staff.d.ts.map +1 -0
  141. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/staff.js +0 -0
  142. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/ticket.d.ts +0 -0
  143. package/dist/pos_client_api/1.0.0/endpoints/ticket.d.ts.map +1 -0
  144. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/ticket.js +0 -0
  145. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/time_keeping.d.ts +0 -0
  146. package/dist/pos_client_api/1.0.0/endpoints/time_keeping.d.ts.map +1 -0
  147. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/time_keeping.js +0 -0
  148. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/unsubscribe_contact.d.ts +0 -0
  149. package/dist/pos_client_api/1.0.0/endpoints/unsubscribe_contact.d.ts.map +1 -0
  150. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/unsubscribe_contact.js +0 -0
  151. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/user.d.ts +0 -0
  152. package/dist/pos_client_api/1.0.0/endpoints/user.d.ts.map +1 -0
  153. package/dist/pos_client_api/{v1/endpoint → 1.0.0/endpoints}/user.js +0 -0
  154. package/dist/pos_client_api/1.0.0/interfaces/appointment.d.ts +8 -0
  155. package/dist/pos_client_api/1.0.0/interfaces/appointment.d.ts.map +1 -0
  156. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/appointment.js +0 -0
  157. package/dist/pos_client_api/1.0.0/interfaces/batch_history.d.ts +7 -0
  158. package/dist/pos_client_api/1.0.0/interfaces/batch_history.d.ts.map +1 -0
  159. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/batch_history.js +0 -0
  160. package/dist/pos_client_api/1.0.0/interfaces/business.d.ts +7 -0
  161. package/dist/pos_client_api/1.0.0/interfaces/business.d.ts.map +1 -0
  162. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/business.js +0 -0
  163. package/dist/pos_client_api/1.0.0/interfaces/call.d.ts +6 -0
  164. package/dist/pos_client_api/1.0.0/interfaces/call.d.ts.map +1 -0
  165. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/call.js +0 -0
  166. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/category.d.ts +2 -2
  167. package/dist/pos_client_api/1.0.0/interfaces/category.d.ts.map +1 -0
  168. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/category.js +0 -0
  169. package/dist/pos_client_api/1.0.0/interfaces/check_in.d.ts +11 -0
  170. package/dist/pos_client_api/1.0.0/interfaces/check_in.d.ts.map +1 -0
  171. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/check_in.js +0 -0
  172. package/dist/pos_client_api/1.0.0/interfaces/check_out.d.ts +36 -0
  173. package/dist/pos_client_api/1.0.0/interfaces/check_out.d.ts.map +1 -0
  174. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/check_out.js +0 -0
  175. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/combo.d.ts +2 -2
  176. package/dist/pos_client_api/1.0.0/interfaces/combo.d.ts.map +1 -0
  177. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/combo.js +0 -0
  178. package/dist/pos_client_api/1.0.0/interfaces/customer.d.ts +8 -0
  179. package/dist/pos_client_api/1.0.0/interfaces/customer.d.ts.map +1 -0
  180. package/dist/{gci_client_api/interface → pos_client_api/1.0.0/interfaces}/customer.js +0 -0
  181. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/gift_card.d.ts +3 -3
  182. package/dist/pos_client_api/1.0.0/interfaces/gift_card.d.ts.map +1 -0
  183. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/gift_card.js +0 -0
  184. package/dist/pos_client_api/1.0.0/interfaces/income.d.ts +7 -0
  185. package/dist/pos_client_api/1.0.0/interfaces/income.d.ts.map +1 -0
  186. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/income.js +0 -0
  187. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/index.d.ts +1 -1
  188. package/dist/pos_client_api/1.0.0/interfaces/index.d.ts.map +1 -0
  189. package/dist/{gci_client_api/interface → pos_client_api/1.0.0/interfaces}/index.js +0 -0
  190. package/dist/pos_client_api/1.0.0/interfaces/key_storage.d.ts +6 -0
  191. package/dist/pos_client_api/1.0.0/interfaces/key_storage.d.ts.map +1 -0
  192. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/key_storage.js +0 -0
  193. package/dist/pos_client_api/1.0.0/interfaces/order.d.ts +13 -0
  194. package/dist/pos_client_api/1.0.0/interfaces/order.d.ts.map +1 -0
  195. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/order.js +0 -0
  196. package/dist/pos_client_api/1.0.0/interfaces/payroll.d.ts +21 -0
  197. package/dist/pos_client_api/1.0.0/interfaces/payroll.d.ts.map +1 -0
  198. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/payroll.js +0 -0
  199. package/dist/pos_client_api/1.0.0/interfaces/printer.d.ts +9 -0
  200. package/dist/pos_client_api/1.0.0/interfaces/printer.d.ts.map +1 -0
  201. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/printer.js +0 -0
  202. package/dist/pos_client_api/1.0.0/interfaces/service.d.ts +6 -0
  203. package/dist/pos_client_api/1.0.0/interfaces/service.d.ts.map +1 -0
  204. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/service.js +0 -0
  205. package/dist/pos_client_api/1.0.0/interfaces/setting_turn.d.ts +7 -0
  206. package/dist/pos_client_api/1.0.0/interfaces/setting_turn.d.ts.map +1 -0
  207. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/setting_turn.js +0 -0
  208. package/dist/pos_client_api/1.0.0/interfaces/staff.d.ts +7 -0
  209. package/dist/pos_client_api/1.0.0/interfaces/staff.d.ts.map +1 -0
  210. package/dist/{gci_client_api/interface → pos_client_api/1.0.0/interfaces}/staff.js +0 -0
  211. package/dist/pos_client_api/1.0.0/interfaces/ticket.d.ts +12 -0
  212. package/dist/pos_client_api/1.0.0/interfaces/ticket.d.ts.map +1 -0
  213. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/ticket.js +0 -0
  214. package/dist/pos_client_api/1.0.0/interfaces/time_keeping.d.ts +12 -0
  215. package/dist/pos_client_api/1.0.0/interfaces/time_keeping.d.ts.map +1 -0
  216. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/time_keeping.js +0 -0
  217. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/unsubscribe_contact.d.ts +0 -0
  218. package/dist/pos_client_api/1.0.0/interfaces/unsubscribe_contact.d.ts.map +1 -0
  219. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/unsubscribe_contact.js +0 -0
  220. package/dist/pos_client_api/1.0.0/interfaces/user.d.ts +6 -0
  221. package/dist/pos_client_api/1.0.0/interfaces/user.d.ts.map +1 -0
  222. package/dist/pos_client_api/{interface → 1.0.0/interfaces}/user.js +0 -0
  223. package/dist/pos_client_api/1.0.0/models/check_in.d.ts +3 -0
  224. package/dist/pos_client_api/1.0.0/models/check_in.d.ts.map +1 -0
  225. package/dist/pos_client_api/1.0.0/models/check_in.js +148 -0
  226. package/dist/pos_client_api/1.0.0/models/check_out.d.ts +3 -0
  227. package/dist/pos_client_api/1.0.0/models/check_out.d.ts.map +1 -0
  228. package/dist/pos_client_api/1.0.0/models/check_out.js +11 -0
  229. package/dist/pos_client_api/1.0.0/models/customer.d.ts +3 -0
  230. package/dist/pos_client_api/1.0.0/models/customer.d.ts.map +1 -0
  231. package/dist/pos_client_api/1.0.0/models/customer.js +7 -0
  232. package/dist/pos_client_api/1.0.0/models/income.d.ts +4 -0
  233. package/dist/pos_client_api/1.0.0/models/income.d.ts.map +1 -0
  234. package/dist/pos_client_api/1.0.0/models/income.js +79 -0
  235. package/dist/pos_client_api/1.0.0/models/index.d.ts +8 -0
  236. package/dist/pos_client_api/1.0.0/models/index.d.ts.map +1 -0
  237. package/dist/pos_client_api/1.0.0/models/index.js +7 -0
  238. package/dist/pos_client_api/1.0.0/models/meta.d.ts +3 -0
  239. package/dist/pos_client_api/1.0.0/models/meta.d.ts.map +1 -0
  240. package/dist/pos_client_api/1.0.0/models/meta.js +9 -0
  241. package/dist/pos_client_api/1.0.0/models/order.d.ts +4 -0
  242. package/dist/pos_client_api/1.0.0/models/order.d.ts.map +1 -0
  243. package/dist/pos_client_api/1.0.0/models/order.js +195 -0
  244. package/dist/pos_client_api/1.0.0/models/payroll.d.ts +4 -0
  245. package/dist/pos_client_api/1.0.0/models/payroll.d.ts.map +1 -0
  246. package/dist/pos_client_api/1.0.0/models/payroll.js +37 -0
  247. package/dist/pos_client_api/1.0.0/types/request/appointment.d.ts +13 -0
  248. package/dist/pos_client_api/1.0.0/types/request/appointment.d.ts.map +1 -0
  249. package/dist/pos_client_api/{types → 1.0.0/types/request}/appointment.js +0 -0
  250. package/dist/pos_client_api/1.0.0/types/request/batch_history.d.ts +8 -0
  251. package/dist/pos_client_api/1.0.0/types/request/batch_history.d.ts.map +1 -0
  252. package/dist/pos_client_api/{types → 1.0.0/types/request}/batch_history.js +0 -0
  253. package/dist/pos_client_api/1.0.0/types/request/business.d.ts +10 -0
  254. package/dist/pos_client_api/1.0.0/types/request/business.d.ts.map +1 -0
  255. package/dist/pos_client_api/{types → 1.0.0/types/request}/business.js +0 -0
  256. package/dist/pos_client_api/{types → 1.0.0/types/request}/call.d.ts +1 -1
  257. package/dist/pos_client_api/1.0.0/types/request/call.d.ts.map +1 -0
  258. package/dist/pos_client_api/{types → 1.0.0/types/request}/call.js +0 -0
  259. package/dist/pos_client_api/1.0.0/types/request/category.d.ts +2 -0
  260. package/dist/pos_client_api/1.0.0/types/request/category.d.ts.map +1 -0
  261. package/dist/pos_client_api/{types → 1.0.0/types/request}/category.js +0 -0
  262. package/dist/pos_client_api/1.0.0/types/request/check_in.d.ts +17 -0
  263. package/dist/pos_client_api/1.0.0/types/request/check_in.d.ts.map +1 -0
  264. package/dist/pos_client_api/{types → 1.0.0/types/request}/check_in.js +0 -0
  265. package/dist/pos_client_api/{types → 1.0.0/types/request}/check_out.d.ts +51 -48
  266. package/dist/pos_client_api/1.0.0/types/request/check_out.d.ts.map +1 -0
  267. package/dist/pos_client_api/{types → 1.0.0/types/request}/check_out.js +0 -0
  268. package/dist/pos_client_api/1.0.0/types/request/combo.d.ts +4 -0
  269. package/dist/pos_client_api/1.0.0/types/request/combo.d.ts.map +1 -0
  270. package/dist/pos_client_api/{types → 1.0.0/types/request}/combo.js +0 -0
  271. package/dist/pos_client_api/1.0.0/types/request/customer.d.ts +8 -0
  272. package/dist/pos_client_api/1.0.0/types/request/customer.d.ts.map +1 -0
  273. package/dist/{gci_client_api/types → pos_client_api/1.0.0/types/request}/customer.js +0 -0
  274. package/dist/pos_client_api/1.0.0/types/request/gift_card.d.ts +8 -0
  275. package/dist/pos_client_api/1.0.0/types/request/gift_card.d.ts.map +1 -0
  276. package/dist/pos_client_api/{types → 1.0.0/types/request}/gift_card.js +0 -0
  277. package/dist/pos_client_api/1.0.0/types/request/income.d.ts +11 -0
  278. package/dist/pos_client_api/1.0.0/types/request/income.d.ts.map +1 -0
  279. package/dist/pos_client_api/{types → 1.0.0/types/request}/income.js +0 -0
  280. package/dist/pos_client_api/{types → 1.0.0/types/request}/index.d.ts +0 -0
  281. package/dist/pos_client_api/1.0.0/types/request/index.d.ts.map +1 -0
  282. package/dist/pos_client_api/{types → 1.0.0/types/request}/index.js +0 -0
  283. package/dist/pos_client_api/1.0.0/types/request/key_storage.d.ts +5 -0
  284. package/dist/pos_client_api/1.0.0/types/request/key_storage.d.ts.map +1 -0
  285. package/dist/pos_client_api/{types → 1.0.0/types/request}/key_storage.js +0 -0
  286. package/dist/pos_client_api/1.0.0/types/request/order.d.ts +43 -0
  287. package/dist/pos_client_api/1.0.0/types/request/order.d.ts.map +1 -0
  288. package/dist/pos_client_api/1.0.0/types/request/order.js +16 -0
  289. package/dist/pos_client_api/1.0.0/types/request/payroll.d.ts +61 -0
  290. package/dist/pos_client_api/1.0.0/types/request/payroll.d.ts.map +1 -0
  291. package/dist/pos_client_api/{types → 1.0.0/types/request}/payroll.js +0 -0
  292. package/dist/pos_client_api/{types → 1.0.0/types/request}/printer.d.ts +4 -4
  293. package/dist/pos_client_api/1.0.0/types/request/printer.d.ts.map +1 -0
  294. package/dist/pos_client_api/{types → 1.0.0/types/request}/printer.js +0 -0
  295. package/dist/pos_client_api/1.0.0/types/request/service.d.ts +2 -0
  296. package/dist/pos_client_api/1.0.0/types/request/service.d.ts.map +1 -0
  297. package/dist/pos_client_api/{types → 1.0.0/types/request}/service.js +0 -0
  298. package/dist/pos_client_api/1.0.0/types/request/setting_turn.d.ts +5 -0
  299. package/dist/pos_client_api/1.0.0/types/request/setting_turn.d.ts.map +1 -0
  300. package/dist/pos_client_api/{types → 1.0.0/types/request}/setting_turn.js +0 -0
  301. package/dist/pos_client_api/1.0.0/types/request/staff.d.ts +5 -0
  302. package/dist/pos_client_api/1.0.0/types/request/staff.d.ts.map +1 -0
  303. package/dist/{gci_client_api/types → pos_client_api/1.0.0/types/request}/staff.js +0 -0
  304. package/dist/pos_client_api/1.0.0/types/request/ticket.d.ts +28 -0
  305. package/dist/pos_client_api/1.0.0/types/request/ticket.d.ts.map +1 -0
  306. package/dist/pos_client_api/{types → 1.0.0/types/request}/ticket.js +0 -0
  307. package/dist/pos_client_api/{types → 1.0.0/types/request}/time_keeping.d.ts +7 -7
  308. package/dist/pos_client_api/1.0.0/types/request/time_keeping.d.ts.map +1 -0
  309. package/dist/pos_client_api/{types → 1.0.0/types/request}/time_keeping.js +0 -0
  310. package/dist/pos_client_api/1.0.0/types/request/unsubscribe_contact.d.ts +2 -0
  311. package/dist/pos_client_api/1.0.0/types/request/unsubscribe_contact.d.ts.map +1 -0
  312. package/dist/pos_client_api/{types → 1.0.0/types/request}/unsubscribe_contact.js +0 -0
  313. package/dist/pos_client_api/1.0.0/types/request/user.d.ts +6 -0
  314. package/dist/pos_client_api/1.0.0/types/request/user.d.ts.map +1 -0
  315. package/dist/pos_client_api/{types → 1.0.0/types/request}/user.js +0 -0
  316. package/dist/pos_client_api/1.0.0/types/response/check_in.d.ts +137 -0
  317. package/dist/pos_client_api/1.0.0/types/response/check_in.d.ts.map +1 -0
  318. package/dist/pos_client_api/{interface/index.js → 1.0.0/types/response/check_in.js} +0 -0
  319. package/dist/pos_client_api/1.0.0/types/response/check_out.d.ts +10 -0
  320. package/dist/pos_client_api/1.0.0/types/response/check_out.d.ts.map +1 -0
  321. package/dist/pos_client_api/{types/customer.js → 1.0.0/types/response/check_out.js} +0 -0
  322. package/dist/pos_client_api/1.0.0/types/response/customer.d.ts +6 -0
  323. package/dist/pos_client_api/1.0.0/types/response/customer.d.ts.map +1 -0
  324. package/dist/pos_client_api/{types/staff.js → 1.0.0/types/response/customer.js} +0 -0
  325. package/dist/pos_client_api/1.0.0/types/response/income.d.ts +71 -0
  326. package/dist/pos_client_api/1.0.0/types/response/income.d.ts.map +1 -0
  327. package/dist/pos_client_api/1.0.0/types/response/income.js +1 -0
  328. package/dist/pos_client_api/1.0.0/types/response/index.d.ts +14 -0
  329. package/dist/pos_client_api/1.0.0/types/response/index.d.ts.map +1 -0
  330. package/dist/pos_client_api/1.0.0/types/response/index.js +8 -0
  331. package/dist/pos_client_api/1.0.0/types/response/meta.d.ts +8 -0
  332. package/dist/pos_client_api/1.0.0/types/response/meta.d.ts.map +1 -0
  333. package/dist/pos_client_api/1.0.0/types/response/meta.js +1 -0
  334. package/dist/pos_client_api/1.0.0/types/response/order.d.ts +180 -0
  335. package/dist/pos_client_api/1.0.0/types/response/order.d.ts.map +1 -0
  336. package/dist/pos_client_api/1.0.0/types/response/order.js +1 -0
  337. package/dist/pos_client_api/1.0.0/types/response/payroll.d.ts +31 -0
  338. package/dist/pos_client_api/1.0.0/types/response/payroll.d.ts.map +1 -0
  339. package/dist/pos_client_api/1.0.0/types/response/payroll.js +1 -0
  340. package/dist/pos_client_api/PosClientApi.d.ts +27 -0
  341. package/dist/pos_client_api/PosClientApi.d.ts.map +1 -0
  342. package/dist/pos_client_api/PosClientApi.js +60 -0
  343. package/dist/pos_client_api/api.d.ts +5 -0
  344. package/dist/pos_client_api/api.d.ts.map +1 -0
  345. package/dist/pos_client_api/api.js +12 -0
  346. package/dist/types.d.ts +2 -2
  347. package/dist/types.d.ts.map +1 -1
  348. package/dist/types.js +2 -2
  349. package/package.json +1 -1
  350. package/dist/gci_client_api/interface/customer.d.ts +0 -18
  351. package/dist/gci_client_api/interface/customer.d.ts.map +0 -1
  352. package/dist/gci_client_api/interface/index.d.ts +0 -6
  353. package/dist/gci_client_api/interface/index.d.ts.map +0 -1
  354. package/dist/gci_client_api/interface/staff.d.ts +0 -3
  355. package/dist/gci_client_api/interface/staff.d.ts.map +0 -1
  356. package/dist/gci_client_api/types/customer.d.ts +0 -2
  357. package/dist/gci_client_api/types/customer.d.ts.map +0 -1
  358. package/dist/gci_client_api/types/index.d.ts +0 -3
  359. package/dist/gci_client_api/types/index.d.ts.map +0 -1
  360. package/dist/gci_client_api/types/index.js +0 -2
  361. package/dist/gci_client_api/types/staff.d.ts +0 -2
  362. package/dist/gci_client_api/types/staff.d.ts.map +0 -1
  363. package/dist/gci_client_api/v1/GciClientApi.d.ts +0 -8
  364. package/dist/gci_client_api/v1/GciClientApi.d.ts.map +0 -1
  365. package/dist/gci_client_api/v1/GciClientApi.js +0 -10
  366. package/dist/gci_client_api/v1/api/customer.d.ts +0 -20
  367. package/dist/gci_client_api/v1/api/customer.d.ts.map +0 -1
  368. package/dist/gci_client_api/v1/api/customer.js +0 -115
  369. package/dist/gci_client_api/v1/api/index.d.ts +0 -3
  370. package/dist/gci_client_api/v1/api/index.d.ts.map +0 -1
  371. package/dist/gci_client_api/v1/api/index.js +0 -2
  372. package/dist/gci_client_api/v1/api/staff.d.ts +0 -5
  373. package/dist/gci_client_api/v1/api/staff.d.ts.map +0 -1
  374. package/dist/gci_client_api/v1/api/staff.js +0 -3
  375. package/dist/gci_client_api/v1/endpoint/customer.d.ts +0 -1
  376. package/dist/gci_client_api/v1/endpoint/customer.d.ts.map +0 -1
  377. package/dist/gci_client_api/v1/endpoint/customer.js +0 -0
  378. package/dist/gci_client_api/v1/endpoint/index.d.ts +0 -15
  379. package/dist/gci_client_api/v1/endpoint/index.d.ts.map +0 -1
  380. package/dist/gci_client_api/v1/endpoint/index.js +0 -15
  381. package/dist/gci_client_api/v1/endpoint/staff.d.ts +0 -1
  382. package/dist/gci_client_api/v1/endpoint/staff.d.ts.map +0 -1
  383. package/dist/gci_client_api/v1/endpoint/staff.js +0 -0
  384. package/dist/pos_client_api/interface/appointment.d.ts +0 -8
  385. package/dist/pos_client_api/interface/appointment.d.ts.map +0 -1
  386. package/dist/pos_client_api/interface/batch_history.d.ts +0 -7
  387. package/dist/pos_client_api/interface/batch_history.d.ts.map +0 -1
  388. package/dist/pos_client_api/interface/business.d.ts +0 -7
  389. package/dist/pos_client_api/interface/business.d.ts.map +0 -1
  390. package/dist/pos_client_api/interface/call.d.ts +0 -6
  391. package/dist/pos_client_api/interface/call.d.ts.map +0 -1
  392. package/dist/pos_client_api/interface/category.d.ts.map +0 -1
  393. package/dist/pos_client_api/interface/check_in.d.ts +0 -10
  394. package/dist/pos_client_api/interface/check_in.d.ts.map +0 -1
  395. package/dist/pos_client_api/interface/check_out.d.ts +0 -34
  396. package/dist/pos_client_api/interface/check_out.d.ts.map +0 -1
  397. package/dist/pos_client_api/interface/combo.d.ts.map +0 -1
  398. package/dist/pos_client_api/interface/customer.d.ts +0 -7
  399. package/dist/pos_client_api/interface/customer.d.ts.map +0 -1
  400. package/dist/pos_client_api/interface/customer.js +0 -2
  401. package/dist/pos_client_api/interface/gift_card.d.ts.map +0 -1
  402. package/dist/pos_client_api/interface/income.d.ts +0 -7
  403. package/dist/pos_client_api/interface/income.d.ts.map +0 -1
  404. package/dist/pos_client_api/interface/index.d.ts.map +0 -1
  405. package/dist/pos_client_api/interface/key_storage.d.ts +0 -6
  406. package/dist/pos_client_api/interface/key_storage.d.ts.map +0 -1
  407. package/dist/pos_client_api/interface/order.d.ts +0 -12
  408. package/dist/pos_client_api/interface/order.d.ts.map +0 -1
  409. package/dist/pos_client_api/interface/payroll.d.ts +0 -21
  410. package/dist/pos_client_api/interface/payroll.d.ts.map +0 -1
  411. package/dist/pos_client_api/interface/printer.d.ts +0 -9
  412. package/dist/pos_client_api/interface/printer.d.ts.map +0 -1
  413. package/dist/pos_client_api/interface/service.d.ts +0 -6
  414. package/dist/pos_client_api/interface/service.d.ts.map +0 -1
  415. package/dist/pos_client_api/interface/setting_turn.d.ts +0 -7
  416. package/dist/pos_client_api/interface/setting_turn.d.ts.map +0 -1
  417. package/dist/pos_client_api/interface/staff.d.ts +0 -7
  418. package/dist/pos_client_api/interface/staff.d.ts.map +0 -1
  419. package/dist/pos_client_api/interface/staff.js +0 -2
  420. package/dist/pos_client_api/interface/ticket.d.ts +0 -12
  421. package/dist/pos_client_api/interface/ticket.d.ts.map +0 -1
  422. package/dist/pos_client_api/interface/time_keeping.d.ts +0 -12
  423. package/dist/pos_client_api/interface/time_keeping.d.ts.map +0 -1
  424. package/dist/pos_client_api/interface/unsubscribe_contact.d.ts.map +0 -1
  425. package/dist/pos_client_api/interface/user.d.ts +0 -6
  426. package/dist/pos_client_api/interface/user.d.ts.map +0 -1
  427. package/dist/pos_client_api/types/appointment.d.ts +0 -13
  428. package/dist/pos_client_api/types/appointment.d.ts.map +0 -1
  429. package/dist/pos_client_api/types/batch_history.d.ts +0 -8
  430. package/dist/pos_client_api/types/batch_history.d.ts.map +0 -1
  431. package/dist/pos_client_api/types/business.d.ts +0 -10
  432. package/dist/pos_client_api/types/business.d.ts.map +0 -1
  433. package/dist/pos_client_api/types/call.d.ts.map +0 -1
  434. package/dist/pos_client_api/types/category.d.ts +0 -2
  435. package/dist/pos_client_api/types/category.d.ts.map +0 -1
  436. package/dist/pos_client_api/types/check_in.d.ts +0 -18
  437. package/dist/pos_client_api/types/check_in.d.ts.map +0 -1
  438. package/dist/pos_client_api/types/check_out.d.ts.map +0 -1
  439. package/dist/pos_client_api/types/combo.d.ts +0 -4
  440. package/dist/pos_client_api/types/combo.d.ts.map +0 -1
  441. package/dist/pos_client_api/types/customer.d.ts +0 -7
  442. package/dist/pos_client_api/types/customer.d.ts.map +0 -1
  443. package/dist/pos_client_api/types/gift_card.d.ts +0 -8
  444. package/dist/pos_client_api/types/gift_card.d.ts.map +0 -1
  445. package/dist/pos_client_api/types/income.d.ts +0 -11
  446. package/dist/pos_client_api/types/income.d.ts.map +0 -1
  447. package/dist/pos_client_api/types/index.d.ts.map +0 -1
  448. package/dist/pos_client_api/types/key_storage.d.ts +0 -5
  449. package/dist/pos_client_api/types/key_storage.d.ts.map +0 -1
  450. package/dist/pos_client_api/types/order.d.ts +0 -43
  451. package/dist/pos_client_api/types/order.d.ts.map +0 -1
  452. package/dist/pos_client_api/types/order.js +0 -16
  453. package/dist/pos_client_api/types/payroll.d.ts +0 -61
  454. package/dist/pos_client_api/types/payroll.d.ts.map +0 -1
  455. package/dist/pos_client_api/types/printer.d.ts.map +0 -1
  456. package/dist/pos_client_api/types/service.d.ts +0 -2
  457. package/dist/pos_client_api/types/service.d.ts.map +0 -1
  458. package/dist/pos_client_api/types/setting_turn.d.ts +0 -5
  459. package/dist/pos_client_api/types/setting_turn.d.ts.map +0 -1
  460. package/dist/pos_client_api/types/staff.d.ts +0 -5
  461. package/dist/pos_client_api/types/staff.d.ts.map +0 -1
  462. package/dist/pos_client_api/types/ticket.d.ts +0 -28
  463. package/dist/pos_client_api/types/ticket.d.ts.map +0 -1
  464. package/dist/pos_client_api/types/time_keeping.d.ts.map +0 -1
  465. package/dist/pos_client_api/types/unsubscribe_contact.d.ts +0 -2
  466. package/dist/pos_client_api/types/unsubscribe_contact.d.ts.map +0 -1
  467. package/dist/pos_client_api/types/user.d.ts +0 -6
  468. package/dist/pos_client_api/types/user.d.ts.map +0 -1
  469. package/dist/pos_client_api/v1/PosClientApi.d.ts +0 -28
  470. package/dist/pos_client_api/v1/PosClientApi.d.ts.map +0 -1
  471. package/dist/pos_client_api/v1/PosClientApi.js +0 -29
  472. package/dist/pos_client_api/v1/api/appointment.d.ts +0 -9
  473. package/dist/pos_client_api/v1/api/appointment.d.ts.map +0 -1
  474. package/dist/pos_client_api/v1/api/batch_history.d.ts +0 -8
  475. package/dist/pos_client_api/v1/api/batch_history.d.ts.map +0 -1
  476. package/dist/pos_client_api/v1/api/business.d.ts +0 -8
  477. package/dist/pos_client_api/v1/api/business.d.ts.map +0 -1
  478. package/dist/pos_client_api/v1/api/call.d.ts +0 -7
  479. package/dist/pos_client_api/v1/api/call.d.ts.map +0 -1
  480. package/dist/pos_client_api/v1/api/category.d.ts +0 -7
  481. package/dist/pos_client_api/v1/api/category.d.ts.map +0 -1
  482. package/dist/pos_client_api/v1/api/check_in.d.ts +0 -11
  483. package/dist/pos_client_api/v1/api/check_in.d.ts.map +0 -1
  484. package/dist/pos_client_api/v1/api/check_out.d.ts +0 -35
  485. package/dist/pos_client_api/v1/api/check_out.d.ts.map +0 -1
  486. package/dist/pos_client_api/v1/api/combo.d.ts +0 -7
  487. package/dist/pos_client_api/v1/api/combo.d.ts.map +0 -1
  488. package/dist/pos_client_api/v1/api/customer.d.ts +0 -8
  489. package/dist/pos_client_api/v1/api/customer.d.ts.map +0 -1
  490. package/dist/pos_client_api/v1/api/gift_card.d.ts +0 -8
  491. package/dist/pos_client_api/v1/api/gift_card.d.ts.map +0 -1
  492. package/dist/pos_client_api/v1/api/income.d.ts +0 -8
  493. package/dist/pos_client_api/v1/api/income.d.ts.map +0 -1
  494. package/dist/pos_client_api/v1/api/income.js +0 -21
  495. package/dist/pos_client_api/v1/api/index.d.ts.map +0 -1
  496. package/dist/pos_client_api/v1/api/key_storage.d.ts +0 -7
  497. package/dist/pos_client_api/v1/api/key_storage.d.ts.map +0 -1
  498. package/dist/pos_client_api/v1/api/order.d.ts +0 -13
  499. package/dist/pos_client_api/v1/api/order.d.ts.map +0 -1
  500. package/dist/pos_client_api/v1/api/payroll.d.ts +0 -22
  501. package/dist/pos_client_api/v1/api/payroll.d.ts.map +0 -1
  502. package/dist/pos_client_api/v1/api/printer.d.ts +0 -10
  503. package/dist/pos_client_api/v1/api/printer.d.ts.map +0 -1
  504. package/dist/pos_client_api/v1/api/service.d.ts +0 -7
  505. package/dist/pos_client_api/v1/api/service.d.ts.map +0 -1
  506. package/dist/pos_client_api/v1/api/setting_turn.d.ts +0 -8
  507. package/dist/pos_client_api/v1/api/setting_turn.d.ts.map +0 -1
  508. package/dist/pos_client_api/v1/api/staff.d.ts +0 -8
  509. package/dist/pos_client_api/v1/api/staff.d.ts.map +0 -1
  510. package/dist/pos_client_api/v1/api/ticket.d.ts +0 -13
  511. package/dist/pos_client_api/v1/api/ticket.d.ts.map +0 -1
  512. package/dist/pos_client_api/v1/api/time_keeping.d.ts +0 -13
  513. package/dist/pos_client_api/v1/api/time_keeping.d.ts.map +0 -1
  514. package/dist/pos_client_api/v1/api/unsubscribe_contact.d.ts.map +0 -1
  515. package/dist/pos_client_api/v1/api/user.d.ts +0 -7
  516. package/dist/pos_client_api/v1/api/user.d.ts.map +0 -1
  517. package/dist/pos_client_api/v1/endpoint/appointment.d.ts.map +0 -1
  518. package/dist/pos_client_api/v1/endpoint/batch_history.d.ts.map +0 -1
  519. package/dist/pos_client_api/v1/endpoint/business.d.ts.map +0 -1
  520. package/dist/pos_client_api/v1/endpoint/call.d.ts.map +0 -1
  521. package/dist/pos_client_api/v1/endpoint/category.d.ts.map +0 -1
  522. package/dist/pos_client_api/v1/endpoint/check_in.d.ts.map +0 -1
  523. package/dist/pos_client_api/v1/endpoint/check_out.d.ts.map +0 -1
  524. package/dist/pos_client_api/v1/endpoint/combo.d.ts.map +0 -1
  525. package/dist/pos_client_api/v1/endpoint/customer.d.ts.map +0 -1
  526. package/dist/pos_client_api/v1/endpoint/gift_card.d.ts.map +0 -1
  527. package/dist/pos_client_api/v1/endpoint/income.d.ts.map +0 -1
  528. package/dist/pos_client_api/v1/endpoint/index.d.ts.map +0 -1
  529. package/dist/pos_client_api/v1/endpoint/key_storage.d.ts.map +0 -1
  530. package/dist/pos_client_api/v1/endpoint/order.d.ts.map +0 -1
  531. package/dist/pos_client_api/v1/endpoint/payroll.d.ts.map +0 -1
  532. package/dist/pos_client_api/v1/endpoint/printer.d.ts.map +0 -1
  533. package/dist/pos_client_api/v1/endpoint/service.d.ts.map +0 -1
  534. package/dist/pos_client_api/v1/endpoint/setting_turn.d.ts.map +0 -1
  535. package/dist/pos_client_api/v1/endpoint/staff.d.ts.map +0 -1
  536. package/dist/pos_client_api/v1/endpoint/ticket.d.ts.map +0 -1
  537. package/dist/pos_client_api/v1/endpoint/time_keeping.d.ts.map +0 -1
  538. package/dist/pos_client_api/v1/endpoint/unsubscribe_contact.d.ts.map +0 -1
  539. package/dist/pos_client_api/v1/endpoint/user.d.ts.map +0 -1
@@ -1,7 +1,6 @@
1
1
  import { GapApiVersion } from "../base_type";
2
2
  export default class Base {
3
- static apiVersion: GapApiVersion.V1;
4
3
  static client: any;
5
- static setClient(domain: string, gClientId: string, token: string): void;
4
+ static setClient(domain: string, gClientId: string, token: string, version: GapApiVersion): void;
6
5
  }
7
6
  //# sourceMappingURL=Base.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Base.d.ts","sourceRoot":"","sources":["../../src/base/Base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,cAAc,CAAC;AAG3C,MAAM,CAAC,OAAO,OAAO,IAAI;IACrB,OAAc,UAAU,EAAE,aAAa,CAAC,EAAE,CAAC;IAC3C,OAAc,MAAM,MAAC;IAErB,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CAMpE"}
1
+ {"version":3,"file":"Base.d.ts","sourceRoot":"","sources":["../../src/base/Base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,cAAc,CAAC;AAG3C,MAAM,CAAC,OAAO,OAAO,IAAI;IACrB,OAAc,MAAM,MAAC;IAErB,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa;CAM5F"}
package/dist/base/Base.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { HttpClient } from "../http_client/http_client";
2
2
  export default class Base {
3
- static setClient(domain, gClientId, token) {
3
+ static setClient(domain, gClientId, token, version) {
4
4
  if (!domain || !gClientId || !token) {
5
5
  return console.error(new Error('Missing params init http_client'));
6
6
  }
7
- this.client = new HttpClient(domain, gClientId, token);
7
+ this.client = new HttpClient(domain, gClientId, token, version);
8
8
  }
9
9
  }
@@ -24,8 +24,11 @@ export interface GetParams {
24
24
  export declare type ResponseDataApi = {
25
25
  result: any;
26
26
  data: string;
27
- error: Array<any>;
27
+ error: any;
28
28
  message: string;
29
29
  status: string;
30
30
  };
31
+ export declare type Nullable<T> = {
32
+ [P in keyof T]: T[P] | null;
33
+ };
31
34
  //# sourceMappingURL=base_type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base_type.d.ts","sourceRoot":"","sources":["../src/base_type.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACrB,EAAE,UAAU;CACf;AAED,oBAAY,SAAS;IACjB,SAAS,eAAe;CAC3B;AAED,oBAAY,SAAS;IACjB,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;CACpB;AAED,iCAAiC;AACjC,oBAAY,QAAQ;IAChB,OAAO,YAAY;IACnB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,MAAM,WAAW;CACpB;AAED,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,CAAC,OAAO,MAAM,eAAe,GAAG;IAClC,MAAM,EAAE,GAAG,CAAA;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAA;CACjB,CAAA"}
1
+ {"version":3,"file":"base_type.d.ts","sourceRoot":"","sources":["../src/base_type.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACrB,EAAE,UAAU;CACf;AAED,oBAAY,SAAS;IACjB,SAAS,eAAe;CAC3B;AAED,oBAAY,SAAS;IACjB,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;CACpB;AAED,iCAAiC;AACjC,oBAAY,QAAQ;IAChB,OAAO,YAAY;IACnB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,MAAM,WAAW;CACpB;AAED,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,CAAC,OAAO,MAAM,eAAe,GAAG;IAClC,MAAM,EAAE,GAAG,CAAA;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,CAAC,OAAO,MAAM,QAAQ,CAAC,CAAC,IAAI;KAC7B,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;CAC9B,CAAC"}
package/dist/error.d.ts CHANGED
@@ -40,5 +40,7 @@ export declare class HttpThrottlingError extends HttpRetryableError {
40
40
  readonly response: HttpThrottlingErrorData;
41
41
  constructor({ retryAfter, ...params }: HttpThrottlingErrorParams);
42
42
  }
43
+ export declare class RestResourceError extends GapError {
44
+ }
43
45
  export {};
44
46
  //# sourceMappingURL=error.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":"AAAA,qBAAa,QAAS,SAAQ,KAAK;gBACnB,GAAG,IAAI,EAAE,GAAG;CAI3B;AAED,qBAAa,uBAAwB,SAAQ,QAAQ;CAAG;AAExD,qBAAa,yBAA0B,SAAQ,QAAQ;CAAG;AAE1D,qBAAa,gBAAiB,SAAQ,QAAQ;CAAG;AACjD,qBAAa,mBAAoB,SAAQ,QAAQ;CAAG;AAEpD,UAAU,gBAAgB;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,CAAC;IAChC,OAAO,CAAC,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,CAAC;CACtC;AACD,UAAU,uBAAwB,SAAQ,gBAAgB;IACtD,OAAO,EAAE,MAAM,CAAC;CACnB;AACD,qBAAa,iBAAkB,SAAQ,QAAQ;IAC3C,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;gBAEjB,EACI,OAAO,EACP,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,OAAO,GACV,EAAE,uBAAuB;CAUhD;AACD,qBAAa,kBAAmB,SAAQ,iBAAiB;CAAG;AAC5D,qBAAa,iBAAkB,SAAQ,kBAAkB;CAAG;AAE5D,UAAU,uBAAwB,SAAQ,gBAAgB;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AACD,UAAU,yBAA0B,SAAQ,uBAAuB;IAC/D,OAAO,EAAE,MAAM,CAAC;CACnB;AACD,qBAAa,mBAAoB,SAAQ,kBAAkB;IACvD,QAAQ,CAAC,QAAQ,EAAE,uBAAuB,CAAC;gBAExB,EAAC,UAAU,EAAE,GAAG,MAAM,EAAC,EAAE,yBAAyB;CAIxE"}
1
+ {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":"AAAA,qBAAa,QAAS,SAAQ,KAAK;gBACnB,GAAG,IAAI,EAAE,GAAG;CAI3B;AAED,qBAAa,uBAAwB,SAAQ,QAAQ;CAAG;AAExD,qBAAa,yBAA0B,SAAQ,QAAQ;CAAG;AAE1D,qBAAa,gBAAiB,SAAQ,QAAQ;CAAG;AACjD,qBAAa,mBAAoB,SAAQ,QAAQ;CAAG;AAEpD,UAAU,gBAAgB;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,CAAC;IAChC,OAAO,CAAC,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,CAAC;CACtC;AACD,UAAU,uBAAwB,SAAQ,gBAAgB;IACtD,OAAO,EAAE,MAAM,CAAC;CACnB;AACD,qBAAa,iBAAkB,SAAQ,QAAQ;IAC3C,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;gBAEjB,EACI,OAAO,EACP,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,OAAO,GACV,EAAE,uBAAuB;CAUhD;AACD,qBAAa,kBAAmB,SAAQ,iBAAiB;CAAG;AAC5D,qBAAa,iBAAkB,SAAQ,kBAAkB;CAAG;AAE5D,UAAU,uBAAwB,SAAQ,gBAAgB;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AACD,UAAU,yBAA0B,SAAQ,uBAAuB;IAC/D,OAAO,EAAE,MAAM,CAAC;CACnB;AACD,qBAAa,mBAAoB,SAAQ,kBAAkB;IACvD,QAAQ,CAAC,QAAQ,EAAE,uBAAuB,CAAC;gBAExB,EAAC,UAAU,EAAE,GAAG,MAAM,EAAC,EAAE,yBAAyB;CAIxE;AAED,qBAAa,iBAAkB,SAAQ,QAAQ;CAAG"}
package/dist/error.js CHANGED
@@ -35,3 +35,5 @@ export class HttpThrottlingError extends HttpRetryableError {
35
35
  this.response.retryAfter = retryAfter;
36
36
  }
37
37
  }
38
+ export class RestResourceError extends GapError {
39
+ }
package/dist/gap-sdk.js CHANGED
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.GapSdk=e():t.GapSdk=e()}(self,(()=>(()=>{var t={669:(t,e,i)=>{t.exports=i(609)},448:(t,e,i)=>{"use strict";var r=i(867),n=i(26),o=i(372),s=i(327),a=i(97),u=i(109),c=i(985),d=i(874),h=i(648),l=i(644),p=i(205);t.exports=function(t){return new Promise((function(e,i){var f,v=t.data,y=t.headers,m=t.responseType;function g(){t.cancelToken&&t.cancelToken.unsubscribe(f),t.signal&&t.signal.removeEventListener("abort",f)}r.isFormData(v)&&r.isStandardBrowserEnv()&&delete y["Content-Type"];var O=new XMLHttpRequest;if(t.auth){var b=t.auth.username||"",E=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";y.Authorization="Basic "+btoa(b+":"+E)}var w=a(t.baseURL,t.url);function x(){if(O){var r="getAllResponseHeaders"in O?u(O.getAllResponseHeaders()):null,o={data:m&&"text"!==m&&"json"!==m?O.response:O.responseText,status:O.status,statusText:O.statusText,headers:r,config:t,request:O};n((function(t){e(t),g()}),(function(t){i(t),g()}),o),O=null}}if(O.open(t.method.toUpperCase(),s(w,t.params,t.paramsSerializer),!0),O.timeout=t.timeout,"onloadend"in O?O.onloadend=x:O.onreadystatechange=function(){O&&4===O.readyState&&(0!==O.status||O.responseURL&&0===O.responseURL.indexOf("file:"))&&setTimeout(x)},O.onabort=function(){O&&(i(new h("Request aborted",h.ECONNABORTED,t,O)),O=null)},O.onerror=function(){i(new h("Network Error",h.ERR_NETWORK,t,O,O)),O=null},O.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",r=t.transitional||d;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),i(new h(e,r.clarifyTimeoutError?h.ETIMEDOUT:h.ECONNABORTED,t,O)),O=null},r.isStandardBrowserEnv()){var S=(t.withCredentials||c(w))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;S&&(y[t.xsrfHeaderName]=S)}"setRequestHeader"in O&&r.forEach(y,(function(t,e){void 0===v&&"content-type"===e.toLowerCase()?delete y[e]:O.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(O.withCredentials=!!t.withCredentials),m&&"json"!==m&&(O.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&O.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&O.upload&&O.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(f=function(t){O&&(i(!t||t&&t.type?new l:t),O.abort(),O=null)},t.cancelToken&&t.cancelToken.subscribe(f),t.signal&&(t.signal.aborted?f():t.signal.addEventListener("abort",f))),v||(v=null);var R=p(w);R&&-1===["http","https","file"].indexOf(R)?i(new h("Unsupported protocol "+R+":",h.ERR_BAD_REQUEST,t)):O.send(v)}))}},609:(t,e,i)=>{"use strict";var r=i(867),n=i(849),o=i(321),s=i(185),a=function t(e){var i=new o(e),a=n(o.prototype.request,i);return r.extend(a,o.prototype,i),r.extend(a,i),a.create=function(i){return t(s(e,i))},a}(i(546));a.Axios=o,a.CanceledError=i(644),a.CancelToken=i(972),a.isCancel=i(502),a.VERSION=i(288).version,a.toFormData=i(675),a.AxiosError=i(648),a.Cancel=a.CanceledError,a.all=function(t){return Promise.all(t)},a.spread=i(713),a.isAxiosError=i(268),t.exports=a,t.exports.default=a},972:(t,e,i)=>{"use strict";var r=i(644);function n(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var i=this;this.promise.then((function(t){if(i._listeners){var e,r=i._listeners.length;for(e=0;e<r;e++)i._listeners[e](t);i._listeners=null}})),this.promise.then=function(t){var e,r=new Promise((function(t){i.subscribe(t),e=t})).then(t);return r.cancel=function(){i.unsubscribe(e)},r},t((function(t){i.reason||(i.reason=new r(t),e(i.reason))}))}n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},n.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},n.source=function(){var t;return{token:new n((function(e){t=e})),cancel:t}},t.exports=n},644:(t,e,i)=>{"use strict";var r=i(648);function n(t){r.call(this,null==t?"canceled":t,r.ERR_CANCELED),this.name="CanceledError"}i(867).inherits(n,r,{__CANCEL__:!0}),t.exports=n},502:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:(t,e,i)=>{"use strict";var r=i(867),n=i(327),o=i(782),s=i(572),a=i(185),u=i(97),c=i(875),d=c.validators;function h(t){this.defaults=t,this.interceptors={request:new o,response:new o}}h.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var i=e.transitional;void 0!==i&&c.assertOptions(i,{silentJSONParsing:d.transitional(d.boolean),forcedJSONParsing:d.transitional(d.boolean),clarifyTimeoutError:d.transitional(d.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var o,u=[];if(this.interceptors.response.forEach((function(t){u.push(t.fulfilled,t.rejected)})),!n){var h=[s,void 0];for(Array.prototype.unshift.apply(h,r),h=h.concat(u),o=Promise.resolve(e);h.length;)o=o.then(h.shift(),h.shift());return o}for(var l=e;r.length;){var p=r.shift(),f=r.shift();try{l=p(l)}catch(t){f(t);break}}try{o=s(l)}catch(t){return Promise.reject(t)}for(;u.length;)o=o.then(u.shift(),u.shift());return o},h.prototype.getUri=function(t){t=a(this.defaults,t);var e=u(t.baseURL,t.url);return n(e,t.params,t.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(t){h.prototype[t]=function(e,i){return this.request(a(i||{},{method:t,url:e,data:(i||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){function e(e){return function(i,r,n){return this.request(a(n||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}h.prototype[t]=e(),h.prototype[t+"Form"]=e(!0)})),t.exports=h},648:(t,e,i)=>{"use strict";var r=i(867);function n(t,e,i,r,n){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),i&&(this.config=i),r&&(this.request=r),n&&(this.response=n)}r.inherits(n,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=n.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(t){s[t]={value:t}})),Object.defineProperties(n,s),Object.defineProperty(o,"isAxiosError",{value:!0}),n.from=function(t,e,i,s,a,u){var c=Object.create(o);return r.toFlatObject(t,c,(function(t){return t!==Error.prototype})),n.call(c,t.message,e,i,s,a),c.name=t.name,u&&Object.assign(c,u),c},t.exports=n},782:(t,e,i)=>{"use strict";var r=i(867);function n(){this.handlers=[]}n.prototype.use=function(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1},n.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},n.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=n},97:(t,e,i)=>{"use strict";var r=i(793),n=i(303);t.exports=function(t,e){return t&&!r(e)?n(t,e):e}},572:(t,e,i)=>{"use strict";var r=i(867),n=i(527),o=i(502),s=i(546),a=i(644);function u(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new a}t.exports=function(t){return u(t),t.headers=t.headers||{},t.data=n.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||s.adapter)(t).then((function(e){return u(t),e.data=n.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(u(t),e&&e.response&&(e.response.data=n.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},185:(t,e,i)=>{"use strict";var r=i(867);t.exports=function(t,e){e=e||{};var i={};function n(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function o(i){return r.isUndefined(e[i])?r.isUndefined(t[i])?void 0:n(void 0,t[i]):n(t[i],e[i])}function s(t){if(!r.isUndefined(e[t]))return n(void 0,e[t])}function a(i){return r.isUndefined(e[i])?r.isUndefined(t[i])?void 0:n(void 0,t[i]):n(void 0,e[i])}function u(i){return i in e?n(t[i],e[i]):i in t?n(void 0,t[i]):void 0}var c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return r.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=c[t]||o,n=e(t);r.isUndefined(n)&&e!==u||(i[t]=n)})),i}},26:(t,e,i)=>{"use strict";var r=i(648);t.exports=function(t,e,i){var n=i.config.validateStatus;i.status&&n&&!n(i.status)?e(new r("Request failed with status code "+i.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):t(i)}},527:(t,e,i)=>{"use strict";var r=i(867),n=i(546);t.exports=function(t,e,i){var o=this||n;return r.forEach(i,(function(i){t=i.call(o,t,e)})),t}},546:(t,e,i)=>{"use strict";var r=i(867),n=i(16),o=i(648),s=i(874),a=i(675),u={"Content-Type":"application/x-www-form-urlencoded"};function c(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var d,h={transitional:s,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(d=i(448)),d),transformRequest:[function(t,e){if(n(e,"Accept"),n(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t))return t;if(r.isArrayBufferView(t))return t.buffer;if(r.isURLSearchParams(t))return c(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var i,o=r.isObject(t),s=e&&e["Content-Type"];if((i=r.isFileList(t))||o&&"multipart/form-data"===s){var u=this.env&&this.env.FormData;return a(i?{"files[]":t}:t,u&&new u)}return o||"application/json"===s?(c(e,"application/json"),function(t,e,i){if(r.isString(t))try{return(0,JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||h.transitional,i=e&&e.silentJSONParsing,n=e&&e.forcedJSONParsing,s=!i&&"json"===this.responseType;if(s||n&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(s){if("SyntaxError"===t.name)throw o.from(t,o.ERR_BAD_RESPONSE,this,null,this.response);throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:i(623)},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){h.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){h.headers[t]=r.merge(u)})),t.exports=h},874:t=>{"use strict";t.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},288:t=>{t.exports={version:"0.27.2"}},849:t=>{"use strict";t.exports=function(t,e){return function(){for(var i=new Array(arguments.length),r=0;r<i.length;r++)i[r]=arguments[r];return t.apply(e,i)}}},327:(t,e,i)=>{"use strict";var r=i(867);function n(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,i){if(!e)return t;var o;if(i)o=i(e);else if(r.isURLSearchParams(e))o=e.toString();else{var s=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),s.push(n(e)+"="+n(t))})))})),o=s.join("&")}if(o){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},303:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},372:(t,e,i)=>{"use strict";var r=i(867);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,i,n,o,s){var a=[];a.push(t+"="+encodeURIComponent(e)),r.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),r.isString(n)&&a.push("path="+n),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}},268:(t,e,i)=>{"use strict";var r=i(867);t.exports=function(t){return r.isObject(t)&&!0===t.isAxiosError}},985:(t,e,i)=>{"use strict";var r=i(867);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function n(t){var r=t;return e&&(i.setAttribute("href",r),r=i.href),i.setAttribute("href",r),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return t=n(window.location.href),function(e){var i=r.isString(e)?n(e):e;return i.protocol===t.protocol&&i.host===t.host}}():function(){return!0}},16:(t,e,i)=>{"use strict";var r=i(867);t.exports=function(t,e){r.forEach(t,(function(i,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=i,delete t[r])}))}},623:t=>{t.exports=null},109:(t,e,i)=>{"use strict";var r=i(867),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,i,o,s={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),i=r.trim(t.substr(o+1)),e){if(s[e]&&n.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([i]):s[e]?s[e]+", "+i:i}})),s):s}},205:t=>{"use strict";t.exports=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}},713:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},675:(t,e,i)=>{"use strict";var r=i(867);t.exports=function(t,e){e=e||new FormData;var i=[];function n(t){return null===t?"":r.isDate(t)?t.toISOString():r.isArrayBuffer(t)||r.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(o,s){if(r.isPlainObject(o)||r.isArray(o)){if(-1!==i.indexOf(o))throw Error("Circular reference detected in "+s);i.push(o),r.forEach(o,(function(i,o){if(!r.isUndefined(i)){var a,u=s?s+"."+o:o;if(i&&!s&&"object"==typeof i)if(r.endsWith(o,"{}"))i=JSON.stringify(i);else if(r.endsWith(o,"[]")&&(a=r.toArray(i)))return void a.forEach((function(t){!r.isUndefined(t)&&e.append(u,n(t))}));t(i,u)}})),i.pop()}else e.append(s,n(o))}(t),e}},875:(t,e,i)=>{"use strict";var r=i(288).version,n=i(648),o={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){o[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}}));var s={};o.transitional=function(t,e,i){function o(t,e){return"[Axios v"+r+"] Transitional option '"+t+"'"+e+(i?". "+i:"")}return function(i,r,a){if(!1===t)throw new n(o(r," has been removed"+(e?" in "+e:"")),n.ERR_DEPRECATED);return e&&!s[r]&&(s[r]=!0,console.warn(o(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(i,r,a)}},t.exports={assertOptions:function(t,e,i){if("object"!=typeof t)throw new n("options must be an object",n.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(t),o=r.length;o-- >0;){var s=r[o],a=e[s];if(a){var u=t[s],c=void 0===u||a(u,s,t);if(!0!==c)throw new n("option "+s+" must be "+c,n.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new n("Unknown option "+s,n.ERR_BAD_OPTION)}},validators:o}},867:(t,e,i)=>{"use strict";var r,n=i(849),o=Object.prototype.toString,s=(r=Object.create(null),function(t){var e=o.call(t);return r[e]||(r[e]=e.slice(8,-1).toLowerCase())});function a(t){return t=t.toLowerCase(),function(e){return s(e)===t}}function u(t){return Array.isArray(t)}function c(t){return void 0===t}var d=a("ArrayBuffer");function h(t){return null!==t&&"object"==typeof t}function l(t){if("object"!==s(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var p=a("Date"),f=a("File"),v=a("Blob"),y=a("FileList");function m(t){return"[object Function]"===o.call(t)}var g=a("URLSearchParams");function O(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),u(t))for(var i=0,r=t.length;i<r;i++)e.call(null,t[i],i,t);else for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.call(null,t[n],n,t)}var b,E=(b="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(t){return b&&t instanceof b});t.exports={isArray:u,isArrayBuffer:d,isBuffer:function(t){return null!==t&&!c(t)&&null!==t.constructor&&!c(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){var e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||o.call(t)===e||m(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&d(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:h,isPlainObject:l,isUndefined:c,isDate:p,isFile:f,isBlob:v,isFunction:m,isStream:function(t){return h(t)&&m(t.pipe)},isURLSearchParams:g,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:O,merge:function t(){var e={};function i(i,r){l(e[r])&&l(i)?e[r]=t(e[r],i):l(i)?e[r]=t({},i):u(i)?e[r]=i.slice():e[r]=i}for(var r=0,n=arguments.length;r<n;r++)O(arguments[r],i);return e},extend:function(t,e,i){return O(e,(function(e,r){t[r]=i&&"function"==typeof e?n(e,i):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,i,r){t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,i&&Object.assign(t.prototype,i)},toFlatObject:function(t,e,i){var r,n,o,s={};e=e||{};do{for(n=(r=Object.getOwnPropertyNames(t)).length;n-- >0;)s[o=r[n]]||(e[o]=t[o],s[o]=!0);t=Object.getPrototypeOf(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},kindOf:s,kindOfTest:a,endsWith:function(t,e,i){t=String(t),(void 0===i||i>t.length)&&(i=t.length),i-=e.length;var r=t.indexOf(e,i);return-1!==r&&r===i},toArray:function(t){if(!t)return null;var e=t.length;if(c(e))return null;for(var i=new Array(e);e-- >0;)i[e]=t[e];return i},isTypedArray:E,isFileList:y}},484:function(t){t.exports=function(){"use strict";var t=6e4,e=36e5,i="millisecond",r="second",n="minute",o="hour",s="day",a="week",u="month",c="quarter",d="year",h="date",l="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(t,e,i){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(i)+t},m={s:y,z:function(t){var e=-t.utcOffset(),i=Math.abs(e),r=Math.floor(i/60),n=i%60;return(e<=0?"+":"-")+y(r,2,"0")+":"+y(n,2,"0")},m:function t(e,i){if(e.date()<i.date())return-t(i,e);var r=12*(i.year()-e.year())+(i.month()-e.month()),n=e.clone().add(r,u),o=i-n<0,s=e.clone().add(r+(o?-1:1),u);return+(-(r+(i-n)/(o?n-s:s-n))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:d,w:a,d:s,D:h,h:o,m:n,s:r,ms:i,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",O={};O[g]=v;var b=function(t){return t instanceof S},E=function t(e,i,r){var n;if(!e)return g;if("string"==typeof e){var o=e.toLowerCase();O[o]&&(n=o),i&&(O[o]=i,n=o);var s=e.split("-");if(!n&&s.length>1)return t(s[0])}else{var a=e.name;O[a]=e,n=a}return!r&&n&&(g=n),n||!r&&g},w=function(t,e){if(b(t))return t.clone();var i="object"==typeof e?e:{};return i.date=t,i.args=arguments,new S(i)},x=m;x.l=E,x.i=b,x.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function v(t){this.$L=E(t.locale,null,!0),this.parse(t)}var y=v.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,i=t.utc;if(null===e)return new Date(NaN);if(x.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(p);if(r){var n=r[2]-1||0,o=(r[7]||"0").substring(0,3);return i?new Date(Date.UTC(r[1],n,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],n,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return x},y.isValid=function(){return!(this.$d.toString()===l)},y.isSame=function(t,e){var i=w(t);return this.startOf(e)<=i&&i<=this.endOf(e)},y.isAfter=function(t,e){return w(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<w(t)},y.$g=function(t,e,i){return x.u(t)?this[e]:this.set(i,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var i=this,c=!!x.u(e)||e,l=x.p(t),p=function(t,e){var r=x.w(i.$u?Date.UTC(i.$y,e,t):new Date(i.$y,e,t),i);return c?r:r.endOf(s)},f=function(t,e){return x.w(i.toDate()[t].apply(i.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),i)},v=this.$W,y=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(l){case d:return c?p(1,0):p(31,11);case u:return c?p(1,y):p(0,y+1);case a:var O=this.$locale().weekStart||0,b=(v<O?v+7:v)-O;return p(c?m-b:m+(6-b),y);case s:case h:return f(g+"Hours",0);case o:return f(g+"Minutes",1);case n:return f(g+"Seconds",2);case r:return f(g+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var a,c=x.p(t),l="set"+(this.$u?"UTC":""),p=(a={},a[s]=l+"Date",a[h]=l+"Date",a[u]=l+"Month",a[d]=l+"FullYear",a[o]=l+"Hours",a[n]=l+"Minutes",a[r]=l+"Seconds",a[i]=l+"Milliseconds",a)[c],f=c===s?this.$D+(e-this.$W):e;if(c===u||c===d){var v=this.clone().set(h,1);v.$d[p](f),v.init(),this.$d=v.set(h,Math.min(this.$D,v.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[x.p(t)]()},y.add=function(i,c){var h,l=this;i=Number(i);var p=x.p(c),f=function(t){var e=w(l);return x.w(e.date(e.date()+Math.round(t*i)),l)};if(p===u)return this.set(u,this.$M+i);if(p===d)return this.set(d,this.$y+i);if(p===s)return f(1);if(p===a)return f(7);var v=(h={},h[n]=t,h[o]=e,h[r]=1e3,h)[p]||1,y=this.$d.getTime()+i*v;return x.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,i=this.$locale();if(!this.isValid())return i.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",n=x.z(this),o=this.$H,s=this.$m,a=this.$M,u=i.weekdays,c=i.months,d=function(t,i,n,o){return t&&(t[i]||t(e,r))||n[i].slice(0,o)},h=function(t){return x.s(o%12||12,t,"0")},p=i.meridiem||function(t,e,i){var r=t<12?"AM":"PM";return i?r.toLowerCase():r},v={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:x.s(a+1,2,"0"),MMM:d(i.monthsShort,a,c,3),MMMM:d(c,a),D:this.$D,DD:x.s(this.$D,2,"0"),d:String(this.$W),dd:d(i.weekdaysMin,this.$W,u,2),ddd:d(i.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(o),HH:x.s(o,2,"0"),h:h(1),hh:h(2),a:p(o,s,!0),A:p(o,s,!1),m:String(s),mm:x.s(s,2,"0"),s:String(this.$s),ss:x.s(this.$s,2,"0"),SSS:x.s(this.$ms,3,"0"),Z:n};return r.replace(f,(function(t,e){return e||v[t]||n.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(i,h,l){var p,f=x.p(h),v=w(i),y=(v.utcOffset()-this.utcOffset())*t,m=this-v,g=x.m(this,v);return g=(p={},p[d]=g/12,p[u]=g,p[c]=g/3,p[a]=(m-y)/6048e5,p[s]=(m-y)/864e5,p[o]=m/e,p[n]=m/t,p[r]=m/1e3,p)[f]||m,l?g:x.a(g)},y.daysInMonth=function(){return this.endOf(u).$D},y.$locale=function(){return O[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var i=this.clone(),r=E(t,e,!0);return r&&(i.$L=r),i},y.clone=function(){return x.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},v}(),R=S.prototype;return w.prototype=R,[["$ms",i],["$s",r],["$m",n],["$H",o],["$W",s],["$M",u],["$y",d],["$D",h]].forEach((function(t){R[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),w.extend=function(t,e){return t.$i||(t(e,S,w),t.$i=!0),w},w.locale=E,w.isDayjs=b,w.unix=function(t){return w(1e3*t)},w.en=O[g],w.Ls=O,w.p={},w}()},823:t=>{t.exports=function(t,e,i,r){var n=new Blob(void 0!==r?[r,t]:[t],{type:i||"application/octet-stream"});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(n,e);else{var o=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(n):window.webkitURL.createObjectURL(n),s=document.createElement("a");s.style.display="none",s.href=o,s.setAttribute("download",e),void 0===s.download&&s.setAttribute("target","_blank"),document.body.appendChild(s),s.click(),setTimeout((function(){document.body.removeChild(s),window.URL.revokeObjectURL(o)}),200)}}}},e={};function i(r){var n=e[r];if(void 0!==n)return n.exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";i.r(r),i.d(r,{Gap:()=>Q,GapApiVersion:()=>t,GapHeader:()=>e,Method:()=>O,Platform:()=>o,StatusCode:()=>b,UserAgent:()=>n,default:()=>Z});var t,e,n,o,s={};function a(t,e,i,r){return new(i||(i=Promise))((function(n,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))}i.r(s),i.d(s,{GapError:()=>u,HttpInternalError:()=>v,HttpMaxRetriesError:()=>l,HttpRequestError:()=>h,HttpResponseError:()=>p,HttpRetryableError:()=>f,HttpThrottlingError:()=>y,MissingDataContextError:()=>c,UninitializedContextError:()=>d}),function(t){t.V1="1.0.0"}(t||(t={})),function(t){t.GClientId="G-ClientID"}(e||(e={})),function(t){t.IOS="IOS",t.ANDROID="ANDROID",t.CHROME="CHROME",t.SAFARI="SAFARI"}(n||(n={})),function(t){t.ANDROID="Android",t.IOS="iOS",t.WEB="Web",t.WINDOW="Window"}(o||(o={})),Object.create,Object.create;class u extends Error{constructor(...t){super(...t),Object.setPrototypeOf(this,new.target.prototype)}}class c extends u{}class d extends u{}class h extends u{}class l extends u{}class p extends u{constructor({message:t,code:e,statusText:i,body:r,headers:n}){super(t),this.response={code:e,statusText:i,body:r,headers:n}}}class f extends p{}class v extends f{}class y extends f{constructor(t){var{retryAfter:e}=t;super(function(t,e){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(i[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(t);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(t,r[n])&&(i[r[n]]=t[r[n]])}return i}(t,["retryAfter"])),this.response.retryAfter=e}}const m={API_KEY:"",API_SECRET_KEY:"",G_CLIENTID:"",USER_AGENT:"",API_VERSION:t.V1,initialize:function(t){const e=[];if(t.API_KEY.length||e.push("API_KEY"),t.API_SECRET_KEY.length||e.push("API_SECRET_KEY"),t.API_SECRET_KEY.length||e.push("G_CLIENTID"),e.length)throw new c(`Cannot initialize GAP Library. Missing values for: ${e.join(", ")}`);this.API_KEY=t.API_KEY,this.API_SECRET_KEY=t.API_SECRET_KEY,this.G_CLIENTID=t.G_CLIENTID,this.API_VERSION=t.API_VERSION},throwIfUninitialized:function(){if(!this.API_KEY||0===this.API_KEY.length)throw new d("Context has not been properly initialized. Please call the .initialize() method to setup your app context object.")}},g="/v1/pos/printer/site/list";var O,b,E=i(669),w=i.n(E);!function(t){t.Get="GET",t.Post="POST",t.Put="PUT",t.Patch="PATCH",t.Delete="DELETE",t.Head="HEAD",t.Options="OPTIONS",t.Connect="CONNECT"}(O||(O={})),function(t){t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.RequestEntityTooLarge=413]="RequestEntityTooLarge",t[t.RequestUriTooLong=414]="RequestUriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RequestedRangeNotSatisfiable=416]="RequestedRangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported"}(b||(b={}));class x{constructor(t,e,i){this.RETRY_WAIT_TIME=1e3,this.domain=t,this.axios=w().create({headers:{"G-ClientID":e,Authorization:`Bearer ${i}`}})}get(t){return a(this,void 0,void 0,(function*(){return this.request(Object.assign({method:O.Get},t))}))}post(t){return a(this,void 0,void 0,(function*(){return this.request(Object.assign({method:O.Post},t))}))}put(t){return a(this,void 0,void 0,(function*(){return this.request(Object.assign({method:O.Put},t))}))}delete(t){return a(this,void 0,void 0,(function*(){return this.request(Object.assign({method:O.Delete},t))}))}request(t){return a(this,void 0,void 0,(function*(){const e=t.tries?t.tries:1;if(e<=0)throw new h(`Number of tries must be >= 0, got ${e}`);const i={url:`${this.domain}${this.getRequestPath(t.path)}`,params:t.query,method:t.method.toString(),data:t.data};function r(t){return a(this,void 0,void 0,(function*(){return new Promise((e=>setTimeout(e,t)))}))}let n=0;for(;n<e;)try{return yield this.doRequest(i)}catch(t){if(n++,t instanceof f){if(n<e){let e=this.RETRY_WAIT_TIME;t instanceof y&&t.response.retryAfter&&(e=1e3*t.response.retryAfter),yield r(e);continue}if(e>1)throw new l(`Exceeded maximum retry count of ${e}. Last message: ${t.message}`)}throw t}throw new u("Unexpected flow, reached maximum HTTP tries but did not throw an error")}))}getRequestPath(t){return`/${t.replace(/^\//,"")}`}doRequest(t){var e;return a(this,void 0,void 0,(function*(){try{const i=yield this.axios(t);if(i.status&&"OK"===i.data.status&&"OK"===(null===(e=i.data.result)||void 0===e?void 0:e.status))return i.data;{const t=JSON.stringify(i.data.message||i.data.result.message,null,2),e=i.headers,r=i.status,n=i.statusText;switch(!0){case i.status===b.TooManyRequests:{const o=i.headers["Retry-After"];throw new y({message:`GAP is throttling requests ${t}`,code:r,statusText:n,body:i.data,headers:e,retryAfter:o?parseFloat(o):void 0})}case i.status>=b.InternalServerError:throw new v({message:`GAP internal error ${t}`,code:r,statusText:n,body:i.data,headers:e});default:throw new p({message:`Received an error response (${i.status} ${i.statusText}) from GAP ${t}`,code:r,statusText:n,body:i.data,headers:e})}}}catch(t){throw t instanceof u?t:new h(`Failed to make GAP HTTP request: ${t.message}`)}}))}}class S{static setClient(t,e,i){if(!t||!e||!i)return console.error(new Error("Missing params init http_client"));this.client=new x(t,e,i)}}class R extends S{static postCreateAppointment(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/appointment/appointment/form/create",data:t})}))}static getCategoryListAppointment(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/gocheckin/service/site/list-by-category",query:t})}))}static getStaffListAppointment(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/gocheckin/staff/site/list",query:t})}))}}class C extends S{static getBatchHistory(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/history/site/batch-history",query:t})}))}static getBatchDetail(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/history/site/batch-detail",query:t})}))}}class A extends S{static getBusinessInfo(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/business/site/get-info",query:t})}))}static postBusinessUpdateInfo(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/business/form/update",data:t})}))}}class T extends S{static sendSms(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/call/form/send-sms",data:t})}))}}class k extends S{static getCategoryListItem(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/category/site/list-item",query:t})}))}}class P extends S{static postCheckInFormSubmit(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkin/form/submit",data:t})}))}static getCheckInList(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkin/site/list",query:t})}))}static getCheckInReport(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkin/site/report",query:t})}))}static getLastCheckIn(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkin/site/check-update",query:t})}))}static getCheckInInfo(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkin/site/info",query:t})}))}}class D extends S{static getItemList(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/item/site/list",query:t})}))}static getCheckOutHistoryList(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkout/history/list",query:t})}))}static getCheckOutInfo(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkout/site/info",query:t})}))}static getCheckOutHistoryInfo(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkout/history/info",query:t})}))}static getCheckOutBatchCloseSummary(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkout/site/get-batch-close-summary",query:t})}))}static postCheckOutAddItem(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/item/add",data:t})}))}static postCheckOutRemoveItem(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/item/remove",data:t})}))}static postCheckOutSubmitOrder(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/payment/submit",data:t})}))}static postCheckOutUpdateStatus(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-status",data:t})}))}static postCheckOutUpdateOrderWithCreditCardPayment(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-order-with-credit-card-payment",data:t})}))}static postCheckOutDoAuth(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/do-auth",data:t})}))}static postCheckOutVoidPayment(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/void-payment",data:t})}))}static postCheckOutRefundPayment(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/refund-payment",data:t})}))}static postCheckOutAdjustTipPayment(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/adjust-tip",data:t})}))}static postCheckOutCloseOut(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/closeout",data:t})}))}static postCheckOutUpdateIsWaiting(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-is-wait",data:t})}))}static postCheckOutDiscountPromotion(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/discount/promotion",data:t})}))}static postCheckOutDiscountRedeem(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/discount/redeem",data:t})}))}static postCheckOutUpdateTipData(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/tip/update",data:t})}))}static postCheckOutItemAdjustPrice(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/item/adjust-price",data:t})}))}static postCheckOutUpdatePaymentData(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-payment-data",data:t})}))}static postCheckOutItemAddCombo(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/item/add-combo",data:t})}))}static getCheckoutResendRating(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkout/form/send-mercure",query:t})}))}static postCustomerAchAvailable(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ach/form/check-customer",data:t})}))}static postAchResend(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ach/form/resend-transaction",data:t})}))}static postAchVoid(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ach/form/cancel-transaction",data:t})}))}static postUpdateOrderSuccessToSettled(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-success-to-settled",data:t})}))}static postCalculateTax(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/calculate-tax",data:t})}))}static postCalculatePayment(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/calculate-payment",data:t})}))}}class _ extends S{static getComboSiteInfo(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/combo/site/info",query:t})}))}}class q extends S{static getCustomerList(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/customer/site/list",query:t})}))}static getCustomerDetail(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/customer/site/detail",query:t})}))}}class I extends S{static getCheckGiftCard(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/giftcard/site/check-gift-card",query:t})}))}static postResetGiftCard(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/item/reset-gift-card",data:t})}))}}class $ extends S{static getIncomeHistory(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/history/site/income-history",query:t})}))}static getStaffDailyIncome(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/staff/site/list-income-v1",query:t})}))}}class N extends S{static getKeyStorage(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/user/site/get-key-storage",query:t})}))}}var L=i(823),U=i.n(L);const j=()=>({AU:"DD-MM-YYYY",US:"MM-DD-YYYY",DEFAULT:"DD-MM-YYYY"}[localStorage.getItem("country_code")||"DEFAULT"]);var M=i(484),B=i.n(M);class F extends S{static getCheckingList(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkin/site/dash-board-list",query:t})}))}static getOrderDetail(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkout/site/info",query:t})}))}static getOrderHistoryList(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkout/history/info",query:t})}))}static getReportChecking(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkin/site/dash-board-report",query:t})}))}static updateOrderStaff(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-staff",data:t})}))}static removeOrder(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/order/remove-order",data:t})}))}static exportOrder(t){return a(this,void 0,void 0,(function*(){const e=yield this.client.get({path:"/v1/pos/checkin/site/export",query:t});let i=j();U()(e,`export-orders-${B()().format(i)}.xls`)}))}}class H extends S{static getPayrollList(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"v1/pos/payroll/site/list-payroll",query:t})}))}static getPayrollSetting(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/setting/site/payroll-setting",query:t})}))}static approvePayroll(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/payroll/form/approve-payroll",data:t})}))}static updatePayrollSetting(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/setting/form/update-payroll",data:t})}))}static getDiscountSetting(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/setting/site/discount-setting",query:t})}))}static updateDiscountSetting(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/setting/form/update-discount",data:t})}))}static getCashDiscountSetting(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/cashdiscount/setting/get",query:t})}))}static updateCashDiscountSetting(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/cashdiscount/setting/change",data:t})}))}static getIncomeDetail(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/payroll/staff/income-detail",query:t})}))}static getApprovePayroll(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/payroll/site/approve-period",query:t})}))}static exportPayroll(t){return a(this,void 0,void 0,(function*(){const e=yield this.client.get({path:"v1/pos/payroll/site/export-payroll",query:t}),i=j();U()(e.data,`${B()().format(i)}.xlsx`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")}))}static exportApprovePayroll(t){return a(this,void 0,void 0,(function*(){const e=yield this.client.get({path:"/v1/pos/payroll/site/export-approve-payroll",query:t}),i=j();U()(e.data,`${B()().format(i)}.xlsx`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")}))}static exportIncomeDetail(t){return a(this,void 0,void 0,(function*(){const e=yield this.client.get({path:"/v1/pos/payroll/staff/export-income-detail",query:t}),i=j();U()(e.data,`${B()().format(i)}.xlsx`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")}))}static getSalaryChart(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/payroll/site/salary-chart",query:t})}))}static getAppListPayroll(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/payroll/site/app-list-payroll",query:t})}))}static getPayrollDetail(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/payroll/site/get-payroll-detail",query:t})}))}}class Y extends S{static getPrinterList(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:g,query:t})}))}static getPrinterDetail(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:g,query:t})}))}static createPrinterInfo(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:g,data:t})}))}static updatePrinterInfo(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:g,query:t})}))}}class G extends S{static getServiceList(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/service/site/list",query:t})}))}}class K extends S{static getTurnValue(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/setting/site/get-turn-value",query:t})}))}static postTurnUpdateValue(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/setting/form/update-turn-value",data:t})}))}}class W extends S{static getStaffList(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/staff/site/list",query:t})}))}static getStaffListByCheckout(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/staff/site/list-by-checkout",query:t})}))}}class V extends S{static getTicketList(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/ticket/site/info",query:t})}))}static createTicketTemplate(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ticket/form/create",data:t})}))}static deleteTicketTemplate(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/ticket/form/delete",query:t})}))}static updateTicketTemplate(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ticket/form/update",query:t,data:t})}))}static moveSubject(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ticket/form/subject-move",data:t})}))}static setDefaultTicketTemplate(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ticket/site/set-default-ticket-template",data:t})}))}static getTicketTemplate(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/ticket/site/template",query:t})}))}}class z extends S{static getTimeKeepingList(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/timekeeping/site/list",query:t})}))}static addTimeKeeping(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/timekeeping/form/create",data:t})}))}static updateTimeKeeping(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/timekeeping/form/edit-time",data:t})}))}static removeTimeKeeping(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/timekeeping/form/delete-time",data:t})}))}static getTimeKeepingListStaff(t){return a(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/timekeeping/site/list-staff",query:t})}))}static postTimeKeepingCheckIn(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/timekeeping/form/add-checkin-time",data:t})}))}static postTimeKeepingCheckOut(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/timekeeping/form/add-checkout-time",data:t})}))}}class J extends S{}class X extends S{static postLogin(t){return a(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/user/form/login",data:t})}))}}const Q={Context:m,PosClientApi:class{constructor(t,e,i){this.appointment=R,this.batch_history=C,this.business=A,this.call=T,this.category=k,this.check_in=P,this.check_out=D,this.combo=_,this.customer=q,this.gift_card=I,this.income=$,this.key_storage=N,this.order=F,this.payroll=H,this.printer=Y,this.service=G,this.setting_turn=K,this.staff=W,this.ticket=V,this.time_keeping=z,this.unsubscribe_contact=J,this.user=X,S.setClient(t,e,i)}},Errors:s};window.Gap=Q;const Z=Q})(),r})()));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.GapSdk=e():t.GapSdk=e()}(self,(()=>(()=>{var t={669:(t,e,i)=>{t.exports=i(609)},448:(t,e,i)=>{"use strict";var n=i(867),o=i(26),l=i(372),u=i(327),r=i(97),d=i(109),s=i(985),a=i(874),c=i(648),v=i(644),p=i(205);t.exports=function(t){return new Promise((function(e,i){var h,f=t.data,m=t.headers,_=t.responseType;function y(){t.cancelToken&&t.cancelToken.unsubscribe(h),t.signal&&t.signal.removeEventListener("abort",h)}n.isFormData(f)&&n.isStandardBrowserEnv()&&delete m["Content-Type"];var g=new XMLHttpRequest;if(t.auth){var b=t.auth.username||"",x=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+x)}var O=r(t.baseURL,t.url);function w(){if(g){var n="getAllResponseHeaders"in g?d(g.getAllResponseHeaders()):null,l={data:_&&"text"!==_&&"json"!==_?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:t,request:g};o((function(t){e(t),y()}),(function(t){i(t),y()}),l),g=null}}if(g.open(t.method.toUpperCase(),u(O,t.params,t.paramsSerializer),!0),g.timeout=t.timeout,"onloadend"in g?g.onloadend=w:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(w)},g.onabort=function(){g&&(i(new c("Request aborted",c.ECONNABORTED,t,g)),g=null)},g.onerror=function(){i(new c("Network Error",c.ERR_NETWORK,t,g,g)),g=null},g.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",n=t.transitional||a;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),i(new c(e,n.clarifyTimeoutError?c.ETIMEDOUT:c.ECONNABORTED,t,g)),g=null},n.isStandardBrowserEnv()){var E=(t.withCredentials||s(O))&&t.xsrfCookieName?l.read(t.xsrfCookieName):void 0;E&&(m[t.xsrfHeaderName]=E)}"setRequestHeader"in g&&n.forEach(m,(function(t,e){void 0===f&&"content-type"===e.toLowerCase()?delete m[e]:g.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(g.withCredentials=!!t.withCredentials),_&&"json"!==_&&(g.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&g.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(h=function(t){g&&(i(!t||t&&t.type?new v:t),g.abort(),g=null)},t.cancelToken&&t.cancelToken.subscribe(h),t.signal&&(t.signal.aborted?h():t.signal.addEventListener("abort",h))),f||(f=null);var k=p(O);k&&-1===["http","https","file"].indexOf(k)?i(new c("Unsupported protocol "+k+":",c.ERR_BAD_REQUEST,t)):g.send(f)}))}},609:(t,e,i)=>{"use strict";var n=i(867),o=i(849),l=i(321),u=i(185),r=function t(e){var i=new l(e),r=o(l.prototype.request,i);return n.extend(r,l.prototype,i),n.extend(r,i),r.create=function(i){return t(u(e,i))},r}(i(546));r.Axios=l,r.CanceledError=i(644),r.CancelToken=i(972),r.isCancel=i(502),r.VERSION=i(288).version,r.toFormData=i(675),r.AxiosError=i(648),r.Cancel=r.CanceledError,r.all=function(t){return Promise.all(t)},r.spread=i(713),r.isAxiosError=i(268),t.exports=r,t.exports.default=r},972:(t,e,i)=>{"use strict";var n=i(644);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var i=this;this.promise.then((function(t){if(i._listeners){var e,n=i._listeners.length;for(e=0;e<n;e++)i._listeners[e](t);i._listeners=null}})),this.promise.then=function(t){var e,n=new Promise((function(t){i.subscribe(t),e=t})).then(t);return n.cancel=function(){i.unsubscribe(e)},n},t((function(t){i.reason||(i.reason=new n(t),e(i.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},o.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},644:(t,e,i)=>{"use strict";var n=i(648);function o(t){n.call(this,null==t?"canceled":t,n.ERR_CANCELED),this.name="CanceledError"}i(867).inherits(o,n,{__CANCEL__:!0}),t.exports=o},502:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:(t,e,i)=>{"use strict";var n=i(867),o=i(327),l=i(782),u=i(572),r=i(185),d=i(97),s=i(875),a=s.validators;function c(t){this.defaults=t,this.interceptors={request:new l,response:new l}}c.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=r(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var i=e.transitional;void 0!==i&&s.assertOptions(i,{silentJSONParsing:a.transitional(a.boolean),forcedJSONParsing:a.transitional(a.boolean),clarifyTimeoutError:a.transitional(a.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(o=o&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var l,d=[];if(this.interceptors.response.forEach((function(t){d.push(t.fulfilled,t.rejected)})),!o){var c=[u,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(d),l=Promise.resolve(e);c.length;)l=l.then(c.shift(),c.shift());return l}for(var v=e;n.length;){var p=n.shift(),h=n.shift();try{v=p(v)}catch(t){h(t);break}}try{l=u(v)}catch(t){return Promise.reject(t)}for(;d.length;)l=l.then(d.shift(),d.shift());return l},c.prototype.getUri=function(t){t=r(this.defaults,t);var e=d(t.baseURL,t.url);return o(e,t.params,t.paramsSerializer)},n.forEach(["delete","get","head","options"],(function(t){c.prototype[t]=function(e,i){return this.request(r(i||{},{method:t,url:e,data:(i||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){function e(e){return function(i,n,o){return this.request(r(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}c.prototype[t]=e(),c.prototype[t+"Form"]=e(!0)})),t.exports=c},648:(t,e,i)=>{"use strict";var n=i(867);function o(t,e,i,n,o){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),i&&(this.config=i),n&&(this.request=n),o&&(this.response=o)}n.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var l=o.prototype,u={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(t){u[t]={value:t}})),Object.defineProperties(o,u),Object.defineProperty(l,"isAxiosError",{value:!0}),o.from=function(t,e,i,u,r,d){var s=Object.create(l);return n.toFlatObject(t,s,(function(t){return t!==Error.prototype})),o.call(s,t.message,e,i,u,r),s.name=t.name,d&&Object.assign(s,d),s},t.exports=o},782:(t,e,i)=>{"use strict";var n=i(867);function o(){this.handlers=[]}o.prototype.use=function(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},97:(t,e,i)=>{"use strict";var n=i(793),o=i(303);t.exports=function(t,e){return t&&!n(e)?o(t,e):e}},572:(t,e,i)=>{"use strict";var n=i(867),o=i(527),l=i(502),u=i(546),r=i(644);function d(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new r}t.exports=function(t){return d(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||u.adapter)(t).then((function(e){return d(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return l(e)||(d(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},185:(t,e,i)=>{"use strict";var n=i(867);t.exports=function(t,e){e=e||{};var i={};function o(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function l(i){return n.isUndefined(e[i])?n.isUndefined(t[i])?void 0:o(void 0,t[i]):o(t[i],e[i])}function u(t){if(!n.isUndefined(e[t]))return o(void 0,e[t])}function r(i){return n.isUndefined(e[i])?n.isUndefined(t[i])?void 0:o(void 0,t[i]):o(void 0,e[i])}function d(i){return i in e?o(t[i],e[i]):i in t?o(void 0,t[i]):void 0}var s={url:u,method:u,data:u,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:d};return n.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=s[t]||l,o=e(t);n.isUndefined(o)&&e!==d||(i[t]=o)})),i}},26:(t,e,i)=>{"use strict";var n=i(648);t.exports=function(t,e,i){var o=i.config.validateStatus;i.status&&o&&!o(i.status)?e(new n("Request failed with status code "+i.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):t(i)}},527:(t,e,i)=>{"use strict";var n=i(867),o=i(546);t.exports=function(t,e,i){var l=this||o;return n.forEach(i,(function(i){t=i.call(l,t,e)})),t}},546:(t,e,i)=>{"use strict";var n=i(867),o=i(16),l=i(648),u=i(874),r=i(675),d={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var a,c={transitional:u,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(a=i(448)),a),transformRequest:[function(t,e){if(o(e,"Accept"),o(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t))return t;if(n.isArrayBufferView(t))return t.buffer;if(n.isURLSearchParams(t))return s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var i,l=n.isObject(t),u=e&&e["Content-Type"];if((i=n.isFileList(t))||l&&"multipart/form-data"===u){var d=this.env&&this.env.FormData;return r(i?{"files[]":t}:t,d&&new d)}return l||"application/json"===u?(s(e,"application/json"),function(t,e,i){if(n.isString(t))try{return(0,JSON.parse)(t),n.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||c.transitional,i=e&&e.silentJSONParsing,o=e&&e.forcedJSONParsing,u=!i&&"json"===this.responseType;if(u||o&&n.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(u){if("SyntaxError"===t.name)throw l.from(t,l.ERR_BAD_RESPONSE,this,null,this.response);throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:i(623)},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){c.headers[t]=n.merge(d)})),t.exports=c},874:t=>{"use strict";t.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},288:t=>{t.exports={version:"0.27.2"}},849:t=>{"use strict";t.exports=function(t,e){return function(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];return t.apply(e,i)}}},327:(t,e,i)=>{"use strict";var n=i(867);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,i){if(!e)return t;var l;if(i)l=i(e);else if(n.isURLSearchParams(e))l=e.toString();else{var u=[];n.forEach(e,(function(t,e){null!=t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),u.push(o(e)+"="+o(t))})))})),l=u.join("&")}if(l){var r=t.indexOf("#");-1!==r&&(t=t.slice(0,r)),t+=(-1===t.indexOf("?")?"?":"&")+l}return t}},303:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},372:(t,e,i)=>{"use strict";var n=i(867);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,i,o,l,u){var r=[];r.push(t+"="+encodeURIComponent(e)),n.isNumber(i)&&r.push("expires="+new Date(i).toGMTString()),n.isString(o)&&r.push("path="+o),n.isString(l)&&r.push("domain="+l),!0===u&&r.push("secure"),document.cookie=r.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}},268:(t,e,i)=>{"use strict";var n=i(867);t.exports=function(t){return n.isObject(t)&&!0===t.isAxiosError}},985:(t,e,i)=>{"use strict";var n=i(867);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function o(t){var n=t;return e&&(i.setAttribute("href",n),n=i.href),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return t=o(window.location.href),function(e){var i=n.isString(e)?o(e):e;return i.protocol===t.protocol&&i.host===t.host}}():function(){return!0}},16:(t,e,i)=>{"use strict";var n=i(867);t.exports=function(t,e){n.forEach(t,(function(i,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=i,delete t[n])}))}},623:t=>{t.exports=null},109:(t,e,i)=>{"use strict";var n=i(867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,i,l,u={};return t?(n.forEach(t.split("\n"),(function(t){if(l=t.indexOf(":"),e=n.trim(t.substr(0,l)).toLowerCase(),i=n.trim(t.substr(l+1)),e){if(u[e]&&o.indexOf(e)>=0)return;u[e]="set-cookie"===e?(u[e]?u[e]:[]).concat([i]):u[e]?u[e]+", "+i:i}})),u):u}},205:t=>{"use strict";t.exports=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}},713:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},675:(t,e,i)=>{"use strict";var n=i(867);t.exports=function(t,e){e=e||new FormData;var i=[];function o(t){return null===t?"":n.isDate(t)?t.toISOString():n.isArrayBuffer(t)||n.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(l,u){if(n.isPlainObject(l)||n.isArray(l)){if(-1!==i.indexOf(l))throw Error("Circular reference detected in "+u);i.push(l),n.forEach(l,(function(i,l){if(!n.isUndefined(i)){var r,d=u?u+"."+l:l;if(i&&!u&&"object"==typeof i)if(n.endsWith(l,"{}"))i=JSON.stringify(i);else if(n.endsWith(l,"[]")&&(r=n.toArray(i)))return void r.forEach((function(t){!n.isUndefined(t)&&e.append(d,o(t))}));t(i,d)}})),i.pop()}else e.append(u,o(l))}(t),e}},875:(t,e,i)=>{"use strict";var n=i(288).version,o=i(648),l={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){l[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}}));var u={};l.transitional=function(t,e,i){function l(t,e){return"[Axios v"+n+"] Transitional option '"+t+"'"+e+(i?". "+i:"")}return function(i,n,r){if(!1===t)throw new o(l(n," has been removed"+(e?" in "+e:"")),o.ERR_DEPRECATED);return e&&!u[n]&&(u[n]=!0,console.warn(l(n," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(i,n,r)}},t.exports={assertOptions:function(t,e,i){if("object"!=typeof t)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(t),l=n.length;l-- >0;){var u=n[l],r=e[u];if(r){var d=t[u],s=void 0===d||r(d,u,t);if(!0!==s)throw new o("option "+u+" must be "+s,o.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new o("Unknown option "+u,o.ERR_BAD_OPTION)}},validators:l}},867:(t,e,i)=>{"use strict";var n,o=i(849),l=Object.prototype.toString,u=(n=Object.create(null),function(t){var e=l.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())});function r(t){return t=t.toLowerCase(),function(e){return u(e)===t}}function d(t){return Array.isArray(t)}function s(t){return void 0===t}var a=r("ArrayBuffer");function c(t){return null!==t&&"object"==typeof t}function v(t){if("object"!==u(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var p=r("Date"),h=r("File"),f=r("Blob"),m=r("FileList");function _(t){return"[object Function]"===l.call(t)}var y=r("URLSearchParams");function g(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),d(t))for(var i=0,n=t.length;i<n;i++)e.call(null,t[i],i,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}var b,x=(b="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(t){return b&&t instanceof b});t.exports={isArray:d,isArrayBuffer:a,isBuffer:function(t){return null!==t&&!s(t)&&null!==t.constructor&&!s(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){var e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||l.call(t)===e||_(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&a(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:c,isPlainObject:v,isUndefined:s,isDate:p,isFile:h,isBlob:f,isFunction:_,isStream:function(t){return c(t)&&_(t.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:g,merge:function t(){var e={};function i(i,n){v(e[n])&&v(i)?e[n]=t(e[n],i):v(i)?e[n]=t({},i):d(i)?e[n]=i.slice():e[n]=i}for(var n=0,o=arguments.length;n<o;n++)g(arguments[n],i);return e},extend:function(t,e,i){return g(e,(function(e,n){t[n]=i&&"function"==typeof e?o(e,i):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,i,n){t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,i&&Object.assign(t.prototype,i)},toFlatObject:function(t,e,i){var n,o,l,u={};e=e||{};do{for(o=(n=Object.getOwnPropertyNames(t)).length;o-- >0;)u[l=n[o]]||(e[l]=t[l],u[l]=!0);t=Object.getPrototypeOf(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},kindOf:u,kindOfTest:r,endsWith:function(t,e,i){t=String(t),(void 0===i||i>t.length)&&(i=t.length),i-=e.length;var n=t.indexOf(e,i);return-1!==n&&n===i},toArray:function(t){if(!t)return null;var e=t.length;if(s(e))return null;for(var i=new Array(e);e-- >0;)i[e]=t[e];return i},isTypedArray:x,isFileList:m}},484:function(t){t.exports=function(){"use strict";var t=6e4,e=36e5,i="millisecond",n="second",o="minute",l="hour",u="day",r="week",d="month",s="quarter",a="year",c="date",v="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(t,e,i){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(i)+t},_={s:m,z:function(t){var e=-t.utcOffset(),i=Math.abs(e),n=Math.floor(i/60),o=i%60;return(e<=0?"+":"-")+m(n,2,"0")+":"+m(o,2,"0")},m:function t(e,i){if(e.date()<i.date())return-t(i,e);var n=12*(i.year()-e.year())+(i.month()-e.month()),o=e.clone().add(n,d),l=i-o<0,u=e.clone().add(n+(l?-1:1),d);return+(-(n+(i-o)/(l?o-u:u-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:d,y:a,w:r,d:u,D:c,h:l,m:o,s:n,ms:i,Q:s}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",g={};g[y]=f;var b=function(t){return t instanceof E},x=function t(e,i,n){var o;if(!e)return y;if("string"==typeof e){var l=e.toLowerCase();g[l]&&(o=l),i&&(g[l]=i,o=l);var u=e.split("-");if(!o&&u.length>1)return t(u[0])}else{var r=e.name;g[r]=e,o=r}return!n&&o&&(y=o),o||!n&&y},O=function(t,e){if(b(t))return t.clone();var i="object"==typeof e?e:{};return i.date=t,i.args=arguments,new E(i)},w=_;w.l=x,w.i=b,w.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var E=function(){function f(t){this.$L=x(t.locale,null,!0),this.parse(t)}var m=f.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,i=t.utc;if(null===e)return new Date(NaN);if(w.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(p);if(n){var o=n[2]-1||0,l=(n[7]||"0").substring(0,3);return i?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,l)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,l)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return w},m.isValid=function(){return!(this.$d.toString()===v)},m.isSame=function(t,e){var i=O(t);return this.startOf(e)<=i&&i<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,i){return w.u(t)?this[e]:this.set(i,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var i=this,s=!!w.u(e)||e,v=w.p(t),p=function(t,e){var n=w.w(i.$u?Date.UTC(i.$y,e,t):new Date(i.$y,e,t),i);return s?n:n.endOf(u)},h=function(t,e){return w.w(i.toDate()[t].apply(i.toDate("s"),(s?[0,0,0,0]:[23,59,59,999]).slice(e)),i)},f=this.$W,m=this.$M,_=this.$D,y="set"+(this.$u?"UTC":"");switch(v){case a:return s?p(1,0):p(31,11);case d:return s?p(1,m):p(0,m+1);case r:var g=this.$locale().weekStart||0,b=(f<g?f+7:f)-g;return p(s?_-b:_+(6-b),m);case u:case c:return h(y+"Hours",0);case l:return h(y+"Minutes",1);case o:return h(y+"Seconds",2);case n:return h(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var r,s=w.p(t),v="set"+(this.$u?"UTC":""),p=(r={},r[u]=v+"Date",r[c]=v+"Date",r[d]=v+"Month",r[a]=v+"FullYear",r[l]=v+"Hours",r[o]=v+"Minutes",r[n]=v+"Seconds",r[i]=v+"Milliseconds",r)[s],h=s===u?this.$D+(e-this.$W):e;if(s===d||s===a){var f=this.clone().set(c,1);f.$d[p](h),f.init(),this.$d=f.set(c,Math.min(this.$D,f.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[w.p(t)]()},m.add=function(i,s){var c,v=this;i=Number(i);var p=w.p(s),h=function(t){var e=O(v);return w.w(e.date(e.date()+Math.round(t*i)),v)};if(p===d)return this.set(d,this.$M+i);if(p===a)return this.set(a,this.$y+i);if(p===u)return h(1);if(p===r)return h(7);var f=(c={},c[o]=t,c[l]=e,c[n]=1e3,c)[p]||1,m=this.$d.getTime()+i*f;return w.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,i=this.$locale();if(!this.isValid())return i.invalidDate||v;var n=t||"YYYY-MM-DDTHH:mm:ssZ",o=w.z(this),l=this.$H,u=this.$m,r=this.$M,d=i.weekdays,s=i.months,a=function(t,i,o,l){return t&&(t[i]||t(e,n))||o[i].slice(0,l)},c=function(t){return w.s(l%12||12,t,"0")},p=i.meridiem||function(t,e,i){var n=t<12?"AM":"PM";return i?n.toLowerCase():n},f={YY:String(this.$y).slice(-2),YYYY:this.$y,M:r+1,MM:w.s(r+1,2,"0"),MMM:a(i.monthsShort,r,s,3),MMMM:a(s,r),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:a(i.weekdaysMin,this.$W,d,2),ddd:a(i.weekdaysShort,this.$W,d,3),dddd:d[this.$W],H:String(l),HH:w.s(l,2,"0"),h:c(1),hh:c(2),a:p(l,u,!0),A:p(l,u,!1),m:String(u),mm:w.s(u,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:o};return n.replace(h,(function(t,e){return e||f[t]||o.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(i,c,v){var p,h=w.p(c),f=O(i),m=(f.utcOffset()-this.utcOffset())*t,_=this-f,y=w.m(this,f);return y=(p={},p[a]=y/12,p[d]=y,p[s]=y/3,p[r]=(_-m)/6048e5,p[u]=(_-m)/864e5,p[l]=_/e,p[o]=_/t,p[n]=_/1e3,p)[h]||_,v?y:w.a(y)},m.daysInMonth=function(){return this.endOf(d).$D},m.$locale=function(){return g[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var i=this.clone(),n=x(t,e,!0);return n&&(i.$L=n),i},m.clone=function(){return w.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},f}(),k=E.prototype;return O.prototype=k,[["$ms",i],["$s",n],["$m",o],["$H",l],["$W",u],["$M",d],["$y",a],["$D",c]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,E,O),t.$i=!0),O},O.locale=x,O.isDayjs=b,O.unix=function(t){return O(1e3*t)},O.en=g[y],O.Ls=g,O.p={},O}()},823:t=>{t.exports=function(t,e,i,n){var o=new Blob(void 0!==n?[n,t]:[t],{type:i||"application/octet-stream"});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(o,e);else{var l=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(o):window.webkitURL.createObjectURL(o),u=document.createElement("a");u.style.display="none",u.href=l,u.setAttribute("download",e),void 0===u.download&&u.setAttribute("target","_blank"),document.body.appendChild(u),u.click(),setTimeout((function(){document.body.removeChild(u),window.URL.revokeObjectURL(l)}),200)}}}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var l=e[n]={exports:{}};return t[n].call(l.exports,l,l.exports,i),l.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";i.r(n),i.d(n,{Gap:()=>ot,GapApiVersion:()=>e,GapHeader:()=>o,Method:()=>b,Platform:()=>u,StatusCode:()=>x,UserAgent:()=>l,default:()=>lt});var t={};i.r(t),i.d(t,{GapError:()=>s,HttpInternalError:()=>m,HttpMaxRetriesError:()=>p,HttpRequestError:()=>v,HttpResponseError:()=>h,HttpRetryableError:()=>f,HttpThrottlingError:()=>_,MissingDataContextError:()=>a,RestResourceError:()=>y,UninitializedContextError:()=>c});var e,o,l,u,r={};function d(t,e,i,n){return new(i||(i=Promise))((function(o,l){function u(t){try{d(n.next(t))}catch(t){l(t)}}function r(t){try{d(n.throw(t))}catch(t){l(t)}}function d(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(u,r)}d((n=n.apply(t,e||[])).next())}))}i.r(r),i.d(r,{Appointment:()=>C,BatchHistory:()=>R,Business:()=>A,Call:()=>T,Category:()=>P,CheckIn:()=>D,CheckOut:()=>$,Combo:()=>N,Customer:()=>U,GiftCard:()=>L,Income:()=>j,KeyStorage:()=>M,Order:()=>V,Payroll:()=>W,Printer:()=>z,Service:()=>J,SettingTurn:()=>X,Staff:()=>Q,Ticket:()=>Z,TimeKeeping:()=>tt,UnsubscribeContact:()=>et,User:()=>it}),function(t){t.V1="1.0.0"}(e||(e={})),function(t){t.GClientId="G-ClientID"}(o||(o={})),function(t){t.IOS="IOS",t.ANDROID="ANDROID",t.CHROME="CHROME",t.SAFARI="SAFARI"}(l||(l={})),function(t){t.ANDROID="Android",t.IOS="iOS",t.WEB="Web",t.WINDOW="Window"}(u||(u={})),Object.create,Object.create;class s extends Error{constructor(...t){super(...t),Object.setPrototypeOf(this,new.target.prototype)}}class a extends s{}class c extends s{}class v extends s{}class p extends s{}class h extends s{constructor({message:t,code:e,statusText:i,body:n,headers:o}){super(t),this.response={code:e,statusText:i,body:n,headers:o}}}class f extends h{}class m extends f{}class _ extends f{constructor(t){var{retryAfter:e}=t;super(function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i}(t,["retryAfter"])),this.response.retryAfter=e}}class y extends s{}const g={API_KEY:"",API_SECRET_KEY:"",G_CLIENTID:"",USER_AGENT:"",API_VERSION:e.V1,initialize:function(t){const e=[];if(t.API_KEY.length||e.push("API_KEY"),t.API_SECRET_KEY.length||e.push("API_SECRET_KEY"),t.API_SECRET_KEY.length||e.push("G_CLIENTID"),e.length)throw new a(`Cannot initialize GAP Library. Missing values for: ${e.join(", ")}`);this.API_KEY=t.API_KEY,this.API_SECRET_KEY=t.API_SECRET_KEY,this.G_CLIENTID=t.G_CLIENTID,this.API_VERSION=t.API_VERSION},throwIfUninitialized:function(){if(!this.API_KEY||0===this.API_KEY.length)throw new c("Context has not been properly initialized. Please call the .initialize() method to setup your app context object.")}};var b,x,O=i(669),w=i.n(O);!function(t){t.Get="GET",t.Post="POST",t.Put="PUT",t.Patch="PATCH",t.Delete="DELETE",t.Head="HEAD",t.Options="OPTIONS",t.Connect="CONNECT"}(b||(b={})),function(t){t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.RequestEntityTooLarge=413]="RequestEntityTooLarge",t[t.RequestUriTooLong=414]="RequestUriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RequestedRangeNotSatisfiable=416]="RequestedRangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported"}(x||(x={}));class E{constructor(t,e,i,n){this.RETRY_WAIT_TIME=1e3,this.API_VERSION=n,this.domain=t,this.axios=w().create({headers:{"G-ClientID":e,Authorization:`Bearer ${i}`}})}get(t){return d(this,void 0,void 0,(function*(){return this.request(Object.assign({method:b.Get},t))}))}post(t){return d(this,void 0,void 0,(function*(){return this.request(Object.assign({method:b.Post},t))}))}put(t){return d(this,void 0,void 0,(function*(){return this.request(Object.assign({method:b.Put},t))}))}delete(t){return d(this,void 0,void 0,(function*(){return this.request(Object.assign({method:b.Delete},t))}))}request(t){return d(this,void 0,void 0,(function*(){if(g.API_VERSION!==this.API_VERSION)throw new y(`Current Context.API_VERSION '${g.API_VERSION}' does not match resource version ${this.API_VERSION}`);const e=t.tries?t.tries:1;if(e<=0)throw new v(`Number of tries must be >= 0, got ${e}`);const i={url:`${this.domain}${this.getRequestPath(t.path)}`,params:t.query,method:t.method.toString(),data:t.data};function n(t){return d(this,void 0,void 0,(function*(){return new Promise((e=>setTimeout(e,t)))}))}let o=0;for(;o<e;)try{return yield this.doRequest(i)}catch(t){if(o++,t instanceof f){if(o<e){let e=this.RETRY_WAIT_TIME;t instanceof _&&t.response.retryAfter&&(e=1e3*t.response.retryAfter),yield n(e);continue}if(e>1)throw new p(`Exceeded maximum retry count of ${e}. Last message: ${t.message}`)}throw t}throw new s("Unexpected flow, reached maximum HTTP tries but did not throw an error")}))}getRequestPath(t){return`/${t.replace(/^\//,"")}`}doRequest(t){var e;return d(this,void 0,void 0,(function*(){try{const i=yield this.axios(t);if(i.status&&"OK"===i.data.status&&"OK"===(null===(e=i.data.result)||void 0===e?void 0:e.status))return i.data;{const t=JSON.stringify(i.data.message||i.data.result.message,null,2),e=i.headers,n=i.status,o=i.statusText;switch(!0){case i.status===x.TooManyRequests:{const l=i.headers["Retry-After"];throw new _({message:`GAP is throttling requests ${t}`,code:n,statusText:o,body:i.data,headers:e,retryAfter:l?parseFloat(l):void 0})}case i.status>=x.InternalServerError:throw new m({message:`GAP internal error ${t}`,code:n,statusText:o,body:i.data,headers:e});default:throw new h({message:`Received an error response (${i.status} ${i.statusText}) from GAP ${t}`,code:n,statusText:o,body:i.data,headers:e})}}}catch(t){throw t instanceof s?t:new v(`Failed to make GAP HTTP request: ${t.message}`)}}))}}class k{static setClient(t,e,i,n){if(!t||!e||!i)return console.error(new Error("Missing params init http_client"));this.client=new E(t,e,i,n)}}const S="/v1/pos/printer/site/list";class C extends k{static postCreateAppointment(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/appointment/appointment/form/create",data:t})}))}static getCategoryListAppointment(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/gocheckin/service/site/list-by-category",query:t})}))}static getStaffListAppointment(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/gocheckin/staff/site/list",query:t})}))}}class R extends k{static getBatchHistory(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/history/site/batch-history",query:t})}))}static getBatchDetail(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/history/site/batch-detail",query:t})}))}}class A extends k{static getBusinessInfo(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/business/site/get-info",query:t})}))}static postBusinessUpdateInfo(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/business/form/update",data:t})}))}}class T extends k{static sendSms(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/call/form/send-sms",data:t})}))}}class P extends k{static getCategoryListItem(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/category/site/list-item",query:t})}))}}function I(t){var e,i,n,o,l,u,r,d,s,a,c,v,p,h,f,m,_,y,g,b,x,O,w,E,k,S,C,R,A,T,P,I,D,q,$,N,U,L,j,M,B,F,H,Y,G,V,K,W,z,J,X,Q,Z,tt,et,it,nt,ot,lt,ut,rt,dt,st,at,ct,vt,pt,ht,ft,mt,_t,yt,gt,bt,xt,Ot,wt,Et,kt,St,Ct,Rt,At,Tt,Pt,It,Dt,qt,$t,Nt,Ut,Lt,jt,Mt,Bt,Ft,Ht,Yt,Gt,Vt,Kt,Wt,zt,Jt,Xt,Qt,Zt,te,ee,ie,ne,oe,le,ue,re,de,se,ae;return{id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null,customer_id:null!==(i=null==t?void 0:t.customer_id)&&void 0!==i?i:null,customer_name:null!==(n=null==t?void 0:t.customer_name)&&void 0!==n?n:null,customer_phone:null!==(o=null==t?void 0:t.customer_phone)&&void 0!==o?o:null,customer_email:null!==(l=null==t?void 0:t.customer_email)&&void 0!==l?l:null,customer_address:null!==(u=null==t?void 0:t.customer_address)&&void 0!==u?u:null,payment_method:null!==(r=null==t?void 0:t.payment_method)&&void 0!==r?r:null,currency:null!==(d=null==t?void 0:t.currency)&&void 0!==d?d:null,start_time:null!==(s=null==t?void 0:t.start_time)&&void 0!==s?s:null,expected_end_time:null!==(a=null==t?void 0:t.expected_end_time)&&void 0!==a?a:null,end_time:null!==(c=null==t?void 0:t.end_time)&&void 0!==c?c:null,picked_up_time:null!==(v=null==t?void 0:t.picked_up_time)&&void 0!==v?v:null,promotion_code:null!==(p=null==t?void 0:t.promotion_code)&&void 0!==p?p:null,total_before_discount:null!==(h=null==t?void 0:t.total_before_discount)&&void 0!==h?h:null,total_after_discount:null!==(f=null==t?void 0:t.total_after_discount)&&void 0!==f?f:null,employee_id:null!==(m=null==t?void 0:t.employee_id)&&void 0!==m?m:null,employee_name:null!==(_=null==t?void 0:t.employee_name)&&void 0!==_?_:null,type:null!==(y=null==t?void 0:t.type)&&void 0!==y?y:null,note:null!==(g=null==t?void 0:t.note)&&void 0!==g?g:null,owner_note:null!==(b=null==t?void 0:t.owner_note)&&void 0!==b?b:null,order_status:null!==(x=null==t?void 0:t.order_status)&&void 0!==x?x:null,status:null!==(O=null==t?void 0:t.status)&&void 0!==O?O:null,created_at:null!==(w=null==t?void 0:t.created_at)&&void 0!==w?w:null,updated_at:null!==(E=null==t?void 0:t.updated_at)&&void 0!==E?E:null,cancel_reason:null!==(k=null==t?void 0:t.cancel_reason)&&void 0!==k?k:null,delivered_time:null!==(S=null==t?void 0:t.delivered_time)&&void 0!==S?S:null,completed_time:null!==(C=null==t?void 0:t.completed_time)&&void 0!==C?C:null,order_code:null!==(R=null==t?void 0:t.order_code)&&void 0!==R?R:null,checkin_id:null!==(A=null==t?void 0:t.checkin_id)&&void 0!==A?A:null,total_change:null!==(T=null==t?void 0:t.total_change)&&void 0!==T?T:null,tip:{id:null!==(I=null===(P=null==t?void 0:t.tip)||void 0===P?void 0:P.id)&&void 0!==I?I:null,order_id:null!==(q=null===(D=null==t?void 0:t.tip)||void 0===D?void 0:D.order_id)&&void 0!==q?q:null,created_at:null!==(N=null===($=null==t?void 0:t.tip)||void 0===$?void 0:$.created_at)&&void 0!==N?N:null,updated_at:null!==(L=null===(U=null==t?void 0:t.tip)||void 0===U?void 0:U.updated_at)&&void 0!==L?L:null,status:null!==(M=null===(j=null==t?void 0:t.tip)||void 0===j?void 0:j.status)&&void 0!==M?M:null,tip_type:null!==(F=null===(B=null==t?void 0:t.tip)||void 0===B?void 0:B.tip_type)&&void 0!==F?F:null,total_tip:null!==(Y=null===(H=null==t?void 0:t.tip)||void 0===H?void 0:H.total_tip)&&void 0!==Y?Y:null,data:null!==(V=null===(G=null==t?void 0:t.tip)||void 0===G?void 0:G.data)&&void 0!==V?V:null,data_after_charge:null!==(W=null===(K=null==t?void 0:t.tip)||void 0===K?void 0:K.data_after_charge)&&void 0!==W?W:null,payment_method:null!==(J=null===(z=null==t?void 0:t.tip)||void 0===z?void 0:z.payment_method)&&void 0!==J?J:null,giftcard_code:null!==(Q=null===(X=null==t?void 0:t.tip)||void 0===X?void 0:X.giftcard_code)&&void 0!==Q?Q:null,is_updated:null!==(tt=null===(Z=null==t?void 0:t.tip)||void 0===Z?void 0:Z.is_updated)&&void 0!==tt?tt:null},tax:null!==(et=null==t?void 0:t.tax)&&void 0!==et?et:null,is_waiting:null!==(it=null==t?void 0:t.is_waiting)&&void 0!==it?it:null,is_recheck:null!==(nt=null==t?void 0:t.is_recheck)&&void 0!==nt?nt:null,gift_card_price:null!==(ot=null==t?void 0:t.gift_card_price)&&void 0!==ot?ot:null,pax_standalone_active:null!==(lt=null==t?void 0:t.pax_standalone_active)&&void 0!==lt?lt:null,ach_payment_active:null!==(ut=null==t?void 0:t.ach_payment_active)&&void 0!==ut?ut:null,ach_payment_data:null!==(rt=null==t?void 0:t.ach_payment_data)&&void 0!==rt?rt:null,total_cash_discount:null!==(dt=null==t?void 0:t.total_cash_discount)&&void 0!==dt?dt:null,is_tip_on_device:null!==(st=null==t?void 0:t.is_tip_on_device)&&void 0!==st?st:null,tip_by_credit_card:null!==(at=null==t?void 0:t.tip_by_credit_card)&&void 0!==at?at:null,service_fee:null!==(ct=null==t?void 0:t.service_fee)&&void 0!==ct?ct:null,external_credit_card:null!==(vt=null==t?void 0:t.external_credit_card)&&void 0!==vt?vt:null,qr_code:null!==(pt=null==t?void 0:t.qr_code)&&void 0!==pt?pt:null,created_date:null!==(ht=null==t?void 0:t.created_date)&&void 0!==ht?ht:null,created_time:null!==(ft=null==t?void 0:t.created_time)&&void 0!==ft?ft:null,pos_key:null!==(mt=null==t?void 0:t.pos_key)&&void 0!==mt?mt:null,pos_status:null!==(_t=null==t?void 0:t.pos_status)&&void 0!==_t?_t:null,invoice:null!==(yt=null==t?void 0:t.invoice)&&void 0!==yt?yt:null,customer_point:null!==(gt=null==t?void 0:t.customer_point)&&void 0!==gt?gt:null,order_discount:null!==(bt=null==t?void 0:t.order_discount)&&void 0!==bt?bt:null,checkin_services:null!==(xt=null==t?void 0:t.checkin_services)&&void 0!==xt?xt:null,checkin_staffs:null!==(Ot=null==t?void 0:t.checkin_staffs)&&void 0!==Ot?Ot:null,services:(null==t?void 0:t.services)?null==t?void 0:t.services.map((t=>(t=>{var e;return{staff_name:null!==(e=null==t?void 0:t.staff_name)&&void 0!==e?e:null,items:(null==t?void 0:t.items)?null==t?void 0:t.items.map((t=>(t=>{var e,i,n,o,l,u,r,d,s,a,c;return{item_name:null!==(e=null==t?void 0:t.item_name)&&void 0!==e?e:null,quantity:null!==(i=null==t?void 0:t.quantity)&&void 0!==i?i:null,price:null!==(n=null==t?void 0:t.price)&&void 0!==n?n:null,supply_share:null!==(o=null==t?void 0:t.supply_share)&&void 0!==o?o:null,base_service_price:null!==(l=null==t?void 0:t.base_service_price)&&void 0!==l?l:null,card_charge_value:null!==(u=null==t?void 0:t.card_charge_value)&&void 0!==u?u:null,discount_charge_value:null!==(r=null==t?void 0:t.discount_charge_value)&&void 0!==r?r:null,tip_paid:null!==(d=null==t?void 0:t.tip_paid)&&void 0!==d?d:null,tip_on_credit_card_share:null!==(s=null==t?void 0:t.tip_on_credit_card_share)&&void 0!==s?s:null,commission:null!==(a=null==t?void 0:t.commission)&&void 0!==a?a:null,cash_discount:null!==(c=null==t?void 0:t.cash_discount)&&void 0!==c?c:null}})(t))):null}})(t))):null,staffs:(null==t?void 0:t.staffs)?null==t?void 0:t.staffs.map((t=>(t=>{var e,i,n;return{employee_name:null!==(e=null==t?void 0:t.employee_name)&&void 0!==e?e:null,employee_image:null!==(i=null==t?void 0:t.employee_image)&&void 0!==i?i:null,employee_color:null!==(n=null==t?void 0:t.employee_color)&&void 0!==n?n:null}})(t))):null,payment_payment_id:null!==(wt=null==t?void 0:t.payment_payment_id)&&void 0!==wt?wt:null,payment_order_id:null!==(Et=null==t?void 0:t.payment_order_id)&&void 0!==Et?Et:null,order_batch:{card_amount:null!==(St=null===(kt=null==t?void 0:t.order_batch)||void 0===kt?void 0:kt.card_amount)&&void 0!==St?St:null,cash_amount:null!==(Rt=null===(Ct=null==t?void 0:t.order_batch)||void 0===Ct?void 0:Ct.cash_amount)&&void 0!==Rt?Rt:null,check_amount:null!==(Tt=null===(At=null==t?void 0:t.order_batch)||void 0===At?void 0:At.check_amount)&&void 0!==Tt?Tt:null,giftcard_amount:null!==(It=null===(Pt=null==t?void 0:t.order_batch)||void 0===Pt?void 0:Pt.giftcard_amount)&&void 0!==It?It:null,ach_amount:null!==(qt=null===(Dt=null==t?void 0:t.order_batch)||void 0===Dt?void 0:Dt.ach_amount)&&void 0!==qt?qt:null,external_cc_amount:null!==(Nt=null===($t=null==t?void 0:t.order_batch)||void 0===$t?void 0:$t.external_cc_amount)&&void 0!==Nt?Nt:null,subtotal:null!==(Lt=null===(Ut=null==t?void 0:t.order_batch)||void 0===Ut?void 0:Ut.subtotal)&&void 0!==Lt?Lt:null,tax:null!==(Mt=null===(jt=null==t?void 0:t.order_batch)||void 0===jt?void 0:jt.tax)&&void 0!==Mt?Mt:null,tip:null!==(Ft=null===(Bt=null==t?void 0:t.order_batch)||void 0===Bt?void 0:Bt.tip)&&void 0!==Ft?Ft:null,discount:null!==(Yt=null===(Ht=null==t?void 0:t.order_batch)||void 0===Ht?void 0:Ht.discount)&&void 0!==Yt?Yt:null,redeem:null!==(Vt=null===(Gt=null==t?void 0:t.order_batch)||void 0===Gt?void 0:Gt.redeem)&&void 0!==Vt?Vt:null,total_income:null!==(Wt=null===(Kt=null==t?void 0:t.order_batch)||void 0===Kt?void 0:Kt.total_income)&&void 0!==Wt?Wt:null,cash_discount:null!==(Jt=null===(zt=null==t?void 0:t.order_batch)||void 0===zt?void 0:zt.cash_discount)&&void 0!==Jt?Jt:null,change:null!==(Qt=null===(Xt=null==t?void 0:t.order_batch)||void 0===Xt?void 0:Xt.change)&&void 0!==Qt?Qt:null},visit_count:null!==(Zt=null==t?void 0:t.visit_count)&&void 0!==Zt?Zt:null,refund_amount:null!==(te=null==t?void 0:t.refund_amount)&&void 0!==te?te:null,last_four:null!==(ee=null==t?void 0:t.last_four)&&void 0!==ee?ee:null,card_type:null!==(ie=null==t?void 0:t.card_type)&&void 0!==ie?ie:null,entry_type:null!==(ne=null==t?void 0:t.entry_type)&&void 0!==ne?ne:null,payment_history:null!==(oe=null==t?void 0:t.payment_history)&&void 0!==oe?oe:null,amount_info:null!==(le=null==t?void 0:t.amount_info)&&void 0!==le?le:null,customer_type:null!==(ue=null==t?void 0:t.customer_type)&&void 0!==ue?ue:null,order_payment_method:(null==t?void 0:t.order_payment_method)?null==t?void 0:t.order_payment_method.map((t=>(t=>{var e,i,n,o,l,u,r,d;return{id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null,order_id:null!==(i=null==t?void 0:t.id)&&void 0!==i?i:null,payment_method_type:null!==(n=null==t?void 0:t.id)&&void 0!==n?n:null,payment_method_name:null!==(o=null==t?void 0:t.id)&&void 0!==o?o:null,total_paid:null!==(l=null==t?void 0:t.id)&&void 0!==l?l:null,created_at:null!==(u=null==t?void 0:t.id)&&void 0!==u?u:null,updated_at:null!==(r=null==t?void 0:t.id)&&void 0!==r?r:null,status:null!==(d=null==t?void 0:t.id)&&void 0!==d?d:null}})(t))):null,deposit:null!==(re=null==t?void 0:t.deposit)&&void 0!==re?re:null,product_subtotal:null!==(de=null==t?void 0:t.product_subtotal)&&void 0!==de?de:null,service_subtotal:null!==(se=null==t?void 0:t.service_subtotal)&&void 0!==se?se:null,staff_code:null!==(ae=null==t?void 0:t.staff_code)&&void 0!==ae?ae:null}}class D extends k{static postCheckInFormSubmit(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkin/form/submit",data:t})}))}static getCheckInReport(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkin/site/report",query:t})}))}static getLastCheckIn(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkin/site/check-update",query:t})}))}static getCheckInList(t){var e,i;return d(this,void 0,void 0,(function*(){const n=yield this.client.get({path:"/v1/pos/checkin/site/list",query:t});return((null===(i=null===(e=null==n?void 0:n.result)||void 0===e?void 0:e.data)||void 0===i?void 0:i.items)||[]).map((t=>I(t)))}))}static getCheckInInfo(t){return d(this,void 0,void 0,(function*(){return I((yield this.client.get({path:"/v1/pos/checkin/site/info",query:t})).result.data)}))}}function q(t){var e,i,n,o;return{totalCount:null!==(e=null==t?void 0:t.totalCount)&&void 0!==e?e:null,pageCount:null!==(i=null==t?void 0:t.pageCount)&&void 0!==i?i:null,currentPage:null!==(n=null==t?void 0:t.currentPage)&&void 0!==n?n:null,perPage:null!==(o=null==t?void 0:t.perPage)&&void 0!==o?o:null}}class $ extends k{static getItemList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/item/site/list",query:t})}))}static getCheckOutHistoryList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkout/history/list",query:t})}))}static getCheckOutInfo(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkout/site/info",query:t})}))}static getCheckOutHistoryInfo(t){var e,i,n,o;return d(this,void 0,void 0,(function*(){const l=yield this.client.get({path:"/v1/pos/checkout/history/info",query:t});return{data:((null===(i=null===(e=null==l?void 0:l.result)||void 0===e?void 0:e.data)||void 0===i?void 0:i.items)||[]).map((t=>function(t){var e,i,n,o,l,u;return{id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null,order_code:null!==(i=null==t?void 0:t.order_code)&&void 0!==i?i:null,created_date:null!==(n=null==t?void 0:t.created_date)&&void 0!==n?n:null,created_time:null!==(o=null==t?void 0:t.created_time)&&void 0!==o?o:null,total_after_discount:null!==(l=null==t?void 0:t.total_after_discount)&&void 0!==l?l:null,qr_code:null!==(u=null==t?void 0:t.qr_code)&&void 0!==u?u:null}}(t))),_meta:q(null===(o=null===(n=null==l?void 0:l.result)||void 0===n?void 0:n.data)||void 0===o?void 0:o._meta)}}))}static getCheckOutBatchCloseSummary(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkout/site/get-batch-close-summary",query:t})}))}static postCheckOutAddItem(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/item/add",data:t})}))}static postCheckOutRemoveItem(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/item/remove",data:t})}))}static postCheckOutSubmitOrder(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/payment/submit",data:t})}))}static postCheckOutUpdateStatus(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-status",data:t})}))}static postCheckOutUpdateOrderWithCreditCardPayment(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-order-with-credit-card-payment",data:t})}))}static postCheckOutDoAuth(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/do-auth",data:t})}))}static postCheckOutVoidPayment(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/void-payment",data:t})}))}static postCheckOutRefundPayment(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/refund-payment",data:t})}))}static postCheckOutAdjustTipPayment(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/adjust-tip",data:t})}))}static postCheckOutCloseOut(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/closeout",data:t})}))}static postCheckOutUpdateIsWaiting(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-is-wait",data:t})}))}static postCheckOutDiscountPromotion(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/discount/promotion",data:t})}))}static postCheckOutDiscountRedeem(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/discount/redeem",data:t})}))}static postCheckOutUpdateTipData(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/tip/update",data:t})}))}static postCheckOutItemAdjustPrice(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/item/adjust-price",data:t})}))}static postCheckOutUpdatePaymentData(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-payment-data",data:t})}))}static postCheckOutItemAddCombo(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/item/add-combo",data:t})}))}static getCheckoutResendRating(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkout/form/send-mercure",query:t})}))}static postCustomerAchAvailable(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ach/form/check-customer",data:t})}))}static postAchResend(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ach/form/resend-transaction",data:t})}))}static postAchVoid(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ach/form/cancel-transaction",data:t})}))}static postUpdateOrderSuccessToSettled(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-success-to-settled",data:t})}))}static postCalculateTax(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/calculate-tax",data:t})}))}static postCalculatePayment(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/calculate-payment",data:t})}))}}class N extends k{static getComboSiteInfo(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/combo/site/info",query:t})}))}}class U extends k{static getCustomerList(t){var e,i;return d(this,void 0,void 0,(function*(){const n=yield this.client.get({path:"/v1/pos/customer/site/list",query:t});return((null===(i=null===(e=null==n?void 0:n.result)||void 0===e?void 0:e.data)||void 0===i?void 0:i.items)||[]).map((t=>function(t){var e,i;return{customer_name:null!==(e=null==t?void 0:t.customer_name)&&void 0!==e?e:null,customer_phone:null!==(i=null==t?void 0:t.customer_phone)&&void 0!==i?i:null}}(t)))}))}static getCustomerDetail(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/customer/site/detail",query:t})}))}}class L extends k{static getCheckGiftCard(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/giftcard/site/check-gift-card",query:t})}))}static postResetGiftCard(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/item/reset-gift-card",data:t})}))}}class j extends k{static getIncomeHistory(t){var e;return d(this,void 0,void 0,(function*(){const i=yield this.client.get({path:"/v1/pos/history/site/income-history",query:t});return((null===(e=null==i?void 0:i.result)||void 0===e?void 0:e.data)||[]).map((t=>function(t){var e,i,n,o,l,u,r,d,s,a,c,v,p,h,f,m,_,y,g,b,x,O,w,E,k,S,C,R,A,T,P,I,D,q,$,N,U,L,j,M,B,F;return{title:null!==(e=null==t?void 0:t.title)&&void 0!==e?e:null,income:null!==(i=null==t?void 0:t.income)&&void 0!==i?i:null,summary:{date:null!==(o=null===(n=null==t?void 0:t.summary)||void 0===n?void 0:n.date)&&void 0!==o?o:null,display_date:null!==(u=null===(l=null==t?void 0:t.summary)||void 0===l?void 0:l.date)&&void 0!==u?u:null,display_date_time:null!==(d=null===(r=null==t?void 0:t.summary)||void 0===r?void 0:r.date)&&void 0!==d?d:null,card_amount:null!==(a=null===(s=null==t?void 0:t.summary)||void 0===s?void 0:s.card_amount)&&void 0!==a?a:null,external_cc_amount:null!==(v=null===(c=null==t?void 0:t.summary)||void 0===c?void 0:c.external_cc_amount)&&void 0!==v?v:null,cash_amount:null!==(h=null===(p=null==t?void 0:t.summary)||void 0===p?void 0:p.cash_amount)&&void 0!==h?h:null,giftcard_amount:null!==(m=null===(f=null==t?void 0:t.summary)||void 0===f?void 0:f.giftcard_amount)&&void 0!==m?m:null,check_amount:null!==(y=null===(_=null==t?void 0:t.summary)||void 0===_?void 0:_.check_amount)&&void 0!==y?y:null,ach_amount:null!==(b=null===(g=null==t?void 0:t.summary)||void 0===g?void 0:g.ach_amount)&&void 0!==b?b:null,subtotal:null!==(O=null===(x=null==t?void 0:t.summary)||void 0===x?void 0:x.subtotal)&&void 0!==O?O:null,tax:null!==(E=null===(w=null==t?void 0:t.summary)||void 0===w?void 0:w.tax)&&void 0!==E?E:null,discount:null!==(S=null===(k=null==t?void 0:t.summary)||void 0===k?void 0:k.discount)&&void 0!==S?S:null,tip:null!==(R=null===(C=null==t?void 0:t.summary)||void 0===C?void 0:C.tip)&&void 0!==R?R:null,redeem:null!==(T=null===(A=null==t?void 0:t.summary)||void 0===A?void 0:A.redeem)&&void 0!==T?T:null,income:null!==(I=null===(P=null==t?void 0:t.summary)||void 0===P?void 0:P.income)&&void 0!==I?I:null,change:null!==(q=null===(D=null==t?void 0:t.summary)||void 0===D?void 0:D.change)&&void 0!==q?q:null,cash_discount:null!==(N=null===($=null==t?void 0:t.summary)||void 0===$?void 0:$.cash_discount)&&void 0!==N?N:null,service_fee:null!==(L=null===(U=null==t?void 0:t.summary)||void 0===U?void 0:U.service_fee)&&void 0!==L?L:null,deposit:null!==(M=null===(j=null==t?void 0:t.summary)||void 0===j?void 0:j.deposit)&&void 0!==M?M:null,total:null!==(F=null===(B=null==t?void 0:t.summary)||void 0===B?void 0:B.total)&&void 0!==F?F:null},batches:(null==t?void 0:t.batches)?null==t?void 0:t.batches.map((t=>function(t){var e,i,n,o;return{order_id:null!==(e=null==t?void 0:t.order_id)&&void 0!==e?e:null,customer_name:null!==(i=null==t?void 0:t.customer_name)&&void 0!==i?i:null,total_income:null!==(n=null==t?void 0:t.total_income)&&void 0!==n?n:null,subtotal:null!==(o=null==t?void 0:t.subtotal)&&void 0!==o?o:null}}(t))):null}}(t)))}))}static getStaffDailyIncome(t){var e;return d(this,void 0,void 0,(function*(){const i=yield this.client.get({path:"/v1/pos/staff/site/list-income-v1",query:t});return((null===(e=null==i?void 0:i.result)||void 0===e?void 0:e.data)||[]).map((t=>function(t){var e,i,n,o,l,u,r,d,s,a,c,v,p,h,f,m,_,y,g,b,x,O,w,E,k,S,C,R,A,T,P,I,D,q;return{user_id:null!==(e=null==t?void 0:t.user_id)&&void 0!==e?e:null,name:null!==(i=null==t?void 0:t.name)&&void 0!==i?i:null,image_url:null!==(n=null==t?void 0:t.image_url)&&void 0!==n?n:null,color_code:null!==(o=null==t?void 0:t.color_code)&&void 0!==o?o:null,code:null!==(l=null==t?void 0:t.code)&&void 0!==l?l:null,status:null!==(u=null==t?void 0:t.status)&&void 0!==u?u:null,permission:(null==t?void 0:t.permission)?null==t?void 0:t.permission.map((t=>function(t){var e,i,n,o,l,u;return{id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null,name:null!==(i=null==t?void 0:t.name)&&void 0!==i?i:null,type:null!==(n=null==t?void 0:t.type)&&void 0!==n?n:null,status:null!==(o=null==t?void 0:t.status)&&void 0!==o?o:null,created_at:null!==(l=null==t?void 0:t.created_at)&&void 0!==l?l:null,updated_at:null!==(u=null==t?void 0:t.updated_at)&&void 0!==u?u:null}}(t))):null,setting_commission:null!==(r=null==t?void 0:t.setting_commission)&&void 0!==r?r:null,income:{commission:null!==(s=null===(d=null==t?void 0:t.income)||void 0===d?void 0:d.commission)&&void 0!==s?s:null,tip:null!==(c=null===(a=null==t?void 0:t.income)||void 0===a?void 0:a.tip)&&void 0!==c?c:null,working_hours:null!==(p=null===(v=null==t?void 0:t.income)||void 0===v?void 0:v.working_hours)&&void 0!==p?p:null,final_salary:null!==(f=null===(h=null==t?void 0:t.income)||void 0===h?void 0:h.final_salary)&&void 0!==f?f:null,income:null!==(_=null===(m=null==t?void 0:t.income)||void 0===m?void 0:m.income)&&void 0!==_?_:null,tip_credit_charge:null!==(g=null===(y=null==t?void 0:t.income)||void 0===y?void 0:y.tip_credit_charge)&&void 0!==g?g:null,card_charge:null!==(x=null===(b=null==t?void 0:t.income)||void 0===b?void 0:b.card_charge)&&void 0!==x?x:null,cash_bonus:null!==(w=null===(O=null==t?void 0:t.income)||void 0===O?void 0:O.cash_bonus)&&void 0!==w?w:null,supply_share:null!==(k=null===(E=null==t?void 0:t.income)||void 0===E?void 0:E.supply_share)&&void 0!==k?k:null,final_commission:null!==(C=null===(S=null==t?void 0:t.income)||void 0===S?void 0:S.final_commission)&&void 0!==C?C:null,cash_income:null!==(A=null===(R=null==t?void 0:t.income)||void 0===R?void 0:R.cash_income)&&void 0!==A?A:null,check_income:null!==(P=null===(T=null==t?void 0:t.income)||void 0===T?void 0:T.check_income)&&void 0!==P?P:null,wage_per_hours:null!==(D=null===(I=null==t?void 0:t.income)||void 0===I?void 0:I.wage_per_hours)&&void 0!==D?D:null},daily_service:null!==(q=null==t?void 0:t.daily_service)&&void 0!==q?q:null}}(t)))}))}}class M extends k{static getKeyStorage(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/user/site/get-key-storage",query:t})}))}}var B=i(823),F=i.n(B);const H=()=>({AU:"DD-MM-YYYY",US:"MM-DD-YYYY",DEFAULT:"DD-MM-YYYY"}[localStorage.getItem("country_code")||"DEFAULT"]);var Y=i(484),G=i.n(Y);class V extends k{static getOrderCheckInList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkin/site/dash-board-list",query:t})}))}static getOrderDetail(t){var e;return d(this,void 0,void 0,(function*(){const i=yield this.client.get({path:"/v1/pos/checkout/site/info",query:t});return function(t){var e,i,n,o,l,u,r,d,s,a,c,v,p,h,f,m,_,y,g,b,x,O,w,E,k,S,C,R,A,T,P,I,D,q,$,N,U,L,j,M,B,F,H,Y,G,V,K,W,z,J,X,Q,Z,tt,et,it,nt,ot,lt,ut,rt,dt,st,at,ct,vt,pt,ht,ft,mt,_t,yt,gt,bt,xt,Ot,wt,Et,kt,St,Ct,Rt,At,Tt,Pt,It,Dt,qt,$t,Nt,Ut,Lt,jt,Mt,Bt,Ft,Ht,Yt,Gt,Vt,Kt,Wt,zt,Jt,Xt,Qt,Zt,te,ee,ie,ne,oe,le,ue,re,de,se,ae,ce,ve,pe,he,fe,me,_e,ye,ge,be,xe,Oe,we,Ee,ke,Se,Ce,Re,Ae,Te,Pe,Ie,De,qe,$e,Ne,Ue,Le,je,Me,Be,Fe,He,Ye,Ge,Ve,Ke,We;return{id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null,customer_id:null!==(i=null==t?void 0:t.customer_id)&&void 0!==i?i:null,customer_name:null!==(n=null==t?void 0:t.customer_name)&&void 0!==n?n:null,customer_phone:null!==(o=null==t?void 0:t.customer_phone)&&void 0!==o?o:null,customer_email:null!==(l=null==t?void 0:t.customer_email)&&void 0!==l?l:null,customer_address:null!==(u=null==t?void 0:t.customer_address)&&void 0!==u?u:null,payment_method:null!==(r=null==t?void 0:t.payment_method)&&void 0!==r?r:null,currency:null!==(d=null==t?void 0:t.currency)&&void 0!==d?d:null,start_time:null!==(s=null==t?void 0:t.start_time)&&void 0!==s?s:null,expected_end_time:null!==(a=null==t?void 0:t.expected_end_time)&&void 0!==a?a:null,end_time:null!==(c=null==t?void 0:t.end_time)&&void 0!==c?c:null,picked_up_time:null!==(v=null==t?void 0:t.picked_up_time)&&void 0!==v?v:null,promotion_code:null!==(p=null==t?void 0:t.promotion_code)&&void 0!==p?p:null,total_before_discount:null!==(h=null==t?void 0:t.total_before_discount)&&void 0!==h?h:null,total_after_discount:null!==(f=null==t?void 0:t.total_after_discount)&&void 0!==f?f:null,employee_id:null!==(m=null==t?void 0:t.employee_id)&&void 0!==m?m:null,employee_name:null!==(_=null==t?void 0:t.employee_name)&&void 0!==_?_:null,type:null!==(y=null==t?void 0:t.type)&&void 0!==y?y:null,note:null!==(g=null==t?void 0:t.note)&&void 0!==g?g:null,owner_note:null!==(b=null==t?void 0:t.owner_note)&&void 0!==b?b:null,order_status:null!==(x=null==t?void 0:t.order_status)&&void 0!==x?x:null,status:null!==(O=null==t?void 0:t.status)&&void 0!==O?O:null,created_at:null!==(w=null==t?void 0:t.created_at)&&void 0!==w?w:null,updated_at:null!==(E=null==t?void 0:t.updated_at)&&void 0!==E?E:null,cancel_reason:null!==(k=null==t?void 0:t.cancel_reason)&&void 0!==k?k:null,delivered_time:null!==(S=null==t?void 0:t.delivered_time)&&void 0!==S?S:null,completed_time:null!==(C=null==t?void 0:t.completed_time)&&void 0!==C?C:null,order_code:null!==(R=null==t?void 0:t.order_code)&&void 0!==R?R:null,checkin_id:null!==(A=null==t?void 0:t.checkin_id)&&void 0!==A?A:null,total_change:null!==(T=null==t?void 0:t.total_change)&&void 0!==T?T:null,tip:{id:null!==(I=null===(P=null==t?void 0:t.tip)||void 0===P?void 0:P.id)&&void 0!==I?I:null,order_id:null!==(q=null===(D=null==t?void 0:t.tip)||void 0===D?void 0:D.id)&&void 0!==q?q:null,created_at:null!==(N=null===($=null==t?void 0:t.tip)||void 0===$?void 0:$.id)&&void 0!==N?N:null,updated_at:null!==(L=null===(U=null==t?void 0:t.tip)||void 0===U?void 0:U.id)&&void 0!==L?L:null,status:null!==(M=null===(j=null==t?void 0:t.tip)||void 0===j?void 0:j.id)&&void 0!==M?M:null,tip_type:null!==(F=null===(B=null==t?void 0:t.tip)||void 0===B?void 0:B.id)&&void 0!==F?F:null,total_tip:null!==(Y=null===(H=null==t?void 0:t.tip)||void 0===H?void 0:H.id)&&void 0!==Y?Y:null,data:null!==(V=null===(G=null==t?void 0:t.tip)||void 0===G?void 0:G.id)&&void 0!==V?V:null,data_after_charge:null!==(W=null===(K=null==t?void 0:t.tip)||void 0===K?void 0:K.id)&&void 0!==W?W:null,payment_method:null!==(J=null===(z=null==t?void 0:t.tip)||void 0===z?void 0:z.id)&&void 0!==J?J:null,giftcard_code:null!==(Q=null===(X=null==t?void 0:t.tip)||void 0===X?void 0:X.id)&&void 0!==Q?Q:null,is_updated:null!==(tt=null===(Z=null==t?void 0:t.tip)||void 0===Z?void 0:Z.id)&&void 0!==tt?tt:null},tax:null!==(et=null==t?void 0:t.id)&&void 0!==et?et:null,is_waiting:null!==(it=null==t?void 0:t.id)&&void 0!==it?it:null,is_recheck:null!==(nt=null==t?void 0:t.id)&&void 0!==nt?nt:null,gift_card_price:null!==(ot=null==t?void 0:t.id)&&void 0!==ot?ot:null,pax_standalone_active:null!==(lt=null==t?void 0:t.id)&&void 0!==lt?lt:null,ach_payment_active:null!==(ut=null==t?void 0:t.id)&&void 0!==ut?ut:null,ach_payment_data:null!==(rt=null==t?void 0:t.id)&&void 0!==rt?rt:null,total_cash_discount:null!==(dt=null==t?void 0:t.id)&&void 0!==dt?dt:null,is_tip_on_device:null!==(st=null==t?void 0:t.id)&&void 0!==st?st:null,tip_by_credit_card:null!==(at=null==t?void 0:t.id)&&void 0!==at?at:null,service_fee:null!==(ct=null==t?void 0:t.id)&&void 0!==ct?ct:null,external_credit_card:null!==(vt=null==t?void 0:t.id)&&void 0!==vt?vt:null,qr_code:null!==(pt=null==t?void 0:t.id)&&void 0!==pt?pt:null,created_date:null!==(ht=null==t?void 0:t.id)&&void 0!==ht?ht:null,created_time:null!==(ft=null==t?void 0:t.id)&&void 0!==ft?ft:null,pos_key:null!==(mt=null==t?void 0:t.id)&&void 0!==mt?mt:null,pos_status:null!==(_t=null==t?void 0:t.id)&&void 0!==_t?_t:null,invoice:{id:null!==(gt=null===(yt=null==t?void 0:t.invoice)||void 0===yt?void 0:yt.id)&&void 0!==gt?gt:null,checkout_id:null!==(xt=null===(bt=null==t?void 0:t.invoice)||void 0===bt?void 0:bt.checkout_id)&&void 0!==xt?xt:null,customer_id:null!==(wt=null===(Ot=null==t?void 0:t.invoice)||void 0===Ot?void 0:Ot.customer_id)&&void 0!==wt?wt:null,customer_name:null!==(kt=null===(Et=null==t?void 0:t.invoice)||void 0===Et?void 0:Et.customer_name)&&void 0!==kt?kt:null,customer_phone:null!==(Ct=null===(St=null==t?void 0:t.invoice)||void 0===St?void 0:St.customer_phone)&&void 0!==Ct?Ct:null,promotion_code:null!==(At=null===(Rt=null==t?void 0:t.invoice)||void 0===Rt?void 0:Rt.promotion_code)&&void 0!==At?At:null,redeem_id:null!==(Pt=null===(Tt=null==t?void 0:t.invoice)||void 0===Tt?void 0:Tt.redeem_id)&&void 0!==Pt?Pt:null,total_discount:null!==(Dt=null===(It=null==t?void 0:t.invoice)||void 0===It?void 0:It.total_discount)&&void 0!==Dt?Dt:null,has_tax:null!==($t=null===(qt=null==t?void 0:t.invoice)||void 0===qt?void 0:qt.has_tax)&&void 0!==$t?$t:null,tax_price:null!==(Ut=null===(Nt=null==t?void 0:t.invoice)||void 0===Nt?void 0:Nt.tax_price)&&void 0!==Ut?Ut:null,total_before_discount:null!==(jt=null===(Lt=null==t?void 0:t.invoice)||void 0===Lt?void 0:Lt.total_before_discount)&&void 0!==jt?jt:null,total_after_discount:null!==(Bt=null===(Mt=null==t?void 0:t.invoice)||void 0===Mt?void 0:Mt.total_after_discount)&&void 0!==Bt?Bt:null,total_after_tax:null!==(Ht=null===(Ft=null==t?void 0:t.invoice)||void 0===Ft?void 0:Ft.total_after_tax)&&void 0!==Ht?Ht:null,payment_method:null!==(Gt=null===(Yt=null==t?void 0:t.invoice)||void 0===Yt?void 0:Yt.payment_method)&&void 0!==Gt?Gt:null,employee_id:null!==(Kt=null===(Vt=null==t?void 0:t.invoice)||void 0===Vt?void 0:Vt.employee_id)&&void 0!==Kt?Kt:null,employee_name:null!==(zt=null===(Wt=null==t?void 0:t.invoice)||void 0===Wt?void 0:Wt.employee_name)&&void 0!==zt?zt:null,status:null!==(Xt=null===(Jt=null==t?void 0:t.invoice)||void 0===Jt?void 0:Jt.status)&&void 0!==Xt?Xt:null,created_at:null!==(Zt=null===(Qt=null==t?void 0:t.invoice)||void 0===Qt?void 0:Qt.created_at)&&void 0!==Zt?Zt:null,updated_at:null!==(ee=null===(te=null==t?void 0:t.invoice)||void 0===te?void 0:te.updated_at)&&void 0!==ee?ee:null,type:null!==(ne=null===(ie=null==t?void 0:t.invoice)||void 0===ie?void 0:ie.type)&&void 0!==ne?ne:null},customer_point:null!==(oe=null==t?void 0:t.id)&&void 0!==oe?oe:null,order_discount:(null==t?void 0:t.order_discount)?null==t?void 0:t.order_discount.map((t=>function(t){var e,i,n,o,l,u,r,d,s,a,c;return{id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null,order_id:null!==(i=null==t?void 0:t.order_id)&&void 0!==i?i:null,item_type:null!==(n=null==t?void 0:t.item_type)&&void 0!==n?n:null,item_id:null!==(o=null==t?void 0:t.item_id)&&void 0!==o?o:null,discount_type:null!==(l=null==t?void 0:t.discount_type)&&void 0!==l?l:null,discount_value:null!==(u=null==t?void 0:t.discount_value)&&void 0!==u?u:null,created_at:null!==(r=null==t?void 0:t.created_at)&&void 0!==r?r:null,updated_at:null!==(d=null==t?void 0:t.updated_at)&&void 0!==d?d:null,status:null!==(s=null==t?void 0:t.status)&&void 0!==s?s:null,total_value:null!==(a=null==t?void 0:t.total_value)&&void 0!==a?a:null,total_discount:null!==(c=null==t?void 0:t.total_discount)&&void 0!==c?c:null}}(t))):null,checkin_services:null!==(le=null==t?void 0:t.id)&&void 0!==le?le:null,checkin_staffs:null!==(ue=null==t?void 0:t.id)&&void 0!==ue?ue:null,services:(null==t?void 0:t.order_discount)?null==t?void 0:t.order_discount.map((t=>function(t){return{staff_name:null==t?void 0:t.staff_name,items:(null==t?void 0:t.items)?null==t?void 0:t.items.map((t=>function(t){var e,i,n,o,l,u,r,d,s,a,c;return{item_name:null!==(e=null==t?void 0:t.item_name)&&void 0!==e?e:null,quantity:null!==(i=null==t?void 0:t.quantity)&&void 0!==i?i:null,price:null!==(n=null==t?void 0:t.price)&&void 0!==n?n:null,supply_share:null!==(o=null==t?void 0:t.supply_share)&&void 0!==o?o:null,base_service_price:null!==(l=null==t?void 0:t.base_service_price)&&void 0!==l?l:null,card_charge_value:null!==(u=null==t?void 0:t.card_charge_value)&&void 0!==u?u:null,discount_charge_value:null!==(r=null==t?void 0:t.discount_charge_value)&&void 0!==r?r:null,tip_paid:null!==(d=null==t?void 0:t.tip_paid)&&void 0!==d?d:null,tip_on_credit_card_share:null!==(s=null==t?void 0:t.tip_on_credit_card_share)&&void 0!==s?s:null,commission:null!==(a=null==t?void 0:t.commission)&&void 0!==a?a:null,cash_discount:null!==(c=null==t?void 0:t.cash_discount)&&void 0!==c?c:null}}(t))):null}}(t))):null,staffs:(null==t?void 0:t.order_discount)?null==t?void 0:t.order_discount.map((t=>function(t){var e,i,n;return{employee_name:null!==(e=null==t?void 0:t.employee_name)&&void 0!==e?e:null,employee_image:null!==(i=null==t?void 0:t.employee_image)&&void 0!==i?i:null,employee_color:null!==(n=null==t?void 0:t.employee_color)&&void 0!==n?n:null}}(t))):null,payment_payment_id:null!==(re=null==t?void 0:t.id)&&void 0!==re?re:null,payment_order_id:null!==(de=null==t?void 0:t.id)&&void 0!==de?de:null,order_batch:{card_amount:null!==(ae=null===(se=null==t?void 0:t.order_batch)||void 0===se?void 0:se.card_amount)&&void 0!==ae?ae:null,cash_amount:null!==(ve=null===(ce=null==t?void 0:t.order_batch)||void 0===ce?void 0:ce.cash_amount)&&void 0!==ve?ve:null,check_amount:null!==(he=null===(pe=null==t?void 0:t.order_batch)||void 0===pe?void 0:pe.check_amount)&&void 0!==he?he:null,giftcard_amount:null!==(me=null===(fe=null==t?void 0:t.order_batch)||void 0===fe?void 0:fe.giftcard_amount)&&void 0!==me?me:null,ach_amount:null!==(ye=null===(_e=null==t?void 0:t.order_batch)||void 0===_e?void 0:_e.ach_amount)&&void 0!==ye?ye:null,external_cc_amount:null!==(be=null===(ge=null==t?void 0:t.order_batch)||void 0===ge?void 0:ge.external_cc_amount)&&void 0!==be?be:null,subtotal:null!==(Oe=null===(xe=null==t?void 0:t.order_batch)||void 0===xe?void 0:xe.subtotal)&&void 0!==Oe?Oe:null,tax:null!==(Ee=null===(we=null==t?void 0:t.order_batch)||void 0===we?void 0:we.tax)&&void 0!==Ee?Ee:null,tip:null!==(Se=null===(ke=null==t?void 0:t.order_batch)||void 0===ke?void 0:ke.tip)&&void 0!==Se?Se:null,discount:null!==(Re=null===(Ce=null==t?void 0:t.order_batch)||void 0===Ce?void 0:Ce.discount)&&void 0!==Re?Re:null,redeem:null!==(Te=null===(Ae=null==t?void 0:t.order_batch)||void 0===Ae?void 0:Ae.redeem)&&void 0!==Te?Te:null,total_income:null!==(Ie=null===(Pe=null==t?void 0:t.order_batch)||void 0===Pe?void 0:Pe.total_income)&&void 0!==Ie?Ie:null,cash_discount:null!==(qe=null===(De=null==t?void 0:t.order_batch)||void 0===De?void 0:De.cash_discount)&&void 0!==qe?qe:null,change:null!==(Ne=null===($e=null==t?void 0:t.order_batch)||void 0===$e?void 0:$e.change)&&void 0!==Ne?Ne:null},visit_count:null!==(Ue=null==t?void 0:t.id)&&void 0!==Ue?Ue:null,refund_amount:null!==(Le=null==t?void 0:t.id)&&void 0!==Le?Le:null,last_four:null!==(je=null==t?void 0:t.id)&&void 0!==je?je:null,card_type:null!==(Me=null==t?void 0:t.id)&&void 0!==Me?Me:null,entry_type:null!==(Be=null==t?void 0:t.id)&&void 0!==Be?Be:null,payment_history:null!==(Fe=null==t?void 0:t.id)&&void 0!==Fe?Fe:null,amount_info:null!==(He=null==t?void 0:t.id)&&void 0!==He?He:null,customer_type:null!==(Ye=null==t?void 0:t.id)&&void 0!==Ye?Ye:null,order_payment_method:(null==t?void 0:t.order_payment_method)?null==t?void 0:t.order_payment_method.map((t=>function(t){var e,i,n,o,l,u,r,d;return{id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null,order_id:null!==(i=null==t?void 0:t.order_id)&&void 0!==i?i:null,payment_method_type:null!==(n=null==t?void 0:t.payment_method_type)&&void 0!==n?n:null,payment_method_name:null!==(o=null==t?void 0:t.payment_method_name)&&void 0!==o?o:null,total_paid:null!==(l=null==t?void 0:t.total_paid)&&void 0!==l?l:null,created_at:null!==(u=null==t?void 0:t.created_at)&&void 0!==u?u:null,updated_at:null!==(r=null==t?void 0:t.updated_at)&&void 0!==r?r:null,status:null!==(d=null==t?void 0:t.status)&&void 0!==d?d:null}}(t))):null,deposit:null!==(Ge=null==t?void 0:t.id)&&void 0!==Ge?Ge:null,product_subtotal:null!==(Ve=null==t?void 0:t.id)&&void 0!==Ve?Ve:null,service_subtotal:null!==(Ke=null==t?void 0:t.id)&&void 0!==Ke?Ke:null,staff_code:null!==(We=null==t?void 0:t.id)&&void 0!==We?We:null}}(null===(e=null==i?void 0:i.result)||void 0===e?void 0:e.data)}))}static getOrderHistoryList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkout/history/info",query:t})}))}static getReportCheckIn(t){return d(this,void 0,void 0,(function*(){return function(t){var e,i,n,o,l,u;return{all:null!==(e=null==t?void 0:t.all)&&void 0!==e?e:null,pending:null!==(i=null==t?void 0:t.pending)&&void 0!==i?i:null,processing:null!==(n=null==t?void 0:t.processing)&&void 0!==n?n:null,cancelled:null!==(o=null==t?void 0:t.cancelled)&&void 0!==o?o:null,done:null!==(l=null==t?void 0:t.done)&&void 0!==l?l:null,settlement_fail:null!==(u=null==t?void 0:t.settlement_fail)&&void 0!==u?u:null}}((yield this.client.get({path:"/v1/pos/checkin/site/dash-board-report",query:t})).result.data)}))}static updateOrderStaff(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-staff",data:t})}))}static removeOrder(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/order/remove-order",data:t})}))}static exportOrder(t){return d(this,void 0,void 0,(function*(){const e=yield this.client.get({path:"/v1/pos/checkin/site/export",query:t});let i=H();F()(e,`export-orders-${G()().format(i)}.xls`)}))}}function K(t){var e,i,n,o,l,u,r,d,s,a,c,v,p,h,f;return{user_id:null!==(e=null==t?void 0:t.user_id)&&void 0!==e?e:null,name:null!==(i=null==t?void 0:t.name)&&void 0!==i?i:null,image_url:null!==(n=null==t?void 0:t.image_url)&&void 0!==n?n:null,color_code:null!==(o=null==t?void 0:t.color_code)&&void 0!==o?o:null,income:null!==(l=null==t?void 0:t.income)&&void 0!==l?l:null,commission:null!==(u=null==t?void 0:t.commission)&&void 0!==u?u:null,cash_income:null!==(r=null==t?void 0:t.cash_income)&&void 0!==r?r:null,check_income:null!==(d=null==t?void 0:t.check_income)&&void 0!==d?d:null,card_charge:null!==(s=null==t?void 0:t.card_charge)&&void 0!==s?s:null,supply_share:null!==(a=null==t?void 0:t.supply_share)&&void 0!==a?a:null,salary:null!==(c=null==t?void 0:t.salary)&&void 0!==c?c:null,tip:null!==(v=null==t?void 0:t.tip)&&void 0!==v?v:null,total_commission:null!==(p=null==t?void 0:t.total_commission)&&void 0!==p?p:null,working_hour:null!==(h=null==t?void 0:t.working_hour)&&void 0!==h?h:null,wage_per_hours:null!==(f=null==t?void 0:t.wage_per_hours)&&void 0!==f?f:null,list_detail:(null==t?void 0:t.list_detail)?null==t?void 0:t.list_detail.map((t=>function(t){return{date:null==t?void 0:t.date,final_commission:null==t?void 0:t.final_commission}}(t))):null}}class W extends k{static getPayrollList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"v1/pos/payroll/site/list-payroll",query:t})}))}static getPayrollSetting(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/setting/site/payroll-setting",query:t})}))}static approvePayroll(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/payroll/form/approve-payroll",data:t})}))}static updatePayrollSetting(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/setting/form/update-payroll",data:t})}))}static getDiscountSetting(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/setting/site/discount-setting",query:t})}))}static updateDiscountSetting(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/setting/form/update-discount",data:t})}))}static getCashDiscountSetting(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/cashdiscount/setting/get",query:t})}))}static updateCashDiscountSetting(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/cashdiscount/setting/change",data:t})}))}static getIncomeDetail(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/payroll/staff/income-detail",query:t})}))}static getApprovePayroll(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/payroll/site/approve-period",query:t})}))}static exportPayroll(t){return d(this,void 0,void 0,(function*(){const e=yield this.client.get({path:"v1/pos/payroll/site/export-payroll",query:t}),i=H();F()(e.data,`${G()().format(i)}.xlsx`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")}))}static exportApprovePayroll(t){return d(this,void 0,void 0,(function*(){const e=yield this.client.get({path:"/v1/pos/payroll/site/export-approve-payroll",query:t}),i=H();F()(e.data,`${G()().format(i)}.xlsx`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")}))}static exportIncomeDetail(t){return d(this,void 0,void 0,(function*(){const e=yield this.client.get({path:"/v1/pos/payroll/staff/export-income-detail",query:t}),i=H();F()(e.data,`${G()().format(i)}.xlsx`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")}))}static getSalaryChart(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/payroll/site/salary-chart",query:t})}))}static getAppListPayroll(t){var e;return d(this,void 0,void 0,(function*(){const i=yield this.client.get({path:"/v1/pos/payroll/site/app-list-payroll",query:t});return((null===(e=null==i?void 0:i.result)||void 0===e?void 0:e.data)||[]).map((t=>function(t){var e,i,n,o;return{payroll_id:null!==(e=null==t?void 0:t.payroll)&&void 0!==e?e:null,start_date:null!==(i=null==t?void 0:t.start_date)&&void 0!==i?i:null,end_date:null!==(n=null==t?void 0:t.end_date)&&void 0!==n?n:null,total_income:null!==(o=null==t?void 0:t.total_income)&&void 0!==o?o:null,employee_list:(null==t?void 0:t.employee_list)?null==t?void 0:t.employee_list.map((t=>K(t))):null}}(t)))}))}static getPayrollDetail(t){var e;return d(this,void 0,void 0,(function*(){const i=yield this.client.get({path:"/v1/pos/payroll/site/get-payroll-detail",query:t});return((null===(e=null==i?void 0:i.result)||void 0===e?void 0:e.data)||[]).map((t=>K(t)))}))}}W.API_VERSION=e.V1;class z extends k{static getPrinterList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:S,query:t})}))}static getPrinterDetail(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:S,query:t})}))}static createPrinterInfo(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:S,data:t})}))}static updatePrinterInfo(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:S,query:t})}))}}class J extends k{static getServiceList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/service/site/list",query:t})}))}}class X extends k{static getTurnValue(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/setting/site/get-turn-value",query:t})}))}static postTurnUpdateValue(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/setting/form/update-turn-value",data:t})}))}}class Q extends k{static getStaffList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/staff/site/list",query:t})}))}static getStaffListByCheckout(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/staff/site/list-by-checkout",query:t})}))}}class Z extends k{static getTicketList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/ticket/site/info",query:t})}))}static createTicketTemplate(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ticket/form/create",data:t})}))}static deleteTicketTemplate(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/ticket/form/delete",query:t})}))}static updateTicketTemplate(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ticket/form/update",query:t,data:t})}))}static moveSubject(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ticket/form/subject-move",data:t})}))}static setDefaultTicketTemplate(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ticket/site/set-default-ticket-template",data:t})}))}static getTicketTemplate(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/ticket/site/template",query:t})}))}}class tt extends k{static getTimeKeepingList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/timekeeping/site/list",query:t})}))}static addTimeKeeping(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/timekeeping/form/create",data:t})}))}static updateTimeKeeping(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/timekeeping/form/edit-time",data:t})}))}static removeTimeKeeping(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/timekeeping/form/delete-time",data:t})}))}static getTimeKeepingListStaff(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/timekeeping/site/list-staff",query:t})}))}static postTimeKeepingCheckIn(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/timekeeping/form/add-checkin-time",data:t})}))}static postTimeKeepingCheckOut(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/timekeeping/form/add-checkout-time",data:t})}))}}class et extends k{}class it extends k{static postLogin(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/user/form/login",data:t})}))}}const nt={[e.V1]:r},ot={Context:g,PosClientApi:class{constructor(t,e,i,n){k.setClient(t,e,i,n);const o=(t=>{if(!nt[t])throw new Error("Can't not find API of this version!");return nt[t]})(n);this.appointment=o.Appointment,this.batch_history=o.BatchHistory,this.business=o.Business,this.call=o.Call,this.category=o.Category,this.check_in=o.CheckIn,this.check_out=o.CheckOut,this.combo=o.Combo,this.customer=o.Customer,this.gift_card=o.GiftCard,this.income=o.Income,this.key_storage=o.KeyStorage,this.order=o.Order,this.payroll=o.Payroll,this.printer=o.Printer,this.service=o.Service,this.setting_turn=o.SettingTurn,this.staff=o.Staff,this.ticket=o.Ticket,this.time_keeping=o.TimeKeeping,this.unsubscribe_contact=o.UnsubscribeContact,this.user=o.User}},Errors:t};window.Gap=ot;const lt=ot})(),n})()));
@@ -1,11 +1,12 @@
1
1
  import { AxiosRequestConfig } from "axios";
2
- import { ResponseDataApi } from "src/base_type";
2
+ import { GapApiVersion, ResponseDataApi } from "src/base_type";
3
3
  import { DeleteRequestParams, GetRequestParams, PostRequestParams, PutRequestParams, RequestParams } from './types';
4
4
  export declare class HttpClient {
5
5
  private readonly axios;
6
6
  private readonly domain;
7
7
  private readonly RETRY_WAIT_TIME;
8
- constructor(domain: string, gClientId: string, token: string);
8
+ private readonly API_VERSION;
9
+ constructor(domain: string, gClientId: string, token: string, version: GapApiVersion);
9
10
  get(params: GetRequestParams): Promise<ResponseDataApi>;
10
11
  post(params: PostRequestParams): Promise<ResponseDataApi>;
11
12
  put(params: PutRequestParams): Promise<ResponseDataApi>;
@@ -1 +1 @@
1
- {"version":3,"file":"http_client.d.ts","sourceRoot":"","sources":["../../src/http_client/http_client.ts"],"names":[],"mappings":"AACA,OAAc,EAAC,kBAAkB,EAA+B,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAE9C,OAAO,EACH,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EAGhB,MAAM,SAAS,CAAC;AAEjB,qBAAa,UAAU;IACnB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IACtC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAQ;gBAErB,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAUtD,GAAG,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;IAIvD,IAAI,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,eAAe,CAAC;IAIzD,GAAG,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;IAIvD,MAAM,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,eAAe,CAAC;IAI7D,OAAO,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC;IAkD9D,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAI9B,SAAS,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,eAAe,CAAC;CAmDhF"}
1
+ {"version":3,"file":"http_client.d.ts","sourceRoot":"","sources":["../../src/http_client/http_client.ts"],"names":[],"mappings":"AACA,OAAc,EAAC,kBAAkB,EAA+B,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAC,aAAa,EAAE,eAAe,EAAC,MAAM,eAAe,CAAC;AAG7D,OAAO,EACH,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EAGhB,MAAM,SAAS,CAAC;AAEjB,qBAAa,UAAU;IACnB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IACtC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAQ;IACxC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAgB;gBAEzB,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa;IAW9E,GAAG,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;IAIvD,IAAI,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,eAAe,CAAC;IAIzD,GAAG,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;IAIvD,MAAM,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,eAAe,CAAC;IAI7D,OAAO,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC;IAwD9D,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAI9B,SAAS,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,eAAe,CAAC;CAmDhF"}
@@ -1,10 +1,12 @@
1
1
  import { __awaiter } from "tslib";
2
2
  import * as GapErrors from "../error";
3
3
  import axios from "axios";
4
+ import { Context } from "../context";
4
5
  import { Method, StatusCode } from './types';
5
6
  export class HttpClient {
6
- constructor(domain, gClientId, token) {
7
+ constructor(domain, gClientId, token, version) {
7
8
  this.RETRY_WAIT_TIME = 1000;
9
+ this.API_VERSION = version;
8
10
  this.domain = domain;
9
11
  this.axios = axios.create({
10
12
  headers: {
@@ -35,6 +37,9 @@ export class HttpClient {
35
37
  }
36
38
  request(params) {
37
39
  return __awaiter(this, void 0, void 0, function* () {
40
+ if (Context.API_VERSION !== this.API_VERSION) {
41
+ throw new GapErrors.RestResourceError(`Current Context.API_VERSION '${Context.API_VERSION}' does not match resource version ${this.API_VERSION}`);
42
+ }
38
43
  const maxTries = params.tries ? params.tries : 1;
39
44
  if (maxTries <= 0) {
40
45
  throw new GapErrors.HttpRequestError(`Number of tries must be >= 0, got ${maxTries}`);
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as GapError from './error';
2
- import { PosClientApi } from "./pos_client_api/v1/PosClientApi";
2
+ import { PosClientApi } from "./pos_client_api/PosClientApi";
3
3
  export declare const Gap: {
4
4
  Context: import("./context").ContextInterface;
5
5
  PosClientApi: typeof PosClientApi;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAE9D,eAAO,MAAM,GAAG;;;;CAIf,CAAC;AAIF,eAAe,GAAG,CAAC;AACnB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAE3D,eAAO,MAAM,GAAG;;;;CAIf,CAAC;AAIF,eAAe,GAAG,CAAC;AACnB,cAAc,SAAS,CAAC"}
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Context } from './context';
2
2
  import * as GapError from './error';
3
- import { PosClientApi } from "./pos_client_api/v1/PosClientApi";
3
+ import { PosClientApi } from "./pos_client_api/PosClientApi";
4
4
  export const Gap = {
5
5
  Context,
6
6
  PosClientApi,
@@ -0,0 +1,9 @@
1
+ import AppointmentAbstractClass from "../interfaces/appointment";
2
+ import Base from "../../../base/Base";
3
+ import * as Request from "../types/request";
4
+ export default class Appointment extends Base implements AppointmentAbstractClass {
5
+ static postCreateAppointment(data: Request.PostCreateAppointmentRequest): Promise<any>;
6
+ static getCategoryListAppointment(data: Request.GetCategoryListAppointmentRequest): Promise<any>;
7
+ static getStaffListAppointment(data: Request.GetStaffListAppointmentRequest): Promise<any>;
8
+ }
9
+ //# sourceMappingURL=appointment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/appointment.ts"],"names":[],"mappings":"AACA,OAAO,wBAAwB,MAAM,2BAA2B,CAAC;AACjE,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAA;AAE3C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,IAAK,YAAW,wBAAwB;WACzD,qBAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,4BAA4B;WAQhE,0BAA0B,CAAC,IAAI,EAAE,OAAO,CAAC,iCAAiC;WAQ1E,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC,8BAA8B;CAQ3F"}
@@ -1,5 +1,5 @@
1
1
  import { __awaiter } from "tslib";
2
- import * as posEndpoints from "../endpoint";
2
+ import * as posEndpoints from "../endpoints";
3
3
  import Base from "../../../base/Base";
4
4
  export default class Appointment extends Base {
5
5
  static postCreateAppointment(data) {
@@ -0,0 +1,8 @@
1
+ import BatchHistoryAbstractClass from "../interfaces/batch_history";
2
+ import Base from "../../../base/Base";
3
+ import * as Request from "../types/request";
4
+ export default class BatchHistory extends Base implements BatchHistoryAbstractClass {
5
+ static getBatchHistory(data: Request.GetBatchHistoryRequest): Promise<any>;
6
+ static getBatchDetail(data: Request.GetBatchDetailRequest): Promise<any>;
7
+ }
8
+ //# sourceMappingURL=batch_history.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batch_history.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/batch_history.ts"],"names":[],"mappings":"AACA,OAAO,yBAAyB,MAAM,6BAA6B,CAAC;AACpE,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAA;AAE3C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,IAAK,YAAW,yBAAyB;WAC3D,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,sBAAsB;WAQpD,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB;CAQzE"}
@@ -1,5 +1,5 @@
1
1
  import { __awaiter } from "tslib";
2
- import * as posEndpoints from "../endpoint";
2
+ import * as posEndpoints from "../endpoints";
3
3
  import Base from "../../../base/Base";
4
4
  export default class BatchHistory extends Base {
5
5
  static getBatchHistory(data) {
@@ -0,0 +1,8 @@
1
+ import BusinessAbstractClass from "../interfaces/business";
2
+ import Base from "../../../base/Base";
3
+ import * as Request from "../types/request";
4
+ export default class Business extends Base implements BusinessAbstractClass {
5
+ static getBusinessInfo(data: Request.GetBusinessInfoRequest): Promise<any>;
6
+ static postBusinessUpdateInfo(data: Request.PostBusinessUpdateInfoRequest): Promise<any>;
7
+ }
8
+ //# sourceMappingURL=business.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/business.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAA;AAE3C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,IAAK,YAAW,qBAAqB;WACnD,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,sBAAsB;WAQpD,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,6BAA6B;CAQzF"}
@@ -1,5 +1,5 @@
1
1
  import { __awaiter } from "tslib";
2
- import * as posEndpoints from "../endpoint";
2
+ import * as posEndpoints from "../endpoints";
3
3
  import Base from "../../../base/Base";
4
4
  export default class Business extends Base {
5
5
  static getBusinessInfo(data) {
@@ -0,0 +1,7 @@
1
+ import CallAbstractClass from "../interfaces/call";
2
+ import Base from "../../../base/Base";
3
+ import * as Request from "../types/request";
4
+ export default class Call extends Base implements CallAbstractClass {
5
+ static sendSms(data: Request.SendSmsRequest): Promise<any>;
6
+ }
7
+ //# sourceMappingURL=call.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/call.ts"],"names":[],"mappings":"AACA,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AACnD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAA;AAE3C,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,IAAK,YAAW,iBAAiB;WAC3C,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,cAAc;CAQ3D"}
@@ -1,5 +1,5 @@
1
1
  import { __awaiter } from "tslib";
2
- import * as posEndpoints from "../endpoint";
2
+ import * as posEndpoints from "../endpoints";
3
3
  import Base from "../../../base/Base";
4
4
  export default class Call extends Base {
5
5
  static sendSms(data) {