@pisell/private-materials 6.3.94 → 6.3.96

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 (365) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +2 -2
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +2 -2
  11. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  12. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  13. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  14. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  15. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  16. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  17. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  18. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  19. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +1 -3
  20. package/es/components/schedules/model.d.ts +1 -9
  21. package/es/plus/orderList/config.d.ts +2 -2
  22. package/es/plus/saasAttendance/locales.d.ts +63 -0
  23. package/es/plus/saasAttendance/locales.js +71 -2
  24. package/es/plus/saasAttendance/settings/PermissonTab.d.ts +5 -0
  25. package/es/plus/saasAttendance/settings/PermissonTab.js +79 -0
  26. package/es/plus/saasAttendance/settings/ShiftScheduleTab.js +9 -3
  27. package/es/plus/saasAttendance/settings/components/MapField.js +69 -33
  28. package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.d.ts +7 -0
  29. package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.js +149 -0
  30. package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.less +119 -0
  31. package/es/plus/saasAttendance/settings/index.js +7 -0
  32. package/es/plus/saasAttendance/settings/index.less +15 -0
  33. package/es/plus/saasAttendance/settings/types.d.ts +6 -0
  34. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  35. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  36. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  37. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  38. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  39. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  40. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  41. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  42. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  43. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +1 -3
  44. package/lib/components/schedules/model.d.ts +1 -9
  45. package/lib/plus/orderList/config.d.ts +2 -2
  46. package/lib/plus/saasAttendance/locales.d.ts +63 -0
  47. package/lib/plus/saasAttendance/locales.js +65 -2
  48. package/lib/plus/saasAttendance/settings/PermissonTab.d.ts +5 -0
  49. package/lib/plus/saasAttendance/settings/PermissonTab.js +128 -0
  50. package/lib/plus/saasAttendance/settings/ShiftScheduleTab.js +2 -1
  51. package/lib/plus/saasAttendance/settings/components/MapField.js +50 -11
  52. package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.d.ts +7 -0
  53. package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.js +150 -0
  54. package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.less +119 -0
  55. package/lib/plus/saasAttendance/settings/index.js +12 -0
  56. package/lib/plus/saasAttendance/settings/index.less +15 -0
  57. package/lib/plus/saasAttendance/settings/types.d.ts +6 -0
  58. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  59. package/lowcode/eco-cup-list/meta.ts +1 -1
  60. package/lowcode/eco-customer-list/meta.ts +1 -1
  61. package/package.json +3 -3
  62. package/es/components/Sales/Cart/index.d.ts +0 -53
  63. package/es/components/Sales/Summary/utils.d.ts +0 -58
  64. package/es/components/appointmentBooking/components/Date/state.d.ts +0 -63
  65. package/es/components/appointmentBooking/locales.d.ts +0 -366
  66. package/es/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
  67. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +0 -6
  68. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
  69. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
  70. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +0 -6
  71. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
  72. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
  73. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +0 -6
  74. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
  75. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
  76. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
  77. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +0 -6
  78. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
  79. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
  80. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
  81. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
  82. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
  83. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
  84. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
  85. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
  86. package/es/components/booking/addons/index.d.ts +0 -17
  87. package/es/components/booking/components/footer/amount.d.ts +0 -25
  88. package/es/components/booking/components/tabPane/index.d.ts +0 -4
  89. package/es/components/booking/components/voucher/utils.d.ts +0 -4
  90. package/es/components/booking/dashboard/serve.d.ts +0 -1
  91. package/es/components/booking/deposit/ClientItem/index.d.ts +0 -18
  92. package/es/components/booking/deposit/DepositItem/index.d.ts +0 -25
  93. package/es/components/booking/deposit/index.d.ts +0 -3
  94. package/es/components/booking/editBookingModal/locales.d.ts +0 -21
  95. package/es/components/booking/editBookingModal/mock.d.ts +0 -807
  96. package/es/components/booking/editBookingModal/utils.d.ts +0 -12
  97. package/es/components/booking/forms/forms.d.ts +0 -30
  98. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  99. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -7
  100. package/es/components/booking/info/client/index.d.ts +0 -4
  101. package/es/components/booking/info/clientVariant/utils.d.ts +0 -1
  102. package/es/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
  103. package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  104. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
  105. package/es/components/booking/info/index.d.ts +0 -4
  106. package/es/components/booking/info/main.d.ts +0 -12
  107. package/es/components/booking/info/model.d.ts +0 -14
  108. package/es/components/booking/info/service/Lists.d.ts +0 -3
  109. package/es/components/booking/info/service/addService/index.d.ts +0 -12
  110. package/es/components/booking/info/service/serve.d.ts +0 -20
  111. package/es/components/booking/info/service/serviceList/index.d.ts +0 -6
  112. package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
  113. package/es/components/booking/info/service2/Group/utils.d.ts +0 -14
  114. package/es/components/booking/info/service2/Lists.d.ts +0 -3
  115. package/es/components/booking/info/service2/utils.d.ts +0 -248
  116. package/es/components/booking/info/utils.d.ts +0 -50
  117. package/es/components/booking/info2/index.d.ts +0 -12
  118. package/es/components/booking/info2/service/addService/index.d.ts +0 -12
  119. package/es/components/booking/info2/service/addService/mock.d.ts +0 -214
  120. package/es/components/booking/info2/service/addService/utils.d.ts +0 -98
  121. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -4
  122. package/es/components/booking/info2/service/editService/utils.d.ts +0 -13
  123. package/es/components/booking/info2/service/index.d.ts +0 -4
  124. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -6
  125. package/es/components/booking/info2/utilsByBooking.d.ts +0 -35
  126. package/es/components/booking/locales.d.ts +0 -846
  127. package/es/components/booking/notes/addNote/index.d.ts +0 -4
  128. package/es/components/booking/utils.d.ts +0 -175
  129. package/es/components/ecocup/components/CupInfoCard/index.d.ts +0 -8
  130. package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -5
  131. package/es/components/ecocup/components/CustomerCard/index.d.ts +0 -7
  132. package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -32
  133. package/es/components/ecocup/cupProject/const.d.ts +0 -7
  134. package/es/components/eftpos/const.d.ts +0 -64
  135. package/es/components/eftpos/device.d.ts +0 -9
  136. package/es/components/eftpos/hooks.d.ts +0 -34
  137. package/es/components/eftpos/locales.d.ts +0 -99
  138. package/es/components/eftposPay/app.d.ts +0 -11
  139. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -4
  140. package/es/components/eftposPay/component/fail/index.d.ts +0 -4
  141. package/es/components/eftposPay/const.d.ts +0 -184
  142. package/es/components/eftposPay/device.d.ts +0 -24
  143. package/es/components/eftposPay/hooks.d.ts +0 -35
  144. package/es/components/eftposPay/index.d.ts +0 -5
  145. package/es/components/eftposPay/locales.d.ts +0 -330
  146. package/es/components/eftposPay/manufacturer.d.ts +0 -7
  147. package/es/components/eftposPay/pay.d.ts +0 -21
  148. package/es/components/eftposPay/store/index.d.ts +0 -355
  149. package/es/components/eftposPay/tyro/index.d.ts +0 -9
  150. package/es/components/eventBooking/locales.d.ts +0 -246
  151. package/es/components/login/locales.d.ts +0 -24
  152. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
  153. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
  154. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
  155. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
  156. package/es/components/pay/toC/locales.d.ts +0 -307
  157. package/es/components/pay/toC/serve.d.ts +0 -62
  158. package/es/components/pinModal/locales.d.ts +0 -27
  159. package/es/components/pinVerifyModal/locales.d.ts +0 -24
  160. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -3
  161. package/es/components/pisellSelectCustomerModal/locales.d.ts +0 -81
  162. package/es/components/productExtension/locales.d.ts +0 -48
  163. package/es/components/productSelect/locales.d.ts +0 -18
  164. package/es/components/ruleSetting/locales.d.ts +0 -48
  165. package/es/components/schedules/locales.d.ts +0 -87
  166. package/es/components/shoppingCart/locales.d.ts +0 -33
  167. package/es/components/shoppingCart/type.d.ts +0 -48
  168. package/es/components/stepController/locales.d.ts +0 -27
  169. package/es/components/subTotal/locales.d.ts +0 -42
  170. package/es/components/systemSettings/registry/locales.d.ts +0 -272
  171. package/es/components/systemSettings/registry/types.d.ts +0 -126
  172. package/es/components/taxSelect/locales.d.ts +0 -24
  173. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -7
  174. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -5
  175. package/es/components/ticketBooking/index.d.ts +0 -8
  176. package/es/components/ticketBooking/locales.d.ts +0 -174
  177. package/es/components/ticketBooking/serve.d.ts +0 -287
  178. package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
  179. package/es/components/ticketBooking/utils/index.d.ts +0 -25
  180. package/es/components/wallet/utils.d.ts +0 -48
  181. package/es/components/walletList/locales.d.ts +0 -27
  182. package/es/components/walletList/types/index.d.ts +0 -194
  183. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
  184. package/es/components/workSpaceList/components/Card/constants.d.ts +0 -2
  185. package/es/hooks/useEngineContext.d.ts +0 -11
  186. package/es/hooks/useWindowSize.d.ts +0 -5
  187. package/es/plus/clientCard/locales.d.ts +0 -18
  188. package/es/plus/clientCard/types.d.ts +0 -135
  189. package/es/plus/clinetSearch/locales.d.ts +0 -108
  190. package/es/plus/contactInfo/locales.d.ts +0 -15
  191. package/es/plus/contactInfoModal/locales.d.ts +0 -66
  192. package/es/plus/productSelect/CategoryTabs/index.d.ts +0 -21
  193. package/es/plus/productSelect/locales.d.ts +0 -18
  194. package/es/plus/saasCreateOrganization/locales.d.ts +0 -15
  195. package/es/plus/saasLogin/locales.d.ts +0 -51
  196. package/es/plus/saasRegister/locales.d.ts +0 -117
  197. package/es/plus/saasRole/locales.d.ts +0 -193
  198. package/es/plus/saasRole/types.d.ts +0 -175
  199. package/es/plus/saasTeamMembers/locales.d.ts +0 -330
  200. package/es/plus/saasTeamMembers/type.d.ts +0 -156
  201. package/es/plus/selectHolder/locales.d.ts +0 -27
  202. package/es/plus/walletEditor/locales.d.ts +0 -135
  203. package/es/plus/walletEditor/types.d.ts +0 -52
  204. package/es/plus/walletPassGallery/locales.d.ts +0 -285
  205. package/es/plus/walletPassGallery/utils.d.ts +0 -48
  206. package/es/pro/Login2.0/components/PhoneInput.d.ts +0 -53
  207. package/es/pro/Login2.0/locales.d.ts +0 -543
  208. package/es/pro/Login2.0/shared/types.d.ts +0 -232
  209. package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
  210. package/es/pro/comprehensiveSearch/locales.d.ts +0 -15
  211. package/es/pro/numberKeyboard/locales.d.ts +0 -12
  212. package/es/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
  213. package/es/test/setup.d.ts +0 -1
  214. package/lib/components/Sales/Cart/index.d.ts +0 -53
  215. package/lib/components/Sales/Summary/utils.d.ts +0 -58
  216. package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -63
  217. package/lib/components/appointmentBooking/locales.d.ts +0 -366
  218. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
  219. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +0 -6
  220. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
  221. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
  222. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +0 -6
  223. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
  224. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
  225. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +0 -6
  226. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
  227. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
  228. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
  229. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +0 -6
  230. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
  231. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
  232. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
  233. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
  234. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
  235. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
  236. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
  237. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
  238. package/lib/components/booking/addons/index.d.ts +0 -17
  239. package/lib/components/booking/components/footer/amount.d.ts +0 -25
  240. package/lib/components/booking/components/tabPane/index.d.ts +0 -4
  241. package/lib/components/booking/components/voucher/utils.d.ts +0 -4
  242. package/lib/components/booking/dashboard/serve.d.ts +0 -1
  243. package/lib/components/booking/deposit/ClientItem/index.d.ts +0 -18
  244. package/lib/components/booking/deposit/DepositItem/index.d.ts +0 -25
  245. package/lib/components/booking/deposit/index.d.ts +0 -3
  246. package/lib/components/booking/editBookingModal/locales.d.ts +0 -21
  247. package/lib/components/booking/editBookingModal/mock.d.ts +0 -807
  248. package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
  249. package/lib/components/booking/forms/forms.d.ts +0 -30
  250. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  251. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -7
  252. package/lib/components/booking/info/client/index.d.ts +0 -4
  253. package/lib/components/booking/info/clientVariant/utils.d.ts +0 -1
  254. package/lib/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
  255. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  256. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
  257. package/lib/components/booking/info/index.d.ts +0 -4
  258. package/lib/components/booking/info/main.d.ts +0 -12
  259. package/lib/components/booking/info/model.d.ts +0 -14
  260. package/lib/components/booking/info/service/Lists.d.ts +0 -3
  261. package/lib/components/booking/info/service/addService/index.d.ts +0 -12
  262. package/lib/components/booking/info/service/serve.d.ts +0 -20
  263. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -6
  264. package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
  265. package/lib/components/booking/info/service2/Group/utils.d.ts +0 -14
  266. package/lib/components/booking/info/service2/Lists.d.ts +0 -3
  267. package/lib/components/booking/info/service2/utils.d.ts +0 -248
  268. package/lib/components/booking/info/utils.d.ts +0 -50
  269. package/lib/components/booking/info2/index.d.ts +0 -12
  270. package/lib/components/booking/info2/service/addService/index.d.ts +0 -12
  271. package/lib/components/booking/info2/service/addService/mock.d.ts +0 -214
  272. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -98
  273. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -4
  274. package/lib/components/booking/info2/service/editService/utils.d.ts +0 -13
  275. package/lib/components/booking/info2/service/index.d.ts +0 -4
  276. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -6
  277. package/lib/components/booking/info2/utilsByBooking.d.ts +0 -35
  278. package/lib/components/booking/locales.d.ts +0 -846
  279. package/lib/components/booking/notes/addNote/index.d.ts +0 -4
  280. package/lib/components/booking/utils.d.ts +0 -175
  281. package/lib/components/ecocup/components/CupInfoCard/index.d.ts +0 -8
  282. package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -5
  283. package/lib/components/ecocup/components/CustomerCard/index.d.ts +0 -7
  284. package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -32
  285. package/lib/components/ecocup/cupProject/const.d.ts +0 -7
  286. package/lib/components/eftpos/const.d.ts +0 -64
  287. package/lib/components/eftpos/device.d.ts +0 -9
  288. package/lib/components/eftpos/hooks.d.ts +0 -34
  289. package/lib/components/eftpos/locales.d.ts +0 -99
  290. package/lib/components/eftposPay/app.d.ts +0 -11
  291. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -4
  292. package/lib/components/eftposPay/component/fail/index.d.ts +0 -4
  293. package/lib/components/eftposPay/const.d.ts +0 -184
  294. package/lib/components/eftposPay/device.d.ts +0 -24
  295. package/lib/components/eftposPay/hooks.d.ts +0 -35
  296. package/lib/components/eftposPay/index.d.ts +0 -5
  297. package/lib/components/eftposPay/locales.d.ts +0 -330
  298. package/lib/components/eftposPay/manufacturer.d.ts +0 -7
  299. package/lib/components/eftposPay/pay.d.ts +0 -21
  300. package/lib/components/eftposPay/store/index.d.ts +0 -355
  301. package/lib/components/eftposPay/tyro/index.d.ts +0 -9
  302. package/lib/components/eventBooking/locales.d.ts +0 -246
  303. package/lib/components/login/locales.d.ts +0 -24
  304. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
  305. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
  306. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
  307. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
  308. package/lib/components/pay/toC/locales.d.ts +0 -307
  309. package/lib/components/pay/toC/serve.d.ts +0 -62
  310. package/lib/components/pinModal/locales.d.ts +0 -27
  311. package/lib/components/pinVerifyModal/locales.d.ts +0 -24
  312. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -3
  313. package/lib/components/pisellSelectCustomerModal/locales.d.ts +0 -81
  314. package/lib/components/productExtension/locales.d.ts +0 -48
  315. package/lib/components/productSelect/locales.d.ts +0 -18
  316. package/lib/components/ruleSetting/locales.d.ts +0 -48
  317. package/lib/components/schedules/locales.d.ts +0 -87
  318. package/lib/components/shoppingCart/locales.d.ts +0 -33
  319. package/lib/components/shoppingCart/type.d.ts +0 -48
  320. package/lib/components/stepController/locales.d.ts +0 -27
  321. package/lib/components/subTotal/locales.d.ts +0 -42
  322. package/lib/components/systemSettings/registry/locales.d.ts +0 -272
  323. package/lib/components/systemSettings/registry/types.d.ts +0 -126
  324. package/lib/components/taxSelect/locales.d.ts +0 -24
  325. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -7
  326. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -5
  327. package/lib/components/ticketBooking/index.d.ts +0 -8
  328. package/lib/components/ticketBooking/locales.d.ts +0 -174
  329. package/lib/components/ticketBooking/serve.d.ts +0 -287
  330. package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
  331. package/lib/components/ticketBooking/utils/index.d.ts +0 -25
  332. package/lib/components/wallet/utils.d.ts +0 -48
  333. package/lib/components/walletList/locales.d.ts +0 -27
  334. package/lib/components/walletList/types/index.d.ts +0 -194
  335. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
  336. package/lib/components/workSpaceList/components/Card/constants.d.ts +0 -2
  337. package/lib/hooks/useEngineContext.d.ts +0 -11
  338. package/lib/hooks/useWindowSize.d.ts +0 -5
  339. package/lib/plus/clientCard/locales.d.ts +0 -18
  340. package/lib/plus/clientCard/types.d.ts +0 -135
  341. package/lib/plus/clinetSearch/locales.d.ts +0 -108
  342. package/lib/plus/contactInfo/locales.d.ts +0 -15
  343. package/lib/plus/contactInfoModal/locales.d.ts +0 -66
  344. package/lib/plus/productSelect/CategoryTabs/index.d.ts +0 -21
  345. package/lib/plus/productSelect/locales.d.ts +0 -18
  346. package/lib/plus/saasCreateOrganization/locales.d.ts +0 -15
  347. package/lib/plus/saasLogin/locales.d.ts +0 -51
  348. package/lib/plus/saasRegister/locales.d.ts +0 -117
  349. package/lib/plus/saasRole/locales.d.ts +0 -193
  350. package/lib/plus/saasRole/types.d.ts +0 -175
  351. package/lib/plus/saasTeamMembers/locales.d.ts +0 -330
  352. package/lib/plus/saasTeamMembers/type.d.ts +0 -156
  353. package/lib/plus/selectHolder/locales.d.ts +0 -27
  354. package/lib/plus/walletEditor/locales.d.ts +0 -135
  355. package/lib/plus/walletEditor/types.d.ts +0 -52
  356. package/lib/plus/walletPassGallery/locales.d.ts +0 -285
  357. package/lib/plus/walletPassGallery/utils.d.ts +0 -48
  358. package/lib/pro/Login2.0/components/PhoneInput.d.ts +0 -53
  359. package/lib/pro/Login2.0/locales.d.ts +0 -543
  360. package/lib/pro/Login2.0/shared/types.d.ts +0 -232
  361. package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
  362. package/lib/pro/comprehensiveSearch/locales.d.ts +0 -15
  363. package/lib/pro/numberKeyboard/locales.d.ts +0 -12
  364. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
  365. package/lib/test/setup.d.ts +0 -1
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import "./index.less";
3
- declare const AddNote: ({ value, onChange, wait, title, placeholder }: any) => React.JSX.Element;
4
- export default AddNote;
@@ -1,175 +0,0 @@
1
- import dayjs from 'dayjs';
2
- declare type RType = (url: string, data?: {} | undefined, config?: {} | undefined) => Promise<any>;
3
- declare class Request {
4
- private request;
5
- constructor();
6
- setRequest(val: any): void;
7
- getRequest(): {
8
- get: RType;
9
- post: RType;
10
- put: RType;
11
- remove: RType;
12
- custom: RType;
13
- };
14
- }
15
- export declare const request: Request;
16
- /**
17
- * @title: 格式化持续时长用于展示
18
- * @description:
19
- * @param {number} service_times
20
- * @return {*}
21
- * @Author: zhiwei.Wang
22
- * @Date: 2024-04-26 14:00
23
- */
24
- export declare const getDiscountTime: (service_times: number, isDay?: boolean) => string;
25
- /**
26
- * @title: 时间切片
27
- * @description:
28
- * @param {any} config
29
- * @param {string} locale
30
- * @return {*}
31
- * @Author: zhiwei.Wang
32
- * @Date: 2024-04-26 13:59
33
- */
34
- export declare const sliceDayIntoFiveMinutes: (config: any, locale: string, isDay?: boolean) => {
35
- timeSlices: {
36
- label: string;
37
- value: string;
38
- }[];
39
- durationSlicesBasedOnTime: {
40
- label: string;
41
- value: number;
42
- }[];
43
- };
44
- export declare const getNowTime: () => string;
45
- export declare const isNowTime: (time: string) => boolean;
46
- /**
47
- * @title: 获取服务的开始时间, 如果是now 转换为当前的时间
48
- * @description:
49
- * @param {string} start_time
50
- * @return {*}
51
- * @Author: zhiwei.Wang
52
- * @Date: 2024-04-26 14:03
53
- */
54
- export declare const getServeStartTime: (start_time: string) => string;
55
- /**
56
- * @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
57
- * @description:
58
- * @param {any} item
59
- * @param {any} currentDate
60
- * @return {*}
61
- * @Author: zhiwei.Wang
62
- * @Date: 2024-04-26 14:04
63
- */
64
- export declare const getServiceTime: (item: any, currentDate: any) => string;
65
- export declare const findNextSlice: ({ timeSlices, index, date, }: {
66
- timeSlices: any[];
67
- index?: number | undefined;
68
- date?: string | undefined;
69
- }) => any;
70
- export declare const findNextDuration: (current: any, array: any, defaultValue?: any) => any;
71
- export declare const formatProductListByCategory: (list: any, filterItem: any) => unknown[];
72
- export declare const getResourceTimeIsUsable: (item: any, cacheItem: any) => any;
73
- /**
74
- * @title: 查找是否有可用的time
75
- * @description:
76
- * @param {any} resourceItem
77
- * @return {*}
78
- * @Author: zhiwei.Wang
79
- * @Date: 2024-01-09 13:57
80
- */
81
- export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
82
- /**
83
- * @title: 获取店铺的营业结束时间
84
- * @description:
85
- * @return {*}
86
- * @Author: zhiwei.Wang
87
- * @Date: 2024-02-23 10:00
88
- */
89
- export declare const getShopOpeningHours: () => string;
90
- /**
91
- * @title: 对灵活时长进行处理
92
- * @description:
93
- * @return {*}
94
- * @Author: zhiwei.Wang
95
- * @Date: 2024-02-23 10:00
96
- */
97
- export declare const flexibleObj: {
98
- create: (num: number) => any;
99
- getValue: (str: string | number) => number;
100
- isFlexible: (str: string | number) => boolean;
101
- add: (current: number | string, duration: number) => any;
102
- };
103
- /**
104
- * @title: 获取结束时间
105
- * @description: 取 endDate | 店铺营业时间 最小的那一个
106
- * @param {any} startDate
107
- * @param {string} duration
108
- * @param {any} endDate
109
- * @return {*}
110
- * @Author: zhiwei.Wang
111
- * @Date: 2024-02-23 10:01
112
- */
113
- export declare const getEndDate: (startDate: any, duration: string | number, endDate: any) => any;
114
- export declare const getServiceTimes: (service: any) => {
115
- startDate: dayjs.Dayjs;
116
- endDate: dayjs.Dayjs;
117
- };
118
- export declare const getErrorList: (resource: any, cacheItem: any, isDay?: boolean) => {
119
- label: any;
120
- type: string;
121
- }[];
122
- /**
123
- * @title: 格式化资源, 添加自定义参数
124
- * @description:
125
- * @param {any} resourceItem
126
- * @return {*}
127
- * @Author: zhiwei.Wang
128
- * @Date: 2024-01-09 13:40
129
- */
130
- export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
131
- export declare const getLastServer: (list: any) => any;
132
- export declare const getCacheParams: () => any;
133
- export declare const deleteCacheParams: () => void;
134
- /**
135
- * @title: 获取跨日预约的时长
136
- * @description:
137
- * @param {any} cacheItem
138
- * @return {*}
139
- * @Author: WangHan
140
- * @Date: 2024-12-01 22:43
141
- */
142
- export declare const getDays: (cacheItem: any, type: 'minutes' | 'days') => any;
143
- export declare const isSessionProduct: (cacheItem: any) => boolean;
144
- export declare const getIsEject: (item: any, type: 'select' | 'detail') => boolean;
145
- export declare const getIsOnlySession: (item: any) => boolean;
146
- /**
147
- * @title: 创建一个服务商品
148
- * @description:
149
- * @param {any} state
150
- * @param {any} item
151
- * @return {*}
152
- * @Author: zhiwei.Wang
153
- * @Date: 2024-01-26 14:09
154
- */
155
- export declare const getServerItemExtend: (state: any, cacheItem: any, timeObj: any) => any;
156
- export declare const getMainPrice: (item: any, price?: number) => number;
157
- export declare const getProductTotalPrice: (item: any) => number;
158
- /**
159
- * @title: 判断 duration
160
- * @description: 用于处理不同格式的duration
161
- * @param {number} duration
162
- * @return {*}
163
- * @Author: zhiwei.Wang
164
- * @Date: 2024-02-23 10:02
165
- */
166
- export declare const getDuration: (duration: number | {
167
- type: string;
168
- value: number;
169
- }) => number | "flexible" | {
170
- type: string;
171
- value: number;
172
- };
173
- export declare const isWalkIn: (customer_id?: number | string) => boolean;
174
- export declare const getIsEdit: (state: any) => boolean;
175
- export {};
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface IProps {
4
- type: 'rentInfo' | 'markInfo' | 'belongInfo';
5
- data: Record<string, any>;
6
- }
7
- declare const CupInfoCard: (props: IProps) => React.JSX.Element;
8
- export default CupInfoCard;
@@ -1,5 +0,0 @@
1
- import { ECupActionType } from '../../types';
2
- export declare const useCupAction: () => {
3
- run: (this: unknown, cupId: string, action: ECupActionType) => Promise<boolean>;
4
- loading: boolean;
5
- };
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- import { ICustomer } from '../../types';
4
- interface IProps extends ICustomer {
5
- }
6
- declare const CustomerCard: (props: IProps) => React.JSX.Element | null;
7
- export default CustomerCard;
@@ -1,32 +0,0 @@
1
- interface GetCupListsParams {
2
- type?: 'partner' | 'eco';
3
- with?: string[];
4
- skip?: number;
5
- num?: number;
6
- search?: string;
7
- operated_at_start?: string;
8
- operated_at_end?: string;
9
- order_by?: string;
10
- sort?: 'asc' | 'desc';
11
- partner_shop_id?: number;
12
- }
13
- interface GetStatisticsParams {
14
- started_at?: string;
15
- ended_at?: string;
16
- type?: 'eco' | 'normal';
17
- partner_shop_id?: number;
18
- }
19
- export declare const useCupListsApi: () => {
20
- loading: boolean;
21
- data: any;
22
- run: (params: GetCupListsParams) => Promise<void>;
23
- };
24
- export declare const useStatisticsApi: () => {
25
- data: any;
26
- getStatics: (params: GetStatisticsParams) => Promise<void>;
27
- };
28
- export declare const useEcoShopListsApi: () => {
29
- data: any;
30
- getEcoShopLists: (params?: any) => Promise<void>;
31
- };
32
- export {};
@@ -1,7 +0,0 @@
1
- export declare const CUP_PROJECT_FOOTER_BUTTONS: {
2
- key: string;
3
- icon: string;
4
- type: string;
5
- size: string;
6
- languageKey: string;
7
- }[];
@@ -1,64 +0,0 @@
1
- export declare enum Eftpos {
2
- Payo = "payo",
3
- Tyro = "tyro",
4
- Windcave = "windcave",
5
- Stripe = "stripe"
6
- }
7
- export declare enum DeviceEnum {
8
- /** 新增 */
9
- Add = "add",
10
- /** 编辑 */
11
- Edit = "edit",
12
- /** 重新链接 */
13
- Repair = "repair"
14
- }
15
- export declare type DeviceStatus = `${DeviceEnum}`;
16
- /** 设备配置信息 */
17
- export interface DeviceProp {
18
- /** 设备id */
19
- id?: string | number;
20
- /** 设备名称 */
21
- name: string;
22
- /** 设备类型(厂商) */
23
- type: Eftpos.Tyro;
24
- /** 设备状态 */
25
- status: "unpaired" | "paired";
26
- /** 设备设置(商户配置) */
27
- setting: {
28
- [key: string]: unknown;
29
- } | null;
30
- /** 设备设置(第三方配置) */
31
- connection: {
32
- [key: string]: unknown;
33
- } | null;
34
- [key: string]: unknown;
35
- }
36
- /**
37
- * @title: 获取表单结果数据
38
- * @description: 获取表单结果数据
39
- * @param {any} list 表单配置信息
40
- * @return {*} 表单结果信息
41
- * @Author: hongbing.wang
42
- * @Date: 2024-08-19 11:10
43
- */
44
- export declare const getDefaultValue: (list: any) => any;
45
- /**
46
- * @title: 构建通用表单配置信息,构建动态表单
47
- * @description:
48
- * @param {any} field : array 字段信息 value 结果信息,name 上级字段信息用于嵌套, getComm : 获取字段组件配置信息
49
- * @return form 表单配置信息
50
- * @Author: hongbing.wang
51
- * @Date: 2024-08-19 11:11
52
- */
53
- export declare function getCommByFields({ field, value, name, getComm, }: {
54
- field: (string | {
55
- name: string;
56
- children: string[];
57
- })[];
58
- value?: any;
59
- name?: string[];
60
- getComm: (params: {
61
- field: string;
62
- value?: unknown;
63
- }, record?: any) => any;
64
- }): Promise<any>;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { DeviceProp } from './const';
3
- interface DeviceProps {
4
- formItemList: any[];
5
- onSave: (device: DeviceProp) => void;
6
- children?: React.ReactNode;
7
- }
8
- declare const Device: (props: DeviceProps) => React.JSX.Element;
9
- export default Device;
@@ -1,34 +0,0 @@
1
- /// <reference types="react" />
2
- import { Eftpos } from './const';
3
- /**
4
- * @title: tyro 设备连接
5
- * @Author: hongbing.wang
6
- * @Date: 2024-08-20 13:23
7
- */
8
- export declare const usePairTerminalo: (type: Eftpos, params: {
9
- url?: string;
10
- version?: string;
11
- }) => ({ mid, tid, apiKey, posProductData, }: {
12
- mid: string;
13
- tid: string;
14
- apiKey: string;
15
- posProductData: {
16
- posProductVendor: string;
17
- posProductName: string;
18
- posProductVersion: string;
19
- siteReference: string;
20
- };
21
- }, cb: (...agrn: unknown[]) => void) => Promise<void>;
22
- /**
23
- * @title: 获取 Tyro 资源
24
- * @description:
25
- * @param {Eftpos} type 类型
26
- * @param {string} url 链接
27
- * @return {*}
28
- * @Author: hongbing.wang
29
- * @Date: 2024-08-19 18:36
30
- */
31
- export declare const useTyro: (params: {
32
- url?: string;
33
- version?: string;
34
- }) => readonly [import("react").MutableRefObject<any>, boolean];
@@ -1,99 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'page.eftpos.text.manufacturer': string;
4
- 'page.eftpos.text.description': string;
5
- 'page.eftpos.text.status': string;
6
- 'page.eftpos.text.operation': string;
7
- 'page.eftpos.text.device': string;
8
- 'page.eftpos.text.device.add': (status?: string, name?: string) => string;
9
- 'page.eftpos.text.device.list': string;
10
- 'page.eftpos.text.device.name': string;
11
- 'page.eftpos.text.sucahrge': string;
12
- 'page.eftpos.text.paired': string;
13
- 'page.eftpos.text.unpaired': string;
14
- 'page.eftpos.text.repair': string;
15
- 'page.eftpos.text.edit': string;
16
- 'page.eftpos.text.delete': string;
17
- 'page.eftpos.text.save': string;
18
- 'page.eftpos.text.confim.delete': string;
19
- 'page.eftpos.text.confirm_delete-message': (x: string) => string;
20
- 'page.eftpos.text.confim.cancel': string;
21
- 'page.eftpos.text.table.name': string;
22
- 'page.eftpos.text.table.status': string;
23
- 'page.eftpos.text.table.surcharge': string;
24
- 'page.eftpos.text.table.opeartion': string;
25
- 'page.eftpos.text.table.del.title': string;
26
- 'page.eftpos.text.table.del.text': string;
27
- 'page.eftpos.text.table.del.delete': string;
28
- 'page.eftpos.text.table.del.cancel': string;
29
- 'page.eftpos.text.log': string;
30
- 'page.eftpos.text.setting': string;
31
- 'page.eftpos.text.setting.tip': string;
32
- 'page.eftpos.text.setting.btn': string;
33
- };
34
- 'zh-CN': {
35
- 'page.eftpos.text.manufacturer': string;
36
- 'page.eftpos.text.description': string;
37
- 'page.eftpos.text.status': string;
38
- 'page.eftpos.text.operation': string;
39
- 'page.eftpos.text.device': string;
40
- 'page.eftpos.text.device.add': (status?: string, name?: string) => string;
41
- 'page.eftpos.text.device.list': string;
42
- 'page.eftpos.text.device.name': string;
43
- 'page.eftpos.text.sucahrge': string;
44
- 'page.eftpos.text.paired': string;
45
- 'page.eftpos.text.unpaired': string;
46
- 'page.eftpos.text.repair': string;
47
- 'page.eftpos.text.edit': string;
48
- 'page.eftpos.text.delete': string;
49
- 'page.eftpos.text.save': string;
50
- 'page.eftpos.text.confim.delete': string;
51
- 'page.eftpos.text.confirm_delete-message': (x: string) => string;
52
- 'page.eftpos.text.confim.cancel': string;
53
- 'page.eftpos.text.table.name': string;
54
- 'page.eftpos.text.table.status': string;
55
- 'page.eftpos.text.table.surcharge': string;
56
- 'page.eftpos.text.table.opeartion': string;
57
- 'page.eftpos.text.table.del.title': string;
58
- 'page.eftpos.text.table.del.text': string;
59
- 'page.eftpos.text.table.del.delete': string;
60
- 'page.eftpos.text.table.del.cancel': string;
61
- 'page.eftpos.text.log': string;
62
- 'page.eftpos.text.setting': string;
63
- 'page.eftpos.text.setting.tip': string;
64
- 'page.eftpos.text.setting.btn': string;
65
- };
66
- 'zh-HK': {
67
- 'page.eftpos.text.manufacturer': string;
68
- 'page.eftpos.text.description': string;
69
- 'page.eftpos.text.status': string;
70
- 'page.eftpos.text.operation': string;
71
- 'page.eftpos.text.device': string;
72
- 'page.eftpos.text.device.add': (status?: string, name?: string) => string;
73
- 'page.eftpos.text.device.list': string;
74
- 'page.eftpos.text.device.name': string;
75
- 'page.eftpos.text.sucahrge': string;
76
- 'page.eftpos.text.paired': string;
77
- 'page.eftpos.text.unpaired': string;
78
- 'page.eftpos.text.repair': string;
79
- 'page.eftpos.text.edit': string;
80
- 'page.eftpos.text.delete': string;
81
- 'page.eftpos.text.save': string;
82
- 'page.eftpos.text.confim.delete': string;
83
- 'page.eftpos.text.confirm_delete-message': (x: string) => string;
84
- 'page.eftpos.text.confim.cancel': string;
85
- 'page.eftpos.text.table.name': string;
86
- 'page.eftpos.text.table.status': string;
87
- 'page.eftpos.text.table.surcharge': string;
88
- 'page.eftpos.text.table.opeartion': string;
89
- 'page.eftpos.text.table.del.title': string;
90
- 'page.eftpos.text.table.del.text': string;
91
- 'page.eftpos.text.table.del.delete': string;
92
- 'page.eftpos.text.table.del.cancel': string;
93
- 'page.eftpos.text.log': string;
94
- 'page.eftpos.text.setting': string;
95
- 'page.eftpos.text.setting.tip': string;
96
- 'page.eftpos.text.setting.btn': string;
97
- };
98
- };
99
- export default _default;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { PosProps, RouteType } from './const';
3
- declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "mode" | "type" | "getApi"> & {
4
- action: RouteType;
5
- device_number: string | number;
6
- api: ReturnType<PosProps['getApi']>;
7
- isMobile: boolean;
8
- channel?: string | undefined;
9
- formatAmount(amount: number | string, precision: number, symbol: string): string;
10
- }) => React.JSX.Element;
11
- export default App;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { ActionProps } from '../../const';
3
- declare const _default: ({ className, isMobile, onChange }: ActionProps) => React.JSX.Element;
4
- export default _default;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { ActionProps } from '../../const';
3
- declare const _default: ({ onChange, className, isMobile }: ActionProps) => React.JSX.Element;
4
- export default _default;
@@ -1,184 +0,0 @@
1
- export declare enum EftposEnum {
2
- /** 后端支付 - 仅支付 */
3
- Payo = "payo",
4
- /** 前端支付 */
5
- Tyro = "tyro",
6
- /** 后端支付 - 支付 + 退款 */
7
- Windcave = "windcave",
8
- Stripe = "stripe",
9
- Linkly = "linkly"
10
- }
11
- export declare enum StatusEnum {
12
- Loading = "loading",
13
- Warn = "warn",
14
- Fail = "fail",
15
- Success = "success",
16
- Pedding = "pedding",
17
- Resove = "resove",
18
- Reject = "reject",
19
- Question = "question"
20
- }
21
- export declare enum ModeEnum {
22
- /** 支付 */
23
- Pay = "pay",
24
- /** 完整支付 */
25
- FullPay = "fullPay",
26
- /** 退款 */
27
- Refund = "refund",
28
- /** 查询 */
29
- Query = "query"
30
- }
31
- /**
32
- * 崩溃恢复
33
- */
34
- export declare enum RestoreEumn {
35
- /** 常规 */
36
- Normal = "normal",
37
- /** 恢复 */
38
- Restore = "restore"
39
- }
40
- /**
41
- * 订单状态
42
- */
43
- export declare enum OrderEumn {
44
- /** 恢复 */
45
- Restore = "restore",
46
- /** 常规 */
47
- Normal = "normal",
48
- /** 成功 */
49
- Succeed = "succeed",
50
- /** 失败 */
51
- Failed = "failed",
52
- /** 等待 */
53
- Pending = "pending",
54
- /** 没有订单状态 */
55
- Null = "null"
56
- }
57
- export declare enum ClientEnum {
58
- /** 用户端 */
59
- User = "user",
60
- /** 商家端 */
61
- Merchant = "merchant"
62
- }
63
- export declare enum RouteEnum {
64
- /** 改价页 */
65
- Amount = "amount",
66
- /** 门店列表页 */
67
- DeviceList = "deviceList",
68
- /**支付页 */
69
- Pay = "pay"
70
- }
71
- export declare enum PayRouteEnum {
72
- Step = "step",
73
- Unset = "unset"
74
- }
75
- export declare type RouteType = `${RouteEnum}`;
76
- export declare type PayRouteType = `${PayRouteEnum}`;
77
- export declare type DeviceStatusType = `${EftposEnum}`;
78
- export declare type StatusType = `${StatusEnum}`;
79
- export declare type ModeType = `${ModeEnum}`;
80
- export interface PosProps {
81
- /** 厂商类型 */
82
- type: DeviceStatusType;
83
- getApi: () => {
84
- [key: string]: (...agrn: unknown[]) => Promise<unknown>;
85
- };
86
- params: {
87
- [key: string]: unknown;
88
- };
89
- /** 回调 */
90
- onChangeStatus: (status: `${StatusEnum.Success}` | `${StatusEnum.Fail}` | 'page' | 'print' | 'mark_tx_processed', params?: {
91
- [keys: string]: unknown;
92
- } | string, other?: any) => void;
93
- onChangeParams(...agrn: unknown[]): void;
94
- terminal: {
95
- network: boolean;
96
- };
97
- device?: {
98
- [key: string]: unknown;
99
- };
100
- mode: ModeEnum;
101
- tyroUrl?: string;
102
- tyroVersion?: string;
103
- source: 'normal' | 'restore';
104
- }
105
- export interface PayProps {
106
- api: ReturnType<PosProps['getApi']>;
107
- onChange: PosProps['onChangeStatus'];
108
- className?: string;
109
- }
110
- export declare type Amount = {
111
- name: string;
112
- /** 订单金额 */
113
- money: number;
114
- /** 上一轮操作订单金额 */
115
- amount: number;
116
- /** 金额单位 */
117
- symbol: string;
118
- /** 手续费-百分率 */
119
- surRate: number;
120
- /** 手续费-是否开启 */
121
- surMoney: number;
122
- /** 手续费-是否存在 */
123
- surcharge: boolean;
124
- /** 是否使用原始手续费 */
125
- useOriginSurcharge: boolean;
126
- };
127
- export declare type PayAmount = {
128
- /** 手续费-百分比-带百分号 例: 1% =》 数据为 0.01 */
129
- surPercentRate: string;
130
- /** 手续费-百分比-不带百分号 例:1% =》 数据为 1 */
131
- surRate: string;
132
- /** 手续费-比例金额 amount * surPercentRate */
133
- surRateMoney: string;
134
- /** 手续费-固定金额 */
135
- surMoney: string;
136
- /** 手续费 = surPercentRate + surMoney */
137
- surcharge: string;
138
- /** 支付金额 (不包含手续费) */
139
- amount: string;
140
- /** 支付总金额 = amount + surcharge */
141
- total: string;
142
- /** 订单金额 */
143
- sourceAmount: string;
144
- /** 支付总金额带单位 + 单位 */
145
- totalUnit: string;
146
- };
147
- export declare enum PayStatus {
148
- 'Success' = "200",
149
- /** 未生成交易记录 */
150
- 'NoPay' = "4004",
151
- /** 配对失效 */
152
- 'PairingFailure' = "606020",
153
- /** 支付失败 */
154
- 'Unknown' = "701000",
155
- /** 交易请求超时 */
156
- 'Timeout' = "701001",
157
- /** 繁忙 EFTPOS终端暂时不可用,因为EFTPOS正在处理另一个请求。 */
158
- 'PayOtherEftposFailed' = "701003",
159
- /** 购物者没有出示卡片/卡片金额不足/在线拒绝/卡已过期/卡被锁定 */
160
- 'PayCardErrorFailed' = "701004",
161
- /** 断网 向EFTPOS发送消息失败。可能有网络问题,也可能没有连接websocket。 */
162
- 'NoNetWork' = "701005",
163
- /** 交易等待超时 */
164
- 'PayTimeout' = "701006",
165
- /** 连接失败 */
166
- 'SocketError' = "701007",
167
- /** 银行拒绝 */
168
- 'PayBankRefuses' = "701008",
169
- /** 签名拒绝 */
170
- 'SignatureDeclined' = "701009",
171
- /** 配置参数错误 */
172
- 'UserConfigError' = "701010"
173
- }
174
- export interface ActionProps {
175
- onChange: (status: `${StatusEnum.Success}` | `${StatusEnum.Fail}` | 'page', params?: {
176
- [key: string]: unknown;
177
- } | string) => void;
178
- api: {
179
- [key: string]: (...agrn: unknown[]) => Promise<unknown>;
180
- };
181
- className?: string;
182
- isMobile?: boolean;
183
- formatAmount: (amount: number | string, precision: number, symbol: string) => string;
184
- }